From b03b120b4851ce2d04ea54ae3140c2a7de2180bb Mon Sep 17 00:00:00 2001 From: Simon Esposito Date: Fri, 13 Sep 2024 19:17:41 +0100 Subject: [PATCH] Address PR feedback --- apigrpc/apigrpc.pb.go | 2 +- apigrpc/apigrpc_grpc.pb.go | 2 +- console/console.pb.go | 2723 +++++++++-------- console/console.pb.gw.go | 125 +- console/console.proto | 24 +- console/console.swagger.json | 56 +- console/console_grpc.pb.go | 41 +- console/ui/dist/prod-nt/index.html | 2 +- .../prod-nt/static/main.92baa89832b7e829.js | 1 + .../prod-nt/static/main.b666a3d50cd63032.js | 1 - console/ui/dist/prod/index.html | 2 +- .../dist/prod/static/main.31367176d20770c7.js | 1 - .../dist/prod/static/main.a7c08c4dfc636938.js | 1 + console/ui/src/app/authentication.service.ts | 16 +- console/ui/src/app/console.service.ts | 19 +- console/ui/src/app/login/login.component.ts | 2 +- console/ui/src/app/users/users.component.html | 7 +- console/ui/src/app/users/users.component.ts | 24 +- console/ui/src/styles.scss | 1 - server/console.go | 9 +- server/console_authenticate.go | 2 +- server/console_user.go | 13 +- 22 files changed, 1729 insertions(+), 1345 deletions(-) create mode 100644 console/ui/dist/prod-nt/static/main.92baa89832b7e829.js delete mode 100644 console/ui/dist/prod-nt/static/main.b666a3d50cd63032.js delete mode 100644 console/ui/dist/prod/static/main.31367176d20770c7.js create mode 100644 console/ui/dist/prod/static/main.a7c08c4dfc636938.js diff --git a/apigrpc/apigrpc.pb.go b/apigrpc/apigrpc.pb.go index 3a88f185b..eb3894a5f 100644 --- a/apigrpc/apigrpc.pb.go +++ b/apigrpc/apigrpc.pb.go @@ -18,7 +18,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v5.27.3 +// protoc v5.28.0 // source: apigrpc.proto package apigrpc diff --git a/apigrpc/apigrpc_grpc.pb.go b/apigrpc/apigrpc_grpc.pb.go index e50d81acb..0421fd987 100644 --- a/apigrpc/apigrpc_grpc.pb.go +++ b/apigrpc/apigrpc_grpc.pb.go @@ -18,7 +18,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v5.27.3 +// - protoc v5.28.0 // source: apigrpc.proto package apigrpc diff --git a/console/console.pb.go b/console/console.pb.go index 08ee4d916..fcebda0f7 100644 --- a/console/console.pb.go +++ b/console/console.pb.go @@ -18,7 +18,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v5.27.3 +// protoc v5.28.0 // source: console.proto package console @@ -200,7 +200,7 @@ func (x ListChannelMessagesRequest_Type) Number() protoreflect.EnumNumber { // Deprecated: Use ListChannelMessagesRequest_Type.Descriptor instead. func (ListChannelMessagesRequest_Type) EnumDescriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{35, 0} + return file_console_proto_rawDescGZIP(), []int{36, 0} } // API Explorer List of Endpoints response message @@ -1848,6 +1848,64 @@ func (x *ResetUserMfaRequest) GetUsername() string { return "" } +// Make a user's mfa required or not. +type RequireUserMfaRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User username. + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + // Required. + Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` +} + +func (x *RequireUserMfaRequest) Reset() { + *x = RequireUserMfaRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_console_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequireUserMfaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequireUserMfaRequest) ProtoMessage() {} + +func (x *RequireUserMfaRequest) ProtoReflect() protoreflect.Message { + mi := &file_console_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RequireUserMfaRequest.ProtoReflect.Descriptor instead. +func (*RequireUserMfaRequest) Descriptor() ([]byte, []int) { + return file_console_proto_rawDescGZIP(), []int{27} +} + +func (x *RequireUserMfaRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *RequireUserMfaRequest) GetRequired() bool { + if x != nil { + return x.Required + } + return false +} + // Remove a leaderboard record type DeleteLeaderboardRecordRequest struct { state protoimpl.MessageState @@ -1863,7 +1921,7 @@ type DeleteLeaderboardRecordRequest struct { func (x *DeleteLeaderboardRecordRequest) Reset() { *x = DeleteLeaderboardRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[27] + mi := &file_console_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1876,7 +1934,7 @@ func (x *DeleteLeaderboardRecordRequest) String() string { func (*DeleteLeaderboardRecordRequest) ProtoMessage() {} func (x *DeleteLeaderboardRecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[27] + mi := &file_console_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1889,7 +1947,7 @@ func (x *DeleteLeaderboardRecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteLeaderboardRecordRequest.ProtoReflect.Descriptor instead. func (*DeleteLeaderboardRecordRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{27} + return file_console_proto_rawDescGZIP(), []int{28} } func (x *DeleteLeaderboardRecordRequest) GetId() string { @@ -1925,7 +1983,7 @@ type DeleteStorageObjectRequest struct { func (x *DeleteStorageObjectRequest) Reset() { *x = DeleteStorageObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[28] + mi := &file_console_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1938,7 +1996,7 @@ func (x *DeleteStorageObjectRequest) String() string { func (*DeleteStorageObjectRequest) ProtoMessage() {} func (x *DeleteStorageObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[28] + mi := &file_console_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1951,7 +2009,7 @@ func (x *DeleteStorageObjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteStorageObjectRequest.ProtoReflect.Descriptor instead. func (*DeleteStorageObjectRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{28} + return file_console_proto_rawDescGZIP(), []int{29} } func (x *DeleteStorageObjectRequest) GetCollection() string { @@ -1997,7 +2055,7 @@ type DeleteWalletLedgerRequest struct { func (x *DeleteWalletLedgerRequest) Reset() { *x = DeleteWalletLedgerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[29] + mi := &file_console_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2010,7 +2068,7 @@ func (x *DeleteWalletLedgerRequest) String() string { func (*DeleteWalletLedgerRequest) ProtoMessage() {} func (x *DeleteWalletLedgerRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[29] + mi := &file_console_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2023,7 +2081,7 @@ func (x *DeleteWalletLedgerRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteWalletLedgerRequest.ProtoReflect.Descriptor instead. func (*DeleteWalletLedgerRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{29} + return file_console_proto_rawDescGZIP(), []int{30} } func (x *DeleteWalletLedgerRequest) GetId() string { @@ -2095,7 +2153,7 @@ type Leaderboard struct { func (x *Leaderboard) Reset() { *x = Leaderboard{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[30] + mi := &file_console_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2108,7 +2166,7 @@ func (x *Leaderboard) String() string { func (*Leaderboard) ProtoMessage() {} func (x *Leaderboard) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[30] + mi := &file_console_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2121,7 +2179,7 @@ func (x *Leaderboard) ProtoReflect() protoreflect.Message { // Deprecated: Use Leaderboard.ProtoReflect.Descriptor instead. func (*Leaderboard) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{30} + return file_console_proto_rawDescGZIP(), []int{31} } func (x *Leaderboard) GetId() string { @@ -2291,7 +2349,7 @@ type LeaderboardListRequest struct { func (x *LeaderboardListRequest) Reset() { *x = LeaderboardListRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[31] + mi := &file_console_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2304,7 +2362,7 @@ func (x *LeaderboardListRequest) String() string { func (*LeaderboardListRequest) ProtoMessage() {} func (x *LeaderboardListRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[31] + mi := &file_console_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2317,7 +2375,7 @@ func (x *LeaderboardListRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LeaderboardListRequest.ProtoReflect.Descriptor instead. func (*LeaderboardListRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{31} + return file_console_proto_rawDescGZIP(), []int{32} } func (x *LeaderboardListRequest) GetCursor() string { @@ -2344,7 +2402,7 @@ type LeaderboardList struct { func (x *LeaderboardList) Reset() { *x = LeaderboardList{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[32] + mi := &file_console_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2357,7 +2415,7 @@ func (x *LeaderboardList) String() string { func (*LeaderboardList) ProtoMessage() {} func (x *LeaderboardList) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[32] + mi := &file_console_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2370,7 +2428,7 @@ func (x *LeaderboardList) ProtoReflect() protoreflect.Message { // Deprecated: Use LeaderboardList.ProtoReflect.Descriptor instead. func (*LeaderboardList) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{32} + return file_console_proto_rawDescGZIP(), []int{33} } func (x *LeaderboardList) GetLeaderboards() []*Leaderboard { @@ -2407,7 +2465,7 @@ type LeaderboardRequest struct { func (x *LeaderboardRequest) Reset() { *x = LeaderboardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[33] + mi := &file_console_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2420,7 +2478,7 @@ func (x *LeaderboardRequest) String() string { func (*LeaderboardRequest) ProtoMessage() {} func (x *LeaderboardRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[33] + mi := &file_console_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2433,7 +2491,7 @@ func (x *LeaderboardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LeaderboardRequest.ProtoReflect.Descriptor instead. func (*LeaderboardRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{33} + return file_console_proto_rawDescGZIP(), []int{34} } func (x *LeaderboardRequest) GetId() string { @@ -2460,7 +2518,7 @@ type ListAccountsRequest struct { func (x *ListAccountsRequest) Reset() { *x = ListAccountsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[34] + mi := &file_console_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2473,7 +2531,7 @@ func (x *ListAccountsRequest) String() string { func (*ListAccountsRequest) ProtoMessage() {} func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[34] + mi := &file_console_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2486,7 +2544,7 @@ func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead. func (*ListAccountsRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{34} + return file_console_proto_rawDescGZIP(), []int{35} } func (x *ListAccountsRequest) GetFilter() string { @@ -2532,7 +2590,7 @@ type ListChannelMessagesRequest struct { func (x *ListChannelMessagesRequest) Reset() { *x = ListChannelMessagesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[35] + mi := &file_console_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2545,7 +2603,7 @@ func (x *ListChannelMessagesRequest) String() string { func (*ListChannelMessagesRequest) ProtoMessage() {} func (x *ListChannelMessagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[35] + mi := &file_console_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2558,7 +2616,7 @@ func (x *ListChannelMessagesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListChannelMessagesRequest.ProtoReflect.Descriptor instead. func (*ListChannelMessagesRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{35} + return file_console_proto_rawDescGZIP(), []int{36} } func (x *ListChannelMessagesRequest) GetType() ListChannelMessagesRequest_Type { @@ -2618,7 +2676,7 @@ type ListGroupsRequest struct { func (x *ListGroupsRequest) Reset() { *x = ListGroupsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[36] + mi := &file_console_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2631,7 +2689,7 @@ func (x *ListGroupsRequest) String() string { func (*ListGroupsRequest) ProtoMessage() {} func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[36] + mi := &file_console_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2644,7 +2702,7 @@ func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListGroupsRequest.ProtoReflect.Descriptor instead. func (*ListGroupsRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{36} + return file_console_proto_rawDescGZIP(), []int{37} } func (x *ListGroupsRequest) GetFilter() string { @@ -2688,7 +2746,7 @@ type ListMatchesRequest struct { func (x *ListMatchesRequest) Reset() { *x = ListMatchesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[37] + mi := &file_console_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2701,7 +2759,7 @@ func (x *ListMatchesRequest) String() string { func (*ListMatchesRequest) ProtoMessage() {} func (x *ListMatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[37] + mi := &file_console_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2714,7 +2772,7 @@ func (x *ListMatchesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMatchesRequest.ProtoReflect.Descriptor instead. func (*ListMatchesRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{37} + return file_console_proto_rawDescGZIP(), []int{38} } func (x *ListMatchesRequest) GetLimit() *wrapperspb.Int32Value { @@ -2790,7 +2848,7 @@ type ListPurchasesRequest struct { func (x *ListPurchasesRequest) Reset() { *x = ListPurchasesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[38] + mi := &file_console_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2803,7 +2861,7 @@ func (x *ListPurchasesRequest) String() string { func (*ListPurchasesRequest) ProtoMessage() {} func (x *ListPurchasesRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[38] + mi := &file_console_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2816,7 +2874,7 @@ func (x *ListPurchasesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPurchasesRequest.ProtoReflect.Descriptor instead. func (*ListPurchasesRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{38} + return file_console_proto_rawDescGZIP(), []int{39} } func (x *ListPurchasesRequest) GetUserId() string { @@ -2857,7 +2915,7 @@ type ListSubscriptionsRequest struct { func (x *ListSubscriptionsRequest) Reset() { *x = ListSubscriptionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[39] + mi := &file_console_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2870,7 +2928,7 @@ func (x *ListSubscriptionsRequest) String() string { func (*ListSubscriptionsRequest) ProtoMessage() {} func (x *ListSubscriptionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[39] + mi := &file_console_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2883,7 +2941,7 @@ func (x *ListSubscriptionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSubscriptionsRequest.ProtoReflect.Descriptor instead. func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{39} + return file_console_proto_rawDescGZIP(), []int{40} } func (x *ListSubscriptionsRequest) GetUserId() string { @@ -2926,7 +2984,7 @@ type ListStorageRequest struct { func (x *ListStorageRequest) Reset() { *x = ListStorageRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[40] + mi := &file_console_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2939,7 +2997,7 @@ func (x *ListStorageRequest) String() string { func (*ListStorageRequest) ProtoMessage() {} func (x *ListStorageRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[40] + mi := &file_console_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2952,7 +3010,7 @@ func (x *ListStorageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListStorageRequest.ProtoReflect.Descriptor instead. func (*ListStorageRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{40} + return file_console_proto_rawDescGZIP(), []int{41} } func (x *ListStorageRequest) GetUserId() string { @@ -3000,7 +3058,7 @@ type MatchState struct { func (x *MatchState) Reset() { *x = MatchState{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[41] + mi := &file_console_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3013,7 +3071,7 @@ func (x *MatchState) String() string { func (*MatchState) ProtoMessage() {} func (x *MatchState) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[41] + mi := &file_console_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3026,7 +3084,7 @@ func (x *MatchState) ProtoReflect() protoreflect.Message { // Deprecated: Use MatchState.ProtoReflect.Descriptor instead. func (*MatchState) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{41} + return file_console_proto_rawDescGZIP(), []int{42} } func (x *MatchState) GetPresences() []*rtapi.UserPresence { @@ -3063,7 +3121,7 @@ type MatchStateRequest struct { func (x *MatchStateRequest) Reset() { *x = MatchStateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[42] + mi := &file_console_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3076,7 +3134,7 @@ func (x *MatchStateRequest) String() string { func (*MatchStateRequest) ProtoMessage() {} func (x *MatchStateRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[42] + mi := &file_console_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3089,7 +3147,7 @@ func (x *MatchStateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use MatchStateRequest.ProtoReflect.Descriptor instead. func (*MatchStateRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{42} + return file_console_proto_rawDescGZIP(), []int{43} } func (x *MatchStateRequest) GetId() string { @@ -3111,7 +3169,7 @@ type DeleteChannelMessagesResponse struct { func (x *DeleteChannelMessagesResponse) Reset() { *x = DeleteChannelMessagesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[43] + mi := &file_console_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3124,7 +3182,7 @@ func (x *DeleteChannelMessagesResponse) String() string { func (*DeleteChannelMessagesResponse) ProtoMessage() {} func (x *DeleteChannelMessagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[43] + mi := &file_console_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3137,7 +3195,7 @@ func (x *DeleteChannelMessagesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteChannelMessagesResponse.ProtoReflect.Descriptor instead. func (*DeleteChannelMessagesResponse) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{43} + return file_console_proto_rawDescGZIP(), []int{44} } func (x *DeleteChannelMessagesResponse) GetTotal() int64 { @@ -3164,7 +3222,7 @@ type StorageList struct { func (x *StorageList) Reset() { *x = StorageList{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[44] + mi := &file_console_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3177,7 +3235,7 @@ func (x *StorageList) String() string { func (*StorageList) ProtoMessage() {} func (x *StorageList) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[44] + mi := &file_console_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3190,7 +3248,7 @@ func (x *StorageList) ProtoReflect() protoreflect.Message { // Deprecated: Use StorageList.ProtoReflect.Descriptor instead. func (*StorageList) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{44} + return file_console_proto_rawDescGZIP(), []int{45} } func (x *StorageList) GetObjects() []*StorageListObject { @@ -3226,7 +3284,7 @@ type StorageCollectionsList struct { func (x *StorageCollectionsList) Reset() { *x = StorageCollectionsList{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[45] + mi := &file_console_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3239,7 +3297,7 @@ func (x *StorageCollectionsList) String() string { func (*StorageCollectionsList) ProtoMessage() {} func (x *StorageCollectionsList) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[45] + mi := &file_console_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3252,7 +3310,7 @@ func (x *StorageCollectionsList) ProtoReflect() protoreflect.Message { // Deprecated: Use StorageCollectionsList.ProtoReflect.Descriptor instead. func (*StorageCollectionsList) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{45} + return file_console_proto_rawDescGZIP(), []int{46} } func (x *StorageCollectionsList) GetCollections() []string { @@ -3277,7 +3335,7 @@ type UnlinkDeviceRequest struct { func (x *UnlinkDeviceRequest) Reset() { *x = UnlinkDeviceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[46] + mi := &file_console_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3290,7 +3348,7 @@ func (x *UnlinkDeviceRequest) String() string { func (*UnlinkDeviceRequest) ProtoMessage() {} func (x *UnlinkDeviceRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[46] + mi := &file_console_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3303,7 +3361,7 @@ func (x *UnlinkDeviceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UnlinkDeviceRequest.ProtoReflect.Descriptor instead. func (*UnlinkDeviceRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{46} + return file_console_proto_rawDescGZIP(), []int{47} } func (x *UnlinkDeviceRequest) GetId() string { @@ -3357,7 +3415,7 @@ type UpdateAccountRequest struct { func (x *UpdateAccountRequest) Reset() { *x = UpdateAccountRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[47] + mi := &file_console_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3370,7 +3428,7 @@ func (x *UpdateAccountRequest) String() string { func (*UpdateAccountRequest) ProtoMessage() {} func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[47] + mi := &file_console_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3383,7 +3441,7 @@ func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead. func (*UpdateAccountRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{47} + return file_console_proto_rawDescGZIP(), []int{48} } func (x *UpdateAccountRequest) GetId() string { @@ -3504,7 +3562,7 @@ type UpdateGroupRequest struct { func (x *UpdateGroupRequest) Reset() { *x = UpdateGroupRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[48] + mi := &file_console_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3517,7 +3575,7 @@ func (x *UpdateGroupRequest) String() string { func (*UpdateGroupRequest) ProtoMessage() {} func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[48] + mi := &file_console_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3530,7 +3588,7 @@ func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead. func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{48} + return file_console_proto_rawDescGZIP(), []int{49} } func (x *UpdateGroupRequest) GetId() string { @@ -3602,7 +3660,7 @@ type Username struct { func (x *Username) Reset() { *x = Username{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[49] + mi := &file_console_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3615,7 +3673,7 @@ func (x *Username) String() string { func (*Username) ProtoMessage() {} func (x *Username) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[49] + mi := &file_console_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3628,7 +3686,7 @@ func (x *Username) ProtoReflect() protoreflect.Message { // Deprecated: Use Username.ProtoReflect.Descriptor instead. func (*Username) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{49} + return file_console_proto_rawDescGZIP(), []int{50} } func (x *Username) GetUsername() string { @@ -3651,7 +3709,7 @@ type UserList struct { func (x *UserList) Reset() { *x = UserList{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[50] + mi := &file_console_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3664,7 +3722,7 @@ func (x *UserList) String() string { func (*UserList) ProtoMessage() {} func (x *UserList) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[50] + mi := &file_console_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3677,7 +3735,7 @@ func (x *UserList) ProtoReflect() protoreflect.Message { // Deprecated: Use UserList.ProtoReflect.Descriptor instead. func (*UserList) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{50} + return file_console_proto_rawDescGZIP(), []int{51} } func (x *UserList) GetUsers() []*UserList_User { @@ -3702,7 +3760,7 @@ type StatusList struct { func (x *StatusList) Reset() { *x = StatusList{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[51] + mi := &file_console_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3715,7 +3773,7 @@ func (x *StatusList) String() string { func (*StatusList) ProtoMessage() {} func (x *StatusList) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[51] + mi := &file_console_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3728,7 +3786,7 @@ func (x *StatusList) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusList.ProtoReflect.Descriptor instead. func (*StatusList) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{51} + return file_console_proto_rawDescGZIP(), []int{52} } func (x *StatusList) GetNodes() []*StatusList_Status { @@ -3768,7 +3826,7 @@ type RuntimeInfo struct { func (x *RuntimeInfo) Reset() { *x = RuntimeInfo{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[52] + mi := &file_console_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3781,7 +3839,7 @@ func (x *RuntimeInfo) String() string { func (*RuntimeInfo) ProtoMessage() {} func (x *RuntimeInfo) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[52] + mi := &file_console_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3794,7 +3852,7 @@ func (x *RuntimeInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use RuntimeInfo.ProtoReflect.Descriptor instead. func (*RuntimeInfo) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{52} + return file_console_proto_rawDescGZIP(), []int{53} } func (x *RuntimeInfo) GetLuaRpcFunctions() []string { @@ -3862,7 +3920,7 @@ type WalletLedger struct { func (x *WalletLedger) Reset() { *x = WalletLedger{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[53] + mi := &file_console_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3875,7 +3933,7 @@ func (x *WalletLedger) String() string { func (*WalletLedger) ProtoMessage() {} func (x *WalletLedger) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[53] + mi := &file_console_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3888,7 +3946,7 @@ func (x *WalletLedger) ProtoReflect() protoreflect.Message { // Deprecated: Use WalletLedger.ProtoReflect.Descriptor instead. func (*WalletLedger) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{53} + return file_console_proto_rawDescGZIP(), []int{54} } func (x *WalletLedger) GetId() string { @@ -3950,7 +4008,7 @@ type WalletLedgerList struct { func (x *WalletLedgerList) Reset() { *x = WalletLedgerList{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[54] + mi := &file_console_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3963,7 +4021,7 @@ func (x *WalletLedgerList) String() string { func (*WalletLedgerList) ProtoMessage() {} func (x *WalletLedgerList) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[54] + mi := &file_console_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3976,7 +4034,7 @@ func (x *WalletLedgerList) ProtoReflect() protoreflect.Message { // Deprecated: Use WalletLedgerList.ProtoReflect.Descriptor instead. func (*WalletLedgerList) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{54} + return file_console_proto_rawDescGZIP(), []int{55} } func (x *WalletLedgerList) GetItems() []*WalletLedger { @@ -4025,7 +4083,7 @@ type WriteStorageObjectRequest struct { func (x *WriteStorageObjectRequest) Reset() { *x = WriteStorageObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[55] + mi := &file_console_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4038,7 +4096,7 @@ func (x *WriteStorageObjectRequest) String() string { func (*WriteStorageObjectRequest) ProtoMessage() {} func (x *WriteStorageObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[55] + mi := &file_console_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4051,7 +4109,7 @@ func (x *WriteStorageObjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteStorageObjectRequest.ProtoReflect.Descriptor instead. func (*WriteStorageObjectRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{55} + return file_console_proto_rawDescGZIP(), []int{56} } func (x *WriteStorageObjectRequest) GetCollection() string { @@ -4119,7 +4177,7 @@ type GetWalletLedgerRequest struct { func (x *GetWalletLedgerRequest) Reset() { *x = GetWalletLedgerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[56] + mi := &file_console_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4132,7 +4190,7 @@ func (x *GetWalletLedgerRequest) String() string { func (*GetWalletLedgerRequest) ProtoMessage() {} func (x *GetWalletLedgerRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[56] + mi := &file_console_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4145,7 +4203,7 @@ func (x *GetWalletLedgerRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetWalletLedgerRequest.ProtoReflect.Descriptor instead. func (*GetWalletLedgerRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{56} + return file_console_proto_rawDescGZIP(), []int{57} } func (x *GetWalletLedgerRequest) GetAccountId() string { @@ -4181,7 +4239,7 @@ type GetPurchaseRequest struct { func (x *GetPurchaseRequest) Reset() { *x = GetPurchaseRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[57] + mi := &file_console_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4194,7 +4252,7 @@ func (x *GetPurchaseRequest) String() string { func (*GetPurchaseRequest) ProtoMessage() {} func (x *GetPurchaseRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[57] + mi := &file_console_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4207,7 +4265,7 @@ func (x *GetPurchaseRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPurchaseRequest.ProtoReflect.Descriptor instead. func (*GetPurchaseRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{57} + return file_console_proto_rawDescGZIP(), []int{58} } func (x *GetPurchaseRequest) GetTransactionId() string { @@ -4229,7 +4287,7 @@ type GetSubscriptionRequest struct { func (x *GetSubscriptionRequest) Reset() { *x = GetSubscriptionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[58] + mi := &file_console_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4242,7 +4300,7 @@ func (x *GetSubscriptionRequest) String() string { func (*GetSubscriptionRequest) ProtoMessage() {} func (x *GetSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[58] + mi := &file_console_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4255,7 +4313,7 @@ func (x *GetSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSubscriptionRequest.ProtoReflect.Descriptor instead. func (*GetSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{58} + return file_console_proto_rawDescGZIP(), []int{59} } func (x *GetSubscriptionRequest) GetOriginalTransactionId() string { @@ -4292,7 +4350,7 @@ type StorageListObject struct { func (x *StorageListObject) Reset() { *x = StorageListObject{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[59] + mi := &file_console_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4305,7 +4363,7 @@ func (x *StorageListObject) String() string { func (*StorageListObject) ProtoMessage() {} func (x *StorageListObject) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[59] + mi := &file_console_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4318,7 +4376,7 @@ func (x *StorageListObject) ProtoReflect() protoreflect.Message { // Deprecated: Use StorageListObject.ProtoReflect.Descriptor instead. func (*StorageListObject) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{59} + return file_console_proto_rawDescGZIP(), []int{60} } func (x *StorageListObject) GetCollection() string { @@ -4391,7 +4449,7 @@ type MatchList_Match struct { func (x *MatchList_Match) Reset() { *x = MatchList_Match{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[60] + mi := &file_console_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4404,7 +4462,7 @@ func (x *MatchList_Match) String() string { func (*MatchList_Match) ProtoMessage() {} func (x *MatchList_Match) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[60] + mi := &file_console_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4449,7 +4507,7 @@ type Config_Warning struct { func (x *Config_Warning) Reset() { *x = Config_Warning{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[62] + mi := &file_console_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4462,7 +4520,7 @@ func (x *Config_Warning) String() string { func (*Config_Warning) ProtoMessage() {} func (x *Config_Warning) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[62] + mi := &file_console_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4504,14 +4562,16 @@ type UserList_User struct { Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // Role of the user; Role UserRole `protobuf:"varint,3,opt,name=role,proto3,enum=nakama.console.UserRole" json:"role,omitempty"` - // Whether the user has MFA enabled or not. - MfaEnabled bool `protobuf:"varint,4,opt,name=mfa_enabled,json=mfaEnabled,proto3" json:"mfa_enabled,omitempty"` + // Whether the user is required to setup MFA. + MfaRequired bool `protobuf:"varint,4,opt,name=mfa_required,json=mfaRequired,proto3" json:"mfa_required,omitempty"` + // Whether the user has MFA enabled. + MfaEnabled bool `protobuf:"varint,5,opt,name=mfa_enabled,json=mfaEnabled,proto3" json:"mfa_enabled,omitempty"` } func (x *UserList_User) Reset() { *x = UserList_User{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[64] + mi := &file_console_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4524,7 +4584,7 @@ func (x *UserList_User) String() string { func (*UserList_User) ProtoMessage() {} func (x *UserList_User) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[64] + mi := &file_console_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4537,7 +4597,7 @@ func (x *UserList_User) ProtoReflect() protoreflect.Message { // Deprecated: Use UserList_User.ProtoReflect.Descriptor instead. func (*UserList_User) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{50, 0} + return file_console_proto_rawDescGZIP(), []int{51, 0} } func (x *UserList_User) GetUsername() string { @@ -4561,6 +4621,13 @@ func (x *UserList_User) GetRole() UserRole { return UserRole_USER_ROLE_UNKNOWN } +func (x *UserList_User) GetMfaRequired() bool { + if x != nil { + return x.MfaRequired + } + return false +} + func (x *UserList_User) GetMfaEnabled() bool { if x != nil { return x.MfaEnabled @@ -4599,7 +4666,7 @@ type StatusList_Status struct { func (x *StatusList_Status) Reset() { *x = StatusList_Status{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[65] + mi := &file_console_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4612,7 +4679,7 @@ func (x *StatusList_Status) String() string { func (*StatusList_Status) ProtoMessage() {} func (x *StatusList_Status) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[65] + mi := &file_console_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4625,7 +4692,7 @@ func (x *StatusList_Status) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusList_Status.ProtoReflect.Descriptor instead. func (*StatusList_Status) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{51, 0} + return file_console_proto_rawDescGZIP(), []int{52, 0} } func (x *StatusList_Status) GetName() string { @@ -4713,7 +4780,7 @@ type RuntimeInfo_ModuleInfo struct { func (x *RuntimeInfo_ModuleInfo) Reset() { *x = RuntimeInfo_ModuleInfo{} if protoimpl.UnsafeEnabled { - mi := &file_console_proto_msgTypes[66] + mi := &file_console_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4726,7 +4793,7 @@ func (x *RuntimeInfo_ModuleInfo) String() string { func (*RuntimeInfo_ModuleInfo) ProtoMessage() {} func (x *RuntimeInfo_ModuleInfo) ProtoReflect() protoreflect.Message { - mi := &file_console_proto_msgTypes[66] + mi := &file_console_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4739,7 +4806,7 @@ func (x *RuntimeInfo_ModuleInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use RuntimeInfo_ModuleInfo.ProtoReflect.Descriptor instead. func (*RuntimeInfo_ModuleInfo) Descriptor() ([]byte, []int) { - return file_console_proto_rawDescGZIP(), []int{52, 0} + return file_console_proto_rawDescGZIP(), []int{53, 0} } func (x *RuntimeInfo_ModuleInfo) GetPath() string { @@ -4975,958 +5042,973 @@ var file_console_proto_rawDesc = []byte{ 0x13, 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x66, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x4b, 0x0a, 0x1e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x22, 0x81, 0x01, - 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, - 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x22, 0x48, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, 0x65, - 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, - 0x0a, 0x09, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x49, 0x64, 0x22, 0xf8, 0x05, 0x0a, 0x0b, - 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, - 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x12, - 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, - 0x7a, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, - 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x53, 0x63, 0x6f, 0x72, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, - 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x25, 0x0a, 0x0e, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, - 0x75, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x12, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6a, 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, - 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x75, 0x72, - 0x6e, 0x61, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74, 0x6f, - 0x75, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x76, - 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, - 0x65, 0x76, 0x52, 0x65, 0x73, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x65, 0x78, - 0x74, 0x52, 0x65, 0x73, 0x65, 0x74, 0x22, 0x30, 0x0a, 0x16, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x80, 0x01, 0x0a, 0x0f, 0x4c, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0c, - 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, - 0x0c, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x12, 0x4c, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x65, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x73, - 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0xa0, 0x02, 0x0a, 0x1a, 0x4c, 0x69, 0x73, - 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1e, 0x0a, - 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x5f, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4f, 0x6e, 0x65, 0x12, 0x1e, 0x0a, - 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x5f, 0x74, 0x77, 0x6f, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x54, 0x77, 0x6f, 0x12, 0x16, 0x0a, - 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, - 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x34, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, - 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x52, 0x4f, - 0x4f, 0x4d, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x03, 0x12, - 0x0a, 0x0a, 0x06, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x10, 0x04, 0x22, 0x43, 0x0a, 0x11, 0x4c, - 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, - 0x22, 0xae, 0x03, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x22, 0x4f, 0x0a, 0x15, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x73, 0x65, 0x72, 0x4d, + 0x66, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x64, 0x22, 0x4b, 0x0a, 0x1e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x22, 0x81, + 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, + 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, + 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x49, 0x64, 0x22, 0xf8, 0x05, 0x0a, + 0x0b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, + 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, + 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x53, 0x63, 0x6f, + 0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, + 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x25, 0x0a, + 0x0e, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x39, 0x0a, + 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x32, 0x0a, 0x05, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, + 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6a, 0x6f, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, + 0x74, 0x69, 0x76, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x75, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74, + 0x6f, 0x75, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x65, + 0x76, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, + 0x72, 0x65, 0x76, 0x52, 0x65, 0x73, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x65, + 0x78, 0x74, 0x52, 0x65, 0x73, 0x65, 0x74, 0x22, 0x30, 0x0a, 0x16, 0x4c, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x80, 0x01, 0x0a, 0x0f, 0x4c, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3f, 0x0a, + 0x0c, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x12, + 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x65, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74, 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, + 0x73, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0xa0, 0x02, 0x0a, 0x1a, 0x4c, 0x69, + 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, + 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1e, + 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x5f, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4f, 0x6e, 0x65, 0x12, 0x1e, + 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x5f, 0x74, 0x77, 0x6f, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x54, 0x77, 0x6f, 0x12, 0x16, + 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x34, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, + 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x52, + 0x4f, 0x4f, 0x4d, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x03, + 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x10, 0x04, 0x22, 0x43, 0x0a, 0x11, + 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, + 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, + 0x72, 0x22, 0xae, 0x03, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x32, 0x0a, + 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x12, 0x36, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x6d, 0x61, 0x78, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, + 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, - 0x12, 0x36, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x07, 0x6d, 0x69, 0x6e, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, - 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x05, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, + 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6e, 0x6f, + 0x64, 0x65, 0x22, 0x5d, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, + 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, + 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, + 0x72, 0x22, 0x61, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, + 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, + 0x72, 0x73, 0x6f, 0x72, 0x22, 0x77, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x73, 0x0a, + 0x0a, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x70, + 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x72, 0x65, 0x61, 0x6c, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x70, + 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x63, 0x6b, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x22, 0x23, 0x0a, 0x11, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x35, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x8c, + 0x01, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3b, + 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, + 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x3a, 0x0a, + 0x16, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x42, 0x0a, 0x13, 0x55, 0x6e, 0x6c, + 0x69, 0x6e, 0x6b, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0xb6, 0x06, + 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x3f, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x0a, 0x0a, 0x61, + 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, + 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x37, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, + 0x5f, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, - 0x30, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x6c, 0x61, 0x6e, 0x67, 0x54, 0x61, + 0x67, 0x12, 0x38, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x08, 0x74, + 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6e, 0x6f, 0x64, - 0x65, 0x22, 0x5d, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, - 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, - 0x22, 0x61, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, - 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, - 0x73, 0x6f, 0x72, 0x22, 0x77, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x73, 0x0a, 0x0a, - 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x70, 0x72, - 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x72, 0x65, 0x61, 0x6c, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x70, 0x72, - 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x63, 0x6b, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x22, 0x23, 0x0a, 0x11, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x35, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x8c, 0x01, - 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3b, 0x0a, - 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, - 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x16, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x42, 0x0a, 0x13, 0x55, 0x6e, 0x6c, 0x69, - 0x6e, 0x6b, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0xb6, 0x06, 0x0a, - 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x3f, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x76, - 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x76, - 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x37, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x5f, - 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x6c, 0x61, 0x6e, 0x67, 0x54, 0x61, 0x67, - 0x12, 0x38, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x74, 0x69, 0x6d, + 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, + 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x64, + 0x12, 0x32, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x65, + 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x38, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x52, + 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, + 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, + 0x64, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x08, 0x74, 0x69, - 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, - 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x69, - 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x64, 0x12, - 0x32, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x65, 0x6d, - 0x61, 0x69, 0x6c, 0x12, 0x38, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, - 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x52, 0x0a, - 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x33, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, - 0x73, 0x12, 0x34, 0x0a, 0x06, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x52, 0x06, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x1a, 0x3c, 0x0a, 0x0e, 0x44, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x49, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x03, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x3e, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x37, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x06, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x1a, 0x3c, 0x0a, 0x0e, 0x44, 0x65, 0x76, 0x69, 0x63, - 0x65, 0x49, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x03, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, + 0x07, 0x6c, 0x61, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3e, - 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, - 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, - 0x6c, 0x61, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x2e, - 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, - 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x38, - 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, - 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x26, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0xc9, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x33, 0x0a, - 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x1a, 0x87, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x75, - 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, - 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2c, 0x0a, - 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6e, 0x61, - 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, - 0x66, 0x61, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0a, 0x6d, 0x66, 0x61, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0xfc, 0x03, 0x0a, - 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x05, 0x6e, - 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6e, 0x61, 0x6b, - 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x6e, - 0x6f, 0x64, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x1a, 0xfa, - 0x02, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, - 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x06, 0x68, 0x65, 0x61, - 0x6c, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x73, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x73, - 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0d, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x27, 0x0a, 0x0f, 0x67, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x67, 0x6f, 0x72, 0x6f, 0x75, - 0x74, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x76, 0x67, - 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x01, 0x52, 0x0c, 0x61, 0x76, 0x67, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4d, 0x73, 0x12, - 0x20, 0x0a, 0x0c, 0x61, 0x76, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x61, 0x76, 0x67, 0x52, 0x61, 0x74, 0x65, 0x53, 0x65, - 0x63, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x76, 0x67, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x6b, - 0x62, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x61, 0x76, 0x67, 0x49, 0x6e, 0x70, - 0x75, 0x74, 0x4b, 0x62, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x76, 0x67, 0x5f, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x5f, 0x6b, 0x62, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x61, - 0x76, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4b, 0x62, 0x73, 0x22, 0xbd, 0x03, 0x0a, 0x0b, - 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x0a, 0x11, 0x6c, - 0x75, 0x61, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x75, 0x61, 0x52, 0x70, 0x63, 0x46, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x6f, 0x5f, 0x72, 0x70, - 0x63, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0e, 0x67, 0x6f, 0x52, 0x70, 0x63, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x28, 0x0a, 0x10, 0x6a, 0x73, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6a, 0x73, 0x52, - 0x70, 0x63, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x67, - 0x6f, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x67, 0x6f, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0b, 0x6c, 0x75, 0x61, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, - 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x0a, 0x6c, 0x75, 0x61, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x6a, - 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x6a, 0x73, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x73, 0x1a, 0x57, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x70, 0x61, 0x74, 0x68, 0x12, 0x35, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xeb, 0x01, 0x0a, 0x0c, - 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, - 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x73, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x10, 0x57, 0x61, - 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x32, - 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x52, 0x05, 0x69, 0x74, 0x65, - 0x6d, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x43, 0x75, 0x72, - 0x73, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x63, 0x75, 0x72, 0x73, - 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x43, 0x75, - 0x72, 0x73, 0x6f, 0x72, 0x22, 0xa4, 0x02, 0x0a, 0x19, 0x57, 0x72, 0x69, 0x74, 0x65, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, - 0x0f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x0e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x61, 0x64, 0x12, 0x46, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, + 0x2e, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x22, 0x65, 0x0a, 0x16, 0x47, - 0x65, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, - 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, - 0x6f, 0x72, 0x22, 0x3b, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, - 0x50, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x6f, 0x72, 0x69, - 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x61, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x22, 0xc6, 0x02, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, - 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x61, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, + 0x38, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x08, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x26, 0x0a, 0x08, 0x55, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0xec, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x33, + 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x1a, 0xaa, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2c, + 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6e, + 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x6d, 0x66, 0x61, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0b, 0x6d, 0x66, 0x61, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, + 0x1f, 0x0a, 0x0b, 0x6d, 0x66, 0x61, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6d, 0x66, 0x61, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x22, 0xfc, 0x03, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x37, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x1a, 0xfa, 0x02, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x34, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1c, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, + 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, + 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, + 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x67, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, + 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x67, + 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x24, 0x0a, + 0x0e, 0x61, 0x76, 0x67, 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6d, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x61, 0x76, 0x67, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x4d, 0x73, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x76, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, + 0x73, 0x65, 0x63, 0x18, 0x08, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x61, 0x76, 0x67, 0x52, 0x61, + 0x74, 0x65, 0x53, 0x65, 0x63, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x76, 0x67, 0x5f, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x5f, 0x6b, 0x62, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x61, 0x76, + 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x4b, 0x62, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x76, 0x67, + 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6b, 0x62, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x01, 0x52, 0x0c, 0x61, 0x76, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4b, 0x62, 0x73, 0x22, + 0xbd, 0x03, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x2a, 0x0a, 0x11, 0x6c, 0x75, 0x61, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x75, 0x61, 0x52, + 0x70, 0x63, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x67, + 0x6f, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x6f, 0x52, 0x70, 0x63, 0x46, 0x75, 0x6e, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x6a, 0x73, 0x5f, 0x72, 0x70, 0x63, 0x5f, + 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0e, 0x6a, 0x73, 0x52, 0x70, 0x63, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x45, 0x0a, 0x0a, 0x67, 0x6f, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x67, 0x6f, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0b, 0x6c, 0x75, 0x61, 0x5f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, 0x61, + 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x75, 0x6e, + 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x6c, 0x75, 0x61, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, + 0x45, 0x0a, 0x0a, 0x6a, 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x6a, 0x73, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x57, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x35, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, + 0xeb, 0x01, 0x0a, 0x0c, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, - 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x2a, 0x81, 0x01, 0x0a, 0x08, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x5f, - 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, - 0x0a, 0x0f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x41, 0x44, 0x4d, 0x49, - 0x4e, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, - 0x5f, 0x44, 0x45, 0x56, 0x45, 0x4c, 0x4f, 0x50, 0x45, 0x52, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, - 0x55, 0x53, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x41, - 0x49, 0x4e, 0x45, 0x52, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x52, - 0x4f, 0x4c, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x04, 0x2a, 0x7c, - 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x14, - 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, - 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, - 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x1c, 0x0a, - 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, 0x43, - 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, 0x44, 0x49, 0x53, - 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x32, 0xec, 0x3d, 0x0a, - 0x07, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x0c, 0x41, 0x75, 0x74, - 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x88, 0x01, + 0x0a, 0x10, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x52, + 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, + 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x78, + 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x5f, + 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, + 0x65, 0x76, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0xa4, 0x02, 0x0a, 0x19, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x44, 0x0a, 0x0f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x72, 0x65, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, + 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x12, 0x46, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0f, + 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x22, + 0x65, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x3b, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x75, 0x72, + 0x63, 0x68, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x22, 0x50, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, + 0x17, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xc6, 0x02, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, 0x0a, + 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, + 0x65, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x2a, 0x81, + 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x55, + 0x53, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, + 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x53, 0x45, 0x52, 0x5f, + 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x45, 0x4c, 0x4f, 0x50, 0x45, 0x52, 0x10, 0x02, + 0x12, 0x18, 0x0a, 0x14, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4d, 0x41, + 0x49, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x45, 0x52, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x53, + 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x4f, 0x4e, 0x4c, 0x59, + 0x10, 0x04, 0x2a, 0x7c, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, + 0x4c, 0x54, 0x48, 0x5f, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, + 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, 0x4c, + 0x54, 0x48, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, + 0x1f, 0x0a, 0x1b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, + 0x5f, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, + 0x32, 0xf2, 0x3e, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x12, 0x83, 0x01, 0x0a, + 0x0c, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x23, 0x2e, + 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x22, 0x2e, 0x92, 0x41, 0x08, 0x62, 0x06, 0x0a, 0x04, 0x0a, 0x00, 0x12, 0x00, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x12, 0x29, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, - 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2a, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x2f, 0x6c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x12, 0x9a, 0x01, 0x0a, 0x14, 0x41, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4d, 0x46, 0x41, 0x53, 0x65, 0x74, 0x75, + 0x70, 0x12, 0x2b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4d, + 0x46, 0x41, 0x53, 0x65, 0x74, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, - 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2e, - 0x92, 0x41, 0x08, 0x62, 0x06, 0x0a, 0x04, 0x0a, 0x00, 0x12, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, - 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x83, - 0x01, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4c, - 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x12, 0x29, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4d, 0x46, 0x41, 0x53, + 0x65, 0x74, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x2f, 0x6d, 0x66, 0x61, 0x12, 0x5e, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, + 0x12, 0x1e, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, - 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2f, 0x6c, 0x6f, - 0x67, 0x6f, 0x75, 0x74, 0x12, 0x9a, 0x01, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x4d, 0x46, 0x41, 0x53, 0x65, 0x74, 0x75, 0x70, 0x12, 0x2b, 0x2e, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, - 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4d, 0x46, 0x41, 0x53, 0x65, - 0x74, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6e, 0x61, 0x6b, - 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, - 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x4d, 0x46, 0x41, 0x53, 0x65, 0x74, 0x75, 0x70, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, - 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2f, 0x6d, 0x66, - 0x61, 0x12, 0x5e, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x64, - 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, + 0x3a, 0x01, 0x2a, 0x22, 0x10, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x12, 0x7a, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x24, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x3a, 0x01, 0x2a, 0x22, - 0x10, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x12, 0x7a, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, - 0x72, 0x73, 0x12, 0x24, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, 0x76, 0x32, - 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x64, 0x64, 0x12, 0x65, 0x0a, - 0x0a, 0x42, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x61, - 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x24, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, - 0x2f, 0x62, 0x61, 0x6e, 0x12, 0x91, 0x01, 0x0a, 0x0f, 0x43, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x69, - 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x41, 0x70, - 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x27, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, - 0x65, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x27, 0x3a, 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, - 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, - 0x7b, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x7d, 0x12, 0x95, 0x01, 0x0a, 0x0f, 0x43, 0x61, 0x6c, - 0x6c, 0x52, 0x70, 0x63, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x26, 0x2e, 0x6e, + 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x01, 0x2a, 0x22, + 0x20, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x64, + 0x64, 0x12, 0x65, 0x0a, 0x0a, 0x42, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x1c, 0x2f, 0x76, 0x32, 0x2f, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x61, 0x6e, 0x12, 0x91, 0x01, 0x0a, 0x0f, 0x43, 0x61, 0x6c, + 0x6c, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x7d, - 0x12, 0x58, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x6c, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x2a, 0x0f, 0x2f, 0x76, 0x32, 0x2f, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x6c, 0x6c, 0x12, 0x6f, 0x0a, 0x0d, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x24, 0x2e, 0x6e, 0x61, - 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1a, 0x2a, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x91, 0x01, 0x0a, 0x15, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x61, - 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, - 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x2a, 0x13, 0x2f, 0x76, 0x32, 0x2f, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, - 0x80, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, - 0x12, 0x23, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, - 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x33, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, - 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x2f, 0x7b, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x69, - 0x64, 0x7d, 0x12, 0x69, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x7d, 0x12, 0x95, 0x01, 0x0a, + 0x0f, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x70, 0x63, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, + 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x41, 0x70, + 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, + 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x7b, 0x6d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x7d, 0x12, 0x58, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, + 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x2a, 0x0f, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x6c, 0x6c, 0x12, 0x6f, + 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x24, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x84, 0x01, - 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, - 0x72, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x20, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x2a, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, + 0x91, 0x01, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, + 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, + 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x2a, 0x13, + 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x72, + 0x69, 0x65, 0x6e, 0x64, 0x12, 0x23, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x72, 0x69, 0x65, + 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x2a, 0x29, 0x2f, 0x76, 0x32, 0x2f, 0x63, + 0x79, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, - 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x5c, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, + 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x2f, 0x7b, 0x66, 0x72, 0x69, 0x65, + 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x69, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x76, 0x32, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x69, 0x64, + 0x7d, 0x12, 0x84, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x55, 0x73, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x2a, 0x13, 0x2f, - 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x12, 0xd1, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x2a, 0x2e, 0x6e, 0x61, 0x6b, - 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x76, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x70, 0x5a, 0x3c, 0x2a, 0x3a, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x2a, 0x29, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x5c, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x15, 0x2a, 0x13, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0xd1, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x2a, + 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x22, 0x76, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x70, 0x5a, 0x3c, 0x2a, 0x3a, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x2f, 0x7b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, + 0x6b, 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2a, 0x30, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x7b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, - 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x7d, 0x2a, 0x30, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, - 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x7b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x75, 0x73, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x5d, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, - 0x2a, 0x13, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x75, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, - 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x2a, 0x1c, - 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6c, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x98, 0x01, 0x0a, - 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2e, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, - 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x2f, 0x7b, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x58, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x18, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x1a, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x2a, - 0x10, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x12, 0x8c, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, - 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x33, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x77, 0x61, - 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x7b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x7d, - 0x12, 0x92, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x38, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x32, 0x22, 0x30, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x64, - 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x72, 0x0a, 0x0d, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, - 0x64, 0x1a, 0x1d, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, - 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, - 0x64, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x6a, 0x0a, 0x0b, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x17, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, - 0x64, 0x1a, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x25, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x65, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x62, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, - 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x17, - 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, - 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x57, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, + 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x5d, 0x0a, 0x0e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x15, 0x2a, 0x13, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x75, 0x0a, 0x11, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, - 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x73, - 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, - 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x6e, 0x61, - 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, - 0x69, 0x73, 0x74, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x32, - 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x12, 0x56, 0x0a, 0x08, - 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x17, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, - 0x64, 0x1a, 0x11, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, - 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, - 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x67, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x73, 0x12, 0x17, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x1a, 0x19, 0x2e, 0x6e, 0x61, - 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, - 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, - 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x69, 0x0a, - 0x09, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, + 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1e, 0x2a, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, + 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x69, 0x64, 0x7d, + 0x12, 0x98, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2e, 0x2e, 0x6e, + 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x2f, 0x7b, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x58, 0x0a, 0x0a, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x18, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x6e, + 0x61, 0x6d, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x18, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x12, 0x2a, 0x10, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x12, 0x8c, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x6e, + 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, + 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, + 0x7d, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x7b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x6e, 0x61, 0x6b, + 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, + 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x22, 0x30, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, + 0x64, 0x7d, 0x2f, 0x64, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x72, 0x0a, 0x0d, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, - 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, - 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, - 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x77, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, - 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, + 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x1d, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x6a, 0x0a, + 0x0b, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x17, 0x2e, 0x6e, + 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x1a, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x32, 0x2f, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x69, + 0x64, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x62, 0x0a, 0x0a, 0x47, 0x65, 0x74, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, + 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x49, 0x64, 0x1a, 0x17, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x20, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x57, 0x0a, + 0x09, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, + 0x65, 0x6e, 0x64, 0x73, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, + 0x16, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x72, 0x69, + 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, + 0x1f, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, + 0x12, 0x56, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x17, 0x2e, 0x6e, + 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x1a, 0x11, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, + 0x12, 0x16, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x67, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x17, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x1a, + 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x12, 0x69, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, - 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x22, 0x24, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x12, 0x74, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x21, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x75, - 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x52, - 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, - 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x5b, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, - 0x12, 0x12, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x82, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x12, 0x1f, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x49, 0x64, 0x1a, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, - 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, - 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x7b, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, 0x2f, - 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0f, 0x47, 0x65, - 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x12, 0x26, 0x2e, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, - 0x65, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, - 0x67, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, - 0x27, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x83, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, - 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x72, - 0x63, 0x68, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x69, 0x61, 0x70, 0x2f, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x2f, 0x7b, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x9c, - 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6e, 0x61, 0x6b, - 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x6e, 0x0a, - 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, 0x6e, 0x61, 0x6b, 0x61, - 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x70, 0x69, 0x45, 0x6e, - 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0xa0, 0x01, - 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x29, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, - 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6c, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x12, 0x7c, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x73, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, - 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1f, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x6b, - 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x22, 0x2e, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1b, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x16, - 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x26, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x4c, 0x69, 0x73, 0x74, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x77, 0x0a, 0x0e, + 0x47, 0x65, 0x74, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, - 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, - 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x6d, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, - 0x23, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, - 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x73, - 0x74, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x32, 0x2f, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x7e, - 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1e, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, - 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, - 0x74, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x32, 0x2f, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x65, - 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x21, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x67, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, - 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4c, - 0x69, 0x73, 0x74, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x32, - 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x6d, - 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x73, 0x12, - 0x24, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, - 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, - 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x12, 0x7d, 0x0a, - 0x11, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, - 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x57, 0x0a, 0x09, - 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x18, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x18, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x75, 0x73, 0x65, 0x72, 0x12, 0x94, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x22, + 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x74, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x63, + 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x21, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x47, + 0x65, 0x74, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x22, 0x31, 0x2f, 0x76, 0x32, 0x2f, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, - 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x7a, 0x0a, 0x0c, - 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x66, 0x61, 0x12, 0x23, 0x2e, 0x6e, - 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x65, - 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x66, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x27, 0x22, 0x25, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x66, 0x61, 0x12, 0x69, 0x0a, 0x0c, 0x55, 0x6e, 0x62, 0x61, - 0x6e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, + 0x79, 0x1a, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x1b, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2f, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x5b, 0x0a, 0x09, 0x47, + 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x1a, 0x1a, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1a, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x82, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x1a, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, + 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x32, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x2f, 0x7b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x6b, + 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x8c, 0x01, + 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, + 0x72, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x65, 0x64, 0x67, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, + 0x74, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x2f, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x83, 0x01, 0x0a, + 0x0b, 0x47, 0x65, 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x6e, + 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1d, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x22, + 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x70, 0x2f, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, + 0x65, 0x2f, 0x7b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x76, 0x32, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, + 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0x6e, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, + 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, + 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x21, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x29, 0x2e, 0x6e, + 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, + 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x6c, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x12, 0x7c, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, + 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1f, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4c, 0x69, 0x73, + 0x74, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x76, 0x32, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x12, 0x6b, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x32, 0x2f, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, + 0x81, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x26, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x6d, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x26, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x20, 0x22, 0x1e, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, - 0x62, 0x61, 0x6e, 0x12, 0x71, 0x0a, 0x0c, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, - 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x26, - 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x7e, 0x0a, 0x0c, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, - 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x44, 0x65, - 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x74, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x7e, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, + 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x12, 0x65, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x12, 0x21, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x19, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x67, 0x0a, 0x0b, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, + 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6e, + 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, + 0x11, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x74, + 0x63, 0x68, 0x12, 0x6d, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, + 0x73, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x32, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, + 0x65, 0x12, 0x7d, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1c, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x20, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x57, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, + 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x12, 0x94, 0x01, 0x0a, 0x12, 0x50, 0x72, + 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x2b, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, + 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x22, 0x31, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, + 0x12, 0x83, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x4d, 0x66, 0x61, 0x12, 0x25, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x4d, 0x66, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, + 0x7b, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x6d, 0x66, 0x61, 0x2f, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x12, 0x7a, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x4d, 0x66, 0x61, 0x12, 0x23, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x4d, 0x66, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, - 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, - 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x0b, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, - 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, - 0x22, 0x25, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, - 0x6b, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x6f, 0x0a, 0x0b, 0x55, 0x6e, 0x6c, 0x69, 0x6e, - 0x6b, 0x41, 0x70, 0x70, 0x6c, 0x65, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, - 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x27, 0x22, 0x25, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, - 0x6e, 0x6b, 0x2f, 0x61, 0x70, 0x70, 0x6c, 0x65, 0x12, 0x75, 0x0a, 0x0e, 0x55, 0x6e, 0x6c, 0x69, - 0x6e, 0x6b, 0x46, 0x61, 0x63, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, - 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x30, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, - 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x66, 0x61, 0x63, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, - 0x8b, 0x01, 0x0a, 0x19, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x46, 0x61, 0x63, 0x65, 0x62, 0x6f, - 0x6f, 0x6b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x2e, + 0x70, 0x74, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x25, 0x2f, 0x76, 0x32, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x7b, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x6d, 0x66, 0x61, 0x2f, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x12, 0x69, 0x0a, 0x0c, 0x55, 0x6e, 0x62, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1e, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x62, 0x61, 0x6e, 0x12, 0x71, 0x0a, + 0x0c, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x22, 0x33, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, + 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x26, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, - 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x66, 0x61, 0x63, 0x65, 0x62, 0x6f, - 0x6f, 0x6b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x67, 0x61, 0x6d, 0x65, 0x12, 0x79, 0x0a, - 0x10, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x47, 0x61, 0x6d, 0x65, 0x43, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x22, 0x2a, 0x2f, 0x76, - 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x61, - 0x6d, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x71, 0x0a, 0x0c, 0x55, 0x6e, 0x6c, 0x69, - 0x6e, 0x6b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, - 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x28, 0x22, 0x26, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, - 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x12, 0x6f, 0x0a, 0x0b, 0x55, - 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x53, 0x74, 0x65, 0x61, 0x6d, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, - 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2d, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x25, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, - 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x73, 0x74, 0x65, 0x61, 0x6d, 0x12, 0x72, 0x0a, 0x0d, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x24, 0x2e, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x23, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, + 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x12, 0x7e, 0x0a, 0x0c, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x23, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x31, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, + 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x6f, 0x0a, 0x0b, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, + 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x25, 0x2f, 0x76, 0x32, 0x2f, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x12, 0x6f, 0x0a, 0x0b, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x41, 0x70, 0x70, 0x6c, 0x65, + 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x25, 0x2f, 0x76, 0x32, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x61, 0x70, 0x70, + 0x6c, 0x65, 0x12, 0x75, 0x0a, 0x0e, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x46, 0x61, 0x63, 0x65, + 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x22, + 0x28, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, + 0x2f, 0x66, 0x61, 0x63, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x8b, 0x01, 0x0a, 0x19, 0x55, 0x6e, + 0x6c, 0x69, 0x6e, 0x6b, 0x46, 0x61, 0x63, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, + 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x35, 0x22, 0x33, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, + 0x69, 0x6e, 0x6b, 0x2f, 0x66, 0x61, 0x63, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x74, 0x67, 0x61, 0x6d, 0x65, 0x12, 0x79, 0x0a, 0x10, 0x55, 0x6e, 0x6c, 0x69, 0x6e, + 0x6b, 0x47, 0x61, 0x6d, 0x65, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x6e, 0x61, + 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x32, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x22, 0x2a, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, - 0x12, 0x6c, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, - 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x21, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x9a, - 0x01, 0x0a, 0x12, 0x57, 0x72, 0x69, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x29, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1c, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x6b, 0x22, 0x3b, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x01, 0x2a, 0x1a, 0x30, 0x2f, 0x76, 0x32, 0x2f, 0x63, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x7b, - 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x6b, 0x65, 0x79, - 0x7d, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x42, 0xed, 0x02, 0x92, 0x41, - 0xc0, 0x02, 0x12, 0x7d, 0x0a, 0x15, 0x4e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x20, 0x63, 0x6f, 0x6e, - 0x73, 0x6f, 0x6c, 0x65, 0x20, 0x41, 0x50, 0x49, 0x20, 0x76, 0x32, 0x22, 0x5f, 0x0a, 0x21, 0x54, - 0x68, 0x65, 0x20, 0x4e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x20, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x73, 0x20, 0x26, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, - 0x12, 0x24, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, - 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x1a, 0x14, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x40, 0x68, 0x65, - 0x72, 0x6f, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x32, 0x03, 0x32, 0x2e, - 0x30, 0x1a, 0x0e, 0x31, 0x32, 0x37, 0x2e, 0x30, 0x2e, 0x30, 0x2e, 0x31, 0x3a, 0x37, 0x33, 0x35, - 0x31, 0x2a, 0x01, 0x01, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x5a, 0x33, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, - 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x0a, 0x20, 0x0a, 0x09, 0x42, - 0x65, 0x61, 0x72, 0x65, 0x72, 0x4a, 0x77, 0x74, 0x12, 0x13, 0x08, 0x02, 0x1a, 0x0d, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x02, 0x62, 0x0f, 0x0a, - 0x0d, 0x0a, 0x09, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x4a, 0x77, 0x74, 0x12, 0x00, 0x72, 0x42, - 0x0a, 0x23, 0x4e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x20, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x68, - 0x65, 0x72, 0x6f, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x6f, - 0x63, 0x73, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, + 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x12, 0x71, 0x0a, 0x0c, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x47, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x26, 0x2f, + 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x12, 0x6f, 0x0a, 0x0b, 0x55, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x53, + 0x74, 0x65, 0x61, 0x6d, 0x12, 0x19, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, + 0x25, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, + 0x2f, 0x73, 0x74, 0x65, 0x61, 0x6d, 0x12, 0x72, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x24, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, + 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, + 0x22, 0x18, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x6c, 0x0a, 0x0b, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x22, 0x2e, 0x6e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x01, 0x2a, + 0x22, 0x16, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x9a, 0x01, 0x0a, 0x12, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x29, 0x2e, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6e, 0x61, 0x6b, + 0x61, 0x6d, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x6b, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, + 0x3a, 0x01, 0x2a, 0x1a, 0x30, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x7b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x42, 0xed, 0x02, 0x92, 0x41, 0xc0, 0x02, 0x12, 0x7d, 0x0a, 0x15, + 0x4e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x20, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x20, 0x41, + 0x50, 0x49, 0x20, 0x76, 0x32, 0x22, 0x5f, 0x0a, 0x21, 0x54, 0x68, 0x65, 0x20, 0x4e, 0x61, 0x6b, + 0x61, 0x6d, 0x61, 0x20, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x73, 0x20, 0x26, 0x20, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x24, 0x68, 0x74, 0x74, 0x70, + 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x63, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, - 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x1a, 0x14, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x40, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x63, 0x6c, 0x61, + 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x1a, 0x0e, 0x31, 0x32, 0x37, + 0x2e, 0x30, 0x2e, 0x30, 0x2e, 0x31, 0x3a, 0x37, 0x33, 0x35, 0x31, 0x2a, 0x01, 0x01, 0x32, 0x10, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, + 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x5a, 0x33, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, + 0x68, 0x12, 0x02, 0x08, 0x01, 0x0a, 0x20, 0x0a, 0x09, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x4a, + 0x77, 0x74, 0x12, 0x13, 0x08, 0x02, 0x1a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x02, 0x62, 0x0f, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x65, 0x61, + 0x72, 0x65, 0x72, 0x4a, 0x77, 0x74, 0x12, 0x00, 0x72, 0x42, 0x0a, 0x23, 0x4e, 0x61, 0x6b, 0x61, + 0x6d, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x20, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x1b, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x63, 0x6c, + 0x61, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x6f, 0x63, 0x73, 0x5a, 0x27, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x63, 0x6c, + 0x61, 0x62, 0x73, 0x2f, 0x6e, 0x61, 0x6b, 0x61, 0x6d, 0x61, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -5942,7 +6024,7 @@ func file_console_proto_rawDescGZIP() []byte { } var file_console_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_console_proto_msgTypes = make([]protoimpl.MessageInfo, 67) +var file_console_proto_msgTypes = make([]protoimpl.MessageInfo, 68) var file_console_proto_goTypes = []interface{}{ (UserRole)(0), // 0: nakama.console.UserRole (StatusHealth)(0), // 1: nakama.console.StatusHealth @@ -5974,149 +6056,150 @@ var file_console_proto_goTypes = []interface{}{ (*DeleteGroupUserRequest)(nil), // 27: nakama.console.DeleteGroupUserRequest (*UpdateGroupUserStateRequest)(nil), // 28: nakama.console.UpdateGroupUserStateRequest (*ResetUserMfaRequest)(nil), // 29: nakama.console.ResetUserMfaRequest - (*DeleteLeaderboardRecordRequest)(nil), // 30: nakama.console.DeleteLeaderboardRecordRequest - (*DeleteStorageObjectRequest)(nil), // 31: nakama.console.DeleteStorageObjectRequest - (*DeleteWalletLedgerRequest)(nil), // 32: nakama.console.DeleteWalletLedgerRequest - (*Leaderboard)(nil), // 33: nakama.console.Leaderboard - (*LeaderboardListRequest)(nil), // 34: nakama.console.LeaderboardListRequest - (*LeaderboardList)(nil), // 35: nakama.console.LeaderboardList - (*LeaderboardRequest)(nil), // 36: nakama.console.LeaderboardRequest - (*ListAccountsRequest)(nil), // 37: nakama.console.ListAccountsRequest - (*ListChannelMessagesRequest)(nil), // 38: nakama.console.ListChannelMessagesRequest - (*ListGroupsRequest)(nil), // 39: nakama.console.ListGroupsRequest - (*ListMatchesRequest)(nil), // 40: nakama.console.ListMatchesRequest - (*ListPurchasesRequest)(nil), // 41: nakama.console.ListPurchasesRequest - (*ListSubscriptionsRequest)(nil), // 42: nakama.console.ListSubscriptionsRequest - (*ListStorageRequest)(nil), // 43: nakama.console.ListStorageRequest - (*MatchState)(nil), // 44: nakama.console.MatchState - (*MatchStateRequest)(nil), // 45: nakama.console.MatchStateRequest - (*DeleteChannelMessagesResponse)(nil), // 46: nakama.console.DeleteChannelMessagesResponse - (*StorageList)(nil), // 47: nakama.console.StorageList - (*StorageCollectionsList)(nil), // 48: nakama.console.StorageCollectionsList - (*UnlinkDeviceRequest)(nil), // 49: nakama.console.UnlinkDeviceRequest - (*UpdateAccountRequest)(nil), // 50: nakama.console.UpdateAccountRequest - (*UpdateGroupRequest)(nil), // 51: nakama.console.UpdateGroupRequest - (*Username)(nil), // 52: nakama.console.Username - (*UserList)(nil), // 53: nakama.console.UserList - (*StatusList)(nil), // 54: nakama.console.StatusList - (*RuntimeInfo)(nil), // 55: nakama.console.RuntimeInfo - (*WalletLedger)(nil), // 56: nakama.console.WalletLedger - (*WalletLedgerList)(nil), // 57: nakama.console.WalletLedgerList - (*WriteStorageObjectRequest)(nil), // 58: nakama.console.WriteStorageObjectRequest - (*GetWalletLedgerRequest)(nil), // 59: nakama.console.GetWalletLedgerRequest - (*GetPurchaseRequest)(nil), // 60: nakama.console.GetPurchaseRequest - (*GetSubscriptionRequest)(nil), // 61: nakama.console.GetSubscriptionRequest - (*StorageListObject)(nil), // 62: nakama.console.StorageListObject - (*MatchList_Match)(nil), // 63: nakama.console.MatchList.Match - nil, // 64: nakama.console.CallApiEndpointRequest.SessionVarsEntry - (*Config_Warning)(nil), // 65: nakama.console.Config.Warning - nil, // 66: nakama.console.UpdateAccountRequest.DeviceIdsEntry - (*UserList_User)(nil), // 67: nakama.console.UserList.User - (*StatusList_Status)(nil), // 68: nakama.console.StatusList.Status - (*RuntimeInfo_ModuleInfo)(nil), // 69: nakama.console.RuntimeInfo.ModuleInfo - (*api.Account)(nil), // 70: nakama.api.Account - (*timestamppb.Timestamp)(nil), // 71: google.protobuf.Timestamp - (*wrapperspb.BoolValue)(nil), // 72: google.protobuf.BoolValue - (*api.StorageObject)(nil), // 73: nakama.api.StorageObject - (*api.Friend)(nil), // 74: nakama.api.Friend - (*api.Group)(nil), // 75: nakama.api.Group - (*api.ChannelMessage)(nil), // 76: nakama.api.ChannelMessage - (*api.LeaderboardRecord)(nil), // 77: nakama.api.LeaderboardRecord - (*api.Notification)(nil), // 78: nakama.api.Notification - (*api.User)(nil), // 79: nakama.api.User - (*api.GroupUserList_GroupUser)(nil), // 80: nakama.api.GroupUserList.GroupUser - (*wrapperspb.StringValue)(nil), // 81: google.protobuf.StringValue - (*wrapperspb.Int32Value)(nil), // 82: google.protobuf.Int32Value - (*rtapi.UserPresence)(nil), // 83: nakama.realtime.UserPresence - (*api.Match)(nil), // 84: nakama.api.Match - (*emptypb.Empty)(nil), // 85: google.protobuf.Empty - (*api.ReadStorageObjectId)(nil), // 86: nakama.api.ReadStorageObjectId - (*api.ListLeaderboardRecordsRequest)(nil), // 87: nakama.api.ListLeaderboardRecordsRequest - (*api.FriendList)(nil), // 88: nakama.api.FriendList - (*api.GroupUserList)(nil), // 89: nakama.api.GroupUserList - (*api.UserGroupList)(nil), // 90: nakama.api.UserGroupList - (*api.ValidatedPurchase)(nil), // 91: nakama.api.ValidatedPurchase - (*api.ValidatedSubscription)(nil), // 92: nakama.api.ValidatedSubscription - (*api.LeaderboardRecordList)(nil), // 93: nakama.api.LeaderboardRecordList - (*api.ChannelMessageList)(nil), // 94: nakama.api.ChannelMessageList - (*api.PurchaseList)(nil), // 95: nakama.api.PurchaseList - (*api.SubscriptionList)(nil), // 96: nakama.api.SubscriptionList - (*api.StorageObjectAck)(nil), // 97: nakama.api.StorageObjectAck + (*RequireUserMfaRequest)(nil), // 30: nakama.console.RequireUserMfaRequest + (*DeleteLeaderboardRecordRequest)(nil), // 31: nakama.console.DeleteLeaderboardRecordRequest + (*DeleteStorageObjectRequest)(nil), // 32: nakama.console.DeleteStorageObjectRequest + (*DeleteWalletLedgerRequest)(nil), // 33: nakama.console.DeleteWalletLedgerRequest + (*Leaderboard)(nil), // 34: nakama.console.Leaderboard + (*LeaderboardListRequest)(nil), // 35: nakama.console.LeaderboardListRequest + (*LeaderboardList)(nil), // 36: nakama.console.LeaderboardList + (*LeaderboardRequest)(nil), // 37: nakama.console.LeaderboardRequest + (*ListAccountsRequest)(nil), // 38: nakama.console.ListAccountsRequest + (*ListChannelMessagesRequest)(nil), // 39: nakama.console.ListChannelMessagesRequest + (*ListGroupsRequest)(nil), // 40: nakama.console.ListGroupsRequest + (*ListMatchesRequest)(nil), // 41: nakama.console.ListMatchesRequest + (*ListPurchasesRequest)(nil), // 42: nakama.console.ListPurchasesRequest + (*ListSubscriptionsRequest)(nil), // 43: nakama.console.ListSubscriptionsRequest + (*ListStorageRequest)(nil), // 44: nakama.console.ListStorageRequest + (*MatchState)(nil), // 45: nakama.console.MatchState + (*MatchStateRequest)(nil), // 46: nakama.console.MatchStateRequest + (*DeleteChannelMessagesResponse)(nil), // 47: nakama.console.DeleteChannelMessagesResponse + (*StorageList)(nil), // 48: nakama.console.StorageList + (*StorageCollectionsList)(nil), // 49: nakama.console.StorageCollectionsList + (*UnlinkDeviceRequest)(nil), // 50: nakama.console.UnlinkDeviceRequest + (*UpdateAccountRequest)(nil), // 51: nakama.console.UpdateAccountRequest + (*UpdateGroupRequest)(nil), // 52: nakama.console.UpdateGroupRequest + (*Username)(nil), // 53: nakama.console.Username + (*UserList)(nil), // 54: nakama.console.UserList + (*StatusList)(nil), // 55: nakama.console.StatusList + (*RuntimeInfo)(nil), // 56: nakama.console.RuntimeInfo + (*WalletLedger)(nil), // 57: nakama.console.WalletLedger + (*WalletLedgerList)(nil), // 58: nakama.console.WalletLedgerList + (*WriteStorageObjectRequest)(nil), // 59: nakama.console.WriteStorageObjectRequest + (*GetWalletLedgerRequest)(nil), // 60: nakama.console.GetWalletLedgerRequest + (*GetPurchaseRequest)(nil), // 61: nakama.console.GetPurchaseRequest + (*GetSubscriptionRequest)(nil), // 62: nakama.console.GetSubscriptionRequest + (*StorageListObject)(nil), // 63: nakama.console.StorageListObject + (*MatchList_Match)(nil), // 64: nakama.console.MatchList.Match + nil, // 65: nakama.console.CallApiEndpointRequest.SessionVarsEntry + (*Config_Warning)(nil), // 66: nakama.console.Config.Warning + nil, // 67: nakama.console.UpdateAccountRequest.DeviceIdsEntry + (*UserList_User)(nil), // 68: nakama.console.UserList.User + (*StatusList_Status)(nil), // 69: nakama.console.StatusList.Status + (*RuntimeInfo_ModuleInfo)(nil), // 70: nakama.console.RuntimeInfo.ModuleInfo + (*api.Account)(nil), // 71: nakama.api.Account + (*timestamppb.Timestamp)(nil), // 72: google.protobuf.Timestamp + (*wrapperspb.BoolValue)(nil), // 73: google.protobuf.BoolValue + (*api.StorageObject)(nil), // 74: nakama.api.StorageObject + (*api.Friend)(nil), // 75: nakama.api.Friend + (*api.Group)(nil), // 76: nakama.api.Group + (*api.ChannelMessage)(nil), // 77: nakama.api.ChannelMessage + (*api.LeaderboardRecord)(nil), // 78: nakama.api.LeaderboardRecord + (*api.Notification)(nil), // 79: nakama.api.Notification + (*api.User)(nil), // 80: nakama.api.User + (*api.GroupUserList_GroupUser)(nil), // 81: nakama.api.GroupUserList.GroupUser + (*wrapperspb.StringValue)(nil), // 82: google.protobuf.StringValue + (*wrapperspb.Int32Value)(nil), // 83: google.protobuf.Int32Value + (*rtapi.UserPresence)(nil), // 84: nakama.realtime.UserPresence + (*api.Match)(nil), // 85: nakama.api.Match + (*emptypb.Empty)(nil), // 86: google.protobuf.Empty + (*api.ReadStorageObjectId)(nil), // 87: nakama.api.ReadStorageObjectId + (*api.ListLeaderboardRecordsRequest)(nil), // 88: nakama.api.ListLeaderboardRecordsRequest + (*api.FriendList)(nil), // 89: nakama.api.FriendList + (*api.GroupUserList)(nil), // 90: nakama.api.GroupUserList + (*api.UserGroupList)(nil), // 91: nakama.api.UserGroupList + (*api.ValidatedPurchase)(nil), // 92: nakama.api.ValidatedPurchase + (*api.ValidatedSubscription)(nil), // 93: nakama.api.ValidatedSubscription + (*api.LeaderboardRecordList)(nil), // 94: nakama.api.LeaderboardRecordList + (*api.ChannelMessageList)(nil), // 95: nakama.api.ChannelMessageList + (*api.PurchaseList)(nil), // 96: nakama.api.PurchaseList + (*api.SubscriptionList)(nil), // 97: nakama.api.SubscriptionList + (*api.StorageObjectAck)(nil), // 98: nakama.api.StorageObjectAck } var file_console_proto_depIdxs = []int32{ - 70, // 0: nakama.console.Account.account:type_name -> nakama.api.Account - 71, // 1: nakama.console.Account.disable_time:type_name -> google.protobuf.Timestamp - 72, // 2: nakama.console.AccountDeleteRequest.record_deletion:type_name -> google.protobuf.BoolValue - 70, // 3: nakama.console.AccountExport.account:type_name -> nakama.api.Account - 73, // 4: nakama.console.AccountExport.objects:type_name -> nakama.api.StorageObject - 74, // 5: nakama.console.AccountExport.friends:type_name -> nakama.api.Friend - 75, // 6: nakama.console.AccountExport.groups:type_name -> nakama.api.Group - 76, // 7: nakama.console.AccountExport.messages:type_name -> nakama.api.ChannelMessage - 77, // 8: nakama.console.AccountExport.leaderboard_records:type_name -> nakama.api.LeaderboardRecord - 78, // 9: nakama.console.AccountExport.notifications:type_name -> nakama.api.Notification - 56, // 10: nakama.console.AccountExport.wallet_ledgers:type_name -> nakama.console.WalletLedger - 79, // 11: nakama.console.AccountList.users:type_name -> nakama.api.User - 75, // 12: nakama.console.GroupList.groups:type_name -> nakama.api.Group - 75, // 13: nakama.console.GroupExport.group:type_name -> nakama.api.Group - 80, // 14: nakama.console.GroupExport.members:type_name -> nakama.api.GroupUserList.GroupUser - 63, // 15: nakama.console.MatchList.matches:type_name -> nakama.console.MatchList.Match + 71, // 0: nakama.console.Account.account:type_name -> nakama.api.Account + 72, // 1: nakama.console.Account.disable_time:type_name -> google.protobuf.Timestamp + 73, // 2: nakama.console.AccountDeleteRequest.record_deletion:type_name -> google.protobuf.BoolValue + 71, // 3: nakama.console.AccountExport.account:type_name -> nakama.api.Account + 74, // 4: nakama.console.AccountExport.objects:type_name -> nakama.api.StorageObject + 75, // 5: nakama.console.AccountExport.friends:type_name -> nakama.api.Friend + 76, // 6: nakama.console.AccountExport.groups:type_name -> nakama.api.Group + 77, // 7: nakama.console.AccountExport.messages:type_name -> nakama.api.ChannelMessage + 78, // 8: nakama.console.AccountExport.leaderboard_records:type_name -> nakama.api.LeaderboardRecord + 79, // 9: nakama.console.AccountExport.notifications:type_name -> nakama.api.Notification + 57, // 10: nakama.console.AccountExport.wallet_ledgers:type_name -> nakama.console.WalletLedger + 80, // 11: nakama.console.AccountList.users:type_name -> nakama.api.User + 76, // 12: nakama.console.GroupList.groups:type_name -> nakama.api.Group + 76, // 13: nakama.console.GroupExport.group:type_name -> nakama.api.Group + 81, // 14: nakama.console.GroupExport.members:type_name -> nakama.api.GroupUserList.GroupUser + 64, // 15: nakama.console.MatchList.matches:type_name -> nakama.console.MatchList.Match 0, // 16: nakama.console.AddUserRequest.role:type_name -> nakama.console.UserRole 3, // 17: nakama.console.ApiEndpointList.endpoints:type_name -> nakama.console.ApiEndpointDescriptor 3, // 18: nakama.console.ApiEndpointList.rpc_endpoints:type_name -> nakama.console.ApiEndpointDescriptor - 64, // 19: nakama.console.CallApiEndpointRequest.session_vars:type_name -> nakama.console.CallApiEndpointRequest.SessionVarsEntry - 65, // 20: nakama.console.Config.warnings:type_name -> nakama.console.Config.Warning - 81, // 21: nakama.console.ConsoleSession.mfa_code:type_name -> google.protobuf.StringValue - 71, // 22: nakama.console.DeleteChannelMessagesRequest.before:type_name -> google.protobuf.Timestamp - 71, // 23: nakama.console.Leaderboard.create_time:type_name -> google.protobuf.Timestamp - 71, // 24: nakama.console.Leaderboard.start_time:type_name -> google.protobuf.Timestamp - 71, // 25: nakama.console.Leaderboard.end_time:type_name -> google.protobuf.Timestamp - 33, // 26: nakama.console.LeaderboardList.leaderboards:type_name -> nakama.console.Leaderboard + 65, // 19: nakama.console.CallApiEndpointRequest.session_vars:type_name -> nakama.console.CallApiEndpointRequest.SessionVarsEntry + 66, // 20: nakama.console.Config.warnings:type_name -> nakama.console.Config.Warning + 82, // 21: nakama.console.ConsoleSession.mfa_code:type_name -> google.protobuf.StringValue + 72, // 22: nakama.console.DeleteChannelMessagesRequest.before:type_name -> google.protobuf.Timestamp + 72, // 23: nakama.console.Leaderboard.create_time:type_name -> google.protobuf.Timestamp + 72, // 24: nakama.console.Leaderboard.start_time:type_name -> google.protobuf.Timestamp + 72, // 25: nakama.console.Leaderboard.end_time:type_name -> google.protobuf.Timestamp + 34, // 26: nakama.console.LeaderboardList.leaderboards:type_name -> nakama.console.Leaderboard 2, // 27: nakama.console.ListChannelMessagesRequest.type:type_name -> nakama.console.ListChannelMessagesRequest.Type - 82, // 28: nakama.console.ListMatchesRequest.limit:type_name -> google.protobuf.Int32Value - 72, // 29: nakama.console.ListMatchesRequest.authoritative:type_name -> google.protobuf.BoolValue - 81, // 30: nakama.console.ListMatchesRequest.label:type_name -> google.protobuf.StringValue - 82, // 31: nakama.console.ListMatchesRequest.min_size:type_name -> google.protobuf.Int32Value - 82, // 32: nakama.console.ListMatchesRequest.max_size:type_name -> google.protobuf.Int32Value - 81, // 33: nakama.console.ListMatchesRequest.query:type_name -> google.protobuf.StringValue - 81, // 34: nakama.console.ListMatchesRequest.node:type_name -> google.protobuf.StringValue - 83, // 35: nakama.console.MatchState.presences:type_name -> nakama.realtime.UserPresence - 62, // 36: nakama.console.StorageList.objects:type_name -> nakama.console.StorageListObject - 81, // 37: nakama.console.UpdateAccountRequest.username:type_name -> google.protobuf.StringValue - 81, // 38: nakama.console.UpdateAccountRequest.display_name:type_name -> google.protobuf.StringValue - 81, // 39: nakama.console.UpdateAccountRequest.metadata:type_name -> google.protobuf.StringValue - 81, // 40: nakama.console.UpdateAccountRequest.avatar_url:type_name -> google.protobuf.StringValue - 81, // 41: nakama.console.UpdateAccountRequest.lang_tag:type_name -> google.protobuf.StringValue - 81, // 42: nakama.console.UpdateAccountRequest.location:type_name -> google.protobuf.StringValue - 81, // 43: nakama.console.UpdateAccountRequest.timezone:type_name -> google.protobuf.StringValue - 81, // 44: nakama.console.UpdateAccountRequest.custom_id:type_name -> google.protobuf.StringValue - 81, // 45: nakama.console.UpdateAccountRequest.email:type_name -> google.protobuf.StringValue - 81, // 46: nakama.console.UpdateAccountRequest.password:type_name -> google.protobuf.StringValue - 66, // 47: nakama.console.UpdateAccountRequest.device_ids:type_name -> nakama.console.UpdateAccountRequest.DeviceIdsEntry - 81, // 48: nakama.console.UpdateAccountRequest.wallet:type_name -> google.protobuf.StringValue - 81, // 49: nakama.console.UpdateGroupRequest.name:type_name -> google.protobuf.StringValue - 81, // 50: nakama.console.UpdateGroupRequest.description:type_name -> google.protobuf.StringValue - 81, // 51: nakama.console.UpdateGroupRequest.lang_tag:type_name -> google.protobuf.StringValue - 81, // 52: nakama.console.UpdateGroupRequest.metadata:type_name -> google.protobuf.StringValue - 81, // 53: nakama.console.UpdateGroupRequest.avatar_url:type_name -> google.protobuf.StringValue - 72, // 54: nakama.console.UpdateGroupRequest.open:type_name -> google.protobuf.BoolValue - 82, // 55: nakama.console.UpdateGroupRequest.max_count:type_name -> google.protobuf.Int32Value - 67, // 56: nakama.console.UserList.users:type_name -> nakama.console.UserList.User - 68, // 57: nakama.console.StatusList.nodes:type_name -> nakama.console.StatusList.Status - 71, // 58: nakama.console.StatusList.timestamp:type_name -> google.protobuf.Timestamp - 69, // 59: nakama.console.RuntimeInfo.go_modules:type_name -> nakama.console.RuntimeInfo.ModuleInfo - 69, // 60: nakama.console.RuntimeInfo.lua_modules:type_name -> nakama.console.RuntimeInfo.ModuleInfo - 69, // 61: nakama.console.RuntimeInfo.js_modules:type_name -> nakama.console.RuntimeInfo.ModuleInfo - 71, // 62: nakama.console.WalletLedger.create_time:type_name -> google.protobuf.Timestamp - 71, // 63: nakama.console.WalletLedger.update_time:type_name -> google.protobuf.Timestamp - 56, // 64: nakama.console.WalletLedgerList.items:type_name -> nakama.console.WalletLedger - 82, // 65: nakama.console.WriteStorageObjectRequest.permission_read:type_name -> google.protobuf.Int32Value - 82, // 66: nakama.console.WriteStorageObjectRequest.permission_write:type_name -> google.protobuf.Int32Value - 71, // 67: nakama.console.StorageListObject.create_time:type_name -> google.protobuf.Timestamp - 71, // 68: nakama.console.StorageListObject.update_time:type_name -> google.protobuf.Timestamp - 84, // 69: nakama.console.MatchList.Match.api_match:type_name -> nakama.api.Match + 83, // 28: nakama.console.ListMatchesRequest.limit:type_name -> google.protobuf.Int32Value + 73, // 29: nakama.console.ListMatchesRequest.authoritative:type_name -> google.protobuf.BoolValue + 82, // 30: nakama.console.ListMatchesRequest.label:type_name -> google.protobuf.StringValue + 83, // 31: nakama.console.ListMatchesRequest.min_size:type_name -> google.protobuf.Int32Value + 83, // 32: nakama.console.ListMatchesRequest.max_size:type_name -> google.protobuf.Int32Value + 82, // 33: nakama.console.ListMatchesRequest.query:type_name -> google.protobuf.StringValue + 82, // 34: nakama.console.ListMatchesRequest.node:type_name -> google.protobuf.StringValue + 84, // 35: nakama.console.MatchState.presences:type_name -> nakama.realtime.UserPresence + 63, // 36: nakama.console.StorageList.objects:type_name -> nakama.console.StorageListObject + 82, // 37: nakama.console.UpdateAccountRequest.username:type_name -> google.protobuf.StringValue + 82, // 38: nakama.console.UpdateAccountRequest.display_name:type_name -> google.protobuf.StringValue + 82, // 39: nakama.console.UpdateAccountRequest.metadata:type_name -> google.protobuf.StringValue + 82, // 40: nakama.console.UpdateAccountRequest.avatar_url:type_name -> google.protobuf.StringValue + 82, // 41: nakama.console.UpdateAccountRequest.lang_tag:type_name -> google.protobuf.StringValue + 82, // 42: nakama.console.UpdateAccountRequest.location:type_name -> google.protobuf.StringValue + 82, // 43: nakama.console.UpdateAccountRequest.timezone:type_name -> google.protobuf.StringValue + 82, // 44: nakama.console.UpdateAccountRequest.custom_id:type_name -> google.protobuf.StringValue + 82, // 45: nakama.console.UpdateAccountRequest.email:type_name -> google.protobuf.StringValue + 82, // 46: nakama.console.UpdateAccountRequest.password:type_name -> google.protobuf.StringValue + 67, // 47: nakama.console.UpdateAccountRequest.device_ids:type_name -> nakama.console.UpdateAccountRequest.DeviceIdsEntry + 82, // 48: nakama.console.UpdateAccountRequest.wallet:type_name -> google.protobuf.StringValue + 82, // 49: nakama.console.UpdateGroupRequest.name:type_name -> google.protobuf.StringValue + 82, // 50: nakama.console.UpdateGroupRequest.description:type_name -> google.protobuf.StringValue + 82, // 51: nakama.console.UpdateGroupRequest.lang_tag:type_name -> google.protobuf.StringValue + 82, // 52: nakama.console.UpdateGroupRequest.metadata:type_name -> google.protobuf.StringValue + 82, // 53: nakama.console.UpdateGroupRequest.avatar_url:type_name -> google.protobuf.StringValue + 73, // 54: nakama.console.UpdateGroupRequest.open:type_name -> google.protobuf.BoolValue + 83, // 55: nakama.console.UpdateGroupRequest.max_count:type_name -> google.protobuf.Int32Value + 68, // 56: nakama.console.UserList.users:type_name -> nakama.console.UserList.User + 69, // 57: nakama.console.StatusList.nodes:type_name -> nakama.console.StatusList.Status + 72, // 58: nakama.console.StatusList.timestamp:type_name -> google.protobuf.Timestamp + 70, // 59: nakama.console.RuntimeInfo.go_modules:type_name -> nakama.console.RuntimeInfo.ModuleInfo + 70, // 60: nakama.console.RuntimeInfo.lua_modules:type_name -> nakama.console.RuntimeInfo.ModuleInfo + 70, // 61: nakama.console.RuntimeInfo.js_modules:type_name -> nakama.console.RuntimeInfo.ModuleInfo + 72, // 62: nakama.console.WalletLedger.create_time:type_name -> google.protobuf.Timestamp + 72, // 63: nakama.console.WalletLedger.update_time:type_name -> google.protobuf.Timestamp + 57, // 64: nakama.console.WalletLedgerList.items:type_name -> nakama.console.WalletLedger + 83, // 65: nakama.console.WriteStorageObjectRequest.permission_read:type_name -> google.protobuf.Int32Value + 83, // 66: nakama.console.WriteStorageObjectRequest.permission_write:type_name -> google.protobuf.Int32Value + 72, // 67: nakama.console.StorageListObject.create_time:type_name -> google.protobuf.Timestamp + 72, // 68: nakama.console.StorageListObject.update_time:type_name -> google.protobuf.Timestamp + 85, // 69: nakama.console.MatchList.Match.api_match:type_name -> nakama.api.Match 0, // 70: nakama.console.UserList.User.role:type_name -> nakama.console.UserRole 1, // 71: nakama.console.StatusList.Status.health:type_name -> nakama.console.StatusHealth - 71, // 72: nakama.console.RuntimeInfo.ModuleInfo.mod_time:type_name -> google.protobuf.Timestamp + 72, // 72: nakama.console.RuntimeInfo.ModuleInfo.mod_time:type_name -> google.protobuf.Timestamp 16, // 73: nakama.console.Console.Authenticate:input_type -> nakama.console.AuthenticateRequest 19, // 74: nakama.console.Console.AuthenticateLogout:input_type -> nakama.console.AuthenticateLogoutRequest 17, // 75: nakama.console.Console.AuthenticateMFASetup:input_type -> nakama.console.AuthenticateMFASetupRequest @@ -6125,130 +6208,132 @@ var file_console_proto_depIdxs = []int32{ 7, // 78: nakama.console.Console.BanAccount:input_type -> nakama.console.AccountId 20, // 79: nakama.console.Console.CallApiEndpoint:input_type -> nakama.console.CallApiEndpointRequest 20, // 80: nakama.console.Console.CallRpcEndpoint:input_type -> nakama.console.CallApiEndpointRequest - 85, // 81: nakama.console.Console.DeleteAllData:input_type -> google.protobuf.Empty + 86, // 81: nakama.console.Console.DeleteAllData:input_type -> google.protobuf.Empty 5, // 82: nakama.console.Console.DeleteAccount:input_type -> nakama.console.AccountDeleteRequest 24, // 83: nakama.console.Console.DeleteChannelMessages:input_type -> nakama.console.DeleteChannelMessagesRequest 25, // 84: nakama.console.Console.DeleteFriend:input_type -> nakama.console.DeleteFriendRequest 26, // 85: nakama.console.Console.DeleteGroup:input_type -> nakama.console.DeleteGroupRequest 27, // 86: nakama.console.Console.DeleteGroupUser:input_type -> nakama.console.DeleteGroupUserRequest - 85, // 87: nakama.console.Console.DeleteStorage:input_type -> google.protobuf.Empty - 31, // 88: nakama.console.Console.DeleteStorageObject:input_type -> nakama.console.DeleteStorageObjectRequest - 85, // 89: nakama.console.Console.DeleteAccounts:input_type -> google.protobuf.Empty - 36, // 90: nakama.console.Console.DeleteLeaderboard:input_type -> nakama.console.LeaderboardRequest - 30, // 91: nakama.console.Console.DeleteLeaderboardRecord:input_type -> nakama.console.DeleteLeaderboardRecordRequest - 52, // 92: nakama.console.Console.DeleteUser:input_type -> nakama.console.Username - 32, // 93: nakama.console.Console.DeleteWalletLedger:input_type -> nakama.console.DeleteWalletLedgerRequest + 86, // 87: nakama.console.Console.DeleteStorage:input_type -> google.protobuf.Empty + 32, // 88: nakama.console.Console.DeleteStorageObject:input_type -> nakama.console.DeleteStorageObjectRequest + 86, // 89: nakama.console.Console.DeleteAccounts:input_type -> google.protobuf.Empty + 37, // 90: nakama.console.Console.DeleteLeaderboard:input_type -> nakama.console.LeaderboardRequest + 31, // 91: nakama.console.Console.DeleteLeaderboardRecord:input_type -> nakama.console.DeleteLeaderboardRecordRequest + 53, // 92: nakama.console.Console.DeleteUser:input_type -> nakama.console.Username + 33, // 93: nakama.console.Console.DeleteWalletLedger:input_type -> nakama.console.DeleteWalletLedgerRequest 28, // 94: nakama.console.Console.DemoteGroupMember:input_type -> nakama.console.UpdateGroupUserStateRequest 7, // 95: nakama.console.Console.ExportAccount:input_type -> nakama.console.AccountId 9, // 96: nakama.console.Console.ExportGroup:input_type -> nakama.console.GroupId 7, // 97: nakama.console.Console.GetAccount:input_type -> nakama.console.AccountId - 85, // 98: nakama.console.Console.GetConfig:input_type -> google.protobuf.Empty + 86, // 98: nakama.console.Console.GetConfig:input_type -> google.protobuf.Empty 7, // 99: nakama.console.Console.GetFriends:input_type -> nakama.console.AccountId 9, // 100: nakama.console.Console.GetGroup:input_type -> nakama.console.GroupId 9, // 101: nakama.console.Console.GetMembers:input_type -> nakama.console.GroupId 7, // 102: nakama.console.Console.GetGroups:input_type -> nakama.console.AccountId - 36, // 103: nakama.console.Console.GetLeaderboard:input_type -> nakama.console.LeaderboardRequest - 45, // 104: nakama.console.Console.GetMatchState:input_type -> nakama.console.MatchStateRequest - 85, // 105: nakama.console.Console.GetRuntime:input_type -> google.protobuf.Empty - 85, // 106: nakama.console.Console.GetStatus:input_type -> google.protobuf.Empty - 86, // 107: nakama.console.Console.GetStorage:input_type -> nakama.api.ReadStorageObjectId - 59, // 108: nakama.console.Console.GetWalletLedger:input_type -> nakama.console.GetWalletLedgerRequest - 60, // 109: nakama.console.Console.GetPurchase:input_type -> nakama.console.GetPurchaseRequest - 61, // 110: nakama.console.Console.GetSubscription:input_type -> nakama.console.GetSubscriptionRequest - 85, // 111: nakama.console.Console.ListApiEndpoints:input_type -> google.protobuf.Empty - 87, // 112: nakama.console.Console.ListLeaderboardRecords:input_type -> nakama.api.ListLeaderboardRecordsRequest - 34, // 113: nakama.console.Console.ListLeaderboards:input_type -> nakama.console.LeaderboardListRequest - 43, // 114: nakama.console.Console.ListStorage:input_type -> nakama.console.ListStorageRequest - 85, // 115: nakama.console.Console.ListStorageCollections:input_type -> google.protobuf.Empty - 37, // 116: nakama.console.Console.ListAccounts:input_type -> nakama.console.ListAccountsRequest - 38, // 117: nakama.console.Console.ListChannelMessages:input_type -> nakama.console.ListChannelMessagesRequest - 39, // 118: nakama.console.Console.ListGroups:input_type -> nakama.console.ListGroupsRequest - 40, // 119: nakama.console.Console.ListMatches:input_type -> nakama.console.ListMatchesRequest - 41, // 120: nakama.console.Console.ListPurchases:input_type -> nakama.console.ListPurchasesRequest - 42, // 121: nakama.console.Console.ListSubscriptions:input_type -> nakama.console.ListSubscriptionsRequest - 85, // 122: nakama.console.Console.ListUsers:input_type -> google.protobuf.Empty + 37, // 103: nakama.console.Console.GetLeaderboard:input_type -> nakama.console.LeaderboardRequest + 46, // 104: nakama.console.Console.GetMatchState:input_type -> nakama.console.MatchStateRequest + 86, // 105: nakama.console.Console.GetRuntime:input_type -> google.protobuf.Empty + 86, // 106: nakama.console.Console.GetStatus:input_type -> google.protobuf.Empty + 87, // 107: nakama.console.Console.GetStorage:input_type -> nakama.api.ReadStorageObjectId + 60, // 108: nakama.console.Console.GetWalletLedger:input_type -> nakama.console.GetWalletLedgerRequest + 61, // 109: nakama.console.Console.GetPurchase:input_type -> nakama.console.GetPurchaseRequest + 62, // 110: nakama.console.Console.GetSubscription:input_type -> nakama.console.GetSubscriptionRequest + 86, // 111: nakama.console.Console.ListApiEndpoints:input_type -> google.protobuf.Empty + 88, // 112: nakama.console.Console.ListLeaderboardRecords:input_type -> nakama.api.ListLeaderboardRecordsRequest + 35, // 113: nakama.console.Console.ListLeaderboards:input_type -> nakama.console.LeaderboardListRequest + 44, // 114: nakama.console.Console.ListStorage:input_type -> nakama.console.ListStorageRequest + 86, // 115: nakama.console.Console.ListStorageCollections:input_type -> google.protobuf.Empty + 38, // 116: nakama.console.Console.ListAccounts:input_type -> nakama.console.ListAccountsRequest + 39, // 117: nakama.console.Console.ListChannelMessages:input_type -> nakama.console.ListChannelMessagesRequest + 40, // 118: nakama.console.Console.ListGroups:input_type -> nakama.console.ListGroupsRequest + 41, // 119: nakama.console.Console.ListMatches:input_type -> nakama.console.ListMatchesRequest + 42, // 120: nakama.console.Console.ListPurchases:input_type -> nakama.console.ListPurchasesRequest + 43, // 121: nakama.console.Console.ListSubscriptions:input_type -> nakama.console.ListSubscriptionsRequest + 86, // 122: nakama.console.Console.ListUsers:input_type -> google.protobuf.Empty 28, // 123: nakama.console.Console.PromoteGroupMember:input_type -> nakama.console.UpdateGroupUserStateRequest - 29, // 124: nakama.console.Console.ResetUserMfa:input_type -> nakama.console.ResetUserMfaRequest - 7, // 125: nakama.console.Console.UnbanAccount:input_type -> nakama.console.AccountId - 7, // 126: nakama.console.Console.UnlinkCustom:input_type -> nakama.console.AccountId - 49, // 127: nakama.console.Console.UnlinkDevice:input_type -> nakama.console.UnlinkDeviceRequest - 7, // 128: nakama.console.Console.UnlinkEmail:input_type -> nakama.console.AccountId - 7, // 129: nakama.console.Console.UnlinkApple:input_type -> nakama.console.AccountId - 7, // 130: nakama.console.Console.UnlinkFacebook:input_type -> nakama.console.AccountId - 7, // 131: nakama.console.Console.UnlinkFacebookInstantGame:input_type -> nakama.console.AccountId - 7, // 132: nakama.console.Console.UnlinkGameCenter:input_type -> nakama.console.AccountId - 7, // 133: nakama.console.Console.UnlinkGoogle:input_type -> nakama.console.AccountId - 7, // 134: nakama.console.Console.UnlinkSteam:input_type -> nakama.console.AccountId - 50, // 135: nakama.console.Console.UpdateAccount:input_type -> nakama.console.UpdateAccountRequest - 51, // 136: nakama.console.Console.UpdateGroup:input_type -> nakama.console.UpdateGroupRequest - 58, // 137: nakama.console.Console.WriteStorageObject:input_type -> nakama.console.WriteStorageObjectRequest - 23, // 138: nakama.console.Console.Authenticate:output_type -> nakama.console.ConsoleSession - 85, // 139: nakama.console.Console.AuthenticateLogout:output_type -> google.protobuf.Empty - 18, // 140: nakama.console.Console.AuthenticateMFASetup:output_type -> nakama.console.AuthenticateMFASetupResponse - 85, // 141: nakama.console.Console.AddUser:output_type -> google.protobuf.Empty - 85, // 142: nakama.console.Console.AddGroupUsers:output_type -> google.protobuf.Empty - 85, // 143: nakama.console.Console.BanAccount:output_type -> google.protobuf.Empty - 21, // 144: nakama.console.Console.CallApiEndpoint:output_type -> nakama.console.CallApiEndpointResponse - 21, // 145: nakama.console.Console.CallRpcEndpoint:output_type -> nakama.console.CallApiEndpointResponse - 85, // 146: nakama.console.Console.DeleteAllData:output_type -> google.protobuf.Empty - 85, // 147: nakama.console.Console.DeleteAccount:output_type -> google.protobuf.Empty - 46, // 148: nakama.console.Console.DeleteChannelMessages:output_type -> nakama.console.DeleteChannelMessagesResponse - 85, // 149: nakama.console.Console.DeleteFriend:output_type -> google.protobuf.Empty - 85, // 150: nakama.console.Console.DeleteGroup:output_type -> google.protobuf.Empty - 85, // 151: nakama.console.Console.DeleteGroupUser:output_type -> google.protobuf.Empty - 85, // 152: nakama.console.Console.DeleteStorage:output_type -> google.protobuf.Empty - 85, // 153: nakama.console.Console.DeleteStorageObject:output_type -> google.protobuf.Empty - 85, // 154: nakama.console.Console.DeleteAccounts:output_type -> google.protobuf.Empty - 85, // 155: nakama.console.Console.DeleteLeaderboard:output_type -> google.protobuf.Empty - 85, // 156: nakama.console.Console.DeleteLeaderboardRecord:output_type -> google.protobuf.Empty - 85, // 157: nakama.console.Console.DeleteUser:output_type -> google.protobuf.Empty - 85, // 158: nakama.console.Console.DeleteWalletLedger:output_type -> google.protobuf.Empty - 85, // 159: nakama.console.Console.DemoteGroupMember:output_type -> google.protobuf.Empty - 6, // 160: nakama.console.Console.ExportAccount:output_type -> nakama.console.AccountExport - 11, // 161: nakama.console.Console.ExportGroup:output_type -> nakama.console.GroupExport - 4, // 162: nakama.console.Console.GetAccount:output_type -> nakama.console.Account - 22, // 163: nakama.console.Console.GetConfig:output_type -> nakama.console.Config - 88, // 164: nakama.console.Console.GetFriends:output_type -> nakama.api.FriendList - 75, // 165: nakama.console.Console.GetGroup:output_type -> nakama.api.Group - 89, // 166: nakama.console.Console.GetMembers:output_type -> nakama.api.GroupUserList - 90, // 167: nakama.console.Console.GetGroups:output_type -> nakama.api.UserGroupList - 33, // 168: nakama.console.Console.GetLeaderboard:output_type -> nakama.console.Leaderboard - 44, // 169: nakama.console.Console.GetMatchState:output_type -> nakama.console.MatchState - 55, // 170: nakama.console.Console.GetRuntime:output_type -> nakama.console.RuntimeInfo - 54, // 171: nakama.console.Console.GetStatus:output_type -> nakama.console.StatusList - 73, // 172: nakama.console.Console.GetStorage:output_type -> nakama.api.StorageObject - 57, // 173: nakama.console.Console.GetWalletLedger:output_type -> nakama.console.WalletLedgerList - 91, // 174: nakama.console.Console.GetPurchase:output_type -> nakama.api.ValidatedPurchase - 92, // 175: nakama.console.Console.GetSubscription:output_type -> nakama.api.ValidatedSubscription - 15, // 176: nakama.console.Console.ListApiEndpoints:output_type -> nakama.console.ApiEndpointList - 93, // 177: nakama.console.Console.ListLeaderboardRecords:output_type -> nakama.api.LeaderboardRecordList - 35, // 178: nakama.console.Console.ListLeaderboards:output_type -> nakama.console.LeaderboardList - 47, // 179: nakama.console.Console.ListStorage:output_type -> nakama.console.StorageList - 48, // 180: nakama.console.Console.ListStorageCollections:output_type -> nakama.console.StorageCollectionsList - 8, // 181: nakama.console.Console.ListAccounts:output_type -> nakama.console.AccountList - 94, // 182: nakama.console.Console.ListChannelMessages:output_type -> nakama.api.ChannelMessageList - 10, // 183: nakama.console.Console.ListGroups:output_type -> nakama.console.GroupList - 12, // 184: nakama.console.Console.ListMatches:output_type -> nakama.console.MatchList - 95, // 185: nakama.console.Console.ListPurchases:output_type -> nakama.api.PurchaseList - 96, // 186: nakama.console.Console.ListSubscriptions:output_type -> nakama.api.SubscriptionList - 53, // 187: nakama.console.Console.ListUsers:output_type -> nakama.console.UserList - 85, // 188: nakama.console.Console.PromoteGroupMember:output_type -> google.protobuf.Empty - 85, // 189: nakama.console.Console.ResetUserMfa:output_type -> google.protobuf.Empty - 85, // 190: nakama.console.Console.UnbanAccount:output_type -> google.protobuf.Empty - 85, // 191: nakama.console.Console.UnlinkCustom:output_type -> google.protobuf.Empty - 85, // 192: nakama.console.Console.UnlinkDevice:output_type -> google.protobuf.Empty - 85, // 193: nakama.console.Console.UnlinkEmail:output_type -> google.protobuf.Empty - 85, // 194: nakama.console.Console.UnlinkApple:output_type -> google.protobuf.Empty - 85, // 195: nakama.console.Console.UnlinkFacebook:output_type -> google.protobuf.Empty - 85, // 196: nakama.console.Console.UnlinkFacebookInstantGame:output_type -> google.protobuf.Empty - 85, // 197: nakama.console.Console.UnlinkGameCenter:output_type -> google.protobuf.Empty - 85, // 198: nakama.console.Console.UnlinkGoogle:output_type -> google.protobuf.Empty - 85, // 199: nakama.console.Console.UnlinkSteam:output_type -> google.protobuf.Empty - 85, // 200: nakama.console.Console.UpdateAccount:output_type -> google.protobuf.Empty - 85, // 201: nakama.console.Console.UpdateGroup:output_type -> google.protobuf.Empty - 97, // 202: nakama.console.Console.WriteStorageObject:output_type -> nakama.api.StorageObjectAck - 138, // [138:203] is the sub-list for method output_type - 73, // [73:138] is the sub-list for method input_type + 30, // 124: nakama.console.Console.RequireUserMfa:input_type -> nakama.console.RequireUserMfaRequest + 29, // 125: nakama.console.Console.ResetUserMfa:input_type -> nakama.console.ResetUserMfaRequest + 7, // 126: nakama.console.Console.UnbanAccount:input_type -> nakama.console.AccountId + 7, // 127: nakama.console.Console.UnlinkCustom:input_type -> nakama.console.AccountId + 50, // 128: nakama.console.Console.UnlinkDevice:input_type -> nakama.console.UnlinkDeviceRequest + 7, // 129: nakama.console.Console.UnlinkEmail:input_type -> nakama.console.AccountId + 7, // 130: nakama.console.Console.UnlinkApple:input_type -> nakama.console.AccountId + 7, // 131: nakama.console.Console.UnlinkFacebook:input_type -> nakama.console.AccountId + 7, // 132: nakama.console.Console.UnlinkFacebookInstantGame:input_type -> nakama.console.AccountId + 7, // 133: nakama.console.Console.UnlinkGameCenter:input_type -> nakama.console.AccountId + 7, // 134: nakama.console.Console.UnlinkGoogle:input_type -> nakama.console.AccountId + 7, // 135: nakama.console.Console.UnlinkSteam:input_type -> nakama.console.AccountId + 51, // 136: nakama.console.Console.UpdateAccount:input_type -> nakama.console.UpdateAccountRequest + 52, // 137: nakama.console.Console.UpdateGroup:input_type -> nakama.console.UpdateGroupRequest + 59, // 138: nakama.console.Console.WriteStorageObject:input_type -> nakama.console.WriteStorageObjectRequest + 23, // 139: nakama.console.Console.Authenticate:output_type -> nakama.console.ConsoleSession + 86, // 140: nakama.console.Console.AuthenticateLogout:output_type -> google.protobuf.Empty + 18, // 141: nakama.console.Console.AuthenticateMFASetup:output_type -> nakama.console.AuthenticateMFASetupResponse + 86, // 142: nakama.console.Console.AddUser:output_type -> google.protobuf.Empty + 86, // 143: nakama.console.Console.AddGroupUsers:output_type -> google.protobuf.Empty + 86, // 144: nakama.console.Console.BanAccount:output_type -> google.protobuf.Empty + 21, // 145: nakama.console.Console.CallApiEndpoint:output_type -> nakama.console.CallApiEndpointResponse + 21, // 146: nakama.console.Console.CallRpcEndpoint:output_type -> nakama.console.CallApiEndpointResponse + 86, // 147: nakama.console.Console.DeleteAllData:output_type -> google.protobuf.Empty + 86, // 148: nakama.console.Console.DeleteAccount:output_type -> google.protobuf.Empty + 47, // 149: nakama.console.Console.DeleteChannelMessages:output_type -> nakama.console.DeleteChannelMessagesResponse + 86, // 150: nakama.console.Console.DeleteFriend:output_type -> google.protobuf.Empty + 86, // 151: nakama.console.Console.DeleteGroup:output_type -> google.protobuf.Empty + 86, // 152: nakama.console.Console.DeleteGroupUser:output_type -> google.protobuf.Empty + 86, // 153: nakama.console.Console.DeleteStorage:output_type -> google.protobuf.Empty + 86, // 154: nakama.console.Console.DeleteStorageObject:output_type -> google.protobuf.Empty + 86, // 155: nakama.console.Console.DeleteAccounts:output_type -> google.protobuf.Empty + 86, // 156: nakama.console.Console.DeleteLeaderboard:output_type -> google.protobuf.Empty + 86, // 157: nakama.console.Console.DeleteLeaderboardRecord:output_type -> google.protobuf.Empty + 86, // 158: nakama.console.Console.DeleteUser:output_type -> google.protobuf.Empty + 86, // 159: nakama.console.Console.DeleteWalletLedger:output_type -> google.protobuf.Empty + 86, // 160: nakama.console.Console.DemoteGroupMember:output_type -> google.protobuf.Empty + 6, // 161: nakama.console.Console.ExportAccount:output_type -> nakama.console.AccountExport + 11, // 162: nakama.console.Console.ExportGroup:output_type -> nakama.console.GroupExport + 4, // 163: nakama.console.Console.GetAccount:output_type -> nakama.console.Account + 22, // 164: nakama.console.Console.GetConfig:output_type -> nakama.console.Config + 89, // 165: nakama.console.Console.GetFriends:output_type -> nakama.api.FriendList + 76, // 166: nakama.console.Console.GetGroup:output_type -> nakama.api.Group + 90, // 167: nakama.console.Console.GetMembers:output_type -> nakama.api.GroupUserList + 91, // 168: nakama.console.Console.GetGroups:output_type -> nakama.api.UserGroupList + 34, // 169: nakama.console.Console.GetLeaderboard:output_type -> nakama.console.Leaderboard + 45, // 170: nakama.console.Console.GetMatchState:output_type -> nakama.console.MatchState + 56, // 171: nakama.console.Console.GetRuntime:output_type -> nakama.console.RuntimeInfo + 55, // 172: nakama.console.Console.GetStatus:output_type -> nakama.console.StatusList + 74, // 173: nakama.console.Console.GetStorage:output_type -> nakama.api.StorageObject + 58, // 174: nakama.console.Console.GetWalletLedger:output_type -> nakama.console.WalletLedgerList + 92, // 175: nakama.console.Console.GetPurchase:output_type -> nakama.api.ValidatedPurchase + 93, // 176: nakama.console.Console.GetSubscription:output_type -> nakama.api.ValidatedSubscription + 15, // 177: nakama.console.Console.ListApiEndpoints:output_type -> nakama.console.ApiEndpointList + 94, // 178: nakama.console.Console.ListLeaderboardRecords:output_type -> nakama.api.LeaderboardRecordList + 36, // 179: nakama.console.Console.ListLeaderboards:output_type -> nakama.console.LeaderboardList + 48, // 180: nakama.console.Console.ListStorage:output_type -> nakama.console.StorageList + 49, // 181: nakama.console.Console.ListStorageCollections:output_type -> nakama.console.StorageCollectionsList + 8, // 182: nakama.console.Console.ListAccounts:output_type -> nakama.console.AccountList + 95, // 183: nakama.console.Console.ListChannelMessages:output_type -> nakama.api.ChannelMessageList + 10, // 184: nakama.console.Console.ListGroups:output_type -> nakama.console.GroupList + 12, // 185: nakama.console.Console.ListMatches:output_type -> nakama.console.MatchList + 96, // 186: nakama.console.Console.ListPurchases:output_type -> nakama.api.PurchaseList + 97, // 187: nakama.console.Console.ListSubscriptions:output_type -> nakama.api.SubscriptionList + 54, // 188: nakama.console.Console.ListUsers:output_type -> nakama.console.UserList + 86, // 189: nakama.console.Console.PromoteGroupMember:output_type -> google.protobuf.Empty + 86, // 190: nakama.console.Console.RequireUserMfa:output_type -> google.protobuf.Empty + 86, // 191: nakama.console.Console.ResetUserMfa:output_type -> google.protobuf.Empty + 86, // 192: nakama.console.Console.UnbanAccount:output_type -> google.protobuf.Empty + 86, // 193: nakama.console.Console.UnlinkCustom:output_type -> google.protobuf.Empty + 86, // 194: nakama.console.Console.UnlinkDevice:output_type -> google.protobuf.Empty + 86, // 195: nakama.console.Console.UnlinkEmail:output_type -> google.protobuf.Empty + 86, // 196: nakama.console.Console.UnlinkApple:output_type -> google.protobuf.Empty + 86, // 197: nakama.console.Console.UnlinkFacebook:output_type -> google.protobuf.Empty + 86, // 198: nakama.console.Console.UnlinkFacebookInstantGame:output_type -> google.protobuf.Empty + 86, // 199: nakama.console.Console.UnlinkGameCenter:output_type -> google.protobuf.Empty + 86, // 200: nakama.console.Console.UnlinkGoogle:output_type -> google.protobuf.Empty + 86, // 201: nakama.console.Console.UnlinkSteam:output_type -> google.protobuf.Empty + 86, // 202: nakama.console.Console.UpdateAccount:output_type -> google.protobuf.Empty + 86, // 203: nakama.console.Console.UpdateGroup:output_type -> google.protobuf.Empty + 98, // 204: nakama.console.Console.WriteStorageObject:output_type -> nakama.api.StorageObjectAck + 139, // [139:205] is the sub-list for method output_type + 73, // [73:139] is the sub-list for method input_type 73, // [73:73] is the sub-list for extension type_name 73, // [73:73] is the sub-list for extension extendee 0, // [0:73] is the sub-list for field type_name @@ -6585,7 +6670,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteLeaderboardRecordRequest); i { + switch v := v.(*RequireUserMfaRequest); i { case 0: return &v.state case 1: @@ -6597,7 +6682,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteStorageObjectRequest); i { + switch v := v.(*DeleteLeaderboardRecordRequest); i { case 0: return &v.state case 1: @@ -6609,7 +6694,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteWalletLedgerRequest); i { + switch v := v.(*DeleteStorageObjectRequest); i { case 0: return &v.state case 1: @@ -6621,7 +6706,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Leaderboard); i { + switch v := v.(*DeleteWalletLedgerRequest); i { case 0: return &v.state case 1: @@ -6633,7 +6718,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LeaderboardListRequest); i { + switch v := v.(*Leaderboard); i { case 0: return &v.state case 1: @@ -6645,7 +6730,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LeaderboardList); i { + switch v := v.(*LeaderboardListRequest); i { case 0: return &v.state case 1: @@ -6657,7 +6742,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LeaderboardRequest); i { + switch v := v.(*LeaderboardList); i { case 0: return &v.state case 1: @@ -6669,7 +6754,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAccountsRequest); i { + switch v := v.(*LeaderboardRequest); i { case 0: return &v.state case 1: @@ -6681,7 +6766,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListChannelMessagesRequest); i { + switch v := v.(*ListAccountsRequest); i { case 0: return &v.state case 1: @@ -6693,7 +6778,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGroupsRequest); i { + switch v := v.(*ListChannelMessagesRequest); i { case 0: return &v.state case 1: @@ -6705,7 +6790,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListMatchesRequest); i { + switch v := v.(*ListGroupsRequest); i { case 0: return &v.state case 1: @@ -6717,7 +6802,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPurchasesRequest); i { + switch v := v.(*ListMatchesRequest); i { case 0: return &v.state case 1: @@ -6729,7 +6814,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSubscriptionsRequest); i { + switch v := v.(*ListPurchasesRequest); i { case 0: return &v.state case 1: @@ -6741,7 +6826,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListStorageRequest); i { + switch v := v.(*ListSubscriptionsRequest); i { case 0: return &v.state case 1: @@ -6753,7 +6838,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MatchState); i { + switch v := v.(*ListStorageRequest); i { case 0: return &v.state case 1: @@ -6765,7 +6850,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MatchStateRequest); i { + switch v := v.(*MatchState); i { case 0: return &v.state case 1: @@ -6777,7 +6862,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteChannelMessagesResponse); i { + switch v := v.(*MatchStateRequest); i { case 0: return &v.state case 1: @@ -6789,7 +6874,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageList); i { + switch v := v.(*DeleteChannelMessagesResponse); i { case 0: return &v.state case 1: @@ -6801,7 +6886,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageCollectionsList); i { + switch v := v.(*StorageList); i { case 0: return &v.state case 1: @@ -6813,7 +6898,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnlinkDeviceRequest); i { + switch v := v.(*StorageCollectionsList); i { case 0: return &v.state case 1: @@ -6825,7 +6910,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateAccountRequest); i { + switch v := v.(*UnlinkDeviceRequest); i { case 0: return &v.state case 1: @@ -6837,7 +6922,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGroupRequest); i { + switch v := v.(*UpdateAccountRequest); i { case 0: return &v.state case 1: @@ -6849,7 +6934,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Username); i { + switch v := v.(*UpdateGroupRequest); i { case 0: return &v.state case 1: @@ -6861,7 +6946,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserList); i { + switch v := v.(*Username); i { case 0: return &v.state case 1: @@ -6873,7 +6958,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusList); i { + switch v := v.(*UserList); i { case 0: return &v.state case 1: @@ -6885,7 +6970,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RuntimeInfo); i { + switch v := v.(*StatusList); i { case 0: return &v.state case 1: @@ -6897,7 +6982,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WalletLedger); i { + switch v := v.(*RuntimeInfo); i { case 0: return &v.state case 1: @@ -6909,7 +6994,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WalletLedgerList); i { + switch v := v.(*WalletLedger); i { case 0: return &v.state case 1: @@ -6921,7 +7006,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteStorageObjectRequest); i { + switch v := v.(*WalletLedgerList); i { case 0: return &v.state case 1: @@ -6933,7 +7018,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetWalletLedgerRequest); i { + switch v := v.(*WriteStorageObjectRequest); i { case 0: return &v.state case 1: @@ -6945,7 +7030,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPurchaseRequest); i { + switch v := v.(*GetWalletLedgerRequest); i { case 0: return &v.state case 1: @@ -6957,7 +7042,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSubscriptionRequest); i { + switch v := v.(*GetPurchaseRequest); i { case 0: return &v.state case 1: @@ -6969,7 +7054,7 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StorageListObject); i { + switch v := v.(*GetSubscriptionRequest); i { case 0: return &v.state case 1: @@ -6981,6 +7066,18 @@ func file_console_proto_init() { } } file_console_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StorageListObject); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_console_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MatchList_Match); i { case 0: return &v.state @@ -6992,7 +7089,7 @@ func file_console_proto_init() { return nil } } - file_console_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_console_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Config_Warning); i { case 0: return &v.state @@ -7004,7 +7101,7 @@ func file_console_proto_init() { return nil } } - file_console_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_console_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserList_User); i { case 0: return &v.state @@ -7016,7 +7113,7 @@ func file_console_proto_init() { return nil } } - file_console_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_console_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StatusList_Status); i { case 0: return &v.state @@ -7028,7 +7125,7 @@ func file_console_proto_init() { return nil } } - file_console_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_console_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RuntimeInfo_ModuleInfo); i { case 0: return &v.state @@ -7047,7 +7144,7 @@ func file_console_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_console_proto_rawDesc, NumEnums: 3, - NumMessages: 67, + NumMessages: 68, NumExtensions: 0, NumServices: 1, }, diff --git a/console/console.pb.gw.go b/console/console.pb.gw.go index 6bb46b9e6..b5d97fbec 100644 --- a/console/console.pb.gw.go +++ b/console/console.pb.gw.go @@ -2579,6 +2579,74 @@ func local_request_Console_PromoteGroupMember_0(ctx context.Context, marshaler r } +func request_Console_RequireUserMfa_0(ctx context.Context, marshaler runtime.Marshaler, client ConsoleClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RequireUserMfaRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["username"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "username") + } + + protoReq.Username, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "username", err) + } + + msg, err := client.RequireUserMfa(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Console_RequireUserMfa_0(ctx context.Context, marshaler runtime.Marshaler, server ConsoleServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RequireUserMfaRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["username"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "username") + } + + protoReq.Username, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "username", err) + } + + msg, err := server.RequireUserMfa(ctx, &protoReq) + return msg, metadata, err + +} + func request_Console_ResetUserMfa_0(ctx context.Context, marshaler runtime.Marshaler, client ConsoleClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ResetUserMfaRequest var metadata runtime.ServerMetadata @@ -4717,6 +4785,31 @@ func RegisterConsoleHandlerServer(ctx context.Context, mux *runtime.ServeMux, se }) + mux.Handle("POST", pattern_Console_RequireUserMfa_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/nakama.console.Console/RequireUserMfa", runtime.WithHTTPPathPattern("/v2/console/user/{username}/mfa/require")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Console_RequireUserMfa_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Console_RequireUserMfa_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("POST", pattern_Console_ResetUserMfa_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -4725,7 +4818,7 @@ func RegisterConsoleHandlerServer(ctx context.Context, mux *runtime.ServeMux, se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/nakama.console.Console/ResetUserMfa", runtime.WithHTTPPathPattern("/v2/console/user/{username}/reset/mfa")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/nakama.console.Console/ResetUserMfa", runtime.WithHTTPPathPattern("/v2/console/user/{username}/mfa/reset")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6252,13 +6345,35 @@ func RegisterConsoleHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl }) + mux.Handle("POST", pattern_Console_RequireUserMfa_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/nakama.console.Console/RequireUserMfa", runtime.WithHTTPPathPattern("/v2/console/user/{username}/mfa/require")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Console_RequireUserMfa_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Console_RequireUserMfa_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("POST", pattern_Console_ResetUserMfa_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/nakama.console.Console/ResetUserMfa", runtime.WithHTTPPathPattern("/v2/console/user/{username}/reset/mfa")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/nakama.console.Console/ResetUserMfa", runtime.WithHTTPPathPattern("/v2/console/user/{username}/mfa/reset")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -6668,7 +6783,9 @@ var ( pattern_Console_PromoteGroupMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"v2", "console", "group", "group_id", "account", "id", "promote"}, "")) - pattern_Console_ResetUserMfa_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"v2", "console", "user", "username", "reset", "mfa"}, "")) + pattern_Console_RequireUserMfa_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"v2", "console", "user", "username", "mfa", "require"}, "")) + + pattern_Console_ResetUserMfa_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"v2", "console", "user", "username", "mfa", "reset"}, "")) pattern_Console_UnbanAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v2", "console", "account", "id", "unban"}, "")) @@ -6802,6 +6919,8 @@ var ( forward_Console_PromoteGroupMember_0 = runtime.ForwardResponseMessage + forward_Console_RequireUserMfa_0 = runtime.ForwardResponseMessage + forward_Console_ResetUserMfa_0 = runtime.ForwardResponseMessage forward_Console_UnbanAccount_0 = runtime.ForwardResponseMessage diff --git a/console/console.proto b/console/console.proto index 91e8cbce4..5880d36e1 100644 --- a/console/console.proto +++ b/console/console.proto @@ -362,9 +362,17 @@ service Console { option (google.api.http).post = "/v2/console/group/{group_id}/account/{id}/promote"; } + // Sets the user's MFA as required or not required. + rpc RequireUserMfa (RequireUserMfaRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v2/console/user/{username}/mfa/require", + body: "*" + }; + } + // Reset a user's multi-factor authentication credentials. rpc ResetUserMfa (ResetUserMfaRequest) returns (google.protobuf.Empty) { - option (google.api.http).post = "/v2/console/user/{username}/reset/mfa"; + option (google.api.http).post = "/v2/console/user/{username}/mfa/reset"; } // Unban a user. @@ -685,6 +693,14 @@ message ResetUserMfaRequest { string username = 1; } +// Make a user's mfa required or not. +message RequireUserMfaRequest { + // User username. + string username = 1; + // Required. + bool required = 2; +} + // Remove a leaderboard record message DeleteLeaderboardRecordRequest { // Leaderboard ID. @@ -984,8 +1000,10 @@ message UserList { string email = 2; // Role of the user; UserRole role = 3; - // Whether the user has MFA enabled or not. - bool mfa_enabled = 4; + // Whether the user is required to setup MFA. + bool mfa_required = 4; + // Whether the user has MFA enabled. + bool mfa_enabled = 5; } // A list of users. diff --git a/console/console.swagger.json b/console/console.swagger.json index 52cc66026..bd7a3c7a8 100644 --- a/console/console.swagger.json +++ b/console/console.swagger.json @@ -2599,7 +2599,55 @@ ] } }, - "/v2/console/user/{username}/reset/mfa": { + "/v2/console/user/{username}/mfa/require": { + "post": { + "summary": "Sets the user's MFA as required or not required.", + "operationId": "Console_RequireUserMfa", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object", + "properties": {} + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "username", + "description": "User username.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Required." + } + }, + "description": "Make a user's mfa required or not." + } + } + ], + "tags": [ + "Console" + ] + } + }, + "/v2/console/user/{username}/mfa/reset": { "post": { "summary": "Reset a user's multi-factor authentication credentials.", "operationId": "Console_ResetUserMfa", @@ -3891,9 +3939,13 @@ "$ref": "#/definitions/consoleUserRole", "title": "Role of the user;" }, + "mfa_required": { + "type": "boolean", + "description": "Whether the user is required to setup MFA." + }, "mfa_enabled": { "type": "boolean", - "description": "Whether the user has MFA enabled or not." + "description": "Whether the user has MFA enabled." } }, "title": "A console user" diff --git a/console/console_grpc.pb.go b/console/console_grpc.pb.go index 467732df0..359e379c9 100644 --- a/console/console_grpc.pb.go +++ b/console/console_grpc.pb.go @@ -18,7 +18,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v5.27.3 +// - protoc v5.28.0 // source: console.proto package console @@ -89,6 +89,7 @@ const ( Console_ListSubscriptions_FullMethodName = "/nakama.console.Console/ListSubscriptions" Console_ListUsers_FullMethodName = "/nakama.console.Console/ListUsers" Console_PromoteGroupMember_FullMethodName = "/nakama.console.Console/PromoteGroupMember" + Console_RequireUserMfa_FullMethodName = "/nakama.console.Console/RequireUserMfa" Console_ResetUserMfa_FullMethodName = "/nakama.console.Console/ResetUserMfa" Console_UnbanAccount_FullMethodName = "/nakama.console.Console/UnbanAccount" Console_UnlinkCustom_FullMethodName = "/nakama.console.Console/UnlinkCustom" @@ -211,6 +212,8 @@ type ConsoleClient interface { ListUsers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserList, error) // Promote a user from a group. PromoteGroupMember(ctx context.Context, in *UpdateGroupUserStateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // Sets the user's MFA as required or not required. + RequireUserMfa(ctx context.Context, in *RequireUserMfaRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Reset a user's multi-factor authentication credentials. ResetUserMfa(ctx context.Context, in *ResetUserMfaRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Unban a user. @@ -708,6 +711,15 @@ func (c *consoleClient) PromoteGroupMember(ctx context.Context, in *UpdateGroupU return out, nil } +func (c *consoleClient) RequireUserMfa(ctx context.Context, in *RequireUserMfaRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, Console_RequireUserMfa_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *consoleClient) ResetUserMfa(ctx context.Context, in *ResetUserMfaRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, Console_ResetUserMfa_FullMethodName, in, out, opts...) @@ -940,6 +952,8 @@ type ConsoleServer interface { ListUsers(context.Context, *emptypb.Empty) (*UserList, error) // Promote a user from a group. PromoteGroupMember(context.Context, *UpdateGroupUserStateRequest) (*emptypb.Empty, error) + // Sets the user's MFA as required or not required. + RequireUserMfa(context.Context, *RequireUserMfaRequest) (*emptypb.Empty, error) // Reset a user's multi-factor authentication credentials. ResetUserMfa(context.Context, *ResetUserMfaRequest) (*emptypb.Empty, error) // Unban a user. @@ -1128,6 +1142,9 @@ func (UnimplementedConsoleServer) ListUsers(context.Context, *emptypb.Empty) (*U func (UnimplementedConsoleServer) PromoteGroupMember(context.Context, *UpdateGroupUserStateRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method PromoteGroupMember not implemented") } +func (UnimplementedConsoleServer) RequireUserMfa(context.Context, *RequireUserMfaRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequireUserMfa not implemented") +} func (UnimplementedConsoleServer) ResetUserMfa(context.Context, *ResetUserMfaRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ResetUserMfa not implemented") } @@ -2101,6 +2118,24 @@ func _Console_PromoteGroupMember_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _Console_RequireUserMfa_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequireUserMfaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ConsoleServer).RequireUserMfa(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Console_RequireUserMfa_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ConsoleServer).RequireUserMfa(ctx, req.(*RequireUserMfaRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Console_ResetUserMfa_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ResetUserMfaRequest) if err := dec(in); err != nil { @@ -2564,6 +2599,10 @@ var Console_ServiceDesc = grpc.ServiceDesc{ MethodName: "PromoteGroupMember", Handler: _Console_PromoteGroupMember_Handler, }, + { + MethodName: "RequireUserMfa", + Handler: _Console_RequireUserMfa_Handler, + }, { MethodName: "ResetUserMfa", Handler: _Console_ResetUserMfa_Handler, diff --git a/console/ui/dist/prod-nt/index.html b/console/ui/dist/prod-nt/index.html index 96e6ead94..82dbe8db9 100644 --- a/console/ui/dist/prod-nt/index.html +++ b/console/ui/dist/prod-nt/index.html @@ -8,6 +8,6 @@ - + \ No newline at end of file diff --git a/console/ui/dist/prod-nt/static/main.92baa89832b7e829.js b/console/ui/dist/prod-nt/static/main.92baa89832b7e829.js new file mode 100644 index 000000000..569686eb7 --- /dev/null +++ b/console/ui/dist/prod-nt/static/main.92baa89832b7e829.js @@ -0,0 +1 @@ +(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{5349:(Et,Xe,ue)=>{"use strict";function be(t){return"function"==typeof t}let de=!1;const ye={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else de&&console.log("RxJS: Back to a better error behavior. Thank you. <3");de=t},get useDeprecatedSynchronousErrorHandling(){return de}};function he(t){setTimeout(()=>{throw t},0)}const ee={closed:!0,next(t){},error(t){if(ye.useDeprecatedSynchronousErrorHandling)throw t;he(t)},complete(){}},Se=Array.isArray||(t=>t&&"number"==typeof t.length);function we(t){return null!==t&&"object"==typeof t}const K=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class re{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof re)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof K?e.errors:e),[])}re.EMPTY=((t=new re).closed=!0,t);const k="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class I extends re{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ee;break;case 1:if(!n){this.destination=ee;break}if("object"==typeof n){n instanceof I?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new Z(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new Z(this,n,e,i)}}[k](){return this}static create(n,e,i){const r=new I(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class Z extends I{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;be(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==ee&&(s=Object.create(e),be(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ye.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ye;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):he(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;he(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);ye.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),ye.useDeprecatedSynchronousErrorHandling)throw i;he(i)}}__tryOrSetError(n,e,i){if(!ye.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return ye.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(he(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const ut="function"==typeof Symbol&&Symbol.observable||"@@observable";function ht(t){return t}function Zt(t){return 0===t.length?ht:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let Wt=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Ue(t,n,e){if(t){if(t instanceof I)return t;if(t[k])return t[k]()}return t||n||e?new I(t,n,e):new I(ee)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||ye.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ye.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ye.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Ae(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof I?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Qt(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[ut](){return this}pipe(...e){return 0===e.length?this:Zt(e)(this)}toPromise(e){return new(e=Qt(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Qt(t){if(t||(t=ye.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Cn=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Sn extends re{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class mi extends I{constructor(n){super(n),this.destination=n}}let fn=(()=>{class t extends Wt{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[k](){return new mi(this)}lift(e){const i=new qn(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Cn;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew qn(n,e),t})();class qn extends fn{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):re.EMPTY}}function fi(t){return t&&"function"==typeof t.schedule}function $t(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ta(t,n))}}class ta{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new tl(n,this.project,this.thisArg))}}class tl extends I{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Zn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function na(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const nl=t=>{if(t&&"function"==typeof t[ut])return(t=>n=>{const e=t[ut]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Wr(t))return Zn(t);if(na(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,he),n))(t);if(t&&"function"==typeof t[uo])return(t=>n=>{const e=t[uo]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${we(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function ia(t,n){return new Wt(e=>{const i=new re;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function ho(t,n){return n?function wa(t,n){if(null!=t){if(function Cu(t){return t&&"function"==typeof t[ut]}(t))return function Ls(t,n){return new Wt(e=>{const i=new re;return i.add(n.schedule(()=>{const r=t[ut]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(na(t))return function ds(t,n){return new Wt(e=>{const i=new re;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Wr(t))return ia(t,n);if(function il(t){return t&&"function"==typeof t[uo]}(t)||"string"==typeof t)return function Vl(t,n){if(!t)throw new Error("Iterable cannot be null");return new Wt(e=>{const i=new re;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[uo](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof Wt?t:new Wt(nl(t))}class Hl extends I{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Y extends I{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Le(t,n){if(n.closed)return;if(t instanceof Wt)return t.subscribe(n);let e;try{e=nl(t)(n)}catch(i){n.error(i)}return e}function it(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(it((r,o)=>ho(t(r,o)).pipe($t((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new qt(t,e)))}class qt{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new nn(n,this.project,this.concurrent))}}class nn extends Y{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function M(t=Number.POSITIVE_INFINITY){return it(ht,t)}function at(t,n){return n?ia(t,n):new Wt(Zn(t))}function Mt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return fi(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof Wt?t[0]:M(n)(at(t,e))}function Yt(){return function(n){return n.lift(new zt(n))}}class zt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new vn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class vn extends I{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class _e extends Wt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new re,n.add(this.source.subscribe(new Pt(this.getSubject(),this))),n.closed&&(this._connection=null,n=re.EMPTY)),n}refCount(){return Yt()(this)}}const xt=(()=>{const t=_e.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Pt extends mi{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class pn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function Jt(){return new fn}function Je(){return t=>Yt()(function Lt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new pn(r,n));const o=Object.create(i,xt);return o.source=i,o.subjectFactory=r,o}}(Jt)(t))}function Qe(t){for(let n in t)if(t[n]===Qe)return n;throw Error("Could not find renamed property on target object.")}function St(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function kn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(kn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Br(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const g1=Qe({__forward_ref__:Qe});function ji(t){return t.__forward_ref__=ji,t.toString=function(){return kn(this())},t}function Mi(t){return ET(t)?t():t}function ET(t){return"function"==typeof t&&t.hasOwnProperty(g1)&&t.__forward_ref__===ji}function AT(t){return t&&!!t.\u0275providers}const fx="https://g.co/ng/security#xss";class jt extends Error{constructor(n,e){super(px(n,e)),this.code=n}}function px(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Gi(t){return"string"==typeof t?t:null==t?"":String(t)}function mx(t,n){throw new jt(-201,!1)}function io(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}function It(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Di(t){return{providers:t.providers||[],imports:t.imports||[]}}function gx(t){return hL(t,vx)||hL(t,pL)}function hL(t,n){return t.hasOwnProperty(n)?t[n]:null}function fL(t){return t&&(t.hasOwnProperty(MT)||t.hasOwnProperty(Ave))?t[MT]:null}const vx=Qe({\u0275prov:Qe}),MT=Qe({\u0275inj:Qe}),pL=Qe({ngInjectableDef:Qe}),Ave=Qe({ngInjectorDef:Qe});var Oi=(()=>((Oi=Oi||{})[Oi.Default=0]="Default",Oi[Oi.Host=1]="Host",Oi[Oi.Self=2]="Self",Oi[Oi.SkipSelf=4]="SkipSelf",Oi[Oi.Optional=8]="Optional",Oi))();let OT;function Hc(t){const n=OT;return OT=t,n}function mL(t,n,e){const i=gx(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Oi.Optional?null:void 0!==n?n:void mx(kn(t))}const Bo=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),v1={},IT="__NG_DI_FLAG__",yx="ngTempTokenPath",Ove="ngTokenPath",Ive=/\n/gm,Nve="\u0275",gL="__source";let y1;function kg(t){const n=y1;return y1=t,n}function Fve(t,n=Oi.Default){if(void 0===y1)throw new jt(-203,!1);return null===y1?mL(t,void 0,n):y1.get(t,n&Oi.Optional?null:void 0,n)}function wt(t,n=Oi.Default){return(function Mve(){return OT}()||Fve)(Mi(t),n)}function Vi(t,n=Oi.Default){return wt(t,_x(n))}function _x(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function NT(t){const n=[];for(let e=0;e((Ed=Ed||{})[Ed.OnPush=0]="OnPush",Ed[Ed.Default=1]="Default",Ed))(),Su=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Su||(Su={})),Su))();const Th={},Qr=[],bx=Qe({\u0275cmp:Qe}),FT=Qe({\u0275dir:Qe}),PT=Qe({\u0275pipe:Qe}),yL=Qe({\u0275mod:Qe}),Eh=Qe({\u0275fac:Qe}),b1=Qe({__NG_ELEMENT_ID__:Qe});let Lve=0;function Vt(t){return Dh(()=>{const n=bL(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ed.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Su.Emulated,id:"c"+Lve++,styles:t.styles||Qr,_:null,schemas:t.schemas||null,tView:null};xL(e);const i=t.dependencies;return e.directiveDefs=xx(i,!1),e.pipeDefs=xx(i,!0),e})}function $ve(t){return ro(t)||rl(t)}function Vve(t){return null!==t}function Ii(t){return Dh(()=>({type:t.type,bootstrap:t.bootstrap||Qr,declarations:t.declarations||Qr,imports:t.imports||Qr,exports:t.exports||Qr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function _L(t,n){if(null==t)return Th;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function un(t){return Dh(()=>{const n=bL(t);return xL(n),n})}function _l(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ro(t){return t[bx]||null}function rl(t){return t[FT]||null}function Ul(t){return t[PT]||null}function dc(t,n){const e=t[yL]||null;if(!e&&!0===n)throw new Error(`Type ${kn(t)} does not have '\u0275mod' property.`);return e}function bL(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||Qr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_L(t.inputs,n),outputs:_L(t.outputs)}}function xL(t){t.features?.forEach(n=>n(t))}function xx(t,n){if(!t)return null;const e=n?Ul:$ve;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(Vve)}const Ah=0,$n=1,ir=2,hs=3,ku=4,zp=5,ol=6,Tg=7,ks=8,wx=9,Cx=10,lr=11,RT=12,x1=13,wL=14,Eg=15,sl=16,w1=17,Ag=18,Ad=19,C1=20,CL=21,$o=22,jT=1,SL=2,Sx=7,kx=8,Mg=9,bl=10;function hc(t){return Array.isArray(t)&&"object"==typeof t[jT]}function Du(t){return Array.isArray(t)&&!0===t[jT]}function LT(t){return 0!=(4&t.flags)}function S1(t){return t.componentOffset>-1}function Dx(t){return 1==(1&t.flags)}function Tu(t){return!!t.template}function Uve(t){return 0!=(256&t[ir])}function Gp(t,n){return t.hasOwnProperty(Eh)?t[Eh]:null}class Wve{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ei(){return TL}function TL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Yve),qve}function qve(){const t=AL(this),n=t?.current;if(n){const e=t.previous;if(e===Th)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Yve(t,n,e,i){const r=this.declaredInputs[e],o=AL(t)||function Xve(t,n){return t[EL]=n}(t,{previous:Th,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Wve(l&&l.currentValue,n,a===Th),t[i]=n}ei.ngInherit=!0;const EL="__ngSimpleChanges__";function AL(t){return t[EL]||null}const Uc=function(t,n,e){},ML="svg";function Na(t){for(;Array.isArray(t);)t=t[Ah];return t}function Tx(t,n){return Na(n[t])}function fc(t,n){return Na(n[t.index])}function IL(t,n){return t.data[n]}function Og(t,n){return t[n]}function zl(t,n){const e=n[t];return hc(e)?e:e[Ah]}function Ex(t){return 64==(64&t[ir])}function Sf(t,n){return null==n?null:t[n]}function NL(t){t[Ag]=0}function $T(t,n){t[zp]+=n;let e=t,i=t[hs];for(;null!==i&&(1===n&&1===e[zp]||-1===n&&0===e[zp]);)i[zp]+=n,e=i,i=i[hs]}const Wi={lFrame:UL(null),bindingsEnabled:!0};function PL(){return Wi.bindingsEnabled}function Xt(){return Wi.lFrame.lView}function $r(){return Wi.lFrame.tView}function ze(t){return Wi.lFrame.contextLView=t,t[ks]}function Ge(t){return Wi.lFrame.contextLView=null,t}function Fa(){let t=RL();for(;null!==t&&64===t.type;)t=t.parent;return t}function RL(){return Wi.lFrame.currentTNode}function k1(){const t=Wi.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function Md(t,n){const e=Wi.lFrame;e.currentTNode=t,e.isParent=n}function VT(){return Wi.lFrame.isParent}function HT(){Wi.lFrame.isParent=!1}function xl(){const t=Wi.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Mh(){return Wi.lFrame.bindingIndex}function Ig(){return Wi.lFrame.bindingIndex++}function Oh(t){const n=Wi.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function BL(t){Wi.lFrame.inI18n=t}function l0e(t,n){const e=Wi.lFrame;e.bindingIndex=e.bindingRootIndex=t,UT(n)}function UT(t){Wi.lFrame.currentDirectiveIndex=t}function $L(){return Wi.lFrame.currentQueryIndex}function GT(t){Wi.lFrame.currentQueryIndex=t}function u0e(t){const n=t[$n];return 2===n.type?n.declTNode:1===n.type?t[ol]:null}function VL(t,n,e){if(e&Oi.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Oi.Host||(r=u0e(o),null===r||(o=o[Eg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Wi.lFrame=HL();return i.currentTNode=n,i.lView=t,!0}function WT(t){const n=HL(),e=t[$n];Wi.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function HL(){const t=Wi.lFrame,n=null===t?null:t.child;return null===n?UL(t):n}function UL(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function zL(){const t=Wi.lFrame;return Wi.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const GL=zL;function qT(){const t=zL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function wl(){return Wi.lFrame.selectedIndex}function Wp(t){Wi.lFrame.selectedIndex=t}function es(){const t=Wi.lFrame;return IL(t.tView,t.selectedIndex)}function lt(){Wi.lFrame.currentNamespace=ML}function qp(){!function p0e(){Wi.lFrame.currentNamespace=null}()}function Ax(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[Ag]+=65536),(a>11>16&&(3&t[ir])===n){t[ir]+=2048,Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}else{Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}const Ng=-1;class D1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function JT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[Eg],e--;return i}let KT=!0;function Fx(t){const n=KT;return KT=t,n}const KL=255,QL=5;let w0e=0;const Od={};function Px(t,n){const e=ZL(t,n);if(-1!==e)return e;const i=n[$n];i.firstCreatePass&&(t.injectorIndex=n.length,QT(i.data,t),QT(n,null),QT(i.blueprint,null));const r=ZT(t,n),o=t.injectorIndex;if(JL(r)){const s=Ix(r),a=Nx(r,n),l=a[$n].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function QT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function ZL(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ZT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=s5(r),null===i)return Ng;if(e++,r=r[Eg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Ng}function eE(t,n,e){!function C0e(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(b1)&&(i=e[b1]),null==i&&(i=e[b1]=w0e++);const r=i&KL;n.data[t+(r>>QL)]|=1<=0?n&KL:T0e:n}(e);if("function"==typeof o){if(!VL(n,t,i))return i&Oi.Host?e5(r,0,i):t5(n,e,i,r);try{const s=o(i);if(null!=s||i&Oi.Optional)return s;mx()}finally{GL()}}else if("number"==typeof o){let s=null,a=ZL(t,n),l=Ng,c=i&Oi.Host?n[sl][ol]:null;for((-1===a||i&Oi.SkipSelf)&&(l=-1===a?ZT(t,n):n[a+8],l!==Ng&&o5(i,!1)?(s=n[$n],a=Ix(l),n=Nx(l,n)):a=-1);-1!==a;){const u=n[$n];if(r5(o,a,u.data)){const d=k0e(a,n,e,s,i,c);if(d!==Od)return d}l=n[a+8],l!==Ng&&o5(i,n[$n].data[a+8]===c)&&r5(o,a,n)?(s=u,a=Ix(l),n=Nx(l,n)):a=-1}}return r}function k0e(t,n,e,i,r,o){const s=n[$n],a=s.data[t+8],u=Rx(a,s,e,null==i?S1(a)&&KT:i!=s&&0!=(3&a.type),r&Oi.Host&&o===a);return null!==u?Yp(n,s,u,a):Od}function Rx(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&Tu(f)&&f.type===e)return l}return null}function Yp(t,n,e,i){let r=t[e];const o=n.data;if(function y0e(t){return t instanceof D1}(r)){const s=r;s.resolving&&function wve(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new jt(-200,`Circular dependency in DI detected for ${t}${e}`)}(function no(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Gi(t)}(o[e]));const a=Fx(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Hc(s.injectImpl):null;VL(t,i,Oi.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function g0e(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=TL(n);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Hc(l),Fx(a),s.resolving=!1,GL()}}return r}function r5(t,n,e){return!!(e[n+(t>>QL)]&1<{const n=t.prototype.constructor,e=n[Eh]||tE(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Eh]||tE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function tE(t){return ET(t)?()=>{const n=tE(Mi(t));return n&&n()}:Gp(t)}function s5(t){const n=t[$n],e=n.type;return 2===e?n.declTNode:1===e?t[ol]:null}function kf(t){return function S0e(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function nE(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Rg)?l[Rg]:Object.defineProperty(l,Rg,{value:[]})[Rg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Yn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=It({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xp(t,n){t.forEach(e=>Array.isArray(e)?Xp(e,n):n(e))}function l5(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function jx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function M1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function I0e(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function rE(t,n){const e=Bg(t,n);if(e>=0)return t[1|e]}function Bg(t,n){return function c5(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Gl=Gl||{})[Gl.Important=1]="Important",Gl[Gl.DashCase=2]="DashCase",Gl))();const K0e=/^>|^->||--!>|)/,Z0e="\u200b$1\u200b";const uE=new Map;let e1e=0;const hE="__ngContext__";function al(t,n){hc(n)?(t[hE]=n[C1],function n1e(t){uE.set(t[C1],t)}(n)):t[hE]=n}let fE;function pE(t,n){return fE(t,n)}function R1(t){const n=t[hs];return Du(n)?n[hs]:n}function mE(t){return A5(t[x1])}function gE(t){return A5(t[ku])}function A5(t){for(;null!==t&&!Du(t);)t=t[ku];return t}function Vg(t,n,e,i,r){if(null!=i){let o,s=!1;Du(i)?o=i:hc(i)&&(s=!0,i=i[Ah]);const a=Na(i);0===t&&null!==e?null==r?P5(n,e,a):Jp(n,e,a,r||null,!0):1===t&&null!==e?Jp(n,e,a,r||null,!0):2===t?CE(n,a,s):3===t&&n.destroyNode(a),null!=o&&function k1e(t,n,e,i,r){const o=e[Sx];o!==Na(e)&&Vg(n,t,i,o,r);for(let a=bl;an.replace(Q0e,Z0e))}(n))}function yE(t,n,e){return t.createElement(n,e)}function O5(t,n){const e=t[Mg],i=e.indexOf(n),r=n[hs];512&n[ir]&&(n[ir]&=-513,$T(r,-1)),e.splice(i,1)}function _E(t,n){if(t.length<=bl)return;const e=bl+n,i=t[e];if(i){const r=i[w1];null!==r&&r!==t&&O5(r,i),n>0&&(t[e-1][ku]=i[ku]);const o=jx(t,bl+n);!function p1e(t,n){j1(t,n,n[lr],2,null,null),n[Ah]=null,n[ol]=null}(i[$n],i);const s=o[Ad];null!==s&&s.detachView(o[$n]),i[hs]=null,i[ku]=null,i[ir]&=-65}return i}function I5(t,n){if(!(128&n[ir])){const e=n[lr];e.destroyNode&&j1(t,n,e,3,null,null),function v1e(t){let n=t[x1];if(!n)return bE(t[$n],t);for(;n;){let e=null;if(hc(n))e=n[x1];else{const i=n[bl];i&&(e=i)}if(!e){for(;n&&!n[ku]&&n!==t;)hc(n)&&bE(n[$n],n),n=n[hs];null===n&&(n=t),hc(n)&&bE(n[$n],n),e=n&&n[ku]}n=e}}(n)}}function bE(t,n){if(!(128&n[ir])){n[ir]&=-65,n[ir]|=128,function x1e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===Su.None||o===Su.Emulated)return null}return fc(i,e)}}function Jp(t,n,e,i,r){t.insertBefore(n,e,i,r)}function P5(t,n,e){t.appendChild(n,e)}function R5(t,n,e,i,r){null!==i?Jp(t,n,e,i,r):P5(t,n,e)}function Vx(t,n){return t.parentNode(n)}function j5(t,n,e){return B5(t,n,e)}function L5(t,n,e){return 40&t.type?fc(t,e):null}let xE,zx,DE,Gx,B5=L5;function $5(t,n){B5=t,xE=n}function Hx(t,n,e,i){const r=N5(t,i,n),o=n[lr],a=j5(i.parent||n[ol],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return zx}()?.createHTML(t)||t}function G5(){return void 0!==DE?DE:typeof document<"u"?document:void 0}function TE(){if(void 0===Gx&&(Gx=null,Bo.trustedTypes))try{Gx=Bo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Gx}function W5(t){return TE()?.createHTML(t)||t}function Y5(t){return TE()?.createScriptURL(t)||t}class Kp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${fx})`}}class I1e extends Kp{getTypeName(){return"HTML"}}class N1e extends Kp{getTypeName(){return"Style"}}class F1e extends Kp{getTypeName(){return"Script"}}class P1e extends Kp{getTypeName(){return"URL"}}class R1e extends Kp{getTypeName(){return"ResourceURL"}}function mc(t){return t instanceof Kp?t.changingThisBreaksApplicationSecurity:t}function Id(t,n){const e=function j1e(t){return t instanceof Kp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${fx})`)}return e===n}function X5(t){const n=new z1e(t);return function G1e(){try{return!!(new window.DOMParser).parseFromString(Hg(""),"text/html")}catch{return!1}}()?new U1e(n):n}class U1e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Hg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class z1e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Hg(n),e}}const W1e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wx(t){return(t=String(t)).match(W1e)?t:"unsafe:"+t}function Ih(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function L1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const J5=Ih("area,br,col,hr,img,wbr"),K5=Ih("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Q5=Ih("rp,rt"),EE=L1(J5,L1(K5,Ih("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),L1(Q5,Ih("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),L1(Q5,K5)),AE=Ih("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Z5=L1(AE,Ih("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ih("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),q1e=Ih("script,style,template");class Y1e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!EE.hasOwnProperty(e))return this.sanitizedSomething=!0,!q1e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();EE.hasOwnProperty(e)&&!J5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(e8(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const X1e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,J1e=/([^\#-~ |!])/g;function e8(t){return t.replace(/&/g,"&").replace(X1e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(J1e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let qx;function t8(t,n){let e=null;try{qx=qx||X5(t);let i=n?String(n):"";e=qx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=qx.getInertBodyElement(i)}while(i!==o);return Hg((new Y1e).sanitizeChildren(ME(e)||e))}finally{if(e){const i=ME(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function ME(t){return"content"in t&&function K1e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var To=(()=>((To=To||{})[To.NONE=0]="NONE",To[To.HTML=1]="HTML",To[To.STYLE=2]="STYLE",To[To.SCRIPT=3]="SCRIPT",To[To.URL=4]="URL",To[To.RESOURCE_URL=5]="RESOURCE_URL",To))();function Yx(t){const n=$1();return n?W5(n.sanitize(To.HTML,t)||""):Id(t,"HTML")?W5(mc(t)):t8(G5(),Gi(t))}function B1(t){const n=$1();return n?n.sanitize(To.URL,t)||"":Id(t,"URL")?mc(t):Wx(Gi(t))}function n8(t){const n=$1();if(n)return Y5(n.sanitize(To.RESOURCE_URL,t)||"");if(Id(t,"ResourceURL"))return Y5(mc(t));throw new jt(904,!1)}function $1(){const t=Xt();return t&&t[RT]}const Xx=new Yn("ENVIRONMENT_INITIALIZER"),r8=new Yn("INJECTOR",-1),o8=new Yn("INJECTOR_DEF_TYPES");class s8{get(n,e=v1){if(e===v1){const i=new Error(`NullInjectorError: No provider for ${kn(n)}!`);throw i.name="NullInjectorError",i}return e}}function rye(...t){return{\u0275providers:a8(0,t),\u0275fromNgModule:!0}}function a8(t,...n){const e=[],i=new Set;let r;return Xp(n,o=>{const s=o;OE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&l8(r,e),e}function l8(t,n){for(let e=0;e{n.push(o)})}}function OE(t,n,e,i){if(!(t=Mi(t)))return!1;let r=null,o=fL(t);const s=!o&&ro(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=fL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)OE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Xp(o.imports,u=>{OE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&l8(c,n)}if(!a){const c=Gp(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Qr},{provide:o8,useValue:r,multi:!0},{provide:Xx,useValue:()=>wt(r),multi:!0})}const l=o.providers;null==l||a||IE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function IE(t,n){for(let e of t)AT(e)&&(e=e.\u0275providers),Array.isArray(e)?IE(e,n):n(e)}const oye=Qe({provide:String,useValue:Qe});function NE(t){return null!==t&&"object"==typeof t&&oye in t}function Qp(t){return"function"==typeof t}const FE=new Yn("Set Injector scope."),Jx={},aye={};let PE;function Kx(){return void 0===PE&&(PE=new s8),PE}class Gc{}class d8 extends Gc{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,jE(n,s=>this.processProvider(s)),this.records.set(r8,Ug(void 0,this)),r.has("environment")&&this.records.set(Gc,Ug(void 0,this));const o=this.records.get(FE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(o8.multi,Qr,Oi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=kg(this),i=Hc(void 0);try{return n()}finally{kg(e),Hc(i)}}get(n,e=v1,i=Oi.Default){this.assertNotDestroyed(),i=_x(i);const r=kg(this),o=Hc(void 0);try{if(!(i&Oi.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function hye(t){return"function"==typeof t||"object"==typeof t&&t instanceof Yn}(n)&&gx(n);a=l&&this.injectableDefInScope(l)?Ug(RE(n),Jx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Oi.Self?Kx():this.parent).get(n,e=i&Oi.Optional&&e===v1?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[yx]=s[yx]||[]).unshift(kn(n)),r)throw s;return function Rve(t,n,e,i){const r=t[yx];throw n[gL]&&r.unshift(n[gL]),t.message=function jve(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Nve?t.slice(2):t;let r=kn(n);if(Array.isArray(n))r=n.map(kn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):kn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(Ive,"\n ")}`}("\n"+t.message,r,e,i),t[Ove]=r,t[yx]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Hc(o),kg(r)}}resolveInjectorInitializers(){const n=kg(this),e=Hc(void 0);try{const i=this.get(Xx.multi,Qr,Oi.Self);for(const r of i)r()}finally{kg(n),Hc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(kn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new jt(205,!1)}processProvider(n){let e=Qp(n=Mi(n))?n:Mi(n&&n.provide);const i=function cye(t){return NE(t)?Ug(void 0,t.useValue):Ug(h8(t),Jx)}(n);if(Qp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ug(void 0,Jx,!0),r.factory=()=>NT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Jx&&(e.value=aye,e.value=e.factory()),"object"==typeof e.value&&e.value&&function dye(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Mi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function RE(t){const n=gx(t),e=null!==n?n.factory:Gp(t);if(null!==e)return e;if(t instanceof Yn)throw new jt(204,!1);if(t instanceof Function)return function lye(t){const n=t.length;if(n>0)throw M1(n,"?"),new jt(204,!1);const e=function Eve(t){return t&&(t[vx]||t[pL])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new jt(204,!1)}function h8(t,n,e){let i;if(Qp(t)){const r=Mi(t);return Gp(r)||RE(r)}if(NE(t))i=()=>Mi(t.useValue);else if(function u8(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...NT(t.deps||[]));else if(function c8(t){return!(!t||!t.useExisting)}(t))i=()=>wt(Mi(t.useExisting));else{const r=Mi(t&&(t.useClass||t.provide));if(!function uye(t){return!!t.deps}(t))return Gp(r)||RE(r);i=()=>new r(...NT(t.deps))}return i}function Ug(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function jE(t,n){for(const e of t)Array.isArray(e)?jE(e,n):e&&AT(e)?jE(e.\u0275providers,n):n(e)}class fye{}class f8{}class mye{resolveComponentFactory(n){throw function pye(t){const n=Error(`No component factory found for ${kn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let zg=(()=>{class t{}return t.NULL=new mye,t})();function gye(){return Gg(Fa(),Xt())}function Gg(t,n){return new Ni(fc(t,n))}let Ni=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=gye,t})();function vye(t){return t instanceof Ni?t.nativeElement:t}class Wg{}let oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function yye(){const t=Xt(),e=zl(Fa().index,t);return(hc(e)?e:t)[lr]}(),t})(),_ye=(()=>{class t{}return t.\u0275prov=It({token:t,providedIn:"root",factory:()=>null}),t})();class V1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const bye=new V1("15.2.9"),LE={},BE="ngOriginalError";function $E(t){return t[BE]}class qg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&$E(n);for(;e&&$E(e);)e=$E(e);return e||null}}function m8(t){return t.ownerDocument.defaultView}function Nh(t){return t instanceof Function?t():t}function v8(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const y8="ng-template";function Mye(t,n,e){let i=0,r=!0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==v8(f,c,0)||2&i&&c!==h){if(Eu(i))return!1;s=!0}}}}else{if(!s&&!Eu(i)&&!Eu(l))return!1;if(s&&Eu(l))continue;s=!1,i=l|1&i}}return Eu(i)||s}function Eu(t){return 0==(1&t)}function Nye(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Eu(s)&&(n+=x8(o,r),r=""),i=s,o=o||!Eu(i);e++}return""!==r&&(n+=x8(o,r)),n}const qi={};function w(t){w8($r(),Xt(),wl()+t,!1)}function w8(t,n,e,i){if(!i)if(3==(3&n[ir])){const o=t.preOrderCheckHooks;null!==o&&Mx(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Ox(n,o,0,e)}Wp(e)}function D8(t,n=null,e=null,i){const r=T8(t,n,e,i);return r.resolveInjectorInitializers(),r}function T8(t,n=null,e=null,i,r=new Set){const o=[e||Qr,rye(t)];return i=i||("object"==typeof t?void 0:kn(t)),new d8(o,n||Kx(),i||null,r)}let Ca=(()=>{class t{static create(e,i){if(Array.isArray(e))return D8({name:""},i,e,"");{const r=e.name??"";return D8({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=v1,t.NULL=new s8,t.\u0275prov=It({token:t,providedIn:"any",factory:()=>wt(r8)}),t.__NG_ELEMENT_ID__=-1,t})();function ge(t,n=Oi.Default){const e=Xt();return null===e?wt(t,n):n5(Fa(),e,Mi(t),n)}function P8(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i$o&&w8(t,n,$o,!1),Uc(s?2:0,r),e(i,r)}finally{Wp(o),Uc(s?3:1,r)}}function qE(t,n,e){if(LT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,H1(t,e,r.hostVars,qi),r)}function ZE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Gi(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function k_e(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&eA(e)}}function eA(t){for(let i=mE(t);null!==i;i=gE(i))for(let r=bl;r0&&eA(o)}const e=t[$n].components;if(null!==e)for(let i=0;i0&&eA(r)}}function M_e(t,n){const e=zl(n,t),i=e[$n];(function O_e(t,n){for(let e=n.length;e-1&&(_E(n,i),jx(e,i))}this._attachedToViewContainer=!1}I5(this._lView[$n],this._lView)}onDestroy(n){L8(this._lView[$n],this._lView,null,n)}markForCheck(){nw(this._cdRefInjectingView||this._lView)}detach(){this._lView[ir]&=-65}reattach(){this._lView[ir]|=64}detectChanges(){iw(this._lView[$n],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new jt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function g1e(t,n){j1(t,n,n[lr],2,null,null)}(this._lView[$n],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new jt(902,!1);this._appRef=n}}class I_e extends U1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;iw(n[$n],n,n[ks],!1)}checkNoChanges(){}get context(){return null}}class Y8 extends zg{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ro(n);return new z1(e,this.ngModule)}}function X8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class F_e{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=_x(i);const r=this.injector.get(n,LE,i);return r!==LE||e===LE?r:this.parentInjector.get(n,e,i)}}class z1 extends f8{get inputs(){return X8(this.componentDef.inputs)}get outputs(){return X8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function Bye(t){return t.map(Lye).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Gc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new F_e(n,o):n,a=s.get(Wg,null);if(null===a)throw new jt(407,!1);const l=s.get(_ye,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function c_e(t,n,e){return t.selectRootElement(n,e===Su.ShadowDom)}(c,i,this.componentDef.encapsulation):yE(c,u,function N_e(t){const n=t.toLowerCase();return"svg"===n?ML:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=JE(0,null,null,1,0,null,null,null,null,null),p=Zx(null,f,null,h,null,null,a,c,l,s,null);let m,g;WT(p);try{const v=this.componentDef;let y,b=null;v.findHostDirectiveDefs?(y=[],b=new Map,v.findHostDirectiveDefs(v,y,b),y.push(v)):y=[v];const C=function R_e(t,n){const e=t[$n],i=$o;return t[i]=n,Jg(e,i,2,"#host",null)}(p,d),D=function j_e(t,n,e,i,r,o,s,a){const l=r[$n];!function L_e(t,n,e,i){for(const r of t)n.mergedAttrs=T1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(rw(n,n.mergedAttrs,!0),null!==e&&z5(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Zx(r,j8(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&QE(l,t,i.length-1),tw(r,u),r[t.index]=u}(C,d,v,y,p,a,c);g=IL(f,$o),d&&function $_e(t,n,e,i){if(i)JT(t,e,["ng-version",bye.full]);else{const{attrs:r,classes:o}=function $ye(t){const n=[],e=[];let i=1,r=2;for(;i0&&U5(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function V_e(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=T1(r.hostAttrs,e=T1(e,r.hostAttrs))}}(i)}function iA(t){return t===Th?{}:t===Qr?[]:t}function z_e(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function G_e(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function W_e(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function G1(t){return n=>{n.findHostDirectiveDefs=K8,n.hostDirectives=(Array.isArray(t)?t:t()).map(e=>"function"==typeof e?{directive:Mi(e),inputs:Th,outputs:Th}:{directive:Mi(e.directive),inputs:Q8(e.inputs),outputs:Q8(e.outputs)})}}function K8(t,n,e){if(null!==t.hostDirectives)for(const i of t.hostDirectives){const r=rl(i.directive);J_e(r.declaredInputs,i.inputs),K8(r,n,e),e.set(r,i),n.push(r)}}function Q8(t){if(void 0===t||0===t.length)return Th;const n={};for(let e=0;es(Na(C[i.index])):i.index;let b=null;if(!s&&a&&(b=function obe(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,h=!1;else{o=p6(i,n,u,o,!1);const C=e.listen(g,r,o);d.push(o,C),c&&c.push(r,y,v,v+1)}}else o=p6(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?zl(t.index,n):n);let l=f6(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=f6(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function L(t=1){return function d0e(t){return(Wi.lFrame.contextLView=function h0e(t,n){for(;t>0;)n=n[Eg],t--;return n}(t,Wi.lFrame.contextLView))[ks]}(t)}function sbe(t,n){let e=null;const i=function Fye(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function aA(t){return 2|t}function tm(t){return(131068&t)>>2}function lA(t,n){return-131069&t|n<<2}function cA(t){return 1|t}function C6(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?Ef(o):tm(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];hbe(t[a],n)&&(l=!0,t[a+1]=i?cA(u):aA(u)),a=i?Ef(u):tm(u)}l&&(t[e+1]=i?aA(o):cA(o))}function hbe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Bg(t,n)>=0}const aa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function S6(t){return t.substring(aa.key,aa.keyEnd)}function k6(t,n){const e=aa.textEnd;return e===n?-1:(n=aa.keyEnd=function gbe(t,n,e){for(;n32;)n++;return n}(t,aa.key=n,e),sv(t,n,e))}function sv(t,n,e){for(;n=0;e=k6(n,e))pc(t,S6(n),!0)}function Mu(t,n,e,i){const r=Xt(),o=$r(),s=Oh(2);o.firstUpdatePass&&O6(o,t,s,i),n!==qi&&ll(r,s,n)&&N6(o,o.data[wl()],r,r[lr],t,r[s+1]=function Tbe(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=kn(mc(t)))),t}(n,e),i,s)}function Ou(t,n,e,i){const r=$r(),o=Oh(2);r.firstUpdatePass&&O6(r,null,o,i);const s=Xt();if(e!==qi&&ll(s,o,e)){const a=r.data[wl()];if(P6(a,i)&&!M6(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Br(l,e||"")),oA(r,a,s,e,i)}else!function Dbe(t,n,e,i,r,o,s,a){r===qi&&(r=Qr);let l=0,c=0,u=0=t.expandoStartIndex}function O6(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[wl()],s=M6(t,e);P6(o,i)&&null===n&&!s&&(n=!1),n=function bbe(t,n,e,i){const r=function zT(t){const n=Wi.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Y1(e=uA(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=uA(r,t,n,e,i),null===o){let l=function xbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==tm(i))return t[Ef(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=uA(null,t,n,l[1],i),l=Y1(l,n.attrs,i),function wbe(t,n,e,i){t[Ef(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function Cbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=Ef(t[a+1]);t[i+1]=lw(h,a),0!==h&&(t[h+1]=lA(t[h+1],i)),t[a+1]=function lbe(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=lw(a,0),0!==a&&(t[a+1]=lA(t[a+1],i)),a=i;else t[i+1]=lw(l,0),0===a?a=i:t[l+1]=lA(t[l+1],i),l=i;c&&(t[i+1]=aA(t[i+1])),C6(t,u,i,!0),C6(t,u,i,!1),function dbe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Bg(o,n)>=0&&(e[i+1]=cA(e[i+1]))}(n,u,t,i,o),s=lw(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function uA(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===qi&&(h=d?Qr:void 0);let f=d?rE(h,i):u===i?h:void 0;if(c&&!cw(f)&&(f=rE(l,i)),cw(f)&&(a=f,s))return a;const p=t[r+1];r=s?Ef(p):tm(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=rE(l,i))}return a}function cw(t){return void 0!==t}function P6(t,n){return 0!=(t.flags&(n?8:16))}function O(t,n=""){const e=Xt(),i=$r(),r=t+$o,o=i.firstCreatePass?Jg(i,r,1,n,null):i.data[r],s=e[r]=vE(e[lr],n);Hx(i,e,s,o),Md(o,!1)}function bt(t){return bn("",t,""),bt}function bn(t,n,e){const i=Xt(),r=Qg(i,t,n,e);return r!==qi&&Fh(i,wl(),r),bn}function Af(t,n,e,i,r){const o=Xt(),s=Zg(o,t,n,e,i,r);return s!==qi&&Fh(o,wl(),s),Af}function ql(t,n,e){const i=Xt();return ll(i,Ig(),n)&&gc($r(),es(),i,t,n,i[lr],e,!0),ql}const nm=void 0;var Gbe=["en",[["a","p"],["AM","PM"],nm],[["AM","PM"],nm,nm],[["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"]],nm,[["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"]],nm,[["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}",nm,"{1} 'at' {0}",nm],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function zbe(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let av={};function kl(t){const n=function Wbe(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=nB(n);if(e)return e;const i=n.split("-")[0];if(e=nB(i),e)return e;if("en"===i)return Gbe;throw new jt(701,!1)}function nB(t){return t in av||(av[t]=Bo.ng&&Bo.ng.common&&Bo.ng.common.locales&&Bo.ng.common.locales[t]),av[t]}var Nn=(()=>((Nn=Nn||{})[Nn.LocaleId=0]="LocaleId",Nn[Nn.DayPeriodsFormat=1]="DayPeriodsFormat",Nn[Nn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Nn[Nn.DaysFormat=3]="DaysFormat",Nn[Nn.DaysStandalone=4]="DaysStandalone",Nn[Nn.MonthsFormat=5]="MonthsFormat",Nn[Nn.MonthsStandalone=6]="MonthsStandalone",Nn[Nn.Eras=7]="Eras",Nn[Nn.FirstDayOfWeek=8]="FirstDayOfWeek",Nn[Nn.WeekendRange=9]="WeekendRange",Nn[Nn.DateFormat=10]="DateFormat",Nn[Nn.TimeFormat=11]="TimeFormat",Nn[Nn.DateTimeFormat=12]="DateTimeFormat",Nn[Nn.NumberSymbols=13]="NumberSymbols",Nn[Nn.NumberFormats=14]="NumberFormats",Nn[Nn.CurrencyCode=15]="CurrencyCode",Nn[Nn.CurrencySymbol=16]="CurrencySymbol",Nn[Nn.CurrencyName=17]="CurrencyName",Nn[Nn.Currencies=18]="Currencies",Nn[Nn.Directionality=19]="Directionality",Nn[Nn.PluralCase=20]="PluralCase",Nn[Nn.ExtraData=21]="ExtraData",Nn))();const qbe=["zero","one","two","few","many"],lv="en-US",uw={marker:"element"},dw={marker:"ICU"};var fs=(()=>((fs=fs||{})[fs.SHIFT=2]="SHIFT",fs[fs.APPEND_EAGERLY=1]="APPEND_EAGERLY",fs[fs.COMMENT=2]="COMMENT",fs))();let iB=lv;function rB(t){(function Vc(t,n){null==t&&io(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(iB=t.toLowerCase().replace(/_/g,"-"))}function oB(t,n,e){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?L5(t,0,e):Na(e[r])}function sB(t,n,e,i,r){const o=n.insertBeforeIndex;if(Array.isArray(o)){let s=i,a=null;if(3&n.type||(a=s,s=r),null!==s&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];lB(i)||Kbe(i,n)&&null===Qbe(i)&&Zbe(i,n.index)}}function lB(t){return!(64&t.type)}function Kbe(t,n){return lB(n)||t.index>n.index}function Qbe(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function Zbe(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:($5(oB,sB),t.insertBeforeIndex=n)}function X1(t,n){const e=t.data[n];return null===e||"string"==typeof e?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function nxe(t,n,e){const i=GE(t,e,64,null,null);return aB(n,i),i}function hw(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}function cB(t){return t>>>17}function uB(t){return(131070&t)>>>1}let J1=0,K1=0;function hB(t,n,e,i){const r=e[lr];let s,o=null;for(let a=0;a>>1,e),null,null,f,p,null)}else switch(l){case dw:const c=n[++a],u=n[++a];null===e[u]&&al(e[u]=f1e(r,c),e);break;case uw:const d=n[++a],h=n[++a];null===e[h]&&al(e[h]=yE(r,d,null),e)}}}function fB(t,n,e,i,r){for(let o=0;o>>2;switch(3&u){case 1:const h=e[++c],f=e[++c],p=t.data[d];"string"==typeof p?ZE(n[lr],n[d],null,p,h,l,f):gc(t,p,n,h,l,n[lr],f,!1);break;case 0:const m=n[d];null!==m&&M5(n[lr],m,l);break;case 2:axe(t,X1(t,d),n,l);break;case 3:pB(t,X1(t,d),i,n)}}}}else{const l=e[o+1];if(l>0&&3==(3&l)){const u=X1(t,l>>>2);n[u.currentCaseLViewIndex]<0&&pB(t,u,i,n)}}o+=a}}function pB(t,n,e,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=J1;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),fB(t,i,n.update[r],e,o)}}function axe(t,n,e,i){const r=function lxe(t,n){let e=t.cases.indexOf(n);if(-1===e)switch(t.type){case 1:{const i=function Ybe(t,n){const e=function tB(t){return kl(t)[Nn.PluralCase]}(n)(parseInt(t,10)),i=qbe[e];return void 0!==i?i:"other"}(n,function Jbe(){return iB}());e=t.cases.indexOf(i),-1===e&&"other"!==i&&(e=t.cases.indexOf("other"));break}case 0:e=t.cases.indexOf("other")}return-1===e?null:e}(n,i);if(hw(n,e)!==r&&(mB(t,n,e),e[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const s=e[n.anchorIdx];s&&hB(t,n.create[r],e,s)}}function mB(t,n,e){let i=hw(n,e);if(null!==i){const r=n.remove[i];for(let o=0;o0){const a=Tx(s,e);null!==a&&CE(e[lr],a)}else mB(t,X1(t,~s),e)}}}function cxe(){const t=[];let e,i,n=-1;function o(a,l){n=0;const c=hw(a,l);i=null!==c?a.remove[c]:Qr}function s(){if(n0?e[a]:(t.push(n,i),o(e[$n].data[~a],e),s())}return 0===t.length?null:(i=t.pop(),n=t.pop(),s())}return function r(a,l){for(e=l;t.length;)t.pop();return o(a.value,l),s}}const fw=/\ufffd(\d+):?\d*\ufffd/gi,dxe=/\ufffd(\d+)\ufffd/,vB=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Q1="\ufffd",hxe=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,fxe=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,pxe=/\uE500/g;function yB(t,n,e,i,r,o,s){const a=H1(t,i,1,null);let l=a<e.length&&e.push(l)}return{type:i,mainBinding:r,cases:n,values:e}}function dA(t){if(!t)return[];let n=0;const e=[],i=[],r=/[{}]/g;let o;for(r.lastIndex=0;o=r.exec(t);){const a=o.index;if("}"==o[0]){if(e.pop(),0==e.length){const l=t.substring(n,a);vB.test(l)?i.push(wxe(l)):i.push(l),n=a+1}}else{if(0==e.length){const l=t.substring(n,a);i.push(l),n=a+1}e.push("{")}}const s=t.substring(n);return i.push(s),i}function Cxe(t,n,e,i,r,o,s,a){const l=[],c=[],u=[];n.cases.push(o),n.create.push(l),n.remove.push(c),n.update.push(u);const h=X5(G5()).getInertBodyElement(s),f=ME(h)||h;return f?wB(t,n,e,i,l,c,u,f,r,a,0):0}function wB(t,n,e,i,r,o,s,a,l,c,u){let d=0,h=a.firstChild;for(;h;){const f=H1(t,e,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,m=p.tagName.toLowerCase();if(EE.hasOwnProperty(m)){hA(r,uw,m,l,f),t.data[f]=m;const b=p.attributes;for(let C=0;C>>fs.SHIFT;let d=t[u];null===d&&(d=t[u]=(s&fs.COMMENT)===fs.COMMENT?r.createComment(a):vE(r,a)),c&&null!==e&&Jp(r,e,d,i,!1)}})(r,l.create,u,a&&8&a.type?r[a.index]:null),BL(!0)}function Pa(t,n,e){kB(t,n,e),function DB(){BL(!1)}()}function cv(t){return function rxe(t){t&&(J1|=1<0){const i=t.data[e];fB(t,n,Array.isArray(i)?i:i.update,Mh()-K1-1,J1)}J1=0,K1=0}($r(),Xt(),t+$o)}function fA(t,n,e,i,r){if(t=Mi(t),Array.isArray(t))for(let o=0;o>20;if(Qp(t)||!t.multi){const f=new D1(l,r,ge),p=mA(a,n,r?u:u+h,d);-1===p?(eE(Px(c,s),o,a),pA(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=mA(a,n,u+h,d),p=mA(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){eE(Px(c,s),o,a);const v=function Vxe(t,n,e,i,r){const o=new D1(t,e,ge);return o.multi=[],o.index=n,o.componentProviders=0,TB(o,r,i&&!e),o}(r?$xe:Bxe,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),pA(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else pA(o,t,f>-1?f:p,TB(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function pA(t,n,e,i){const r=Qp(n),o=function sye(t){return!!t.useClass}(n);if(r||o){const l=(o?Mi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function TB(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function mA(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Lxe(t,n,e){const i=$r();if(i.firstCreatePass){const r=Tu(t);fA(e,i.data,i.blueprint,r,!0),fA(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class uv{}class EB{}class AB extends uv{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Y8(this);const i=dc(n);this._bootstrapComponents=Nh(i.bootstrap),this._r3Injector=T8(n,e,[{provide:uv,useValue:this},{provide:zg,useValue:this.componentFactoryResolver}],kn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class vA extends EB{constructor(n){super(),this.moduleType=n}create(n){return new AB(this.moduleType,n)}}class Uxe extends uv{constructor(n,e,i){super(),this.componentFactoryResolver=new Y8(this),this.instance=null;const r=new d8([...n,{provide:uv,useValue:this},{provide:zg,useValue:this.componentFactoryResolver}],e||Kx(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function pw(t,n,e=null){return new Uxe(t,n,e).injector}let zxe=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=a8(0,e.type),r=i.length>0?pw([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=It({token:t,providedIn:"environment",factory:()=>new t(wt(Gc))}),t})();function Bs(t){t.getStandaloneInjector=n=>n.get(zxe).getOrCreateStandaloneInjector(t)}function cl(t,n,e){const i=xl()+t,r=Xt();return r[i]===qi?Fd(r,i,e?n.call(e):n()):function W1(t,n){return t[n]}(r,i)}function Zi(t,n,e,i){return RB(Xt(),xl(),t,n,e,i)}function Rr(t,n,e,i,r){return function jB(t,n,e,i,r,o,s){const a=n+e;return Zp(t,a,r,o)?Fd(t,a+2,s?i.call(s,r,o):i(r,o)):ny(t,a+2)}(Xt(),xl(),t,n,e,i,r)}function ty(t,n,e,i,r,o){return function LB(t,n,e,i,r,o,s,a){const l=n+e;return function aw(t,n,e,i,r){const o=Zp(t,n,e,i);return ll(t,n+2,r)||o}(t,l,r,o,s)?Fd(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):ny(t,l+3)}(Xt(),xl(),t,n,e,i,r,o)}function ny(t,n){const e=t[n];return e===qi?void 0:e}function RB(t,n,e,i,r,o){const s=n+e;return ll(t,s,r)?Fd(t,s+1,o?i.call(o,r):i(r)):ny(t,s+1)}function _A(t,n){const e=$r();let i;const r=t+$o;e.firstCreatePass?(i=function owe(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Gp(i.type)),s=Hc(ge);try{const a=Fx(!1),l=o();return Fx(a),function nbe(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Xt(),r,l),l}finally{Hc(s)}}function bA(t,n,e){const i=t+$o,r=Xt(),o=Og(r,i);return function iy(t,n){return t[$n].data[n].pure}(r,i)?RB(r,xl(),n,o.transform,e,o):o.transform(e)}function xA(t){return n=>{setTimeout(t,void 0,n)}}const ot=class uwe extends fn{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=xA(o),r&&(r=xA(r)),s&&(s=xA(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof re&&n.add(a),a}};function dwe(){return this._results[Symbol.iterator]()}class wA{get changes(){return this._changes||(this._changes=new ot)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=wA.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=dwe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function zc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function M0e(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=pwe,t})();const hwe=fo,fwe=class extends hwe{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Zx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[w1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ad];return null!==s&&(r[Ad]=s.createEmbeddedView(i)),WE(i,r,n),new U1(r)}};function pwe(){return mw(Fa(),Xt())}function mw(t,n){return 4&t.type?new fwe(n,t,Gg(t,n)):null}let Yl=(()=>{class t{}return t.__NG_ELEMENT_ID__=mwe,t})();function mwe(){return UB(Fa(),Xt())}const gwe=Yl,VB=class extends gwe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Gg(this._hostTNode,this._hostLView)}get injector(){return new Fg(this._hostTNode,this._hostLView)}get parentInjector(){const n=ZT(this._hostTNode,this._hostLView);if(JL(n)){const e=Nx(n,this._hostLView),i=Ix(n);return new Fg(e[$n].data[i+8],e)}return new Fg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=HB(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-bl}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function A1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new z1(ro(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Gc,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[$n];if(function e0e(t){return Du(t[hs])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[hs],h=new VB(d,d[ol],d[hs]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function y1e(t,n,e,i){const r=bl+i,o=e.length;i>0&&(e[r-1][ku]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=bl;d{class t{constructor(e){this.appInits=e,this.resolve=vw,this.reject=vw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(wt(yw,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oy=new Yn("AppId",{providedIn:"root",factory:function h$(){return`${FA()}${FA()}${FA()}`}});function FA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const f$=new Yn("Platform Initializer"),sy=new Yn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),p$=new Yn("AnimationModuleType");let Hwe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const vc=new Yn("LocaleId",{providedIn:"root",factory:()=>Vi(vc,Oi.Optional|Oi.SkipSelf)||function Uwe(){return typeof $localize<"u"&&$localize.locale||lv}()});class Gwe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let m$=(()=>{class t{compileModuleSync(e){return new vA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Nh(dc(e).declarations).reduce((s,a)=>{const l=ro(a);return l&&s.push(new z1(l)),s},[]);return new Gwe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ywe=(()=>Promise.resolve(0))();function PA(t){typeof Zone>"u"?Ywe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ur{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ot(!1),this.onMicrotaskEmpty=new ot(!1),this.onStable=new ot(!1),this.onError=new ot(!1),typeof Zone>"u")throw new jt(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Xwe(){let t=Bo.requestAnimationFrame,n=Bo.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Qwe(t){const n=()=>{!function Kwe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Bo,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,jA(t),t.isCheckStableRunning=!0,RA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),jA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return y$(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),_$(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return y$(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),_$(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,jA(t),RA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ur.isInAngularZone())throw new jt(909,!1)}static assertNotInAngularZone(){if(ur.isInAngularZone())throw new jt(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Jwe,vw,vw);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Jwe={};function RA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function jA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function y$(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _$(t){t._nesting--,RA(t)}class Zwe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ot,this.onMicrotaskEmpty=new ot,this.onStable=new ot,this.onError=new ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const b$=new Yn(""),bw=new Yn("");let $A,LA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$A||(function eCe(t){$A=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ur.assertNotInAngularZone(),PA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())PA(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(wt(ur),wt(BA),wt(bw))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),BA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return $A?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Rh=!1;let Mf=null;const x$=new Yn("AllowMultipleToken"),VA=new Yn("PlatformDestroyListeners"),w$=new Yn("appBootstrapListener");class C${constructor(n,e){this.name=n,this.token=e}}function k$(t,n,e=[]){const i=`Platform: ${n}`,r=new Yn(i);return(o=[])=>{let s=HA();if(!s||s.injector.get(x$,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function iCe(t){if(Mf&&!Mf.get(x$,!1))throw new jt(400,!1);Mf=t;const n=t.get(T$);(function S$(t){const n=t.get(f$,null);n&&n.forEach(e=>e())})(t)}(function D$(t=[],n){return Ca.create({name:n,providers:[{provide:FE,useValue:"platform"},{provide:VA,useValue:new Set([()=>Mf=null])},...t]})}(a,i))}return function oCe(t){const n=HA();if(!n)throw new jt(401,!1);return n}()}}function HA(){return Mf?.get(T$)??null}let T$=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function A$(t,n){let e;return e="noop"===t?new Zwe:("zone.js"===t?void 0:t)||new ur(n),e}(i?.ngZone,function E$(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:ur,useValue:r}];return r.run(()=>{const s=Ca.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(qg,null);if(!l)throw new jt(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{xw(this._modules,a),c.unsubscribe()})}),function M$(t,n,e){try{const i=e();return q1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(_w);return c.runInitializers(),c.donePromise.then(()=>(rB(a.injector.get(vc,lv)||lv),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=O$({},i);return function tCe(t,n,e){const i=new vA(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(jh);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new jt(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new jt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(VA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(wt(Ca))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function O$(t,n){return Array.isArray(n)?n.reduce(O$,t):{...t,...n}}let jh=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Wt(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Wt(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ur.assertNotInAngularZone(),PA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ur.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Mt(o,s.pipe(Je()))}bootstrap(e,i){const r=e instanceof f8;if(!this._injector.get(_w).done){!r&&function Dg(t){const n=ro(t)||rl(t)||Ul(t);return null!==n&&n.standalone}(e);throw new jt(405,Rh)}let s;s=r?e:this._injector.get(zg).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function nCe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(uv),c=s.create(Ca.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(b$,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),xw(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new jt(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;xw(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(w$,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>xw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new jt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(wt(ur),wt(Gc),wt(qg))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xw(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let $s=(()=>{class t{}return t.__NG_ELEMENT_ID__=aCe,t})();function aCe(t){return function lCe(t,n,e){if(S1(t)&&!e){const i=zl(t.index,n);return new U1(i,i)}return 47&t.type?new U1(n[sl],n):null}(Fa(),Xt(),16==(16&t))}class R${constructor(){}supports(n){return sw(n)}create(n){return new pCe(n)}}const fCe=(t,n)=>n;class pCe{constructor(n){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=n||fCe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new mCe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new j$),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new j$),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class mCe{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gCe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class j${constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new gCe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function L$(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new yCe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class yCe{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $$(){return new Sw([new R$])}let Sw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||$$()),deps:[[t,new I1,new O1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new jt(901,!1)}}return t.\u0275prov=It({token:t,providedIn:"root",factory:$$}),t})();function V$(){return new ay([new B$])}let ay=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||V$()),deps:[[t,new I1,new O1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new jt(901,!1)}}return t.\u0275prov=It({token:t,providedIn:"root",factory:V$}),t})();const xCe=k$(null,"core",[]);let wCe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(wt(jh))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();function fv(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function qA(t,n){const e=ro(t),i=n.elementInjector||Kx();return new z1(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let YA=null;function Lh(){return YA}class kCe{}const vo=new Yn("DocumentToken");let XA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function DCe(){return wt(H$)}()},providedIn:"platform"}),t})();const TCe=new Yn("Location Initialized");let H$=(()=>{class t extends XA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Lh().getBaseHref(this._doc)}onPopState(e){const i=Lh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Lh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){U$()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){U$()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:function(){return function ECe(){return new H$(wt(vo))}()},providedIn:"platform"}),t})();function U$(){return!!window.history.pushState}function JA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function z$(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Bh(t){return t&&"?"!==t[0]?"?"+t:t}let rm=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(W$)},providedIn:"root"}),t})();const G$=new Yn("appBaseHref");let W$=(()=>{class t extends rm{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Vi(vo).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return JA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Bh(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Bh(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Bh(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(wt(XA),wt(G$,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ACe=(()=>{class t extends rm{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=JA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Bh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Bh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(wt(XA),wt(G$,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),KA=(()=>{class t{constructor(e){this._subject=new ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function ICe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(z$(q$(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Bh(i))}normalize(e){return t.stripTrailingSlash(function OCe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,q$(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Bh(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Bh(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Bh,t.joinWithSlash=JA,t.stripTrailingSlash=z$,t.\u0275fac=function(e){return new(e||t)(wt(rm))},t.\u0275prov=It({token:t,factory:function(){return function MCe(){return new KA(wt(rm))}()},providedIn:"root"}),t})();function q$(t){return t.replace(/\/index.html$/,"")}var Xl=(()=>((Xl=Xl||{})[Xl.Decimal=0]="Decimal",Xl[Xl.Percent=1]="Percent",Xl[Xl.Currency=2]="Currency",Xl[Xl.Scientific=3]="Scientific",Xl))(),Vo=(()=>((Vo=Vo||{})[Vo.Format=0]="Format",Vo[Vo.Standalone=1]="Standalone",Vo))(),Yi=(()=>((Yi=Yi||{})[Yi.Narrow=0]="Narrow",Yi[Yi.Abbreviated=1]="Abbreviated",Yi[Yi.Wide=2]="Wide",Yi[Yi.Short=3]="Short",Yi))(),ts=(()=>((ts=ts||{})[ts.Short=0]="Short",ts[ts.Medium=1]="Medium",ts[ts.Long=2]="Long",ts[ts.Full=3]="Full",ts))(),Ei=(()=>((Ei=Ei||{})[Ei.Decimal=0]="Decimal",Ei[Ei.Group=1]="Group",Ei[Ei.List=2]="List",Ei[Ei.PercentSign=3]="PercentSign",Ei[Ei.PlusSign=4]="PlusSign",Ei[Ei.MinusSign=5]="MinusSign",Ei[Ei.Exponential=6]="Exponential",Ei[Ei.SuperscriptingExponent=7]="SuperscriptingExponent",Ei[Ei.PerMille=8]="PerMille",Ei[Ei.Infinity=9]="Infinity",Ei[Ei.NaN=10]="NaN",Ei[Ei.TimeSeparator=11]="TimeSeparator",Ei[Ei.CurrencyDecimal=12]="CurrencyDecimal",Ei[Ei.CurrencyGroup=13]="CurrencyGroup",Ei))();function X$(t,n,e){const i=kl(t),o=Yc([i[Nn.DayPeriodsFormat],i[Nn.DayPeriodsStandalone]],n);return Yc(o,e)}function J$(t,n,e){const i=kl(t),o=Yc([i[Nn.DaysFormat],i[Nn.DaysStandalone]],n);return Yc(o,e)}function QA(t,n,e){const i=kl(t),o=Yc([i[Nn.MonthsFormat],i[Nn.MonthsStandalone]],n);return Yc(o,e)}function kw(t,n){return Yc(kl(t)[Nn.DateFormat],n)}function Dw(t,n){return Yc(kl(t)[Nn.TimeFormat],n)}function Tw(t,n){return Yc(kl(t)[Nn.DateTimeFormat],n)}function qc(t,n){const e=kl(t),i=e[Nn.NumberSymbols][n];if(typeof i>"u"){if(n===Ei.CurrencyDecimal)return e[Nn.NumberSymbols][Ei.Decimal];if(n===Ei.CurrencyGroup)return e[Nn.NumberSymbols][Ei.Group]}return i}function K$(t){if(!t[Nn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Nn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Yc(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function eM(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const HCe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ly={},UCe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var la=(()=>((la=la||{})[la.Short=0]="Short",la[la.ShortGMT=1]="ShortGMT",la[la.Long=2]="Long",la[la.Extended=3]="Extended",la))(),Fi=(()=>((Fi=Fi||{})[Fi.FullYear=0]="FullYear",Fi[Fi.Month=1]="Month",Fi[Fi.Date=2]="Date",Fi[Fi.Hours=3]="Hours",Fi[Fi.Minutes=4]="Minutes",Fi[Fi.Seconds=5]="Seconds",Fi[Fi.FractionalSeconds=6]="FractionalSeconds",Fi[Fi.Day=7]="Day",Fi))(),rr=(()=>((rr=rr||{})[rr.DayPeriods=0]="DayPeriods",rr[rr.Days=1]="Days",rr[rr.Months=2]="Months",rr[rr.Eras=3]="Eras",rr))();function Q$(t,n,e,i){let r=function QCe(t){if(t7(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Ew(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(HCe))return function ZCe(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!t7(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=$h(e,n)||n;let a,s=[];for(;n;){if(a=UCe.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=e7(i,l),r=function KCe(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function JCe(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(e7(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function XCe(t){if(nM[t])return nM[t];let n;switch(t){case"G":case"GG":case"GGG":n=Eo(rr.Eras,Yi.Abbreviated);break;case"GGGG":n=Eo(rr.Eras,Yi.Wide);break;case"GGGGG":n=Eo(rr.Eras,Yi.Narrow);break;case"y":n=Hs(Fi.FullYear,1,0,!1,!0);break;case"yy":n=Hs(Fi.FullYear,2,0,!0,!0);break;case"yyy":n=Hs(Fi.FullYear,3,0,!1,!0);break;case"yyyy":n=Hs(Fi.FullYear,4,0,!1,!0);break;case"Y":n=Iw(1);break;case"YY":n=Iw(2,!0);break;case"YYY":n=Iw(3);break;case"YYYY":n=Iw(4);break;case"M":case"L":n=Hs(Fi.Month,1,1);break;case"MM":case"LL":n=Hs(Fi.Month,2,1);break;case"MMM":n=Eo(rr.Months,Yi.Abbreviated);break;case"MMMM":n=Eo(rr.Months,Yi.Wide);break;case"MMMMM":n=Eo(rr.Months,Yi.Narrow);break;case"LLL":n=Eo(rr.Months,Yi.Abbreviated,Vo.Standalone);break;case"LLLL":n=Eo(rr.Months,Yi.Wide,Vo.Standalone);break;case"LLLLL":n=Eo(rr.Months,Yi.Narrow,Vo.Standalone);break;case"w":n=tM(1);break;case"ww":n=tM(2);break;case"W":n=tM(1,!0);break;case"d":n=Hs(Fi.Date,1);break;case"dd":n=Hs(Fi.Date,2);break;case"c":case"cc":n=Hs(Fi.Day,1);break;case"ccc":n=Eo(rr.Days,Yi.Abbreviated,Vo.Standalone);break;case"cccc":n=Eo(rr.Days,Yi.Wide,Vo.Standalone);break;case"ccccc":n=Eo(rr.Days,Yi.Narrow,Vo.Standalone);break;case"cccccc":n=Eo(rr.Days,Yi.Short,Vo.Standalone);break;case"E":case"EE":case"EEE":n=Eo(rr.Days,Yi.Abbreviated);break;case"EEEE":n=Eo(rr.Days,Yi.Wide);break;case"EEEEE":n=Eo(rr.Days,Yi.Narrow);break;case"EEEEEE":n=Eo(rr.Days,Yi.Short);break;case"a":case"aa":case"aaa":n=Eo(rr.DayPeriods,Yi.Abbreviated);break;case"aaaa":n=Eo(rr.DayPeriods,Yi.Wide);break;case"aaaaa":n=Eo(rr.DayPeriods,Yi.Narrow);break;case"b":case"bb":case"bbb":n=Eo(rr.DayPeriods,Yi.Abbreviated,Vo.Standalone,!0);break;case"bbbb":n=Eo(rr.DayPeriods,Yi.Wide,Vo.Standalone,!0);break;case"bbbbb":n=Eo(rr.DayPeriods,Yi.Narrow,Vo.Standalone,!0);break;case"B":case"BB":case"BBB":n=Eo(rr.DayPeriods,Yi.Abbreviated,Vo.Format,!0);break;case"BBBB":n=Eo(rr.DayPeriods,Yi.Wide,Vo.Format,!0);break;case"BBBBB":n=Eo(rr.DayPeriods,Yi.Narrow,Vo.Format,!0);break;case"h":n=Hs(Fi.Hours,1,-12);break;case"hh":n=Hs(Fi.Hours,2,-12);break;case"H":n=Hs(Fi.Hours,1);break;case"HH":n=Hs(Fi.Hours,2);break;case"m":n=Hs(Fi.Minutes,1);break;case"mm":n=Hs(Fi.Minutes,2);break;case"s":n=Hs(Fi.Seconds,1);break;case"ss":n=Hs(Fi.Seconds,2);break;case"S":n=Hs(Fi.FractionalSeconds,1);break;case"SS":n=Hs(Fi.FractionalSeconds,2);break;case"SSS":n=Hs(Fi.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Mw(la.Short);break;case"ZZZZZ":n=Mw(la.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Mw(la.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Mw(la.Long);break;default:return null}return nM[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Ew(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function $h(t,n){const e=function NCe(t){return kl(t)[Nn.LocaleId]}(t);if(ly[e]=ly[e]||{},ly[e][n])return ly[e][n];let i="";switch(n){case"shortDate":i=kw(t,ts.Short);break;case"mediumDate":i=kw(t,ts.Medium);break;case"longDate":i=kw(t,ts.Long);break;case"fullDate":i=kw(t,ts.Full);break;case"shortTime":i=Dw(t,ts.Short);break;case"mediumTime":i=Dw(t,ts.Medium);break;case"longTime":i=Dw(t,ts.Long);break;case"fullTime":i=Dw(t,ts.Full);break;case"short":const r=$h(t,"shortTime"),o=$h(t,"shortDate");i=Aw(Tw(t,ts.Short),[r,o]);break;case"medium":const s=$h(t,"mediumTime"),a=$h(t,"mediumDate");i=Aw(Tw(t,ts.Medium),[s,a]);break;case"long":const l=$h(t,"longTime"),c=$h(t,"longDate");i=Aw(Tw(t,ts.Long),[l,c]);break;case"full":const u=$h(t,"fullTime"),d=$h(t,"fullDate");i=Aw(Tw(t,ts.Full),[u,d])}return i&&(ly[e][n]=i),i}function Aw(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Nu(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Fi.Hours)0===a&&-12===e&&(a=12);else if(t===Fi.FractionalSeconds)return function zCe(t,n){return Nu(t,3).substring(0,n)}(a,n);const l=qc(s,Ei.MinusSign);return Nu(a,n,l,i,r)}}function Eo(t,n,e=Vo.Format,i=!1){return function(r,o){return function WCe(t,n,e,i,r,o){switch(e){case rr.Months:return QA(n,r,i)[t.getMonth()];case rr.Days:return J$(n,r,i)[t.getDay()];case rr.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function jCe(t){const n=kl(t);return K$(n),(n[Nn.ExtraData][2]||[]).map(i=>"string"==typeof i?eM(i):[eM(i[0]),eM(i[1])])}(n),u=function LCe(t,n,e){const i=kl(t);K$(i);const o=Yc([i[Nn.ExtraData][0],i[Nn.ExtraData][1]],n)||[];return Yc(o,e)||[]}(n,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,m=s>=f.hours&&a>=f.minutes,g=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case la.Short:return(r>=0?"+":"")+Nu(s,2,o)+Nu(Math.abs(r%60),2,o);case la.ShortGMT:return"GMT"+(r>=0?"+":"")+Nu(s,1,o);case la.Long:return"GMT"+(r>=0?"+":"")+Nu(s,2,o)+":"+Nu(Math.abs(r%60),2,o);case la.Extended:return 0===i?"Z":(r>=0?"+":"")+Nu(s,2,o)+":"+Nu(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const qCe=0,Ow=4;function Z$(t){return Ew(t.getFullYear(),t.getMonth(),t.getDate()+(Ow-t.getDay()))}function tM(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=Z$(e),s=function YCe(t){const n=Ew(t,qCe,1).getDay();return Ew(t,0,1+(n<=Ow?Ow:Ow+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Nu(r,t,qc(i,Ei.MinusSign))}}function Iw(t,n=!1){return function(e,i){return Nu(Z$(e).getFullYear(),t,qc(i,Ei.MinusSign),n)}}const nM={};function e7(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function t7(t){return t instanceof Date&&!isNaN(t.valueOf())}const e2e=/^(\d+)?\.((\d+)(-(\d+))?)?$/,n7=22,Nw=".",cy="0",t2e=";",n2e=",",iM="#";function sM(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function o7(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const lM=/\s+/,s7=[];let Of=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=s7,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(lM):s7}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(lM):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(lM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(ge(Sw),ge(ay),ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class h2e{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Un=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new h2e(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),c7(a,r)}});for(let r=0,o=i.length;r{c7(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo),ge(Sw))},t.\u0275dir=un({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function c7(t,n){t.context.$implicit=n.item}let xn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new p2e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){u7("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){u7("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo))},t.\u0275dir=un({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class p2e{constructor(){this.$implicit=null,this.ngIf=null}}function u7(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${kn(n)}'.`)}class cM{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Fw=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),d7=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new cM(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo),ge(Fw,9))},t.\u0275dir=un({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),f7=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Gl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ay),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Fu=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl))},t.\u0275dir=un({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ei]}),t})();let m7=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!function uM(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function o2e(t,n,e){return function rM(t,n,e,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function l2e(t){let i,r,o,s,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf(Nw))>-1&&(n=n.replace(Nw,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===cy;o++);if(o===(a=n.length))i=[0],r=1;else{for(a--;n.charAt(a)===cy;)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(n.charAt(o))}return r>n7&&(i=i.splice(0,n7-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);s&&(c=function a2e(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(o){const y=o.match(e2e);if(null===y)throw new Error(`${o} is not a valid digit info`);const b=y[1],C=y[3],D=y[5];null!=b&&(u=sM(b)),null!=C&&(d=sM(C)),null!=D?h=sM(D):null!=C&&d>h&&(h=d)}!function c2e(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(n,r),e);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=c?p.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,h);let f=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(l=f.every(y=>!y);p0?g=f.splice(p,f.length):(g=f,f=[0]);const v=[];for(f.length>=n.lgSize&&v.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)v.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(qc(e,i)),g.length&&(a+=qc(e,r)+g.join("")),m&&(a+=qc(e,Ei.Exponential)+"+"+m)}else a=qc(e,Ei.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function oM(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(t2e),r=i[0],o=i[1],s=-1!==r.indexOf(Nw)?r.split(Nw):[r.substring(0,r.lastIndexOf(cy)+1),r.substring(r.lastIndexOf(cy)+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf(iM));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();const g7="browser";function v7(t){return t===g7}let V2e=(()=>{class t{}return t.\u0275prov=It({token:t,providedIn:"root",factory:()=>new H2e(wt(vo),window)}),t})();class H2e{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function U2e(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=y7(this.window.history)||y7(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function y7(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class _7{}class gSe extends kCe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class pM extends gSe{static makeCurrent(){!function SCe(t){YA||(YA=t)}(new pM)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function vSe(){return dy=dy||document.querySelector("base"),dy?dy.getAttribute("href"):null}();return null==e?null:function ySe(t){jw=jw||document.createElement("a"),jw.setAttribute("href",t);const n=jw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){dy=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return o7(document.cookie,n)}}let jw,dy=null;const S7=new Yn("TRANSITION_ID"),bSe=[{provide:yw,useFactory:function _Se(t,n,e){return()=>{e.get(_w).donePromise.then(()=>{const i=Lh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const Lw=new Yn("EventManagerPlugins");let Bw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),hy=(()=>{class t extends D7{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const mM={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gM=/%COMP%/g,A7=new Yn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function M7(t,n){return n.flat(100).map(e=>e.replace(gM,t))}function O7(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let $w=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new vM(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof F7?r.applyToHost(e):r instanceof yM&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case Su.Emulated:o=new F7(s,a,i,this.appId,l);break;case Su.ShadowDom:return new ASe(s,a,e,i);default:o=new yM(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(wt(Bw),wt(hy),wt(oy),wt(A7))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class vM{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(mM[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(N7(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(N7(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=mM[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=mM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Gl.DashCase|Gl.Important)?n.style.setProperty(e,i,r&Gl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Gl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,O7(i)):this.eventManager.addEventListener(n,e,O7(i))}}function N7(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class ASe extends vM{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=M7(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class yM extends vM{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=M7(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class F7 extends yM{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function DSe(t){return"_ngcontent-%COMP%".replace(gM,t)}(s),this.hostAttr=function TSe(t){return"_nghost-%COMP%".replace(gM,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let MSe=(()=>{class t extends k7{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const P7=["alt","control","meta","shift"],OSe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ISe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let NSe=(()=>{class t extends k7{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Lh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),P7.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=OSe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),P7.forEach(s=>{s!==r&&(0,ISe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const j7=[{provide:sy,useValue:g7},{provide:f$,useValue:function FSe(){pM.makeCurrent()},multi:!0},{provide:vo,useFactory:function RSe(){return function O1e(t){DE=t}(document),document},deps:[]}],jSe=k$(xCe,"browser",j7),L7=new Yn(""),B7=[{provide:bw,useClass:class xSe{addToWindow(n){Bo.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Bo.getAllAngularTestabilities=()=>n.getAllTestabilities(),Bo.getAllAngularRootElements=()=>n.getAllRootElements(),Bo.frameworkStabilizers||(Bo.frameworkStabilizers=[]),Bo.frameworkStabilizers.push(i=>{const r=Bo.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Lh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:b$,useClass:LA,deps:[ur,BA,bw]},{provide:LA,useClass:LA,deps:[ur,BA,bw]}],$7=[{provide:FE,useValue:"root"},{provide:qg,useFactory:function PSe(){return new qg},deps:[]},{provide:Lw,useClass:MSe,multi:!0,deps:[vo,ur,sy]},{provide:Lw,useClass:NSe,multi:!0,deps:[vo]},{provide:$w,useClass:$w,deps:[Bw,hy,oy,A7]},{provide:Wg,useExisting:$w},{provide:D7,useExisting:hy},{provide:hy,useClass:hy,deps:[vo]},{provide:Bw,useClass:Bw,deps:[Lw,ur]},{provide:_7,useClass:wSe,deps:[]},[]];let bM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:oy,useValue:e.appId},{provide:S7,useExisting:oy},bSe]}}}return t.\u0275fac=function(e){return new(e||t)(wt(L7,12))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[...$7,...B7],imports:[If,wCe]}),t})(),V7=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function BSe(){return new V7(wt(vo))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let wM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new(e||t):wt(z7),i},providedIn:"root"}),t})(),z7=(()=>{class t extends wM{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case To.NONE:return i;case To.HTML:return Id(i,"HTML")?mc(i):t8(this._doc,String(i)).toString();case To.STYLE:return Id(i,"Style")?mc(i):i;case To.SCRIPT:if(Id(i,"Script"))return mc(i);throw new Error("unsafe value used in a script context");case To.URL:return Id(i,"URL")?mc(i):Wx(String(i));case To.RESOURCE_URL:if(Id(i,"ResourceURL"))return mc(i);throw new Error(`unsafe value used in a resource URL context (see ${fx})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${fx})`)}}bypassSecurityTrustHtml(e){return function L1e(t){return new I1e(t)}(e)}bypassSecurityTrustStyle(e){return function B1e(t){return new N1e(t)}(e)}bypassSecurityTrustScript(e){return function $1e(t){return new F1e(t)}(e)}bypassSecurityTrustUrl(e){return function V1e(t){return new P1e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function H1e(t){return new R1e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function zSe(t){return new z7(t.get(vo))}(wt(Ca)),i},providedIn:"root"}),t})();class G7{}class GSe{}const Vh="*";function ul(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ra(t,n=null){return{type:4,styles:n,timings:t}}function W7(t,n=null){return{type:2,steps:t,options:n}}function Or(t){return{type:6,styles:t,offset:null}}function ja(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function q7(t){Promise.resolve().then(t)}class fy{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){q7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Y7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?q7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const CM="!";function X7(t){return new jt(3e3,!1)}function Dke(){return typeof window<"u"&&typeof window.document<"u"}function SM(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ff(t){switch(t.length){case 0:return new fy;case 1:return t[0];default:return new Y7(t)}}function J7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case CM:v=r.get(m);break;case Vh:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function pke(t){return new jt(3502,!1)}();return a}function kM(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&DM(e,"start",t)));break;case"done":t.onDone(()=>i(e&&DM(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&DM(e,"destroy",t)))}}function DM(t,n,e){const o=TM(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function TM(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function yc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function K7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let EM=(t,n)=>!1,Q7=(t,n,e)=>[],Z7=null;function AM(t){const n=t.parentNode||t.host;return n===Z7?null:n}(SM()||typeof Element<"u")&&(Dke()?(Z7=(()=>document.documentElement)(),EM=(t,n)=>{for(;n;){if(n===t)return!0;n=AM(n)}return!1}):EM=(t,n)=>t.contains(n),Q7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let om=null,e9=!1;const t9=EM,n9=Q7;let i9=(()=>{class t{validateStyleProperty(e){return function Eke(t){om||(om=function Ake(){return typeof document<"u"?document.body:null}()||{},e9=!!om.style&&"WebkitAppearance"in om.style);let n=!0;return om.style&&!function Tke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in om.style,!n&&e9&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in om.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return t9(e,i)}getParentElement(e){return AM(e)}query(e,i,r){return n9(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new fy(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),MM=(()=>{class t{}return t.NOOP=new i9,t})();const Mke=1e3,OM="ng-enter",Vw="ng-leave",Hw="ng-trigger",Uw=".ng-trigger",o9="ng-animating",IM=".ng-animating";function Hh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:NM(parseFloat(n[1]),n[2])}function NM(t,n){return"s"===n?t*Mke:t}function zw(t,n,e){return t.hasOwnProperty("duration")?t:function Ike(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(X7()),{duration:0,delay:0,easing:""};r=NM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=NM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function WSe(){return new jt(3100,!1)}()),a=!0),o<0&&(n.push(function qSe(){return new jt(3101,!1)}()),a=!0),a&&n.splice(l,0,X7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function py(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function s9(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Pf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function l9(t,n,e){return e?n+":"+e+";":""}function c9(t){let n="";for(let e=0;e{const o=PM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),SM()&&c9(t))}function sm(t,n){t.style&&(n.forEach((e,i)=>{const r=PM(i);t.style[r]=""}),SM()&&c9(t))}function my(t){return Array.isArray(t)?1==t.length?t[0]:W7(t):t}const FM=new RegExp("{{\\s*(.+?)\\s*}}","g");function u9(t){let n=[];if("string"==typeof t){let e;for(;e=FM.exec(t);)n.push(e[1]);FM.lastIndex=0}return n}function gy(t,n,e){const i=t.toString(),r=i.replace(FM,(o,s)=>{let a=n[s];return null==a&&(e.push(function XSe(t){return new jt(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function Gw(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const Pke=/-+([a-z0-9])/g;function PM(t){return t.replace(Pke,(...n)=>n[1].toUpperCase())}function Rke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _c(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function JSe(t){return new jt(3004,!1)}()}}function d9(t,n){return window.getComputedStyle(t)[n]}const Yw="*";function Hke(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Uke(t,n,e){if(":"==t[0]){const l=function zke(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function cke(t){return new jt(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(h9(r,s));"<"==o[0]&&!(r==Yw&&s==Yw)&&n.push(h9(s,r))}(i,e,n)):e.push(t),e}const Xw=new Set(["true","1"]),Jw=new Set(["false","0"]);function h9(t,n){const e=Xw.has(t)||Jw.has(t),i=Xw.has(n)||Jw.has(n);return(r,o)=>{let s=t==Yw||t==r,a=n==Yw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Xw.has(t):Jw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Xw.has(n):Jw.has(n)),s&&a}}const Gke=new RegExp("s*:selfs*,?","g");function RM(t,n,e,i){return new Wke(t).build(n,e,i)}class Wke{constructor(n){this._driver=n}build(n,e,i){const r=new Xke(e);return this._resetContextStyleTimingState(r),_c(this,my(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function QSe(){return new jt(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function ZSe(){return new jt(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{u9(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Gw(o.values()),e.errors.push(function eke(t,n){return new jt(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=_c(this,my(n.animation),e);return{type:1,matchers:Hke(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:am(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>_c(this,i,e)),options:am(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=_c(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:am(n.options)}}visitAnimate(n,e){const i=function Kke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return jM(zw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=jM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=zw(e,n);return jM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Or({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Or(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Vh?i.push(a):e.errors.push(new jt(3002,!1)):i.push(s9(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function nke(t,n,e,i,r){return new jt(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function Fke(t,n,e){const i=n.params||{},r=u9(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function YSe(t){return new jt(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function ike(){return new jt(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let b=null!=y.offset?y.offset:function Jke(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),C=0;return null!=b&&(o++,C=y.offset=b),l=l||C<0||C>1,a=a||C0&&o{const b=h>0?y==f?1:h*y:s[y],C=b*g;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(v,e),v.offset=b,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:_c(this,my(n.animation),e),options:am(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:am(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:am(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function qke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Gke,"")),t=t.replace(/@\*/g,Uw).replace(/@\w+/g,e=>Uw+"-"+e.slice(1)).replace(/:animating/g,IM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,yc(e.collectedStyles,e.currentQuerySelector,new Map);const a=_c(this,my(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:am(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function ake(){return new jt(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:zw(n.timings,e.errors,!0);return{type:12,animation:_c(this,my(n.animation),e),timings:i,options:null}}}class Xke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function am(t){return t?(t=py(t)).params&&(t.params=function Yke(t){return t?py(t):null}(t.params)):t={},t}function jM(t,n,e){return{duration:t,delay:n,easing:e}}function LM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Kw{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const eDe=new RegExp(":enter","g"),nDe=new RegExp(":leave","g");function BM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new iDe).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class iDe{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Kw;const d=new $M(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Hh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),_c(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[LM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Hh(gy(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Hh(i.duration):null,a=null!=i.delay?Hh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),_c(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qw);const s=Hh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>_c(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Hh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),_c(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return zw(e.params?gy(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Hh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Qw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),_c(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;_c(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Qw={};class $M{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Zw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Hh(i.duration)),null!=i.delay&&(r.delay=Hh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=gy(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new $M(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Qw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new rDe(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(eDe,"."+this._enterClassName)).replace(nDe,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function lke(t){return new jt(3014,!1)}()),a}}class Zw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Zw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vh),this._currentKeyframe.set(e,Vh);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function oDe(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,Vh)}else Pf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=gy(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Vh),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Pf(a,new Map,this._backFill);c.forEach((u,d)=>{u===CM?n.add(d):u===Vh&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?Gw(n.values()):[],s=e.size?Gw(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return LM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class rDe extends Zw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Pf(n[0]);l.set("offset",0),o.push(l);const c=Pf(n[0]);c.set("offset",m9(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Pf(n[d]);const f=h.get("offset");h.set("offset",m9((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return LM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function m9(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class VM{}const sDe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class aDe extends VM{normalizePropertyName(n,e){return PM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(sDe.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function KSe(t,n){return new jt(3005,!1)}())}return s+o}}function g9(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const HM={};class v9{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function lDe(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||HM,p=this.buildStyles(i,a&&a.params||HM,d),m=l&&l.params||HM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,b=new Map,C="void"===r,D={params:cDe(m,h),delay:this.ast.options?.delay},E=u?[]:BM(n,e,this.ast.animation,o,s,p,g,D,c,d);let B=0;if(E.forEach(j=>{B=Math.max(j.duration+j.delay,B)}),d.length)return g9(e,this._triggerName,i,r,C,p,g,[],[],y,b,B,d);E.forEach(j=>{const U=j.element,G=yc(y,U,new Set);j.preStyleProps.forEach(oe=>G.add(oe));const X=yc(b,U,new Set);j.postStyleProps.forEach(oe=>X.add(oe)),U!==e&&v.add(U)});const z=Gw(v.values());return g9(e,this._triggerName,i,r,C,p,g,E,z,y,b,B)}}function cDe(t,n){const e=py(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class uDe{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=py(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=gy(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class hDe{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new uDe(r.style,r.options&&r.options.params||{},i))}),y9(this.states,"true","1"),y9(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new v9(n,r,this.states))}),this.fallbackTransition=function fDe(t,n,e){return new v9(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function y9(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const pDe=new Kw;class mDe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=RM(this._driver,e,i,r);if(i.length)throw function mke(t){return new jt(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=J7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=BM(this._driver,e,o,OM,Vw,new Map,new Map,i,pDe,r),s.forEach(u=>{const d=yc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function gke(){return new jt(3300,!1)}()),s=[]),r.length)throw function vke(t){return new jt(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Vh))})});const c=Ff(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function yke(t){return new jt(3301,!1)}();return e}listen(n,e,i,r){const o=TM(e,"","","");return kM(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const _9="ng-animate-queued",UM="ng-animate-disabled",bDe=[],b9={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xDe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xc="__ng_removed";class zM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function kDe(t){return t??null}(i?n.value:n),i){const o=py(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const vy="void",GM=new zM(vy);class wDe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Jc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function _ke(t,n){return new jt(3302,!1)}();if(null==i||0==i.length)throw function bke(t){return new jt(3303,!1)}();if(!function DDe(t){return"start"==t||"done"==t}(i))throw function xke(t,n){return new jt(3400,!1)}();const o=yc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=yc(this._engine.statesByElement,n,new Map);return a.has(e)||(Jc(n,Hw),Jc(n,Hw+"-"+e),a.set(e,GM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function wke(t){return new jt(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new WM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Jc(n,Hw),Jc(n,Hw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new zM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=GM),c.value!==vy&&l.value===c.value){if(!function ADe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{sm(n,g),jd(n,v)})}return}const h=yc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Jc(n,_9),s.onStart(()=>{pv(n,_9)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Uw,!0);i.forEach(r=>{if(r[Xc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,vy,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Ff(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||GM,u=new zM(vy),d=new WM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Xc];(!o||o===b9)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Jc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=TM(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,kM(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class CDe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new wDe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(eC(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!eC(e))return;const o=e[Xc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Jc(n,UM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),pv(n,UM))}removeNode(n,e,i,r){if(eC(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Xc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return eC(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Uw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,IM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ff(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Xc];if(e&&e.setForRemoval){if(n[Xc]=b9,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(UM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ff(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function Cke(t){return new jt(3402,!1)}()}_flushAnimations(n,e){const i=new Kw,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(J=>{u.add(J);const H=this.driver.query(J,".ng-animate-queued",!0);for(let pe=0;pe{const pe=OM+m++;p.set(H,pe),J.forEach(A=>Jc(A,pe))});const g=[],v=new Set,y=new Set;for(let J=0;Jv.add(A)):y.add(H))}const b=new Map,C=C9(h,Array.from(v));C.forEach((J,H)=>{const pe=Vw+m++;b.set(H,pe),J.forEach(A=>Jc(A,pe))}),n.push(()=>{f.forEach((J,H)=>{const pe=p.get(H);J.forEach(A=>pv(A,pe))}),C.forEach((J,H)=>{const pe=b.get(H);J.forEach(A=>pv(A,pe))}),g.forEach(J=>{this.processLeaveNode(J)})});const D=[],E=[];for(let J=this._namespaceList.length-1;J>=0;J--)this._namespaceList[J].drainQueuedTransitions(e).forEach(pe=>{const A=pe.player,N=pe.element;if(D.push(A),this.collectedEnterElements.length){const Te=N[Xc];if(Te&&Te.setForMove){if(Te.previousTriggersValues&&Te.previousTriggersValues.has(pe.triggerName)){const et=Te.previousTriggersValues.get(pe.triggerName),We=this.statesByElement.get(pe.element);if(We&&We.has(pe.triggerName)){const st=We.get(pe.triggerName);st.value=et,We.set(pe.triggerName,st)}}return void A.destroy()}}const F=!d||!this.driver.containsElement(d,N),q=b.get(N),V=p.get(N),ce=this._buildInstruction(pe,i,V,q,F);if(ce.errors&&ce.errors.length)return void E.push(ce);if(F)return A.onStart(()=>sm(N,ce.fromStyles)),A.onDestroy(()=>jd(N,ce.toStyles)),void r.push(A);if(pe.isFallbackTransition)return A.onStart(()=>sm(N,ce.fromStyles)),A.onDestroy(()=>jd(N,ce.toStyles)),void r.push(A);const ve=[];ce.timelines.forEach(Te=>{Te.stretchStartingKeyframe=!0,this.disabledNodes.has(Te.element)||ve.push(Te)}),ce.timelines=ve,i.append(N,ce.timelines),s.push({instruction:ce,player:A,element:N}),ce.queriedElements.forEach(Te=>yc(a,Te,[]).push(A)),ce.preStyleProps.forEach((Te,et)=>{if(Te.size){let We=l.get(et);We||l.set(et,We=new Set),Te.forEach((st,$)=>We.add($))}}),ce.postStyleProps.forEach((Te,et)=>{let We=c.get(et);We||c.set(et,We=new Set),Te.forEach((st,$)=>We.add($))})});if(E.length){const J=[];E.forEach(H=>{J.push(function Ske(t,n){return new jt(3505,!1)}())}),D.forEach(H=>H.destroy()),this.reportError(J)}const B=new Map,z=new Map;s.forEach(J=>{const H=J.element;i.has(H)&&(z.set(H,H),this._beforeAnimationBuild(J.player.namespaceId,J.instruction,B))}),r.forEach(J=>{const H=J.element;this._getPreviousPlayers(H,!1,J.namespaceId,J.triggerName,null).forEach(A=>{yc(B,H,[]).push(A),A.destroy()})});const j=g.filter(J=>k9(J,l,c)),U=new Map;w9(U,this.driver,y,c,Vh).forEach(J=>{k9(J,l,c)&&j.push(J)});const X=new Map;f.forEach((J,H)=>{w9(X,this.driver,new Set(J),l,CM)}),j.forEach(J=>{const H=U.get(J),pe=X.get(J);U.set(J,new Map([...Array.from(H?.entries()??[]),...Array.from(pe?.entries()??[])]))});const oe=[],P=[],W={};s.forEach(J=>{const{element:H,player:pe,instruction:A}=J;if(i.has(H)){if(u.has(H))return pe.onDestroy(()=>jd(H,A.toStyles)),pe.disabled=!0,pe.overrideTotalTime(A.totalTime),void r.push(pe);let N=W;if(z.size>1){let q=H;const V=[];for(;q=q.parentNode;){const ce=z.get(q);if(ce){N=ce;break}V.push(q)}V.forEach(ce=>z.set(ce,N))}const F=this._buildAnimation(pe.namespaceId,A,B,o,X,U);if(pe.setRealPlayer(F),N===W)oe.push(pe);else{const q=this.playersByElement.get(N);q&&q.length&&(pe.parentPlayer=Ff(q)),r.push(pe)}}else sm(H,A.fromStyles),pe.onDestroy(()=>jd(H,A.toStyles)),P.push(pe),u.has(H)&&r.push(pe)}),P.forEach(J=>{const H=o.get(J.element);if(H&&H.length){const pe=Ff(H);J.setRealPlayer(pe)}}),r.forEach(J=>{J.parentPlayer?J.syncPlayerEvents(J.parentPlayer):J.destroy()});for(let J=0;J!F.destroyed);N.length?TDe(this,H,N):this.processLeaveNode(H)}return g.length=0,oe.forEach(J=>{this.players.push(J),J.onDone(()=>{J.destroy();const H=this.players.indexOf(J);this.players.splice(H,1)}),J.play()}),oe}elementContainsData(n,e){let i=!1;const r=e[Xc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==vy;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=yc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}sm(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[Xc];if(g&&g.removedBeforeQueried)return new fy(p.duration,p.delay);const v=m!==l,y=function EDe(t){const n=[];return S9(t,n),n}((i.get(m)||bDe).map(B=>B.getRealPlayer())).filter(B=>!!B.element&&B.element===m),b=o.get(m),C=s.get(m),D=J7(0,this._normalizer,0,p.keyframes,b,C),E=this._buildPlayer(p,D,y);if(p.subTimeline&&r&&d.add(m),v){const B=new WM(n,a,m);B.setRealPlayer(E),c.push(B)}return E});c.forEach(p=>{yc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function SDe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Jc(p,o9));const f=Ff(h);return f.onDestroy(()=>{u.forEach(p=>pv(p,o9)),jd(l,e.toStyles)}),d.forEach(p=>{yc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new fy(n.duration,n.delay)}}class WM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new fy,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>kM(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){yc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function eC(t){return t&&1===t.nodeType}function x9(t,n){const e=t.style.display;return t.style.display=n??"none",e}function w9(t,n,e,i,r){const o=[];e.forEach(l=>o.push(x9(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Xc]=xDe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>x9(l,o[a++])),s}function C9(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Jc(t,n){t.classList?.add(n)}function pv(t,n){t.classList?.remove(n)}function TDe(t,n,e){Ff(e).onDone(()=>t.processLeaveNode(n))}function S9(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class tC{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new CDe(n,e,i),this._timelineEngine=new mDe(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=RM(this._driver,o,l,c);if(l.length)throw function fke(t,n){return new jt(3404,!1)}();a=function dDe(t,n,e){return new hDe(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=K7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=K7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ODe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&jd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jd(this._element,this._initialStyles),this._endStyles&&(jd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sm(this._element,this._endStyles),this._endStyles=null),jd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function qM(t){let n=null;return t.forEach((e,i)=>{(function IDe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class D9{constructor(n,e,i,r){this.element=n,this.keyframes=e,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._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:d9(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class NDe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return t9(n,e)}getParentElement(n){return AM(n)}query(n,e,i){return n9(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof D9);(function jke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function Nke(t){return t.length?t[0]instanceof Map?t:t.map(n=>s9(n)):[]}(e).map(f=>Pf(f));d=function Lke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,d9(t,a)))}}return n}(n,d,c);const h=function MDe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=qM(n[0]),n.length>1&&(i=qM(n[n.length-1]))):n instanceof Map&&(e=qM(n)),e||i?new ODe(t,e,i):null}(n,d);return new D9(n,d,l,h)}}let FDe=(()=>{class t extends G7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Su.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?W7(e):e;return T9(this._renderer,null,i,"register",[r]),new PDe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(wt(Wg),wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class PDe extends GSe{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new RDe(this._id,n,e||{},this._renderer)}}class RDe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return T9(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function T9(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const E9="@.disabled";let jDe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new A9("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new LDe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(wt(Wg),wt(tC),wt(ur))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class A9{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==E9?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class LDe extends A9{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==E9?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function BDe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function $De(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let VDe=(()=>{class t extends tC{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(wt(vo),wt(MM),wt(VM),wt(jh))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const M9=[{provide:G7,useClass:FDe},{provide:VM,useFactory:function HDe(){return new aDe}},{provide:tC,useClass:VDe},{provide:Wg,useFactory:function UDe(t,n,e){return new jDe(t,n,e)},deps:[$w,tC,ur]}],YM=[{provide:MM,useFactory:()=>new NDe},{provide:p$,useValue:"BrowserAnimations"},...M9],XM=[{provide:MM,useClass:i9},{provide:p$,useValue:"NoopAnimations"},...M9];let zDe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?XM:YM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:YM,imports:[bM]}),t})(),GDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:XM,imports:[bM]}),t})();function Hn(...t){let n=t[t.length-1];return fi(n)?(t.pop(),ia(t,n)):at(t)}class ca extends fn{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Cn;return this._value}next(n){super.next(this._value=n)}}const iC=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class JM extends I{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class WDe extends I{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function KM(t,n,e,i,r=new WDe(t,e,i)){if(!r.closed)return n instanceof Wt?n.subscribe(r):nl(n)(r)}const O9={};function rC(...t){let n,e;return fi(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Se(t[0])&&(t=t[0]),at(t,e).lift(new qDe(n))}class qDe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new YDe(n,this.resultSelector))}}class YDe extends JM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(O9),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function sC(t){return t?function JDe(t){return new Wt(n=>t.schedule(()=>n.complete()))}(t):Uh}function I9(t){return new Wt(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?ho(e):sC()).subscribe(n)})}function Rf(t,n){return new Wt(n?e=>n.schedule(KDe,0,{error:t,subscriber:e}):e=>e.error(t))}function KDe({error:t,subscriber:n}){n.error(t)}function bc(t,n){return"function"==typeof n?e=>e.pipe(bc((i,r)=>ho(t(i,r)).pipe($t((o,s)=>n(i,o,r,s))))):e=>e.lift(new QDe(t))}class QDe{constructor(n){this.project=n}call(n,e){return e.subscribe(new ZDe(n,this.project))}}class ZDe extends Y{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Hl(this),r=this.destination;r.add(i),this.innerSubscription=Le(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const N9=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function ua(t){return n=>0===t?sC():n.lift(new eTe(t))}class eTe{constructor(n){if(this.total=n,this.total<0)throw new N9}call(n,e){return e.subscribe(new tTe(n,this.total))}}class tTe extends I{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function aC(...t){const n=t[t.length-1];return fi(n)?(t.pop(),e=>oC(t,e,n)):e=>oC(t,e)}function ps(t,n){return function(i){return i.lift(new nTe(t,n))}}class nTe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new iTe(n,this.predicate,this.thisArg))}}class iTe extends I{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function lC(t=null){return n=>n.lift(new rTe(t))}class rTe{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new oTe(n,this.defaultValue))}}class oTe extends I{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function F9(t=lTe){return n=>n.lift(new sTe(t))}class sTe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new aTe(n,this.errorFactory))}}class aTe extends I{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function lTe(){return new iC}function jf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ps((r,o)=>t(r,o,i)):ht,ua(1),e?lC(n):F9(()=>new iC))}function Lf(t,n){return it(t,n,1)}function zh(){}function ms(t,n,e){return function(r){return r.lift(new cTe(t,n,e))}}class cTe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new uTe(n,this.nextOrObserver,this.error,this.complete))}}class uTe extends I{constructor(n,e,i,r){super(n),this._tapNext=zh,this._tapError=zh,this._tapComplete=zh,this._tapError=i||zh,this._tapComplete=r||zh,be(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||zh,this._tapError=e.error||zh,this._tapComplete=e.complete||zh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Jl(t){return function(e){const i=new dTe(t),r=e.lift(i);return i.caught=r}}class dTe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new hTe(n,this.selector,this.caught))}}class hTe extends Y{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Hl(this);this.add(i);const r=Le(e,i);r!==i&&this.add(r)}}}function P9(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new fTe(t,n,e))}}class fTe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new pTe(n,this.accumulator,this.seed,this.hasSeed))}}class pTe extends I{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function QM(t){return function(e){return 0===t?sC():e.lift(new mTe(t))}}class mTe{constructor(n){if(this.total=n,this.total<0)throw new N9}call(n,e){return e.subscribe(new gTe(n,this.total))}}class gTe extends I{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?ps((r,o)=>t(r,o,i)):ht,QM(1),e?lC(n):F9(()=>new iC))}class yTe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new _Te(n,this.predicate,this.inclusive))}}class _Te extends I{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class xTe{constructor(n){this.value=n}call(n,e){return e.subscribe(new wTe(n,this.value))}}class wTe extends I{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function ZM(t){return n=>n.lift(new CTe(t))}class CTe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new STe(n,this.callback))}}class STe extends I{constructor(n,e){super(n),this.add(new re(e))}}const Ki="primary",yy=Symbol("RouteTitle");class kTe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mv(t){return new kTe(t)}function DTe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function L9(t){return Array.prototype.concat.apply([],t)}function B9(t){return t.length>0?t[t.length-1]:null}function La(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Bf(t){return sA(t)?t:q1(t)?ho(Promise.resolve(t)):Hn(t)}const cC=!1,ETe={exact:function H9(t,n,e){if(!lm(t.segments,n.segments)||!uC(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!H9(t.children[i],n.children[i],e))return!1;return!0},subset:U9},$9={exact:function ATe(t,n){return Ld(t,n)},subset:function MTe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>j9(t[e],n[e]))},ignored:()=>!0};function V9(t,n,e){return ETe[e.paths](t.root,n.root,e.matrixParams)&&$9[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function U9(t,n,e){return z9(t,n,n.segments,e)}function z9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!lm(r,e)||n.hasChildren()||!uC(r,e,i))}if(t.segments.length===e.length){if(!lm(t.segments,e)||!uC(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!U9(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(lm(t.segments,r)&&uC(t.segments,r,i)&&t.children[Ki])&&z9(t.children[Ki],n,o,i)}}function uC(t,n,e){return n.every((i,r)=>$9[e](t[r].parameters,i.parameters))}class $f{constructor(n=new pr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mv(this.queryParams)),this._queryParamMap}toString(){return NTe.serialize(this)}}class pr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,La(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dC(this)}}class _y{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mv(this.parameters)),this._parameterMap}toString(){return q9(this)}}function lm(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let by=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return new e3},providedIn:"root"}),t})();class e3{parse(n){const e=new HTe(n);return new $f(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${xy(n.root,!0)}`,i=function RTe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${hC(e)}=${hC(r)}`).join("&"):`${hC(e)}=${hC(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function FTe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const NTe=new e3;function dC(t){return t.segments.map(n=>q9(n)).join("/")}function xy(t,n){if(!t.hasChildren())return dC(t);if(n){const e=t.children[Ki]?xy(t.children[Ki],!1):"",i=[];return La(t.children,(r,o)=>{o!==Ki&&i.push(`${o}:${xy(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function ITe(t,n){let e=[];return La(t.children,(i,r)=>{r===Ki&&(e=e.concat(n(i,r)))}),La(t.children,(i,r)=>{r!==Ki&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===Ki?[xy(t.children[Ki],!1)]:[`${r}:${xy(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ki]?`${dC(t)}/${e[0]}`:`${dC(t)}/(${e.join("//")})`}}function G9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hC(t){return G9(t).replace(/%3B/gi,";")}function t3(t){return G9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fC(t){return decodeURIComponent(t)}function W9(t){return fC(t.replace(/\+/g,"%20"))}function q9(t){return`${t3(t.path)}${function PTe(t){return Object.keys(t).map(n=>`;${t3(n)}=${t3(t[n])}`).join("")}(t.parameters)}`}const jTe=/^[^\/()?;=#]+/;function pC(t){const n=t.match(jTe);return n?n[0]:""}const LTe=/^[^=?&#]+/,$Te=/^[^&#]+/;class HTe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pr([],{}):new pr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Ki]=new pr(n,e)),i}parseSegment(){const n=pC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new jt(4009,cC);return this.capture(n),new _y(fC(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=pC(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=pC(this.remaining);r&&(i=r,this.capture(i))}n[fC(e)]=fC(i)}parseQueryParam(n){const e=function BTe(t){const n=t.match(LTe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function VTe(t){const n=t.match($Te);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=W9(e),o=W9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=pC(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new jt(4010,cC);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Ki);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ki]:new pr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new jt(4011,cC)}}function n3(t){return t.segments.length>0?new pr([],{[Ki]:t}):t}function mC(t){const n={};for(const i of Object.keys(t.children)){const o=mC(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function UTe(t){if(1===t.numberOfChildren&&t.children[Ki]){const n=t.children[Ki];return new pr(t.segments.concat(n.segments),n.children)}return t}(new pr(t.segments,n))}function cm(t){return t instanceof $f}const r3=!1;function zTe(t,n,e,i,r){if(0===e.length)return gv(n.root,n.root,n.root,i,r);const o=function Q9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new K9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return La(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new K9(e,n,i)}(e);return o.toRoot()?gv(n.root,n.root,new pr([],{}),i,r):function s(l){const c=function WTe(t,n,e,i){if(t.isAbsolute)return new vv(n.root,!0,0);if(-1===i)return new vv(e,e===n.root,0);return function Z9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new jt(4005,r3&&"Invalid number of '../'");r=i.segments.length}return new vv(i,!1,r-o)}(e,i+(wy(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?yv(c.segmentGroup,c.index,o.commands):o3(c.segmentGroup,c.index,o.commands);return gv(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function wy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Cy(t){return"object"==typeof t&&null!=t&&t.outlets}function gv(t,n,e,i,r){let s,o={};i&&La(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:J9(t,n,e);const a=n3(mC(s));return new $f(a,o,r)}function J9(t,n,e){const i={};return La(t.children,(r,o)=>{i[o]=r===n?e:J9(r,n,e)}),new pr(t.segments,i)}class K9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&wy(i[0]))throw new jt(4003,r3&&"Root segment cannot have matrix parameters");const r=i.find(Cy);if(r&&r!==B9(i))throw new jt(4004,r3&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vv{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function o3(t,n,e){if(t||(t=new pr([],{})),0===t.segments.length&&t.hasChildren())return yv(t,n,e);const i=function YTe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(Cy(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!tV(l,c,s))return o;i+=2}else{if(!tV(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=o3(t.children[s],n,o))}),La(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new pr(t.segments,r)}}function s3(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=s3(new pr([],{}),0,e))}),n}function eV(t){const n={};return La(t,(e,i)=>n[i]=`${e}`),n}function tV(t,n,e){return t==e.path&&Ld(n,e.parameters)}const Sy="imperative";class Bd{constructor(n,e){this.id=n,this.url=e}}class gC extends Bd{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gh extends Bd{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ky extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vC extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class yC extends Bd{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class JTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QTe extends Bd{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ZTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eEe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tEe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nEe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iEe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rEe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oEe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sEe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nV{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let cEe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return zTe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),dEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(n){return cEe.\u0275fac(n)},providedIn:"root"}),t})();class iV{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=a3(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=a3(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=l3(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return l3(n,this._root).map(e=>e.value)}}function a3(t,n){if(t===n.value)return n;for(const e of n.children){const i=a3(t,e);if(i)return i}return null}function l3(t,n){if(t===n.value)return[n];for(const e of n.children){const i=l3(t,e);if(i.length)return i.unshift(n),i}return[]}class Wh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function _v(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class rV extends iV{constructor(n,e){super(n),this.snapshot=e,c3(this,n)}toString(){return this.snapshot.toString()}}function oV(t,n){const e=function hEe(t,n){const s=new _C([],{},{},"",{},Ki,n,null,t.root,-1,{});return new aV("",new Wh(s,[]))}(t,n),i=new ca([new _y("",{})]),r=new ca({}),o=new ca({}),s=new ca({}),a=new ca(""),l=new Vr(i,r,s,a,o,Ki,n,e.root);return l.snapshot=e.root,new rV(new Wh(l,[]),e)}class Vr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe($t(c=>c[yy]))??Hn(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($t(n=>mv(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($t(n=>mv(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sV(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function fEe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class _C{get title(){return this.data?.[yy]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=mv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class aV extends iV{constructor(n,e){super(e),this.url=n,c3(this,e)}toString(){return lV(this._root)}}function c3(t,n){n.value._routerState=t,n.children.forEach(e=>c3(t,e))}function lV(t){const n=t.children.length>0?` { ${t.children.map(lV).join(", ")} } `:"";return`${t.value}${n}`}function u3(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ld(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Ld(n.params,e.params)||t.params.next(e.params),function TTe(t,n){if(t.length!==n.length)return!1;for(let e=0;eLd(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||d3(t.parent,n.parent))}function Dy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function mEe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Dy(t,i,r);return Dy(t,i)})}(t,n,e);return new Wh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Dy(t,a)),s}}const i=function gEe(t){return new Vr(new ca(t.url),new ca(t.params),new ca(t.queryParams),new ca(t.fragment),new ca(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>Dy(t,o));return new Wh(i,r)}}const h3="ngNavigationCancelingError";function cV(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=cm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=uV(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function uV(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[h3]=!0,i.cancellationCode=n,e&&(i.url=e),i}function dV(t){return hV(t)&&cm(t.url)}function hV(t){return t&&t[h3]}class vEe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ty,this.attachRef=null}}let Ty=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new vEe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const bC=!1;let Vf=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ki,this.activateEvents=new ot,this.deactivateEvents=new ot,this.attachEvents=new ot,this.detachEvents=new ot,this.parentContexts=Vi(Ty),this.location=Vi(Yl),this.changeDetector=Vi($s),this.environmentInjector=Vi(Gc)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new jt(4012,bC);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new jt(4012,bC);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new jt(4012,bC);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new jt(4013,bC);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yEe(e,a,r.injector);if(i&&function _Ee(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ei]}),t})();class yEe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Vr?this.route:n===Ty?this.childContexts:this.parent.get(n,e)}}let f3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ng-component"]],standalone:!0,features:[Bs],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"router-outlet")},dependencies:[Vf],encapsulation:2}),t})();function fV(t,n){return t.providers&&!t._injector&&(t._injector=pw(t.providers,n,`Route: ${t.path}`)),t._injector??n}function m3(t){const n=t.children&&t.children.map(m3),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ki&&(e.component=f3),e}function Kc(t){return t.outlet||Ki}function pV(t,n){const e=t.filter(i=>Kc(i)===n);return e.push(...t.filter(i=>Kc(i)!==n)),e}function Ey(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class SEe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),u3(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=_v(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),La(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=_v(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=_v(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=_v(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new sEe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new rEe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(u3(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),u3(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ey(r.snapshot),l=a?.get(zg)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class mV{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class xC{constructor(n,e){this.component=n,this.route=e}}function kEe(t,n,e){const i=t._root;return Ay(i,n?n._root:null,e,[i.value])}function bv(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Tve(t){return null!==gx(t)}(t)?n.get(t):t:i}function Ay(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=_v(n);return t.children.forEach(s=>{(function TEe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function EEe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!lm(t.url,n.url);case"pathParamsOrQueryParamsChange":return!lm(t.url,n.url)||!Ld(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!d3(t,n)||!Ld(t.queryParams,n.queryParams);default:return!d3(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new mV(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ay(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new xC(a.outlet.component,s))}else s&&My(n,a,r),r.canActivateChecks.push(new mV(i)),Ay(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),La(o,(s,a)=>My(s,e.getContext(a),r)),r}function My(t,n,e){const i=_v(t),r=t.value;La(i,(o,s)=>{My(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new xC(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Oy(t){return"function"==typeof t}function g3(t){return t instanceof iC||"EmptyError"===t?.name}const wC=Symbol("INITIAL_VALUE");function xv(){return bc(t=>rC(t.map(n=>n.pipe(ua(1),aC(wC)))).pipe($t(n=>{for(const e of n)if(!0!==e){if(e===wC)return wC;if(!1===e||e instanceof $f)return e}return!0}),ps(n=>n!==wC),ua(1)))}function gV(t){return function yt(...t){return Zt(t)}(ms(n=>{if(cm(n))throw cV(0,n)}),$t(n=>!0===n))}const v3={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vV(t,n,e,i,r){const o=y3(t,n,e);return o.matched?function GEe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Hn(r.map(s=>{const a=bv(s,t);return Bf(function FEe(t){return t&&Oy(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(xv(),gV()):Hn(!0)}(i=fV(n,i),n,e).pipe($t(s=>!0===s?o:{...v3})):Hn(o)}function y3(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...v3}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||DTe)(e,t,n);if(!r)return{...v3};const o={};La(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function CC(t,n,e,i){if(e.length>0&&function YEe(t,n,e){return e.some(i=>SC(t,n,i)&&Kc(i)!==Ki)}(t,e,i)){const o=new pr(n,function qEe(t,n,e,i){const r={};r[Ki]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Kc(o)!==Ki){const s=new pr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Kc(o)]=s}return r}(t,n,i,new pr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function XEe(t,n,e){return e.some(i=>SC(t,n,i))}(t,e,i)){const o=new pr(t.segments,function WEe(t,n,e,i,r){const o={};for(const s of i)if(SC(t,e,s)&&!r[Kc(s)]){const a=new pr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Kc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new pr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function SC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function yV(t,n,e,i){return!!(Kc(t)===i||i!==Ki&&SC(n,e,t))&&("**"===t.path||y3(n,t,e).matched)}function _V(t,n,e){return 0===n.length&&!t.children[e]}const kC=!1;class DC{constructor(n){this.segmentGroup=n||null}}class bV{constructor(n){this.urlTree=n}}function Iy(t){return Rf(new DC(t))}function xV(t){return Rf(new bV(t))}function JEe(t){return Rf(new jt(4e3,kC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class ZEe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=CC(this.urlTree.root,[],[],this.config).segmentGroup,e=new pr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Ki).pipe($t(o=>this.createUrlTree(mC(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Jl(o=>{if(o instanceof bV)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof DC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Ki).pipe($t(r=>this.createUrlTree(mC(r),n.queryParams,n.fragment))).pipe(Jl(r=>{throw r instanceof DC?this.noMatchError(r):r}))}noMatchError(n){return new jt(4002,kC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=n3(n);return new $f(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe($t(o=>new pr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return ho(r).pipe(Lf(o=>{const s=i.children[o],a=pV(e,o);return this.expandSegmentGroup(n,a,s,o).pipe($t(l=>({segment:l,outlet:o})))}),P9((o,s)=>(o[s.outlet]=s.segment,o),{}),R9())}expandSegment(n,e,i,r,o,s){return ho(i).pipe(Lf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Jl(c=>{if(c instanceof DC)return Hn(null);throw c}))),jf(a=>!!a),Jl((a,l)=>{if(g3(a))return _V(e,r,o)?Hn(new pr([],{})):Iy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return yV(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):Iy(e):Iy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?xV(o):this.lineralizeSegments(i,o).pipe(it(s=>{const a=new pr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=y3(e,r,o);if(!a)return Iy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?xV(d):this.lineralizeSegments(r,d).pipe(it(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=fV(i,n),i.loadChildren?(i._loadedRoutes?Hn({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe($t(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new pr(r,{})))):Hn(new pr(r,{}))):vV(e,i,r,n).pipe(bc(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(it(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=CC(e,a,l,h),m=new pr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe($t(b=>new pr(a,b)));if(0===h.length&&0===p.length)return Hn(new pr(a,{}));const g=Kc(i)===o;return this.expandSegment(d,m,h,p,g?Ki:o,!0).pipe($t(y=>new pr(a.concat(y.segments),y.children)))})):Iy(e)))}getChildConfig(n,e,i){return e.children?Hn({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Hn({routes:e._loadedRoutes,injector:e._loadedInjector}):function zEe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Hn(!0):Hn(r.map(s=>{const a=bv(s,t);return Bf(function MEe(t){return t&&Oy(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(xv(),gV())}(n,e,i).pipe(it(r=>r?this.configLoader.loadChildren(n,e).pipe(ms(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function KEe(t){return Rf(uV(kC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):Hn({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Hn(i);if(r.numberOfChildren>1||!r.children[Ki])return JEe(n.redirectTo);r=r.children[Ki]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new $f(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return La(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return La(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new pr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new jt(4001,kC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class tAe{}class rAe{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=CC(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ki).pipe($t(e=>{if(null===e)return null;const i=new _C([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ki,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Wh(i,e),o=new aV(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=sV(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return ho(Object.keys(i.children)).pipe(Lf(r=>{const o=i.children[r],s=pV(e,r);return this.processSegmentGroup(n,s,o,r)}),P9((r,o)=>r&&o?(r.push(...o),r):null),function vTe(t,n=!1){return e=>e.lift(new yTe(t,n))}(r=>null!==r),lC(null),R9(),$t(r=>{if(null===r)return null;const o=CV(r);return function oAe(t){t.sort((n,e)=>n.value.outlet===Ki?-1:e.value.outlet===Ki?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return ho(e).pipe(Lf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),jf(s=>!!s),Jl(s=>{if(g3(s))return _V(i,r,o)?Hn([]):Hn(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!yV(e,i,r,o))return Hn(null);let s;if("**"===e.path){const a=r.length>0?B9(r).parameters:{},l=kV(i)+r.length;s=Hn({snapshot:new _C(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DV(e),Kc(e),e.component??e._loadedComponent??null,e,SV(i),l,TV(e)),consumedSegments:[],remainingSegments:[]})}else s=vV(i,e,r,n).pipe($t(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=kV(i)+l.length;return{snapshot:new _C(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DV(e),Kc(e),e.component??e._loadedComponent??null,e,SV(i),d,TV(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(bc(a=>{if(null===a)return Hn(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function sAe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=CC(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe($t(g=>null===g?null:[new Wh(l,g)]));if(0===h.length&&0===p.length)return Hn([new Wh(l,[])]);const m=Kc(e)===o;return this.processSegment(d,h,f,p,m?Ki:o).pipe($t(g=>null===g?null:[new Wh(l,g)]))}))}}function aAe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function CV(t){const n=[],e=new Set;for(const i of t){if(!aAe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=CV(i.children);n.push(new Wh(i.value,r))}return n.filter(i=>!e.has(i))}function SV(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function kV(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function DV(t){return t.data||{}}function TV(t){return t.resolve||{}}function EV(t){return"string"==typeof t.title||null===t.title}function _3(t){return bc(n=>{const e=t(n);return e?ho(e).pipe($t(()=>n)):Hn(n)})}const wv=new Yn("ROUTES");let b3=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Vi(m$)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Hn(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Bf(e.loadComponent()).pipe($t(MV),ms(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ZM(()=>{this.componentLoaders.delete(e)})),r=new _e(i,()=>new fn).pipe(Yt());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Hn({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe($t(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=L9(l.get(wv,[],Oi.Self|Oi.Optional)));return{routes:c.map(m3),injector:l}}),ZM(()=>{this.childrenLoaders.delete(i)})),s=new _e(o,()=>new fn).pipe(Yt());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Bf(e()).pipe($t(MV),it(i=>i instanceof EB||Array.isArray(i)?Hn(i):ho(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function MV(t){return function mAe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let EC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new fn,this.configLoader=Vi(b3),this.environmentInjector=Vi(Gc),this.urlSerializer=Vi(by),this.rootContexts=Vi(Ty),this.navigationId=0,this.afterPreactivation=()=>Hn(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new nEe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new tEe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new ca({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Sy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ps(i=>0!==i.id),$t(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),bc(i=>{let r=!1,o=!1;return Hn(i).pipe(ms(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),bc(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new vC(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Uh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return OV(s.source)&&(e.browserUrlTree=s.extractedUrl),Hn(s).pipe(bc(u=>{const d=this.transitions?.getValue();return this.events.next(new gC(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Uh:Promise.resolve(u)}),function eAe(t,n,e,i){return bc(r=>function QEe(t,n,e,i,r){return new ZEe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe($t(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),ms(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function cAe(t,n,e,i,r){return it(o=>function iAe(t,n,e,i,r,o,s="emptyOnly"){return new rAe(t,n,e,i,r,s,o).recognize().pipe(bc(a=>null===a?function nAe(t){return new Wt(n=>n.error(t))}(new tAe):Hn(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe($t(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),ms(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(h,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new JTe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new gC(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=oV(d,this.rootComponentType).snapshot;return Hn(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new vC(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Uh}}),ms(s=>{const a=new KTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),$t(s=>i={...s,guards:kEe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function REe(t,n){return it(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Hn({...e,guardsResult:!0}):function jEe(t,n,e,i){return ho(t).pipe(it(r=>function UEe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Hn(o.map(a=>{const l=Ey(n)??r,c=bv(a,l);return Bf(function NEe(t){return t&&Oy(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(jf())})).pipe(xv()):Hn(!0)}(r.component,r.route,e,n,i)),jf(r=>!0!==r,!0))}(s,i,r,t).pipe(it(a=>a&&function AEe(t){return"boolean"==typeof t}(a)?function LEe(t,n,e,i){return ho(n).pipe(Lf(r=>oC(function $Ee(t,n){return null!==t&&n&&n(new iEe(t)),Hn(!0)}(r.route.parent,i),function BEe(t,n){return null!==t&&n&&n(new oEe(t)),Hn(!0)}(r.route,i),function HEe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function DEe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>I9(()=>Hn(s.guards.map(l=>{const c=Ey(s.node)??e,u=bv(l,c);return Bf(function IEe(t){return t&&Oy(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(jf())})).pipe(xv())));return Hn(o).pipe(xv())}(t,r.path,e),function VEe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Hn(!0);const r=i.map(o=>I9(()=>{const s=Ey(n)??e,a=bv(o,s);return Bf(function OEe(t){return t&&Oy(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(jf())}));return Hn(r).pipe(xv())}(t,r.route,e))),jf(r=>!0!==r,!0))}(i,o,t,n):Hn(a)),$t(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ms(s=>{if(i.guardsResult=s.guardsResult,cm(s.guardsResult))throw cV(0,s.guardsResult);const a=new QTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ps(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),_3(s=>{if(s.guards.canActivateChecks.length)return Hn(s).pipe(ms(a=>{const l=new ZTe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),bc(a=>{let l=!1;return Hn(a).pipe(function uAe(t,n){return it(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Hn(e);let o=0;return ho(r).pipe(Lf(s=>function dAe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!EV(r)&&(o[yy]=r.title),function hAe(t,n,e,i){const r=function fAe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return Hn({});const o={};return ho(r).pipe(it(s=>function pAe(t,n,e,i){const r=Ey(n)??i,o=bv(t,r);return Bf(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(jf(),ms(a=>{o[s]=a}))),QM(1),function bTe(t){return n=>n.lift(new xTe(t))}(o),Jl(s=>g3(s)?Uh:Rf(s)))}(o,t,n,i).pipe($t(s=>(t._resolvedData=s,t.data=sV(t,e).resolve,r&&EV(r)&&(t.data[yy]=r.title),null)))}(s.route,i,t,n)),ms(()=>o++),QM(1),it(s=>o===r.length?Hn(e):Uh))})}(e.paramsInheritanceStrategy,this.environmentInjector),ms({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ms(a=>{const l=new eEe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),_3(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(ms(u=>{l.component=u}),$t(()=>{})));for(const u of l.children)c.push(...a(u));return c};return rC(a(s.targetSnapshot.root)).pipe(lC(),ua(1))}),_3(()=>this.afterPreactivation()),$t(s=>{const a=function pEe(t,n,e){const i=Dy(t,n._root,e?e._root:void 0);return new rV(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),ms(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>$t(i=>(new SEe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),ua(1),ms({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Gh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),ZM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Jl(s=>{if(o=!0,hV(s)){dV(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ky(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),dV(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||OV(i.source)};e.scheduleNavigation(l,Sy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new yC(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Uh}))}))}cancelNavigationTransition(e,i,r){const o=new ky(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function OV(t){return t!==Sy}let IV=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ki);return i}getResolvedTitleForRoute(e){return e.data[yy]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(gAe)},providedIn:"root"}),t})(),gAe=(()=>{class t extends IV{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(wt(V7))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(_Ae)},providedIn:"root"}),t})();class yAe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let _Ae=(()=>{class t extends yAe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const AC=new Yn("",{providedIn:"root",factory:()=>({})});let xAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(wAe)},providedIn:"root"}),t})(),wAe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function CAe(t){throw t}function SAe(t,n,e){return n.parse("/")}const kAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},DAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let yr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Vi(Hwe),this.isNgZoneEnabled=!1,this.options=Vi(AC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||CAe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||SAe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Vi(xAe),this.routeReuseStrategy=Vi(vAe),this.urlCreationStrategy=Vi(dEe),this.titleStrategy=Vi(IV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=L9(Vi(wv,{optional:!0})??[]),this.navigationTransitions=Vi(EC),this.urlSerializer=Vi(by),this.location=Vi(KA),this.isNgZoneEnabled=Vi(ur)instanceof ur&&ur.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new $f,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=oV(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Sy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(m3),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=cm(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Sy,null,i)}navigate(e,i={skipLocationChange:!1}){return function TAe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ru=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new fn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Gh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=fv(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=fv(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=fv(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function i8(t,n,e){return function nye(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?n8:B1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(ge(yr),ge(Vr),kf("tabindex"),ge(oa),ge(Ni),ge(rm))},t.\u0275dir=un({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&ke("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ft("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[ei]}),t})(),Ny=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ot,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Gh&&this.update()})}ngAfterContentInit(){Hn(this.links.changes,Hn(null)).pipe(M()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=ho(e).pipe(M()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function EAe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(yr),ge(Ni),ge(oa),ge($s),ge(Ru,8))},t.\u0275dir=un({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Ru,5),2&e){let o;Tn(o=En())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ei]}),t})();class NV{}let AAe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ps(e=>e instanceof Gh),Lf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=pw(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ho(r).pipe(M())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Hn(null);const o=r.pipe(it(s=>null===s?Hn(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?ho([o,this.loader.loadComponent(i)]).pipe(M()):o})}}return t.\u0275fac=function(e){return new(e||t)(wt(yr),wt(m$),wt(Gc),wt(NV),wt(b3))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const w3=new Yn("");let FV=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof gC?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof nV&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new nV(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function F8(){throw new Error("invalid")}()},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();var xc=(()=>((xc=xc||{})[xc.COMPLETE=0]="COMPLETE",xc[xc.FAILED=1]="FAILED",xc[xc.REDIRECTING=2]="REDIRECTING",xc))();const Cv=!1;function Hf(t,n){return{\u0275kind:t,\u0275providers:n}}const C3=new Yn("",{providedIn:"root",factory:()=>!1});function RV(){const t=Vi(Ca);return n=>{const e=t.get(jh);if(n!==e.components[0])return;const i=t.get(yr),r=t.get(jV);1===t.get(S3)&&i.initialNavigation(),t.get(LV,null,Oi.Optional)?.setUpPreloading(),t.get(w3,null,Oi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const jV=new Yn(Cv?"bootstrap done indicator":"",{factory:()=>new fn}),S3=new Yn(Cv?"initial navigation":"",{providedIn:"root",factory:()=>1});function FAe(){let t=[];return t=Cv?[{provide:Xx,multi:!0,useFactory:()=>{const n=Vi(yr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function aEe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Hf(1,t)}const LV=new Yn(Cv?"router preloader":"");function PAe(t){return Hf(0,[{provide:LV,useExisting:AAe},{provide:NV,useExisting:t}])}const Fy=!1,BV=new Yn(Fy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),RAe=[KA,{provide:by,useClass:e3},yr,Ty,{provide:Vr,useFactory:function PV(t){return t.routerState.root},deps:[yr]},b3,Fy?{provide:C3,useValue:!0}:[]];function jAe(){return new C$("Router",yr)}let $V=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[RAe,Fy&&i?.enableTracing?FAe().\u0275providers:[],{provide:wv,multi:!0,useValue:e},{provide:BV,useFactory:VAe,deps:[[yr,new O1,new I1]]},{provide:AC,useValue:i||{}},i?.useHash?{provide:rm,useClass:ACe}:{provide:rm,useClass:W$},{provide:w3,useFactory:()=>{const t=Vi(V2e),n=Vi(ur),e=Vi(AC),i=Vi(EC),r=Vi(by);return e.scrollOffset&&t.setOffset(e.scrollOffset),new FV(r,i,t,n,e)}},i?.preloadingStrategy?PAe(i.preloadingStrategy).\u0275providers:[],{provide:C$,multi:!0,useFactory:jAe},i?.initialNavigation?HAe(i):[],[{provide:VV,useFactory:RV},{provide:w$,multi:!0,useExisting:VV}]]}}static forChild(e){return{ngModule:t,providers:[{provide:wv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(wt(BV,8))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[f3]}),t})();function VAe(t){if(Fy&&t)throw new jt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function HAe(t){return["disabled"===t.initialNavigation?Hf(3,[{provide:yw,multi:!0,useFactory:()=>{const n=Vi(yr);return()=>{n.setUpLocationChangeListener()}}},{provide:S3,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Hf(2,[{provide:S3,useValue:0},{provide:yw,multi:!0,deps:[Ca],useFactory:n=>{const e=n.get(TCe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(yr),o=n.get(jV);(function MAe(t,n){t.events.pipe(ps(e=>e instanceof Gh||e instanceof ky||e instanceof yC||e instanceof vC),$t(e=>e instanceof Gh||e instanceof vC?xc.COMPLETE:e instanceof ky&&(0===e.code||1===e.code)?xc.REDIRECTING:xc.FAILED),ps(e=>e!==xc.REDIRECTING),ua(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(EC).afterPreactivation=()=>(i(!0),o.closed?Hn(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const VV=new Yn(Fy?"Router Initializer":"");function MC(t,n){return new Wt(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let HV=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni))},t.\u0275dir=un({type:t}),t})(),um=(()=>{class t extends HV{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,features:[wi]}),t})();const Kl=new Yn("NgValueAccessor"),GAe={provide:Kl,useExisting:ji(()=>OC),multi:!0};let OC=(()=>{class t extends um{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&ke("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[oo([GAe]),wi]}),t})();const WAe={provide:Kl,useExisting:ji(()=>Us),multi:!0},YAe=new Yn("CompositionEventMode");let Us=(()=>{class t extends HV{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qAe(){const t=Lh()?Lh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni),ge(YAe,8))},t.\u0275dir=un({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ke("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[oo([WAe]),wi]}),t})();const XAe=!1;function Uf(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function UV(t){return null!=t&&"number"==typeof t.length}const Ba=new Yn("NgValidators"),zf=new Yn("NgAsyncValidators"),JAe=/^(?=.{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 qr{static min(n){return zV(n)}static max(n){return function GV(t){return n=>{if(Uf(n.value)||Uf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return WV(n)}static requiredTrue(n){return function qV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function YV(t){return Uf(t.value)||JAe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function XV(t){return n=>Uf(n.value)||!UV(n.value)?null:n.value.lengthUV(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function KV(t){if(!t)return IC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Uf(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return iH(n)}static composeAsync(n){return rH(n)}}function zV(t){return n=>{if(Uf(n.value)||Uf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function tH(t,n){return n.map(e=>e(t))}function nH(t){return t.map(n=>function KAe(t){return!t.validate}(n)?n:e=>n.validate(e))}function iH(t){if(!t)return null;const n=t.filter(QV);return 0==n.length?null:function(e){return eH(tH(e,n))}}function k3(t){return null!=t?iH(nH(t)):null}function rH(t){if(!t)return null;const n=t.filter(QV);return 0==n.length?null:function(e){return function zAe(...t){if(1===t.length){const n=t[0];if(Se(n))return MC(n,null);if(we(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return MC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return MC(t=1===t.length&&Se(t[0])?t[0]:t,null).pipe($t(e=>n(...e)))}return MC(t,null)}(tH(e,n).map(ZV)).pipe($t(eH))}}function D3(t){return null!=t?rH(nH(t)):null}function oH(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function sH(t){return t._rawValidators}function aH(t){return t._rawAsyncValidators}function T3(t){return t?Array.isArray(t)?t:[t]:[]}function NC(t,n){return Array.isArray(t)?t.includes(n):t===n}function lH(t,n){const e=T3(n);return T3(t).forEach(r=>{NC(e,r)||e.push(r)}),e}function cH(t,n){return T3(n).filter(e=>!NC(t,e))}class uH{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(n){this._rawValidators=n||[],this._composedValidatorFn=k3(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=D3(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Tl extends uH{get formDirective(){return null}get path(){return null}}class Gf extends uH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class dH{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let da=(()=>{class t extends dH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(Gf,2))},t.\u0275dir=un({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Vn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[wi]}),t})(),ha=(()=>{class t extends dH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(Tl,10))},t.\u0275dir=un({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Vn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[wi]}),t})();function hH(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const M3=!1,Py="VALID",PC="INVALID",Sv="PENDING",Ry="DISABLED";function O3(t){return(RC(t)?t.validators:t)||null}function I3(t,n){return(RC(n)?n.asyncValidators:t)||null}function RC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function fH(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new jt(1e3,M3?function tMe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new jt(1001,M3?function nMe(t,n){return`Cannot find form control ${hH(t,n)}`}(n,e):"")}function pH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new jt(1002,M3?function iMe(t,n){return`Must supply a value for form control ${hH(t,n)}`}(n,r):"")})}class jC{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Py}get invalid(){return this.status===PC}get pending(){return this.status==Sv}get disabled(){return this.status===Ry}get enabled(){return this.status!==Ry}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(lH(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(lH(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(cH(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(cH(n,this._rawAsyncValidators))}hasValidator(n){return NC(this._rawValidators,n)}hasAsyncValidator(n){return NC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Sv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ry,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Py,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Py||this.status===Sv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ry:Py}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Sv,this._hasOwnPendingAsyncValidator=!0;const e=ZV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?Ry:this.errors?PC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Sv)?Sv:this._anyControlsHaveStatus(PC)?PC:Py}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){RC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function rMe(t){return Array.isArray(t)?k3(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function oMe(t){return Array.isArray(t)?D3(t):t||null}(this._rawAsyncValidators)}}class jy extends jC{constructor(n,e,i){super(O3(e),I3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){pH(this,!0,n),Object.keys(n).forEach(i=>{fH(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class mH extends jy{}const dm=new Yn("CallSetDisabledState",{providedIn:"root",factory:()=>Ly}),Ly="always";function By(t,n,e=Ly){N3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function aMe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&gH(t,n)})}(t,n),function cMe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function lMe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&gH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function sMe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function BC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),VC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $C(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function N3(t,n){const e=sH(t);null!==n.validator?t.setValidators(oH(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=aH(t);null!==n.asyncValidator?t.setAsyncValidators(oH(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();$C(n._rawValidators,r),$C(n._rawAsyncValidators,r)}function VC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=sH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=aH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return $C(n._rawValidators,i),$C(n._rawAsyncValidators,i),e}function gH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _H(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function bH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vy=class extends jC{constructor(n=null,e,i){super(O3(e),I3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),RC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=bH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){_H(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){_H(this._onDisabledChange,n)}_forEachChild(n){}_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(n){bH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let fa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yMe={provide:Kl,useExisting:ji(()=>L3),multi:!0};let L3=(()=>{class t extends um{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ke("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[oo([yMe]),wi]}),t})();const _Me={provide:Kl,useExisting:ji(()=>B3),multi:!0};let kH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),bMe=(()=>{class t{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:kH}),t})(),B3=(()=>{class t extends um{constructor(e,i,r,o){super(e,i),this._registry=r,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Vi(dm,{optional:!0})??Ly}ngOnInit(){this._control=this._injector.get(Gf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni),ge(bMe),ge(Ca))},t.\u0275dir=un({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&ke("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[oo([_Me]),wi]}),t})();const $3=new Yn("NgModelWithFormControlWarning"),CMe={provide:Tl,useExisting:ji(()=>Ts)};let Ts=(()=>{class t extends Tl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(VC(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 i=this.form.get(e.path);return By(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){BC(e.control||null,e,!1),function fMe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function yH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(BC(i||null,e),(t=>t instanceof Vy)(r)&&(By(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function vH(t,n){N3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function uMe(t,n){return VC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){N3(this.form,this),this._oldForm&&VC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(ge(Ba,10),ge(zf,10),ge(dm,8))},t.\u0275dir=un({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ke("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oo([CMe]),wi,ei]}),t})();const DMe={provide:Gf,useExisting:ji(()=>zs)};let zs=(()=>{class t extends Gf{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ot,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function R3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Us?e=o:function hMe(t){return Object.getPrototypeOf(t.constructor)===um}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function P3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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 function LC(t,n){return[...n.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(ge(Tl,13),ge(Ba,10),ge(zf,10),ge(Kl,10),ge($3,8))},t.\u0275dir=un({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[oo([DMe]),wi,ei]}),t})();const TMe={provide:Kl,useExisting:ji(()=>kv),multi:!0};function AH(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let kv=(()=>{class t extends um{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=AH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function EMe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&ke("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[oo([TMe]),wi]}),t})(),HC=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(AH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(kv,9))},t.\u0275dir=un({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const AMe={provide:Kl,useExisting:ji(()=>U3),multi:!0};function MH(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let U3=(()=>{class t extends um{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(MH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(MH(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(U3,9))},t.\u0275dir=un({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let hm=(()=>{class t{constructor(){this._validator=IC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):IC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,features:[ei]}),t})();const IMe={provide:Ba,useExisting:ji(()=>z3),multi:!0};let z3=(()=>{class t extends hm{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function IH(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>zV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ft("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[oo([IMe]),wi]}),t})();const NMe={provide:Ba,useExisting:ji(()=>qh),multi:!0};let qh=(()=>{class t extends hm{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=fv,this.createValidator=e=>WV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ft("required",i._enabled?"":null)},inputs:{required:"required"},features:[oo([NMe]),wi]}),t})(),BH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[kH]}),t})();class $H extends jC{constructor(n,e,i){super(O3(e),I3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){pH(this,!1,n),n.forEach((i,r)=>{fH(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function VH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let HH=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return VH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new jy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new mH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(VH(i)?o=i:(o.validators=i,o.asyncValidators=r),new Vy(e,{...o,nonNullable:!0})):new Vy(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new $H(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Vy||e instanceof jC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$a=(()=>{class t extends HH{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),BMe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:dm,useValue:e.callSetDisabledState??Ly}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[BH]}),t})(),$Me=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:dm,useValue:e.callSetDisabledState??Ly}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[BH]}),t})();const UH=new Yn("ngx-segment-analytics.config"),VMe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};let zH=(()=>{class t{analytics;static \u0275fac=function(i){return new(i||t)};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),zC=(()=>{class t{_w;_doc;_config;constructor(e,i,r){if(this._w=e,this._doc=i,this._config={...VMe,...r},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(e){this._w.analytics.setAnonymousId(e)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}addDestinationMiddleware(e,...i){this._w.analytics.addDestinationMiddleware(e,...i)}register(...e){return this._w.analytics.register(...e)}get plugins(){return this._w.analytics.plugins}static \u0275fac=function(i){return new(i||t)(wt(zH),wt(vo),wt(UH))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function HMe(t){return v7(t)?window:{}}let UMe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:UH,useValue:e},zC]}}constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static \u0275fac=function(i){return new(i||t)(wt(t,12))};static \u0275mod=Ii({type:t});static \u0275inj=Di({providers:[{provide:zH,useFactory:HMe,deps:[sy]}],imports:[If]})}return t})();class GC{}class G3{}class ju{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{let r;if(r="string"==typeof i?[i]:"number"==typeof i?[i.toString()]:i.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof ju?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new ju;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ju?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class zMe{encodeKey(n){return GH(n)}encodeValue(n){return GH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const WMe=/%(\d[a-f0-9])/gi,qMe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function GH(t){return encodeURIComponent(t).replace(WMe,(n,e)=>qMe[e]??n)}function WC(t){return`${t}`}class Mn{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new zMe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GMe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(WC):[WC(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Mn({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(WC(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(WC(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class YMe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function WH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function qH(t){return typeof Blob<"u"&&t instanceof Blob}function YH(t){return typeof FormData<"u"&&t instanceof FormData}class Hy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function XMe(t){switch(t){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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new ju),this.context||(this.context=new YMe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Hy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Gs=(()=>((Gs=Gs||{})[Gs.Sent=0]="Sent",Gs[Gs.UploadProgress=1]="UploadProgress",Gs[Gs.ResponseHeader=2]="ResponseHeader",Gs[Gs.DownloadProgress=3]="DownloadProgress",Gs[Gs.Response=4]="Response",Gs[Gs.User=5]="User",Gs))();class W3{constructor(n,e=200,i="OK"){this.headers=n.headers||new ju,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class q3 extends W3{constructor(n={}){super(n),this.type=Gs.ResponseHeader}clone(n={}){return new q3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qC extends W3{constructor(n={}){super(n),this.type=Gs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new qC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class XH extends W3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Y3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let YC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Hy)o=e;else{let l,c;l=r.headers instanceof ju?r.headers:new ju(r.headers),r.params&&(c=r.params instanceof Mn?r.params:new Mn({fromObject:r.params})),o=new Hy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Hn(o).pipe(Lf(l=>this.handler.handle(l)));if(e instanceof Hy||"events"===r.observe)return s;const a=s.pipe(ps(l=>l instanceof qC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe($t(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($t(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Mn).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Y3(r,i))}post(e,i,r={}){return this.request("POST",e,Y3(r,i))}put(e,i,r={}){return this.request("PUT",e,Y3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(wt(GC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();function JH(t,n){return n(t)}function KMe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const X3=new Yn("HTTP_INTERCEPTORS"),Uy=new Yn("HTTP_INTERCEPTOR_FNS");function ZMe(){let t=null;return(n,e)=>(null===t&&(t=(Vi(X3,{optional:!0})??[]).reduceRight(KMe,JH)),t(n,e))}let KH=(()=>{class t extends GC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Uy)));this.chain=i.reduceRight((r,o)=>function QMe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),JH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(wt(G3),wt(Gc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const i3e=/^\)\]\}',?\n/;let ZH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Wt(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new ju(r.getAllResponseHeaders()),m=function r3e(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new q3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const b=v;v=v.replace(i3e,"");try{v=""!==v?JSON.parse(v):null}catch(C){v=b,y&&(y=!1,v={error:C,text:v})}}y?(i.next(new qC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new XH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new XH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Gs.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Gs.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:Gs.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(wt(_7))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const J3=new Yn("XSRF_ENABLED"),eU=new Yn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tU=new Yn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nU{}let a3e=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=o7(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(wt(vo),wt(sy),wt(eU))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();function l3e(t,n){const e=t.url.toLowerCase();if(!Vi(J3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Vi(nU).getToken(),r=Vi(tU);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Es=(()=>((Es=Es||{})[Es.Interceptors=0]="Interceptors",Es[Es.LegacyInterceptors=1]="LegacyInterceptors",Es[Es.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Es[Es.NoXsrfProtection=3]="NoXsrfProtection",Es[Es.JsonpSupport=4]="JsonpSupport",Es[Es.RequestsMadeViaParent=5]="RequestsMadeViaParent",Es))();function Dv(t,n){return{\u0275kind:t,\u0275providers:n}}function c3e(...t){const n=[YC,ZH,KH,{provide:GC,useExisting:KH},{provide:G3,useExisting:ZH},{provide:Uy,useValue:l3e,multi:!0},{provide:J3,useValue:!0},{provide:nU,useClass:a3e}];for(const e of t)n.push(...e.\u0275providers);return function iye(t){return{\u0275providers:t}}(n)}const iU=new Yn("LEGACY_INTERCEPTOR_FN");let d3e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[c3e(Dv(Es.LegacyInterceptors,[{provide:iU,useFactory:ZMe},{provide:Uy,useExisting:iU,multi:!0}]))]}),t})();var ri=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(ri||(ri={})),ri))(),zy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY",t[t.FACEBOOK_INSTANT_STORE=3]="FACEBOOK_INSTANT_STORE"}(zy||(zy={})),zy))();class XC{host;timeoutMs}let Ai=(()=>{class t{httpClient;config;constructor(e,i){this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new Mn({encoder:new zn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new Mn({encoder:new zn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}authenticateMFASetup(e,i){let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/mfa",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new Mn({encoder:new zn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new Mn({encoder:new zn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getPurchase(e,i){const r=`/v2/console/iap/purchase/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getSubscription(e,i){const r=`/v2/console/iap/subscription/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new Mn({encoder:new zn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new Mn({encoder:new zn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new Mn({encoder:new zn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new Mn({encoder:new zn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new Mn({encoder:new zn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new Mn({encoder:new zn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new Mn({encoder:new zn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new Mn({encoder:new zn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new Mn({encoder:new zn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new Mn({encoder:new zn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}requireUserMfa(e,i,r){const o=`/v2/console/user/${i=encodeURIComponent(String(i))}/mfa/require`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}resetUserMfa(e,i){const r=`/v2/console/user/${i=encodeURIComponent(String(i))}/mfa/reset`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new ju).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new ju).set("Authorization","Basic "+btoa(e+":"+i))}static \u0275fac=function(i){return new(i||t)(wt(YC),wt(XC,8))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class zn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const rU=new Yn("window"),p3e=[{provide:rU,useFactory:()=>window}],JC="currentSession";let Ho=(()=>{class t{window;segment;http;consoleService;config;currentSessionSubject;currentSession;constructor(e,i,r,o,s){this.window=e,this.segment=i,this.http=r,this.consoleService=o,this.config=s;const a=JSON.parse(localStorage.getItem(JC));this.currentSessionSubject=new ca(a),this.currentSession=this.currentSessionSubject.asObservable()}get session(){return this.currentSessionSubject.getValue()}get username(){return this.claims.usn}get sessionRole(){switch(this.claims.rol){case 1:return ri.USER_ROLE_ADMIN;case 2:return ri.USER_ROLE_DEVELOPER;case 3:return ri.USER_ROLE_MAINTAINER;case 4:return ri.USER_ROLE_READONLY;default:return ri.USER_ROLE_UNKNOWN}}get claims(){const e=this.currentSessionSubject.getValue().token;return this.decodeJWT(e)}get mfa(){const e=this.currentSessionSubject.getValue().mfa_code;return e?this.decodeJWT(e):null}get mfaRequired(){return this?.mfa?.mfa_required||!1}login(e,i,r){return this.http.post(this.config.host+"/v2/console/authenticate",{username:e,password:i,mfa:r},{observe:"response"}).pipe(ms(s=>{localStorage.setItem(JC,JSON.stringify(s.body)),this.currentSessionSubject.next(s.body)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(ms(()=>{localStorage.removeItem(JC),this.currentSessionSubject.next(null)})):Uh}decodeJWT(e){const{1:i}=e.split("."),r=i.replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(window.atob(r).split("").map(s=>`%${`00${s.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""));return JSON.parse(o)}mfaSet(e){return this.consoleService.authenticateMFASetup("",{mfa:this.session.mfa_code,code:e}).pipe(ms(()=>{this.session.mfa_code=null,localStorage.setItem(JC,JSON.stringify(this.session)),this.currentSessionSubject.next(this.session)}))}segmentIdentify(e){const r=this.decodeJWT(e.token);this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}static \u0275fac=function(i){return new(i||t)(wt(rU),wt(zC),wt(YC),wt(Ai),wt(XC))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function m3e(t,n){if(1&t&&(_(0,"div",32),O(1),x()),2&t){const e=L(2);w(1),bn(" ",e.error," ")}}const g3e=function(t){return{"was-validated":t}},K3=function(t){return{"is-invalid":t}};function v3e(t,n){if(1&t){const e=_t();_(0,"div",18)(1,"h3",19),O(2,"Sign in to continue to the Nakama Dashboard"),x(),te(3,m3e,2,1,"div",20),_(4,"form",21),ke("ngSubmit",function(){return ze(e),Ge(L().onSubmit())}),_(5,"div",22)(6,"label",23),O(7,"Username"),x(),xe(8,"input",24),_(9,"div",25),O(10,"Please enter a username."),x()(),_(11,"div",22)(12,"label",26),O(13,"Password"),x(),xe(14,"input",27),_(15,"div",25),O(16,"Password must be at least 8 characters."),x()(),_(17,"div",28)(18,"label",29),O(19,"MFA Code"),x(),xe(20,"input",30),_(21,"div",25),O(22,"Code must contain 6 digits."),x()(),_(23,"button",31),O(24),x()()()}if(2&t){const e=L();w(3),S("ngIf",e.error),w(1),S("formGroup",e.loginForm)("ngClass",Zi(12,g3e,e.submitted)),w(4),S("ngClass",Zi(14,K3,e.f.username.dirty&&e.f.username.errors)),w(1),S("hidden",e.f.username.disabled||e.f.username.pristine||e.f.username.valid),w(5),S("ngClass",Zi(16,K3,e.f.password.dirty&&e.f.password.errors)),w(1),S("hidden",e.f.password.disabled||e.f.password.pristine||e.f.password.valid),w(2),S("hidden",!e.mfaEnabled),w(3),S("ngClass",Zi(18,K3,e.f.code.dirty&&e.f.code.errors)),w(1),S("hidden",e.f.code.disabled||e.f.code.pristine||e.f.code.valid),w(2),S("disabled",!e.loginForm.valid),w(1),bt(e.mfaEnabled?"Verify":"Login")}}function y3e(t,n){1&t&&xe(0,"router-outlet")}let _3e=(()=>{class t{router;segment;formBuilder;route;authService;error="";loginForm;submitted;mfaEnabled=!1;returnUrl;constructor(e,i,r,o,s){this.router=e,this.segment=i,this.formBuilder=r,this.route=o,this.authService=s}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",qr.compose([qr.required])],password:["",qr.compose([qr.required,qr.minLength(8)])],code:[{value:"",disabled:!0},qr.compose([qr.required,qr.minLength(6),qr.maxLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authService.login(this.f.username.value,this.f.password.value,this.f.code.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,e.body.mfa_code&&this.authService.mfaRequired?this.router.navigate(["mfa"],{relativeTo:this.route}):this.router.navigate([this.returnUrl])},e=>{403===e.status?(this.mfaEnabled=!0,this.f.username.disable(),this.f.password.disable(),this.f.code.enable()):(this.error=e,this.submitted=!1)})}get f(){return this.loginForm.controls}static \u0275fac=function(i){return new(i||t)(ge(yr),ge(zC),ge($a),ge(Vr),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:37,vars:2,consts:[[1,"d-flex","flex-column","flex-lg-row","h-100","relative"],["src","/static/svg/logo-white.svg","alt","Nakama Logo","width","175","height","43",1,"logo"],[1,"login-panel"],[1,"align-self-center","login-form"],["class","px-4",4,"ngIf","ngIfElse"],["mfa",""],[1,"heroic-stack"],[1,""],["src","/static/svg/hiro-logo.svg","alt","Hiro Logo","width","110","height","50",1,"mb-3"],["href","https://www.youtube.com/playlist?list=PLOAExZcDNj9sWny_J8J5ARkxDTwAV0i6f&utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Reconstructing%20Fun%20Sign-In","target","_blank"],["href","https://heroiclabs.com/hiro/?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Hiro%20Sign-In","target","_blank",1,"login-link"],["src","/static/svg/satori-logo.svg","alt","Satori Logo","width","134","height","50",1,"mb-3"],["href","https://heroiclabs.com/satori/?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Satori%20Sign-In","target","_blank",1,"login-link"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/calendar.svg","alt","Calendar"],[1,"font-weight-bold","ml-2",2,"font-size","20px"],["href","https://heroiclabs.com/bookademo?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Book%20a%20Demo%20Sign-In","target","_blank",1,"login-link-pink"],["src","/static/svg/phone.svg","alt","Phone"],[1,"px-4"],[1,"login-title","mb-4"],["class","alert alert-warning","role","alert",4,"ngIf"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"form-group",3,"hidden"],["for","code"],["type","code","id","code","formControlName","code","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(i,r){if(1&i&&(_(0,"div",0),xe(1,"img",1),_(2,"div",2)(3,"div",3),te(4,v3e,25,20,"div",4),te(5,y3e,1,0,"ng-template",null,5,Xo),x()(),_(7,"div",2)(8,"div",6)(9,"div",7),xe(10,"img",8),_(11,"p"),O(12,"A metagame framework built on Nakama to add virtual store, rewards, event leaderboards and much more rapidly and flexibly to your game. "),_(13,"a",9),O(14,"RECONSTRUCTING FUN"),x(),O(15," on YouTube shows you how."),x(),_(16,"a",10),O(17,"Explore Hiro"),x()(),xe(18,"hr"),_(19,"div",7),xe(20,"img",11),_(21,"p"),O(22,"LiveOps for your live services game. Live events, Experiments, Feature Flags, Audience Segmentation and Analytics built to work independently but beautifully with Nakama."),x(),_(23,"a",12),O(24,"Explore Satori"),x()(),xe(25,"hr"),_(26,"div")(27,"div",13),xe(28,"img",14),_(29,"span",15),O(30,"Working at a Game Studio?"),x()(),_(31,"p"),O(32,"Ready to take your game development to the next level? Contact us for a free 45 minute demo call."),x(),_(33,"a",16),xe(34,"img",17),_(35,"span"),O(36,"Schedule a call with us"),x()()()()()()),2&i){const o=sa(6);w(4),S("ngIf",!r.router.url.endsWith("mfa"))("ngIfElse",o)}},dependencies:[Vf,Of,xn,fa,Us,da,ha,qh,Ts,zs],styles:[".logo[_ngcontent-%COMP%]{position:absolute;top:10px;left:15px}@media (min-width: 992px){.logo[_ngcontent-%COMP%]{top:40px;left:30px}}.login-form[_ngcontent-%COMP%]{margin:100px auto auto;max-width:600px}@media (min-width: 992px){.login-form[_ngcontent-%COMP%]{width:485px;margin:auto}}.login-title[_ngcontent-%COMP%]{font-size:28px;font-weight:300}.login-panel[_ngcontent-%COMP%]{flex:1 1 0;display:flex}.login-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:300;font-size:20px}.heroic-stack[_ngcontent-%COMP%]{padding:0 1.5rem;max-width:600px;margin:70px auto 40px}@media (min-width: 992px){.heroic-stack[_ngcontent-%COMP%]{max-width:660px;padding:0 15px;margin:auto}}.login-link[_ngcontent-%COMP%], .login-link-pink[_ngcontent-%COMP%]{display:inline-flex;padding:15px;font-size:15px;border:1px;border-radius:5px;border:1px solid}.login-link[_ngcontent-%COMP%]{color:#4739c5;border-color:#4739c51a}hr[_ngcontent-%COMP%]{border:2px solid rgba(217,217,217,.2);margin-top:20px;margin-bottom:40px}.login-link-pink[_ngcontent-%COMP%]{border-color:#b421b41a;background:#FFF6FF;color:#b421b4}.login-link-pink[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:15px}"]})}return t})(),b3e=(()=>{class t{authService;router;constructor(e,i){this.authService=e,this.router=i}canActivate(e,i){return!(this.authService.session&&!this.authService.session.mfa_code&&!this.authService.mfaRequired)||(this.router.navigate(["/"]),!1)}static \u0275fac=function(i){return new(i||t)(wt(Ho),wt(yr))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x3e=(()=>{class t{router;authService;constructor(e,i){this.router=e,this.authService=i}canActivate(e,i){const r=this.authService.session;return r?!r||!this.authService.mfaRequired||(this.router.navigate(["/login/mfa"],{queryParams:{next:i.url}}),!1):(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}static \u0275fac=function(i){return new(i||t)(wt(yr),wt(Ho))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class w3e extends re{constructor(n,e){super()}schedule(n,e=0){return this}}class Q3 extends w3e{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let oU=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Vd extends oU{constructor(n,e=oU.now){super(n,()=>Vd.delegate&&Vd.delegate!==this?Vd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Vd.delegate&&Vd.delegate!==this?Vd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const KC=new Vd(Q3);class S3e{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new D3e(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class k3e{constructor(){this.buffer=[]}}class D3e extends I{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(sU,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(aU,e,{subscriber:this,context:s})),this.add(o.schedule(T3e,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(sU,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new k3e;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function sU(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function T3e(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(aU,e,{subscriber:i,context:o})),this.schedule(t,n))}function aU(t){const{subscriber:n,context:e}=t;n.closeContext(e)}function QC(t,n){return e=>e.lift(new E3e(t,n))}class E3e{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new A3e(n,this.compare,this.keySelector))}}class A3e extends I{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Va(t,n,e,i){return be(e)&&(i=e,e=void 0),i?Va(t,n,e).pipe($t(r=>Se(r)?i(...r):i(r))):new Wt(r=>{lU(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function lU(t,n,e,i,r){let o;if(function I3e(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function O3e(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function M3e(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function Gy(t=0,n,e){let i=-1;return cU(n)?i=Number(n)<1?1:Number(n):fi(n)&&(e=n),fi(e)||(e=KC),new Wt(r=>{const o=cU(t)?t:+t-e.now();return e.schedule(N3e,o,{index:0,period:i,subscriber:r})})}function N3e(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function uU(...t){if(1===t.length){if(!Se(t[0]))return t[0];t=t[0]}return at(t,void 0).lift(new F3e)}class F3e{call(n,e){return e.subscribe(new P3e(n))}}class P3e extends JM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class $3e extends Y{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[uo](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Le(this.observable,new Hl(this))}}function ns(t){return n=>n.lift(new H3e(t))}class H3e{constructor(n){this.notifier=n}call(n,e){const i=new U3e(n),r=Le(this.notifier,new Hl(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class U3e extends Y{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Z3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new z3e(t,e))}}class z3e{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new G3e(n,this.observables,this.project))}}class G3e extends JM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Lu{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Hn(this.value);case"E":return Rf(this.error);case"C":return sC()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Lu("N",n):Lu.undefinedValueNotification}static createError(n){return new Lu("E",void 0,n)}static createComplete(){return Lu.completeNotification}}function eO(t,n=KC){const i=function W3e(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new q3e(i,n))}Lu.completeNotification=new Lu("C"),Lu.undefinedValueNotification=new Lu("N",void 0);class q3e{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new tO(n,this.delay,this.scheduler))}}class tO extends I{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(tO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new Y3e(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Lu.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Lu.createComplete()),this.unsubscribe()}}class Y3e{constructor(n,e){this.time=n,this.notification=e}}class J3e{constructor(n){this.total=n}call(n,e){return e.subscribe(new K3e(n,this.total))}}class K3e extends I{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}var Q3e={left:"right",right:"left",bottom:"top",top:"bottom"};function e2(t){return t.replace(/left|right|bottom|top/g,function(n){return Q3e[n]})}function Hd(t){return t.split("-")[0]}var Z3e={start:"end",end:"start"};function hU(t){return t.replace(/start|end/g,function(n){return Z3e[n]})}var wc="top",Bu="bottom",$u="right",Cc="left",nO="auto",Wy=[wc,Bu,$u,Cc],Tv="start",qy="end",eOe="clippingParents",fU="viewport",Yy="popper",tOe="reference",pU=Wy.reduce(function(t,n){return t.concat([n+"-"+Tv,n+"-"+qy])},[]),mU=[].concat(Wy,[nO]).reduce(function(t,n){return t.concat([n,n+"-"+Tv,n+"-"+qy])},[]),dOe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sc(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function fm(t){return t instanceof Sc(t).Element||t instanceof Element}function Qc(t){return t instanceof Sc(t).HTMLElement||t instanceof HTMLElement}function iO(t){return!(typeof ShadowRoot>"u")&&(t instanceof Sc(t).ShadowRoot||t instanceof ShadowRoot)}function Wf(t){return((fm(t)?t.ownerDocument:t.document)||window.document).documentElement}var pm=Math.max,t2=Math.min,Ev=Math.round;function rO(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function gU(){return!/^((?!chrome|android).)*safari/i.test(rO())}function Av(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&Qc(t)&&(r=t.offsetWidth>0&&Ev(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ev(i.height)/t.offsetHeight||1);var a=(fm(t)?Sc(t):window).visualViewport,l=!gU()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function oO(t){var n=Sc(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function sO(t){return Av(Wf(t)).left+oO(t).scrollLeft}function Yh(t){return Sc(t).getComputedStyle(t)}function Ud(t){return t?(t.nodeName||"").toLowerCase():null}function n2(t){return"html"===Ud(t)?t:t.assignedSlot||t.parentNode||(iO(t)?t.host:null)||Wf(t)}function aO(t){var n=Yh(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function vU(t){return["html","body","#document"].indexOf(Ud(t))>=0?t.ownerDocument.body:Qc(t)&&aO(t)?t:vU(n2(t))}function Xy(t,n){var e;void 0===n&&(n=[]);var i=vU(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Sc(i),s=r?[o].concat(o.visualViewport||[],aO(i)?i:[]):i,a=n.concat(s);return r?a:a.concat(Xy(n2(s)))}function pOe(t){return["table","td","th"].indexOf(Ud(t))>=0}function yU(t){return Qc(t)&&"fixed"!==Yh(t).position?t.offsetParent:null}function Jy(t){for(var n=Sc(t),e=yU(t);e&&pOe(e)&&"static"===Yh(e).position;)e=yU(e);return e&&("html"===Ud(e)||"body"===Ud(e)&&"static"===Yh(e).position)?n:e||function mOe(t){var n=/firefox/i.test(rO());if(/Trident/i.test(rO())&&Qc(t)&&"fixed"===Yh(t).position)return null;var r=n2(t);for(iO(r)&&(r=r.host);Qc(r)&&["html","body"].indexOf(Ud(r))<0;){var o=Yh(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||n}function _U(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&iO(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function lO(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function bU(t,n,e){return n===fU?lO(function hOe(t,n){var e=Sc(t),i=Wf(t),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=gU();(c||!c&&"fixed"===n)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+sO(t),y:l}}(t,e)):fm(n)?function gOe(t,n){var e=Av(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):lO(function fOe(t){var n,e=Wf(t),i=oO(t),r=null==(n=t.ownerDocument)?void 0:n.body,o=pm(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=pm(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+sO(t),l=-i.scrollTop;return"rtl"===Yh(r||e).direction&&(a+=pm(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Wf(t)))}function Mv(t){return t.split("-")[1]}function cO(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xU(t){var l,n=t.reference,e=t.element,i=t.placement,r=i?Hd(i):null,o=i?Mv(i):null,s=n.x+n.width/2-e.width/2,a=n.y+n.height/2-e.height/2;switch(r){case wc:l={x:s,y:n.y-e.height};break;case Bu:l={x:s,y:n.y+n.height};break;case $u:l={x:n.x+n.width,y:a};break;case Cc:l={x:n.x-e.width,y:a};break;default:l={x:n.x,y:n.y}}var c=r?cO(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Tv:l[c]=l[c]-(n[u]/2-e[u]/2);break;case qy:l[c]=l[c]+(n[u]/2-e[u]/2)}}return l}function CU(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function SU(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function uO(t,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?eOe:a,c=n.rootBoundary,u=void 0===c?fU:c,d=n.elementContext,h=void 0===d?Yy:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=CU("number"!=typeof g?g:SU(g,Wy)),b=t.rects.popper,C=t.elements[p?h===Yy?tOe:Yy:h],D=function yOe(t,n,e,i){var r="clippingParents"===n?function vOe(t){var n=Xy(n2(t)),i=["absolute","fixed"].indexOf(Yh(t).position)>=0&&Qc(t)?Jy(t):t;return fm(i)?n.filter(function(r){return fm(r)&&_U(r,i)&&"body"!==Ud(r)}):[]}(t):[].concat(n),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=bU(t,c,i);return l.top=pm(u.top,l.top),l.right=t2(u.right,l.right),l.bottom=t2(u.bottom,l.bottom),l.left=pm(u.left,l.left),l},bU(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(fm(C)?C:C.contextElement||Wf(t.elements.popper),l,u,s),E=Av(t.elements.reference),B=xU({reference:E,element:b,strategy:"absolute",placement:r}),z=lO(Object.assign({},b,B)),j=h===Yy?z:E,U={top:D.top-j.top+v.top,bottom:j.bottom-D.bottom+v.bottom,left:D.left-j.left+v.left,right:j.right-D.right+v.right},G=t.modifiersData.offset;if(h===Yy&&G){var X=G[r];Object.keys(U).forEach(function(oe){var P=[$u,Bu].indexOf(oe)>=0?1:-1,W=[wc,Bu].indexOf(oe)>=0?"y":"x";U[oe]+=X[W]*P})}return U}const wOe={name:"flip",enabled:!0,phase:"main",fn:function xOe(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,f=e.flipVariations,p=void 0===f||f,m=e.allowedAutoPlacements,g=n.options.placement,v=Hd(g),b=l||(v!==g&&p?function bOe(t){if(Hd(t)===nO)return[];var n=e2(t);return[hU(t),n,hU(n)]}(g):[e2(g)]),C=[g].concat(b).reduce(function(ce,ve){return ce.concat(Hd(ve)===nO?function _Oe(t,n){void 0===n&&(n={});var r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?mU:l,u=Mv(n.placement),d=u?a?pU:pU.filter(function(p){return Mv(p)===u}):Wy,h=d.filter(function(p){return c.indexOf(p)>=0});0===h.length&&(h=d);var f=h.reduce(function(p,m){return p[m]=uO(t,{placement:m,boundary:r,rootBoundary:o,padding:s})[Hd(m)],p},{});return Object.keys(f).sort(function(p,m){return f[p]-f[m]})}(n,{placement:ve,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):ve)},[]),D=n.rects.reference,E=n.rects.popper,B=new Map,z=!0,j=C[0],U=0;U=0,W=P?"width":"height",J=uO(n,{placement:G,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),H=P?oe?$u:Cc:oe?Bu:wc;D[W]>E[W]&&(H=e2(H));var pe=e2(H),A=[];if(o&&A.push(J[X]<=0),a&&A.push(J[H]<=0,J[pe]<=0),A.every(function(ce){return ce})){j=G,z=!1;break}B.set(G,A)}if(z)for(var F=function(ve){var je=C.find(function(Te){var et=B.get(Te);if(et)return et.slice(0,ve).every(function(We){return We})});if(je)return j=je,"break"},q=p?3:1;q>0&&"break"!==F(q);q--);n.placement!==j&&(n.modifiersData[i]._skip=!0,n.placement=j,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ky(t,n,e){return pm(t,t2(n,e))}function dO(t){var n=Av(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const DOe={name:"preventOverflow",enabled:!0,phase:"main",fn:function kOe(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,f=void 0===h||h,p=e.tetherOffset,m=void 0===p?0:p,g=uO(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),v=Hd(n.placement),y=Mv(n.placement),b=!y,C=cO(v),D=function COe(t){return"x"===t?"y":"x"}(C),E=n.modifiersData.popperOffsets,B=n.rects.reference,z=n.rects.popper,j="function"==typeof m?m(Object.assign({},n.rects,{placement:n.placement})):m,U="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),G=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(E){if(o){var oe,P="y"===C?wc:Cc,W="y"===C?Bu:$u,J="y"===C?"height":"width",H=E[C],pe=H+g[P],A=H-g[W],N=f?-z[J]/2:0,F=y===Tv?B[J]:z[J],q=y===Tv?-z[J]:-B[J],V=n.elements.arrow,ce=f&&V?dO(V):{width:0,height:0},ve=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},je=ve[P],Te=ve[W],et=Ky(0,B[J],ce[J]),We=b?B[J]/2-N-et-je-U.mainAxis:F-et-je-U.mainAxis,st=b?-B[J]/2+N+et+Te+U.mainAxis:q+et+Te+U.mainAxis,$=n.elements.arrow&&Jy(n.elements.arrow),le=null!=(oe=G?.[C])?oe:0,Ze=H+st-le,Ve=Ky(f?t2(pe,H+We-le-($?"y"===C?$.clientTop||0:$.clientLeft||0:0)):pe,H,f?pm(A,Ze):A);E[C]=Ve,X[C]=Ve-H}if(a){var Ct,Xn=E[D],on="y"===D?"height":"width",Ri=Xn+g["x"===C?wc:Cc],hn=Xn-g["x"===C?Bu:$u],vr=-1!==[wc,Cc].indexOf(v),Er=null!=(Ct=G?.[D])?Ct:0,fr=vr?Ri:Xn-B[on]-z[on]-Er+U.altAxis,wr=vr?Xn+B[on]+z[on]-Er-U.altAxis:hn,Si=f&&vr?function SOe(t,n,e){var i=Ky(t,n,e);return i>e?e:i}(fr,Xn,wr):Ky(f?fr:Ri,Xn,f?wr:hn);E[D]=Si,X[D]=Si-Xn}n.modifiersData[i]=X}},requiresIfExists:["offset"]};const MOe={name:"arrow",enabled:!0,phase:"main",fn:function EOe(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=Hd(e.placement),l=cO(a),u=[Cc,$u].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(n,e){return CU("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:SU(n,Wy))}(r.padding,e),h=dO(o),f="y"===l?wc:Cc,p="y"===l?Bu:$u,m=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],g=s[l]-e.rects.reference[l],v=Jy(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,E=y/2-h[u]/2+(m/2-g/2),B=Ky(d[f],E,y-h[u]-d[p]);e.modifiersData[i]=((n={})[l]=B,n.centerOffset=B-E,n)}},effect:function AOe(t){var n=t.state,i=t.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||_U(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function FOe(t,n,e){void 0===e&&(e=!1);var i=Qc(n),r=Qc(n)&&function NOe(t){var n=t.getBoundingClientRect(),e=Ev(n.width)/t.offsetWidth||1,i=Ev(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),o=Wf(n),s=Av(t,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==Ud(n)||aO(o))&&(a=function IOe(t){return t!==Sc(t)&&Qc(t)?function OOe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):oO(t)}(n)),Qc(n)?((l=Av(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):o&&(l.x=sO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function POe(t){var n=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=n.get(a);l&&r(l)}}),i.push(o)}return t.forEach(function(o){n.set(o.name,o)}),t.forEach(function(o){e.has(o.name)||r(o)}),i}function jOe(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var kU={placement:"bottom",modifiers:[],strategy:"absolute"};function DU(){for(var t=arguments.length,n=new Array(t),e=0;e=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Cc,$u].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,n.rects,o),u},{}),a=s[n.placement],c=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=a.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[i]=s}};function tIe(t,n){}function nIe(t,n){if(1&t&&(_(0,"button",3),O(1),te(2,tIe,0,0,"ng-template",4),x()),2&t){const e=n.$implicit;S("ngbPanelToggle",e),w(1),bn(" ",e.title," "),w(1),S("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function iIe(t,n){}function rIe(t,n){}function oIe(t,n){if(1&t){const e=_t();_(0,"div",8),ke("ngbRef",function(r){return ze(e),Ge(L().$implicit.panelDiv=r)}),_(1,"div",9),te(2,rIe,0,0,"ng-template",4),x()()}if(2&t){const e=L().$implicit;Ph("id",e.id),ft("aria-labelledby",e.id+"-header"),w(2),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const sIe=function(t,n){return{$implicit:t,opened:n}};function aIe(t,n){if(1&t&&(_(0,"div")(1,"div",5),te(2,iIe,0,0,"ng-template",6),x(),te(3,oIe,3,3,"div",7),x()),2&t){const e=n.$implicit,i=L(),r=sa(1);Au("accordion-item "+(e.cardClass||"")),w(1),Au("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),em("id","",e.id,"-header"),w(1),S("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||r)("ngTemplateOutletContext",Rr(8,sIe,e,e.isOpen)),w(1),S("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function lIe(t,n){if(1&t){const e=_t();_(0,"button",1),ke("click",function(){return ze(e),Ge(L().close())}),x()}}const Qy=["*"];function cIe(t,n){if(1&t){const e=_t();_(0,"button",6),ke("click",function(){const o=ze(e).$implicit,s=L();return s.focus(),Ge(s.select(o.id,s.NgbSlideEventSource.INDICATOR))}),x()}if(2&t){const e=n.$implicit,i=L();Vn("active",e.id===i.activeId),ft("aria-labelledby","slide-"+e.id)("aria-controls","slide-"+e.id)("aria-selected",e.id===i.activeId)}}function uIe(t,n){}function dIe(t,n){if(1&t&&(_(0,"div",7)(1,"span",8),Pa(2,9),x(),te(3,uIe,0,0,"ng-template",10),x()),2&t){const e=n.$implicit,i=n.index,r=n.count;S("id","slide-"+e.id),w(2),cv(i+1)(r),ey(2),w(1),S("ngTemplateOutlet",e.tplRef)}}function hIe(t,n){if(1&t){const e=_t();_(0,"button",11),ke("click",function(){return ze(e),Ge(L().arrowLeft())}),xe(1,"span",12),_(2,"span",8),Pa(3,13),x()()}}function fIe(t,n){if(1&t){const e=_t();_(0,"button",14),ke("click",function(){return ze(e),Ge(L().arrowRight())}),xe(1,"span",15),_(2,"span",8),Pa(3,16),x()()}}const pIe=["ngbDatepickerDayView",""],mIe=["month"],gIe=["year"];function vIe(t,n){if(1&t&&(_(0,"option",5),O(1),x()),2&t){const e=n.$implicit,i=L();S("value",e),ft("aria-label",i.i18n.getMonthFullName(e,i.date.year)),w(1),bt(i.i18n.getMonthShortName(e,i.date.year))}}function yIe(t,n){if(1&t&&(_(0,"option",5),O(1),x()),2&t){const e=n.$implicit,i=L();S("value",e),w(1),bt(i.i18n.getYearNumerals(e))}}function _Ie(t,n){if(1&t){const e=_t();_(0,"ngb-datepicker-navigation-select",7),ke("select",function(r){return ze(e),Ge(L().select.emit(r))}),x()}if(2&t){const e=L();S("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function bIe(t,n){1&t&&xe(0,"div",0)}function xIe(t,n){1&t&&xe(0,"div",0)}function wIe(t,n){if(1&t&&(te(0,bIe,1,0,"div",9),_(1,"div",10),O(2),x(),te(3,xIe,1,0,"div",9)),2&t){const e=n.$implicit,i=n.index,r=L(2);S("ngIf",i>0),w(2),bn(" ",r.i18n.getMonthLabel(e.firstDate)," "),w(1),S("ngIf",i!==r.months.length-1)}}function CIe(t,n){1&t&&te(0,wIe,4,3,"ng-template",8),2&t&&S("ngForOf",L().months)}function SIe(t,n){if(1&t&&(_(0,"div",5),O(1),x()),2&t){const e=L(2);w(1),bt(e.i18n.getWeekLabel())}}function kIe(t,n){if(1&t&&(_(0,"div",6),O(1),x()),2&t){const e=n.$implicit;w(1),bt(e)}}function DIe(t,n){if(1&t&&(_(0,"div",2),te(1,SIe,2,1,"div",3),te(2,kIe,2,1,"div",4),x()),2&t){const e=L();w(1),S("ngIf",e.datepicker.showWeekNumbers),w(1),S("ngForOf",e.viewModel.weekdays)}}function TIe(t,n){if(1&t&&(_(0,"div",11),O(1),x()),2&t){const e=L(2).$implicit,i=L();w(1),bt(i.i18n.getWeekNumerals(e.number))}}function EIe(t,n){}function AIe(t,n){if(1&t&&te(0,EIe,0,0,"ng-template",14),2&t){const e=L().$implicit;S("ngTemplateOutlet",L(3).datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function MIe(t,n){if(1&t){const e=_t();_(0,"div",12),ke("click",function(r){const s=ze(e).$implicit;return L(3).doSelect(s),Ge(r.preventDefault())}),te(1,AIe,1,2,"ng-template",13),x()}if(2&t){const e=n.$implicit;Vn("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),S("tabindex",e.tabindex),ft("aria-label",e.ariaLabel),w(1),S("ngIf",!e.hidden)}}function OIe(t,n){if(1&t&&(_(0,"div",8),te(1,TIe,2,1,"div",9),te(2,MIe,2,9,"div",10),x()),2&t){const e=L().$implicit,i=L();w(1),S("ngIf",i.datepicker.showWeekNumbers),w(1),S("ngForOf",e.days)}}function IIe(t,n){1&t&&te(0,OIe,3,2,"div",7),2&t&&S("ngIf",!n.$implicit.collapsed)}const NIe=["defaultDayTemplate"],FIe=["content"];function PIe(t,n){if(1&t&&xe(0,"div",8),2&t){const i=n.currentMonth,r=n.selected,o=n.disabled,s=n.focused;S("date",n.date)("currentMonth",i)("selected",r)("disabled",o)("focused",s)}}function RIe(t,n){if(1&t&&(_(0,"div",13),O(1),x()),2&t){const e=L().$implicit,i=L(2);w(1),bn(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function jIe(t,n){if(1&t&&(_(0,"div",10),te(1,RIe,2,1,"div",11),xe(2,"ngb-datepicker-month",12),x()),2&t){const e=n.$implicit,i=L(2);w(1),S("ngIf","none"===i.navigation||i.displayMonths>1&&"select"===i.navigation),w(1),S("month",e.firstDate)}}function LIe(t,n){1&t&&te(0,jIe,3,2,"div",9),2&t&&S("ngForOf",L().model.months)}function BIe(t,n){if(1&t){const e=_t();_(0,"ngb-datepicker-navigation",14),ke("navigate",function(r){return ze(e),Ge(L().onNavigateEvent(r))})("select",function(r){return ze(e),Ge(L().onNavigateDateSelect(r))}),x()}if(2&t){const e=L();S("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function $Ie(t,n){}function VIe(t,n){}const EU=function(t){return{$implicit:t}},HIe=["dialog"],UIe=["ngbNavOutlet",""];function zIe(t,n){}function GIe(t,n){if(1&t&&(_(0,"div",2),te(1,zIe,0,0,"ng-template",3),x()),2&t){const e=L().$implicit,i=L();S("item",e)("nav",i.nav)("role",i.paneRole),w(1),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",Zi(5,EU,e.active||i.isPanelTransitioning(e)))}}function WIe(t,n){if(1&t&&te(0,GIe,2,7,"div",1),2&t){const e=n.$implicit,i=L();S("ngIf",e.isPanelInDom()||i.isPanelTransitioning(e))}}function qIe(t,n){1&t&&(_(0,"span",9),Pa(1,10),x())}function YIe(t,n){1&t&&(_(0,"span",9),Pa(1,11),x())}function XIe(t,n){1&t&&(_(0,"span",9),Pa(1,12),x())}function JIe(t,n){1&t&&(_(0,"span",9),Pa(1,13),x())}function KIe(t,n){1&t&&O(0,"...")}function QIe(t,n){1&t&&O(0),2&t&&bt(n.$implicit)}function ZIe(t,n){}const eNe=function(t){return{disabled:!0,currentPage:t}};function tNe(t,n){if(1&t&&(_(0,"a",18),te(1,ZIe,0,0,"ng-template",8),x()),2&t){const e=L(2).$implicit,i=L(),r=sa(9);w(1),S("ngTemplateOutlet",(null==i.tplEllipsis?null:i.tplEllipsis.templateRef)||r)("ngTemplateOutletContext",Zi(2,eNe,e))}}function nNe(t,n){}const iNe=function(t,n,e){return{disabled:t,$implicit:n,currentPage:e}};function rNe(t,n){if(1&t){const e=_t();_(0,"a",19),ke("click",function(r){ze(e);const o=L().$implicit;return L(2).selectPage(o),Ge(r.preventDefault())}),te(1,nNe,0,0,"ng-template",8),x()}if(2&t){const e=L().$implicit,i=L(),r=i.disabled,o=i.$implicit,s=L(),a=sa(11);ft("tabindex",r?"-1":null)("aria-disabled",r?"true":null),w(1),S("ngTemplateOutlet",(null==s.tplNumber?null:s.tplNumber.templateRef)||a)("ngTemplateOutletContext",ty(4,iNe,r,e,o))}}function oNe(t,n){if(1&t&&(_(0,"li",15),te(1,tNe,2,4,"a",16),te(2,rNe,2,8,"a",17),x()),2&t){const e=n.$implicit,i=L(),r=i.$implicit,o=i.disabled,s=L();Vn("active",e===r)("disabled",s.isEllipsis(e)||o),ft("aria-current",e===r?"page":null),w(1),S("ngIf",s.isEllipsis(e)),w(1),S("ngIf",!s.isEllipsis(e))}}function sNe(t,n){1&t&&te(0,oNe,3,7,"li",14),2&t&&S("ngForOf",n.pages)}function aNe(t,n){}const hO=function(t,n){return{disabled:t,currentPage:n}};function lNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",20),ke("click",function(r){return ze(e),L().selectPage(1),Ge(r.preventDefault())}),te(2,aNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(1);Vn("disabled",e.previousDisabled()),w(1),ft("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.previousDisabled(),e.page))}}function cNe(t,n){}const uNe=function(t){return{disabled:t}};function dNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",21),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.page-1),Ge(r.preventDefault())}),te(2,cNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(3);Vn("disabled",e.previousDisabled()),w(1),ft("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||i)("ngTemplateOutletContext",Zi(6,uNe,e.previousDisabled()))}}function hNe(t,n){}function fNe(t,n){}function pNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",22),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.page+1),Ge(r.preventDefault())}),te(2,fNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(5);Vn("disabled",e.nextDisabled()),w(1),ft("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.nextDisabled(),e.page))}}function mNe(t,n){}function gNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",23),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.pageCount),Ge(r.preventDefault())}),te(2,mNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(7);Vn("disabled",e.nextDisabled()),w(1),ft("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.nextDisabled(),e.page))}}const vNe=function(t,n,e){return{$implicit:t,pages:n,disabled:e}};function bNe(t,n){if(1&t&&(_(0,"span"),Pa(1,1),_A(2,"percent"),x()),2&t){const e=L();w(2),cv(bA(2,1,e.getValue()/e.max)),ey(1)}}function xNe(t,n){1&t&&O(0),2&t&&bt(100===n.fill?"\u2605":"\u2606")}function wNe(t,n){}function CNe(t,n){if(1&t){const e=_t();_(0,"span",2),O(1),x(),_(2,"span",3),ke("mouseenter",function(){const o=ze(e).index;return Ge(L().enter(o+1))})("click",function(){const o=ze(e).index;return Ge(L().handleClick(o+1))}),te(3,wNe,0,0,"ng-template",4),x()}if(2&t){const e=n.index,i=L(),r=sa(1);w(1),bn("(",e=12)("ngIfElse",e)}}function RNe(t,n){if(1&t&&(_(0,"strong",3),O(1),x()),2&t){const e=L();w(1),bt(e.header)}}function jNe(t,n){}function LNe(t,n){if(1&t){const e=_t();_(0,"div",4),te(1,jNe,0,0,"ng-template",5),_(2,"button",6),ke("click",function(){return ze(e),Ge(L().hide())}),x()()}if(2&t){const e=L(),i=sa(1);w(1),S("ngTemplateOutlet",e.contentHeaderTpl||i)}}function BNe(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L().$implicit;Au(L().highlightClass),w(1),bt(e)}}function $Ne(t,n){1&t&&O(0),2&t&&bt(L().$implicit)}function VNe(t,n){if(1&t&&(te(0,BNe,2,3,"span",1),te(1,$Ne,1,1,"ng-template",null,2,Xo)),2&t){const e=n.odd,i=sa(2);S("ngIf",e)("ngIfElse",i)}}function Ha(t){return parseInt(`${t}`,10)}function AU(t){return null!=t?`${t}`:""}function r2(t,n,e=0){return Math.max(Math.min(t,n),e)}function mm(t){return"string"==typeof t}function gs(t){return!isNaN(Ha(t))}function is(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function gm(t){return null!=t}function Ov(t){return gs(t)?`0${t}`.slice(-2):""}function OU(t,n){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(n)>=0}function Iv(t){return(t||document.body).getBoundingClientRect()}function IU(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const NU={animation:!0,transitionTimerDelayMs:5},YNe=()=>{},{transitionTimerDelayMs:XNe}=NU,Zy=new Map,pa=(t,n,e,i)=>{let r=i.context||{};const o=Zy.get(n);if(o)switch(i.runningTransition){case"continue":return Uh;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Zy.delete(n)}const s=e(n,i.animation,r)||YNe;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),Hn(void 0).pipe(function WNe(t){return n=>new Wt(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const a=new fn,l=new fn,c=a.pipe(function V3e(...t){return n=>oC(n,Hn(...t))}(!0));Zy.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function qNe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const d=Va(n,"transitionend").pipe(ns(c),ps(({target:f})=>f===n));uU(Gy(u+XNe).pipe(ns(c)),d,l).pipe(ns(c)).subscribe(()=>{Zy.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},fO=(t,n,e)=>{let{direction:i,maxSize:r,dimension:o}=e;const{classList:s}=t;function a(){s.add("collapse"),"show"===i?s.add("show"):s.remove("show")}if(n)return r||(r=function KNe(t,n){if(typeof navigator>"u")return"0px";const{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[n]="";const r=t.getBoundingClientRect()[n]+"px";return i||e.remove("show"),r}(t,o),e.maxSize=r,t.style[o]="show"!==i?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),Iv(t),s.add("collapsing")),t.style[o]="show"===i?r:"0px",()=>{a(),s.remove("collapsing"),t.style[o]=""};a()};let qf=(()=>{class t{constructor(){this.animation=NU.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),FU=(()=>{class t{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QNe=0,pO=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),PU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),RU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),mO=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+QNe++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ot,this.hidden=new ot}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["ngb-panel"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,PU,4),Ti(r,pO,4),Ti(r,RU,4)),2&e){let o;Tn(o=En())&&(i.titleTpls=o),Tn(o=En())&&(i.headerTpls=o),Tn(o=En())&&(i.contentTpls=o)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),ZNe=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new ot}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),jU=(()=>{class t{constructor(e,i){this.accordion=e,this.panel=i}set ngbPanelToggle(e){e&&(this.panel=e)}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>gO)),ge(mO,9))},t.\u0275dir=un({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&ke("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(ql("disabled",i.panel.disabled),ft("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),Vn("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),gO=(()=>{class t{constructor(e,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ot,this.shown=new ot,this.hidden=new ot,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const i=this._findPanelById(e);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){mm(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{this.panels.forEach(e=>{const i=e.panelDiv;i?e.initClassDone||(e.initClassDone=!0,pa(this._ngZone,i,fO,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide",dimension:"height"}})):e.initClassDone=!1})})}_changeOpenState(e,i){if(null!=e&&!e.disabled&&e.isOpen!==i){let r=!1;this.panelChange.emit({panelId:e.id,nextState:i,preventDefault:()=>{r=!0}}),r||(e.isOpen=i,e.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,i=!0){this.panels.forEach(r=>{r.id!==e&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(e){return this.panels.find(i=>i.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&pa(this._ngZone,i.panelDiv,fO,{animation:e,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{i.transitionRunning=!1;const{id:o}=i;i.isOpen?(i.shown.emit(),this.shown.emit(o)):(i.hidden.emit(),this.hidden.emit(o))})})}}return t.\u0275fac=function(e){return new(e||t)(ge(FU),ge(ur),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,mO,4),2&e){let o;Tn(o=En())&&(i.panels=o)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&ft("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[Bs],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(e,i){1&e&&(te(0,nIe,3,3,"ng-template",0,1,Xo),te(2,aIe,4,11,"ng-template",2)),2&e&&(w(2),S("ngForOf",i.panels))},dependencies:[Un,Fu,jU,ZNe,pO,xn],encapsulation:2}),t})(),VU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[gO]}),t})();const oFe=({classList:t})=>{t.remove("show")};let sFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yo=(()=>{class t{constructor(e,i,r,o){this._renderer=i,this._element=r,this._zone=o,this.closed=new ot,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=pa(this._zone,this._element.nativeElement,oFe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(ge(sFe),ge(oa),ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Vn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[ei,Bs],ngContentSelectors:Qy,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Df(),Tf(0),te(1,lIe,1,0,"button",0)),2&e&&(w(1),S("ngIf",i.dismissible))},dependencies:[xn],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),HU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[yo]}),t})();var Yf=(()=>(function(t){t.START="start",t.END="end"}(Yf||(Yf={})),Yf))();const UU=({classList:t})=>t.contains("carousel-item-start")||t.contains("carousel-item-end"),e_=t=>{t.remove("carousel-item-start"),t.remove("carousel-item-end")},o2=t=>{e_(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},aFe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(UU(t)?e_(i):(i.add("carousel-item-"+(e===Yf.START?"next":"prev")),Iv(t),i.add("carousel-item-"+e)),()=>{o2(i),i.add("active")}):(e_(i),o2(i),void i.add("active"))},lFe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(UU(t)?e_(i):i.add("carousel-item-"+e),()=>{o2(i),i.remove("active")}):(e_(i),o2(i),void i.remove("active"))};let cFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uFe=0,dFe=(()=>{class t{constructor(e){this.tplRef=e,this.id="ngb-slide-"+uFe++,this.slid=new ot}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"},standalone:!0}),t})(),hFe=(()=>{class t{constructor(e,i,r,o,s){this._platformId=i,this._ngZone=r,this._cd=o,this._container=s,this.NgbSlideEventSource=ym,this._destroy$=new fn,this._interval$=new ca(0),this._mouseHover$=new ca(!1),this._focused$=new ca(!1),this._pauseOnHover$=new ca(!1),this._pauseOnFocus$=new ca(!1),this._pause$=new ca(!1),this._wrap$=new ca(!1),this.slide=new ot,this.slid=new ot,this._transitionIds=null,this.animation=e.animation,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.pauseOnFocus=e.pauseOnFocus,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(e){this._pauseOnFocus$.next(e)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(e){this._mouseHover$.next(e)}get mouseHover(){return this._mouseHover$.value}set focused(e){this._focused$.next(e)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(ym.ARROW_LEFT)}arrowRight(){this.focus(),this.next(ym.ARROW_RIGHT)}ngAfterContentInit(){v7(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const e=rC([this.slide.pipe($t(i=>i.current),aC(this.activeId)),this._wrap$,this.slides.changes.pipe(aC(null))]).pipe($t(([i,r])=>{const o=this.slides.toArray(),s=this._getSlideIdxById(i);return r?o.length>1:si||r&&o||s&&a||!c?0:l),QC(),bc(i=>i>0?Gy(i,i):dU),ns(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(ym.TIMER)))}),this.slides.changes.pipe(ns(this._destroy$)).subscribe(()=>{this._transitionIds?.forEach(e=>(t=>{Zy.get(t)?.complete()})(this._getSlideElement(e))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{for(const{id:e}of this.slides){const i=this._getSlideElement(e);e===this.activeId?i.classList.add("active"):i.classList.remove("active")}})})}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const e=this._getSlideElement(this.activeId);e&&e.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(e,i){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),i)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),Yf.END,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),Yf.START,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(e,i,r){const o=this._transitionIds;if(o&&(o[0]!==e||o[1]!==this.activeId))return;let s=this._getSlideById(e);if(s&&s.id!==this.activeId){this._transitionIds=[this.activeId,e],this.slide.emit({prev:this.activeId,current:s.id,direction:i,paused:this._pause$.value,source:r});const a={animation:this.animation,runningTransition:"stop",context:{direction:i}},l=[],c=this._getSlideById(this.activeId);if(c){const f=pa(this._ngZone,this._getSlideElement(c.id),lFe,a);f.subscribe(()=>{c.slid.emit({isShown:!1,direction:i,source:r})}),l.push(f)}const u=this.activeId;this.activeId=s.id;const d=this._getSlideById(this.activeId),h=pa(this._ngZone,this._getSlideElement(s.id),aFe,a);h.subscribe(()=>{d?.slid.emit({isShown:!0,direction:i,source:r})}),l.push(h),ZC(...l).pipe(ua(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:u,current:s.id,direction:i,paused:this._pause$.value,source:r})})}this._cd.markForCheck()}_getSlideEventDirection(e,i){return this._getSlideIdxById(e)>this._getSlideIdxById(i)?Yf.END:Yf.START}_getSlideById(e){return this.slides.find(i=>i.id===e)||null}_getSlideIdxById(e){const i=this._getSlideById(e);return null!=i?this.slides.toArray().indexOf(i):-1}_getNextSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return r===i.length-1?this.wrap?i[0].id:i[i.length-1].id:i[r+1].id}_getPrevSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return 0===r?this.wrap?i[i.length-1].id:i[0].id:i[r-1].id}_getSlideElement(e){return this._container.nativeElement.querySelector(`#slide-${e}`)}}return t.\u0275fac=function(e){return new(e||t)(ge(cFe),ge(sy),ge(ur),ge($s),ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-carousel"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,dFe,4),2&e){let o;Tn(o=En())&&(i.slides=o)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(e,i){1&e&&ke("keydown.arrowLeft",function(){return i.keyboard&&i.arrowLeft()})("keydown.arrowRight",function(){return i.keyboard&&i.arrowRight()})("mouseenter",function(){return i.mouseHover=!0})("mouseleave",function(){return i.mouseHover=!1})("focusin",function(){return i.focused=!0})("focusout",function(){return i.focused=!1}),2&e&&(ft("aria-activedescendant","slide-"+i.activeId),cr("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],standalone:!0,features:[Bs],decls:6,vars:6,consts:function(){let n,e,i;return n=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,e=$localize`:@@ngb.carousel.previous:Previous`,i=$localize`:@@ngb.carousel.next:Next`,[["role","tablist",1,"carousel-indicators"],["type","button","data-bs-target","","role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","type","button",3,"click",4,"ngIf"],["class","carousel-control-next","type","button",3,"click",4,"ngIf"],["type","button","data-bs-target","","role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"visually-hidden"],n,[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],e,["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],i]},template:function(e,i){1&e&&(_(0,"div",0),te(1,cIe,1,5,"button",1),x(),_(2,"div",2),te(3,dIe,4,4,"div",3),x(),te(4,hIe,4,0,"button",4),te(5,fIe,4,0,"button",5)),2&e&&(Vn("visually-hidden",!i.showNavigationIndicators),w(1),S("ngForOf",i.slides),w(2),S("ngForOf",i.slides),w(1),S("ngIf",i.showNavigationArrows),w(1),S("ngIf",i.showNavigationArrows))},dependencies:[Un,Fu,xn],encapsulation:2,changeDetection:0}),t})();var ym=(()=>(function(t){t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator"}(ym||(ym={})),ym))();let zU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[hFe]}),t})(),GU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();class ma{constructor(n,e,i){this.year=is(n)?n:null,this.month=is(e)?e:null,this.day=is(i)?i:null}static from(n){return n instanceof ma?n:n?new ma(n.year,n.month,n.day):null}equals(n){return null!=n&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return!!n&&(this.year===n.year?this.month===n.month?this.day!==n.day&&this.dayn.day:this.month>n.month:this.year>n.year)}}function Nv(t,n){return!function fFe(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}(t,n)}function WU(t,n){return!(!t&&!n||t&&n&&t.year===n.year&&t.month===n.month)}function s2(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function yO(t,n){const{minDate:e,maxDate:i,disabled:r,markDisabled:o}=n;return!(null==t||r||o&&o(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function qU(t){return new ma(t.getFullYear(),t.getMonth()+1,t.getDate())}function a2(t){const n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}let l2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function wFe(){return new CFe}()},providedIn:"root"}),t})(),CFe=(()=>{class t extends l2{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",r=1){let o=a2(e),s=!0,a=o.getMonth();switch(i){case"y":o.setFullYear(o.getFullYear()+r);break;case"m":a+=r,o.setMonth(a),a%=12,a<0&&(a+=12);break;case"d":o.setDate(o.getDate()+r),s=!1;break;default:return e}return s&&o.getMonth()!==a&&o.setDate(0),qU(o)}getPrev(e,i="d",r=1){return this.getNext(e,i,-r)}getWeekday(e){let r=a2(e).getDay();return 0===r?7:r}getWeekNumber(e,i){7===i&&(i=0);const s=a2(e[(11-i)%7]);s.setDate(s.getDate()+4-(s.getDay()||7));const a=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((a-s.getTime())/864e5)/7)+1}getToday(){return qU(new Date)}isValid(e){if(!(e&&is(e.year)&&is(e.month)&&is(e.day)&&0!==e.year))return!1;const i=a2(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function SFe(t){return new kFe(t)}(wt(vc)),i},providedIn:"root"}),t})(),kFe=(()=>{class t extends _m{constructor(e){super(),this._locale=e,this._monthsShort=QA(e,Vo.Standalone,Yi.Abbreviated),this._monthsFull=QA(e,Vo.Standalone,Yi.Wide)}getWeekdayLabel(e,i){const r=J$(this._locale,Vo.Standalone,void 0===i?Yi.Short:i);return r.map((s,a)=>r[(a+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){return Q$(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(wt(vc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),_O=(()=>{class t{constructor(e,i){this._calendar=e,this._i18n=i,this._VALIDATORS={dayTemplateData:r=>{if(this._state.dayTemplateData!==r)return{dayTemplateData:r}},displayMonths:r=>{if(is(r=Ha(r))&&r>0&&this._state.displayMonths!==r)return{displayMonths:r}},disabled:r=>{if(this._state.disabled!==r)return{disabled:r}},firstDayOfWeek:r=>{if(is(r=Ha(r))&&r>=0&&this._state.firstDayOfWeek!==r)return{firstDayOfWeek:r}},focusVisible:r=>{if(this._state.focusVisible!==r&&!this._state.disabled)return{focusVisible:r}},markDisabled:r=>{if(this._state.markDisabled!==r)return{markDisabled:r}},maxDate:r=>{const o=this.toValidDate(r,null);if(Nv(this._state.maxDate,o))return{maxDate:o}},minDate:r=>{const o=this.toValidDate(r,null);if(Nv(this._state.minDate,o))return{minDate:o}},navigation:r=>{if(this._state.navigation!==r)return{navigation:r}},outsideDays:r=>{if(this._state.outsideDays!==r)return{outsideDays:r}},weekdays:r=>{const o=!0===r||!1===r?Yi.Short:r,s=!0!==r&&!1!==r||r;if(this._state.weekdayWidth!==o||this._state.weekdaysVisible!==s)return{weekdayWidth:o,weekdaysVisible:s}}},this._model$=new fn,this._dateSelect$=new fn,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:Yi.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(ps(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(ps(e=>null!==e))}set(e){let i=Object.keys(e).map(r=>this._VALIDATORS[r](e[r])).reduce((r,o)=>({...r,...o}),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){const i=this.toValidDate(e,null);null!=i&&!this._state.disabled&&Nv(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){yO(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const i=this.toValidDate(e,this._calendar.getToday());null!=i&&!this._state.disabled&&(!this._state.firstDate||WU(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){const r=this.toValidDate(e,null);null!=r&&!this._state.disabled&&(Nv(this._state.selectedDate,r)&&this._nextState({selectedDate:r}),i.emitEvent&&yO(r,this._state)&&this._dateSelect$.next(r))}toValidDate(e,i){const r=ma.from(e);return void 0===i&&(i=this._calendar.getToday()),this._calendar.isValid(r)?r:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){const{months:i,displayMonths:r,selectedDate:o,focusDate:s,focusVisible:a,disabled:l,outsideDays:c}=e;e.months.forEach(u=>{u.weeks.forEach(d=>{d.days.forEach(h=>{s&&(h.context.focused=s.equals(h.date)&&a),h.tabindex=!l&&s&&h.date.equals(s)&&s.month===u.number?0:-1,!0===l&&(h.context.disabled=!0),void 0!==o&&(h.context.selected=null!==o&&o.equals(h.date)),u.number!==h.date.month&&(h.hidden="hidden"===c||"collapsed"===c||r>1&&h.date.after(i[0].firstDate)&&h.date.before(i[r-1].lastDate))})})})}_updateState(e){const i=Object.assign({},this._state,e);let r=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(function pFe(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}(i.minDate,i.maxDate),i.focusDate=s2(i.focusDate,i.minDate,i.maxDate),i.firstDate=s2(i.firstDate,i.minDate,i.maxDate),r=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(r=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=s2(i.focusDate,i.minDate,i.maxDate),r=i.focusDate,0!==i.months.length&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=s2(i.firstDate,i.minDate,i.maxDate),r=i.firstDate),r){const s=function _Fe(t,n,e,i,r){const{displayMonths:o,months:s}=e,a=s.splice(0,s.length);return Array.from({length:o},(c,u)=>{const d=Object.assign(t.getNext(n,"m",u),{day:1});if(s[u]=null,!r){const h=a.findIndex(f=>f.firstDate.equals(d));-1!==h&&(s[u]=a.splice(h,1)[0])}return d}).forEach((c,u)=>{null===s[u]&&(s[u]=function bFe(t,n,e,i,r={}){const{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u,weekdayWidth:d,weekdaysVisible:h}=e,f=t.getToday();r.firstDate=null,r.lastDate=null,r.number=n.month,r.year=n.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],n=function xFe(t,n,e){const i=t.getDaysPerWeek(),r=new ma(n.year,n.month,1),o=t.getWeekday(r)%i;return t.getPrev(r,"d",(i+o-e)%i)}(t,n,l),h||(r.weekdays.length=0);for(let p=0;pv.date),l),m.collapsed="collapsed"===u&&g[0].date.month!==r.number&&g[g.length-1].date.month!==r.number}return r}(t,c,e,i,a.shift()||{}))}),s}(this._calendar,r,i,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e);i.months=s,i.firstDate=s[0].firstDate,i.lastDate=s[s.length-1].lastDate,"selectedDate"in e&&!yO(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=r);const a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;"select"===i.navigation?(("minDate"in e||"maxDate"in e||0===i.selectBoxes.years.length||a)&&(i.selectBoxes.years=function gFe(t,n,e){if(!t)return[];const i=n?Math.max(n.year,t.year-500):t.year-10,o=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,s=Array(o);for(let a=0;as===e.month);r=r.slice(o)}if(i&&n.year===i.year){const o=r.findIndex(s=>s===i.month);r=r.slice(0,o+1)}return r}(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},("arrows"===i.navigation||"select"===i.navigation)&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||function yFe(t,n,e){const i=Object.assign(t.getPrev(n,"m"),{day:1});return null!=e&&(i.year===e.year&&i.month(function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(Fv||(Fv={})),Fv))();let DFe=(()=>{class t{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m))},t.\u0275cmp=Vt({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,i){2&e&&Vn("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[Bs],attrs:pIe,decls:1,vars:1,template:function(e,i){1&e&&O(0),2&e&&bt(i.i18n.getDayNumerals(i.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),TFe=(()=>{class t{constructor(e,i){this.i18n=e,this._renderer=i,this.select=new ot,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new ma(this.date.year,Ha(e),1))}changeYear(e){this.select.emit(new ma(Ha(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(ge(_m),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,i){if(1&e&&(wo(mIe,7,Ni),wo(gIe,7,Ni)),2&e){let r;Tn(r=En())&&(i.monthSelect=r.first),Tn(r=En())&&(i.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[Bs],decls:6,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.select-month:Select month`,e=$localize`:@@ngb.datepicker.select-month:Select month`,i=$localize`:@@ngb.datepicker.select-year:Select year`,r=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",n,"title",e,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",i,"title",r,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,i){1&e&&(_(0,"select",0,1),ke("change",function(o){return i.changeMonth(o.target.value)}),te(2,vIe,2,3,"option",2),x(),_(3,"select",3,4),ke("change",function(o){return i.changeYear(o.target.value)}),te(5,yIe,2,2,"option",2),x()),2&e&&(S("disabled",i.disabled),w(2),S("ngForOf",i.months),w(1),S("disabled",i.disabled),w(2),S("ngForOf",i.years))},dependencies:[Un],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),t})(),EFe=(()=>{class t{constructor(e){this.i18n=e,this.navigation=Fv,this.months=[],this.navigate=new ot,this.select=new ot}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[Bs],decls:8,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.previous-month:Previous month`,e=$localize`:@@ngb.datepicker.previous-month:Previous month`,i=$localize`:@@ngb.datepicker.next-month:Next month`,r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",n,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",i,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,i){1&e&&(_(0,"div",0)(1,"button",1),ke("click",function(o){return i.onClickPrev(o)}),xe(2,"span",2),x()(),te(3,_Ie,1,4,"ngb-datepicker-navigation-select",3),te(4,CIe,1,1,null,4),_(5,"div",5)(6,"button",6),ke("click",function(o){return i.onClickNext(o)}),xe(7,"span",2),x()()),2&e&&(w(1),S("disabled",i.prevDisabled),w(2),S("ngIf",i.showSelect),w(1),S("ngIf",!i.showSelect),w(2),S("disabled",i.nextDisabled))},dependencies:[xn,Un,TFe],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),t})();var jr=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(jr||(jr={})),jr))();let AFe=(()=>{class t{processKey(e,i){const{state:r,calendar:o}=i;switch(e.which){case jr.PageUp:i.focusDate(o.getPrev(r.focusedDate,e.shiftKey?"y":"m",1));break;case jr.PageDown:i.focusDate(o.getNext(r.focusedDate,e.shiftKey?"y":"m",1));break;case jr.End:i.focusDate(e.shiftKey?r.maxDate:r.lastDate);break;case jr.Home:i.focusDate(e.shiftKey?r.minDate:r.firstDate);break;case jr.ArrowLeft:i.focusDate(o.getPrev(r.focusedDate,"d",1));break;case jr.ArrowUp:i.focusDate(o.getPrev(r.focusedDate,"d",o.getDaysPerWeek()));break;case jr.ArrowRight:i.focusDate(o.getNext(r.focusedDate,"d",1));break;case jr.ArrowDown:i.focusDate(o.getNext(r.focusedDate,"d",o.getDaysPerWeek()));break;case jr.Enter:case jr.Space:i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bO=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=Yi.Short}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function MFe(){return new OFe}()},providedIn:"root"}),t})(),OFe=(()=>{class t extends xO{fromModel(e){return e&&is(e.year)&&is(e.month)&&is(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&is(e.year)&&is(e.month)&&is(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),YU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0}),t})(),wO=(()=>{class t{constructor(e,i,r,o){this.i18n=e,this.datepicker=i,this._keyboardService=r,this._service=o}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m),ge(ji(()=>c2)),ge(AFe),ge(_O))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,i){1&e&&ke("keydown",function(o){return i.onKeyDown(o)})},inputs:{month:"month"},standalone:!0,features:[Bs],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(te(0,DIe,3,2,"div",0),te(1,IIe,1,1,"ng-template",1)),2&e&&(S("ngIf",i.viewModel.weekdays.length>0),w(1),S("ngForOf",i.viewModel.weeks))},dependencies:[xn,Un,Fu],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),t})(),c2=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this._service=e,this._calendar=i,this._i18n=r,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=c,this.injector=Vi(Ca),this._controlValue=null,this._destroyed$=new fn,this._publicState={},this.navigate=new ot,this.dateSelect=new ot,this.onChange=u=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(u=>this[u]=o[u]),e.dateSelect$.pipe(ns(this._destroyed$)).subscribe(u=>{this.dateSelect.emit(u)}),e.model$.pipe(ns(this._destroyed$)).subscribe(u=>{const d=u.firstDate,h=this.model?this.model.firstDate:null;this._publicState={maxDate:u.maxDate,minDate:u.minDate,firstDate:u.firstDate,lastDate:u.lastDate,focusedDate:u.focusDate,months:u.months.map(v=>v.firstDate)};let f=!1;if(!d.equals(h)&&(this.navigate.emit({current:h?{year:h.year,month:h.month}:null,next:{year:d.year,month:d.month},preventDefault:()=>f=!0}),f&&null!==h))return void this._service.open(h);const p=u.selectedDate,m=u.focusDate,g=this.model?this.model.focusDate:null;this.model=u,Nv(p,this._controlValue)&&(this._controlValue=p,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(p))),Nv(m,g)&&g&&u.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(ma.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(ma.from(e?e.day?e:{...e,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Va(this._contentEl.nativeElement,"focusin"),i=Va(this._contentEl.nativeElement,"focusout"),{nativeElement:r}=this._elementRef;Mt(e,i).pipe(ps(({target:o,relatedTarget:s})=>!(OU(o,"ngb-dp-day")&&OU(s,"ngb-dp-day")&&r.contains(o)&&r.contains(s))),ns(this._destroyed$)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===o})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(r=>r in e).forEach(r=>i[r]=this[r]),this._service.set(i),"startDate"in e){const{currentValue:r,previousValue:o}=e.startDate;WU(o,r)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Fv.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Fv.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=ma.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(ge(_O),ge(l2),ge(_m),ge(bO),ge($s),ge(Ni),ge(xO),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,YU,7),2&e){let o;Tn(o=En())&&(i.contentTemplateFromContent=o.first)}},viewQuery:function(e,i){if(1&e&&(wo(NIe,7),wo(FIe,7)),2&e){let r;Tn(r=En())&&(i._defaultDayTemplate=r.first),Tn(r=En())&&(i._contentEl=r.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("disabled",i.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0},_O]),ei,Bs],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,i){if(1&e&&(te(0,PIe,1,5,"ng-template",null,0,Xo),te(2,LIe,1,1,"ng-template",null,1,Xo),_(4,"div",2),te(5,BIe,1,7,"ngb-datepicker-navigation",3),x(),_(6,"div",4,5),te(8,$Ie,0,0,"ng-template",6),x(),te(9,VIe,0,0,"ng-template",7)),2&e){const r=sa(3);w(5),S("ngIf","none"!==i.navigation),w(1),Vn("ngb-dp-months",!i.contentTemplate),w(2),S("ngTemplateOutlet",i.contentTemplate||(null==i.contentTemplateFromContent?null:i.contentTemplateFromContent.templateRef)||r)("ngTemplateOutletContext",Zi(7,EU,i))("ngTemplateOutletInjector",i.injector),w(1),S("ngTemplateOutlet",i.footerTemplate)}},dependencies:[xn,Un,Fu,DFe,wO,EFe],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),t})();const u2=(t,n)=>!!n&&n.some(e=>e.contains(t)),XU=(t,n)=>!n||null!=function GNe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),IFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),NFe=t=>IFe?()=>setTimeout(()=>t(),100):t;function CO(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(NFe(()=>{const c=Va(n,"keydown").pipe(ns(r),ps(h=>h.which===jr.Escape),ms(h=>h.preventDefault())),u=Va(n,"mousedown").pipe($t(h=>{const f=h.target;return 2!==h.button&&!u2(f,s)&&("inside"===e?u2(f,o)&&XU(f,a):"outside"===e?!u2(f,o):XU(f,a)||!u2(f,o))}),ns(r)),d=Va(n,"mouseup").pipe(Z3(u),ps(([h,f])=>f),eO(0),ns(r));uU([c.pipe($t(h=>0)),d.pipe($t(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const JU=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function KU(t){const n=Array.from(t.querySelectorAll(JU)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}let FFe=(()=>{class t{constructor(e){this._element=e.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const PFe=/\s+/,RFe=/ +/gi,jFe={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},BFe=/^left/,$Fe=/^right/,VFe=/^start/,HFe=/^end/;function ZU({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(PFe),o=i.findIndex(c=>"auto"===c);o>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==i.find(u=>-1!==u.search("^"+c))&&i.splice(o++,1,c)});const s=i.map(c=>function LFe(t,n){const[e,i]=jFe[t];return n&&i||e}(c,e.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const u=new RegExp(n+"(-[a-z]+)*","gi"),d=c.elements.popper,h=c.placement;let f=d.className;f=f.replace(u,""),f+=` ${function UFe(t,n){let[e,i]=n.split("-");const r=e.replace(BFe,"start").replace($Fe,"end");let o=[r];if(i){let s=i;("left"===e||"right"===e)&&(s=s.replace(VFe,"top").replace(HFe,"bottom")),o.push(`${r}-${s}`)}return t&&(o=o.map(s=>`${t}-${s}`)),o.join(" ")}(n,h)}`,f=f.trim().replace(RFe," "),d.className=f}},wOe,DOe,MOe,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function ez(t){return t}function SO(){const t=Vi(FFe);let n=null;return{createPopper(e){if(!n){let r=(e.updatePopperOptions||ez)(ZU(e,t));n=KOe(e.hostElement,e.targetElement,r)}},update(){n&&n.update()},setOptions(e){if(n){let r=(e.updatePopperOptions||ez)(ZU(e,t));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}new Date(1882,10,12),new Date(2174,10,25);let cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[c2,wO]}),t})(),ePe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xf=(()=>{class t{constructor(e,i){this.elementRef=e,this._renderer=i,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(e,i){2&e&&(ql("tabIndex",i.disabled?-1:0),Vn("disabled",i.disabled))},inputs:{disabled:"disabled"},standalone:!0}),t})(),Jf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Xf,4),2&e){let o;Tn(o=En())&&(i.menuItems=o)}},hostVars:4,hostBindings:function(e,i){1&e&&ke("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&Vn("dropdown-menu",!0)("show",i.dropdown.isOpen())},standalone:!0}),t})(),p2=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ft("aria-expanded",i.dropdown.isOpen())},standalone:!0}),t})(),wm=(()=>{class t extends p2{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&ke("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ft("aria-expanded",i.dropdown.isOpen())},standalone:!0,features:[oo([{provide:p2,useExisting:ji(()=>t)}]),wi]}),t})(),Hu=(()=>{class t{constructor(e,i,r,o,s,a){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._destroyCloseHandlers$=new fn,this._bodyContainer=null,this._open=!1,this.openChange=new ot,this.placement=i.placement,this.popperOptions=i.popperOptions,this.container=i.container,this.autoClose=i.autoClose,this._positioning=SO(),this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic"}ngAfterContentInit(){this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),e.dropdownClass){const{currentValue:i,previousValue:r}=e.dropdownClass;this._applyCustomDropdownClass(i,r)}e.autoClose&&this._open&&(this.autoClose=e.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:e=>this.popperOptions(function nz(t){return n=>(n.modifiers.push(eIe,{name:"offset",options:{offset:()=>t}}),n)}([0,2])(e))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),CO(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==jr.Space&&i!==jr.Enter){if(i!==jr.Tab){if(a||s){if(this.open(),r.length){switch(i){case jr.ArrowDown:o=Math.min(o+1,r.length-1);break;case jr.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case jr.Home:o=0;break;case jr.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(JU);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Va(e.target,"focusout").pipe(ua(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Va(s,"click").pipe(ua(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;this._menu&&e.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1055"),i.appendChild(o,r),i.appendChild(this._document.body,o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){const r="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;r&&(i&&this._renderer.removeClass(r,i),e&&this._renderer.addClass(r,e))}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown");const{nativeElement:s}=i;"static"===this.display?(i.placement=null,r.setAttribute(s,"data-bs-popper","static")):(i.placement=e,r.removeAttribute(s,"data-bs-popper"));const a=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,a);const l=this._bodyContainer;l&&(r.removeClass(l,"dropup"),r.removeClass(l,"dropdown"),r.addClass(l,a))}}}return t.\u0275fac=function(e){return new(e||t)(ge($s),ge(ePe),ge(vo),ge(ur),ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Jf,5),Ti(r,p2,5)),2&e){let o;Tn(o=En())&&(i._menu=o.first),Tn(o=En())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("show",i.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[ei]}),t})(),uz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();class Cm{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class tPe{constructor(n,e,i,r,o,s){this._componentType=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,o=this._ngZone.onStable.pipe(ua(1),it(()=>pa(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(n=!1){return this._windowRef?pa(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(ms(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Hn(void 0)}_getContentRef(n,e){if(n){if(n instanceof fo){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new Cm([i.rootNodes],i)}return new Cm([[this._renderer.createText(`${n}`)]])}return new Cm([])}}let nPe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{pa(this._zone,this._el.nativeElement,(e,i)=>{i&&Iv(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return pa(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(Au("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Vn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Bs],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class dz{update(n){}close(n){}dismiss(n){}}const iPe=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],rPe=["animation","backdropClass"];class oPe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new fn,this._dismissed=new fn,this._hidden=new fn,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}_applyWindowOptions(n,e){iPe.forEach(i=>{gm(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){rPe.forEach(i=>{gm(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(ns(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(ns(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function MU(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Hn(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ZC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var i_=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(i_||(i_={})),i_))();let sPe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new fn,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ot,this.shown=new fn,this.hidden=new fn}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":mm(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=ZC(pa(this._zone,e,()=>e.classList.remove("show"),i),pa(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};ZC(pa(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Iv(o),o.classList.add("show")},e),pa(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Va(e,"keydown").pipe(ns(this._closed$),ps(r=>r.which===jr.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(i_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Va(this._dialogEl.nativeElement,"mousedown").pipe(ns(this._closed$),ms(()=>i=!1),bc(()=>Va(e,"mouseup").pipe(ns(this._closed$),ua(1))),ps(({target:r})=>e===r)).subscribe(()=>{i=!0}),Va(e,"click").pipe(ns(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(i_.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=KU(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&pa(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(ge(vo),ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&wo(HIe,7),2&e){let r;Tn(r=En())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ft("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Au("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Vn("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Df(),_(0,"div",0,1)(2,"div",2),Tf(3),x()()),2&e&&Au("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),aPe=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(e>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=o}}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lPe=(()=>{class t{constructor(e,i,r,o,s,a,l){this._applicationRef=e,this._injector=i,this._environmentInjector=r,this._document=o,this._scrollBar=s,this._rendererFactory=a,this._ngZone=l,this._activeWindowCmptHasChanged=new fn,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ot,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Va(n,"focusin").pipe(ns(e),$t(o=>o.target));Va(n,"keydown").pipe(ns(e),ps(o=>o.which===jr.Tab),Z3(r)).subscribe(([o,s])=>{const[a,l]=KU(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Va(n,"click").pipe(ns(e),Z3(r),$t(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const o=r.container instanceof HTMLElement?r.container:gm(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new dz,l=(e=r.injector||e).get(Gc,null)||this._environmentInjector,c=this._getContentRef(e,l,i,a,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,c.nodes),h=new oPe(d,c,u,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(ua(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{h.close(f)},a.dismiss=f=>{h.dismiss(f)},a.update=f=>{h.update(f)},h.update(r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=qA(nPe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=qA(sPe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,o,s){return r?r instanceof fo?this._createFromTemplateRef(r,o):mm(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new Cm([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new Cm([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Cm([[i]])}_createFromComponent(e,i,r,o,s){const l=qA(r,{environmentInjector:i,elementInjector:Ca.create({providers:[{provide:dz,useValue:o}],parent:e})}),c=l.location.nativeElement;return s.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new Cm([[c]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(wt(jh),wt(Ca),wt(Gc),wt(vo),wt(aPe),wt(Wg),wt(ur))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m2=(()=>{class t{constructor(e,i,r){this._injector=e,this._modalStack=i,this._config=r}open(e,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(wt(Ca),wt(lPe),wt(cPe))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[m2]}),t})(),uPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fz=t=>gm(t)&&""!==t;let dPe=0,pz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbNavContent",""]],standalone:!0}),t})(),Xh=(()=>{class t{constructor(e,i){this._nav=e,this.elementRef=i,this.disabled=!1,this.shown=new ot,this.hidden=new ot}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){gm(this.domId)||(this.domId="ngb-nav-"+dPe++)}get active(){return this._nav.activeId===this.id}get id(){return fz(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(gm(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>zd)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,pz,4),2&e){let o;Tn(o=En())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0}),t})(),zd=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new ot,this.shown=new ot,this.hidden=new ot,this.destroy$=new fn,this.navItemChange$=new fn,this.navChange=new ot,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case jr.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case jr.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case jr.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case jr.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case jr.Home:s=0;break;case jr.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!gm(this.activeId)){const e=this.items.first?this.items.first.id:null;fz(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(ns(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(kf("role"),ge(uPe),ge($s),ge(vo))},t.\u0275dir=un({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Xh,4),Ti(r,Kf,5)),2&e){let o;Tn(o=En())&&(i.items=o),Tn(o=En())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&ke("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ft("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Vn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[ei]}),t})(),Kf=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(kf("role"),ge(Xh),ge(zd),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(e,i){2&e&&(ql("id",i.navItem.domId),ft("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Vn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))},standalone:!0}),t})(),r_=(()=>{class t{constructor(e,i){this.navItem=e,this.nav=i}}return t.\u0275fac=function(e){return new(e||t)(ge(Xh),ge(zd))},t.\u0275dir=un({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(e,i){1&e&&ke("click",function(o){return i.nav.click(i.navItem),o.preventDefault()})},standalone:!0,features:[G1([Kf])]}),t})();const pPe=({classList:t})=>(t.remove("show"),()=>t.remove("active")),mPe=(t,n)=>{n&&Iv(t),t.classList.add("show")};let EO=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,i){2&e&&(ql("id",i.item.panelDomId),ft("role",i.role?i.role:i.nav.roles?"tabpanel":void 0)("aria-labelledby",i.item.domId),Vn("fade",i.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0}),t})(),mz=(()=>{class t{constructor(e,i){this._cd=e,this._ngZone=i,this._activePane=null}isPanelTransitioning(e){return this._activePane?.item===e}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ns(this.nav.destroy$),aC(this._activePane?.item||null),QC(),function X3e(t){return n=>n.lift(new J3e(t))}(1)).subscribe(e=>{const i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?pa(this._ngZone,this._activePane.elRef.nativeElement,pPe,i).subscribe(()=>{const r=this._activePane?.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),pa(this._ngZone,this._activePane.elRef.nativeElement,mPe,i).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.elRef.nativeElement.classList.add("show"),this._activePane?.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(ge($s),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,i){if(1&e&&wo(EO,5),2&e){let r;Tn(r=En())&&(i._panes=r)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},standalone:!0,features:[Bs],attrs:UIe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&te(0,WIe,1,1,"ng-template",0),2&e&&S("ngForOf",i.nav.items)},dependencies:[EO,Un,xn,Fu],encapsulation:2,changeDetection:0}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[mz]}),t})(),gPe=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]],standalone:!0}),t})(),yz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationFirst",""]],standalone:!0}),t})(),_z=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationLast",""]],standalone:!0}),t})(),bz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationNext",""]],standalone:!0}),t})(),xz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationNumber",""]],standalone:!0}),t})(),wz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]],standalone:!0}),t})(),Cz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationPages",""]],standalone:!0}),t})(),Sz=(()=>{class t{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new ot(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),i0&&this.pageCount>this.maxSize){let i=0,r=this.pageCount;[i,r]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(i,r),this._applyEllipses(i,r)}}}return t.\u0275fac=function(e){return new(e||t)(ge(gPe))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-pagination"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,vz,5),Ti(r,yz,5),Ti(r,_z,5),Ti(r,bz,5),Ti(r,xz,5),Ti(r,wz,5),Ti(r,Cz,5)),2&e){let o;Tn(o=En())&&(i.tplEllipsis=o.first),Tn(o=En())&&(i.tplFirst=o.first),Tn(o=En())&&(i.tplLast=o.first),Tn(o=En())&&(i.tplNext=o.first),Tn(o=En())&&(i.tplNumber=o.first),Tn(o=En())&&(i.tplPrevious=o.first),Tn(o=En())&&(i.tplPages=o.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},standalone:!0,features:[ei,Bs],decls:20,vars:12,consts:function(){let n,e,i,r,o,s,a,l;return n=$localize`:@@ngb.pagination.first:««`,e=$localize`:@@ngb.pagination.previous:«`,i=$localize`:@@ngb.pagination.next:»`,r=$localize`:@@ngb.pagination.last:»»`,o=$localize`:@@ngb.pagination.first-aria:First`,s=$localize`:@@ngb.pagination.previous-aria:Previous`,a=$localize`:@@ngb.pagination.next-aria:Next`,l=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],n,e,i,r,["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"],["aria-label",l,"href","",1,"page-link",3,"click"]]},template:function(e,i){if(1&e&&(te(0,qIe,2,0,"ng-template",null,0,Xo),te(2,YIe,2,0,"ng-template",null,1,Xo),te(4,XIe,2,0,"ng-template",null,2,Xo),te(6,JIe,2,0,"ng-template",null,3,Xo),te(8,KIe,1,0,"ng-template",null,4,Xo),te(10,QIe,1,1,"ng-template",null,5,Xo),te(12,sNe,1,1,"ng-template",null,6,Xo),_(14,"ul"),te(15,lNe,3,9,"li",7),te(16,dNe,3,8,"li",7),te(17,hNe,0,0,"ng-template",8),te(18,pNe,3,9,"li",7),te(19,gNe,3,9,"li",7),x()),2&e){const r=sa(13);w(14),Au("pagination"+(i.size?" pagination-"+i.size:"")),w(1),S("ngIf",i.boundaryLinks),w(1),S("ngIf",i.directionLinks),w(1),S("ngTemplateOutlet",(null==i.tplPages?null:i.tplPages.templateRef)||r)("ngTemplateOutletContext",ty(8,vNe,i.page,i.pages,i.disabled)),w(1),S("ngIf",i.directionLinks),w(1),S("ngIf",i.boundaryLinks)}},dependencies:[xn,Un,Fu],encapsulation:2,changeDetection:0}),t})(),kz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Sz]}),t})();class vPe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const yPe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Dz=t=>t>0?eO(t):n=>n;let Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),CPe=(()=>{class t{constructor(){this.max=100,this.animated=!1,this.ariaLabel="progress bar",this.striped=!1,this.showValue=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SPe=(()=>{class t{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.ariaLabel=e.ariaLabel,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!gs(e)||e<=0?100:e}get max(){return this._max}getValue(){return r2(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}}return t.\u0275fac=function(e){return new(e||t)(ge(CPe))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:5,hostBindings:function(e,i){2&e&&(ft("aria-valuenow",i.getValue())("aria-valuemax",i.max)("aria-label",i.ariaLabel),cr("height",i.height))},inputs:{max:"max",animated:"animated",ariaLabel:"ariaLabel",striped:"striped",showValue:"showValue",textType:"textType",type:"type",value:"value",height:"height"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:3,vars:11,consts:function(){let n;return n=$localize`:@@ngb.progressbar.value:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[4,"ngIf"],n]},template:function(e,i){1&e&&(Df(),_(0,"div"),te(1,bNe,3,3,"span",0),Tf(2),x()),2&e&&(function z6(t,n,e,i,r){Ou(pc,Rd,Zg(Xt(),t,n,e,i,r),!0)}("progress-bar",i.type?i.textType?" bg-"+i.type:" text-bg-"+i.type:"","",i.textType?" text-"+i.textType:"",""),cr("width",i.getPercentValue(),"%"),Vn("progress-bar-animated",i.animated)("progress-bar-striped",i.striped),w(1),S("ngIf",i.showValue))},dependencies:[xn,m7],encapsulation:2,changeDetection:0}),t})(),Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[SPe]}),t})(),kPe=(()=>{class t{constructor(){this.max=10,this.readonly=!1,this.resettable=!1,this.tabindex=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DPe=(()=>{class t{constructor(e,i){this._changeDetectorRef=i,this.contexts=[],this.disabled=!1,this.hover=new ot,this.leave=new ot,this.rateChange=new ot(!0),this.onChange=r=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly,this.tabindex=e.tabindex}ariaValueText(e,i){return`${e} out of ${i}`}isInteractive(){return!this.readonly&&!this.disabled}enter(e){this.isInteractive()&&this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.isInteractive()&&this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case jr.ArrowDown:case jr.ArrowLeft:this.update(this.rate-1);break;case jr.ArrowUp:case jr.ArrowRight:this.update(this.rate+1);break;case jr.Home:this.update(0);break;case jr.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate),e.max&&this._updateMax()}ngOnInit(){this._setupContexts(),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,i=!0){const r=r2(e,this.max,0);this.isInteractive()&&this.rate!==r&&(this.rate=r,this.rateChange.emit(this.rate)),i&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_updateState(e){this.nextRate=e,this.contexts.forEach((i,r)=>i.fill=Math.round(100*r2(e-r,1,0)))}_updateMax(){this.max>0&&(this._setupContexts(),this.update(this.rate))}_setupContexts(){this.contexts=Array.from({length:this.max},(e,i)=>({fill:0,index:i}))}}return t.\u0275fac=function(e){return new(e||t)(ge(kPe),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-rating"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,fo,5),2&e){let o;Tn(o=En())&&(i.starTemplateFromContent=o.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,i){1&e&&ke("blur",function(){return i.handleBlur()})("keydown",function(o){return i.handleKeyDown(o)})("mouseleave",function(){return i.reset()}),2&e&&(ql("tabindex",i.disabled?-1:i.tabindex),ft("aria-valuemax",i.max)("aria-valuenow",i.nextRate)("aria-valuetext",i.ariaValueText(i.nextRate,i.max))("aria-disabled",!!i.readonly||null))},inputs:{max:"max",rate:"rate",readonly:"readonly",resettable:"resettable",starTemplate:"starTemplate",tabindex:"tabindex",ariaValueText:"ariaValueText"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0}]),ei,Bs],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"visually-hidden"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(te(0,xNe,1,1,"ng-template",null,0,Xo),te(2,CNe,4,5,"ng-template",1)),2&e&&(w(2),S("ngForOf",i.contexts))},dependencies:[Un,Fu],encapsulation:2,changeDetection:0}),t})(),Az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[DPe]}),t})();class Mz{constructor(n,e,i){this.hour=Ha(n),this.minute=Ha(e),this.second=Ha(i)}changeHour(n=1){this.updateHour((isNaN(this.hour)?0:this.hour)+n)}updateHour(n){this.hour=gs(n)?(n<0?24+n:n)%24:NaN}changeMinute(n=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+n)}updateMinute(n){gs(n)?(this.minute=n%60<0?60+n%60:n%60,this.changeHour(Math.floor(n/60))):this.minute=NaN}changeSecond(n=1){this.updateSecond((isNaN(this.second)?0:this.second)+n)}updateSecond(n){gs(n)?(this.second=n<0?60+n%60:n%60,this.changeMinute(Math.floor(n/60))):this.second=NaN}isValid(n=!0){return gs(this.hour)&&gs(this.minute)&&(!n||gs(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let TPe=(()=>{class t{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function EPe(){return new APe}()},providedIn:"root"}),t})(),APe=(()=>{class t extends Oz{fromModel(e){return e&&is(e.hour)&&is(e.minute)?{hour:e.hour,minute:e.minute,second:is(e.second)?e.second:null}:null}toModel(e){return e&&is(e.hour)&&is(e.minute)?{hour:e.hour,minute:e.minute,second:is(e.second)?e.second:null}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),Iz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function MPe(t){return new OPe(t)}(wt(vc)),i},providedIn:"root"}),t})(),OPe=(()=>{class t extends Iz{constructor(e){super(),this._periods=X$(e,Vo.Standalone,Yi.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return t.\u0275fac=function(e){return new(e||t)(wt(vc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const IPe=/[^0-9]/g;let NPe=(()=>{class t{constructor(e,i,r,o){this._config=e,this._ngbTimeAdapter=i,this._cd=r,this.i18n=o,this.onChange=s=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=is(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=is(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=is(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const i=this._ngbTimeAdapter.fromModel(e);this.model=i?new Mz(i.hour,i.minute,i.second):new Mz,!this.seconds&&(!i||!gs(i.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model?.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model?.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model?.changeSecond(e),this.propagateModelChange()}updateHour(e){const i=!!this.model&&this.model.hour>=12,r=Ha(e);this.model?.updateHour(this.meridian&&(i&&r<12||!i&&12===r)?r+12:r),this.propagateModelChange()}updateMinute(e){this.model?.updateMinute(Ha(e)),this.propagateModelChange()}updateSecond(e){this.model?.updateSecond(Ha(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(IPe,"")}formatHour(e){return gs(e)?Ov(this.meridian?e%12==0?12:e%12:e%24):Ov(NaN)}formatMinSec(e){return Ov(gs(e)?e:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!gs(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model?.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return t.\u0275fac=function(e){return new(e||t)(ge(TPe),ge(Oz),ge($s),ge(Iz))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},exportAs:["ngbTimepicker"],standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0}]),ei,Bs],decls:16,vars:25,consts:function(){let n,e,i,r,o,s,a,l,c,u,d,h,f,p;return n=$localize`:@@ngb.timepicker.HH:HH`,e=$localize`:@@ngb.timepicker.hours:Hours`,i=$localize`:@@ngb.timepicker.MM:MM`,r=$localize`:@@ngb.timepicker.minutes:Minutes`,o=$localize`:@@ngb.timepicker.increment-hours:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hours:Decrement hours`,a=$localize`:@@ngb.timepicker.increment-minutes:Increment minutes`,l=$localize`:@@ngb.timepicker.decrement-minutes:Decrement minutes`,c=$localize`:@@ngb.timepicker.SS:SS`,u=$localize`:@@ngb.timepicker.seconds:Seconds`,d=$localize`:@@ngb.timepicker.increment-seconds:Increment seconds`,h=$localize`:@@ngb.timepicker.decrement-seconds:Decrement seconds`,f=$localize`:@@ngb.timepicker.PM:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AM:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",i,"aria-label",r,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"visually-hidden"],o,[1,"chevron","ngb-tp-chevron","bottom"],s,a,l,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",c,"aria-label",u,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],d,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],f,p]},template:function(e,i){1&e&&(_(0,"fieldset",0)(1,"div",1)(2,"div",2),te(3,SNe,4,7,"button",3),_(4,"input",4),ke("change",function(o){return i.updateHour(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeHour(i.hourStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeHour(-i.hourStep),o.preventDefault()}),x(),te(5,kNe,4,7,"button",3),x(),_(6,"div",5),O(7,":"),x(),_(8,"div",6),te(9,DNe,4,7,"button",3),_(10,"input",7),ke("change",function(o){return i.updateMinute(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeMinute(i.minuteStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeMinute(-i.minuteStep),o.preventDefault()}),x(),te(11,TNe,4,7,"button",3),x(),te(12,ENe,2,0,"div",8),te(13,ONe,4,9,"div",9),te(14,INe,1,0,"div",8),te(15,PNe,5,9,"div",10),x()()),2&e&&(Vn("disabled",i.disabled),S("disabled",i.disabled),w(3),S("ngIf",i.spinners),w(1),Vn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatHour(null==i.model?null:i.model.hour))("readOnly",i.readonlyInputs)("disabled",i.disabled),w(1),S("ngIf",i.spinners),w(4),S("ngIf",i.spinners),w(1),Vn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatMinSec(null==i.model?null:i.model.minute))("readOnly",i.readonlyInputs)("disabled",i.disabled),w(1),S("ngIf",i.spinners),w(1),S("ngIf",i.seconds),w(1),S("ngIf",i.seconds),w(1),S("ngIf",i.meridian),w(1),S("ngIf",i.meridian))},dependencies:[xn],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n'],encapsulation:2}),t})(),Nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[NPe]}),t})();const FPe=(t,n)=>{const{classList:e}=t;if(n)return e.add("fade"),Iv(t),e.add("show","showing"),()=>{e.remove("showing")};e.add("show")},PPe=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")});let RPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["","ngbToastHeader",""]],standalone:!0}),t})(),LPe=(()=>{class t{constructor(e,i,r,o){this.ariaLive=e,this._zone=r,this._element=o,this.contentHeaderTpl=null,this.shown=new ot,this.hidden=new ot,null==this.ariaLive&&(this.ariaLive=i.ariaLive),this.delay=i.delay,this.autohide=i.autohide,this.animation=i.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const e=pa(this._zone,this._element.nativeElement,PPe,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){const e=pa(this._zone,this._element.nativeElement,FPe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}return t.\u0275fac=function(e){return new(e||t)(kf("aria-live"),ge(RPe),ge(ur),ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-toast"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,jPe,7,fo),2&e){let o;Tn(o=En())&&(i.contentHeaderTpl=o.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(e,i){2&e&&(ft("aria-live",i.ariaLive),Vn("fade",i.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[ei,Bs],ngContentSelectors:Qy,decls:5,vars:1,consts:function(){let n;return n=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Df(),te(0,RNe,2,1,"ng-template",null,0,Xo),te(2,LNe,3,1,"ng-template",1),_(3,"div",2),Tf(4),x()),2&e&&(w(2),S("ngIf",i.contentHeaderTpl||i.header))},dependencies:[xn,Fu],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2}),t})(),Fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[LPe]}),t})(),BPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$Pe=0,VPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(e,i){2&e&&(ql("id",i.id),Au("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Vn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Df(),xe(0,"div",0),_(1,"div",1),Tf(2),x())},encapsulation:2,changeDetection:0}),t})(),HPe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u){this._elementRef=e,this._renderer=i,this._ngZone=a,this._document=l,this._changeDetector=c,this.shown=new ot,this.hidden=new ot,this._ngbTooltipWindowId="ngb-tooltip-"+$Pe++,this._windowRef=null,this.animation=s.animation,this.autoClose=s.autoClose,this.placement=s.placement,this.popperOptions=s.popperOptions,this.triggers=s.triggers,this.container=s.container,this.disableTooltip=s.disableTooltip,this.tooltipClass=s.tooltipClass,this.openDelay=s.openDelay,this.closeDelay=s.closeDelay,this._popupService=new tPe(VPe,r,o,i,this._ngZone,u),this._positioning=SO()}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:o=>this.popperOptions(o)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),CO(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(e=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(e).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function wPe(t,n,e,i,r,o,s=0,a=0){const l=function _Pe(t,n=yPe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new vPe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function bPe(t,n,e,i){return new Wt(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function xPe(t,n,e){return i=>{let r=null;const o=i.pipe($t(l=>({open:l})),ps(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),Je());return Mt(o.pipe(ps(l=>l.open),Dz(t)),o.pipe(ps(l=>!l.open),Dz(n))).pipe(ps(l=>l===r&&(r=null,l.open!==e())),$t(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(mm(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(Ca),ge(Yl),ge(BPe),ge(ur),ge(vo),ge($s),ge(jh))},t.\u0275dir=un({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[ei]}),t})(),Pz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),UPe=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const i=AU(this.result),r=Array.isArray(this.term)?this.term:[this.term],o=c=>this.accentSensitive?c:IU(c),s=r.map(c=>function zNe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(o(AU(c)))).filter(c=>c),a=this.accentSensitive?i:IU(i),l=s.length?a.split(new RegExp(`(${s.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=l;else{let c=0;this.parts=l.map(u=>i.substring(c,c+=u.length))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[ei,Bs],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,i){1&e&&te(0,VNe,3,2,"ng-template",0),2&e&&S("ngForOf",i.parts)},dependencies:[xn,Un],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0}),t})();new Yn("live announcer delay",{providedIn:"root",factory:function zPe(){return 100}});let Rz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[UPe]}),t})(),jz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();const GPe=[VU,HU,zU,GU,cz,uz,hz,gz,jz,kz,Tz,Ez,Az,Nz,Fz,Pz,Rz];let WPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[GPe,VU,HU,zU,GU,cz,uz,hz,gz,jz,kz,Tz,Ez,Az,Nz,Fz,Pz,Rz]}),t})(),Lz=(()=>{class t{restrictedPages=new Map([["users",ri.USER_ROLE_ADMIN],["config",ri.USER_ROLE_DEVELOPER],["modules",ri.USER_ROLE_DEVELOPER],["apiexplorer",ri.USER_ROLE_DEVELOPER]]);static \u0275fac=function(i){return new(i||t)};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qPe(t,n){if(1&t&&(Cl(0,5),_(1,"a",31),xe(2,"img",32),_(3,"span",12),O(4),x()(),Sl()),2&t){const e=L().$implicit;S("ngbNavItem",e.navItem),w(1),S("routerLink",e.routerLink),w(1),em("src","/static/svg/",e.icon,".svg",B1),w(2),bt(e.label)}}function YPe(t,n){if(1&t&&te(0,qPe,5,4,"ng-container",24),2&t){const e=n.$implicit;S("ngIf",L().getSessionRole()<=e.minRole)}}const XPe=function(){return["/settings/mfa"]};function JPe(t,n){1&t&&(Cl(0,5),_(1,"a",31),xe(2,"img",33),_(3,"span",12),O(4,"MFA Setup"),x()(),Sl()),2&t&&(S("ngbNavItem","mfasetup"),w(1),S("routerLink",cl(2,XPe)))}function KPe(t,n){if(1&t&&(_(0,"div",34)(1,"h2",35),xe(2,"img",36),O(3,"An error has occurred!"),x(),_(4,"h6",37),O(5),x(),_(6,"p"),O(7,"Please refresh the page to try again."),x()()),2&t){const e=L();w(5),bt(e.error)}}function QPe(t,n){1&t&&(_(0,"div",38),xe(1,"img",39),x())}function ZPe(t,n){1&t&&xe(0,"router-outlet")}const e4e=function(){return["/"]},t4e=function(){return["/login"]};let n4e=(()=>{class t{route;router;segment;authService;UserRole=ri;routerSub;segmentRouterSub;loading=!0;error="";routes=[{navItem:"status",routerLink:["/status"],label:"Status",minRole:ri.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:ri.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:ri.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:ri.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:ri.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:ri.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:ri.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:ri.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:ri.USER_ROLE_READONLY,icon:"chat"},{navItem:"purchases",routerLink:["/purchases"],label:"Purchases",minRole:ri.USER_ROLE_READONLY,icon:""},{navItem:"subscriptions",routerLink:["/subscriptions"],label:"Subscriptions",minRole:ri.USER_ROLE_READONLY,icon:""},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:ri.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:ri.USER_ROLE_DEVELOPER,icon:"api-explorer"}];constructor(e,i,r,o){this.route=e,this.router=i,this.segment=r,this.authService=o,this.loading=!1,this.routerSub=this.router.events.pipe(function C3e(t){let n=arguments.length,e=KC;fi(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new S3e(t,i,r,e))}}(2e3)).subscribe(s=>{if(0===s.length)return;const a=s[s.length-1];a instanceof gC&&(this.loading=!0),a instanceof Gh&&(this.loading=!1),a instanceof ky&&(this.loading=!1),a instanceof yC&&(this.loading=!1,this.error=a.error)}),this.segmentRouterSub=i.events.pipe(QC((s,a)=>!(a instanceof Gh)||s.url===a.url)).subscribe(s=>{})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}isMfaEnabled(){return!this.authService.session?.mfa_code}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(zC),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:50,vars:12,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","http://heroiclabs.com/cloud?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Heroic%20Cloud%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/hiro/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Hiro%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/hiro.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/satori/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Satori%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/satori.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/docs/nakama/getting-started/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Documentation%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Blog%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],["src","/static/svg/configuration.svg","alt","","width","24","height","",1,"mr-1"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1)(2,"nav",2,3),ke("navChange",function(s){return r.onSidebarNavChange(s)}),_(4,"div",4),Cl(5,5),_(6,"a",6),xe(7,"img",7)(8,"img",8),x(),Sl(),xe(9,"hr"),te(10,YPe,1,1,"ng-template",9),xe(11,"hr"),_(12,"a",10),xe(13,"img",11),_(14,"span",12),O(15,"Heroic Cloud"),x()(),_(16,"a",13),xe(17,"img",14),_(18,"span",12),O(19,"Hiro"),x()(),_(20,"a",15),xe(21,"img",16),_(22,"span",12),O(23,"Satori"),x()(),xe(24,"hr"),_(25,"a",17),xe(26,"img",18),_(27,"span",12),O(28,"Documentation"),x()(),_(29,"a",19),xe(30,"img",20),_(31,"span",12),O(32,"Forum"),x()(),_(33,"a",21),xe(34,"img",22),_(35,"span",12),O(36,"Heroic Labs Blog"),x()(),xe(37,"hr"),_(38,"div",23),O(39),x(),te(40,JPe,5,3,"ng-container",24),Cl(41,5),_(42,"a",25),ke("click",function(){return r.logout()}),xe(43,"img",26),_(44,"span",12),O(45,"Logout"),x()(),Sl(),x()(),_(46,"main",27),te(47,KPe,8,1,"div",28),te(48,QPe,2,0,"div",29),te(49,ZPe,1,0,"router-outlet",30),x()()()),2&i&&(w(5),S("ngbNavItem","logo"),w(1),S("routerLink",cl(10,e4e)),w(4),S("ngForOf",r.routes),w(29),bn("Logged in as: ",r.getUsername(),""),w(1),S("ngIf",!r.isMfaEnabled()),w(1),S("ngbNavItem","logout"),w(1),S("routerLink",cl(11,t4e)),w(5),S("ngIf",r.error),w(1),S("ngIf",!r.error&&r.loading),w(1),S("ngIf",!r.error&&!r.loading))},dependencies:[Vf,Ru,Ny,Un,xn,zd,Xh,r_,Kf],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px;color:#fff}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})}return t})(),i4e=(()=>{class t{authService;router;globals;constructor(e,i,r){this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ca.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class l4e extends a4e{}"function"==typeof SuppressedError&&SuppressedError;class N4e{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new F4e(n,this.dueTime,this.scheduler))}}class F4e extends I{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P4e,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function P4e(t){t.debouncedNext()}function R4e(){}function FO(t){return null==t?R4e:function(){return this.querySelector(t)}}function L4e(){return[]}function Hz(t){return null==t?L4e:function(){return this.querySelectorAll(t)}}function Uz(t){return function(){return this.matches(t)}}function zz(t){return new Array(t.length)}function g2(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}g2.prototype={constructor:g2,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Gz="$";function U4e(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var PO="http://www.w3.org/1999/xhtml";const Wz={svg:"http://www.w3.org/2000/svg",xhtml:PO,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function v2(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Wz.hasOwnProperty(n)?{space:Wz[n],local:t}:t}function rRe(t){return function(){this.removeAttribute(t)}}function oRe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function sRe(t,n){return function(){this.setAttribute(t,n)}}function aRe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function lRe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function cRe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function qz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function dRe(t){return function(){this.style.removeProperty(t)}}function hRe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function fRe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function Rv(t,n){return t.style.getPropertyValue(n)||qz(t).getComputedStyle(t,null).getPropertyValue(n)}function mRe(t){return function(){delete this[t]}}function gRe(t,n){return function(){this[t]=n}}function vRe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Yz(t){return t.trim().split(/^|\s+/)}function RO(t){return t.classList||new Xz(t)}function Xz(t){this._node=t,this._names=Yz(t.getAttribute("class")||"")}function Jz(t,n){for(var e=RO(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Zz={},Ur=null;function qRe(t,n,e){return t=eG(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function eG(t,n,e){return function(i){var r=Ur;Ur=i;try{t.call(this,this.__data__,n,e)}finally{Ur=r}}}function XRe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=b&&(b=y+1);!(D=g[b])&&++b=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function J4e(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=K4e);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?dRe:"function"==typeof n?fRe:hRe)(t,n,e??"")):Rv(this.node(),t)},property:function yRe(t,n){return arguments.length>1?this.each((null==n?mRe:"function"==typeof n?vRe:gRe)(t,n)):this.node()[t]},classed:function wRe(t,n){var e=Yz(t+"");if(arguments.length<2){for(var i=RO(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?JRe:XRe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?b2(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?b2(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=lje.exec(t))?new Dc(n[1],n[2],n[3],1):(n=cje.exec(t))?new Dc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=uje.exec(t))?b2(n[1],n[2],n[3],n[4]):(n=dje.exec(t))?b2(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=hje.exec(t))?pG(n[1],n[2]/100,n[3]/100,1):(n=fje.exec(t))?pG(n[1],n[2]/100,n[3]/100,n[4]):lG.hasOwnProperty(t)?dG(lG[t]):"transparent"===t?new Dc(NaN,NaN,NaN,0):null}function dG(t){return new Dc(t>>16&255,t>>8&255,255&t,1)}function b2(t,n,e,i){return i<=0&&(t=n=e=NaN),new Dc(t,n,e,i)}function u_(t,n,e,i){return 1===arguments.length?function mje(t){return t instanceof a_||(t=Sm(t)),t?new Dc((t=t.rgb()).r,t.g,t.b,t.opacity):new Dc}(t):new Dc(t,n,e,i??1)}function Dc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function hG(){return"#"+BO(this.r)+BO(this.g)+BO(this.b)}function fG(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function BO(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function pG(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Wd(t,n,e,i)}function mG(t){if(t instanceof Wd)return new Wd(t.h,t.s,t.l,t.opacity);if(t instanceof a_||(t=Sm(t)),!t)return new Wd;if(t instanceof Wd)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Wd(s,a,l,t.opacity)}function Wd(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function $O(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function gG(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function VO(t){return function(){return t}}function yG(t,n){var e=n-t;return e?function vG(t,n){return function(e){return t+e*n}}(t,e):VO(isNaN(t)?n:t)}LO(a_,Sm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:cG,formatHex:cG,formatHsl:function pje(){return mG(this).formatHsl()},formatRgb:uG,toString:uG}),LO(Dc,u_,aG(a_,{brighter:function(t){return t=null==t?_2:Math.pow(_2,t),new Dc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Dc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hG,formatHex:hG,formatRgb:fG,toString:fG})),LO(Wd,function gje(t,n,e,i){return 1===arguments.length?mG(t):new Wd(t,n,e,i??1)},aG(a_,{brighter:function(t){return t=null==t?_2:Math.pow(_2,t),new Wd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Wd(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new Dc($O(t>=240?t-240:t+120,r,i),$O(t,r,i),$O(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const x2=function t(n){var e=function bje(t){return 1==(t=+t)?yG:function(n,e){return e-n?function _je(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):VO(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=u_(r)).r,(o=u_(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=yG(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function _G(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return gG((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Uu(i,r)})),e=UO.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--Lv}()}finally{Lv=0,function Ije(){for(var t,e,n=w2,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:w2=e);f_=t,zO(i)}(),Dm=0}}function Oje(){var t=p_.now(),n=t-C2;n>SG&&(S2-=n,C2=t)}function zO(t){Lv||(d_&&(d_=clearTimeout(d_)),t-Dm>24?(t<1/0&&(d_=setTimeout(TG,t-p_.now()-S2)),h_&&(h_=clearInterval(h_))):(h_||(C2=p_.now(),h_=setInterval(Oje,SG)),Lv=1,kG(TG)))}function EG(t,n,e){var i=new D2;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}D2.prototype=DG.prototype={constructor:D2,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?k2():+e)+(null==n?0:+n),!this._next&&f_!==this&&(f_?f_._next=this:w2=this,f_=this),this._call=t,this._time=e,zO()},stop:function(){this._call&&(this._call=null,this._time=1/0,zO())}};var Nje=sG("start","end","cancel","interrupt"),Fje=[],AG=0,MG=1,GO=2,T2=3,OG=4,WO=5,E2=6;function A2(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function Pje(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==MG)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===T2)return EG(s);f.state===OG?(f.state=E2,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uAG)throw new Error("too late; already scheduled");return e}function Jh(t,n){var e=zu(t,n);if(e.state>T2)throw new Error("too late; already running");return e}function zu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function YO(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>GO&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Uu(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Uu(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Uu(c,d)},{i:m-2,x:Uu(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?qO:Jh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function Jje(t,n){var e=v2(t),i="transform"===e?$je:RG;return this.attrTween(t,"function"==typeof n?(e.local?Xje:Yje)(e,i,KO(this,"attr."+t,n)):null==n?(e.local?Gje:zje)(e):(e.local?qje:Wje)(e,i,n))},attrTween:function tLe(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=v2(t);return this.tween(e,(i.local?Zje:eLe)(i,n))},style:function kLe(t,n,e){var i="transform"==(t+="")?Bje:RG;return null==n?this.styleTween(t,function xLe(t,n){var e,i,r;return function(){var o=Rv(this,t),s=(this.style.removeProperty(t),Rv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,jG(t)):"function"==typeof n?this.styleTween(t,function CLe(t,n,e){var i,r,o;return function(){var s=Rv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=Rv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,KO(this,"style."+t,n))).each(function SLe(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Jh(this,t),c=l.on,u=null==l.value[o]?a||(a=jG(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function wLe(t,n,e){var i,o,r=e+"";return function(){var s=Rv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function ELe(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function TLe(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function DLe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function OLe(t){return this.tween("text","function"==typeof t?function MLe(t){return function(){var n=t(this);this.textContent=n??""}}(KO(this,"text",t)):function ALe(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function FLe(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function NLe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function ILe(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function gLe(){return this.on("end.remove",function mLe(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function Uje(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=zu(this.node(),e).tween,r=0,o=i.length;r0&&(j=U-N),C<0?pe=A-F:C>0&&(X=oe-F),y=tI,$.attr("cursor",Qh.selection),Re());break;default:return}eI()},!0).on("keyup.brush",function Ct(){switch(Ur.keyCode){case 16:V&&(ce=ve=V=!1,Re());break;case 18:y===Vv&&(b<0?W=J:b>0&&(j=U),C<0?pe=A:C>0&&(X=oe),y=$v,Re());break;case 32:y===tI&&(Ur.altKey?(b&&(W=J-N*b,j=U+N*b),C&&(pe=A-F*C,X=oe+F*C),y=Vv):(b<0?W=J:b>0&&(j=U),C<0?pe=A:C>0&&(X=oe),y=$v),$.attr("cursor",Qh[v]),Re());break;default:return}eI()},!0),function oje(t){var n=t.document.documentElement,e=Sa(t).on("dragstart.drag",jO,!0);"onselectstart"in n?e.on("selectstart.drag",jO,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Ur.view)}BG(),YO(g),c.call(g),We.start()}function le(){var Ot=je(g);V&&!ce&&!ve&&(Math.abs(Ot[0]-et[0])>Math.abs(Ot[1]-et[1])?ve=!0:ce=!0),et=Ot,q=!0,eI(),Re()}function Re(){var Ot;switch(N=et[0]-Te[0],F=et[1]-Te[1],y){case tI:case $G:b&&(N=Math.max(z-j,Math.min(P-W,N)),U=j+N,J=W+N),C&&(F=Math.max(G-X,Math.min(H-pe,F)),oe=X+F,A=pe+F);break;case $v:b<0?(N=Math.max(z-j,Math.min(P-j,N)),U=j+N,J=W):b>0&&(N=Math.max(z-W,Math.min(P-W,N)),U=j,J=W+N),C<0?(F=Math.max(G-X,Math.min(H-X,F)),oe=X+F,A=pe):C>0&&(F=Math.max(G-pe,Math.min(H-pe,F)),oe=X,A=pe+F);break;case Vv:b&&(U=Math.max(z,Math.min(P,j-N*b)),J=Math.max(z,Math.min(P,W+N*b))),C&&(oe=Math.max(G,Math.min(H,X-F*C)),A=Math.max(G,Math.min(H,pe+F*C)))}Jn?1:t>=n?0:NaN}function sI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function ZLe(t){return(n,e)=>oI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var aI=Math.sqrt(50),lI=Math.sqrt(10),cI=Math.sqrt(2);function zG(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=aI?10:o>=lI?5:o>=cI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=aI?10:o>=lI?5:o>=cI?2:1)}function uI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=aI?r*=10:o>=lI?r*=5:o>=cI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return fI.setTime(+o),pI.setTime(+s),t(fI),t(pI),Math.floor(e(fI,pI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var N2=ka(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});N2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ka(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):N2:null};const t5e=N2;var WG=ka(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Zh)},function(t,n){return(n-t)/Zh},function(t){return t.getUTCSeconds()});const v_=WG;var qG=ka(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zh)},function(t,n){t.setTime(+t+n*Zc)},function(t,n){return(n-t)/Zc},function(t){return t.getMinutes()});const YG=qG;var XG=ka(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zh-t.getMinutes()*Zc)},function(t,n){t.setTime(+t+n*ef)},function(t,n){return(n-t)/ef},function(t){return t.getHours()});const JG=XG;var KG=ka(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zc)/Tm,t=>t.getDate()-1);const QG=KG;function Em(t){return ka(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Zc)/dI})}var mI=Em(0),ZG=(Em(1),Em(2),Em(3),Em(4),Em(5),Em(6),ka(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const eW=ZG;var gI=ka(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});gI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ka(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const tW=gI;var nW=ka(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Zc)},function(t,n){return(n-t)/Zc},function(t){return t.getUTCMinutes()});const l5e=nW;var iW=ka(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*ef)},function(t,n){return(n-t)/ef},function(t){return t.getUTCHours()});const c5e=iW;var rW=ka(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Tm},function(t){return t.getUTCDate()-1});const u5e=rW;function Am(t){return ka(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/dI})}var oW=Am(0),sW=(Am(1),Am(2),Am(3),Am(4),Am(5),Am(6),ka(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const v5e=sW;var vI=ka(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});vI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ka(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const y5e=vI;function aW(t,n,e,i,r,o){const s=[[v_,1,Zh],[v_,5,5*Zh],[v_,15,15*Zh],[v_,30,30*Zh],[o,1,Zc],[o,5,5*Zc],[o,15,15*Zc],[o,30,30*Zc],[r,1,ef],[r,3,3*ef],[r,6,6*ef],[r,12,12*ef],[i,1,Tm],[i,2,2*Tm],[e,1,dI],[n,1,GG],[n,3,3*GG],[t,1,hI]];function l(c,u,d){const h=Math.abs(u-c)/d,f=sI(([,,g])=>g).right(s,h);if(f===s.length)return t.every(uI(c/hI,u/hI,d));if(0===f)return t5e.every(Math.max(uI(c,u,d),1));const[p,m]=s[h/s[f-1][2]0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return yI.setTime(+o),_I.setTime(+s),t(yI),t(_I),Math.floor(e(yI,_I))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var lW=6e4,uW=6048e5;function Mm(t){return tf(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/uW})}var dW=Mm(0),F2=Mm(1),Hv=(Mm(2),Mm(3),Mm(4)),hW=(Mm(5),Mm(6),tf(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const fW=hW;function Om(t){return tf(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*lW)/uW})}var pW=Om(0),P2=Om(1),Uv=(Om(2),Om(3),Om(4)),mW=(Om(5),Om(6),tf(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*lW)/864e5},function(t){return t.getDate()-1}));const gW=mW;var bI=tf(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});bI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tf(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const y_=bI;var xI=tf(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});xI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tf(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const __=xI;function wI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function CI(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function b_(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var zv,OW,vW={"-":"",_:" ",0:"0"},Da=/^\s*\d+/,M5e=/^%/,O5e=/[\\^$*+?|[\]().{}]/g;function Yr(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function L5e(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function B5e(t,n,e){var i=Da.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function $5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function bW(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function V5e(t,n,e){var i=Da.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function xW(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function H5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function U5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function z5e(t,n,e){var i=Da.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function G5e(t,n,e){var i=Da.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function W5e(t,n,e){var i=M5e.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function q5e(t,n,e){var i=Da.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Y5e(t,n,e){var i=Da.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function wW(t,n){return Yr(t.getDate(),n,2)}function X5e(t,n){return Yr(t.getHours(),n,2)}function J5e(t,n){return Yr(t.getHours()%12||12,n,2)}function K5e(t,n){return Yr(1+gW.count(y_(t),t),n,3)}function CW(t,n){return Yr(t.getMilliseconds(),n,3)}function Q5e(t,n){return CW(t,n)+"000"}function Z5e(t,n){return Yr(t.getMonth()+1,n,2)}function e8e(t,n){return Yr(t.getMinutes(),n,2)}function t8e(t,n){return Yr(t.getSeconds(),n,2)}function n8e(t){var n=t.getDay();return 0===n?7:n}function i8e(t,n){return Yr(pW.count(y_(t)-1,t),n,2)}function SW(t){var n=t.getDay();return n>=4||0===n?Uv(t):Uv.ceil(t)}function r8e(t,n){return t=SW(t),Yr(Uv.count(y_(t),t)+(4===y_(t).getDay()),n,2)}function o8e(t){return t.getDay()}function s8e(t,n){return Yr(P2.count(y_(t)-1,t),n,2)}function a8e(t,n){return Yr(t.getFullYear()%100,n,2)}function l8e(t,n){return Yr((t=SW(t)).getFullYear()%100,n,2)}function c8e(t,n){return Yr(t.getFullYear()%1e4,n,4)}function u8e(t,n){var e=t.getDay();return Yr((t=e>=4||0===e?Uv(t):Uv.ceil(t)).getFullYear()%1e4,n,4)}function d8e(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Yr(n/60|0,"0",2)+Yr(n%60,"0",2)}function kW(t,n){return Yr(t.getUTCDate(),n,2)}function h8e(t,n){return Yr(t.getUTCHours(),n,2)}function f8e(t,n){return Yr(t.getUTCHours()%12||12,n,2)}function p8e(t,n){return Yr(1+fW.count(__(t),t),n,3)}function DW(t,n){return Yr(t.getUTCMilliseconds(),n,3)}function m8e(t,n){return DW(t,n)+"000"}function g8e(t,n){return Yr(t.getUTCMonth()+1,n,2)}function v8e(t,n){return Yr(t.getUTCMinutes(),n,2)}function y8e(t,n){return Yr(t.getUTCSeconds(),n,2)}function _8e(t){var n=t.getUTCDay();return 0===n?7:n}function b8e(t,n){return Yr(dW.count(__(t)-1,t),n,2)}function TW(t){var n=t.getUTCDay();return n>=4||0===n?Hv(t):Hv.ceil(t)}function x8e(t,n){return t=TW(t),Yr(Hv.count(__(t),t)+(4===__(t).getUTCDay()),n,2)}function w8e(t){return t.getUTCDay()}function C8e(t,n){return Yr(F2.count(__(t)-1,t),n,2)}function S8e(t,n){return Yr(t.getUTCFullYear()%100,n,2)}function k8e(t,n){return Yr((t=TW(t)).getUTCFullYear()%100,n,2)}function D8e(t,n){return Yr(t.getUTCFullYear()%1e4,n,4)}function T8e(t,n){var e=t.getUTCDay();return Yr((t=e>=4||0===e?Hv(t):Hv.ceil(t)).getUTCFullYear()%1e4,n,4)}function E8e(){return"+0000"}function EW(){return"%"}function AW(t){return+t}function MW(t){return Math.floor(+t/1e3)}function IW(t){return null===t?NaN:+t}!function I8e(t){zv=function A5e(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=x_(r),u=w_(r),d=x_(o),h=w_(o),f=x_(s),p=w_(s),m=x_(a),g=w_(a),v=x_(l),y=w_(l),b={a:function H(We){return s[We.getDay()]},A:function pe(We){return o[We.getDay()]},b:function A(We){return l[We.getMonth()]},B:function N(We){return a[We.getMonth()]},c:null,d:wW,e:wW,f:Q5e,g:l8e,G:u8e,H:X5e,I:J5e,j:K5e,L:CW,m:Z5e,M:e8e,p:function F(We){return r[+(We.getHours()>=12)]},q:function q(We){return 1+~~(We.getMonth()/3)},Q:AW,s:MW,S:t8e,u:n8e,U:i8e,V:r8e,w:o8e,W:s8e,x:null,X:null,y:a8e,Y:c8e,Z:d8e,"%":EW},C={a:function V(We){return s[We.getUTCDay()]},A:function ce(We){return o[We.getUTCDay()]},b:function ve(We){return l[We.getUTCMonth()]},B:function je(We){return a[We.getUTCMonth()]},c:null,d:kW,e:kW,f:m8e,g:k8e,G:T8e,H:h8e,I:f8e,j:p8e,L:DW,m:g8e,M:v8e,p:function Te(We){return r[+(We.getUTCHours()>=12)]},q:function et(We){return 1+~~(We.getUTCMonth()/3)},Q:AW,s:MW,S:y8e,u:_8e,U:b8e,V:x8e,w:w8e,W:C8e,x:null,X:null,y:S8e,Y:D8e,Z:E8e,"%":EW},D={a:function U(We,st,$){var ae=f.exec(st.slice($));return ae?(We.w=p[ae[0].toLowerCase()],$+ae[0].length):-1},A:function G(We,st,$){var ae=d.exec(st.slice($));return ae?(We.w=h[ae[0].toLowerCase()],$+ae[0].length):-1},b:function X(We,st,$){var ae=v.exec(st.slice($));return ae?(We.m=y[ae[0].toLowerCase()],$+ae[0].length):-1},B:function oe(We,st,$){var ae=m.exec(st.slice($));return ae?(We.m=g[ae[0].toLowerCase()],$+ae[0].length):-1},c:function P(We,st,$){return z(We,n,st,$)},d:bW,e:bW,f:G5e,g:_W,G:yW,H:xW,I:xW,j:V5e,L:z5e,m:$5e,M:H5e,p:function j(We,st,$){var ae=c.exec(st.slice($));return ae?(We.p=u[ae[0].toLowerCase()],$+ae[0].length):-1},q:B5e,Q:q5e,s:Y5e,S:U5e,u:F5e,U:P5e,V:R5e,w:N5e,W:j5e,x:function W(We,st,$){return z(We,e,st,$)},X:function J(We,st,$){return z(We,i,st,$)},y:_W,Y:yW,Z:L5e,"%":W5e};function E(We,st){return function($){var Ve,Ct,Ot,ae=[],le=-1,Re=0,Ze=We.length;for($ instanceof Date||($=new Date(+$));++le53)return null;"w"in ae||(ae.w=1),"Z"in ae?(Ze=(Re=CI(b_(ae.y,0,1))).getUTCDay(),Re=Ze>4||0===Ze?F2.ceil(Re):F2(Re),Re=fW.offset(Re,7*(ae.V-1)),ae.y=Re.getUTCFullYear(),ae.m=Re.getUTCMonth(),ae.d=Re.getUTCDate()+(ae.w+6)%7):(Ze=(Re=wI(b_(ae.y,0,1))).getDay(),Re=Ze>4||0===Ze?P2.ceil(Re):P2(Re),Re=gW.offset(Re,7*(ae.V-1)),ae.y=Re.getFullYear(),ae.m=Re.getMonth(),ae.d=Re.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),Ze="Z"in ae?CI(b_(ae.y,0,1)).getUTCDay():wI(b_(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+7*ae.W-(Ze+5)%7:ae.w+7*ae.U-(Ze+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,CI(ae)):wI(ae)}}function z(We,st,$,ae){for(var Ve,Ct,le=0,Re=st.length,Ze=$.length;le=Ze)return-1;if(37===(Ve=st.charCodeAt(le++))){if(Ve=st.charAt(le++),!(Ct=D[Ve in vW?st.charAt(le++):Ve])||(ae=Ct(We,$,ae))<0)return-1}else if(Ve!=$.charCodeAt(ae++))return-1}return ae}return b.x=E(e,b),b.X=E(i,b),b.c=E(n,b),C.x=E(e,C),C.X=E(i,C),C.c=E(n,C),{format:function(We){var st=E(We+="",b);return st.toString=function(){return We},st},parse:function(We){var st=B(We+="",!1);return st.toString=function(){return We},st},utcFormat:function(We){var st=E(We+="",C);return st.toString=function(){return We},st},utcParse:function(We){var st=B(We+="",!0);return st.toString=function(){return We},st}}}(t),OW=zv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const N8e=sI(oI).right,FW=(sI(IW),N8e);function F8e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function R8e(t){return+t}var PW=[0,1];function Gv(t){return t}function SI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function P8e(t){return function(){return t}}(isNaN(n)?NaN:.5)}function L8e(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?B8e:L8e,l=c=null,d}function d(h){return null==h||isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Uu)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,R8e),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=F8e,u()},d.clamp=function(h){return arguments.length?(s=!!h||Gv,u()):s!==Gv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Gv,Gv)}function C_(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function H8e(t){return new Date(t)}function U8e(t){return t instanceof Date?+t:+new Date(+t)}function LW(t,n,e,i,r,o,s,a,l,c){var u=jW(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),C=c("%Y");function D(E){return(l(E)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function R2(t){if(!(n=z8e.exec(t)))throw new Error("invalid format: "+t);var n;return new kI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function kI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function j2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function Wv(t){return(t=j2(Math.abs(t)))?t[1]:NaN}function $W(t,n){var e=j2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}R2.prototype=kI.prototype,kI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const VW={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function G8e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return $W(100*t,n)},r:$W,s:function J8e(t,n){var e=j2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(BW=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+j2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function HW(t){return t}var L2,DI,GW,UW=Array.prototype.map,zW=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function n6e(t){var n=t.domain;return t.ticks=function(e){var i=n();return function e5e(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0){let l=Math.round(t/a),c=Math.round(n/a);for(l*an&&--c,s=new Array(o=c-l+1);++rn&&--c,s=new Array(o=c-l+1);++r0;){if((c=zG(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function Co(){var t=jW();return t.copy=function(){return RW(t,Co())},C_.apply(t,arguments),n6e(t)}function WW(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(UW.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?HW:function Y8e(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(UW.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=R2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,b=d.precision,C=d.trim,D=d.type;"n"===D?(y=!0,D="g"):VW[D]||(void 0===b&&(b=12),C=!0,D="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var E="$"===m?e:"#"===m&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",B="$"===m?i:/[%p]/.test(D)?s:"",z=VW[D],j=/[defgprs%]/.test(D);function U(G){var P,W,J,X=E,oe=B;if("c"===D)oe=z(G)+oe,G="";else{var H=(G=+G)<0||1/G<0;if(G=isNaN(G)?l:z(Math.abs(G),b),C&&(G=function X8e(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(G)),H&&0==+G&&"+"!==p&&(H=!1),X=(H?"("===p?p:a:"-"===p||"("===p?"":p)+X,oe=("s"===D?zW[8+BW/3]:"")+oe+(H&&"("===p?")":""),j)for(P=-1,W=G.length;++P(J=G.charCodeAt(P))||J>57){oe=(46===J?r+G.slice(P+1):G.slice(P))+oe,G=G.slice(0,P);break}}y&&!g&&(G=n(G,1/0));var pe=X.length+G.length+oe.length,A=pe>1)+X+G+oe+A.slice(pe);break;default:G=A+X+G+oe}return o(G)}return b=void 0===b?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),U.toString=function(){return d+""},U}return{format:c,formatPrefix:function u(d,h){var f=c(((d=R2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(Wv(h)/3))),m=Math.pow(10,-p),g=zW[8+p/3];return function(v){return f(m*v)+g}}}}(t),DI=L2.format,GW=L2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const qW=Symbol("implicit");function TI(){var t=new Map,n=[],e=[],i=qW;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==qW)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return TI(n,e).unknown(i)},C_.apply(r,arguments),r}function Ua(){var o,s,t=TI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function XW(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],aPm)if(Math.abs(u*a-l*c)>Pm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((EI-Math.acos((p+d-m)/(2*g*v)))/2),b=y/v,C=y/g;Math.abs(b-1)>Pm&&(this._+="L"+(t+b*c)+","+(n+b*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+C*a)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Pm||Math.abs(this._y1-c)>Pm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%AI+AI),d>r6e?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Pm&&(this._+="A"+e+","+e+",0,"+ +(d>=EI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const OI=KW;function _o(t){return function(){return t}}function QW(t){return t[0]}function ZW(t){return t[1]}function B2(){var t=QW,n=ZW,e=_o(!0),i=null,r=Fm,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=OI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],b[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),b[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):b[d]))}if(v)return a=null,v+""||null}function c(){return B2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:_o(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:_o(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:_o(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:_o(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:_o(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:_o(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:_o(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function eq(){}function II(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function tq(t,n){this._context=t,this._k=(1-n)/6}function nq(t,n){this._context=t,this._k=(1-n)/6}function iq(t){this._curve=t}function w6e(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function lq(t,n){var r,s,a,l,c,e=new T_(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=H6e);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new T_(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(cq)}function H6e(t){return t.children}function U6e(t){t.data=t.data.data}function cq(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function T_(t){this.data=t,this.depth=this.height=0,this.parent=null}tq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:II(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:II(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new tq(i,n)}return e.tension=function(i){return t(+i)},e}(0),nq.prototype={areaStart:eq,areaEnd:eq,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:II(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new nq(i,n)}return e.tension=function(i){return t(+i)},e}(0),function rq(t){function n(e){return new iq(t(e))}return n._curve=t,n}(Fm),iq.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function k6e(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,b,C,D,E,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),E=g*g*D,(b=Math.max(y/E,E/v))>C){g-=c;break}C=b}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),T_.prototype=lq.prototype={constructor:T_,count:function A6e(){return this.eachAfter(E6e)},each:function M6e(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function N6e(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function F6e(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function P6e(t){for(var n=this,e=function R6e(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function j6e(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function L6e(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function B6e(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function $6e(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function V6e(){return lq(this).eachBefore(U6e)}};const Y6e=["caretElm"];function X6e(t,n){}const J6e=function(t){return{model:t}};function K6e(t,n){if(1&t&&(_(0,"span"),te(1,X6e,0,0,"ng-template",5),x()),2&t){const e=L();w(1),S("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Zi(2,J6e,e.context))}}function Q6e(t,n){1&t&&xe(0,"span",6),2&t&&S("innerHTML",L().title,Yx)}function Z6e(t,n){if(1&t&&(lt(),qp(),xe(0,"ngx-charts-scale-legend",4)),2&t){const e=L();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function eBe(t,n){if(1&t){const e=_t();lt(),qp(),_(0,"ngx-charts-legend",5),ke("labelClick",function(r){return ze(e),Ge(L().legendLabelClick.emit(r))})("labelActivate",function(r){return ze(e),Ge(L().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return ze(e),Ge(L().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=L();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const hq=["*"],tBe=["ngx-charts-axis-label",""],fq=["ticksel"],nBe=["ngx-charts-x-axis-ticks",""];function iBe(t,n){if(1&t&&(lt(),_(0,"g",3)(1,"title"),O(2),x(),_(3,"text",4),O(4),x()()),2&t){const e=n.$implicit,i=L();ft("transform",i.tickTransform(e)),w(2),bt(i.tickFormat(e)),w(1),cr("font-size","12px"),ft("text-anchor",i.textAnchor)("transform",i.textTransform),w(1),bn(" ",i.tickTrim(i.tickFormat(e))," ")}}function rBe(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"line",6),x()),2&t){const e=L(2);ft("transform",e.gridLineTransform()),w(1),ft("y1",-e.gridLineHeight)}}function oBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,rBe,2,2,"g",5),x()),2&t){const e=n.$implicit,i=L();ft("transform",i.tickTransform(e)),w(1),S("ngIf",i.showGridLines)}}const sBe=["ngx-charts-x-axis",""];function aBe(t,n){if(1&t){const e=_t();lt(),_(0,"g",2),ke("dimensionsChanged",function(r){return ze(e),Ge(L().emitTicksHeight(r))}),x()}if(2&t){const e=L();S("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function lBe(t,n){if(1&t&&(lt(),xe(0,"g",3)),2&t){const e=L();S("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const cBe=["ngx-charts-y-axis-ticks",""];function uBe(t,n){if(1&t&&(lt(),_(0,"g",4)(1,"title"),O(2),x(),_(3,"text",5),O(4),x()()),2&t){const e=n.$implicit,i=L();ft("transform",i.transform(e)),w(2),bt(i.tickFormat(e)),w(1),cr("font-size","12px"),ft("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),w(1),bn(" ",i.tickTrim(i.tickFormat(e))," ")}}function dBe(t,n){if(1&t&&(lt(),xe(0,"path",6)),2&t){const e=L();ft("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function hBe(t,n){1&t&&(lt(),xe(0,"line",9)),2&t&&ft("x2",L(3).gridLineWidth)}function fBe(t,n){1&t&&(lt(),xe(0,"line",9)),2&t&&ft("x2",-L(3).gridLineWidth)}function pBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,hBe,1,1,"line",8),te(2,fBe,1,1,"line",8),x()),2&t){const e=L(2);ft("transform",e.gridLineTransform()),w(1),S("ngIf","left"===e.orient),w(1),S("ngIf","right"===e.orient)}}function mBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,pBe,3,3,"g",7),x()),2&t){const e=n.$implicit,i=L();ft("transform",i.transform(e)),w(1),S("ngIf",i.showGridLines)}}function gBe(t,n){if(1&t&&(lt(),_(0,"g")(1,"title"),O(2),x(),_(3,"text",11),O(4),x()()),2&t){const e=L(2).$implicit,i=L();w(2),bt(i.tickTrim(i.tickFormat(e.value))),w(1),ft("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),w(1),bn(" ",e.name," ")}}function vBe(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"line",10),te(2,gBe,5,6,"g",7),x()),2&t){const e=L().$implicit,i=L();ft("transform",i.transform(e.value)),w(1),ft("x2",i.gridLineWidth)("transform",i.gridLineTransform()),w(1),S("ngIf",i.showRefLabels)}}function yBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,vBe,3,4,"g",7),x()),2&t){const e=L();w(1),S("ngIf",e.showRefLines)}}const _Be=["ngx-charts-y-axis",""];function bBe(t,n){if(1&t){const e=_t();lt(),_(0,"g",2),ke("dimensionsChanged",function(r){return ze(e),Ge(L().emitTicksWidth(r))}),x()}if(2&t){const e=L();S("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function xBe(t,n){if(1&t&&(lt(),xe(0,"g",3)),2&t){const e=L();S("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const wBe=["ngx-charts-circle-series",""];function CBe(t,n){if(1&t&&(lt(),xe(0,"rect",4)),2&t){const e=L(2);S("@animationState","active"),ft("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const SBe=function(t){return{name:t}};function kBe(t,n){if(1&t){const e=_t();lt(),_(0,"g")(1,"defs"),xe(2,"g",1),x(),te(3,CBe,1,6,"rect",2),_(4,"g",3),ke("select",function(){ze(e);const r=L();return Ge(r.onClick(r.circle.data))})("activate",function(){return ze(e),Ge(L().activateCircle())})("deactivate",function(){return ze(e),Ge(L().deactivateCircle())}),x()()}if(2&t){const e=L();w(2),S("name",e.gradientId)("stops",e.circle.gradientStops),w(1),S("ngIf",e.barVisible&&"standard"===e.type),w(1),Vn("active",e.isActive(Zi(18,SBe,e.circle.seriesName))),S("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const DBe=["ngx-charts-circle",""],MBe=["ngx-charts-svg-linear-gradient",""];function OBe(t,n){if(1&t&&(lt(),xe(0,"stop")),2&t){const e=n.$implicit;cr("stop-color",e.color)("stop-opacity",e.opacity),ft("offset",e.offset+"%")}}const FBe=["ngx-charts-area",""];function PBe(t,n){if(1&t&&(lt(),_(0,"defs"),xe(1,"g",2),x()),2&t){const e=L();w(1),S("name",e.gradientId)("stops",e.gradientStops)}}const jBe=["tooltipAnchor"],LBe=["ngx-charts-tooltip-area",""];function BBe(t,n){if(1&t&&(_(0,"div",6),xe(1,"span",7),O(2),x()),2&t){const e=n.$implicit,i=L(2);w(1),cr("background-color",e.color),w(1),bn(" ",i.getToolTipText(e)," ")}}function $Be(t,n){if(1&t&&(lt(),qp(),_(0,"div",4),te(1,BBe,3,3,"div",5),x()),2&t){const e=n.model;w(1),S("ngForOf",e)}}const VBe=["ngx-charts-timeline",""];function HBe(t,n){if(1&t&&(_(0,"header",4)(1,"span",5),O(2),x()()),2&t){const e=L();w(2),bt(e.title)}}function UBe(t,n){if(1&t){const e=_t();_(0,"li",6)(1,"ngx-charts-legend-entry",7),ke("select",function(r){return ze(e),Ge(L().labelClick.emit(r))})("activate",function(r){return ze(e),Ge(L().activate(r))})("deactivate",function(r){return ze(e),Ge(L().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=L();w(1),S("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Ws=["tooltipTemplate"],z2=["seriesTooltipTemplate"],Ao=function(t,n){return[t,n]},d7e=["ngx-charts-line",""];function h7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",7),ke("dimensionsChanged",function(r){return ze(e),Ge(L().updateXAxisHeight(r))}),x()}if(2&t){const e=L();S("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function f7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",8),ke("dimensionsChanged",function(r){return ze(e),Ge(L().updateYAxisWidth(r))}),x()}if(2&t){const e=L();S("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function p7e(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"g",9),x()),2&t){const e=n.$implicit,i=L();S("@animationState","active"),w(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function m7e(t,n){if(1&t){const e=_t();lt(),_(0,"g")(1,"g",13),ke("select",function(r){return ze(e),Ge(L(2).onClick(r))})("activate",function(r){return ze(e),Ge(L(2).onActivate(r))})("deactivate",function(r){return ze(e),Ge(L(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=L(2);w(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function g7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",10),ke("mouseleave",function(){return ze(e),Ge(L().hideCircles())}),_(1,"g",11),ke("hover",function(r){return ze(e),Ge(L().updateHoveredVertical(r))}),x(),te(2,m7e,2,9,"g",12),x()}if(2&t){const e=L();w(1),S("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),w(1),S("ngForOf",e.results)}}function v7e(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"g",15),x()),2&t){const e=n.$implicit,i=L(2);w(1),S("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function y7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",14),ke("onDomainChange",function(r){return ze(e),Ge(L().updateDomain(r))}),te(1,v7e,2,8,"g",4),x()}if(2&t){const e=L();S("results",e.results)("view",Rr(10,Ao,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ft("transform",e.timelineTransform),w(1),S("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const _7e=["ngx-charts-line-series",""];function b7e(t,n){if(1&t&&(lt(),xe(0,"g",4)),2&t){const e=L();S("name",e.gradientId)("stops",e.gradientStops)}}function x7e(t,n){if(1&t&&(lt(),xe(0,"g",5)),2&t){const e=L();Vn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),S("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let vq=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function g9e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new l4e(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Bz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(wt(jh),wt(zg),wt(Ca))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function v9e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function y9e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:v9e(o.value,t,n)}),this[r]}}}}var qs=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(qs||(qs={})),qs))();const Qf=7;function yq(t,n,e){return"top"===e?t.top-Qf:"bottom"===e?t.top+t.height-n.height+Qf:"center"===e?t.top+t.height/2-n.height/2:void 0}function _q(t,n,e){return"left"===e?t.left-Qf:"right"===e?t.left+t.width-n.width+Qf:"center"===e?t.left+t.width/2-n.width/2:void 0}class Tc{static calculateVerticalAlignment(n,e,i){let r=yq(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Qf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Qf),"center"===r&&(o=e.height/2-i.height/2);const s=yq(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=_q(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Qf),"right"===r&&(o=e.width-n.width/2-i.width/2-Qf),"center"===r&&(o=e.width/2-i.width/2);const s=_q(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===qs.right?(a=-7,s=Tc.calculateVerticalCaret(i,e,r,o)):n===qs.left?(a=e.width,s=Tc.calculateVerticalCaret(i,e,r,o)):n===qs.top?(s=e.height,a=Tc.calculateHorizontalCaret(i,e,r,o)):n===qs.bottom&&(s=-7,a=Tc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===qs.right?(a=i.left+i.width+r,s=Tc.calculateVerticalAlignment(i,e,o)):n===qs.left?(a=i.left-e.width-r,s=Tc.calculateVerticalAlignment(i,e,o)):n===qs.top?(s=i.top-e.height-r,a=Tc.calculateHorizontalAlignment(i,e,o)):n===qs.bottom&&(s=i.top+i.height+r,a=Tc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(Tc.shouldFlip(i,e,n,r)){if(n===qs.right)return qs.left;if(n===qs.left)return qs.right;if(n===qs.top)return qs.bottom;if(n===qs.bottom)return qs.top}return n}}let _9e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=Tc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=Tc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=Tc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&wo(Y6e,5),2&e){let r;Tn(r=En())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ke("resize",function(){return i.onWindowResize()},0,m8),2&e&&Au(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(_(0,"div"),xe(1,"span",0,1),_(3,"div",2),te(4,K6e,2,4,"span",3),te(5,Q6e,1,1,"span",4),x()()),2&e&&(w(1),function U6(t,n,e){Ou(pc,Rd,Qg(Xt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),S("hidden",!i.showCaret),w(3),S("ngIf",!i.title),w(1),S("ngIf",i.title))},dependencies:[xn,Fu],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function $z(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o}([y9e(100)],t.prototype,"onWindowResize",null),t})();class b9e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let PI=(()=>{class t extends b9e{constructor(e){super(e),this.type=_9e}}return t.\u0275fac=function(e){return new(e||t)(wt(vq))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),rs=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new ot,this.legendLabelActivate=new ot,this.legendLabelDeactivate=new ot}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[oo([PI]),ei],ngContentSelectors:hq,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Df(),_(0,"div",0),lt(),_(1,"svg",1),Tf(2),x(),te(3,Z6e,1,5,"ngx-charts-scale-legend",2),te(4,eBe,1,7,"ngx-charts-legend",3),x()),2&e&&(cr("width",i.view[0],"px"),S("@animationState","active")("@.disabled",!i.animations),w(1),ft("width",i.chartWidth)("height",i.view[1]),w(2),S("ngIf",i.showLegend&&"scaleLegend"===i.legendType),w(1),S("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[xn,Oq,Nq]},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({opacity:0}),Ra("500ms 100ms",Or({opacity:1}))])])]},changeDetection:0}),t})(),x9e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new ot,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur))},t.\u0275dir=un({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),os=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new ot}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new x9e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new N4e(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[ei],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"div")},encapsulation:2}),t})(),RI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[ei],attrs:tBe,decls:2,vars:6,template:function(e,i){1&e&&(lt(),_(0,"text"),O(1),x()),2&e&&(ft("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),w(1),bn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Zf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function bq(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new ot,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=bq(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Zf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&wo(fq,5),2&e){let r;Tn(r=En())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:nBe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(lt(),_(0,"g",null,0),te(2,iBe,5,7,"g",1),x(),te(3,oBe,2,2,"g",2)),2&e&&(w(2),S("ngForOf",i.ticks),w(1),S("ngForOf",i.ticks))},dependencies:[Un,xn],encapsulation:2,changeDetection:0}),t})(),Zl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new ot,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&wo(xq,5),2&e){let r;Tn(r=En())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:sBe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(lt(),_(0,"g"),te(1,aBe,1,12,"g",0),te(2,lBe,1,5,"g",1),x()),2&e&&(ft("class",i.xAxisClassName)("transform",i.transform),w(1),S("ngIf",i.xScale),w(1),S("ngIf",i.showLabel))},dependencies:[xn,RI,xq],encapsulation:2,changeDetection:0}),t})();let wq=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new ot,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function nf(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=bq(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Zf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&wo(fq,5),2&e){let r;Tn(r=En())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:cBe,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(lt(),_(0,"g",null,0),te(2,uBe,5,9,"g",1),x(),te(3,dBe,1,2,"path",2),te(4,mBe,2,2,"g",3),te(5,yBe,2,1,"g",3)),2&e&&(w(2),S("ngForOf",i.ticks),w(1),S("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),w(1),S("ngForOf",i.ticks),w(1),S("ngForOf",i.referenceLines))},dependencies:[Un,xn],encapsulation:2,changeDetection:0}),t})(),El=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new ot,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&wo(wq,5),2&e){let r;Tn(r=En())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:_Be,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(lt(),_(0,"g"),te(1,bBe,1,14,"g",0),te(2,xBe,1,5,"g",1),x()),2&e&&(ft("class",i.yAxisClassName)("transform",i.transform),w(1),S("ngIf",i.yScale),w(1),S("ngIf",i.showLabel))},dependencies:[xn,RI,wq],encapsulation:2,changeDetection:0}),t})(),Cq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[If]}),t})();var G2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(G2||(G2={})),G2))(),W2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(W2||(W2={})),W2))(),ep=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(ep||(ep={})),ep))();let Gu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=qs.top,this.tooltipAlignment=W2.center,this.tooltipType=G2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ep.all,this.tooltipImmediateExit=!1,this.show=new ot,this.hide=new ot}get listensForFocus(){return this.tooltipShowEvent===ep.all||this.tooltipShowEvent===ep.focus}get listensForHover(){return this.tooltipShowEvent===ep.all||this.tooltipShowEvent===ep.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(ge(PI),ge(Yl),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&ke("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),Sq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[vq,PI],imports:[If]}),t})();function za(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function ga(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const kq={};function Al(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,kq[t]?Al():(kq[t]=!0,t)}let $I,E_=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new ot,this.activate=new ot,this.deactivate=new ot,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=za(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${ga(r)} \u2022 ${ga(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:wBe,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&te(0,kBe,5,20,"g",0),2&e&&S("ngIf",i.circle)},dependencies:function(){return[xn,Gu,q2,jm]},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({opacity:0}),Ra(250,Or({opacity:1}))])])]},changeDetection:0}),t})(),q2=(()=>{class t{constructor(){this.select=new ot,this.activate=new ot,this.deactivate=new ot}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&ke("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:DBe,decls:1,vars:8,template:function(e,i){1&e&&(lt(),xe(0,"circle")),2&e&&ft("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),jm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[ei],attrs:MBe,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(lt(),_(0,"linearGradient",0),te(1,OBe,1,5,"stop",1),x()),2&e&&(S("id",i.name),ft("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),w(1),S("ngForOf",i.stops))},dependencies:[Un],encapsulation:2,changeDetection:0}),t})(),BI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new ot,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=Sa(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[ei],attrs:FBe,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(te(0,PBe,2,2,"defs",0),lt(),xe(1,"path",1)),2&e&&(S("ngIf",i.gradient),w(1),cr("opacity",i.opacity),ft("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[xn,jm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?$I=window:typeof global<"u"&&($I=global);const Mq=$I.MouseEvent;function VI(t,n=!1,e=!0){if("function"==typeof Mq)return new Mq(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let A_=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new ot}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=VI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=VI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=VI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&wo(jBe,5),2&e){let r;Tn(r=En())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:LBe,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","'auto'",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(lt(),_(0,"g")(1,"rect",0),ke("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),te(2,$Be,2,1,"ng-template",null,1,Xo),xe(4,"rect",2,3),x()),2&e){const r=sa(3);w(1),ft("x",0)("width",i.dims.width)("height",i.dims.height),w(3),cr("opacity",i.anchorOpacity)("pointer-events","none"),S("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ft("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[Un,Gu],encapsulation:2,data:{animation:[ul("animationState",[ja("inactive => active",[Or({opacity:0}),Ra(250,Or({opacity:.7}))]),ja("active => inactive",[Or({opacity:.7}),Ra(250,Or({opacity:0}))])])]},changeDetection:0}),t})(),M_=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new ot,this.onDomainChange=new ot,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Al().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=Im().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=Co().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=Nm().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function QLe(){return rI(O2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Ur.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),Sa(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),Sa(this.element).select(".brush").call(this.brush),Sa(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[ei],attrs:VBe,ngContentSelectors:hq,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Df(),lt(),_(0,"g",0)(1,"filter"),xe(2,"feColorMatrix",1),x(),_(3,"g",2),Tf(4),x(),xe(5,"rect",3)(6,"g",4),x()),2&e&&(ft("transform",i.transform),w(1),ft("id",i.filterId),w(4),ft("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Oq=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new ot,this.labelActivate=new ot,this.labelDeactivate=new ot,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=za(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[ei],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(_(0,"div"),te(1,HBe,3,1,"header",0),_(2,"div",1)(3,"ul",2),te(4,UBe,2,4,"li",3),x()()()),2&e&&(cr("width",i.width,"px"),w(1),S("ngIf",(null==i.title?null:i.title.length)>0),w(2),cr("max-height",i.height-45,"px"),Vn("horizontal-legend",i.horizontal),w(1),S("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[Un,xn,Iq]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class t{constructor(){this.isActive=!1,this.select=new ot,this.activate=new ot,this.deactivate=new ot,this.toggle=new ot}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&ke("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(_(0,"span",0),ke("click",function(){return i.select.emit(i.formattedLabel)}),_(1,"span",1),ke("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),_(2,"span",2),O(3),x()()),2&e&&(Vn("active",i.isActive),S("title",i.formattedLabel),w(1),cr("background-color",i.color),w(2),bn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Nq=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(ge(wM))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[ei],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(_(0,"div",0)(1,"div",1)(2,"span"),O(3),x()(),xe(4,"div",2),_(5,"div",1)(6,"span"),O(7),x()()()),2&e&&(cr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Vn("horizontal-legend",i.horizontal),w(3),bt(i.valueRange[1].toLocaleString()),w(1),cr("background",i.gradient),w(3),bt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[If,Cq,Sq,If,Cq,Sq]}),t})();let Pq=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class ys{constructor(n,e,i,r){"string"==typeof n&&(n=Pq.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=Pq.find(o=>o.name===n)),"quantile"===e)r=XW().range(n.domain).domain(i);else if("ordinal"===e)r=TI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=WW(0,1,1/o.length);r=Co().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Co().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=Co().domain(this.domain).range([0,1]),r=Ua().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let w9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),jq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),S9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),T9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),$q=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new ot,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=Sa(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[ei],attrs:d7e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(lt(),xe(0,"path",0)),2&e&&(S("@animationState","active"),ft("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({strokeDasharray:2e3,strokeDashoffset:2e3}),Ra(1e3,Or({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),E9e=(()=>{class t extends os{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=Fm,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new ot,this.deactivate=new ot,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function vs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Al().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function X2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function tp(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=Im().range([0,i]).domain(e):"linear"===this.scaleType?(r=Co().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=Nm().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=Co().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new ys(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Ws,5),Ti(r,z2,5)),2&e){let o;Tn(o=En())&&(i.tooltipTemplate=o.first),Tn(o=En())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&ke("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[wi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(_(0,"ngx-charts-chart",0),ke("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),lt(),_(1,"defs")(2,"clipPath"),xe(3,"rect"),x()(),_(4,"g",1),te(5,h7e,1,10,"g",2),te(6,f7e,1,12,"g",3),_(7,"g"),te(8,p7e,2,11,"g",4),te(9,g7e,3,9,"g",5),x()(),te(10,y7e,2,13,"g",6),x()),2&e&&(S("view",Rr(17,Ao,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),w(2),ft("id",i.clipPathId),w(1),ft("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),w(1),ft("transform",i.transform),w(1),S("ngIf",i.xAxis),w(1),S("ngIf",i.yAxis),w(1),ft("clip-path",i.clipPath),w(1),S("ngForOf",i.results)("ngForTrackBy",i.trackBy),w(1),S("ngIf",!i.tooltipDisabled),w(1),S("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[Un,xn,Zl,El,A_,rs,E_,M_,A9e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[ul("animationState",[ja(":leave",[Or({opacity:1}),Ra(500,Or({opacity:0}))])])]},changeDetection:0}),t})(),A9e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return B2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return qv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return qv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function HI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function zI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function UI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Al().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[ei],attrs:_7e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(lt(),_(0,"g")(1,"defs"),te(2,b7e,1,2,"g",0),x(),xe(3,"g",1)(4,"g",2),te(5,x7e,1,9,"g",3),x()),2&e&&(w(2),S("ngIf",i.hasGradient),w(1),Vn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),w(1),Vn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),w(1),S("ngIf",i.hasRange))},dependencies:[xn,BI,jm,$q],encapsulation:2,changeDetection:0}),t})(),Vq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})();Math;let YI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),F9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,YI,Vq]}),t})(),L9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),V9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),z9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,YI,jq]}),t})(),W9e=(()=>{class t{constructor(){!function G9e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,w9e,jq,S9e,T9e,Vq,F9e,L9e,YI,V9e,z9e]}),t})();function q9e(t,n){if(1&t&&(_(0,"ngb-alert",19),xe(1,"img",20),_(2,"h6",21),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Y9e(t,n){1&t&&xe(0,"img",31)}function X9e(t,n){1&t&&xe(0,"img",32)}function J9e(t,n){1&t&&xe(0,"img",33)}function K9e(t,n){1&t&&xe(0,"img",34)}function Q9e(t,n){if(1&t&&(_(0,"tr",24)(1,"td"),Cl(2,25),te(3,Y9e,1,0,"img",26),te(4,X9e,1,0,"img",27),te(5,J9e,1,0,"img",28),te(6,K9e,1,0,"img",29),Sl(),_(7,"span"),O(8),x()(),_(9,"td"),O(10),_(11,"span",30),O(12),x()(),_(13,"td"),O(14),_(15,"span",30),O(16),x()(),_(17,"td"),O(18),_(19,"span",30),O(20),x()(),_(21,"td"),O(22),_(23,"span",30),O(24),x()()()),2&t){const e=n.$implicit,i=L(2);w(2),S("ngSwitch",e.health),w(1),S("ngSwitchCase",0),w(1),S("ngSwitchCase",1),w(1),S("ngSwitchCase",2),w(1),S("ngSwitchCase",3),w(2),bt(e.name),w(2),bn("",e.session_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxSessionCount()-e.session_count," delta)"),w(2),bn("",e.presence_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),w(2),bn("",e.match_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxMatchCount()-e.match_count," delta)"),w(2),bn("",e.goroutine_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function Z9e(t,n){if(1&t&&(_(0,"tbody"),te(1,Q9e,25,18,"tr",22),_(2,"tr",3),xe(3,"td",23),_(4,"th",3),O(5),x(),_(6,"th",3),O(7),x(),_(8,"th",3),O(9),x(),_(10,"th",3),O(11),x()()()),2&t){const e=L();w(1),S("ngForOf",e.statusData.nodes),w(4),bt(e.getTotalSessionCount()),w(2),bt(e.getMaxPresenceCount()),w(2),bt(e.getTotalMatchCount()),w(2),bt(e.getTotalGorountineCount())}}function eVe(t,n){if(1&t&&(_(0,"option",35),O(1),x()),2&t){const e=n.$implicit,i=L();Ph("value",e),w(1),bt(i.ranges[e])}}const Q2=function(t){return{"background-color":t}};function tVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function nVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,tVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function iVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",37),te(2,nVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function rVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function oVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,rVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function sVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",43),te(2,oVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function aVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function lVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,aVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function cVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",44),te(2,lVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function uVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function dVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,uVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function hVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",45),te(2,dVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let fVe=(()=>{class t{route;consoleService;formBuilder;error="";showDelta=!1;statusData;rateGraphData=[];latencyGraphData=[];inputGraphData=[];outputGraphData=[];rangeForm;ranges={1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"};rangesKeys=Object.keys(this.ranges).map(e=>+e);colorScheme={domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]};samples=60;refreshTimer;$refreshTimer;constructor(e,i,r){this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=Gy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=Gy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Status"),x(),te(2,q9e,4,2,"ngb-alert",1),_(3,"table",2),ke("mouseover",function(){return r.showDelta=!0})("mouseout",function(){return r.showDelta=!1}),_(4,"thead",3)(5,"tr")(6,"th",4),O(7,"Node name"),x(),_(8,"th",4),O(9,"Sessions"),x(),_(10,"th",4),O(11,"Presences"),x(),_(12,"th",4),O(13,"Authoritative Matches"),x(),_(14,"th",4),O(15,"Goroutines"),x()()(),te(16,Z9e,12,5,"tbody",5),x(),_(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),O(21,"View:"),x(),_(22,"div",9)(23,"select",10),ke("change",function(s){return r.setRange(s)}),te(24,eVe,2,2,"option",11),_A(25,"sortNumbers"),x()()()()(),_(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),O(30,"Processing Latency"),x(),_(31,"small"),O(32," (ms)"),x()()(),_(33,"div",13)(34,"div",14)(35,"h5",15),O(36,"Rate"),x(),_(37,"small"),O(38," (rpc/s)"),x()()()(),_(39,"div",12)(40,"div",16),te(41,iVe,4,12,"div",17),x(),_(42,"div",16),te(43,sVe,4,12,"div",17),x()(),_(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),O(48,"Input"),x(),_(49,"small"),O(50," (kb/s)"),x()()(),_(51,"div",13)(52,"div",14)(53,"h5",15),O(54,"Output"),x(),_(55,"small"),O(56," (kb/s)"),x()()()(),_(57,"div",12)(58,"div",16),te(59,cVe,4,12,"div",17),x(),_(60,"div",16),te(61,hVe,4,12,"div",17),x()()),2&i&&(w(2),S("ngIf",r.error),w(14),S("ngIf",r.statusData),w(1),S("formGroup",r.rangeForm),w(7),S("ngForOf",bA(25,8,r.rangesKeys)),w(17),S("ngIf",r.latencyGraphData.length>0),w(2),S("ngIf",r.rateGraphData.length>0),w(16),S("ngIf",r.inputGraphData.length>0),w(2),S("ngIf",r.outputGraphData.length>0))},dependencies:function(){return[Un,xn,f7,Fw,d7,yo,Hu,HPe,E9e,fa,HC,UC,kv,da,ha,Ts,zs,mVe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})}return t})(),pVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(it(r=>Hn(r.nodes.map(o=>o.name)))).pipe(Jl(r=>(e.data={...e.data,error:r},Hn([]))))}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mVe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=_l({name:"sortNumbers",type:t,pure:!1})}return t})();var gVe=ue(1870),XI=ue(4327);function vVe(t,n){if(1&t&&(_(0,"div",13)(1,"p")(2,"b"),O(3),x(),xe(4,"input",14),x()()),2&t){const e=L(2);w(3),bt(e.confirmDeleteForm.controls.numberValueControl.value.title),w(1),Ph("formControlName",e.confirmDeleteForm.controls.numberValueControl.value.id)}}const yVe=function(t){return{"is-invalid":t}};function _Ve(t,n){if(1&t&&xe(0,"input",15),2&t){const e=L(2);S("ngClass",Zi(1,yVe,e.f.delete.touched&&e.f.delete.invalid))}}function bVe(t,n){if(1&t&&(_(0,"div",9)(1,"form",10),te(2,vVe,5,2,"div",11),te(3,_Ve,1,3,"input",12),x()()),2&t){const e=L();w(1),S("formGroup",e.confirmDeleteForm),w(1),S("ngIf",e.confirmDeleteForm.controls.numberValueControl),w(1),S("ngIf",e.confirmDeleteForm.controls.delete)}}let xVe=(()=>{class t{confirmed=new ot;canceled=new ot;title="Delete Confirmation";message="Are you sure you want to delete this item?";confirmDeleteForm;closeModal(){this.canceled.emit()}cancel(){this.canceled.emit()}confirm(){(!this.confirmDeleteForm||this.confirmDeleteForm.valid)&&this.confirmed.emit()}get f(){return this.confirmDeleteForm.controls}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Vt({type:t,selectors:[["app-delete-confirm-dialog"]],inputs:{confirmDeleteForm:"confirmDeleteForm"},outputs:{confirmed:"confirmed",canceled:"canceled"},decls:14,vars:3,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","Close","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","d-flex flex-column justify-content-center",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"click"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],["class","mt-2",4,"ngIf"],["type","text","class","form-control","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",3,"ngClass",4,"ngIf"],[1,"mt-2"],["type","number","value","30","min","0",2,"width","80px",3,"formControlName"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"h4",1),O(2),x(),_(3,"button",2),ke("click",function(){return r.closeModal()}),_(4,"span",3),O(5,"\xd7"),x()()(),_(6,"div",4),O(7),te(8,bVe,4,3,"div",5),x(),_(9,"div",6)(10,"button",7),ke("click",function(){return r.cancel()}),O(11,"Cancel"),x(),_(12,"button",8),ke("click",function(){return r.confirm()}),O(13,"Delete"),x()()),2&i&&(w(2),bt(r.title),w(5),bn(" ",r.message," "),w(1),S("ngIf",r.confirmDeleteForm))},dependencies:[Of,xn,fa,Us,L3,da,ha,z3,Ts,zs]})}return t})(),Ml=(()=>{class t{modalService;required=!1;constructor(e){this.modalService=e}openDeleteConfirmModal(e,i=null,r="",o=""){const a=this.modalService.open(xVe,{backdrop:!1,centered:!0});i&&(a.componentInstance.confirmDeleteForm=i),r&&(a.componentInstance.title=r),o&&(a.componentInstance.message=o),a.componentInstance.confirmed.subscribe(()=>{e(i?.value),a.close()}),a.componentInstance.canceled.subscribe(()=>{a.close()})}static \u0275fac=function(i){return new(i||t)(wt(m2))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wVe=["fileSelector"];function CVe(t,n){if(1&t&&(_(0,"div",8),O(1),x()),2&t){const e=L(2);w(1),bt(e.dropZoneLabel)}}function SVe(t,n){if(1&t){const e=_t();_(0,"div")(1,"input",9),ke("click",function(r){return ze(e),Ge(L(2).openFileSelector(r))}),x()()}if(2&t){const e=L(2);w(1),Ph("value",e.browseBtnLabel),S("className",e.browseBtnClassName)}}function kVe(t,n){if(1&t&&(te(0,CVe,2,1,"div",6),te(1,SVe,2,2,"div",7)),2&t){const e=L();S("ngIf",e.dropZoneLabel),w(1),S("ngIf",e.showBrowseBtn)}}function DVe(t,n){}const TVe=function(t){return{openFileSelector:t}};class Z2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let Yq=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),Xq=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new ot,this.onFileOver=new ot,this.onFileLeave=new ot,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new Z2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=Gy(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new Z2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new Z2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(ge(ur),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Yq,5,fo),2&e){let o;Tn(o=En())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&wo(wVe,7),2&e){let r;Tn(r=En())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(_(0,"div",0),ke("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),_(1,"div",1)(2,"input",2,3),ke("change",function(o){return i.uploadFiles(o)}),x(),te(4,kVe,2,2,"ng-template",null,4,Xo),te(6,DVe,0,0,"ng-template",5),x()()),2&e){const r=sa(5);Vn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),S("className",i.dropZoneClassName),w(1),S("className",i.contentClassName),w(1),S("accept",i.accept)("multiple",i.multiple),ft("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),w(4),S("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",Zi(13,TVe,i.openFileSelector))}},dependencies:[xn,Fu],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),EVe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t,bootstrap:function(){return[Xq]}}),t.\u0275inj=Di({imports:[If]}),t})();function AVe(t,n){1&t&&(_(0,"ngb-alert",21),xe(1,"img",22),_(2,"h6",23),O(3,"Failed to retrieve configuration."),x()()),2&t&&S("dismissible",!1)}function MVe(t,n){if(1&t&&(_(0,"span",32),O(1),x()),2&t){const e=L(2).$implicit;S("id",e.name),w(1),bt(e.value)}}function OVe(t,n){1&t&&(_(0,"span",33),O(1,"(empty)"),x()),2&t&&S("id",L(2).$implicit.name)}function IVe(t,n){if(1&t&&(_(0,"div",34)(1,"b"),O(2),x(),_(3,"label",26)(4,"a",27),xe(5,"img",10),x()()()),2&t){const e=L(2).index,i=L();w(2),bt(i.flatConfig[e+1].name),w(1),S("for",i.flatConfig[e+1].name),w(1),em("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",i.flatConfig[e+1].name,"",B1)}}function NVe(t,n){if(1&t&&(_(0,"span",32),O(1),x()),2&t){const e=L(3).index,i=L();S("id",i.flatConfig[e+1].name),w(1),bt(i.flatConfig[e+1].value)}}function FVe(t,n){if(1&t&&(_(0,"span",33),O(1,"(empty)"),x()),2&t){const e=L(3).index;S("id",L().flatConfig[e+1].name)}}function PVe(t,n){if(1&t&&(_(0,"div",35),te(1,NVe,2,2,"span",28),te(2,FVe,2,1,"span",29),x()),2&t){const e=L(2).index,i=L();w(1),S("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),w(1),S("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function RVe(t,n){if(1&t&&(_(0,"div",25)(1,"div",7)(2,"b"),O(3),x(),_(4,"label",26)(5,"a",27),xe(6,"img",10),x()()(),_(7,"div",7),te(8,MVe,2,2,"span",28),te(9,OVe,2,1,"span",29),x(),te(10,IVe,6,3,"div",30),te(11,PVe,3,2,"div",31),x()),2&t){const e=L(),i=e.index,r=e.$implicit,o=L();Vn("border-top-0",i>0),w(3),bt(r.name),w(1),S("for",r.name),w(1),em("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",r.value.name,"",B1),w(3),S("ngIf",!o.isEmpty(r.value)),w(1),S("ngIf",o.isEmpty(r.value)),w(1),S("ngIf",i{class t{config;route;httpClient;modalService;consoleService;formBuilder;deleteConfirmService;configError="";uploadError="";deleteError="";jsonConfig;flatConfig;nakamaVersion;file;uploading=!1;uploadSuccess=!1;deleteSuccess=!1;deleting=!1;confirmDeleteForm;apiConfig;constructor(e,i,r,o,s,a,l){this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.deleteConfirmService=l,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",qr.compose([qr.required,qr.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,gVe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});XI.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteConfirmService.openDeleteConfirmModal(()=>{this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(eO(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})},this.confirmDeleteForm,"Delete All Data","Are you sure you want to delete all the database data?")}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(ge(XC),ge(Vr),ge(YC),ge(m2),ge(Ai),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:41,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height","16"],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){1&i&&(te(0,AVe,4,1,"ngb-alert",0),_(1,"h2",1),O(2,"Server Configuration"),x(),_(3,"div",2)(4,"h5")(5,"b"),O(6,"Server version:"),x(),O(7),x(),_(8,"button",3),ke("click",function(){return r.exportYaml()}),O(9,"Export Configuration"),x()(),_(10,"div",4),te(11,jVe,2,1,"ng-container",5),_(12,"div",6)(13,"div",7)(14,"b"),O(15,"runtime.env"),x(),_(16,"label",8)(17,"a",9),xe(18,"img",10),x()()(),_(19,"div",11),te(20,BVe,2,1,"div",12),te(21,$Ve,3,0,"div",12),x()()(),_(22,"h5",13),O(23,"Import storage data"),x(),_(24,"p"),O(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),te(26,VVe,6,2,"ngb-alert",0),te(27,HVe,4,1,"ngb-alert",14),_(28,"ngx-file-drop",15),ke("onFileDrop",function(s){return r.dropped(s)}),te(29,UVe,2,0,"ng-template",16),x(),_(30,"h5",13),O(31,"Delete all data"),x(),te(32,zVe,6,2,"ngb-alert",0),te(33,GVe,4,1,"ngb-alert",14),_(34,"div",17)(35,"div"),xe(36,"img",18),_(37,"small",19),O(38,"Warning - this operation is not reversible!"),x()(),_(39,"button",20),ke("click",function(){return r.deleteData()}),O(40,"Delete all"),x()()),2&i&&(S("ngIf",r.configError),w(7),bn(" ",r.nakamaVersion,""),w(4),S("ngForOf",r.flatConfig),w(9),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&r.jsonConfig.runtime.env.length>0),w(1),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&0===r.jsonConfig.runtime.env.length),w(5),S("ngIf",r.uploadError),w(1),S("ngIf",r.uploadSuccess),w(1),S("disabled",r.uploading),w(4),S("ngIf",r.deleteError),w(1),S("ngIf",r.deleteSuccess),w(6),S("disabled",r.deleting))},dependencies:[Xq,Yq,Un,xn,yo],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})}return t})(),qVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YVe(t,n){if(1&t&&(_(0,"ngb-alert",51),xe(1,"img",52),_(2,"h6",53),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function XVe(t,n){if(1&t&&(_(0,"ngb-alert",54),xe(1,"img",55),_(2,"h6",53),O(3),x()()),2&t){const e=L();S("dismissible",!0),w(3),bt(e.successMessage)}}function JVe(t,n){1&t&&(_(0,"tr")(1,"td",56),O(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(w(1),S("colSpan",5))}function KVe(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td"),O(2),x(),_(3,"td"),O(4),x(),_(5,"td")(6,"span",37),O(7,"Administrator"),x(),_(8,"span",37),O(9,"Developer"),x(),_(10,"span",37),O(11,"Maintainer"),x(),_(12,"span",37),O(13,"View Only"),x()(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x(),_(18,"td",57)(19,"div",35)(20,"button",58),ke("click",function(){const o=ze(e).$implicit;return Ge(L().requireUserMfa(o.username,!0))}),O(21,"Enforce MFA"),x(),_(22,"button",58),ke("click",function(){const o=ze(e).$implicit;return Ge(L().resetUserMfa(o.username))}),O(23,"Reset MFA"),x(),_(24,"button",59),ke("click",function(){const o=ze(e).$implicit;return Ge(L().deleteUser(o.username))}),O(25,"Delete"),x()()()()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.username),w(2),bt(e.email),w(2),S("hidden",e.role!==i.adminRole),w(2),S("hidden",e.role!==i.developerRole),w(2),S("hidden",e.role!==i.maintainerRole),w(2),S("hidden",e.role!==i.readonlyRole),w(3),bt(e.mfa_required),w(2),bt(e.mfa_enabled),w(3),S("disabled",e.mfa_required),w(2),S("disabled",!e.mfa_enabled)}}function QVe(t,n){if(1&t&&(_(0,"ngb-alert",51),xe(1,"img",52),_(2,"h6",53),O(3,"An error occurred:"),x(),_(4,"p",60),O(5),x()()),2&t){const e=L();S("dismissible",!1),w(5),bt(e.userCreateError)}}const JI=function(t){return{"is-invalid":t}};let ZVe=(()=>{class t{route;consoleService;formBuilder;deleteConfirmService;error="";userCreateError="";successMessage="";users=[];createUserForm;adminRole=ri.USER_ROLE_ADMIN;developerRole=ri.USER_ROLE_DEVELOPER;maintainerRole=ri.USER_ROLE_MAINTAINER;readonlyRole=ri.USER_ROLE_READONLY;constructor(e,i,r,o){this.route=e,this.consoleService=i,this.formBuilder=r,this.deleteConfirmService=o}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",qr.required],email:["",[qr.required,qr.email]],password:["",qr.compose([qr.required,qr.minLength(8)])],role:[+this.readonlyRole,qr.required],mfa:[!0,qr.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}requireUserMfa(e,i){this.error="",this.consoleService.requireUserMfa("",e,{required:i}).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.error="",this.users.length=0,this.users.push(...r.users),this.successMessage=`User ${e} Multi-factor authentication is now required`,setTimeout(()=>{this.successMessage=""},5e3)},r=>{this.error=r})}resetUserMfa(e){this.error="",this.consoleService.resetUserMfa("",e).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users),this.successMessage=`User ${e} Multi-factor authentication was reset successfully`,setTimeout(()=>{this.successMessage=""},5e3)},i=>{this.error=i})}deleteUser(e){this.error="",this.deleteConfirmService.openDeleteConfirmModal(()=>{this.consoleService.deleteUser("",e).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=ri.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=ri.USER_ROLE_ADMIN;break;case 2:e=ri.USER_ROLE_DEVELOPER;break;case 3:e=ri.USER_ROLE_MAINTAINER;break;case 4:e=ri.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value,mfa_required:this.f.mfa.value}).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e,mfa:!0}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["app-users"]],decls:135,vars:26,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type","dismissible"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","mfa","formControlName","mfa",1,"custom-control-input","mr-2","my-2"],["for","mfa",1,"form-check-label","custom-control-label"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"text-muted",3,"colSpan"],[2,"width","310px"],["type","button",1,"btn","btn-warning","btn-outline-dark",3,"disabled","click"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Management"),x(),te(2,YVe,4,2,"ngb-alert",1),te(3,XVe,4,2,"ngb-alert",2),_(4,"table",3)(5,"thead",4)(6,"tr")(7,"th",5),O(8,"Username"),x(),_(9,"th"),O(10,"Email"),x(),_(11,"th",6),O(12,"Role"),x(),_(13,"th"),O(14,"MFA Required"),x(),_(15,"th"),O(16,"MFA Setup"),x(),_(17,"th",7),O(18,"Action"),x()()(),_(19,"tbody"),te(20,JVe,3,1,"tr",8),te(21,KVe,26,10,"tr",9),x()(),_(22,"h5",10),O(23,"Add new user"),x(),_(24,"ngb-alert",11)(25,"h6",12),O(26,"User roles"),x(),_(27,"div",13)(28,"div",14)(29,"div",15),xe(30,"img",16),_(31,"h6",17),O(32,"Administrator"),x()(),_(33,"small"),O(34," Owners have complete control over the server, its users and resources. "),x()(),_(35,"div",14)(36,"div",15),xe(37,"img",18),_(38,"h6",17),O(39,"Developer"),x()(),_(40,"small"),O(41," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),_(42,"div",14)(43,"div",15),xe(44,"img",19),_(45,"h6",17),O(46,"Maintainer"),x()(),_(47,"small"),O(48," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),_(49,"div",14)(50,"div",15),xe(51,"img",20),_(52,"h6",17),O(53,"View Only"),x()(),_(54,"small"),O(55," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),te(56,QVe,6,2,"ngb-alert",1),_(57,"div",21)(58,"form",22),ke("ngSubmit",function(){return r.addUser()}),_(59,"div",23)(60,"div",24)(61,"div",25)(62,"label",26),O(63,"Email"),x()(),_(64,"div",27),xe(65,"input",28),_(66,"div",29),O(67,"Email is required"),x()()()(),_(68,"div",23)(69,"div",24)(70,"div",25)(71,"label",30),O(72,"Username"),x()(),_(73,"div",27),xe(74,"input",31),_(75,"div",29),O(76,"Username is required"),x()()()(),_(77,"div",23)(78,"div",24)(79,"div",25)(80,"label",32),O(81,"Password"),x()(),_(82,"div",27),xe(83,"input",33),_(84,"div",29),O(85,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),_(86,"div",23)(87,"div",24)(88,"div",25)(89,"label",34),O(90,"Role"),x()(),_(91,"div",27)(92,"div",35)(93,"button",36)(94,"span",37),O(95,"Administrator"),x(),_(96,"span",37),O(97,"Developer"),x(),_(98,"span",37),O(99,"Maintainer"),x(),_(100,"span",37),O(101,"View Only"),x()(),_(102,"div",38),xe(103,"button",39),_(104,"div",40)(105,"button",41),ke("click",function(){return r.f.role.setValue(+r.adminRole)}),O(106,"Administrator"),x(),_(107,"button",41),ke("click",function(){return r.f.role.setValue(+r.developerRole)}),O(108,"Developer"),x(),_(109,"button",41),ke("click",function(){return r.f.role.setValue(+r.maintainerRole)}),O(110,"Maintainer"),x(),_(111,"button",41),ke("click",function(){return r.f.role.setValue(+r.readonlyRole)}),O(112,"View Only"),x()()()(),_(113,"div",29),O(114,"Role is required"),x()()()(),_(115,"div",23)(116,"div",42)(117,"div",25)(118,"label",34),O(119,"Require Multi-factor Authentication"),x()(),_(120,"div",27)(121,"div",43),xe(122,"input",44)(123,"label",45),x()()()(),_(124,"div",46)(125,"div",42),xe(126,"div",25),_(127,"div",27)(128,"div",43),xe(129,"input",47),_(130,"label",48),O(131,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),_(132,"div",49)(133,"button",50),O(134,"Save"),x()()()()),2&i&&(w(2),S("ngIf",r.error),w(1),S("ngIf",r.successMessage),w(17),S("ngIf",0===r.users.length),w(1),S("ngForOf",r.users),w(3),S("type","secondary")("dismissible",!1),w(32),S("ngIf",r.userCreateError),w(2),S("formGroup",r.createUserForm),w(7),S("ngClass",Zi(20,JI,r.f.email.dirty&&r.f.email.errors)),w(1),S("hidden",r.f.email.disabled||r.f.email.valid||r.f.email.pristine),w(8),S("ngClass",Zi(22,JI,r.f.username.dirty&&r.f.username.errors)),w(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),w(8),S("ngClass",Zi(24,JI,r.f.password.dirty&&r.f.password.errors)),w(1),S("hidden",r.f.password.disabled||r.f.password.valid||r.f.password.pristine),w(10),S("hidden",r.f.role.value!==+r.adminRole),w(2),S("hidden",r.f.role.value!==+r.developerRole),w(2),S("hidden",r.f.role.value!==+r.maintainerRole),w(2),S("hidden",r.f.role.value!==+r.readonlyRole),w(13),S("hidden",r.f.role.disabled||r.f.role.valid||r.f.role.pristine),w(20),S("disabled",r.createUserForm.invalid))},dependencies:[Of,Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,OC,da,ha,qh,Ts,zs],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})}return t})(),eHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tHe(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Failed to retrieve runtime information: ",e.error,"")}}function nHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),bt(e.path),w(2),bt(e.mod_time)}}function iHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No Go modules were found."),x(),xe(3,"td"),x())}function rHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),bt(e.path),w(2),bt(e.mod_time)}}function oHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No Lua modules were found."),x(),xe(3,"td"),x())}function sHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),bt(e.path),w(2),bt(e.mod_time)}}function aHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No JavaScript modules were found."),x(),xe(3,"td"),x())}const KI=function(){return["/apiexplorer"]},QI=function(t){return{endpoint:t}};function lHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),bt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function cHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No Go RPC functions were found."),x()())}function uHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),bt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function dHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No Lua RPC functions were found."),x()())}function hHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),bt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function fHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No JavaScript RPC functions were found."),x()())}let pHe=(()=>{class t{route;consoleService;error="";runtimeInfo;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Runtime Modules"),x(),te(2,tHe,4,2,"ngb-alert",1),_(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),O(7,"Go Modules"),x(),_(8,"th",4),O(9,"Last Modified"),x()()(),_(10,"tbody"),te(11,nHe,5,2,"tr",5),te(12,iHe,4,0,"tr",6),x(),_(13,"thead",3)(14,"tr")(15,"th",7),O(16,"Lua Modules"),x()()(),_(17,"tbody"),te(18,rHe,5,2,"tr",5),te(19,oHe,4,0,"tr",6),x(),_(20,"thead",3)(21,"tr")(22,"th",7),O(23,"JavaScript Modules"),x()()(),_(24,"tbody"),te(25,sHe,5,2,"tr",5),te(26,aHe,4,0,"tr",6),x()(),_(27,"h4",8),O(28,"Registered RPC Functions"),x(),_(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),O(33,"Go RPC Functions"),x()()(),_(34,"tbody"),te(35,lHe,7,6,"tr",5),te(36,cHe,3,0,"tr",6),x(),_(37,"thead",3)(38,"tr")(39,"th",7),O(40,"Lua RPC Functions"),x()()(),_(41,"tbody"),te(42,uHe,7,6,"tr",5),te(43,dHe,3,0,"tr",6),x(),_(44,"thead",3)(45,"tr")(46,"th",7),O(47,"JavaScript RPC Functions"),x()()(),_(48,"tbody"),te(49,hHe,7,6,"tr",5),te(50,fHe,3,0,"tr",6),x()()),2&i&&(w(2),S("ngIf",r.error),w(9),S("ngForOf",r.runtimeInfo.go_modules),w(1),S("ngIf",0===r.runtimeInfo.go_modules.length),w(6),S("ngForOf",r.runtimeInfo.lua_modules),w(1),S("ngIf",0===r.runtimeInfo.lua_modules.length),w(6),S("ngForOf",r.runtimeInfo.js_modules),w(1),S("ngIf",0===r.runtimeInfo.js_modules.length),w(9),S("ngForOf",r.runtimeInfo.go_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.go_rpc_functions.length),w(6),S("ngForOf",r.runtimeInfo.lua_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.lua_rpc_functions.length),w(6),S("ngForOf",r.runtimeInfo.js_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.js_rpc_functions.length))},dependencies:[Ru,Un,xn,yo],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})}return t})(),mHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gHe(t,n){1&t&&(_(0,"span"),O(1,"Filter by collection"),x())}function vHe(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),bt(e.f.collection.value)}}function yHe(t,n){if(1&t){const e=_t();_(0,"button",34),ke("click",function(){const o=ze(e).$implicit;return Ge(L().f.collection.setValue(o))}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function _He(t,n){if(1&t&&(_(0,"ngb-alert",35),xe(1,"img",36),_(2,"h6",37),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying storage objects: ",e.error,"")}}function bHe(t,n){1&t&&(_(0,"th",38),O(1,"Remove"),x())}function xHe(t,n){1&t&&(_(0,"tr")(1,"td",39),O(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function wHe(t,n){if(1&t){const e=_t();_(0,"td",42)(1,"button",43),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteObject(r,s,a))}),O(2,"Delete"),x()()}}function CHe(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(2),x(),_(3,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(4),x(),_(5,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(6),x(),_(7,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(8),x(),te(9,wHe,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.collection),w(2),bt(e.key),w(2),bt(e.user_id),w(2),bt(e.update_time),w(1),S("ngIf",i.deleteAllowed())}}let SHe=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";collections=[];objects=[];objectCount=0;nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Storage Objects"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),te(12,gHe,2,0,"span",10),te(13,vHe,2,1,"span",10),x(),_(14,"div",11)(15,"button",12),ke("click",function(){return r.f.collection.reset()}),O(16,"\u2718 Deselect collection"),x(),xe(17,"div",13),te(18,yHe,2,1,"button",14),x()()(),xe(19,"input",15)(20,"input",16),_(21,"div",17)(22,"span",18),ke("click",function(){return r.f.user_id.setValue(r.systemUserId)}),xe(23,"img",19),x()(),_(24,"div",17)(25,"button",20),ke("click",function(){return r.search(0)}),O(26,"Search"),x()()()()(),_(27,"div",21)(28,"div",22)(29,"button",23),ke("click",function(){return r.search(0)}),xe(30,"img",24),x(),_(31,"button",23),ke("click",function(){return r.search(1)}),xe(32,"img",25),x()()()()(),te(33,_He,4,2,"ngb-alert",26),_(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),O(39,"Collection Name"),x(),_(40,"th"),O(41,"Key Name"),x(),_(42,"th",30),O(43,"User ID"),x(),_(44,"th",31),O(45,"Last Update"),x(),te(46,bHe,2,0,"th",32),x()(),_(47,"tbody"),te(48,xHe,3,0,"tr",10),te(49,CHe,10,5,"tr",33),x()()()),2&i&&(w(3),bn("",r.objectCount," objects found."),w(4),S("formGroup",r.searchForm),w(4),S("disabled",0===r.collections.length),w(1),S("ngIf",!r.f.collection.value||""===r.f.collection.value),w(1),S("ngIf",r.f.collection.value&&""!==r.f.collection.value),w(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),w(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),w(1),S("ngForOf",r.collections),w(7),S("disabled",r.disableSearch()),w(4),S("disabled",0===r.objects.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.objects.length),w(1),S("ngForOf",r.objects))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),kHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ZI,Jq,Kq,Qq,Zq,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,_Y,bY,xY,wY,CY,SY,kY,DY,TY,EY,AY,MY,OY,IY,NY,FY,PY,RY,jY,LY,BY,$Y,VY,HY,UY,zY,GY,WY,qY,YY,XY,JY,KY,QY,ZY,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,_X,bX,xX,wX,CX,SX,kX,DX,TX,EX,AX,MX,OX,IX,NX,FX,PX,RX,jX,LX,BX,$X,VX,HX,UX,zX,GX,WX,qX,YX,XX,JX,KX,QX,ZX,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,_J,bJ,xJ,wJ,CJ,SJ,kJ,DJ,TJ,EJ,AJ,MJ,OJ,IJ,NJ,FJ,PJ,RJ,jJ,LJ,BJ,$J,VJ,HJ,UJ,zJ,GJ,WJ,qJ,YJ,XJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,_K,bK,xK,wK,CK,SK,kK,DK,TK,EK,AK,MK,OK,IK,NK,FK,PK,RK,jK,LK,BK,$K,VK,HK,UK,zK,GK,WK,qK,YK,XK,JK,KK,QK,ZK,eQ,tQ,nQ,iQ,rQ,oQ,sQ,aQ,lQ,cQ,uQ,dQ,hQ,fQ,pQ,mQ,gQ,vQ,yQ,_Q,bQ,xQ,wQ,CQ,SQ,kQ,DQ,TQ,EQ,AQ,MQ,OQ,IQ,NQ,FQ,PQ,RQ,jQ,LQ,BQ,$Q,VQ,HQ,UQ,zQ,GQ,WQ,qQ,YQ,XQ,JQ,KQ,QQ,ZQ,eZ,tZ,nZ,iZ,rZ,oZ,sZ,aZ,THe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],EHe=["mainAxis","crossAxis","limiter"];function O_(t){var n="function"==typeof Map?new Map:void 0;return O_=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return eN(e,arguments,er(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),I_(r,e)},O_(t)}function eN(t,n,e){return(eN=fZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&I_(a,o.prototype),a}).apply(null,arguments)}function Pe(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function lZ(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function He(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=eS(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},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 o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function _n(){_n=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(X,oe,P){X[oe]=P.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(X,oe,P){return Object.defineProperty(X,oe,{value:P,enumerable:!0,configurable:!0,writable:!0}),X[oe]}try{l({},"")}catch{l=function(oe,P,W){return oe[P]=W}}function c(X,oe,P,W){var H=Object.create((oe&&oe.prototype instanceof h?oe:h).prototype),pe=new j(W||[]);return i(H,"_invoke",{value:D(X,P,pe)}),H}function u(X,oe,P){try{return{type:"normal",arg:X.call(oe,P)}}catch(W){return{type:"throw",arg:W}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(U([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function b(X){["next","throw","return"].forEach(function(oe){l(X,oe,function(P){return this._invoke(oe,P)})})}function C(X,oe){function P(J,H,pe,A){var N=u(X[J],X,H);if("throw"!==N.type){var F=N.arg,q=F.value;return q&&"object"==wn(q)&&e.call(q,"__await")?oe.resolve(q.__await).then(function(V){P("next",V,pe,A)},function(V){P("throw",V,pe,A)}):oe.resolve(q).then(function(V){F.value=V,pe(F)},function(V){return P("throw",V,pe,A)})}A(N.arg)}var W;i(this,"_invoke",{value:function(J,H){function pe(){return new oe(function(A,N){P(J,H,A,N)})}return W=W?W.then(pe,pe):pe()}})}function D(X,oe,P){var W="suspendedStart";return function(J,H){if("executing"===W)throw new Error("Generator is already running");if("completed"===W){if("throw"===J)throw H;return{value:void 0,done:!0}}for(P.method=J,P.arg=H;;){var pe=P.delegate;if(pe){var A=E(pe,P);if(A){if(A===d)continue;return A}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if("suspendedStart"===W)throw W="completed",P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);W="executing";var N=u(X,oe,P);if("normal"===N.type){if(W=P.done?"completed":"suspendedYield",N.arg===d)continue;return{value:N.arg,done:P.done}}"throw"===N.type&&(W="completed",P.method="throw",P.arg=N.arg)}}}function E(X,oe){var P=oe.method,W=X.iterator[P];if(void 0===W)return oe.delegate=null,"throw"===P&&X.iterator.return&&(oe.method="return",oe.arg=void 0,E(X,oe),"throw"===oe.method)||"return"!==P&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var J=u(W,X.iterator,oe.arg);if("throw"===J.type)return oe.method="throw",oe.arg=J.arg,oe.delegate=null,d;var H=J.arg;return H?H.done?(oe[X.resultName]=H.value,oe.next=X.nextLoc,"return"!==oe.method&&(oe.method="next",oe.arg=void 0),oe.delegate=null,d):H:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,d)}function B(X){var oe={tryLoc:X[0]};1 in X&&(oe.catchLoc=X[1]),2 in X&&(oe.finallyLoc=X[2],oe.afterLoc=X[3]),this.tryEntries.push(oe)}function z(X){var oe=X.completion||{};oe.type="normal",delete oe.arg,X.completion=oe}function j(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(B,this),this.reset(!0)}function U(X){if(X){var oe=X[o];if(oe)return oe.call(X);if("function"==typeof X.next)return X;if(!isNaN(X.length)){var P=-1,W=function J(){for(;++P=0;--W){var J=this.tryEntries[W],H=J.completion;if("root"===J.tryLoc)return P("end");if(J.tryLoc<=this.prev){var pe=e.call(J,"catchLoc"),A=e.call(J,"finallyLoc");if(pe&&A){if(this.prev=0;--P){var W=this.tryEntries[P];if(W.tryLoc<=this.prev&&e.call(W,"finallyLoc")&&this.prev=0;--oe){var P=this.tryEntries[oe];if(P.finallyLoc===X)return this.complete(P.completion,P.afterLoc),z(P),d}},catch:function(X){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var P=this.tryEntries[oe];if(P.tryLoc===X){var W=P.completion;if("throw"===W.type){var J=W.arg;z(P)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(X,oe,P){return this.delegate={iterator:U(X),resultName:oe,nextLoc:P},"next"===this.method&&(this.arg=void 0),d}},t}function cZ(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function or(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){cZ(o,i,r,s,a,"next",l)}function a(l){cZ(o,i,r,s,a,"throw",l)}s(void 0)})}}function Jn(t,n){return dZ(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||eS(t,n)||uZ()}function uZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dZ(t){if(Array.isArray(t))return t}function hZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function nt(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function er(t){return(er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function Oe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function pZ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function Xd(t,n){return new t(n)}var F_,nS=new Map,rN=0;function TZ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function FHe(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=iN(t),m=nS.get(p)||function PHe(t,n){var e={stylesheet:IHe(n),rules:{}};return nS.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),rN+=1,f}function P_(t){F_=t}function Xv(){if(!F_)throw new Error("Function called outside component initialization");return F_}function eu(t){Xv().$$.on_mount.push(t)}function qu(t){Xv().$$.on_destroy.push(t)}function EZ(){var t=Xv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=DZ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function AZ(t,n){return Xv().$$.context.set(t,n),n}function Aa(t){return Xv().$$.context.get(t)}function iS(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Jv=[],Xi=[],rS=[],oN=[],MZ=Promise.resolve(),sN=!1;function OZ(){sN||(sN=!0,MZ.then(IZ))}function tc(){return OZ(),MZ}function Lm(t){rS.push(t)}function Yu(t){oN.push(t)}var oS,aN=new Set,Kv=0;function IZ(){if(0===Kv){var t=F_;do{try{for(;Kvl.start&&(a=d(l,b),l=null,lN(t,a.b,"start"),z&&(u(),c=TZ(t,s,a.b,a.duration,0,D,o.css))),a&&(U>=a.end?(B(s=a.b,1-s),lN(t,a.b,"end"),l||(a.b?u():--a.group.r||po(a.group.c)),a=null):U>=a.start&&(s=a.a+a.d*D((U-a.start)/a.duration),B(s,1-s))),!(!a&&!l)},0===N_.size&&nN(wZ),new Promise(function(U){N_.add({c:p,f:U})}))}return{run:function(f){Ta(o)?(oS||(oS=Promise.resolve()).then(function(){oS=null}),oS).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var cN=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function BHe(t,n){t.d(1),n.delete(t.key)}function uN(t,n){fe(t,1,1,function(){n.delete(t.key)})}function lS(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var b=d(r,o,p),C=e(b),D=s.get(C);D?i&&D.p(b,n):(D=c(C,b)).c(),v.set(C,g[p]=D),C in m&&y.set(C,Math.abs(p-m[C]))}var E=new Set,B=new Set;function z(P){Q(P,1),P.m(a,u),s.set(P.key,P),u=P.first,f--}for(;h&&f;){var j=g[f-1],U=t[h-1],G=j.key,X=U.key;j===U?(u=j.first,h--,f--):v.has(X)?!s.has(G)||E.has(G)?z(j):B.has(X)?h--:y.get(G)>y.get(X)?(B.add(G),z(j)):(E.add(X),h--):(l(U,s),h--)}for(;h--;){var oe=t[h];v.has(oe.key)||l(oe,s)}for(;f;)z(g[f-1]);return g}function Bm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function cS(t){return"object"===wn(t)&&null!==t?t:{}}function Xu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function gt(t){t&&t.c()}function pt(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||Lm(function(){var a,l=t.$$.on_mount.map(yZ).filter(Ta);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,ui(l)):po(l),t.$$.on_mount=[]}),s.forEach(Lm)}function mt(t,n){var e=t.$$;null!==e.fragment&&(po(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ln(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=F_;P_(t);var c=t.$$={fragment:null,ctx:[],props:o,update:Bt,not_equal:r,bound:_Z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:_Z(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function $He(t,n){-1===t.$$.dirty[0]&&(Jv.push(t),OZ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function UHe(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function zHe(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?vZ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var WHe=cN.window;function qHe(t){_i(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function FZ(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=t[1].closeButton&&PZ(t),C=t[2];return C&&(s=Xd(C,{})),{c:function(){n=De("div"),e=De("div"),i=De("div"),b&&b.c(),r=rt(),o=De("div"),s&>(s.$$.fragment),R(o,"class",a=Mo(t[1].classContent)+" svelte-n7cvum"),R(o,"style",t[9]),Nt(o,"content",!t[0]),R(i,"class",l=Mo(t[1].classWindow)+" svelte-n7cvum"),R(i,"role","dialog"),R(i,"aria-modal","true"),R(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),R(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),R(i,"style",t[8]),Nt(i,"window",!t[0]),R(e,"class",h=Mo(t[1].classWindowWrap)+" svelte-n7cvum"),R(e,"style",t[7]),Nt(e,"wrap",!t[0]),R(n,"id",f=t[1].id),R(n,"class",p=Mo(t[1].classBg)+" svelte-n7cvum"),R(n,"style",t[6]),Nt(n,"bg",!t[0])},m:function(D,E){$e(D,n,E),me(n,e),me(e,i),b&&b.m(i,null),me(i,r),me(i,o),s&&pt(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[Rt(i,"introstart",function(){Ta(t[13])&&t[13].apply(this,arguments)}),Rt(i,"outrostart",function(){Ta(t[14])&&t[14].apply(this,arguments)}),Rt(i,"introend",function(){Ta(t[15])&&t[15].apply(this,arguments)}),Rt(i,"outroend",function(){Ta(t[16])&&t[16].apply(this,arguments)}),Rt(n,"mousedown",t[20]),Rt(n,"mouseup",t[21])],v=!0)},p:function(D,E){if((t=D)[1].closeButton?b?(b.p(t,E),2&E[0]&&Q(b,1)):((b=PZ(t)).c(),Q(b,1),b.m(i,r)):b&&(Ht(),fe(b,1,1,function(){b=null}),Ut()),C!==(C=t[2])){if(s){Ht();var B=s;fe(B.$$.fragment,1,0,function(){mt(B,1)}),Ut()}C?(gt((s=Xd(C,{})).$$.fragment),Q(s.$$.fragment,1),pt(s,o,null)):s=null}(!g||2&E[0]&&a!==(a=Mo(t[1].classContent)+" svelte-n7cvum"))&&R(o,"class",a),(!g||512&E[0])&&R(o,"style",t[9]),(!g||3&E[0])&&Nt(o,"content",!t[0]),(!g||2&E[0]&&l!==(l=Mo(t[1].classWindow)+" svelte-n7cvum"))&&R(i,"class",l),(!g||2&E[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&R(i,"aria-label",c),(!g||2&E[0]&&u!==(u=t[1].ariaLabelledBy||null))&&R(i,"aria-labelledby",u),(!g||256&E[0])&&R(i,"style",t[8]),(!g||3&E[0])&&Nt(i,"window",!t[0]),(!g||2&E[0]&&h!==(h=Mo(t[1].classWindowWrap)+" svelte-n7cvum"))&&R(e,"class",h),(!g||128&E[0])&&R(e,"style",t[7]),(!g||3&E[0])&&Nt(e,"wrap",!t[0]),(!g||2&E[0]&&f!==(f=t[1].id))&&R(n,"id",f),(!g||2&E[0]&&p!==(p=Mo(t[1].classBg)+" svelte-n7cvum"))&&R(n,"class",p),(!g||64&E[0])&&R(n,"style",t[6]),(!g||3&E[0])&&Nt(n,"bg",!t[0])},i:function(D){g||(Q(b),s&&Q(s.$$.fragment,D),Lm(function(){d||(d=aS(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),Lm(function(){m||(m=aS(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(D){fe(b),s&&fe(s.$$.fragment,D),d||(d=aS(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=aS(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(D){D&&Be(n),b&&b.d(),s&&mt(s),t[50](null),D&&d&&d.end(),t[51](null),t[52](null),D&&m&&m.end(),v=!1,po(y)}}}function PZ(t){var n,e,i,r,o,s=[XHe,YHe],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Dr()},m:function(c,u){a[e].m(c,u),$e(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Ht(),fe(a[d],1,1,function(){a[d]=null}),Ut(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){fe(i),o=!1},d:function(c){a[e].d(c),c&&Be(r)}}}function YHe(t){var n,e,i,r;return{c:function(){R(n=De("button"),"class",e=Mo(t[1].classCloseButton)+" svelte-n7cvum"),R(n,"aria-label","Close modal"),R(n,"style",t[10]),R(n,"type","button"),Nt(n,"close",!t[0])},m:function(o,s){$e(o,n,s),i||(r=Rt(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Mo(o[1].classCloseButton)+" svelte-n7cvum")&&R(n,"class",e),1024&s[0]&&R(n,"style",o[10]),3&s[0]&&Nt(n,"close",!o[0])},i:Bt,o:Bt,d:function(o){o&&Be(n),i=!1,r()}}}function XHe(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=Xd(r,o(t))),{c:function(){n&>(n.$$.fragment),e=Dr()},m:function(s,a){n&&pt(n,s,a),$e(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){Ht();var l=n;fe(l.$$.fragment,1,0,function(){mt(l,1)}),Ut()}r?(gt((n=Xd(r,o(s))).$$.fragment),Q(n.$$.fragment,1),pt(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&Q(n.$$.fragment,s),i=!0)},o:function(s){n&&fe(n.$$.fragment,s),i=!1},d:function(s){s&&Be(e),n&&mt(n,s)}}}function JHe(t){var n,e,i,r,o=t[2]&&FZ(t),s=t[49].default,a=Ms(s,t,t[48],null);return{c:function(){o&&o.c(),n=rt(),a&&a.c()},m:function(l,c){o&&o.m(l,c),$e(l,n,c),a&&a.m(l,c),e=!0,i||(r=Rt(WHe,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&Q(o,1)):((o=FZ(l)).c(),Q(o,1),o.m(n.parentNode,n)):o&&(Ht(),fe(o,1,1,function(){o=null}),Ut()),a&&a.p&&(!e||131072&c[1])&&Is(a,s,l,l[48],e?Os(s,l[48],c,null):Ns(l[48]),null)},i:function(l){e||(Q(o),Q(a,l),e=!0)},o:function(l){fe(o),fe(a,l),e=!1},d:function(l){o&&o.d(l),l&&Be(n),a&&a.d(l),i=!1,r()}}}function RZ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(nt(nt({},e),{},{props:nt(nt({},n),e.props)}))}}function KHe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,b=void 0===y?{}:y,C=n.$$scope,D=EZ(),B=n.isTabbable,z=void 0===B?function(Ye){return Ye.tabIndex>=0&&!Ye.hidden&&!Ye.disabled&&"none"!==Ye.style.display&&"hidden"!==Ye.type&&Boolean(Ye.offsetWidth||Ye.offsetHeight||Ye.getClientRects().length)}:B,j=n.show,U=void 0===j?null:j,G=n.id,X=void 0===G?null:G,oe=n.key,P=void 0===oe?"simple-modal":oe,W=n.ariaLabel,J=void 0===W?null:W,H=n.ariaLabelledBy,pe=void 0===H?null:H,A=n.closeButton,N=void 0===A||A,F=n.closeOnEsc,q=void 0===F||F,V=n.closeOnOuterClick,ce=void 0===V||V,ve=n.styleBg,je=void 0===ve?{}:ve,Te=n.styleWindowWrap,et=void 0===Te?{}:Te,We=n.styleWindow,st=void 0===We?{}:We,$=n.styleContent,ae=void 0===$?{}:$,le=n.styleCloseButton,Re=void 0===le?{}:le,Ze=n.classBg,Ve=void 0===Ze?null:Ze,Ct=n.classWindowWrap,Ot=void 0===Ct?null:Ct,yn=n.classWindow,Xn=void 0===yn?null:yn,on=n.classContent,Ri=void 0===on?null:on,hn=n.classCloseButton,vr=void 0===hn?null:hn,Er=n.unstyled,fr=void 0!==Er&&Er,wr=n.setContext,Si=void 0===wr?AZ:wr,Xr=n.transitionBg,Ro=void 0===Xr?GHe:Xr,Rn=n.transitionBgProps,kt=void 0===Rn?{duration:250}:Rn,pi=n.transitionWindow,Bi=void 0===pi?Ro:pi,Ar=n.transitionWindowProps,ko=void 0===Ar?kt:Ar,Qo=n.disableFocusTrap,vt=void 0!==Qo&&Qo,jn={id:X,ariaLabel:J,ariaLabelledBy:pe,closeButton:N,closeOnEsc:q,closeOnOuterClick:ce,styleBg:je,styleWindowWrap:et,styleWindow:st,styleContent:ae,styleCloseButton:Re,classBg:Ve,classWindowWrap:Ot,classWindow:Xn,classContent:Ri,classCloseButton:vr,transitionBg:Ro,transitionBgProps:kt,transitionWindow:Bi,transitionWindowProps:ko,disableFocusTrap:vt,isTabbable:z,unstyled:fr},di=nt({},jn),ki=null,Nr=function(Ye){return Ye?Object.keys(Ye).reduce(function(In,li){return"".concat(In,"; ").concat((vi=li,vi.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ye[li]);var vi},""):""},Jr=function(Ye){return!!(Ye&&Ye.constructor&&Ye.call&&Ye.apply)},co=function(){e(6,a=Nr(Object.assign({},{width:window.innerWidth,height:window.innerHeight},di.styleBg))),e(7,l=Nr(di.styleWindowWrap)),e(8,c=Nr(di.styleWindow)),e(9,u=Nr(di.styleContent)),e(10,d=Nr(di.styleCloseButton)),e(11,h=di.transitionBg),e(12,f=di.transitionWindow)},Ks=function(){},Cr=Ks,Qs=Ks,Za=Ks,el=Ks,$c=function(Ye){var li=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},vi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,ki=RZ(Ye,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,di=nt(nt({},jn),li)),co(),qe(),e(13,Cr=function(gi){vi.onOpen&&vi.onOpen(gi),D("open"),D("opening")}),e(14,Qs=function(gi){vi.onClose&&vi.onClose(gi),D("close"),D("closing")}),e(15,Za=function(gi){vi.onOpened&&vi.onOpened(gi),D("opened")}),e(16,el=function(gi){vi.onClosed&&vi.onClosed(gi),D("closed")})},Ee=function(){var Ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ki&&(e(14,Qs=Ye.onClose||Qs),e(16,el=Ye.onClosed||el),e(2,ki=null),Ke())},qe=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},Ke=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};Si(P,{open:$c,close:Ee});var dt=!1;return qu(function(){dt&&Ee()}),eu(function(){e(47,dt=!0)}),t.$$set=function(Ye){"isTabbable"in Ye&&e(22,z=Ye.isTabbable),"show"in Ye&&e(23,U=Ye.show),"id"in Ye&&e(24,X=Ye.id),"key"in Ye&&e(25,P=Ye.key),"ariaLabel"in Ye&&e(26,J=Ye.ariaLabel),"ariaLabelledBy"in Ye&&e(27,pe=Ye.ariaLabelledBy),"closeButton"in Ye&&e(28,N=Ye.closeButton),"closeOnEsc"in Ye&&e(29,q=Ye.closeOnEsc),"closeOnOuterClick"in Ye&&e(30,ce=Ye.closeOnOuterClick),"styleBg"in Ye&&e(31,je=Ye.styleBg),"styleWindowWrap"in Ye&&e(32,et=Ye.styleWindowWrap),"styleWindow"in Ye&&e(33,st=Ye.styleWindow),"styleContent"in Ye&&e(34,ae=Ye.styleContent),"styleCloseButton"in Ye&&e(35,Re=Ye.styleCloseButton),"classBg"in Ye&&e(36,Ve=Ye.classBg),"classWindowWrap"in Ye&&e(37,Ot=Ye.classWindowWrap),"classWindow"in Ye&&e(38,Xn=Ye.classWindow),"classContent"in Ye&&e(39,Ri=Ye.classContent),"classCloseButton"in Ye&&e(40,vr=Ye.classCloseButton),"unstyled"in Ye&&e(0,fr=Ye.unstyled),"setContext"in Ye&&e(41,Si=Ye.setContext),"transitionBg"in Ye&&e(42,Ro=Ye.transitionBg),"transitionBgProps"in Ye&&e(43,kt=Ye.transitionBgProps),"transitionWindow"in Ye&&e(44,Bi=Ye.transitionWindow),"transitionWindowProps"in Ye&&e(45,ko=Ye.transitionWindowProps),"disableFocusTrap"in Ye&&e(46,vt=Ye.disableFocusTrap),"$$scope"in Ye&&e(48,C=Ye.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&dt&&(Jr(U)?$c(U):Ee())},[fr,di,ki,i,r,o,a,l,c,u,d,h,f,Cr,Qs,Za,el,Jr,Ee,function(Ye){if(di.closeOnEsc&&ki&&"Escape"===Ye.key&&(Ye.preventDefault(),Ee()),ki&&"Tab"===Ye.key&&!di.disableFocusTrap){var In=o.querySelectorAll("*"),li=Array.from(In).filter(di.isTabbable).sort(function(gi,Mr){return gi.tabIndex-Mr.tabIndex}),vi=li.indexOf(document.activeElement);-1===vi&&Ye.shiftKey&&(vi=0),vi+=li.length+(Ye.shiftKey?-1:1),li[vi%=li.length].focus(),Ye.preventDefault()}},function(Ye){!di.closeOnOuterClick||Ye.target!==i&&Ye.target!==r||(v=Ye.target)},function(Ye){di.closeOnOuterClick&&Ye.target===v&&(Ye.preventDefault(),Ee())},z,U,X,P,J,pe,N,q,ce,je,et,st,ae,Re,Ve,Ot,Xn,Ri,vr,Si,Ro,kt,Bi,ko,vt,dt,C,b,function(Ye){Xi[Ye?"unshift":"push"](function(){e(5,o=Ye)})},function(Ye){Xi[Ye?"unshift":"push"](function(){e(4,r=Ye)})},function(Ye){Xi[Ye?"unshift":"push"](function(){e(3,i=Ye)})}]}var Uo,so,Ju,Jd,Ku,tu,jZ=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,KHe,JHe,_s,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},qHe,[-1,-1,-1]),r}return Ie(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Uo||(Uo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(so||(so={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Ju||(Ju={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Jd||(Jd={})),function(t){t.key="key",t.value="value"}(Ku||(Ku={})),function(t){t.asc="asc",t.desc="desc"}(tu||(tu={}));var $m=[{start:0,end:100}],Vm={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},QHe=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),ZHe=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),LZ=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),dN="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",hN="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",eUe="NO",fN="SELF",pN="NEXT_INSIDE",tUe=(ec(ZI={},tu.asc,"ascending"),ec(ZI,tu.desc,"descending"),ZI),nUe=0;function R_(){return++nUe}function op(t){return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function ao(t){return Array.isArray(t)}function Oo(t){return null!==t&&"object"===op(t)&&t.constructor===Object}function BZ(t){return!(!t||"object"!==op(t))&&"add"===t.op}function $Z(t){return!(!t||"object"!==op(t))&&"remove"===t.op}function mN(t){return!(!t||"object"!==op(t))&&"replace"===t.op}function gN(t){return!(!t||"object"!==op(t))&&"copy"===t.op}function Qv(t){return!(!t||"object"!==op(t))&&"move"===t.op}function vN(t){return(vN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function iUe(t,n){return t===n}function VZ(t){return t.slice(0,t.length-1)}function HZ(t){return"object"===vN(t)&&null!==t}function j_(t){return(j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function UZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function rUe(t,n,e){return r=function(o,s){if("object"!==j_(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==j_(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===j_(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function yN(t){if(ao(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Oo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=Qu(t?t[r]:void 0,n.slice(1),e,i);if(Oo(t)||ao(t))return _N(t,r,o);if(i){var s=oUe.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var oUe=/^\d+$/;function zZ(t,n,e){if(0===n.length)return e(t);if(!HZ(t))throw new Error("Path doesn't exist");var i=n[0];return _N(t,i,zZ(t[i],n.slice(1),e))}function bN(t,n){if(0===n.length)return t;if(!HZ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=yN(t);return ao(i)&&i.splice(parseInt(e),1),Oo(i)&&delete i[e],i}return t}var r=n[0];return _N(t,r,bN(t[r],n.slice(1)))}function xN(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return zZ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=yN(o);return s.splice(parseInt(r),0,e),s})}function nu(t,n){return void 0!==t&&(0===n.length||null!==t&&nu(t[n[0]],n.slice(1)))}function Zu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function dn(t){return t.map(GZ).join("")}function GZ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function wN(t,n){return t+GZ(n)}function Zv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function ed(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:iUe;if(p.length=0?z=function(){var U="",G=!0;"-"==t[s]&&(U+=h()),U+="0"==t[s]?h():m(),"."==t[s]&&(U+=h()+m(),G=!1),"e"!=t[s]&&"E"!=t[s]||(U+=h(),"+"!=t[s]&&"-"!=t[s]||(U+=h()),U+=m(),G=!1);var X=+U;return a&&G&&(X>Number.MAX_SAFE_INTEGER||X="a"&&z<="f"?B+=z.charCodeAt()-mUe+10:z>="0"&&z<="9"?B+=+z:C()}return String.fromCharCode(B)}function m(){for(var E="";t[s]>="0"&&t[s]<="9";)E+=h();if(E.length)return E;D(),b()}function g(E,B){v(E,B,y())}function v(E,B,z){i[E]=i[E]||{},i[E][B]=z}function y(){return{line:r,column:o,pos:s}}function b(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function C(){f(),b()}function D(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},uS.stringify=function(t,n,e){if(dS(t)){var i,r,o=0,s="object"==wn(e)?e.space:e;switch(wn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var vUe=/"|\\/g,yUe=/[\b]/g,_Ue=/\f/g,bUe=/\n/g,xUe=/\r/g,wUe=/\t/g;function hS(t){return'"'+(t=t.replace(vUe,"\\$&").replace(_Ue,"\\f").replace(yUe,"\\b").replace(bUe,"\\n").replace(xUe,"\\r").replace(wUe,"\\t"))+'"'}var CUe=/~/g,SUe=/\//g;function kN(t){return t.replace(CUe,"~0").replace(SUe,"~1")}function DN(t){return(DN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function TN(t){var n="function"==typeof Map?new Map:void 0;return TN=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return EN(e,arguments,$_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),B_(r,e)},TN(t)}function EN(t,n,e){return(EN=QZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&B_(a,o.prototype),a}).apply(null,arguments)}function QZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B_(t,n){return(B_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function $_(t){return($_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var sp=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&B_(l,c)}(a,TN(Error));var n,e,i,s=(n=a,e=QZ(),function(){var l,c=$_(n);if(e){var u=$_(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function kUe(t,n){if(n&&("object"===DN(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function fS(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function pS(t){return t>=48&&t<=57}function DUe(t){return t>=32&&t<=1114111}var TUe=/^[,:[\]{}()\n]$/;function ZZ(t){return EUe.test(t)||t&&gS(t.charCodeAt(0))}var EUe=/^[[{\w-]$/;function AUe(t){return 10===t||13===t||9===t||8===t||12===t}function mS(t){return 32===t||10===t||9===t||13===t}function MUe(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function gS(t){return eee(t)||AN(t)}function eee(t){return 34===t||8220===t||8221===t}function AN(t){return 39===t||8216===t||8217===t||96===t||180===t}function V_(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function Hm(t,n){var e=t.length;if(!mS(t.charCodeAt(e-1)))return t+n;for(;mS(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function OUe(t,n,e){return t.substring(0,n)+t.substring(n+e)}var IUe={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},NUe={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Kd(t){var n=0,e="";r()||function(){throw new sp("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),ZZ(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=Hm(e,",")),function(){for(var b=!0,C=!0;C;)b?b=!1:l(44)||(e=Hm(e,",")),C=r();C||(e=V_(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=V_(e,",")),n>=t.length)return e;function r(){o();var b=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var C=!0;n=49&&D<=57)for(n++;pS(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(C);pS(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(C);pS(t.charCodeAt(n));)n++;return n>C&&(e+=t.slice(C,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),b}function o(){var b=n,C=s();do{(C=a())&&(C=s())}while(C);return n>b}function s(){for(var b,C="";(b=mS(t.charCodeAt(n)))||MUe(t.charCodeAt(n));)C+=b?t[n]:" ",n++;return C.length>0&&(e+=C,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nC){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;mS(t.charCodeAt(n-1))&&n>0;)n--;var D=t.slice(C,n);return e+=JSON.stringify(D),!0}}function f(b){if(!pS(t.charCodeAt(n))){var C=t.slice(b,n);throw new sp("Invalid number '".concat(C,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(b){throw new sp("Invalid character "+JSON.stringify(b),n)}function m(){throw new sp("Object key expected",n)}function g(){throw new sp("Object value expected",n)}function v(){throw new sp("Colon expected",n)}function y(b){for(var C=b+2;/\w/.test(t[C]);)C++;var D=t.slice(b,C);throw new sp('Invalid unicode character "'.concat(D,'"'),n)}!function(){throw new sp("Unexpected character "+JSON.stringify(t[n]),n)}()}function FUe(t,n){return"*"===t[n]&&"/"===t[n+1]}function Ys(t){return parseInt(t,10)}function MN(t){return PUe.test(t)}var PUe=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Io(t){return"object"===wn(t)&&null!==t&&t.constructor===Object}function zo(t){return"object"===wn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function ON(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return ON(Number(t));try{var n=t&&t.valueOf();if(n!==t)return ON(n)}catch{return!1}return!1}function tee(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function IN(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return wn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Io(t))return"object";var e=n.stringify(t);return e&&MN(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var RUe=/^https?:\/\/\S+$/;function vS(t){return"string"==typeof t&&RUe.test(t)}function e0(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&(MN(e)?n.parse(e):t)}var jUe=/^-?[0-9]+$/,iee="object"==(typeof global>"u"?"undefined":wn(global))&&global&&global.Object===Object&&global,LUe="object"==(typeof self>"u"?"undefined":wn(self))&&self&&self.Object===Object&&self,Oa=iee||LUe||Function("return this")(),hl=Oa.Symbol,ree=Object.prototype,BUe=ree.hasOwnProperty,$Ue=ree.toString,H_=hl?hl.toStringTag:void 0,VUe=Object.prototype.toString,oee=hl?hl.toStringTag:void 0;function Ol(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":oee&&oee in Object(t)?function(n){var e=BUe.call(n,H_),i=n[H_];try{n[H_]=void 0;var r=!0}catch{}var o=$Ue.call(n);return r&&(e?n[H_]=i:delete n[H_]),o}(t):VUe.call(t)}function as(t){return null!=t&&"object"==wn(t)}function nc(t){return"symbol"==wn(t)||as(t)&&"[object Symbol]"==Ol(t)}function see(t){return"number"==typeof t?t:nc(t)?NaN:+t}function Ko(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var wee=xee(gee),uze=/\{\n\/\* \[wrapped with (.+)\] \*/,dze=/,? & /,hze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function CS(t){return function(){return t}}var fze=function(){try{var t=zm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),SS=fze,pze=SS?function(t,n){return SS(t,"toString",{configurable:!0,enumerable:!1,value:CS(n),writable:!0})}:fl,PN=xee(pze);function ru(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var mze=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function See(t,n,e){var o,i=n+"";return PN(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(hze,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return ru(mze,function(s){var a="_."+s[0];o&s[1]&&!DS(r,a)&&r.push(a)}),r.sort()}((o=i.match(uze))?o[1].split(dze):[],e)))}function kee(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return FN(t)&&wee(h,d),h.placeholder=i,See(h,t,n)}function o0(t){return t.placeholder}var gze=/^(?:0|[1-9]\d*)$/;function lf(t,n){var e=wn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&gze.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Il(t){return null!=t&&W_(t.length)&&!Zd(t)}function Nl(t,n,e){if(!Go(e))return!1;var i=wn(n);return!!("number"==i?Il(e)&&lf(n,e.length):"string"==i&&n in e)&&ou(e[n],t)}function s0(t){return mr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&Nl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,Iee=Oee&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,Nee=Iee&&Iee.exports===Oee?Oa.Buffer:void 0,df=(Nee?Nee.isBuffer:void 0)||ES,Wo={};function Ic(t){return function(n){return t(n)}}Wo["[object Float32Array]"]=Wo["[object Float64Array]"]=Wo["[object Int8Array]"]=Wo["[object Int16Array]"]=Wo["[object Int32Array]"]=Wo["[object Uint8Array]"]=Wo["[object Uint8ClampedArray]"]=Wo["[object Uint16Array]"]=Wo["[object Uint32Array]"]=!0,Wo["[object Arguments]"]=Wo["[object Array]"]=Wo["[object ArrayBuffer]"]=Wo["[object Boolean]"]=Wo["[object DataView]"]=Wo["[object Date]"]=Wo["[object Error]"]=Wo["[object Function]"]=Wo["[object Map]"]=Wo["[object Number]"]=Wo["[object Object]"]=Wo["[object RegExp]"]=Wo["[object Set]"]=Wo["[object String]"]=Wo["[object WeakMap]"]=!1;var Fee="object"==(typeof exports>"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,Y_=Fee&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,LN=Y_&&Y_.exports===Fee&&iee.process,su=function(){try{return Y_&&Y_.require&&Y_.require("util").types||LN&&LN.binding&&LN.binding("util")}catch{}}(),Pee=su&&su.isTypedArray,Gm=Pee?Ic(Pee):function(t){return as(t)&&W_(t.length)&&!!Wo[Ol(t)]},kze=Object.prototype.hasOwnProperty;function Ree(t,n){var e=Ui(t),i=!e&&lp(t),r=!e&&!i&&df(t),o=!e&&!i&&!r&&Gm(t),s=e||i||r||o,a=s?jN(t.length,String):[],l=a.length;for(var c in t)!n&&!kze.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||lf(c,l))||a.push(c);return a}function jee(t,n){return function(e){return t(n(e))}}var Dze=jee(Object.keys,Object),Tze=Object.prototype.hasOwnProperty;function BN(t){if(!q_(t))return Dze(t);var n=[];for(var e in Object(t))Tze.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Xs(t){return Il(t)?Ree(t):BN(t)}var Eze=Object.prototype.hasOwnProperty,Aze=s0(function(t,n){if(q_(n)||Il(n))eh(n,Xs(n),t);else for(var e in n)Eze.call(n,e)&&G_(t,e,n[e])}),Lee=Aze,Mze=Object.prototype.hasOwnProperty;function Fl(t){return Il(t)?Ree(t,!0):function Oze(t){if(!Go(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=q_(t),e=[];for(var i in t)("constructor"!=i||!n&&Mze.call(t,i))&&e.push(i);return e}(t)}var Ize=s0(function(t,n){eh(n,Fl(n),t)}),AS=Ize,Nze=s0(function(t,n,e,i){eh(n,Fl(n),t,i)}),a0=Nze,Fze=s0(function(t,n,e,i){eh(n,Xs(n),t,i)}),Bee=Fze,Pze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rze=/^\w*$/;function $N(t,n){if(Ui(t))return!1;var e=wn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!nc(t))||Rze.test(t)||!Pze.test(t)||null!=n&&t in Object(n)}var X_=zm(Object,"create"),jze=Object.prototype.hasOwnProperty,Lze=Object.prototype.hasOwnProperty;function Wm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},hf.prototype.set=function(t,n){var e=this.__data__,i=MS(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var J_=zm(Oa,"Map");function OS(t,n){var i,r,e=t.__data__;return("string"==(r=wn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function ff(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?Ga(a,n-1,e,i,r):up(r,a):i||(r[r.length]=a)}return r}function HN(t){return null!=t&&t.length?Ga(t,1):[]}function pf(t){return PN(Eee(t,void 0,HN),t+"")}var Hee=pf(VN),NS=jee(Object.getPrototypeOf,Object),Uee=Function.prototype.toString,Wze=Object.prototype.hasOwnProperty,qze=Uee.call(Object);function c0(t){if(!as(t)||"[object Object]"!=Ol(t))return!1;var n=NS(t);if(null===n)return!0;var e=Wze.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Uee.call(e)==qze}function FS(t){if(!as(t))return!1;var n=Ol(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!c0(t)}var Yze=mr(function(t,n){try{return Oc(t,void 0,n)}catch(e){return FS(e)?e:new Error(e)}}),UN=Yze;function zN(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Qi(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var GN=mr(function(t,n,e){var i=1;if(e.length){var r=ap(e,o0(GN));i|=32}return cf(t,i,n,e,r)});GN.placeholder={};var WN=GN,Xze=pf(function(t,n){return ru(n,function(e){e=th(e),uf(t,e,WN(t[e],t))}),t}),zee=Xze,qN=mr(function(t,n,e){var i=3;if(e.length){var r=ap(e,o0(qN));i|=32}return cf(n,i,t,e,r)});qN.placeholder={};var Gee=qN;function au(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:au(t,n,e)}var Jze=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function u0(t){return Jze.test(t)}var YN="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",XN="\\ud83c[\\udffb-\\udfff]",Wee="[^\\ud800-\\udfff]",qee="(?:\\ud83c[\\udde6-\\uddff]){2}",Yee="[\\ud800-\\udbff][\\udc00-\\udfff]",Xee="(?:"+YN+"|"+XN+")?",Qze="[\\ufe0e\\ufe0f]?"+Xee+"(?:\\u200d(?:"+[Wee,qee,Yee].join("|")+")[\\ufe0e\\ufe0f]?"+Xee+")*",Zze="(?:"+[Wee+YN+"?",YN,qee,Yee,"[\\ud800-\\udfff]"].join("|")+")",eGe=RegExp(XN+"(?="+XN+")|"+Zze+Qze,"g");function nd(t){return u0(t)?function(n){return n.match(eGe)||[]}(t):function(n){return n.split("")}(t)}function Jee(t){return function(n){var e=u0(n=Zr(n))?nd(n):void 0,i=e?e[0]:n.charAt(0),r=e?dp(e,1).join(""):n.slice(1);return i[t]()+r}}var PS=Jee("toUpperCase");function JN(t){return PS(Zr(t).toLowerCase())}function KN(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function ute(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=Mc(e))==e?e:0),void 0!==n&&(n=(n=Mc(n))==n?n:0),Ym(Mc(t),n,e)}function id(t){var n=this.__data__=new hf(t);this.size=n.size}function dte(t,n){return t&&eh(n,Xs(n),t)}id.prototype.clear=function(){this.__data__=new hf,this.size=0},id.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},id.prototype.get=function(t){return this.__data__.get(t)},id.prototype.has=function(t){return this.__data__.has(t)},id.prototype.set=function(t,n){var e=this.__data__;if(e instanceof hf){var i=e.__data__;if(!J_||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new ff(i)}return e.set(t,n),this.size=e.size,this};var hte="object"==(typeof exports>"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,fte=hte&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,pte=fte&&fte.exports===hte?Oa.Buffer:void 0,mte=pte?pte.allocUnsafe:void 0;function gte(t,n){if(n)return t.slice();var e=t.length,i=mte?mte(e):new t.constructor(e);return t.copy(i),i}function hp(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Jm:void 0;for(o.set(t,n),o.set(n,t);++d=n||C<0||d&&b-c>=o}function g(){var C,D,b=Z_();if(m(b))return v(b);a=setTimeout(g,(D=n-((C=b)-l),d?RGe(D,o-(C-c)):D))}function v(b){return a=void 0,h&&i?f(b):(i=r=void 0,s)}function y(){var b=Z_(),C=m(b);if(i=arguments,r=this,l=b,C){if(void 0===a)return function p(b){return c=b,a=setTimeout(g,n),u?f(b):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=Mc(n)||0,Go(e)&&(u=!!e.leading,o=(d="maxWait"in e)?PGe(Mc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Z_())},y}function qte(t,n){return null==t||t!=t?n:t}var Yte=Object.prototype,jGe=Yte.hasOwnProperty,LGe=mr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&Nl(n[0],n[1],r)&&(i=1);++e=200&&(o=K_,s=!1,n=new Jm(n));e:for(;++r=0&&t.slice(e,r)==n}function hne(t){return function(n){var i,r,o,e=nh(n);return"[object Map]"==e?pF(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return Ko(r,function(o){return[o,i[o]]})}(n,t(n))}}var qS=hne(Xs),YS=hne(Fl),WGe=QN({"&":"&","<":"<",">":">",'"':""","'":"'"}),fne=/[&<>"']/g,qGe=RegExp(fne.source);function TF(t){return(t=Zr(t))&&qGe.test(t)?t.replace(fne,WGe):t}var pne=/[\\^$.*+?()[\]{}|]/g,YGe=RegExp(pne.source);function mne(t){return(t=Zr(t))&&YGe.test(t)?t.replace(pne,"\\$&"):t}function gne(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Qi(l))<0&&(l+=c),l=a>l?0:EF(l);a-1?r[o?n[s]:s]:void 0}}var JGe=Math.max;function AF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Qi(e);return r<0&&(r=JGe(i+r,0)),kS(t,zi(n),r)}var wne=xne(AF);function Cne(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function Sne(t,n){return Cne(t,zi(n),ih)}var KGe=Math.max,QGe=Math.min;function MF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Qi(e),r=e<0?KGe(i+r,0):QGe(r,i-1)),kS(t,zi(n),r,!0)}var kne=xne(MF);function Dne(t,n){return Cne(t,zi(n),DF)}function va(t){return t&&t.length?t[0]:void 0}function Tne(t,n){var e=-1,i=Il(t)?Array(t.length):[];return fp(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function m0(t,n){return(Ui(t)?Ko:Tne)(t,zi(n))}function Ene(t,n){return Ga(m0(t,n),1)}function Ane(t,n){return Ga(m0(t,n),1/0)}function Mne(t,n,e){return e=void 0===e?1:Qi(e),Ga(m0(t,n),e)}function One(t){return null!=t&&t.length?Ga(t,1/0):[]}function Ine(t,n){return null!=t&&t.length?Ga(t,n=void 0===n?1:Qi(n)):[]}function Nne(t){return cf(t,512)}var Fne=tF("floor");function Pne(t){return pf(function(n){var e=n.length,i=e,r=iu.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==wS(o))var s=new iu([],!0)}for(i=s?i:e;++in}function JS(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=Mc(n),e=Mc(e)),t(n,e)}}var Gne=JS(OF),Wne=JS(function(t,n){return t>=n}),tWe=Object.prototype.hasOwnProperty;function nWe(t,n){return null!=t&&tWe.call(t,n)}function qne(t,n){return null!=t&&jte(t,n,nWe)}var iWe=Math.max,rWe=Math.min;function Yne(t,n,e){return n=Qd(n),void 0===e?(e=n,n=0):e=Qd(e),(i=t=Mc(t))>=rWe(r=n,o=e)&&i-1:!!r&&r0(t,n,e)>-1}var sWe=Math.max;function Jne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Qi(e);return r<0&&(r=sWe(i+r,0)),r0(t,n,r)}function tr(t){return null!=t&&t.length?au(t,0,-1):[]}var aWe=Math.min;function NF(t,n,e){for(var i=e?kF:DS,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=Ko(u,Ic(n))),l=aWe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Jm(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function Cie(t){return void 0===t}function Sie(t){return as(t)&&"[object WeakMap]"==nh(t)}function kie(t){return as(t)&&"[object WeakSet]"==Ol(t)}function Die(t){return zi("function"==typeof t?t:lu(t,1))}var yWe=Array.prototype.join;function Tie(t,n){return null==t?"":yWe.call(t,n)}var _We=h0(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),Eie=_We,bWe=VS(function(t,n,e){uf(t,e,n)}),Aie=bWe,xWe=Math.max,wWe=Math.min;function Mie(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Qi(e))<0?xWe(i+r,0):wWe(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):kS(t,Cee,r,!0)}var CWe=h0(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Oie=CWe,Iie=Jee("toLowerCase");function jF(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function Yie(t,n){var e=t.length;if(e)return lf(n+=n<0?e:0,e)?t[n]:void 0}function Xie(t,n){return t&&t.length?Yie(t,Qi(n)):void 0}function Jie(t){return t=Qi(t),mr(function(n){return Yie(n,t)})}function zF(t,n){return null==(t=rie(t,n=cp(n,t)))||delete t[th(Bn(n))]}function TWe(t){return c0(t)?void 0:t}var EWe=pf(function(t,n){var e={};if(null==t)return e;var i=!1;n=Ko(n,function(o){return o=cp(o,t),i||(i=o.length>1),o}),eh(t,oF(t),e),i&&(e=lu(e,7,TWe));for(var r=n.length;r--;)zF(e,n[r]);return e}),Kie=EWe;function rb(t,n,e,i){if(!Go(t))return t;for(var r=-1,o=(n=cp(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(Tne(t,function(o,s,a){return{criteria:Ko(n,function(c){return c(o)}),index:++i,value:o}}))}function ire(t,n,e,i){return null==t?[]:(Ui(n)||(n=null==n?[]:[n]),Ui(e=i?void 0:e)||(e=null==e?[]:[e]),nre(t,n,e))}function WF(t){return pf(function(n){return n=Ko(n,Ic(zi)),mr(function(e){var i=this;return t(n,function(r){return Oc(r,i,e)})})})}var rre=WF(Ko),MWe=Math.min,OWe=mr(function(t,n){var e=(n=1==n.length&&Ui(n[0])?Ko(n[0],Ic(zi)):Ko(Ga(n,1),Ic(zi))).length;return mr(function(i){for(var r=-1,o=MWe(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=IWe(n/2))&&(t+=t)}while(n);return e}var NWe=yF("length"),YF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",XF="\\ud83c[\\udffb-\\udfff]",lre="[^\\ud800-\\udfff]",cre="(?:\\ud83c[\\udde6-\\uddff]){2}",ure="[\\ud800-\\udbff][\\udc00-\\udfff]",dre="(?:"+YF+"|"+XF+")?",PWe="[\\ufe0e\\ufe0f]?"+dre+"(?:\\u200d(?:"+[lre,cre,ure].join("|")+")[\\ufe0e\\ufe0f]?"+dre+")*",RWe="(?:"+[lre+YF+"?",YF,cre,ure,"[\\ud800-\\udfff]"].join("|")+")",hre=RegExp(XF+"(?="+XF+")|"+RWe+PWe,"g");function _0(t){return u0(t)?function(n){for(var e=hre.lastIndex=0;hre.test(n);)++e;return e}(t):NWe(t)}var jWe=Math.ceil;function ZS(t,n){var e=(n=void 0===n?" ":Ac(n)).length;if(e<2)return e?qF(n,t):n;var i=qF(n,jWe(t/_0(n)));return u0(n)?dp(nd(i),0,t).join(""):i.slice(0,t)}var LWe=Math.ceil,BWe=Math.floor;function fre(t,n,e){t=Zr(t);var i=(n=Qi(n))?_0(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return ZS(BWe(r),e)+t+ZS(LWe(r),e)}function pre(t,n,e){t=Zr(t);var i=(n=Qi(n))?_0(t):0;return n&&i-1;)a!==t&&bre.call(a,l,1),bre.call(t,l,1);return t}function nP(t,n){return t&&t.length&&n&&n.length?tP(t,n):t}var xre=mr(nP);function wre(t,n,e){return t&&t.length&&n&&n.length?tP(t,n,zi(e)):t}function Cre(t,n,e){return t&&t.length&&n&&n.length?tP(t,n,void 0,e):t}var GWe=Array.prototype.splice;function Sre(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;lf(r)?GWe.call(t,r,1):zF(t,r)}}return t}var WWe=pf(function(t,n){var e=null==t?0:t.length,i=VN(t,n);return Sre(t,Ko(n,function(r){return lf(r,e)?+r:r}).sort(tre)),i}),kre=WWe,qWe=Math.floor,YWe=Math.random;function iP(t,n){return t+qWe(YWe()*(n-t+1))}var XWe=parseFloat,JWe=Math.min,KWe=Math.random;function Dre(t,n,e){if(e&&"boolean"!=typeof e&&Nl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Qd(t),void 0===n?(n=t,t=0):n=Qd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=KWe();return JWe(t+r*(n-t+XWe("1e-"+((r+"").length-1))),n)}return iP(t,n)}var QWe=Math.ceil,ZWe=Math.max;function Tre(t){return function(n,e,i){return i&&"number"!=typeof i&&Nl(n,e,i)&&(e=i=void 0),n=Qd(n),void 0===e?(e=n,n=0):e=Qd(e),function(r,o,s,a){for(var l=-1,c=ZWe(QWe((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&Nl(t,n[0],n[1])?n=[]:e>2&&Nl(n[0],n[1],n[2])&&(n=[n[0]]),nre(t,Ga(n,1),[])}),oP=uqe,dqe=Math.floor,hqe=Math.min;function sP(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=nc(n),c=void 0===n;r>>1,s=t[o];null!==s&&!nc(s)&&(e?s<=n:s>>0)?(t=Zr(t))&&("string"==typeof n||null!=n&&!KS(n))&&!(n=Ac(n))&&u0(t)?dp(nd(t),0,e):t.split(n,e):[]}var fqe=Math.max;function soe(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:fqe(Qi(n),0),mr(function(e){var i=e[n],r=dp(e,0,n);return i&&up(r,i),Oc(t,this,r)})}var pqe=h0(function(t,n,e){return t+(e?" ":"")+PS(n)}),aoe=pqe;function loe(t,n,e){return t=Zr(t),e=null==e?0:Ym(Qi(e),0,t.length),n=Ac(n),t.slice(e,e+n.length)==n}function coe(){return{}}function uoe(){return""}function doe(){return!0}var hoe=yS(function(t,n){return t-n},0);function foe(t){return t&&t.length?BF(t,fl):0}function poe(t,n){return t&&t.length?BF(t,zi(n)):0}function moe(t){var n=null==t?0:t.length;return n?au(t,1,n):[]}function goe(t,n,e){return t&&t.length?au(t,0,(n=e||void 0===n?1:Qi(n))<0?0:n):[]}function voe(t,n,e){var i=null==t?0:t.length;return i?au(t,(n=i-(n=e||void 0===n?1:Qi(n)))<0?0:n,i):[]}function yoe(t,n){return t&&t.length?GS(t,zi(n),!1,!0):[]}function _oe(t,n){return t&&t.length?GS(t,zi(n)):[]}function boe(t,n){return n(t),t}var xoe=Object.prototype,mqe=xoe.hasOwnProperty;function woe(t,n,e,i){return void 0===t||ou(t,xoe[e])&&!mqe.call(i,e)?n:t}var gqe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function vqe(t){return"\\"+gqe[t]}var Coe=/<%=([\s\S]+?)%>/g,ik={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Coe,variable:"",imports:{_:{escape:TF}}},yqe=/\b__p \+= '';/g,_qe=/\b(__p \+=) '' \+/g,bqe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xqe=/[()=,{}\[\]\/\s]/,wqe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rk=/($^)/,Cqe=/['\n\r\u2028\u2029\\]/g,Soe=Object.prototype.hasOwnProperty;function koe(t,n,e){var i=ik.imports._.templateSettings||ik;e&&Nl(t,n,e)&&(n=void 0),t=Zr(t),n=a0({},n,i,woe);var r,o,s=a0({},n.imports,i.imports,woe),a=Xs(s),l=IF(s,a),c=0,u=n.interpolate||rk,d="__p += '",h=RegExp((n.escape||rk).source+"|"+u.source+"|"+(u===Coe?wqe:rk).source+"|"+(n.evaluate||rk).source+"|$","g"),f=Soe.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,b,C,D){return y||(y=b),d+=t.slice(c,D).replace(Cqe,vqe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),C&&(o=!0,d+="';\n"+C+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=D+g.length,g}),d+="';\n";var p=Soe.call(n,"variable")&&n.variable;if(p){if(xqe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(yqe,""):d).replace(_qe,"$1").replace(bqe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=UN(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,FS(m))throw m;return m}function aP(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Go(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),p0(t,n,{leading:i,maxWait:n,trailing:r})}function b0(t,n){return n(t)}var Sqe=Math.min;function lP(t,n){if((t=Qi(t))<1||t>9007199254740991)return[];var e=4294967295,i=Sqe(t,4294967295);t-=4294967295;for(var r=jN(i,n=rh(n));++e-1;);return e}function Noe(t,n){for(var e=-1,i=t.length;++e-1;);return e}function Foe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return dee(t);if(!t||!(n=Ac(n)))return t;var i=nd(t),r=nd(n);return dp(i,Noe(i,r),Ioe(i,r)+1).join("")}function Poe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return t.slice(0,uee(t)+1);if(!t||!(n=Ac(n)))return t;var i=nd(t);return dp(i,0,Ioe(i,nd(n))+1).join("")}var kqe=/^\s+/;function Roe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return t.replace(kqe,"");if(!t||!(n=Ac(n)))return t;var i=nd(t);return dp(i,Noe(i,nd(n))).join("")}var Dqe=/\w*$/;function joe(t,n){var e=30,i="...";if(Go(n)){var r="separator"in n?n.separator:r;e="length"in n?Qi(n.length):e,i="omission"in n?Ac(n.omission):i}var o=(t=Zr(t)).length;if(u0(t)){var s=nd(t);o=s.length}if(e>=o)return t;var a=e-_0(i);if(a<1)return i;var l=s?dp(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),KS(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Zr(Dqe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(Ac(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function Loe(t){return RN(t,1)}var Tqe=QN({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Boe=/&(?:amp|lt|gt|quot|#39);/g,Eqe=RegExp(Boe.source);function $oe(t){return(t=Zr(t))&&Eqe.test(t)?t.replace(Boe,Tqe):t}var Aqe=f0&&1/LS(new f0([,-0]))[1]==1/0?function(t){return new f0(t)}:bo,Mqe=Aqe;function pp(t,n,e){var i=-1,r=DS,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=kF;else if(o>=200){var c=n?null:Mqe(t);if(c)return LS(c);s=!1,r=K_,l=new Jm}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Ir&&lf(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:b0,args:[r],thisArg:void 0}),new iu(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),tse=Rqe;function nse(){return nF(this)}function ise(){var t=this.__wrapped__;if(t instanceof Ir){var n=t;return this.__actions__.length&&(n=new Ir(this)),(n=n.reverse()).__actions__.push({func:b0,args:[ek],thisArg:void 0}),new iu(n,this.__chain__)}return this.thru(ek)}function dP(t,n,e){var i=t.length;if(i<2)return i?pp(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,uP(t,e)}),dse=Lqe,Kn={chunk:cte,compact:Ate,concat:Mte,difference:tne,differenceBy:nne,differenceWith:ine,drop:one,dropRight:sne,dropRightWhile:ane,dropWhile:lne,fill:yne,findIndex:AF,findLastIndex:MF,first:va,flatten:HN,flattenDeep:One,flattenDepth:Ine,fromPairs:Hne,head:va,indexOf:Jne,initial:tr,intersection:Kne,intersectionBy:Qne,intersectionWith:Zne,join:Tie,last:Bn,lastIndexOf:Mie,nth:Xie,pull:xre,pullAll:nP,pullAllBy:wre,pullAllWith:Cre,pullAt:kre,remove:Fre,reverse:ek,slice:qre,sortedIndex:Jre,sortedIndexBy:Kre,sortedIndexOf:Qre,sortedLastIndex:Zre,sortedLastIndexBy:eoe,sortedLastIndexOf:toe,sortedUniq:ioe,sortedUniqBy:roe,tail:moe,take:goe,takeRight:voe,takeRightWhile:yoe,takeWhile:_oe,union:Voe,unionBy:Hoe,unionWith:Uoe,uniq:zoe,uniqBy:Goe,uniqWith:Woe,unzip:ok,unzipWith:uP,without:Zoe,xor:rse,xorBy:ose,xorWith:sse,zip:ase,zipObject:cse,zipObjectDeep:use,zipWith:dse},xo={countBy:Gte,each:WS,eachRight:tb,every:vne,filter:bne,find:wne,findLast:kne,flatMap:Ene,flatMapDeep:Ane,flatMapDepth:Mne,forEach:WS,forEachRight:tb,groupBy:g0,includes:Xne,invokeMap:sie,keyBy:Aie,map:m0,orderBy:ire,partition:ZF,reduce:Ore,reduceRight:Ire,reject:Nre,sample:Vre,sampleSize:Hre,shuffle:Gre,size:Wre,some:Xre,sortBy:oP},Bqe={now:Z_},xs={after:hee,ary:RN,before:zN,bind:WN,bindKey:Gee,curry:HS,curryRight:US,debounce:p0,defer:Zte,delay:ene,flip:Nne,memoize:l0,negate:y0,once:ere,overArgs:ore,partial:KF,partialRight:vre,rearg:Are,rest:jre,spread:soe,throttle:aP,unary:Loe,wrap:ese},bi={castArray:ate,clone:Dte,cloneDeep:Tte,cloneDeepWith:dF,cloneWith:Ete,conformsTo:Hte,eq:ou,gt:Gne,gte:Wne,isArguments:lp,isArray:Ui,isArrayBuffer:lie,isArrayLike:Il,isArrayLikeObject:bs,isBoolean:cie,isBuffer:df,isDate:die,isElement:hie,isEmpty:Ji,isEqual:dr,isEqualWith:fie,isError:FS,isFinite:pie,isFunction:Zd,isInteger:PF,isLength:W_,isMap:cF,isMatch:mie,isMatchWith:gie,isNaN:vie,isNative:yie,isNil:_ie,isNull:bie,isNumber:RF,isObject:Go,isObjectLike:as,isPlainObject:c0,isRegExp:KS,isSafeInteger:wie,isSet:uF,isString:nb,isSymbol:nc,isTypedArray:Gm,isUndefined:Cie,isWeakMap:Sie,isWeakSet:kie,lt:Nie,lte:Fie,toArray:HF,toFinite:Qd,toInteger:Qi,toLength:EF,toNumber:Mc,toPlainObject:CF,toSafeInteger:Aoe,toString:Zr},Pl={add:cee,ceil:lte,divide:rne,floor:Fne,max:Lie,maxBy:Bie,mean:Vie,meanBy:Hie,min:Wie,minBy:v0,multiply:qie,round:Bre,subtract:hoe,sum:foe,sumBy:poe},$qe=ute,Vqe=Yne,Hqe=Dre,Li={assign:Lee,assignIn:AS,assignInWith:a0,assignWith:Bee,at:Hee,create:Wte,defaults:Xte,defaultsDeep:Kte,entries:qS,entriesIn:YS,extend:AS,extendWith:a0,findKey:Sne,findLastKey:Dne,forIn:Lne,forInRight:Bne,forOwn:$ne,forOwnRight:Vne,functions:Une,functionsIn:zne,get:IS,has:qne,hasIn:$S,invert:tie,invertBy:iie,invoke:oie,keys:Xs,keysIn:Fl,mapKeys:Pie,mapValues:LF,merge:Uie,mergeWith:SF,omit:Kie,omitBy:Zie,pick:yre,pickBy:GF,result:Lre,set:Ure,setWith:zre,toPairs:qS,toPairsIn:YS,transform:Ooe,unset:qoe,update:Xoe,updateWith:Joe,values:Km,valuesIn:Qoe},oh={at:tse,chain:nF,commit:hF,lodash:Ce,next:UF,plant:eP,reverse:ise,tap:boe,thru:b0,toIterator:cP,toJSON:Qm,value:Qm,valueOf:Qm,wrapperChain:nse},eo={camelCase:ste,capitalize:JN,deburr:ZN,endsWith:dne,escape:TF,escapeRegExp:mne,kebabCase:Eie,lowerCase:Oie,lowerFirst:Iie,pad:fre,padEnd:pre,padStart:mre,parseInt:gre,repeat:Pre,replace:Rre,snakeCase:Yre,split:ooe,startCase:aoe,startsWith:loe,template:koe,templateSettings:ik,toLower:Toe,toUpper:Moe,trim:Foe,trimEnd:Poe,trimStart:Roe,truncate:joe,unescape:$oe,upperCase:Koe,upperFirst:PS,words:eF},lo={attempt:UN,bindAll:zee,cond:Bte,conforms:Vte,constant:CS,defaultTo:qte,flow:Rne,flowRight:jne,identity:fl,iteratee:Die,matches:Rie,matchesProperty:jie,method:zie,methodOf:Gie,mixin:$F,noop:bo,nthArg:Jie,over:rre,overEvery:sre,overSome:are,property:_F,propertyOf:_re,range:rP,rangeRight:Ere,stubArray:RS,stubFalse:ES,stubObject:coe,stubString:uoe,stubTrue:doe,times:lP,toPath:Eoe,uniqueId:mp},Uqe=Math.max,zqe=Math.min,Gqe=Math.min,Wqe=Array.prototype,hse=Object.prototype.hasOwnProperty,fse=hl?hl.iterator:void 0,qqe=Math.max,pse=Math.min,fP=function(t){return function(n,e,i){if(null==i){var r=Go(e),o=r&&Xs(e),s=o&&o.length&&XS(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}($F);Ce.after=xs.after,Ce.ary=xs.ary,Ce.assign=Li.assign,Ce.assignIn=Li.assignIn,Ce.assignInWith=Li.assignInWith,Ce.assignWith=Li.assignWith,Ce.at=Li.at,Ce.before=xs.before,Ce.bind=xs.bind,Ce.bindAll=lo.bindAll,Ce.bindKey=xs.bindKey,Ce.castArray=bi.castArray,Ce.chain=oh.chain,Ce.chunk=Kn.chunk,Ce.compact=Kn.compact,Ce.concat=Kn.concat,Ce.cond=lo.cond,Ce.conforms=lo.conforms,Ce.constant=lo.constant,Ce.countBy=xo.countBy,Ce.create=Li.create,Ce.curry=xs.curry,Ce.curryRight=xs.curryRight,Ce.debounce=xs.debounce,Ce.defaults=Li.defaults,Ce.defaultsDeep=Li.defaultsDeep,Ce.defer=xs.defer,Ce.delay=xs.delay,Ce.difference=Kn.difference,Ce.differenceBy=Kn.differenceBy,Ce.differenceWith=Kn.differenceWith,Ce.drop=Kn.drop,Ce.dropRight=Kn.dropRight,Ce.dropRightWhile=Kn.dropRightWhile,Ce.dropWhile=Kn.dropWhile,Ce.fill=Kn.fill,Ce.filter=xo.filter,Ce.flatMap=xo.flatMap,Ce.flatMapDeep=xo.flatMapDeep,Ce.flatMapDepth=xo.flatMapDepth,Ce.flatten=Kn.flatten,Ce.flattenDeep=Kn.flattenDeep,Ce.flattenDepth=Kn.flattenDepth,Ce.flip=xs.flip,Ce.flow=lo.flow,Ce.flowRight=lo.flowRight,Ce.fromPairs=Kn.fromPairs,Ce.functions=Li.functions,Ce.functionsIn=Li.functionsIn,Ce.groupBy=xo.groupBy,Ce.initial=Kn.initial,Ce.intersection=Kn.intersection,Ce.intersectionBy=Kn.intersectionBy,Ce.intersectionWith=Kn.intersectionWith,Ce.invert=Li.invert,Ce.invertBy=Li.invertBy,Ce.invokeMap=xo.invokeMap,Ce.iteratee=lo.iteratee,Ce.keyBy=xo.keyBy,Ce.keys=Xs,Ce.keysIn=Li.keysIn,Ce.map=xo.map,Ce.mapKeys=Li.mapKeys,Ce.mapValues=Li.mapValues,Ce.matches=lo.matches,Ce.matchesProperty=lo.matchesProperty,Ce.memoize=xs.memoize,Ce.merge=Li.merge,Ce.mergeWith=Li.mergeWith,Ce.method=lo.method,Ce.methodOf=lo.methodOf,Ce.mixin=fP,Ce.negate=y0,Ce.nthArg=lo.nthArg,Ce.omit=Li.omit,Ce.omitBy=Li.omitBy,Ce.once=xs.once,Ce.orderBy=xo.orderBy,Ce.over=lo.over,Ce.overArgs=xs.overArgs,Ce.overEvery=lo.overEvery,Ce.overSome=lo.overSome,Ce.partial=xs.partial,Ce.partialRight=xs.partialRight,Ce.partition=xo.partition,Ce.pick=Li.pick,Ce.pickBy=Li.pickBy,Ce.property=lo.property,Ce.propertyOf=lo.propertyOf,Ce.pull=Kn.pull,Ce.pullAll=Kn.pullAll,Ce.pullAllBy=Kn.pullAllBy,Ce.pullAllWith=Kn.pullAllWith,Ce.pullAt=Kn.pullAt,Ce.range=lo.range,Ce.rangeRight=lo.rangeRight,Ce.rearg=xs.rearg,Ce.reject=xo.reject,Ce.remove=Kn.remove,Ce.rest=xs.rest,Ce.reverse=Kn.reverse,Ce.sampleSize=xo.sampleSize,Ce.set=Li.set,Ce.setWith=Li.setWith,Ce.shuffle=xo.shuffle,Ce.slice=Kn.slice,Ce.sortBy=xo.sortBy,Ce.sortedUniq=Kn.sortedUniq,Ce.sortedUniqBy=Kn.sortedUniqBy,Ce.split=eo.split,Ce.spread=xs.spread,Ce.tail=Kn.tail,Ce.take=Kn.take,Ce.takeRight=Kn.takeRight,Ce.takeRightWhile=Kn.takeRightWhile,Ce.takeWhile=Kn.takeWhile,Ce.tap=oh.tap,Ce.throttle=xs.throttle,Ce.thru=b0,Ce.toArray=bi.toArray,Ce.toPairs=Li.toPairs,Ce.toPairsIn=Li.toPairsIn,Ce.toPath=lo.toPath,Ce.toPlainObject=bi.toPlainObject,Ce.transform=Li.transform,Ce.unary=xs.unary,Ce.union=Kn.union,Ce.unionBy=Kn.unionBy,Ce.unionWith=Kn.unionWith,Ce.uniq=Kn.uniq,Ce.uniqBy=Kn.uniqBy,Ce.uniqWith=Kn.uniqWith,Ce.unset=Li.unset,Ce.unzip=Kn.unzip,Ce.unzipWith=Kn.unzipWith,Ce.update=Li.update,Ce.updateWith=Li.updateWith,Ce.values=Li.values,Ce.valuesIn=Li.valuesIn,Ce.without=Kn.without,Ce.words=eo.words,Ce.wrap=xs.wrap,Ce.xor=Kn.xor,Ce.xorBy=Kn.xorBy,Ce.xorWith=Kn.xorWith,Ce.zip=Kn.zip,Ce.zipObject=Kn.zipObject,Ce.zipObjectDeep=Kn.zipObjectDeep,Ce.zipWith=Kn.zipWith,Ce.entries=Li.toPairs,Ce.entriesIn=Li.toPairsIn,Ce.extend=Li.assignIn,Ce.extendWith=Li.assignInWith,fP(Ce,Ce),Ce.add=Pl.add,Ce.attempt=lo.attempt,Ce.camelCase=eo.camelCase,Ce.capitalize=eo.capitalize,Ce.ceil=Pl.ceil,Ce.clamp=$qe,Ce.clone=bi.clone,Ce.cloneDeep=bi.cloneDeep,Ce.cloneDeepWith=bi.cloneDeepWith,Ce.cloneWith=bi.cloneWith,Ce.conformsTo=bi.conformsTo,Ce.deburr=eo.deburr,Ce.defaultTo=lo.defaultTo,Ce.divide=Pl.divide,Ce.endsWith=eo.endsWith,Ce.eq=bi.eq,Ce.escape=eo.escape,Ce.escapeRegExp=eo.escapeRegExp,Ce.every=xo.every,Ce.find=xo.find,Ce.findIndex=Kn.findIndex,Ce.findKey=Li.findKey,Ce.findLast=xo.findLast,Ce.findLastIndex=Kn.findLastIndex,Ce.findLastKey=Li.findLastKey,Ce.floor=Pl.floor,Ce.forEach=xo.forEach,Ce.forEachRight=xo.forEachRight,Ce.forIn=Li.forIn,Ce.forInRight=Li.forInRight,Ce.forOwn=Li.forOwn,Ce.forOwnRight=Li.forOwnRight,Ce.get=Li.get,Ce.gt=bi.gt,Ce.gte=bi.gte,Ce.has=Li.has,Ce.hasIn=Li.hasIn,Ce.head=Kn.head,Ce.identity=fl,Ce.includes=xo.includes,Ce.indexOf=Kn.indexOf,Ce.inRange=Vqe,Ce.invoke=Li.invoke,Ce.isArguments=bi.isArguments,Ce.isArray=Ui,Ce.isArrayBuffer=bi.isArrayBuffer,Ce.isArrayLike=bi.isArrayLike,Ce.isArrayLikeObject=bi.isArrayLikeObject,Ce.isBoolean=bi.isBoolean,Ce.isBuffer=bi.isBuffer,Ce.isDate=bi.isDate,Ce.isElement=bi.isElement,Ce.isEmpty=bi.isEmpty,Ce.isEqual=bi.isEqual,Ce.isEqualWith=bi.isEqualWith,Ce.isError=bi.isError,Ce.isFinite=bi.isFinite,Ce.isFunction=bi.isFunction,Ce.isInteger=bi.isInteger,Ce.isLength=bi.isLength,Ce.isMap=bi.isMap,Ce.isMatch=bi.isMatch,Ce.isMatchWith=bi.isMatchWith,Ce.isNaN=bi.isNaN,Ce.isNative=bi.isNative,Ce.isNil=bi.isNil,Ce.isNull=bi.isNull,Ce.isNumber=bi.isNumber,Ce.isObject=Go,Ce.isObjectLike=bi.isObjectLike,Ce.isPlainObject=bi.isPlainObject,Ce.isRegExp=bi.isRegExp,Ce.isSafeInteger=bi.isSafeInteger,Ce.isSet=bi.isSet,Ce.isString=bi.isString,Ce.isSymbol=bi.isSymbol,Ce.isTypedArray=bi.isTypedArray,Ce.isUndefined=bi.isUndefined,Ce.isWeakMap=bi.isWeakMap,Ce.isWeakSet=bi.isWeakSet,Ce.join=Kn.join,Ce.kebabCase=eo.kebabCase,Ce.last=Bn,Ce.lastIndexOf=Kn.lastIndexOf,Ce.lowerCase=eo.lowerCase,Ce.lowerFirst=eo.lowerFirst,Ce.lt=bi.lt,Ce.lte=bi.lte,Ce.max=Pl.max,Ce.maxBy=Pl.maxBy,Ce.mean=Pl.mean,Ce.meanBy=Pl.meanBy,Ce.min=Pl.min,Ce.minBy=Pl.minBy,Ce.stubArray=lo.stubArray,Ce.stubFalse=lo.stubFalse,Ce.stubObject=lo.stubObject,Ce.stubString=lo.stubString,Ce.stubTrue=lo.stubTrue,Ce.multiply=Pl.multiply,Ce.nth=Kn.nth,Ce.noop=lo.noop,Ce.now=Bqe.now,Ce.pad=eo.pad,Ce.padEnd=eo.padEnd,Ce.padStart=eo.padStart,Ce.parseInt=eo.parseInt,Ce.random=Hqe,Ce.reduce=xo.reduce,Ce.reduceRight=xo.reduceRight,Ce.repeat=eo.repeat,Ce.replace=eo.replace,Ce.result=Li.result,Ce.round=Pl.round,Ce.sample=xo.sample,Ce.size=xo.size,Ce.snakeCase=eo.snakeCase,Ce.some=xo.some,Ce.sortedIndex=Kn.sortedIndex,Ce.sortedIndexBy=Kn.sortedIndexBy,Ce.sortedIndexOf=Kn.sortedIndexOf,Ce.sortedLastIndex=Kn.sortedLastIndex,Ce.sortedLastIndexBy=Kn.sortedLastIndexBy,Ce.sortedLastIndexOf=Kn.sortedLastIndexOf,Ce.startCase=eo.startCase,Ce.startsWith=eo.startsWith,Ce.subtract=Pl.subtract,Ce.sum=Pl.sum,Ce.sumBy=Pl.sumBy,Ce.template=eo.template,Ce.times=lo.times,Ce.toFinite=bi.toFinite,Ce.toInteger=Qi,Ce.toLength=bi.toLength,Ce.toLower=eo.toLower,Ce.toNumber=bi.toNumber,Ce.toSafeInteger=bi.toSafeInteger,Ce.toString=bi.toString,Ce.toUpper=eo.toUpper,Ce.trim=eo.trim,Ce.trimEnd=eo.trimEnd,Ce.trimStart=eo.trimStart,Ce.truncate=eo.truncate,Ce.unescape=eo.unescape,Ce.uniqueId=lo.uniqueId,Ce.upperCase=eo.upperCase,Ce.upperFirst=eo.upperFirst,Ce.each=xo.forEach,Ce.eachRight=xo.forEachRight,Ce.first=Kn.head,fP(Ce,(hP={},ih(Ce,function(t,n){hse.call(Ce.prototype,n)||(hP[n]=t)}),hP),{chain:!1}),Ce.VERSION="4.17.21",(Ce.templateSettings=eo.templateSettings).imports._=Ce,ru(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Ce[t].placeholder=Ce}),ru(["drop","take"],function(t,n){Ir.prototype[t]=function(e){e=void 0===e?1:qqe(Qi(e),0);var i=this.__filtered__&&!n?new Ir(this):this.clone();return i.__filtered__?i.__takeCount__=pse(e,i.__takeCount__):i.__views__.push({size:pse(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Ir.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ru(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Ir.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:zi(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),ru(["head","last"],function(t,n){var e="take"+(n?"Right":"");Ir.prototype[t]=function(){return this[e](1).value()[0]}}),ru(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Ir.prototype[t]=function(){return this.__filtered__?new Ir(this):this[e](1)}}),Ir.prototype.compact=function(){return this.filter(fl)},Ir.prototype.find=function(t){return this.filter(t).head()},Ir.prototype.findLast=function(t){return this.reverse().find(t)},Ir.prototype.invokeMap=mr(function(t,n){return"function"==typeof t?new Ir(this):this.map(function(e){return ib(e,t,n)})}),Ir.prototype.reject=function(t){return this.filter(y0(zi(t)))},Ir.prototype.slice=function(t,n){t=Qi(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Ir(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Qi(n))<0?e.dropRight(-n):e.take(n-t)),e)},Ir.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ir.prototype.toArray=function(){return this.take(4294967295)},ih(Ir.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=Ce[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(Ce.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Ir,c=a[0],u=l||Ui(s),d=function(v){var y=r.apply(Ce,up([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Ir(this);var g=t.apply(s,a);return g.__actions__.push({func:b0,args:[d],thisArg:void 0}),new iu(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),ru(["pop","push","shift","sort","splice","unshift"],function(t){var n=Wqe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Ce.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(Ui(o)?o:[],r)}return this[e](function(s){return n.apply(Ui(s)?s:[],r)})}}),ih(Ir.prototype,function(t,n){var e=Ce[n];if(e){var i=e.name+"";hse.call(n0,i)||(n0[i]=[]),n0[i].push({name:n,func:e})}}),n0[TS(void 0,2).name]=[{name:"wrapper",func:void 0}],Ir.prototype.clone=function(){var t=new Ir(this.__wrapped__);return t.__actions__=ic(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ic(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ic(this.__views__),t},Ir.prototype.reverse=function(){if(this.__filtered__){var t=new Ir(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ir.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Ui(t),i=n<0,r=e?t.length:0,o=function(D,E,B){for(var z=-1,j=B.length;++z1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Io(l)||n&&c.length>0)&&(e[dn(c)]=!0),Io(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function gse(t){return nt({},t)}function vse(t){return Object.values(t)}function yse(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(ui(o))),r}function mP(t,n){try{return n.parse(t)}catch{return n.parse(Kd(t))}}function _se(t,n){try{return mP(t,n)}catch{return}}function ak(t,n){t=t.replace(xse,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function bse(t){t=t.replace(xse,"");try{return Kd(t)}catch{}try{var n=Kd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Kd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var xse=/,\s*$/;function lk(t,n){var e=Sse.exec(n);if(e){var i=Ys(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return x0(t)?t:{text:e.stringify(t.json,null,n)}}function wse(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return vP(t)?t:{json:n.parse(t.text)}}function ck(t,n,e){return Zm(t,n,e).text}function Cse(t,n){return function Kqe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(x0(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Io(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var Sse=/(position|char) (\d+)/,Qqe=/line (\d+)/,Zqe=/column (\d+)/;function Dse(t){return eYe.test(t)&&t.length>2}var eYe=/^[[{]\S/;function yP(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?tYe:nYe:e?iYe:rYe}var tYe={escapeValue:function(t){return Tse(Mse(String(t)))},unescapeValue:function(t){return Ose(Ese(t))}},nYe={escapeValue:function(t){return Mse(String(t))},unescapeValue:function(t){return Ose(t)}},iYe={escapeValue:function(t){return Tse(String(t))},unescapeValue:function(t){return Ese(t)}},rYe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function Tse(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function Ese(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return Ase[e]||e}catch{return n}})}var Ase={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},oYe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Mse(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return Ase[n]||n})}function Ose(t){return t.replace(/\\["bfnrt\\]/g,function(n){return oYe[n]||n})}function eg(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function Ise(t,n){return ob(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function tg(t,n,e){return ob(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function ob(t,n){return!!_P(t,n)}function _P(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function Nse(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function uk(t,n,e){var i=w0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,Nse(r))}}function w0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function dk(t){var e=w0(t)?.document.activeElement;return!!e&&ob(e,function(i){return i===t})}function Fse(t,n){return _P(t,function(e){return e.nodeName===n})}function bP(t){return tg(t,"data-type","selectable-key")?so.key:tg(t,"data-type","selectable-value")?so.value:tg(t,"data-type","insert-selection-area-inside")?so.inside:tg(t,"data-type","insert-selection-area-after")?so.after:so.multi}function C0(t){return encodeURIComponent(dn(t))}function Pse(t){var e=_P(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Zu(decodeURIComponent(e)):null}function gp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in aYe||e.push(i),e.join(n)}var aYe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},xP=cN.window;function lYe(t){_i(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function Rse(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&C>h,z="left"===v||b+u>window.innerWidth&&b>u;return{left:z?y.right-g:b+g,top:B?C-p:y.bottom+p,positionAbove:B,positionLeft:z}}if("number"==typeof n.left&&"number"==typeof n.top){var j=n.left,U=n.top,G=n.width,X=void 0===G?0:G,oe=n.height,P=void 0===oe?0:oe;return{left:j,top:U,positionAbove:U+P>window.innerHeight&&U>P,positionLeft:j+X>window.innerWidth&&j>X}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function dYe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!ob(l.target,function(c){return c===i})&&s(o.id)}return eu(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===gp(l)&&s(o.id)},function(l){a(l)},s,function(l){Xi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Xi[l?"unshift":"push"](function(){e(1,i=l)})}]}var hYe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dYe,cYe,_s,{popup:0,closeAbsolutePopup:6},lYe),r}return Ie(e)}();function Lse(t,n,e){var i=t.slice();return i[6]=n[e],i}function Bse(t){var n,e;return n=new hYe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function fYe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(gYe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var gYe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function sb(t){return{value:t,label:Ji(t)?"(whole item)":cu(rc(t))}}function sh(t){return t.map(function(n){return CP.test(n)?"?.[".concat(n,"]"):wP.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var wP=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,CP=/^\d+$/;function ab(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function ah(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var vYe={id:"javascript",name:"JavaScript",description:"\n

\n Enter a JavaScript function to filter, sort, or transform the data.\n

\n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(sh(e.path)),a=function SP(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function nee(t){return jUe.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(sh(i.path),"\n")+" const valueB = b".concat(sh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(sh(i.path),"\n")+" const valueB = b".concat(sh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(sh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(sh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},yYe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},lb={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},cb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},_Ye={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function bYe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var qYe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,WYe,GYe,Pi,{path:4,value:0,readOnly:1,onPatch:5,focus:6},zYe),r}return Ie(e)}();function Jse(t){for(var n=oP(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=pk(n,u);DP(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Io(l)&&i(o)){r[dn(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=He(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),nt(nt({},n),{},{expandedMap:r})}function Kse(t,n){var e=S0(t.expandedMap,n),i=S0(t.enforceStringMap,n),r=S0(t.visibleSectionsMap,n);return nt(nt({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Qse(t,n,e){if(e){var i=nt({},t.enforceStringMap);return i[n]=e,nt(nt({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=nt({},t.enforceStringMap);return delete r[n],nt(nt({},t),{},{enforceStringMap:r})}return t}function Zse(t,n,e){var i=ed(t,e),r=e.reduce(function(o,s){return BZ(s)?eae(i,o,s):$Z(s)?tae(i,o,s):mN(s)?(u=(c=s).path,d=OP(a=i,(l=o).expandedMap),h=OP(a,l.enforceStringMap),f=OP(a,l.visibleSectionsMap),Oo(c.value)||ao(c.value)||delete d[u],ao(c.value)||delete f[u],(Oo(c.value)||ao(c.value))&&delete h[u],nt(nt({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):gN(s)||Qv(s)?function(a,l,c){if(Qv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=MP(EP(l.expandedMap,c.from),u),h=MP(EP(l.enforceStringMap,c.from),u),f=MP(EP(l.visibleSectionsMap,c.from),u),p=l;Qv(c)&&(p=tae(a,p,{op:"remove",path:c.from}));var m=AP((p=eae(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=AP(p.enforceStringMap,h),v=AP(p.visibleSectionsMap,f);return nt(nt({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function eae(t,n,e){var i=td(t,e.path),r=tr(i),o=dn(r);if(ao(On(t,r))){var s=Ys(Bn(i)),a=k0(n.expandedMap,r,s,1),l=k0(n.enforceStringMap,r,s,1),c=k0(n.visibleSectionsMap,r,s,1);return c=nae(c,o,function(u){return iae(u,s,1)}),nt(nt({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function tae(t,n,e){var i=td(t,e.path),r=tr(i),o=dn(r),s=On(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=S0(a,i),l=S0(l,i),c=S0(c,i),ao(s)){var u=Ys(Bn(i));a=k0(a,r,u,-1),l=k0(l,r,u,-1),c=nae(c=k0(c,r,u,-1),o,function(d){return iae(d,u,-1)})}return nt(nt({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function S0(t,n){var e={},i=dn(n);return Object.keys(t).forEach(function(r){Zv(r,i)||(e[r]=t[r])}),e}function EP(t,n){var e={};return Object.keys(t).forEach(function(i){Zv(i,n)&&(e[i]=t[i])}),e}function AP(t,n){return nt(nt({},t),n)}function MP(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function k0(t,n,e,i){for(var r=n.length,o=dn(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:dn(u),value:t[c]}))}}if(0===s.length)return t;var h=nt({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function OP(t,n){var e={};return Object.keys(n).filter(function(i){return nu(t,td(t,i))}).forEach(function(i){e[i]=n[i]}),e}function nae(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!dr(i,r)){var o=nt({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function iae(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function mf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof e0(o,i)}function ub(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function IP(t,n){var e=[];return function i(r,o){e.push(o);var s=dn(o);if(r&&!0===n.expandedMap[s]){if(ao(r)){var a=pk(n,s);DP(r,a,function(l){i(r[l],o.concat(String(l)))})}Oo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function rae(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Ju.value});var a=dn(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Ju.inside}),ao(o)){var l=pk(n,a);DP(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Ju.after})})}Oo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Ju.key}),r(o[c],u),e&&i.push({path:u,type:Ju.after})})}}(t,[]),i}function NP(t,n,e){var i=IP(t,n),r=i.map(dn).indexOf(dn(e));return-1!==r&&r0;){if(!0===t.pointersMap[dn(i)])return!0;i.pop()}return ws(t)?e===so.key&&dr(t.focusPath,n):!(!nr(t)||!(e===so.value&&dr(t.focusPath,n)||A0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===so.key||e===so.value||e===so.multi)))}function aae(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Lr(r)?r.focusPath:va(r.paths),s=function JYe(t,n,e){var i=IP(t,n),r=i.map(dn),o=dn(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return rd(r)||Js(r)?Fs(t,r.anchorPath,r.anchorPath):Fs(t,r.anchorPath,l);if(ws(r)){var u=On(t,tr(s));return Array.isArray(u)||Ji(s)?br(s,!1):du(s,!1)}return nr(r)?br(s,!1):rd(r)||Js(r)?Fs(t,o,o):Fs(t,a,l)}function lae(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=rae(t,n,e),o=r.findIndex(function(s){return dr(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(On(t,tr(r)))?br(r,!1):du(r,!1)}function E0(t,n){if(1===n.length){var e=va(n);if("replace"===e.op||"move"===e.op)return br(td(t,e.path),!1)}if(!Ji(n)&&n.every(function(s){return"move"===s.op})){var i=va(n),r=n.slice(1);if((gN(i)||Qv(i))&&i.from!==i.path&&r.every(function(s){return(gN(s)||Qv(s))&&s.from===s.path}))return du(td(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return td(t,s.path)});if(!Ji(o))return{type:so.multi,paths:o,anchorPath:va(o),focusPath:Bn(o),pointersMap:cae(o)}}function cae(t){var n={};return t.forEach(function(e){n[dn(e)]=!0}),n}function gk(t){return ec({},dn(t),!0)}function hb(t){return void 0!==t&&(ws(t)||nr(t)||Lr(t)&&1===t.paths.length)}function uae(t,n){return hb(n)&&zo(On(t,n.focusPath))?n.focusPath:tr(n.focusPath)}function A0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return nt(nt({},r),{},{active:o===n})});return nt(nt({},t),{},{items:i,itemsMap:g0(i,function(r){return dn(r.path)}),activeItem:e,activeIndex:n})}function oXe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return nt(nt({},r),{},{active:o===n})});return nt(nt({},t),{},{items:i,itemsMap:g0(i,function(r){return dn(r.path)}),activeItem:e,activeIndex:n})}function xae(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Oo(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else wae(String(c),l,r,Ku.value,o)}(t.toLowerCase(),n),i}function wae(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function jP(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function Cae(t,n,e){var i=t;return tb(e,function(r){i=jP(i,n,r.start,r.end)}),i}function sXe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Ku.key){var c=tr(s),u=On(t,c),d=Bn(s),h=pb(c,Object.keys(u),d,jP(d,e,a,l));return{newSelection:E0(t,h),operations:h}}if(o===Ku.value){var f=On(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(dn(s)));var p="string"==typeof f?f:String(f),m=dn(s),g=mf(f,n.enforceStringMap,m,r),v=jP(p,e,a,l),y=[{op:"replace",path:dn(s),value:g?v:e0(v,r)}];return{newSelection:E0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function aXe(t,n,e,i,r){for(var o=xae(e,t,1/0),s=[],a=0;an.floating[o]&&(s=Sk(s)),{main:s,cross:Sk(s)}}var qXe={start:"end",end:"start"};function GP(t){return t.replace(/start|end/g,function(n){return qXe[n]})}var YXe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,pe,A,N,F,q,V,ce;return _n().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,b=void 0===(y=u.fallbackAxisSideDirection)?"none":y,D=void 0===(C=u.flipAlignment)||C,E=lZ(u,THe),B=og(r),z=og(a)===a,ve.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return j=ve.sent,U=m||(z||!D?[Sk(a)]:(void 0,Te=Sk(je=a),[GP(je),Te,GP(Te)])),m||"none"===b||U.push.apply(U,ui(function(je,Te,et,We){var st=wk(je),$=function(ae,le,Re){var Ze=["left","right"],Ve=["right","left"];switch(ae){case"top":case"bottom":return Re?le?Ve:Ze:le?Ze:Ve;case"left":case"right":return le?["top","bottom"]:["bottom","top"];default:return[]}}(og(je),"start"===et,We);return st&&($=$.map(function(ae){return ae+"-"+st}),Te&&($=$.concat($.map(GP)))),$}(a,D,b,j))),G=[a].concat(ui(U)),ve.next=29,Bae(n,E);case 29:if(X=ve.sent,oe=[],P=(null==(i=o.flip)?void 0:i.overflows)||[],h&&oe.push(X[B]),p&&(W=WXe(r,s,j),oe.push(X[W.main],X[W.cross])),P=[].concat(ui(P),[{placement:r,overflows:oe}]),oe.every(function(je){return je<=0})){ve.next=48;break}if(N=((null==(pe=o.flip)?void 0:pe.index)||0)+1,!(F=G[N])){ve.next=37;break}return ve.abrupt("return",{data:{index:N,overflows:P},reset:{placement:F}});case 37:if(q=null==(A=P.filter(function(je){return je.overflows[0]<=0}).sort(function(je,Te){return je.overflows[1]-Te.overflows[1]})[0])?void 0:A.placement,q){ve.next=46;break}ve.t0=v,ve.next="bestFit"===ve.t0?42:"initialPlacement"===ve.t0?45:46;break;case 42:return ce=null==(V=P.map(function(je){return[je.placement,je.overflows.filter(function(Te){return Te>0}).reduce(function(Te,et){return Te+et},0)]}).sort(function(je,Te){return je[1]-Te[1]})[0])?void 0:V[0],ce&&(q=ce),ve.abrupt("break",46);case 45:q=a;case 46:if(r===q){ve.next=48;break}return ve.abrupt("return",{reset:{placement:q}});case 48:return ve.abrupt("return",{});case 49:case"end":return ve.stop()}var je,Te},e)}))()}}},XXe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o;return _n().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=or(_n().mark(function l(c,u){var d,h,f,p,m,g,v,y,b,C,D,E,B,z;return _n().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return d=c.placement,h=c.platform,f=c.elements,j.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=j.sent,m=og(d),g=wk(d),v="x"===Ck(d),y=["left","top"].includes(m)?-1:1,b=p&&v?-1:1,C="function"==typeof u?u(c):u,D="number"==typeof C?{mainAxis:C,crossAxis:0,alignmentAxis:null}:nt({mainAxis:0,crossAxis:0,alignmentAxis:null},C),E=D.mainAxis,B=D.crossAxis,z=D.alignmentAxis,j.abrupt("return",(g&&"number"==typeof z&&(B="end"===g?-1*z:z),v?{x:B*b,y:E*y}:{x:E*y,y:B*b}));case 14:case"end":return j.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function JXe(t){return"x"===t?"y":"x"}var KXe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,B;return _n().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(j){return{x:j.x,y:j.y}}}:h,p=lZ(a,EHe),m={x:r,y:o},z.next=14,Bae(n,p);case 14:return g=z.sent,v=Ck(og(s)),y=JXe(v),b=m[v],C=m[y],c&&(b=$ae(b+g["y"===v?"top":"left"],b,b-g["y"===v?"bottom":"right"])),d&&(C=$ae(C+g["y"===y?"top":"left"],C,C-g["y"===y?"bottom":"right"])),B=f.fn(nt(nt({},n),{},(ec(i={},v,b),ec(i,y,C),i))),z.abrupt("return",nt(nt({},B),{},{data:{x:B.x-r,y:B.y-o}}));case 22:case"end":return z.stop()}},e)}))()}}};function Nc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function uh(t){return Nc(t).getComputedStyle(t)}var WP,Vae=Math.min,gb=Math.max,kk=Math.round;function Hae(t){var n=uh(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=kk(e)!==r||kk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function wp(t){return zae(t)?(t.nodeName||"").toLowerCase():""}function Uae(){if(WP)return WP;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?WP=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function dh(t){return t instanceof Nc(t).HTMLElement}function sd(t){return t instanceof Nc(t).Element}function zae(t){return t instanceof Nc(t).Node}function Gae(t){return typeof ShadowRoot<"u"&&(t instanceof Nc(t).ShadowRoot||t instanceof ShadowRoot)}function Dk(t){var n=uh(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function QXe(t){return["table","td","th"].includes(wp(t))}function qP(t){var n=/firefox/i.test(Uae()),e=uh(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function YP(){return/^((?!chrome|android).)*safari/i.test(Uae())}function XP(t){return["html","body","#document"].includes(wp(t))}function Wae(t){return sd(t)?t:t.contextElement}var qae={x:1,y:1};function R0(t){var n=Wae(t);if(!dh(n))return qae;var e=n.getBoundingClientRect(),i=Hae(n),r=i.width,o=i.height,s=i.fallback,a=(s?kk(e.width):e.width)/r,l=(s?kk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function sg(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Wae(t),l=qae;n&&(i?sd(i)&&(l=R0(i)):l=R0(t));var c=a?Nc(a):window,u=YP()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=Nc(a),g=i&&sd(i)?Nc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=R0(v),b=v.getBoundingClientRect(),C=getComputedStyle(v);b.x+=(v.clientLeft+parseFloat(C.paddingLeft))*y.x,b.y+=(v.clientTop+parseFloat(C.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=b.x,h+=b.y,v=Nc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function Cp(t){return((zae(t)?t.ownerDocument:t.document)||window.document).documentElement}function Tk(t){return sd(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yae(t){return sg(Cp(t)).left+Tk(t).scrollLeft}function vb(t){if("html"===wp(t))return t;var n=t.assignedSlot||t.parentNode||Gae(t)&&t.host||Cp(t);return Gae(n)?n.host:n}function Xae(t){var n=vb(t);return XP(n)?n.ownerDocument.body:dh(n)&&Dk(n)?n:Xae(n)}function yb(t,n){var e;void 0===n&&(n=[]);var i=Xae(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Nc(i);return r?n.concat(o,o.visualViewport||[],Dk(i)?i:[]):n.concat(i,yb(i))}function Jae(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=Nc(l),d=Cp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=YP();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=Cp(t),c=Cp(l),u=Tk(l),h=gb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=gb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Yae(l),m=-u.scrollTop,"rtl"===uh(d).direction&&(p+=gb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(sd(n))i=function(l,c){var u=sg(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=dh(l)?R0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=nt({},n);if(YP()){var o,s,a=Nc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return UP(i)}function Kae(t,n){return dh(t)&&"fixed"!==uh(t).position?n?n(t):t.offsetParent:null}function Qae(t,n){for(var e=Nc(t),i=Kae(t,n);i&&QXe(i)&&"static"===uh(i).position;)i=Kae(i,n);return i&&("html"===wp(i)||"body"===wp(i)&&"static"===uh(i).position&&!qP(i))?e:i||function(r){for(var o=vb(r);dh(o)&&!XP(o);){if(qP(o))return o;o=vb(o)}return null}(t)||e}function ZXe(t,n,e){var i=dh(n),r=Cp(n),o=sg(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==wp(n)||Dk(r))&&(s=Tk(n)),dh(n)){var l=sg(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Yae(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var eJe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=yb(c).filter(function(y){return sd(y)&&"body"!==wp(y)}),f=null,p="fixed"===uh(c).position,m=p?vb(c):c;sd(m)&&!XP(m);){var g=uh(m),v=qP(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=vb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(ui(o),[i]),l=s.reduce(function(c,u){var d=Jae(n,u,r);return c.top=gb(d.top,c.top),c.right=Vae(d.right,c.right),c.bottom=Vae(d.bottom,c.bottom),c.left=gb(d.left,c.left),c},Jae(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=dh(e),o=Cp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==wp(e)||Dk(o))&&(s=Tk(e)),dh(e))){var c=sg(e);a=R0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:sd,getDimensions:function(t){return dh(t)?Hae(t):t.getBoundingClientRect()},getOffsetParent:Qae,getDocumentElement:Cp,getScale:R0,getElementRects:function(t){var n=this;return or(_n().mark(function e(){var i,r,o,s,a;return _n().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Qae,a=n.getDimensions,l.t0=ZXe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=nt,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===uh(t).direction}};function iJe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==wn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function rJe(t){return JP.apply(this,arguments)}function JP(){return JP=or(_n().mark(function t(n){var e,i,r,o,s;return _n().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==wn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),JP.apply(this,arguments)}function oJe(t){_i(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function sJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("path"),"fill","currentColor"),R(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),R(n,"width","100%"),R(n,"height","100%"),R(n,"viewBox","0 0 20 20"),R(n,"focusable","false"),R(n,"aria-hidden","true"),R(n,"class","svelte-qbd276")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var aJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,sJe,_s,{},oJe),r}return Ie(e)}();function lJe(t){_i(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function cJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("path"),"fill","currentColor"),R(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),R(n,"width","100%"),R(n,"height","100%"),R(n,"viewBox","-2 -2 50 50"),R(n,"focusable","false"),R(n,"aria-hidden","true"),R(n,"role","presentation"),R(n,"class","svelte-whdbu1")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var Ek=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,cJe,_s,{},lJe),r}return Ie(e)}();function uJe(t){_i(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function dJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("circle"),"class","circle_path svelte-1p3nqvd"),R(e,"cx","50"),R(e,"cy","50"),R(e,"r","20"),R(e,"fill","none"),R(e,"stroke","currentColor"),R(e,"stroke-width","5"),R(e,"stroke-miterlimit","10"),R(n,"class","loading svelte-1p3nqvd"),R(n,"viewBox","25 25 50 50")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var hJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,dJe,_s,{},uJe),r}return Ie(e)}();function fJe(t){_i(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var pJe=function(t){return{value:8&t[0]}},Zae=function(t){return{value:t[3]}},mJe=function(t){return{listOpen:64&t[0]}},ele=function(t){return{listOpen:t[6]}},gJe=function(t){return{}},tle=function(t){return{}},vJe=function(t){return{}},nle=function(t){return{}},yJe=function(t){return{selection:8&t[0]}},ile=function(t){return{selection:t[3]}};function rle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var _Je=function(t){return{}},ole=function(t){return{}},bJe=function(t){return{selection:8&t[0]}},sle=function(t){return{selection:t[127],index:t[129]}},xJe=function(t){return{}},ale=function(t){return{}},wJe=function(t){return{}},lle=function(t){return{}};function cle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var CJe=function(t){return{item:16777216&t[0]}},ule=function(t){return{item:t[127],index:t[129]}},SJe=function(t){return{filteredItems:16777216&t[0]}},dle=function(t){return{filteredItems:t[24]}};function hle(t){var n,e,i,r,o,s,a=[TJe,DJe,kJe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=De("div"),i&&i.c(),R(n,"class","svelte-select-list svelte-tyxmms"),Nt(n,"prefloat",t[28])},m:function(u,d){$e(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[Ea(t[49].call(null,n)),Rt(n,"scroll",t[41]),Rt(n,"pointerdown",rf(t[50])),Rt(n,"pointerup",sf(rf(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&(Ht(),fe(l[h],1,1,function(){l[h]=null}),Ut()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),Q(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&Nt(n,"prefloat",u[28])},i:function(u){r||(Q(i),r=!0)},o:function(u){fe(i),r=!1},d:function(u){u&&Be(n),~e&&l[e].d(),t[91](null),o=!1,po(s)}}}function kJe(t){var n,e,i=t[83].empty,r=Ms(i,t,t[82],lle),o=r||{c:function(){(e=De("div")).textContent="No options",R(e,"class","empty svelte-tyxmms")},m:function(s,a){$e(s,e,a)},p:Bt,d:function(s){s&&Be(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Is(r,i,s,s[82],n?Os(i,s[82],a,wJe):Ns(s[82]),lle)},i:function(s){n||(Q(o,s),n=!0)},o:function(s){fe(o,s),n=!1},d:function(s){o&&o.d(s)}}}function DJe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(tt,ii)}:In,vi=n.debounceWait,gi=void 0===vi?300:vi,Mr=n.hideEmptyState,to=void 0!==Mr&&Mr,xi=n.inputAttributes,Sr=void 0===xi?{}:xi,Fe=n.listAutoWidth,At=void 0===Fe||Fe,Gt=n.showChevron,ln=void 0!==Gt&&Gt,mn=n.listOffset,ci=void 0===mn?5:mn,$i=n.hoverItemIndex,Gn=void 0===$i?0:$i,ai=n.floatingConfig,ni=void 0===ai?{}:ai,kr=n.class,Fr=void 0===kr?"":kr;function jo(tt){var ii=[],sr={};tt.forEach(function(Td){var Hr=Er(Td);ii.includes(Hr)||(ii.push(Hr),sr[Hr]=[],Hr&&sr[Hr].push(Object.assign(Ks(Hr,Td),{id:Hr,groupHeader:!0,selectable:Xr}))),sr[Hr].push(Object.assign({groupItem:!!Hr},Td))});var Zs=[];return wr(ii).forEach(function(Td){sr[Td]&&Zs.push.apply(Zs,ui(sr[Td]))}),Zs}function ba(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ii=arguments.length>1?arguments[1]:void 0;e(7,Gn=tt<0?0:tt),!ii&&Er&&c[Gn]&&!c[Gn].selectable&&Do(1)}function bd(){var tt=!0;if($){var ii=[],sr=[];$.forEach(function(Zs){ii.includes(Zs[Rn])?tt=!1:(ii.push(Zs[Rn]),sr.push(Zs))}),tt||e(3,$=sr)}return tt}function bu(tt){var ii=tt?tt[Rn]:$[Rn];return yn.find(function(sr){return sr[Rn]===ii})}function xa(tt){return Bl.apply(this,arguments)}function Bl(){return(Bl=or(_n().mark(function tt(ii){var sr;return _n().wrap(function(Zs){for(;;)switch(Zs.prev=Zs.next){case 0:sr=$[ii],e(3,$=1===$.length?void 0:$.filter(function(Td){return Td!==sr})),B("clear",sr);case 3:case"end":return Zs.stop()}},tt)}))).apply(this,arguments)}function xd(tt){var ii;We&&F===(null===(ii=document)||void 0===ii?void 0:ii.activeElement)||(tt&&B("focus",tt),F.focus(),e(2,We=!0))}function Rs(tt){return wd.apply(this,arguments)}function wd(){return(wd=or(_n().mark(function tt(ii){return _n().wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:if(!yi&&!hx){sr.next=2;break}return sr.abrupt("return");case 2:(Ye||We)&&(B("blur",ii),Cd(),e(2,We=!1),e(26,f=void 0),F.blur());case 3:case"end":return sr.stop()}},tt)}))).apply(this,arguments)}function Cd(){e(4,le=""),e(6,Ye=!1)}y=or(_n().mark(function tt(){return _n().wrap(function(ii){for(;;)switch(ii.prev=ii.next){case 0:e(78,p=$),e(79,m=le),e(80,g=V);case 3:case"end":return ii.stop()}},tt)})),Xv().$$.before_update.push(y),eu(function(){Ye&&e(2,We=!0),We&&F&&F.focus()});var cn,TT=n.ariaValues,Me=void 0===TT?function(tt){return"Option ".concat(tt,", selected.")}:TT,ct=n.ariaListOpen,Ft=void 0===ct?function(tt,ii){return"You are currently focused on option ".concat(tt,". There are ").concat(ii," results available.")}:ct,en=n.ariaFocused,an=void 0===en?function(){return"Select is focused, type to refine list, press down to open the menu."}:en,Wn=null;function hi(){clearTimeout(cn),cn=setTimeout(function(){yi=!1},100)}qu(function(){var tt;null===(tt=Wn)||void 0===tt||tt.remove()});var yi=!1;function Lo(tt){tt&&!1!==tt.selectable&&function(ii){if(ii){e(4,le="");var sr=Object.assign({},ii);if(sr.groupHeader&&!sr.selectable)return;e(3,$=V?$?$.concat([sr]):[sr]:e(3,$=sr)),setTimeout(function(){Jr&&Cd(),e(26,f=void 0),B("change",$),B("select",ii)})}}(tt)}function js(tt){yi||e(7,Gn=tt)}function Zo(tt){var Zs,ii=tt.item,sr=tt.i;if(!1!==ii?.selectable){if($&&!V&&$[Rn]===ii[Rn])return Cd();((Zs=ii).groupHeader&&Zs.selectable||Zs.selectable||!Zs.hasOwnProperty("selectable"))&&(e(7,Gn=sr),Lo(ii)),hx=!1}}function Do(tt){if(0===c.filter(function(sr){return!Object.hasOwn(sr,"selectable")||!0===sr.selectable}).length)return e(7,Gn=0);e(7,tt>0&&Gn===c.length-1?Gn=0:tt<0&&0===Gn?Gn=c.length-1:Gn+=tt);var ii=c[Gn];ii&&!1===ii.selectable&&(1!==tt&&-1!==tt||Do(tt))}var $l=Sd,Sh=Sd;function Sd(tt){return{update:function(ii){ii.scroll&&(hi(),tt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Pr={strategy:"absolute",placement:"bottom-start",middleware:[XXe(ci),YXe(),KXe()],autoUpdate:!1},lc=Jn(function nJe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return nt(nt(nt({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=nt({platform:eJe},d),p=nt(nt({},f.platform),{},{_c:h}),VXe(c,u,nt(nt({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){qu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function tJe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(ui(sd(t)?yb(t):t.contextElement?yb(t.contextElement):[]),ui(yb(n))):[];p.forEach(function(b){f&&b.addEventListener("scroll",e,{passive:!0}),l&&b.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),sd(t)&&!h&&g.observe(t),sd(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?sg(t):null;return h&&function b(){var C=sg(t);!y||C.x===y.x&&C.y===y.y&&C.width===y.width&&C.height===y.height||e(),y=C,m=requestAnimationFrame(b)}(),e(),function(){var b;p.forEach(function(C){f&&C.removeEventListener("scroll",e),l&&C.removeEventListener("resize",e)}),null==(b=g)||b.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Pr),3),xu=lc[0],kd=lc[1],kh=lc[2],Dd=!0,hx=!1;return t.$$set=function(tt){"justValue"in tt&&e(53,j=tt.justValue),"filter"in tt&&e(54,G=tt.filter),"getItems"in tt&&e(55,oe=tt.getItems),"id"in tt&&e(56,W=tt.id),"name"in tt&&e(8,H=tt.name),"container"in tt&&e(0,A=tt.container),"input"in tt&&e(1,F=tt.input),"multiple"in tt&&e(9,V=tt.multiple),"multiFullItemClearable"in tt&&e(10,ve=tt.multiFullItemClearable),"disabled"in tt&&e(11,Te=tt.disabled),"focused"in tt&&e(2,We=tt.focused),"value"in tt&&e(3,$=tt.value),"filterText"in tt&&e(4,le=tt.filterText),"placeholder"in tt&&e(57,Ze=tt.placeholder),"placeholderAlwaysShow"in tt&&e(58,Ct=tt.placeholderAlwaysShow),"items"in tt&&e(52,yn=tt.items),"label"in tt&&e(12,on=tt.label),"itemFilter"in tt&&e(59,hn=tt.itemFilter),"groupBy"in tt&&e(60,Er=tt.groupBy),"groupFilter"in tt&&e(61,wr=tt.groupFilter),"groupHeaderSelectable"in tt&&e(62,Xr=tt.groupHeaderSelectable),"itemId"in tt&&e(13,Rn=tt.itemId),"loadOptions"in tt&&e(63,pi=tt.loadOptions),"containerStyles"in tt&&e(14,Ar=tt.containerStyles),"hasError"in tt&&e(15,Qo=tt.hasError),"filterSelectedItems"in tt&&e(64,jn=tt.filterSelectedItems),"required"in tt&&e(16,ki=tt.required),"closeListOnChange"in tt&&e(65,Jr=tt.closeListOnChange),"createGroupHeaderItem"in tt&&e(66,Ks=tt.createGroupHeaderItem),"searchable"in tt&&e(17,Qs=tt.searchable),"inputStyles"in tt&&e(18,el=tt.inputStyles),"clearable"in tt&&e(68,Ee=tt.clearable),"loading"in tt&&e(5,Ke=tt.loading),"listOpen"in tt&&e(6,Ye=tt.listOpen),"debounce"in tt&&e(69,li=tt.debounce),"debounceWait"in tt&&e(70,gi=tt.debounceWait),"hideEmptyState"in tt&&e(19,to=tt.hideEmptyState),"inputAttributes"in tt&&e(71,Sr=tt.inputAttributes),"listAutoWidth"in tt&&e(72,At=tt.listAutoWidth),"showChevron"in tt&&e(20,ln=tt.showChevron),"listOffset"in tt&&e(73,ci=tt.listOffset),"hoverItemIndex"in tt&&e(7,Gn=tt.hoverItemIndex),"floatingConfig"in tt&&e(74,ni=tt.floatingConfig),"class"in tt&&e(21,Fr=tt.class),"ariaValues"in tt&&e(75,Me=tt.ariaValues),"ariaListOpen"in tt&&e(76,Ft=tt.ariaListOpen),"ariaFocused"in tt&&e(77,an=tt.ariaFocused),"$$scope"in tt&&e(82,D=tt.$$scope)},t.$$.update=function(){var tt,ii,sr,Zs,Td,Hr;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&$&&function(){if("string"==typeof $){var Hr,ea=(yn||[]).find(function(wu){return wu[Rn]===$});e(3,$=ea||(ec(Hr={},Rn,$),ec(Hr,"label",$),Hr))}else V&&Array.isArray($)&&$.length>0&&e(3,$=$.map(function(wu){return"string"==typeof wu?{value:wu,label:wu}:wu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!Sr&&Qs||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},Sr)),W&&e(27,v.id=W,v),Qs||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&$&&(Array.isArray($)?e(3,$=ui($)):e(3,$=[$])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&$&&e(3,$=null),520&t.$$.dirty[0]&&V&&$&&$.length>1&&bd(),8&t.$$.dirty[0]&&$&&(V?JSON.stringify($)!==JSON.stringify(p)&&bd()&&B("input",$):p&&JSON.stringify($[Rn])===JSON.stringify(p[Rn])||B("input",$)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!$&&V&&p&&B("input",$),6&t.$$.dirty[0]&&!We&&F&&Cd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&le!==m&&(pi||0!==le.length)&&(pi?li(or(_n().mark(function Hr(){var ea;return _n().wrap(function(wu){for(;;)switch(wu.prev=wu.next){case 0:return e(5,Ke=!0),wu.next=3,oe({dispatch:B,loadOptions:pi,convertStringItemsToObjects:wle,filterText:le});case 3:(ea=wu.sent)?(e(5,Ke=ea.loading),e(6,Ye=Ye?ea.listOpen:le.length>0),e(2,We=Ye&&ea.focused),e(52,yn=Er?jo(ea.filteredItems):ea.filteredItems)):(e(5,Ke=!1),e(2,We=!0),e(6,Ye=!0));case 5:case"end":return wu.stop()}},Hr)})),gi):(e(6,Ye=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=G({loadOptions:pi,filterText:le,items:yn,multiple:V,value:$,itemId:Rn,groupBy:Er,label:on,filterSelectedItems:jn,itemFilter:hn,convertStringItemsToObjects:wle,filterGroupedItems:jo})),16777800&t.$$.dirty[0]&&!V&&Ye&&$&&c&&(tt=c.findIndex(function(Hr){return Hr[Rn]===$[Rn]}),ba(tt,!0)),576&t.$$.dirty[0]&&Ye&&V&&e(7,Gn=0),16&t.$$.dirty[0]&&le&&e(7,Gn=0),128&t.$$.dirty[0]&&B("hoverItem",Gn),520&t.$$.dirty[0]&&e(25,i=V?$&&$.length>0:$),33554448&t.$$.dirty[0]&&e(35,r=i&&le.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&Ee&&!Te&&!Ke),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=Ct&&V||V&&0===(null===(ii=$)||void 0===ii?void 0:ii.length)?Ze:$?"":Ze),520&t.$$.dirty[0]&&e(32,a=$?(sr=V&&$.length>0?$.map(function(Hr){return Hr[on]}).join(", "):$[on],Me(sr)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var Hr=c[Gn];return Ye&&Hr?Ft(Hr[on],c?c.length:0):an()}()),2097152&t.$$.dirty[1]&&(Hr=yn)&&0!==Hr.length&&!Hr.some(function(ea){return"object"!==wn(ea)})&&$&&(V?!$.some(function(ea){return!ea||!ea[Rn]}):$[Rn])&&(Array.isArray($)?e(3,$=$.map(function(ea){return bu(ea)||ea})):e(3,$=bu()||$)),8712&t.$$.dirty[0]&&e(53,j=V?$?$.map(function(Hr){return Hr[Rn]}):null:$&&$[Rn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||$||B("input",$)),16777800&t.$$.dirty[0]&&Ye&&c&&!V&&!$&&ba(),16777216&t.$$.dirty[0]&&function(Hr){Ye&&B("filter",Hr)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&A&&void 0===(null===(Zs=ni)||void 0===Zs?void 0:Zs.autoUpdate)&&e(81,Pr.autoUpdate=!0,Pr),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&A&&ni&&kh(Object.assign(Pr,ni)),8388608&t.$$.dirty[0]&&e(30,u=!!Wn),8388672&t.$$.dirty[0]&&function(Hr,ea){if(!Hr||!ea)return e(28,Dd=!0);setTimeout(function(){e(28,Dd=!1)},0)}(Wn,Ye),8388673&t.$$.dirty[0]&&Ye&&A&&Wn&&(Td=A.getBoundingClientRect().width,e(23,Wn.style.width=At?Td+"px":"auto",Wn)),128&t.$$.dirty[0]&&e(29,d=Gn),70&t.$$.dirty[0]&&F&&Ye&&!We&&xd()},[A,F,We,$,le,Ke,Ye,Gn,H,V,ve,Te,on,Rn,Ar,Qo,ki,Qs,el,to,ln,Fr,function(){B("clear",$),e(3,$=void 0),Cd(),xd()},Wn,c,i,f,v,Dd,d,u,l,a,s,o,r,xa,function(tt){if(We)switch(tt.stopPropagation(),tt.key){case"Escape":tt.preventDefault(),Cd();break;case"Enter":if(tt.preventDefault(),Ye){if(0===c.length)break;if($&&!V&&$[Rn]===c[Gn][Rn]){Cd();break}Lo(c[Gn])}break;case"ArrowDown":tt.preventDefault(),Ye?Do(1):(e(6,Ye=!0),e(26,f=void 0));break;case"ArrowUp":tt.preventDefault(),Ye?Do(-1):(e(6,Ye=!0),e(26,f=void 0));break;case"Tab":if(Ye&&We){if(0===c.length||$&&$[Rn]===c[Gn][Rn])return Cd();tt.preventDefault(),Lo(c[Gn]),Cd()}break;case"Backspace":if(!V||le.length>0)return;if(V&&$&&$.length>0){if(xa(void 0!==f?f:$.length-1),0===f||void 0===f)break;e(26,f=$.length>f?f-1:void 0)}break;case"ArrowLeft":if(!$||!V||le.length>0)return;void 0===f?e(26,f=$.length-1):$.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!$||!V||le.length>0||void 0===f)return;f===$.length-1?e(26,f=void 0):f<$.length-1&&e(26,f+=1)}},xd,Rs,function(){Te||e(6,Ye=!Ye)},hi,function(tt){var ii;Ye||We||!A||A.contains(tt.target)||null!==(ii=Wn)&&void 0!==ii&&ii.contains(tt.target)||Rs()},js,Zo,function(tt,ii,sr){if(!V)return ii&&ii[sr]===tt[sr]},$l,Sh,xu,kd,function(){hx=!0},E,yn,j,G,oe,W,Ze,Ct,hn,Er,wr,Xr,pi,jn,Jr,Ks,function(){return c},Ee,li,gi,Sr,At,ci,ni,Me,Ft,an,p,m,g,Pr,D,C,function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){return js(tt)},function(tt){return js(tt)},function(tt,ii){return Zo({item:tt,i:ii})},function(tt){Xi[tt?"unshift":"push"](function(){e(23,Wn=tt)})},function(tt){return xa(tt)},function(tt){return ve?xa(tt):{}},function(tt){Xi[tt?"unshift":"push"](function(){e(1,F=tt)})},function(){e(4,le=this.value)},function(tt){Xi[tt?"unshift":"push"](function(){e(0,A=tt)})}]}var ag=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,OJe,MJe,_s,{justValue:53,filter:54,getItems:55,id:56,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:57,placeholderAlwaysShow:58,items:52,label:12,itemFilter:59,groupBy:60,groupFilter:61,groupHeaderSelectable:62,itemId:13,loadOptions:63,containerStyles:14,hasError:15,filterSelectedItems:64,required:16,closeListOnChange:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},fJe,[-1,-1,-1,-1,-1]),r}return Ie(e,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}]),e}();function IJe(t){_i(t,"svelte-1kiph99","table.jse-transform-wizard.svelte-1kiph99.svelte-1kiph99{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-1kiph99 input.svelte-1kiph99{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-1kiph99 tr th.svelte-1kiph99{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99{flex:4;padding:4px 8px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);outline:none;background:var(--jse-input-background);color:inherit}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99:focus{border:var(--jse-input-border-focus)}")}function NJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J,H,pe,A;function N(st){t[16](st)}var F={class:"jse-filter-path",showChevron:!0,items:t[7]};function q(st){t[17](st)}void 0!==t[0]&&(F.value=t[0]),a=new ag({props:F}),Xi.push(function(){return Xu(a,"value",N)});var V={class:"jse-filter-relation",showChevron:!0,items:t[8]};function ce(st){t[19](st)}void 0!==t[1]&&(V.value=t[1]),u=new ag({props:V}),Xi.push(function(){return Xu(u,"value",q)});var ve={class:"jse-sort-path",showChevron:!0,items:t[7]};function je(st){t[20](st)}void 0!==t[3]&&(ve.value=t[3]),C=new ag({props:ve}),Xi.push(function(){return Xu(C,"value",ce)});var Te={class:"jse-sort-direction",showChevron:!0,items:t[9]};function et(st){t[21](st)}void 0!==t[4]&&(Te.value=t[4]),B=new ag({props:Te}),Xi.push(function(){return Xu(B,"value",je)});var We={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:t[6]};return void 0!==t[5]&&(We.value=t[5]),W=new ag({props:We}),Xi.push(function(){return Xu(W,"value",et)}),{c:function(){n=De("table"),e=De("tr"),(i=De("th")).textContent="Filter",r=rt(),o=De("td"),s=De("div"),gt(a.$$.fragment),c=rt(),gt(u.$$.fragment),h=rt(),f=De("input"),p=rt(),m=De("tr"),(g=De("th")).textContent="Sort",v=rt(),y=De("td"),b=De("div"),gt(C.$$.fragment),E=rt(),gt(B.$$.fragment),j=rt(),U=De("tr"),(G=De("th")).textContent="Pick",X=rt(),oe=De("td"),P=De("div"),gt(W.$$.fragment),R(i,"class","svelte-1kiph99"),R(f,"class","jse-filter-value svelte-1kiph99"),R(s,"class","jse-horizontal svelte-1kiph99"),R(g,"class","svelte-1kiph99"),R(b,"class","jse-horizontal svelte-1kiph99"),R(G,"class","svelte-1kiph99"),R(P,"class","jse-horizontal svelte-1kiph99"),R(n,"class","jse-transform-wizard svelte-1kiph99")},m:function(st,$){$e(st,n,$),me(n,e),me(e,i),me(e,r),me(e,o),me(o,s),pt(a,s,null),me(s,c),pt(u,s,null),me(s,h),me(s,f),ip(f,t[2]),me(n,p),me(n,m),me(m,g),me(m,v),me(m,y),me(y,b),pt(C,b,null),me(b,E),pt(B,b,null),me(n,j),me(n,U),me(U,G),me(U,X),me(U,oe),me(oe,P),pt(W,P,null),H=!0,pe||(A=Rt(f,"input",t[18]),pe=!0)},p:function(st,$){var ae=Jn($,1)[0],le={};128&ae&&(le.items=st[7]),!l&&1&ae&&(l=!0,le.value=st[0],Yu(function(){return l=!1})),a.$set(le);var Re={};!d&&2&ae&&(d=!0,Re.value=st[1],Yu(function(){return d=!1})),u.$set(Re),4&ae&&f.value!==st[2]&&ip(f,st[2]);var Ze={};128&ae&&(Ze.items=st[7]),!D&&8&ae&&(D=!0,Ze.value=st[3],Yu(function(){return D=!1})),C.$set(Ze);var Ve={};!z&&16&ae&&(z=!0,Ve.value=st[4],Yu(function(){return z=!1})),B.$set(Ve);var Ct={};64&ae&&(Ct.items=st[6]),!J&&32&ae&&(J=!0,Ct.value=st[5],Yu(function(){return J=!1})),W.$set(Ct)},i:function(st){H||(Q(a.$$.fragment,st),Q(u.$$.fragment,st),Q(C.$$.fragment,st),Q(B.$$.fragment,st),Q(W.$$.fragment,st),H=!0)},o:function(st){fe(a.$$.fragment,st),fe(u.$$.fragment,st),fe(C.$$.fragment,st),fe(B.$$.fragment,st),fe(W.$$.fragment,st),H=!1},d:function(st){st&&Be(n),mt(a),mt(u),mt(C),mt(B),mt(W),pe=!1,A()}}}function FJe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=Ma("jsoneditor:TransformWizard"),C=n.json,D=n.queryOptions,E=void 0===D?{}:D,B=n.onChange,z=["==","!=","<","<=",">",">="].map(function(W){return{value:W,label:W}}),j=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],U=null!==(i=E)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?sb(E.filter.path):null,G=null!==(o=E)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?z.find(function(W){var J;return W.value===(null===(J=E.filter)||void 0===J?void 0:J.relation)}):null,X=(null===(a=E)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",oe=null!==(c=E)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?sb(E.sort.path):null,P=null!==(d=E)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?j.find(function(W){var J;return W.value===(null===(J=E.sort)||void 0===J?void 0:J.direction)}):null;return t.$$set=function(W){"json"in W&&e(11,C=W.json),"queryOptions"in W&&e(10,E=W.queryOptions),"onChange"in W&&e(12,B=W.onChange)},t.$$.update=function(){var W,J,H,pe,A,N,F,q,V,ce,ve,je,Te,et,We,st,$,ae,le,Re,Ze;2048&t.$$.dirty&&e(15,f=Array.isArray(C)),34816&t.$$.dirty&&e(14,p=f?pP(C):[]),34816&t.$$.dirty&&e(13,m=f?pP(C,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(sb)),8192&t.$$.dirty&&e(6,v=m?m.map(sb):[]),1088&t.$$.dirty&&e(5,y=null!==(W=E)&&void 0!==W&&null!==(J=W.projection)&&void 0!==J&&J.paths&&v?E.projection.paths.map(function(le){return v.find(function(Re){return dr(Re.value,le)})}).filter(function(le){return!!le}):null),1&t.$$.dirty&&(pe=(null===(H=U)||void 0===H?void 0:H.value)||null,dr(null===(A=E)||void 0===A||null===(N=A.filter)||void 0===N?void 0:N.path,pe)||(b("changeFilterPath",pe),e(10,E=Qu(E,["filter","path"],pe,!0)),B(E))),2&t.$$.dirty&&(q=(null===(F=G)||void 0===F?void 0:F.value)||null,dr(null===(V=E)||void 0===V||null===(ce=V.filter)||void 0===ce?void 0:ce.relation,q)||(b("changeFilterRelation",q),e(10,E=Qu(E,["filter","relation"],q,!0)),B(E))),4&t.$$.dirty&&(dr(null===(je=E)||void 0===je||null===(Te=je.filter)||void 0===Te?void 0:Te.value,ve=X||null)||(b("changeFilterValue",ve),e(10,E=Qu(E,["filter","value"],ve,!0)),B(E))),8&t.$$.dirty&&(le=(null===(et=oe)||void 0===et?void 0:et.value)||null,dr(null===(Re=E)||void 0===Re||null===(Ze=Re.sort)||void 0===Ze?void 0:Ze.path,le)||(b("changeSortPath",le),e(10,E=Qu(E,["sort","path"],le,!0)),B(E))),16&t.$$.dirty&&(st=(null===(We=P)||void 0===We?void 0:We.value)||null,dr(null===($=E)||void 0===$||null===(ae=$.sort)||void 0===ae?void 0:ae.direction,st)||(b("changeSortDirection",st),e(10,E=Qu(E,["sort","direction"],st,!0)),B(E))),32&t.$$.dirty&&function(le){var Re,Ze;dr(null===(Re=E)||void 0===Re||null===(Ze=Re.projection)||void 0===Ze?void 0:Ze.paths,le)||(b("changeProjectionPaths",le),e(10,E=Qu(E,["projection","paths"],le,!0)),B(E))}(y?y.map(function(le){return le.value}):null)},[U,G,X,oe,P,y,v,g,z,j,E,C,B,m,p,f,function(W){e(0,U=W)},function(W){e(1,G=W)},function(){e(2,X=this.value)},function(W){e(3,oe=W)},function(W){e(4,P=W)},function(W){e(5,y=W),e(10,E),e(6,v),e(13,m),e(15,f),e(11,C)}]}var PJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,FJe,NJe,Pi,{json:11,queryOptions:10,onChange:12},IJe),r}return Ie(e)}();function RJe(t){_i(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function Cle(t,n,e){var i=t.slice();return i[5]=n[e],i}function jJe(t){var n,e;return n=new hr({props:{data:cb}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function LJe(t){var n,e;return n=new hr({props:{data:lb}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Sle(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[LJe,jJe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=De("button"),i.c(),r=rt(),o=sn(d),s=rt(),R(n,"type","button"),R(n,"class","jse-query-language svelte-19cxesy"),R(n,"title",a="Select ".concat(t[5].name," as query language")),Nt(n,"selected",t[5].id===t[0])},m:function(g,v){$e(g,n,v),f[e].m(n,null),me(n,r),me(n,o),me(n,s),l=!0,c||(u=Rt(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):(Ht(),fe(f[y],1,1,function(){f[y]=null}),Ut(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),Q(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&ti(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&R(n,"title",a),(!l||3&v)&&Nt(n,"selected",t[5].id===t[0])},i:function(g){l||(Q(i),l=!0)},o:function(g){fe(i),l=!1},d:function(g){g&&Be(n),f[e].d(),c=!1,u()}}}function BJe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&kle(t);return s=new hr({props:{data:P0}}),{c:function(){n=De("div"),(e=De("div")).textContent="Transform",i=rt(),u&&u.c(),r=rt(),o=De("button"),gt(s.$$.fragment),R(e,"class","jse-title svelte-d01h2s"),R(o,"type","button"),R(o,"class","jse-close svelte-d01h2s"),R(n,"class","jse-header svelte-d01h2s")},m:function(d,h){$e(d,n,h),me(n,e),me(n,i),u&&u.m(n,null),me(n,r),me(n,o),pt(s,o,null),a=!0,l||(c=Rt(o,"click",t[2]),l=!0)},p:function(d,h){var f=Jn(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&Q(u,1)):((u=kle(d)).c(),Q(u,1),u.m(n,r)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut())},i:function(d){a||(Q(u),Q(s.$$.fragment,d),a=!0)},o:function(d){fe(u),fe(s.$$.fragment,d),a=!1},d:function(d){d&&Be(n),u&&u.d(),mt(s),l=!1,c()}}}function zJe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=Aa("simple-modal").close,c=Aa("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(VJe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Xi[h?"unshift":"push"](function(){e(1,i=h)})}]}var GJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,zJe,UJe,Pi,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},HJe),r}return Ie(e)}(),KP=Ma("jsoneditor:AutoScrollHandler"),WJe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},Dle=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||WJe,s=y.a11y||!1,wn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),wn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,wn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},Ak=Ma("jsoneditor:History");function Tle(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){Ak("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){Ak("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,Ak("undo",h),a(),h}},redo:function d(){if(o())return Ak("redo",e[i-=1]),a(),e[i]}}}function j0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var L0=Ma("validation");function Ele(t,n,e,i){return L0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function qJe(t,n,e,i){if(L0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Jd.info}]};if(0===t.length)return null;try{var r=j0(function(){return e.parse(t)},function(l){return L0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:j0(function(){return i.parse(t)},function(l){return L0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=j0(function(){return n(o)},function(l){return L0("validate: validated json in ".concat(l," ms"))});return Ji(s)?null:{validationErrors:s}}catch(l){var a=j0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Kd(c)),!0}catch{return!1}}(t,e)},function(c){return L0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:lk(t,l.message||l.toString()),isRepairable:a}}}var Mk=Ma("jsoneditor:FocusTracker");function QP(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(Mk("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){Mk("blur"),l=!1,a()}))}(0,t.onMount)(function(){Mk("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){Mk("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function YJe(t){_i(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function Ale(t,n,e){var i=t.slice();return i[8]=n[e],i}function Mle(t){var n,e;return n=new hr({props:{data:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Ole(t){var n,e;return n=new hr({props:{data:t[8].icon}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Ile(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&Ole(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=De("button"),d&&d.c(),e=rt(),i=sn(u),r=rt(),R(n,"type","button"),R(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),R(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){$e(p,n,m),d&&d.m(n,null),me(n,e),me(n,i),me(n,r),a=!0,l||(c=[Rt(n,"click",h),Rt(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&Q(d,1)):((d=Ole(t)).c(),Q(d,1),d.m(n,e)):d&&(Ht(),fe(d,1,1,function(){d=null}),Ut()),(!a||8&m)&&u!==(u=t[8].text+"")&&ti(i,u),(!a||8&m&&o!==(o=t[8].title))&&R(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(Q(d),a=!0)},o:function(p){fe(d),a=!1},d:function(p){p&&Be(n),d&&d.d(),l=!1,po(c)}}}function XJe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&Mle(t),f=t[3],p=[],m=0;m100&&jle(t);return{c:function(){n=De("table"),e=De("tbody");for(var u=0;u100?c?c.p(u,d):((c=jle(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&Ple(t);function y(){return t[6](t[7])}return{c:function(){n=De("tr"),e=De("td"),gt(i.$$.fragment),r=rt(),o=De("td"),s=sn(m),a=rt(),l=De("td"),c=sn(g),u=rt(),d=De("td"),v&&v.c(),R(e,"class","jse-validation-error-icon svelte-1oe8e8r"),R(o,"class","svelte-1oe8e8r"),R(l,"class","svelte-1oe8e8r"),R(d,"class","jse-validation-error-action svelte-1oe8e8r"),R(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(b,C){$e(b,n,C),me(n,e),pt(i,e,null),me(n,r),me(n,o),me(o,s),me(n,a),me(n,l),me(l,c),me(n,u),me(n,d),v&&v.m(d,null),h=!0,f||(p=Rt(n,"click",y),f=!0)},p:function(b,C){t=b,(!h||1&C)&&m!==(m=cu(rc(t[7].path))+"")&&ti(s,m),(!h||1&C)&&g!==(g=t[7].message+"")&&ti(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,C),1&C&&Q(v,1)):((v=Ple(t)).c(),Q(v,1),v.m(d,null)):v&&(Ht(),fe(v,1,1,function(){v=null}),Ut())},i:function(b){h||(Q(i.$$.fragment,b),Q(v),h=!0)},o:function(b){fe(i.$$.fragment,b),fe(v),h=!1},d:function(b){b&&Be(n),mt(i),v&&v.d(),f=!1,p()}}}function jle(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=De("tr"),e=De("td"),i=rt(),r=De("td"),o=rt(),s=De("td"),a=sn("(and "),l=sn(h),c=sn(" more errors)"),u=rt(),d=De("td"),R(e,"class","svelte-1oe8e8r"),R(r,"class","svelte-1oe8e8r"),R(s,"class","svelte-1oe8e8r"),R(d,"class","svelte-1oe8e8r"),R(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){$e(f,n,p),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),me(s,a),me(s,l),me(s,c),me(n,u),me(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&ti(l,h)},d:function(f){f&&Be(n)}}}function eKe(t){var n,e,i=!Ji(t[0]),r=i&&Fle(t);return{c:function(){r&&r.c(),n=Dr()},m:function(o,s){r&&r.m(o,s),$e(o,n,s),e=!0},p:function(o,s){var a=Jn(s,1)[0];1&a&&(i=!Ji(o[0])),i?r?(r.p(o,a),1&a&&Q(r,1)):((r=Fle(o)).c(),Q(r,1),r.m(n.parentNode,n)):r&&(Ht(),fe(r,1,1,function(){r=null}),Ut())},i:function(o){e||(Q(r),e=!0)},o:function(o){fe(r),e=!1},d:function(o){r&&r.d(o),o&&Be(n)}}}function tKe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var ZP=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,tKe,eKe,Pi,{validationErrors:0,selectError:1},KJe),r}return Ie(e)}(),nKe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function iKe(t){_i(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function rKe(t){var n,e,i,r,o,s,a,l,c;return s=new hr({props:{data:P0}}),{c:function(){n=De("div"),e=De("div"),i=sn(t[0]),r=rt(),o=De("button"),gt(s.$$.fragment),R(e,"class","jse-title svelte-d01h2s"),R(o,"type","button"),R(o,"class","jse-close svelte-d01h2s"),R(n,"class","jse-header svelte-d01h2s")},m:function(u,d){$e(u,n,d),me(n,e),me(e,i),me(n,r),me(n,o),pt(s,o,null),a=!0,l||(c=Rt(o,"click",t[3]),l=!0)},p:function(u,d){var h=Jn(d,1)[0];(!a||1&h)&&ti(i,u[0])},i:function(u){a||(Q(s.$$.fragment,u),a=!0)},o:function(u){fe(s.$$.fragment,u),a=!1},d:function(u){u&&Be(n),mt(s),l=!1,c()}}}function oKe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=Aa("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var e4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,oKe,rKe,Pi,{title:0,onClose:1},iKe),r}return Ie(e)}();function sKe(t){_i(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function aKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z;return e=new e4({props:{title:"Copying and pasting"}}),{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),(o=De("div")).textContent="These actions are unavailable via the menu. Please use:",s=rt(),a=De("div"),l=De("div"),(c=De("div")).textContent="".concat(t[1],"+C"),u=sn("\n for copy"),d=rt(),h=De("div"),(f=De("div")).textContent="".concat(t[1],"+X"),p=sn("\n for cut"),m=rt(),g=De("div"),(v=De("div")).textContent="".concat(t[1],"+V"),y=sn("\n for paste"),b=rt(),C=De("div"),(D=De("button")).textContent="Close",R(c,"class","jse-key svelte-1olothd"),R(l,"class","jse-shortcut"),R(f,"class","jse-key svelte-1olothd"),R(h,"class","jse-shortcut"),R(v,"class","jse-key svelte-1olothd"),R(g,"class","jse-shortcut"),R(a,"class","jse-shortcuts svelte-1olothd"),R(D,"type","button"),R(D,"class","jse-primary svelte-1olothd"),R(C,"class","jse-actions svelte-1olothd"),R(r,"class","jse-modal-contents svelte-1olothd"),R(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(j,U){$e(j,n,U),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(r,s),me(r,a),me(a,l),me(l,c),me(l,u),me(a,d),me(a,h),me(h,f),me(h,p),me(a,m),me(a,g),me(g,v),me(g,y),me(r,b),me(r,C),me(C,D),E=!0,B||(z=Rt(D,"click",t[0]),B=!0)},p:Bt,i:function(j){E||(Q(e.$$.fragment,j),E=!0)},o:function(j){fe(e.$$.fragment,j),E=!1},d:function(j){j&&Be(n),mt(e),B=!1,z()}}}function lKe(t){return[Aa("simple-modal").close,nKe?"\u2318":"Ctrl"]}var Lle=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,lKe,aKe,Pi,{},sKe),r}return Ie(e)}();function Ble(t){return!!t&&("space"===t.type||!0===t.space)}function Ok(t){return!!t&&("separator"===t.type||!0===t.separator)}function _b(t){return!!t&&"function"==typeof t.onClick}function t4(t){return!!t&&"dropdown-button"===t.type&&_b(t.main)&&Array.isArray(t.items)}function $le(t){return Io(t)&&Io(t.parseError)}function uKe(t){_i(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var dKe=function(t){return{}},Vle=function(t){return{}};function Hle(t,n,e){var i=t.slice();return i[3]=n[e],i}var hKe=function(t){return{}},Ule=function(t){return{}};function fKe(t){var n,e=qle(t[3])+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){1&r&&e!==(e=qle(i[3])+"")&&ti(n,e)},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function pKe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&zle(t),u=t[3].text&&Gle(t);return{c:function(){n=De("button"),c&&c.c(),e=rt(),u&&u.c(),R(n,"type","button"),R(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),R(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){$e(d,n,h),c&&c.m(n,null),me(n,e),u&&u.m(n,null),s=!0,a||(l=Rt(n,"click",function(){Ta(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&Q(c,1)):((c=zle(t)).c(),Q(c,1),c.m(n,e)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()),t[3].text?u?u.p(t,h):((u=Gle(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&R(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&R(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(Q(c),s=!0)},o:function(d){fe(c),s=!1},d:function(d){d&&Be(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function mKe(t){var n;return{c:function(){R(n=De("div"),"class","jse-space svelte-497ud4")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function gKe(t){var n;return{c:function(){R(n=De("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function zle(t){var n,e;return n=new hr({props:{data:t[3].icon}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Gle(t){var n,e=t[3].text+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&ti(n,e)},d:function(i){i&&Be(n)}}}function Wle(t){var n,e,i,r,o,s,a,l=[gKe,mKe,pKe,fKe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!Ok(d[3])),n?0:(null==e&&(e=!!Ble(d[3])),e?1:(null==i&&(i=!!_b(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=Dr()},m:function(d,h){c[r].m(d,h),$e(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):(Ht(),fe(c[f],1,1,function(){c[f]=null}),Ut(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(d){a||(Q(o),a=!0)},o:function(d){fe(o),a=!1},d:function(d){c[r].d(d),d&&Be(s)}}}function vKe(t){for(var n,e,i,r,o=t[2].left,s=Ms(o,t,t[1],Ule),a=t[0],l=[],c=0;c0&&b.height>0}),u),c=u(e);function u(y){var b=y.getBoundingClientRect();return{x:b.left+b.width/2,y:b.top+b.height/2,rect:b,element:y}}function d(y,b){var D=y.x-b.x,E=(y.y-b.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(D*D+E*E)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(v0(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(v0(g.filter(function(y){return o(y.element)}),h)||v0(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Xi[a?"unshift":"push"](function(){e(2,i=a)})}]}var uce=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,rQe,iQe,Pi,{items:0,tip:1},VKe),r}return Ie(e)}();function oQe(t){var n,e;return n=new uce({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function sQe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B=n.json,z=n.documentState,j=n.parser,U=n.showTip,G=n.onCloseContextMenu,X=n.onEditKey,oe=n.onEditValue,P=n.onToggleEnforceString,W=n.onCut,J=n.onCopy,H=n.onPaste,pe=n.onRemove,A=n.onDuplicate,N=n.onExtract,F=n.onInsertBefore,q=n.onInsert,V=n.onConvert,ce=n.onInsertAfter,ve=n.onSort,je=n.onTransform;function Te(){G(),X()}function et(){G(),oe()}function We(){G(),P()}function st(){G(),W(!0)}function $(){G(),W(!1)}function ae(){G(),J(!0)}function le(){G(),J(!1)}function Re(){G(),H()}function Ze(){G(),pe()}function Ve(){G(),A()}function Ct(){G(),N()}function Ot(hn){G(),c?V(hn):q(hn)}function yn(){G(),ve()}function Xn(){G(),je()}function on(){G(),F()}function Ri(){G(),ce()}return t.$$set=function(hn){"json"in hn&&e(2,B=hn.json),"documentState"in hn&&e(3,z=hn.documentState),"parser"in hn&&e(4,j=hn.parser),"showTip"in hn&&e(0,U=hn.showTip),"onCloseContextMenu"in hn&&e(5,G=hn.onCloseContextMenu),"onEditKey"in hn&&e(6,X=hn.onEditKey),"onEditValue"in hn&&e(7,oe=hn.onEditValue),"onToggleEnforceString"in hn&&e(8,P=hn.onToggleEnforceString),"onCut"in hn&&e(9,W=hn.onCut),"onCopy"in hn&&e(10,J=hn.onCopy),"onPaste"in hn&&e(11,H=hn.onPaste),"onRemove"in hn&&e(12,pe=hn.onRemove),"onDuplicate"in hn&&e(13,A=hn.onDuplicate),"onExtract"in hn&&e(14,N=hn.onExtract),"onInsertBefore"in hn&&e(15,F=hn.onInsertBefore),"onInsert"in hn&&e(16,q=hn.onInsert),"onConvert"in hn&&e(17,V=hn.onConvert),"onInsertAfter"in hn&&e(18,ce=hn.onInsertAfter),"onSort"in hn&&e(19,ve=hn.onSort),"onTransform"in hn&&e(20,je=hn.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=z.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==B),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Ji(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?On(B,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Io(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Lr(i)||ws(i)||nr(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Lr(i)||nr(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&hb(i)&&!s&&!Array.isArray(On(B,tr(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&hb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!zo(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?ng(i)&&!Io(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,b=m?ng(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,C=m?ng(i)&&zo(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,D=null!=i&&mf(a,z.enforceStringMap,dn(i.focusPath),j)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,E=[{type:"row",items:[{type:"button",onClick:Te,icon:N0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:et,icon:N0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:N0,text:l,title:"Edit the value (Double-click on the value)",onClick:et,disabled:!f},{type:"button",icon:D?lb:cb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:We,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:st,icon:I0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:I0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:st,disabled:!c},{type:"button",icon:I0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:$,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ae,icon:xp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:xp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ae,disabled:!c},{type:"button",icon:xp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:le,disabled:!c}]},{type:"button",onClick:Re,icon:Aae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:Ve,icon:Rae,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:Ct,icon:PXe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:yn,icon:xk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:Xn,icon:yk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ze,icon:BP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return Ot("structure")},icon:m?bk:F0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return Ot("object")},icon:m?bk:F0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return Ot("array")},icon:m?bk:F0,text:"Array",title:g+" array",disabled:!b},{type:"button",onClick:function(){return Ot("value")},icon:m?bk:F0,text:"Value",title:g+" value",disabled:!C}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:on,icon:NXe,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Ri,icon:MXe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[U,E,B,z,j,G,X,oe,P,W,J,H,pe,A,N,F,q,V,ce,ve,je,s,c,C,g,m,b,y,v,d,u,o,p,D,f,l,h,i,a,r]}var aQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,sQe,oQe,Pi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Ie(e)}();function lQe(t){_i(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function dce(t,n,e){var i=t.slice();return i[13]=n[e],i}function hce(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=De("button"),e=sn("show "),i=sn(c),r=sn("-"),o=sn(u),s=rt(),R(n,"type","button"),R(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){$e(h,n,f),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),a||(l=Rt(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&ti(i,c),16&f&&u!==(u=t[13].end+"")&&ti(o,u)},d:function(h){h&&Be(n),a=!1,l()}}}function cQe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&b.end<=E.start)&&B.push(b),E.start>=(z?b.end:v.end)&&B.push(E),a=B))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var hQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dQe,cQe,Pi,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},lQe),r}return Ie(e)}();function fQe(t){_i(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function pQe(t){var n,e,i,r,o;return e=new hr({props:{data:hu}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-context-menu-pointer svelte-1yzl4st"),R(n,"title",hN),Nt(n,"jse-selected",t[0])},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Rt(n,"click",t[1]),r=!0)},p:function(s,a){var l=Jn(a,1)[0];(!i||1&l)&&Nt(n,"jse-selected",s[0])},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function mQe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var Sp=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,mQe,pQe,Pi,{selected:0,onContextMenu:2},fQe),r}return Ie(e)}();function gQe(t){_i(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function vQe(t){var n,e,i,r,o,s,a,l=[bQe,_Qe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=De("div"),i.c(),R(n,"data-type","selectable-key"),R(n,"class",r=Mo(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){$e(d,n,h),c[e].m(n,null),o=!0,s||(a=Rt(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):(Ht(),fe(c[f],1,1,function(){c[f]=null}),Ut(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),Q(i,1),i.m(n,null)),(!o||1&h&&r!==(r=Mo(d[6](d[0]))+" svelte-24a1b2"))&&R(n,"class",r)},i:function(d){o||(Q(i),o=!0)},o:function(d){fe(i),o=!1},d:function(d){d&&Be(n),c[e].d(),s=!1,a()}}}function yQe(t){var n,e;return n=new mae({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function _Qe(t){var n,e=eg(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){5&r&&e!==(e=eg(i[2].normalization.escapeValue(i[0]))+"")&&ti(n,e)},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function bQe(t){var n,e;return n=new Eae({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function pce(t){var n,e;return n=new Sp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function xQe(t){var n,e,i,r,o,s=[yQe,vQe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&pce(t);return{c:function(){e.c(),i=rt(),c&&c.c(),r=Dr()},m:function(u,d){a[n].m(u,d),$e(u,i,d),c&&c.m(u,d),$e(u,r,d),o=!0},p:function(u,d){var h=Jn(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):(Ht(),fe(a[f],1,1,function(){a[f]=null}),Ut(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),Q(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()):c?(c.p(u,h),28&h&&Q(c,1)):((c=pce(u)).c(),Q(c,1),c.m(r.parentNode,r))},i:function(u){o||(Q(e),Q(c),o=!0)},o:function(u){fe(e),fe(c),o=!1},d:function(u){a[n].d(u),u&&Be(i),c&&c.d(u),u&&Be(r)}}}function wQe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&ws(l):void 0),2056&t.$$.dirty&&e(4,r=i&&yp(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(du(o,!0)))},function(h){return ch("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=tr(o).concat(p);d.onSelect(f===pN?br(m,!1):du(m,!1)),f!==fN&&d.focus()},function(){d.onSelect(du(o,!1)),d.focus()},o,s,l,u]}var CQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wQe,xQe,Pi,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},gQe),r}return Ie(e)}();function mce(t,n,e){var i=t.slice();return i[8]=n[e],i}function gce(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=mk(u.selection),v=f.findIndex(function(U){return dr(U.path,g)}),y=0,b=v,C=function(){var U;return null===(U=f[b+1])||void 0===U?void 0:U.height};void 0!==C()&&Math.abs(m)>y+C()/2;)y+=C(),b+=1;var E=On(h,tr(g)),B=Array.isArray(E),z=null===(d=f[B?b:b+1])||void 0===d?void 0:d.path,j=b-v;return z?{beforePath:z,offset:j}:{append:!0,offset:j}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,b,C,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=tr(d.focusPath),g=On(u,m);if(!(p||f&&A0(f,m)&&f.length>m.length))return[];var v=D0(d),y=mk(d),b=Bn(v),C=Bn(y),D=f?f[m.length]:void 0;if(!Oo(g)){if(ao(g)){var E=Ys(b),B=Ys(C),z=void 0!==D?Ys(D):g.length;return lP(B-E+1,zU?[].concat(ui(j.slice(U,G+1)),ui(j.slice(X,j.length))).map(function(oe){return ig(m,oe)}):[].concat(ui(j.slice(X,U)),ui(j.slice(G+1,j.length))).map(function(oe){return ig(m,oe)}):[]}(n,o,s),l=On(n,tr(D0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=D0(m=u.selection),y=mk(m),b=f.findIndex(function(B){return dr(B.path,v)}),C=f.findIndex(function(B){return dr(B.path,y)}),Fs(p,null===(d=f[b+g])||void 0===d?void 0:d.path,null===(h=f[C+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function hh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Zv(e,n)})}function EQe(t){_i(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function AQe(t){var n,e,i,r,o,s;return e=new hr({props:{data:rg}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){$e(a,n,l),pt(e,n,null),r=!0,o||(s=[Rt(n,"click",function(){Ta(t[0])&&t[0].apply(this,arguments)}),Ea(i=LP.call(null,n,nt({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Jn(l,1)[0];t=a,i&&Ta(i.update)&&2&c&&i.update.call(null,nt({text:t[1]},t[2]))},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){fe(e.$$.fragment,a),r=!1},d:function(a){a&&Be(n),mt(e),o=!1,po(s)}}}function MQe(t,n,e){var i,r=Aa("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var V0=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,MQe,AQe,_s,{validationError:3,onExpand:0},EQe),r}return Ie(e)}();function OQe(t){_i(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var IQe=function(t){return{}},vce=function(t){return{}};function yce(t,n,e){var i=t.slice();return i[53]=n[e],i}var NQe=function(t){return{}},_ce=function(t){return{}};function bce(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function xce(t,n,e){var i=t.slice();return i[50]=n[e],i}var FQe=function(t){return{}},wce=function(t){return{}};function PQe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),d=t[34].identifier,h=Ms(d,t,t[35],vce),f=!t[17]&&Cce();o=new TQe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:kae(t[6],t[9]),context:t[8]}});var p=u&&Sce(t),m=t[15]&&kce(t),g=!t[17]&&Dce(t);return{c:function(){n=De("div"),e=De("div"),h&&h.c(),i=rt(),f&&f.c(),r=rt(),gt(o.$$.fragment),s=rt(),p&&p.c(),a=rt(),m&&m.c(),l=rt(),g&&g.c(),R(e,"class","jse-contents svelte-1wlxti1"),R(n,"class","jse-contents-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(v,y){$e(v,n,y),me(n,e),h&&h.m(e,null),me(e,i),f&&f.m(e,null),me(e,r),pt(o,e,null),me(e,s),p&&p.m(e,null),me(n,a),m&&m.m(n,null),me(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Is(h,d,v,v[35],c?Os(d,v[35],y,IQe):Ns(v[35]),vce),v[17]?f&&(f.d(1),f=null):f||((f=Cce()).c(),f.m(e,r));var b={};2&y[0]&&(b.path=v[1]),1&y[0]&&(b.value=v[0]),8192&y[0]&&(b.enforceString=v[13]),65664&y[0]&&(b.selection=v[16]?v[7]:void 0),576&y[0]&&(b.searchResultItems=kae(v[6],v[9])),256&y[0]&&(b.context=v[8]),o.$set(b),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(nr(v[7])||Lr(v[7]))&&!v[7].edit&&dr(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&Q(p,1)):((p=Sce(v)).c(),Q(p,1),p.m(e,null)):p&&(Ht(),fe(p,1,1,function(){p=null}),Ut()),v[15]?m?(m.p(v,y),32768&y[0]&&Q(m,1)):((m=kce(v)).c(),Q(m,1),m.m(n,l)):m&&(Ht(),fe(m,1,1,function(){m=null}),Ut()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=Dce(v)).c(),g.m(n,null)),(!c||262144&y[0])&&R(n,"style",v[18])},i:function(v){c||(Q(h,v),Q(o.$$.fragment,v),Q(p),Q(m),c=!0)},o:function(v){fe(h,v),fe(o.$$.fragment,v),fe(p),fe(m),c=!1},d:function(v){v&&Be(n),h&&h.d(v),f&&f.d(),mt(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function RQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),C=[BQe,LQe],D=[];function E(A,N){return A[12]?0:1}r=E(t),o=D[r]=C[r](t);var B=t[34].identifier,z=Ms(B,t,t[35],_ce),j=!t[17]&&Tce();function U(A,N){return A[12]?VQe:$Qe}var G=U(t),X=G(t),oe=b&&Ece(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Ace(t);function W(A,N){return A[12]?UQe:A[17]?void 0:HQe}var J=W(t),H=J&&J(t),pe=t[12]&&Mce(t);return{c:function(){n=De("div"),e=De("div"),i=De("button"),o.c(),s=rt(),z&&z.c(),a=rt(),j&&j.c(),l=rt(),c=De("div"),u=De("div"),X.c(),d=rt(),oe&&oe.c(),h=rt(),P&&P.c(),f=rt(),H&&H.c(),p=rt(),pe&&pe.c(),m=Dr(),R(i,"type","button"),R(i,"class","jse-expand svelte-1wlxti1"),R(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),R(u,"class","jse-meta-inner svelte-1wlxti1"),R(c,"class","jse-meta svelte-1wlxti1"),R(c,"data-type","selectable-value"),R(e,"class","jse-header svelte-1wlxti1"),R(n,"class","jse-header-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(A,N){$e(A,n,N),me(n,e),me(e,i),D[r].m(i,null),me(e,s),z&&z.m(e,null),me(e,a),j&&j.m(e,null),me(e,l),me(e,c),me(c,u),X.m(u,null),me(e,d),oe&&oe.m(e,null),me(n,h),P&&P.m(n,null),me(n,f),H&&H.m(n,null),$e(A,p,N),pe&&pe.m(A,N),$e(A,m,N),g=!0,v||(y=Rt(i,"click",t[21]),v=!0)},p:function(A,N){var F=r;(r=E(A))===F?D[r].p(A,N):(Ht(),fe(D[F],1,1,function(){D[F]=null}),Ut(),(o=D[r])?o.p(A,N):(o=D[r]=C[r](A)).c(),Q(o,1),o.m(i,null)),z&&z.p&&(!g||16&N[1])&&Is(z,B,A,A[35],g?Os(B,A[35],N,NQe):Ns(A[35]),_ce),A[17]?j&&(j.d(1),j=null):j||((j=Tce()).c(),j.m(e,l)),G===(G=U(A))&&X?X.p(A,N):(X.d(1),(X=G(A))&&(X.c(),X.m(u,null))),65922&N[0]&&(b=!A[8].readOnly&&A[16]&&A[7]&&(nr(A[7])||Lr(A[7]))&&!A[7].edit&&dr(A[7].focusPath,A[1])),b?oe?(oe.p(A,N),65922&N[0]&&Q(oe,1)):((oe=Ece(A)).c(),Q(oe,1),oe.m(e,null)):oe&&(Ht(),fe(oe,1,1,function(){oe=null}),Ut()),!A[15]||A[12]&&A[15].isChildError?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),36864&N[0]&&Q(P,1)):((P=Ace(A)).c(),Q(P,1),P.m(n,f)),J===(J=W(A))&&H?H.p(A,N):(H&&H.d(1),(H=J&&J(A))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&R(n,"style",A[18]),A[12]?pe?(pe.p(A,N),4096&N[0]&&Q(pe,1)):((pe=Mce(A)).c(),Q(pe,1),pe.m(m.parentNode,m)):pe&&(Ht(),fe(pe,1,1,function(){pe=null}),Ut())},i:function(A){g||(Q(o),Q(z,A),Q(oe),Q(P),Q(pe),g=!0)},o:function(A){fe(o),fe(z,A),fe(oe),fe(P),fe(pe),g=!1},d:function(A){A&&Be(n),D[r].d(),z&&z.d(A),j&&j.d(),X.d(),oe&&oe.d(),P&&P.d(),H&&H.d(),A&&Be(p),pe&&pe.d(A),A&&Be(m),v=!1,y()}}}function jQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),C=[WQe,GQe],D=[];function E(A,N){return A[12]?0:1}r=E(t),o=D[r]=C[r](t);var B=t[34].identifier,z=Ms(B,t,t[35],wce),j=!t[17]&&Fce();function U(A,N){return A[12]?YQe:qQe}var G=U(t),X=G(t),oe=b&&Pce(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Rce(t);function W(A,N){return A[12]?JQe:XQe}var J=W(t),H=J(t),pe=t[12]&&jce(t);return{c:function(){n=De("div"),e=De("div"),i=De("button"),o.c(),s=rt(),z&&z.c(),a=rt(),j&&j.c(),l=rt(),c=De("div"),u=De("div"),X.c(),d=rt(),oe&&oe.c(),h=rt(),P&&P.c(),f=rt(),H.c(),p=rt(),pe&&pe.c(),m=Dr(),R(i,"type","button"),R(i,"class","jse-expand svelte-1wlxti1"),R(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),R(u,"class","jse-meta-inner svelte-1wlxti1"),R(u,"data-type","selectable-value"),R(c,"class","jse-meta svelte-1wlxti1"),R(e,"class","jse-header svelte-1wlxti1"),R(n,"class","jse-header-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(A,N){$e(A,n,N),me(n,e),me(e,i),D[r].m(i,null),me(e,s),z&&z.m(e,null),me(e,a),j&&j.m(e,null),me(e,l),me(e,c),me(c,u),X.m(u,null),me(e,d),oe&&oe.m(e,null),me(n,h),P&&P.m(n,null),me(n,f),H.m(n,null),$e(A,p,N),pe&&pe.m(A,N),$e(A,m,N),g=!0,v||(y=Rt(i,"click",t[21]),v=!0)},p:function(A,N){var F=r;(r=E(A))===F?D[r].p(A,N):(Ht(),fe(D[F],1,1,function(){D[F]=null}),Ut(),(o=D[r])?o.p(A,N):(o=D[r]=C[r](A)).c(),Q(o,1),o.m(i,null)),z&&z.p&&(!g||16&N[1])&&Is(z,B,A,A[35],g?Os(B,A[35],N,FQe):Ns(A[35]),wce),A[17]?j&&(j.d(1),j=null):j||((j=Fce()).c(),j.m(e,l)),G===(G=U(A))&&X?X.p(A,N):(X.d(1),(X=G(A))&&(X.c(),X.m(u,null))),65922&N[0]&&(b=!A[8].readOnly&&A[16]&&A[7]&&(nr(A[7])||Lr(A[7]))&&!A[7].edit&&dr(A[7].focusPath,A[1])),b?oe?(oe.p(A,N),65922&N[0]&&Q(oe,1)):((oe=Pce(A)).c(),Q(oe,1),oe.m(e,null)):oe&&(Ht(),fe(oe,1,1,function(){oe=null}),Ut()),!A[15]||A[12]&&A[15].isChildError?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),36864&N[0]&&Q(P,1)):((P=Rce(A)).c(),Q(P,1),P.m(n,f)),J===(J=W(A))&&H?H.p(A,N):(H.d(1),(H=J(A))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&R(n,"style",A[18]),A[12]?pe?(pe.p(A,N),4096&N[0]&&Q(pe,1)):((pe=jce(A)).c(),Q(pe,1),pe.m(m.parentNode,m)):pe&&(Ht(),fe(pe,1,1,function(){pe=null}),Ut())},i:function(A){g||(Q(o),Q(z,A),Q(oe),Q(P),Q(pe),g=!0)},o:function(A){fe(o),fe(z,A),fe(oe),fe(P),fe(pe),g=!1},d:function(A){A&&Be(n),D[r].d(),z&&z.d(A),j&&j.d(),X.d(),oe&&oe.d(),P&&P.d(),H.d(),A&&Be(p),pe&&pe.d(A),A&&Be(m),v=!1,y()}}}function Cce(t){var n;return{c:function(){(n=De("div")).textContent=":",R(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function Sce(t){var n,e,i;return e=new Sp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){$e(r,n,o),pt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){fe(e.$$.fragment,r),i=!1},d:function(r){r&&Be(n),mt(e)}}}function kce(t){var n,e;return n=new V0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Dce(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),R(n,"data-type","insert-selection-area-after")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[30]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function LQe(t){var n,e;return n=new hr({props:{data:_p}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function BQe(t){var n,e;return n=new hr({props:{data:hu}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Tce(t){var n;return{c:function(){(n=De("div")).textContent=":",R(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function $Qe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=De("div")).textContent="{",e=rt(),i=De("button"),r=sn(d),o=rt(),s=sn(h),a=rt(),(l=De("div")).textContent="}",R(n,"class","jse-bracket svelte-1wlxti1"),R(i,"type","button"),R(i,"class","jse-tag svelte-1wlxti1"),R(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){$e(f,n,p),$e(f,e,p),$e(f,i,p),me(i,r),me(i,o),me(i,s),$e(f,a,p),$e(f,l,p),c||(u=Rt(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&ti(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&ti(s,h)},d:function(f){f&&Be(n),f&&Be(e),f&&Be(i),f&&Be(a),f&&Be(l),c=!1,u()}}}function VQe(t){var n;return{c:function(){(n=De("div")).textContent="{",R(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},p:Bt,d:function(e){e&&Be(n)}}}function Ece(t){var n,e,i;return e=new Sp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){$e(r,n,o),pt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){fe(e.$$.fragment,r),i=!1},d:function(r){r&&Be(n),mt(e)}}}function Ace(t){var n,e;return n=new V0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function HQe(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),R(n,"data-type","insert-selection-area-after")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[30]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function UQe(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),R(n,"data-type","insert-selection-area-inside")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[29]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function Mce(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Js(t[7])),c=l&&Oce(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=rt(),p&&p.c(),R(n,"class","jse-props svelte-1wlxti1"),R(o,"data-type","selectable-value"),R(o,"class","jse-footer svelte-1wlxti1"),R(r,"class","jse-footer-outer svelte-1wlxti1"),R(r,"style",t[18])},m:function(m,g){$e(m,n,g),c&&c.m(n,null),me(n,e);for(var v=0;v]',s=rt(),v&&v.c(),R(n,"class","jse-items svelte-1wlxti1"),R(o,"data-type","selectable-value"),R(o,"class","jse-footer svelte-1wlxti1"),R(r,"class","jse-footer-outer svelte-1wlxti1"),R(r,"style",t[18])},m:function(y,b){$e(y,n,b),d&&d.m(n,null),me(n,e);for(var C=0;C=Ve.start&&ae<=Ve.end});if(!le)return null;mse(le.start,Math.min(p.length,le.end),function(Ve){return et(String(Ve))})}else Object.keys(p).forEach(et);return Te}(D,l||$m);if(z("dragSelectionStart",{selection:D,items:F}),F){var q=D0(D),V=F.findIndex(function(ve){return dr(ve.path,q)}),ce=r4({json:E.getJson(),documentState:E.getDocumentState(),deltaY:0,items:F}).offset;e(11,G={initialTarget:A.target,initialClientY:A.clientY,initialContentTop:W(),selectionStartIndex:V,selectionItemsCount:hae(D).length,items:F,offset:ce,didMoveItems:!1}),ya.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",pe)}else z("Cannot drag the current selection (probably spread over multiple sections)")}else B(A)}},function(A){ya.selecting||ya.dragging||(A.stopPropagation(),tg(A.target,"data-type","selectable-value")?e(10,j="hover-collection"):tg(A.target,"data-type","insert-selection-area-inside")?e(10,j="hover-insert-inside"):tg(A.target,"data-type","insert-selection-area-after")&&e(10,j="hover-insert-after"),clearTimeout(U))},function(A){A.stopPropagation(),U=setTimeout(function(){return e(10,j=void 0)})},function(A){A.shiftKey||(A.stopPropagation(),A.preventDefault(),E.onSelect(gf(m)))},function(A){A.shiftKey||(A.stopPropagation(),A.preventDefault(),E.onSelect(vf(m)))},function(A){E.onSelect(gf(m)),E.onContextMenu(A)},function(A){E.onSelect(vf(m)),E.onContextMenu(A)},B,h,f]}var o4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ZQe,QQe,Pi,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},OQe,[-1,-1]),r}return Ie(e)}(),eZe=o4,tZe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},nZe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},s4={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},iZe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function rZe(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function oZe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,b=n.onRedo,C=n.onSort,D=n.onTransform,E=n.onContextMenu,B=n.onCopy,z=n.onRenderMenu;function j(){e(1,p=!p)}return t.$$set=function(U){"json"in U&&e(2,u=U.json),"selection"in U&&e(3,d=U.selection),"readOnly"in U&&e(4,h=U.readOnly),"showSearch"in U&&e(1,p=U.showSearch),"historyState"in U&&e(5,m=U.historyState),"onExpandAll"in U&&e(6,g=U.onExpandAll),"onCollapseAll"in U&&e(7,v=U.onCollapseAll),"onUndo"in U&&e(8,y=U.onUndo),"onRedo"in U&&e(9,b=U.onRedo),"onSort"in U&&e(10,C=U.onSort),"onTransform"in U&&e(11,D=U.onTransform),"onContextMenu"in U&&e(12,E=U.onContextMenu),"onCopy"in U&&e(13,B=U.onCopy),"onRenderMenu"in U&&e(14,z=U.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Lr(d)||ws(d)||nr(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:tZe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!zo(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:nZe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!zo(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:HP,title:"Search (Ctrl+F)",className:"jse-search",onClick:j,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:xp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:B,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:C,disabled:h||void 0===u},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:D,disabled:h||void 0===u},l,{type:"button",icon:Nae,title:hN,className:"jse-contextmenu",onClick:E},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:b,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=z(c)||c)},[o,p,u,d,h,m,g,v,y,b,C,D,E,B,z,s,a,l,c,r,i]}var sZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,oZe,rZe,Pi,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Ie(e)}();function aZe(t){_i(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function zce(t){var n;return{c:function(){(n=De("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',R(n,"class","svelte-1q2qkk2")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function lZe(t){var n,e,i,r,o,s,a,l=!t[0]&&zce();return{c:function(){n=De("div"),e=De("div"),i=rt(),r=De("div"),o=sn("Empty document\n "),l&&l.c(),s=rt(),a=De("div"),R(e,"class","jse-space jse-before svelte-1q2qkk2"),R(r,"class","jse-contents svelte-1q2qkk2"),R(a,"class","jse-space jse-after svelte-1q2qkk2"),R(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){$e(c,n,u),me(n,e),me(n,i),me(n,r),me(r,o),l&&l.m(r,null),me(n,s),me(n,a)},p:function(c,u){Jn(u,1),c[0]?l&&(l.d(1),l=null):l||((l=zce()).c(),l.m(r,null))},i:Bt,o:Bt,d:function(c){c&&Be(n),l&&l.d()}}}function cZe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var uZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,cZe,lZe,Pi,{readOnly:0},aZe),r}return Ie(e)}(),a4={},dZe={get exports(){return a4},set exports(t){a4=t}},Gce=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(ao(On(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function fZe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function pZe(t,n){return function(e,i){var r=On(e,t),o=On(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=On(t,n);return[{op:"replace",path:dn(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Io(t))return function hZe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=On(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*l4(u,d)});for(var s=[],a=0;axb&&Xce();return{c:function(){n=De("div");for(var d=0;dxb?u?u.p(d,f):((u=Xce()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:Bt,o:Bt,d:function(d){d&&Be(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=On(l,g);if(Array.isArray(v))return rP(0,v.length).map(String);if(Io(v)){var y=Object.keys(v).slice(0);return y.sort(l4),y}return[]},function(g){return nu(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Xi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Xi[g?"unshift":"push"](function(){e(4,o=g)})}]}var OZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,MZe,AZe,Pi,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},DZe),r}return Ie(e)}();function IZe(t){_i(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function rue(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",P=!t[4]&&oue(t),W=[FZe,NZe],J=[];function H(A,N){return A[2]?0:1}a=H(t),l=J[a]=W[a](t),y=new hr({props:{data:BXe}}),D=new hr({props:{data:IXe}}),z=new hr({props:{data:P0}});var pe=t[0]&&!t[4]&&sue(t);return{c:function(){n=De("div"),e=De("form"),P&&P.c(),i=rt(),r=De("div"),o=De("div"),s=De("div"),l.c(),c=rt(),u=De("label"),d=De("input"),h=rt(),f=De("div"),p=sn(oe),m=sn(t[10]),g=rt(),v=De("button"),gt(y.$$.fragment),b=rt(),C=De("button"),gt(D.$$.fragment),E=rt(),B=De("button"),gt(z.$$.fragment),j=rt(),pe&&pe.c(),R(s,"class","jse-search-icon svelte-3lbrbf"),R(d,"class","jse-search-input svelte-3lbrbf"),R(d,"title","Enter text to search"),R(d,"type","text"),R(d,"placeholder","Find"),R(u,"class","jse-search-input-label svelte-3lbrbf"),R(u,"about","jse-search input"),R(f,"class","jse-search-count svelte-3lbrbf"),Nt(f,"jse-visible",""!==t[8]),R(v,"type","button"),R(v,"class","jse-search-next svelte-3lbrbf"),R(v,"title","Go to next search result (Enter)"),R(C,"type","button"),R(C,"class","jse-search-previous svelte-3lbrbf"),R(C,"title","Go to previous search result (Shift+Enter)"),R(B,"type","button"),R(B,"class","jse-search-clear svelte-3lbrbf"),R(B,"title","Close search box (Esc)"),R(o,"class","jse-search-section svelte-3lbrbf"),R(r,"class","jse-search-contents svelte-3lbrbf"),R(e,"class","jse-search-form svelte-3lbrbf"),R(n,"class","jse-search-box svelte-3lbrbf")},m:function(A,N){$e(A,n,N),me(n,e),P&&P.m(e,null),me(e,i),me(e,r),me(r,o),me(o,s),J[a].m(s,null),me(o,c),me(o,u),me(u,d),ip(d,t[8]),me(o,h),me(o,f),me(f,p),me(f,m),me(o,g),me(o,v),pt(y,v,null),me(o,b),me(o,C),pt(D,C,null),me(o,E),me(o,B),pt(z,B,null),me(r,j),pe&&pe.m(r,null),U=!0,G||(X=[Rt(d,"input",t[21]),Ea(RZe.call(null,d)),Rt(v,"click",t[22]),Rt(C,"click",t[23]),Rt(B,"click",t[24]),Rt(e,"submit",t[12]),Rt(e,"keydown",t[13])],G=!0)},p:function(A,N){A[4]?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),16&N&&Q(P,1)):((P=oue(A)).c(),Q(P,1),P.m(e,i));var F=a;(a=H(A))===F?J[a].p(A,N):(Ht(),fe(J[F],1,1,function(){J[F]=null}),Ut(),(l=J[a])?l.p(A,N):(l=J[a]=W[a](A)).c(),Q(l,1),l.m(s,null)),256&N&&d.value!==A[8]&&ip(d,A[8]),(!U||8&N)&&oe!==(oe=(-1!==A[3]?"".concat(A[3]+1,"/"):"")+"")&&ti(p,oe),(!U||1024&N)&&ti(m,A[10]),(!U||256&N)&&Nt(f,"jse-visible",""!==A[8]),A[0]&&!A[4]?pe?pe.p(A,N):((pe=sue(A)).c(),pe.m(r,null)):pe&&(pe.d(1),pe=null)},i:function(A){U||(Q(P),Q(l),Q(y.$$.fragment,A),Q(D.$$.fragment,A),Q(z.$$.fragment,A),U=!0)},o:function(A){fe(P),fe(l),fe(y.$$.fragment,A),fe(D.$$.fragment,A),fe(z.$$.fragment,A),U=!1},d:function(A){A&&Be(n),P&&P.d(),J[a].d(),mt(y),mt(D),mt(z),pe&&pe.d(),G=!1,po(X)}}}function oue(t){var n,e,i,r,o;return e=new hr({props:{data:t[0]?hu:_p}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-replace-toggle svelte-3lbrbf"),R(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Rt(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?hu:_p),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function NZe(t){var n,e;return n=new hr({props:{data:HP}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function FZe(t){var n,e;return n=new hr({props:{data:AXe,spin:!0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function sue(t){var n,e,i,r,o,s,a,l;return{c:function(){n=De("div"),e=De("input"),i=rt(),(r=De("button")).textContent="Replace",o=rt(),(s=De("button")).textContent="All",R(e,"class","jse-replace-input svelte-3lbrbf"),R(e,"title","Enter replacement text"),R(e,"type","text"),R(e,"placeholder","Replace"),R(r,"type","button"),R(r,"title","Replace current occurrence (Ctrl+Enter)"),R(r,"class","svelte-3lbrbf"),R(s,"type","button"),R(s,"title","Replace all occurrences"),R(s,"class","svelte-3lbrbf"),R(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){$e(c,n,u),me(n,e),ip(e,t[9]),me(n,i),me(n,r),me(n,o),me(n,s),a||(l=[Rt(e,"input",t[25]),Rt(r,"click",t[14]),Rt(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&ip(e,c[9])},d:function(c){c&&Be(n),a=!1,po(l)}}}function PZe(t){var n,e,i=t[1]&&rue(t);return{c:function(){i&&i.c(),n=Dr()},m:function(r,o){i&&i.m(r,o),$e(r,n,o),e=!0},p:function(r,o){var s=Jn(o,1)[0];r[1]?i?(i.p(r,s),2&s&&Q(i,1)):((i=rue(r)).c(),Q(i,1),i.m(n.parentNode,n)):i&&(Ht(),fe(i,1,1,function(){i=null}),Ut())},i:function(r){e||(Q(i),e=!0)},o:function(r){fe(i),e=!1},d:function(r){i&&i.d(r),r&&Be(n)}}}function RZe(t){t.select()}function jZe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?bo:g,y=n.onPrevious,b=void 0===y?bo:y,C=n.onNext,D=void 0===C?bo:C,E=n.onReplace,B=void 0===E?bo:E,z=n.onReplaceAll,j=void 0===z?bo:z,U=n.onClose,G=void 0===U?bo:U,X="",oe="",P="";function W(){e(0,f=!f&&!m)}function J(){m||B(X,P)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,b=H.onPrevious),"onNext"in H&&e(6,D=H.onNext),"onReplace"in H&&e(18,B=H.onReplace),"onReplaceAll"in H&&e(19,j=H.onReplaceAll),"onClose"in H&&e(7,G=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=p0(v,300)),1048832&t.$$.dirty&&r(X),2&t.$$.dirty&&s&&""!==X&&v(X)},[f,s,a,d,m,b,D,G,X,P,i,W,function(H){H.preventDefault(),X!==oe?(oe=X,r.cancel(),v(X)):D()},function(H){H.stopPropagation();var pe=gp(H);"Enter"===pe&&(H.preventDefault(),D()),"Shift+Enter"===pe&&(H.preventDefault(),b()),"Ctrl+Enter"===pe&&(H.preventDefault(),f?J():D()),"Ctrl+H"===pe&&(H.preventDefault(),W()),"Escape"===pe&&(H.preventDefault(),G())},J,function(){m||j(X,P)},c,v,B,j,r,function(){e(8,X=this.value)},function(){return D()},function(){return b()},function(){return G()},function(){e(9,P=this.value)}]}var LZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,jZe,PZe,Pi,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},IZe),r}return Ie(e)}(),aue=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function BZe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',R(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function tet(t){var n,e,i,r,o,s,a,l,c,u=[iet,net],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=De("label"),e=De("input"),i=rt(),o.c(),s=Dr(),R(e,"type","text"),e.readOnly="readonly",R(e,"tabindex","-1"),R(e,"class","jse-hidden-input svelte-qojdc1"),R(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){$e(f,n,p),me(n,e),t[76](e),$e(f,i,p),d[r].m(f,p),$e(f,s,p),a=!0,l||(c=Rt(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Ht(),fe(d[m],1,1,function(){d[m]=null}),Ut(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){fe(o),a=!1},d:function(f){f&&Be(n),t[76](null),f&&Be(i),d[r].d(f),f&&Be(s),l=!1,c()}}}function net(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new LZe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new eZe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:bo}});var m=t[18]&&yue(t),g=t[23]&&_ue(t);return f=new ZP({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=De("div"),gt(s.$$.fragment),a=rt(),l=De("div"),gt(c.$$.fragment),u=rt(),m&&m.c(),d=rt(),g&&g.c(),h=rt(),gt(f.$$.fragment),R(o,"class","jse-search-box-container svelte-qojdc1"),R(l,"class","jse-contents svelte-qojdc1"),R(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){$e(v,o,y),pt(s,o,null),$e(v,a,y),$e(v,l,y),pt(c,l,null),t[77](l),$e(v,u,y),m&&m.m(v,y),$e(v,d,y),g&&g.m(v,y),$e(v,h,y),pt(f,v,y),p=!0},p:function(v,y){var b,C,D,E,B={};524288&y[0]&&(B.show=v[19]),131072&y[0]&&(B.resultCount=(null===(b=v[17])||void 0===b||null===(C=b.items)||void 0===C?void 0:C.length)||0),131072&y[0]&&(B.activeIndex=(null===(D=v[17])||void 0===D?void 0:D.activeIndex)||0),1048576&y[0]&&(B.showReplace=v[20]),2097152&y[0]&&(B.searching=v[21]),1&y[0]&&(B.readOnly=v[0]),s.$set(B);var z={};1024&y[0]&&(z.value=v[10]),65536&y[0]&&(z.expandedMap=v[16].expandedMap),65536&y[0]&&(z.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(z.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(z.validationErrorsMap=v[24]),131072&y[0]&&(z.searchResultItemsMap=null===(E=v[17])||void 0===E?void 0:E.itemsMap),65536&y[0]&&(z.selection=v[16].selection),8192&y[0]&&(z.context=v[13]),c.$set(z),v[18]?m?(m.p(v,y),262144&y[0]&&Q(m,1)):((m=yue(v)).c(),Q(m,1),m.m(d.parentNode,d)):m&&(Ht(),fe(m,1,1,function(){m=null}),Ut()),v[23]?g?(g.p(v,y),8388608&y[0]&&Q(g,1)):((g=_ue(v)).c(),Q(g,1),g.m(h.parentNode,h)):g&&(Ht(),fe(g,1,1,function(){g=null}),Ut());var j={};4096&y[0]&&(j.validationErrors=v[12]),f.$set(j)},i:function(v){p||(Q(s.$$.fragment,v),Q(c.$$.fragment,v),Q(m),Q(g),Q(f.$$.fragment,v),p=!0)},o:function(v){fe(s.$$.fragment,v),fe(c.$$.fragment,v),fe(m),fe(g),fe(f.$$.fragment,v),p=!1},d:function(v){v&&Be(o),mt(s),v&&Be(a),v&&Be(l),mt(c),t[77](null),v&&Be(u),m&&m.d(v),v&&Be(d),g&&g.d(v),v&&Be(h),mt(f,v)}}}function iet(t){var n,e,i,r,o=[oet,ret],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=Dr()},m:function(l,c){s[n].m(l,c),$e(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(Ht(),fe(s[u],1,1,function(){s[u]=null}),Ut(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),Q(e,1),e.m(i.parentNode,i))},i:function(l){r||(Q(e),r=!0)},o:function(l){fe(e),r=!1},d:function(l){s[n].d(l),l&&Be(i)}}}function yue(t){var n,e;return n=new ad({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:_k,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function _ue(t){var n,e;return n=new ad({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:mb,text:"Ok",onClick:t[8]},{icon:bp,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:mb,text:"Ok",onClick:i[8]},{icon:bp,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function ret(t){var n,e,i,r;return n=new ad({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:bp,text:"Repair manually",onClick:t[47]}]}}),i=new mue({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){gt(n.$$.fragment),e=rt(),gt(i.$$.fragment)},m:function(o,s){pt(n,o,s),$e(o,e,s),pt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:bp,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){fe(n.$$.fragment,o),fe(i.$$.fragment,o),r=!1},d:function(o){mt(n,o),o&&Be(e),mt(i,o)}}}function oet(t){var n,e;return n=new uZe({props:{readOnly:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function set(t){var n,e,i,r,o,s,a,l,c=t[1]&&gue(t),u=t[2]&&vue(t),h=[];return o=h[r=t[25]?1:0]=[tet,eet][r](t),{c:function(){n=De("div"),c&&c.c(),e=rt(),u&&u.c(),i=rt(),o.c(),R(n,"class","jse-tree-mode svelte-qojdc1"),Nt(n,"no-main-menu",!t[1])},m:function(f,p){$e(f,n,p),c&&c.m(n,null),me(n,e),u&&u.m(n,null),me(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[Rt(QZe,"mousedown",t[49]),Rt(n,"keydown",t[41]),Rt(n,"mousedown",t[42]),Rt(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&Q(c,1)):((c=gue(f)).c(),Q(c,1),c.m(n,e)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()),f[2]?u?(u.p(f,p),4&p[0]&&Q(u,1)):((u=vue(f)).c(),Q(u,1),u.m(n,i)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut()),o.p(f,p),(!s||2&p[0])&&Nt(n,"no-main-menu",!f[1])},i:function(f){s||(Q(c),Q(u),Q(o),s=!0)},o:function(f){fe(c),fe(u),fe(o),s=!1},d:function(f){f&&Be(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,po(l)}}}function aet(t,n,e){var i,r=Ma("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=Aa("simple-modal").open,h=mp(),f=mp(),p=Aa("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=Dle(),b=n.readOnly,C=n.externalContent,D=n.mainMenuBar,E=n.navigationBar,B=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,j=n.parser,U=n.parseMemoizeOne,G=n.validator,X=n.validationParser,oe=n.pathParser,P=n.indentation,W=n.onError,J=n.onChange,H=n.onChangeMode,pe=n.onRenderValue,A=n.onRenderMenu,N=n.onClassName,F=n.onFocus,q=n.onBlur,V=n.onSortModal,ce=n.onTransformModal,ve=n.onJSONEditorModal,je=!1;QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(l)},hasFocus:function(){return je&&document.hasFocus()||dk(l)},onFocus:function(){v=!0,F&&F()},onBlur:function(){v=!1,q&&q()}});var Te=void 0;function et(Me){r("updateSelection",Me);var ct="function"==typeof Me?Me(le.selection):Me;dr(ct,le.selection)||e(16,le=nt(nt({},le),{},{selection:ct}))}var We,st,$,ae=!1,le=fk(),Re=!1,Ze=!1,Ve=!1,Ct="";function Ot(Me){return yn.apply(this,arguments)}function yn(){return(yn=or(_n().mark(function Me(ct){return _n().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return r("search text updated",ct),e(74,Ct=ct),Ft.next=4,tc();case 4:return Ft.next=6,vr();case 6:case"end":return Ft.stop()}},Me)}))).apply(this,arguments)}function Xn(){return(Xn=or(_n().mark(function Me(){return _n().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return e(17,We=We?rXe(We):void 0),ct.next=3,vr();case 3:case"end":return ct.stop()}},Me)}))).apply(this,arguments)}function on(){return(on=or(_n().mark(function Me(){return _n().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return e(17,We=We?oXe(We):void 0),ct.next=3,vr();case 3:case"end":return ct.stop()}},Me)}))).apply(this,arguments)}function Ri(){return(Ri=or(_n().mark(function Me(ct,Ft){var en,an,cn,hi;return _n().wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:if(an=null===(en=We)||void 0===en?void 0:en.activeItem,r("handleReplace",{replacementText:Ft,activeItem:an}),an){yi.next=4;break}return yi.abrupt("return");case 4:return cn=sXe(c,le,Ft,an,j),hi=cn.newSelection,ni(cn.operations,function(Lo,js){return{state:nt(nt({},js),{},{selection:hi})}}),yi.next=8,tc();case 8:return yi.next=10,vr();case 10:case"end":return yi.stop()}},Me)}))).apply(this,arguments)}function hn(){return(hn=or(_n().mark(function Me(ct,Ft){var en,cn;return _n().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return r("handleReplaceAll",{text:ct,replacementText:Ft}),en=aXe(c,le,ct,Ft,j),cn=en.newSelection,ni(en.operations,function(hi,yi){return{state:nt(nt({},yi),{},{selection:cn})}}),Wn.next=5,tc();case 5:return Wn.next=7,vr();case 7:case"end":return Wn.stop()}},Me)}))).apply(this,arguments)}function vr(){return Er.apply(this,arguments)}function Er(){return(Er=or(_n().mark(function Me(){var ct,Ft,en;return _n().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(Ft=null===(ct=We)||void 0===ct?void 0:ct.activeItem,r("focusActiveSearchResult",We),!Ft){an.next=9;break}return e(16,le=nt(nt({},TP(c,le,en=Ft.path)),{},{selection:void 0})),an.next=7,tc();case 7:return an.next=9,mn(en);case 9:case"end":return an.stop()}},Me)}))).apply(this,arguments)}var Si,Xr,fr=Tle({onChange:function(Me){e(22,wr=Me)}}),wr=fr.getState(),Ro=aP(function(Me,ct){if(""===Me)return r("clearing search result"),void(void 0!==We&&e(17,We=void 0));e(21,Ve=!0),setTimeout(function(){r("searching...",Me);var an,cn,Wn,hi,yi,Lo,js,Ft=xae(Me,ct,1e3);e(17,(an=Ft,Wn=null!=(cn=We)&&cn.activeItem?Sae(cn.activeItem):void 0,hi=an.findIndex(function(Zo){return dr(Wn,Sae(Zo))}),yi=-1!==hi?hi:void 0!==cn?.activeIndex&&cn?.activeIndex0?0:-1,js=(Lo=an.map(function(Zo,Do){return nt(nt({},Zo),{},{active:Do===yi})}))[yi],We={items:Lo,itemsMap:g0(Lo,function(Zo){return dn(Zo.path)}),activeItem:js,activeIndex:yi})),e(21,Ve=!1)})},300),Rn=!1,kt=[],pi=wb(Ele);function Bi(Me,ct,Ft,en){j0(function(){var an;try{an=pi(Me,ct,Ft,en)}catch(cn){an=[{path:[],message:"Failed to validate: "+cn.message,severity:Jd.warning}]}dr(an,kt)||(r("validationErrors changed:",an),e(12,kt=an))},function(an){return r("validationErrors updated in ".concat(an," ms"))})}function Ar(){return r("validate"),Te?{parseError:Te,isRepairable:!1}:(Bi(c,G,j,X),Ji(kt)?null:{validationErrors:kt})}function ko(){return c}function Qo(){return le}function jn(Me){ae||(ae=!0,e(16,le=uu(Me,le,[],Cse({json:Me},10240)?lh:db)))}function di(Me){void 0!==le.selection&&(le.selection&&nu(Me,le.selection.anchorPath)&&nu(Me,le.selection.focusPath)||(r("clearing selection: path does not exist anymore",le.selection),e(16,le=nt(nt({},le),{},{selection:T0(Me,le)}))))}function ki(Me){var ct=Me.previousJson,Ft=Me.previousState,en=Me.previousText,an=Me.previousTextIsRepaired;void 0===ct&&void 0===en||(void 0!==c?fr.add(void 0!==ct?{undo:{patch:[{op:"replace",path:"",value:ct}],state:pl(Ft),json:void 0,text:en,textIsRepaired:an},redo:{patch:[{op:"replace",path:"",value:c}],state:pl(le),json:void 0,text:u,textIsRepaired:Rn}}:{undo:{patch:void 0,json:void 0,text:en,state:pl(Ft),textIsRepaired:an},redo:{patch:void 0,json:c,state:pl(le),text:u,textIsRepaired:Rn}}):void 0!==ct&&fr.add({undo:{patch:void 0,json:ct,state:pl(Ft),text:en,textIsRepaired:an},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Rn,state:pl(le)}}))}function Nr(Me,ct){if(r("patch",Me,ct),void 0===c)throw new Error("Cannot apply patch: no JSON");var Ft={json:c,text:u},en=c,an=le,cn=u,Wn=Rn,hi=_ae(c,Me),yi=Zse(c,le,Me),Lo=E0(c,Me),js=function(Sh,Sd){return void 0!==Sd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?nt(nt({},Sh),{},{selection:Sd}):Sh}(yi.documentState,Lo,!1);r("patch updatedSelection",Lo);var Zo="function"==typeof ct?ct(yi.json,js):void 0;e(10,c=Zo&&void 0!==Zo.json?Zo.json:yi.json);var Do=Zo&&void 0!==Zo.state?Zo.state:js;e(16,le=Do),e(11,u=void 0),e(23,Rn=!1),e(18,$=void 0),di(c),fr.add({undo:{patch:hi,json:void 0,text:cn,state:pl(an),textIsRepaired:Wn},redo:{patch:Me,json:void 0,state:pl(Do),text:u,textIsRepaired:Rn}});var $l={json:c,previousJson:en,undo:hi,redo:Me};return ai(Ft,$l),$l}function Jr(){!b&&le.selection&&et(du(le.selection.focusPath,!0))}function co(){if(!b&&le.selection){var Me=le.selection.focusPath,ct=On(c,Me);zo(ct)?(r("openJSONEditorModal",{path:Ft=Me,value:en=ct}),je=!0,ve({content:{json:en},path:Ft,onPatch:Xr.onPatch,onClose:function(){je=!1,Rs()}})):et(br(Me,!0))}var Ft,en}function Ks(){if(!b&&nr(le.selection)){var Me=le.selection.focusPath,ct=dn(Me),Ft=On(c,Me),en=!mf(Ft,le.enforceStringMap,ct,j),an=en?String(Ft):e0(String(Ft),j);r("handleToggleEnforceString",{enforceString:en,value:Ft,updatedValue:an}),ni([{op:"replace",path:ct,value:an}],function(cn,Wn){return{state:Qse(Wn,ct,en)}})}}function Cr(){return Qs.apply(this,arguments)}function Qs(){return Qs=or(_n().mark(function Me(){var ct,Ft=arguments;return _n().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return ct=!(Ft.length>0&&void 0!==Ft[0])||Ft[0],en.next=3,uue({json:c,documentState:le,indentation:ct?P:void 0,readOnly:b,parser:j,onPatch:ni});case 3:case"end":return en.stop()}},Me)})),Qs.apply(this,arguments)}function Za(){return el.apply(this,arguments)}function el(){return el=or(_n().mark(function Me(){var ct,Ft=arguments;return _n().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(ct=!(Ft.length>0&&void 0!==Ft[0])||Ft[0],void 0!==c){en.next=3;break}return en.abrupt("return");case 3:return en.next=5,due({json:c,documentState:le,indentation:ct?P:void 0,parser:j});case 5:case"end":return en.stop()}},Me)})),el.apply(this,arguments)}function $c(){d(Lle,{},nt(nt({},Vm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Rs()}})}function Ee(Me,ct){d(Xle,{text:Me,onParse:ak,onRepair:bse,onApply:ct},nt(nt({},Vm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Rs()}})}function qe(){fue({json:c,text:u,documentState:le,keepSelection:!1,readOnly:b,onChange:J,onPatch:ni})}function Ke(){!b&&void 0!==c&&le.selection&&M0(le.selection)&&!Ji(le.selection.focusPath)&&(r("duplicate",{selection:le.selection}),ni(gae(c,hae(le.selection))))}function dt(){b||!le.selection||!Lr(le.selection)&&!nr(le.selection)||Ji(le.selection.focusPath)||(r("extract",{selection:le.selection}),ni(function(ct,Ft){if(nr(Ft))return[{op:"move",from:dn(Ft.focusPath),path:""}];if(!Lr(Ft))throw new Error("Cannot create extract operations: parent must be an Object or Array");var en=On(ct,tr(Ft.focusPath));if(ao(en))return[{op:"replace",path:"",value:Ft.paths.map(function(cn){var Wn=Ys(Bn(cn));return en[Wn]})}];if(Oo(en)){var an={};return Ft.paths.forEach(function(cn){var Wn=String(Bn(cn));an[Wn]=en[Wn]}),[{op:"replace",path:"",value:an}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Ft))}(c,le.selection),function(ct,Ft){if(zo(ct))return{state:vp(ct,Ft,[])}}))}function Ye(Me){void 0!==c&&Fk({insertType:Me,selectInside:!0,refJsonEditor:l,json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onReplaceJson:kr})}function In(Me){ws(le.selection)&&et(br(le.selection.focusPath,!1)),Ye(Me)}function li(Me){if(!b&&le.selection)if(ng(le.selection))try{var ct=le.selection.anchorPath,Ft=On(c,ct),en=function(cn,Wn,hi){if("array"===Wn){if(Array.isArray(cn))return cn;if(Io(cn))return vse(cn);if("string"==typeof cn)try{var yi=hi.parse(cn);if(Array.isArray(yi))return yi;if(Io(yi))return vse(yi)}catch{return[cn]}return[cn]}if("object"===Wn){if(Array.isArray(cn))return gse(cn);if(Io(cn))return cn;if("string"==typeof cn)try{var Lo=hi.parse(cn);if(Io(Lo))return Lo;if(Array.isArray(Lo))return gse(Lo)}catch{return{value:cn}}return{value:cn}}if("value"===Wn)return zo(cn)?hi.stringify(cn):cn;throw new Error("Cannot convert ".concat(IN(cn,hi)," to ").concat(Wn))}(Ft,Me,j);if(en===Ft)return;var an=[{op:"replace",path:dn(ct),value:en}];r("handleConvert",{selection:le.selection,path:ct,type:Me,operations:an}),ni(an,function(cn,Wn){return{state:vp(cn,Wn,le.selection.focusPath)}})}catch(cn){W(cn)}else W(new Error("Cannot convert current selection to ".concat(Me)))}function vi(){var Me=aae(c,le,!1),ct=tr(le.selection.focusPath);!Ji(Me.focusPath)&&dr(ct,tr(Me.focusPath))?et(vf(Me.focusPath)):et(gf(ct)),r("insert before",{selection:le.selection,selectionBefore:Me,parentPath:ct}),tc().then(Bl)}function gi(){var Me=Lr(le.selection)?Bn(le.selection.paths):le.selection.focusPath;r("insert after",Me),et(vf(Me)),tc().then(Bl)}function Mr(Me){return to.apply(this,arguments)}function to(){return(to=or(_n().mark(function Me(ct){return _n().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,pue({char:ct,selectInside:!0,refJsonEditor:l,json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onReplaceJson:kr,onSelect:et});case 2:case"end":return Ft.stop()}},Me)}))).apply(this,arguments)}function xi(){if(!b&&fr.getState().canUndo){var Me=fr.undo();if(Me){var ct={json:c,text:u};e(10,c=Me.undo.patch?ed(c,Me.undo.patch):Me.undo.json),e(16,le=Me.undo.state),e(11,u=Me.undo.text),e(23,Rn=Me.undo.textIsRepaired),r("undo",{item:Me,json:c,documentState:le}),ai(ct,{json:c,previousJson:ct.json,redo:Me.undo.patch,undo:Me.redo.patch}),Rs(),le.selection&&mn(le.selection.focusPath,!1)}}}function Sr(){if(!b&&fr.getState().canRedo){var Me=fr.redo();if(Me){var ct={json:c,text:u};e(10,c=Me.redo.patch?ed(c,Me.redo.patch):Me.redo.json),e(16,le=Me.redo.state),e(11,u=Me.redo.text),e(23,Rn=Me.redo.textIsRepaired),r("redo",{item:Me,json:c,documentState:le}),ai(ct,{json:c,previousJson:ct.json,redo:Me.redo.patch,undo:Me.undo.patch}),Rs(),le.selection&&mn(le.selection.focusPath,!1)}}}function Fe(Me){var ct;b||void 0===c||(je=!0,V({id:h,json:c,rootPath:Me,onSort:(ct=or(_n().mark(function Ft(en){var an;return _n().wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:r("onSort",Me,an=en.operations),ni(an,function(Wn,hi){return{state:nt(nt({},vp(Wn,hi,Me)),{},{selection:br(Me,!1)})}});case 3:case"end":return cn.stop()}},Ft)})),function(Ft){return ct.apply(this,arguments)}),onClose:function(){je=!1,Rs()}}))}function At(){le.selection&&Fe(uae(c,le.selection))}function Gt(Me){var Ft=Me.rootPath,en=Me.onTransform,an=Me.onClose;void 0!==c&&Ft&&(je=!0,ce({id:Me.id||f,json:c,rootPath:Ft,onTransform:en?function(cn){en({operations:cn,json:c,transformedJson:ed(c,cn)})}:function(cn){r("onTransform",Ft,cn),ni(cn,function(Wn,hi){return{state:nt(nt({},vp(Wn,hi,Ft)),{},{selection:br(Ft,!1)})}})},onClose:function(){je=!1,Rs(),an&&an()}}))}function ln(){le.selection&&Gt({rootPath:uae(c,le.selection)})}function mn(Me){return ci.apply(this,arguments)}function ci(){return ci=or(_n().mark(function Me(ct){var Ft,en,an,cn,hi=arguments;return _n().wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:return Ft=!(hi.length>1&&void 0!==hi[1])||hi[1],e(16,le=TP(c,le,tr(ct))),yi.next=4,tc();case 4:if(!(en=$i(ct))){yi.next=14;break}if(r("scrollTo",{path:ct,elem:en,refContents:s}),an=s.getBoundingClientRect(),cn=en.getBoundingClientRect(),Ft){yi.next=12;break}if(!(cn.bottom>an.top&&cn.topFt.bottom-20&&y(ct,{container:s,offset:-(Ft.height-an-20),duration:0})}}function ai(Me,ct){(void 0!==Me.json||void 0!==Me?.text)&&(void 0!==u?J({text:u,json:void 0},Me,{contentErrors:Ar(),patchResult:ct}):void 0!==c&&J({text:void 0,json:c},Me,{contentErrors:Ar(),patchResult:ct}))}function ni(Me,ct){if(!b)return r("handlePatch",Me,ct),Nr(Me,ct)}function kr(Me,ct){var Ft=le,en=c,an=u,cn={json:c,text:u},Wn=Rn,hi=uu(c,le,[],lh),yi="function"==typeof ct?ct(Me,hi):void 0;e(10,c=yi&&void 0!==yi.json?yi.json:Me),e(16,le=yi&&void 0!==yi.state?yi.state:hi),e(11,u=void 0),e(23,Rn=!1),di(c),ki({previousJson:en,previousState:Ft,previousText:an,previousTextIsRepaired:Wn}),ai(cn,null)}function Fr(Me,ct){r("handleChangeText");var Ft=le,en=c,an=u,cn={json:c,text:u},Wn=Rn;try{e(10,c=U(Me)),e(16,le=uu(c,le,[],lh)),e(11,u=void 0),e(23,Rn=!1)}catch{try{e(10,c=U(Kd(Me))),e(16,le=uu(c,le,[],lh)),e(11,u=Me),e(23,Rn=!0)}catch{e(10,c=void 0),e(16,le=fk({json:c,expand:lh})),e(11,u=Me),e(23,Rn=!1)}}if("function"==typeof ct){var hi=ct(c,le);e(10,c=hi&&hi.json?hi.json:c),e(16,le=hi&&hi.state?hi.state:le)}di(c),ki({previousJson:en,previousState:Ft,previousText:an,previousTextIsRepaired:Wn}),ai(cn,null)}function jo(Me,ct){var Ft=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Me,expanded:ct,recursive:Ft}),e(16,le=ct?Ft?uu(c,le,Me,db):function XYe(t,n){return nt(nt({},t),{},{expandedMap:nt(nt({},t.expandedMap),{},ec({},dn(n),!0))})}(le,Me):Kse(le,Me)),le.selection&&!ct&&function KYe(t,n){return A0(t.focusPath,n)&&(t.focusPath.length>n.length||Js(t))}(le.selection,Me)&&et(void 0),setTimeout(function(){dk(l)||Rs()})}function ba(Me){r("openFind",{findAndReplace:Me}),e(19,Re=!1),e(20,Ze=!1),tc().then(function(){e(19,Re=!0),e(20,Ze=Me)})}function bd(Me,ct){r("handleExpandSection",Me,ct);var an,cn,Wn,Ft=dn(Me);e(16,(cn=Ft,Wn=ct,le=nt(nt({},an=le),{},{visibleSectionsMap:nt(nt({},an.visibleSectionsMap),{},ec({},cn,Jse(pk(an,cn).concat(Wn))))})))}function bu(Me){r("pasted json as text",Me),e(18,$=Me)}function xa(Me){je=!0;var Lo=m(aQe,{json:c,documentState:le,parser:j,showTip:Me.showTip,onEditKey:Jr,onEditValue:co,onToggleEnforceString:Ks,onCut:Cr,onCopy:Za,onPaste:$c,onRemove:qe,onDuplicate:Ke,onExtract:dt,onInsertBefore:vi,onInsert:In,onConvert:li,onInsertAfter:gi,onSort:At,onTransform:ln,onCloseContextMenu:function(){g(Lo),Rs()}},{left:Me.left,top:Me.top,offsetTop:Me.offsetTop,offsetLeft:Me.offsetLeft,width:Me.width,height:Me.height,anchor:Me.anchor,closeOnOuterClick:!0,onClose:function(){je=!1,Rs()}})}function Bl(Me){if(!b&&!yp(le.selection)){if(Me&&(Me.stopPropagation(),Me.preventDefault()),Me&&"contextmenu"===Me.type&&Me.target!==a)xa({left:Me.clientX,top:Me.clientY,width:260,height:336,showTip:!1});else{var ct,Ft=null===(ct=s)||void 0===ct?void 0:ct.querySelector(".jse-context-menu-pointer.jse-selected");if(Ft)xa({anchor:Ft,offsetTop:2,width:260,height:336,showTip:!1});else{var en,an=null===(en=s)||void 0===en?void 0:en.getBoundingClientRect();an&&xa({top:an.top+2,left:an.left+2,width:260,height:336,showTip:!1})}}return!1}}function xd(){return(xd=or(_n().mark(function Me(){var ct,Ft,en;return _n().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return r("apply pasted json",$),Ft=(ct=$).path,en=ct.contents,et(br(Ft,!1)),an.next=5,tc();case 5:ni([{op:"replace",path:dn(Ft),value:en}],function(cn,Wn){return{state:vp(cn,Wn,Ft)}});case 7:case"end":return an.stop()}},Me)}))).apply(this,arguments)}function Rs(){r("focus"),a&&(a.focus(),a.select())}function wd(Me){return ct=c,Ft=le,an=tr(en=Me),cn=[Bn(en)],(hi=(Wn=On(ct,an))?NP(Wn,Ft,cn):void 0)?br(an.concat(hi),!1):vf(en);var ct,Ft,en,an,cn,Wn,hi}function Cd(Me){i&&i.onDrag(Me)}function TT(){i&&i.onDragEnd()}return t.$$set=function(Me){"readOnly"in Me&&e(0,b=Me.readOnly),"externalContent"in Me&&e(50,C=Me.externalContent),"mainMenuBar"in Me&&e(1,D=Me.mainMenuBar),"navigationBar"in Me&&e(2,E=Me.navigationBar),"escapeControlCharacters"in Me&&e(51,B=Me.escapeControlCharacters),"escapeUnicodeCharacters"in Me&&e(52,z=Me.escapeUnicodeCharacters),"parser"in Me&&e(3,j=Me.parser),"parseMemoizeOne"in Me&&e(53,U=Me.parseMemoizeOne),"validator"in Me&&e(54,G=Me.validator),"validationParser"in Me&&e(55,X=Me.validationParser),"pathParser"in Me&&e(4,oe=Me.pathParser),"indentation"in Me&&e(5,P=Me.indentation),"onError"in Me&&e(6,W=Me.onError),"onChange"in Me&&e(56,J=Me.onChange),"onChangeMode"in Me&&e(57,H=Me.onChangeMode),"onRenderValue"in Me&&e(58,pe=Me.onRenderValue),"onRenderMenu"in Me&&e(7,A=Me.onRenderMenu),"onClassName"in Me&&e(59,N=Me.onClassName),"onFocus"in Me&&e(60,F=Me.onFocus),"onBlur"in Me&&e(61,q=Me.onBlur),"onSortModal"in Me&&e(62,V=Me.onSortModal),"onTransformModal"in Me&&e(63,ce=Me.onTransformModal),"onJSONEditorModal"in Me&&e(64,ve=Me.onJSONEditorModal)},t.$$.update=function(){var Me,ct;3145728&t.$$.dirty[1]&&e(73,st=yP({escapeControlCharacters:B,escapeUnicodeCharacters:z})),524288&t.$$.dirty[1]&&function vt(Me){void 0!==Me.json&&function(ct){if(void 0!==ct){var Ft=!dr(c,ct);if(r("update external json",{isChanged:Ft,currentlyText:void 0===c}),Ft){var en={json:c,text:u},an=le,cn=c,Wn=u,hi=Rn;e(10,c=ct),jn(c),e(11,u=void 0),e(23,Rn=!1),di(c),ki({previousJson:cn,previousState:an,previousText:Wn,previousTextIsRepaired:hi}),ai(en,null)}}}(Me.json),void 0!==Me.text&&function(ct){if(void 0!==ct&&void 0===C.json){var Ft=ct!==u;if(r("update external text",{isChanged:Ft}),Ft){var en={json:c,text:u},an=c,cn=le,Wn=u,hi=Rn;try{e(10,c=U(ct)),jn(c),e(11,u=ct),e(23,Rn=!1),Te=void 0}catch(yi){try{e(10,c=U(Kd(ct))),jn(c),e(11,u=ct),e(23,Rn=!0),Te=void 0,di(c)}catch{e(10,c=void 0),e(11,u=C.text),e(23,Rn=!1),Te=lk(u,yi.message||yi.toString())}}di(c),ki({previousJson:an,previousState:cn,previousText:Wn,previousTextIsRepaired:hi}),ai(en,null)}}}(Me.text)}(C),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&Ro(Ct,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Bi(c,G,j,X),4096&t.$$.dirty[0]&&e(24,(ct={},(Me=kt).forEach(function(Ft){ct[dn(Ft.path)]=Ft}),Me.forEach(function(Ft){for(var en=Ft.path;en.length>0;){var an=dn(en=tr(en));an in ct||(ct[an]={isChildError:!0,path:en,message:"Contains invalid data",severity:Jd.warning})}}),Si=ct)),512&t.$$.dirty[0]&&(i=s?function(Me){var ct,Ft;function en(hi){return hi<20?200:hi<50?400:1200}function an(){Me&&(Me.scrollTop+=.05*(ct||0))}function cn(hi){Ft&&hi===ct||(Wn(),KP("startAutoScroll",hi),ct=hi,Ft=setInterval(an,50))}function Wn(){Ft&&(KP("stopAutoScroll"),clearInterval(Ft),Ft=void 0,ct=void 0)}return KP("createAutoScrollHandler",Me),{onDrag:function(hi){if(Me){var yi=hi.clientY,Lo=Me.getBoundingClientRect(),js=Lo.top,Zo=Lo.bottom;yiZo?cn(en(yi-Zo)):Wn()}},onDragEnd:function(){Wn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Xr={readOnly:b,parser:j,normalization:st,getJson:ko,getDocumentState:Qo,findElement:$i,findNextInside:wd,focus:Rs,onPatch:ni,onInsert:Ye,onExpand:jo,onSelect:et,onFind:ba,onExpandSection:bd,onPasteJson:bu,onRenderValue:pe,onContextMenu:xa,onClassName:N||function(){},onDrag:Cd,onDragEnd:TT}),8192&t.$$.dirty[0]&&r("context changed",Xr)},[b,D,E,j,oe,P,W,A,function(){return Rn&&void 0!==c&&kr(c),{json:c,text:u}},s,c,u,kt,Xr,a,l,le,We,$,Re,Ze,Ve,wr,Rn,Si,o,Ot,function(){return Xn.apply(this,arguments)},function(){return on.apply(this,arguments)},function(Me,ct){return Ri.apply(this,arguments)},function(Me,ct){return hn.apply(this,arguments)},function(){e(19,Re=!1),e(20,Ze=!1),Ot(""),Rs()},function(Me){r("select validation error",Me),et(br(Me.path,!1)),mn(Me.path)},Za,function(Me){Me.preventDefault(),hue({clipboardText:Me.clipboardData.getData("text/plain"),json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onChangeText:Fr,openRepairModal:Ee})},xi,Sr,function(){Fe([])},function(){Gt({rootPath:[]})},function(){jo([],!0,!0)},function(){jo([],!1,!0)},function(Me){var ct=gp(Me),Ft=Me.shiftKey;if(r("keydown",{combo:ct,key:Me.key}),"Ctrl+X"===ct&&(Me.preventDefault(),Cr(!0)),"Ctrl+Shift+X"===ct&&(Me.preventDefault(),Cr(!1)),"Ctrl+C"===ct&&(Me.preventDefault(),Za(!0)),"Ctrl+Shift+C"===ct&&(Me.preventDefault(),Za(!1)),"Ctrl+D"===ct&&(Me.preventDefault(),Ke()),"Delete"!==ct&&"Backspace"!==ct||(Me.preventDefault(),qe()),"Insert"===ct&&(Me.preventDefault(),Ye("structure")),"Ctrl+A"===ct&&(Me.preventDefault(),et(br([],!1))),"Ctrl+Q"===ct&&Bl(Me),"ArrowUp"===ct||"Shift+ArrowUp"===ct){Me.preventDefault();var en=le.selection?aae(c,le,Ft,!0)||le.selection:T0(c,le);et(en),Gn(en.focusPath)}if("ArrowDown"===ct||"Shift+ArrowDown"===ct){Me.preventDefault();var an=le.selection?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Lr(Pr)?Pr.focusPath:Bn(Pr.paths),xu=NP(Do,$l,lc),kd=xu,kh=xu;if(null===xu||null==kd||null==kh)return null;if(Sh){var Dd=NP(Do,zo(On(Do,lc))?Kse($l,lc):$l,lc);return null===Dd?null:rd(Pr)?Fs(Do,Dd,Dd):Js(Pr)?Fs(Do,kd,kh):Fs(Do,Pr.anchorPath,Dd)}if(ws(Pr)){var hx=On(Do,tr(xu));return Array.isArray(hx)?br(kh,!1):du(kh,!1)}return nr(Pr)?br(kh,!1):Js(Pr)?Fs(Do,kd,kh):Fs(Do,xu,xu)}(c,le,Ft,!0)||le.selection:T0(c,le);et(an),Gn(an.focusPath)}if("ArrowLeft"===ct||"Shift+ArrowLeft"===ct){Me.preventDefault();var cn=le.selection?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=lae(Do,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),xu=lc.caret,kd=lc.previous;if(Sh)return Lr(Pr)?null:Fs(Do,Pr.anchorPath,Pr.focusPath);if(xu&&kd)return FP(kd);var Dd=On(Do,tr(Pr.focusPath));return nr(Pr)&&Array.isArray(Dd)?Fs(Do,Pr.focusPath,Pr.focusPath):Lr(Pr)&&!Array.isArray(Dd)?du(Pr.focusPath,!1):null}(c,le,Ft,!b)||le.selection:T0(c,le);et(cn),Gn(cn.focusPath)}if("ArrowRight"===ct||"Shift+ArrowRight"===ct){Me.preventDefault();var Wn=le.selection&&void 0!==c?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=lae(Do,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),xu=lc.caret,kd=lc.next;return Sh?Lr(Pr)?null:Fs(Do,Pr.anchorPath,Pr.focusPath):xu&&kd?FP(kd):Lr(Pr)?br(Pr.focusPath,!1):null}(c,le,Ft,!b)||le.selection:T0(c,le);et(Wn),Gn(Wn.focusPath)}if("Enter"===ct&&le.selection){if(!b&&Lr(le.selection)&&1===le.selection.paths.length){var hi=le.selection.focusPath,yi=On(c,tr(hi));Array.isArray(yi)&&et(br(hi,!1))}!b&&ws(le.selection)&&(Me.preventDefault(),et(nt(nt({},le.selection),{},{edit:!0}))),nr(le.selection)&&(Me.preventDefault(),zo(On(c,le.selection.focusPath))?jo(le.selection.focusPath,!0):b||et(nt(nt({},le.selection),{},{edit:!0})))}if(1===ct.replace(/^Shift\+/,"").length&&le.selection)return Me.preventDefault(),void Mr(Me.key);if("Enter"===ct&&(rd(le.selection)||Js(le.selection)))return Me.preventDefault(),void Mr("");if("Ctrl+Enter"===ct&&nr(le.selection)){var Lo=On(c,le.selection.focusPath);vS(Lo)&&window.open(String(Lo),"_blank")}if("Escape"===ct&&le.selection&&(Me.preventDefault(),et(void 0)),"Ctrl+F"===ct&&(Me.preventDefault(),ba(!1)),"Ctrl+H"===ct&&(Me.preventDefault(),ba(!0)),"Ctrl+Z"===ct){Me.preventDefault();var js=document.activeElement;js&&js.blur&&js.focus?(js.blur(),setTimeout(function(){xi(),setTimeout(function(){return js.select()})})):xi()}if("Ctrl+Shift+Z"===ct){Me.preventDefault();var Zo=document.activeElement;Zo&&Zo.blur&&Zo.focus?(Zo.blur(),setTimeout(function(){Sr(),setTimeout(function(){return Zo.select()})})):Sr()}},function(Me){r("handleMouseDown",Me),setTimeout(function(){setTimeout(function(){v||Ise(Me.target,"BUTTON")||(Rs(),le.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,le=nt(nt({},le),{},{selection:Fs(c||{},[],[])}))))})})},Bl,function(Me){b||xa({anchor:Fse(Me.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return xd.apply(this,arguments)},function(){r("clear pasted json"),e(18,$=void 0)},function(){H(Uo.text)},function(Me){et(Me),Rs(),mn(Me.focusPath)},function(Me){!ob(Me.target,function(Ft){return Ft===l})&&yp(le.selection)&&(r("click outside the editor, stop edit mode"),et(function(Ft){return ws(Ft)||nr(Ft)?nt(nt({},Ft),{},{edit:!1}):Ft}),v&&a&&(a.focus(),a.blur()),tc().then(function(){setTimeout(function(){a&&a.blur()})}))},C,B,z,U,G,X,J,H,pe,N,F,q,V,ce,ve,function(){var Me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:db;r("expand");var ct=nt(nt({},le),{},{expandedMap:{},visibleSectionsMap:{}});e(16,le=uu(c,ct,[],Me))},Ar,ko,Nr,Gt,mn,$i,Rs,st,Ct,function(Me){e(19,Re=Me)},function(Me){Xi[Me?"unshift":"push"](function(){e(14,a=Me)})},function(Me){Xi[Me?"unshift":"push"](function(){e(9,s=Me)})},function(Me){Xi[Me?"unshift":"push"](function(){e(15,l=Me)})}]}var m4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,aet,set,Pi,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},ZZe,[-1,-1,-1,-1,-1]),r}return Ie(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function cet(t){_i(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function bue(t){var n,e,i,r,o,s=[det,uet],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Dr()},m:function(c,u){a[e].m(c,u),$e(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Ht(),fe(a[d],1,1,function(){a[d]=null}),Ut(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){fe(i),o=!1},d:function(c){a[e].d(c),c&&Be(r)}}}function uet(t){var n;return{c:function(){n=sn("(Only available for arrays, not for objects)")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function det(t){var n,e;return n=new PJe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function xue(t){var n,e;return n=new m4({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:bo,onError:console.error,onChange:bo,onChangeMode:bo,onFocus:bo,onBlur:bo,onSortModal:bo,onTransformModal:bo,onJSONEditorModal:bo,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function het(t){var n,e;return{c:function(){n=De("div"),e=sn(t[17]),R(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){$e(i,n,r),me(n,e)},p:function(i,r){131072&r[0]&&ti(e,i[17])},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function fet(t){var n,e;return n=new m4({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:bo,onError:console.error,onChange:bo,onChangeMode:bo,onFocus:bo,onBlur:bo,onSortModal:bo,onTransformModal:bo,onJSONEditorModal:bo,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function pet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J,H,pe,A,N,F,q,V,ce,ve,je,Te,et,We,st,$,ae=t[21](t[0]).description+"";n=new GJe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new hr({props:{data:t[15]?hu:_p}});var le=t[15]&&bue(t);W=new hr({props:{data:t[16]?hu:_p}});var Re=t[16]&&xue(t),Ze=[fet,het],Ve=[];function Ct(Ot,yn){return Ot[17]?1:0}return q=Ct(t),V=Ve[q]=Ze[q](t),{c:function(){gt(n.$$.fragment),e=rt(),i=De("div"),r=De("div"),o=De("div"),(s=De("div")).innerHTML='
    Language
    ',a=rt(),l=De("div"),c=rt(),(u=De("div")).innerHTML='
    Path
    ',d=rt(),h=De("input"),p=rt(),m=De("div"),g=De("div"),v=De("button"),gt(y.$$.fragment),b=sn("\n Wizard"),C=rt(),le&&le.c(),D=rt(),(E=De("div")).innerHTML='
    Query
    ',B=rt(),z=De("textarea"),j=rt(),U=De("div"),G=De("div"),X=De("div"),oe=De("div"),P=De("button"),gt(W.$$.fragment),J=sn("\n Original"),H=rt(),Re&&Re.c(),pe=rt(),A=De("div"),(N=De("div")).innerHTML='
    Preview
    ',F=rt(),V.c(),ce=rt(),ve=De("div"),je=De("button"),Te=sn("Transform"),R(s,"class","jse-label svelte-107mggt"),R(l,"class","jse-description svelte-107mggt"),R(u,"class","jse-label svelte-107mggt"),R(h,"class","jse-path svelte-107mggt"),R(h,"type","text"),h.readOnly=!0,R(h,"title","Selected path"),h.value=f=Ji(t[1])?"(whole document)":cu(rc(t[1])),R(v,"type","button"),R(v,"class","svelte-107mggt"),R(g,"class","jse-label-inner svelte-107mggt"),R(m,"class","jse-label svelte-107mggt"),R(E,"class","jse-label svelte-107mggt"),R(z,"class","jse-query svelte-107mggt"),R(z,"spellcheck","false"),z.value=t[13],R(o,"class","jse-query-contents svelte-107mggt"),R(P,"type","button"),R(P,"class","svelte-107mggt"),R(oe,"class","jse-label-inner svelte-107mggt"),R(X,"class","jse-label svelte-107mggt"),R(G,"class","jse-original-data svelte-107mggt"),Nt(G,"jse-hide",!t[16]),R(N,"class","jse-label svelte-107mggt"),R(A,"class","jse-preview-data svelte-107mggt"),R(U,"class","jse-data-contents svelte-107mggt"),Nt(U,"jse-hide-original-data",!t[16]),R(r,"class","jse-main-contents svelte-107mggt"),R(je,"type","button"),R(je,"class","jse-primary svelte-107mggt"),je.disabled=et=!!t[17],R(ve,"class","jse-actions svelte-107mggt"),R(i,"class","jse-modal-contents svelte-107mggt")},m:function(Ot,yn){pt(n,Ot,yn),$e(Ot,e,yn),$e(Ot,i,yn),me(i,r),me(r,o),me(o,s),me(o,a),me(o,l),l.innerHTML=ae,me(o,c),me(o,u),me(o,d),me(o,h),me(o,p),me(o,m),me(m,g),me(g,v),pt(y,v,null),me(v,b),me(o,C),le&&le.m(o,null),me(o,D),me(o,E),me(o,B),me(o,z),me(r,j),me(r,U),me(U,G),me(G,X),me(X,oe),me(oe,P),pt(W,P,null),me(P,J),me(G,H),Re&&Re.m(G,null),me(U,pe),me(U,A),me(A,N),me(A,F),Ve[q].m(A,null),me(i,ce),me(i,ve),me(ve,je),me(je,Te),We=!0,st||($=[Rt(v,"click",t[25]),Rt(z,"input",t[23]),Rt(P,"click",t[26]),Rt(je,"click",t[24]),Ea(get.call(null,je))],st=!0)},p:function(Ot,yn){var Xn={};512&yn[0]&&(Xn.queryLanguages=Ot[9]),1&yn[0]&&(Xn.queryLanguageId=Ot[0]),n.$set(Xn),(!We||1&yn[0])&&ae!==(ae=Ot[21](Ot[0]).description+"")&&(l.innerHTML=ae),(!We||2&yn[0]&&f!==(f=Ji(Ot[1])?"(whole document)":cu(rc(Ot[1])))&&h.value!==f)&&(h.value=f);var on={};32768&yn[0]&&(on.data=Ot[15]?hu:_p),y.$set(on),Ot[15]?le?(le.p(Ot,yn),32768&yn[0]&&Q(le,1)):((le=bue(Ot)).c(),Q(le,1),le.m(o,D)):le&&(Ht(),fe(le,1,1,function(){le=null}),Ut()),(!We||8192&yn[0])&&(z.value=Ot[13]);var Ri={};65536&yn[0]&&(Ri.data=Ot[16]?hu:_p),W.$set(Ri),Ot[16]?Re?(Re.p(Ot,yn),65536&yn[0]&&Q(Re,1)):((Re=xue(Ot)).c(),Q(Re,1),Re.m(G,null)):Re&&(Ht(),fe(Re,1,1,function(){Re=null}),Ut()),(!We||65536&yn[0])&&Nt(G,"jse-hide",!Ot[16]);var hn=q;(q=Ct(Ot))===hn?Ve[q].p(Ot,yn):(Ht(),fe(Ve[hn],1,1,function(){Ve[hn]=null}),Ut(),(V=Ve[q])?V.p(Ot,yn):(V=Ve[q]=Ze[q](Ot)).c(),Q(V,1),V.m(A,null)),(!We||65536&yn[0])&&Nt(U,"jse-hide-original-data",!Ot[16]),(!We||131072&yn[0]&&et!==(et=!!Ot[17]))&&(je.disabled=et)},i:function(Ot){We||(Q(n.$$.fragment,Ot),Q(y.$$.fragment,Ot),Q(le),Q(W.$$.fragment,Ot),Q(Re),Q(V),We=!0)},o:function(Ot){fe(n.$$.fragment,Ot),fe(y.$$.fragment,Ot),fe(le),fe(W.$$.fragment,Ot),fe(Re),fe(V),We=!1},d:function(Ot){mt(n,Ot),Ot&&Be(e),Ot&&Be(i),mt(y),le&&le.d(),mt(W),Re&&Re.d(),Ve[q].d(),st=!1,po($)}}}function met(t){var n,e,i,r,o;return e=new $se({props:{$$slots:{default:[pet]},$$scope:{ctx:t}}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Ea(Nk.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function get(t){t.focus()}function vet(t,n,e){var i,r,o=Ma("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+R_():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,b=n.queryLanguageId,C=n.onChangeQueryLanguage,D=n.onRenderValue,E=n.onClassName,B=n.onTransform,z=Aa("simple-modal").close,j="".concat(a,":").concat(dn(u)),U=od[j]||{},G=!1!==od.showWizard,X=!1!==od.showOriginal,oe=U.queryOptions||{},P=b===U.queryLanguageId&&U.query?U.query:pe(b).createQuery(l,U.queryOptions||{}),W=U.isManual||!1,J=void 0,H={text:""};function pe(N){return y.find(function(F){return F.id===N})||y[0]}var A=p0(function(N,F){try{o("previewTransform",{query:F});var q=pe(b).executeQuery(N,F,p);e(18,H={json:q}),e(17,J=void 0)}catch(V){e(18,H={text:""}),e(17,J=V.toString())}},300);return t.$$set=function(N){"id"in N&&e(28,a=N.id),"json"in N&&e(29,l=N.json),"rootPath"in N&&e(1,u=N.rootPath),"indentation"in N&&e(2,d=N.indentation),"escapeControlCharacters"in N&&e(3,h=N.escapeControlCharacters),"escapeUnicodeCharacters"in N&&e(4,f=N.escapeUnicodeCharacters),"parser"in N&&e(5,p=N.parser),"parseMemoizeOne"in N&&e(6,m=N.parseMemoizeOne),"validationParser"in N&&e(7,g=N.validationParser),"pathParser"in N&&e(8,v=N.pathParser),"queryLanguages"in N&&e(9,y=N.queryLanguages),"queryLanguageId"in N&&e(0,b=N.queryLanguageId),"onChangeQueryLanguage"in N&&e(30,C=N.onChangeQueryLanguage),"onRenderValue"in N&&e(10,D=N.onRenderValue),"onClassName"in N&&e(11,E=N.onClassName),"onTransform"in N&&e(31,B=N.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=On(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&A(i,P),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,od[j]={queryOptions:oe,query:P,queryLanguageId:b,isManual:W},od),o("store state in memory",j,od[j]))},[b,u,d,h,f,p,m,g,v,y,D,E,oe,P,i,G,X,J,H,r,z,pe,function(N){e(12,oe=N),e(13,P=pe(b).createQuery(l,N)),e(33,W=!1),o("updateQueryByWizard",{queryOptions:oe,query:P,isManual:W})},function(N){e(13,P=N.target.value),e(33,W=!0),o("handleChangeQuery",{query:P,isManual:W})},function(){try{o("handleTransform",{query:P});var N=pe(b).executeQuery(i,P,p);B([{op:"replace",path:dn(u),value:N}]),z()}catch(F){console.error(F),e(18,H={text:""}),e(17,J=F.toString())}},function(){e(15,G=!G),e(32,od.showWizard=G,od)},function(){e(16,X=!X),e(32,od.showOriginal=X,od)},function(N){o("handleChangeQueryLanguage",N),e(0,b=N),C(N);var F=pe(b);e(13,P=F.createQuery(l,oe)),e(33,W=!1)},a,l,C,B,od,W]}var yet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,vet,met,Pi,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},cet,[-1,-1]),r}return Ie(e)}(),kp={};function _et(t){_i(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function wue(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new ag({props:c}),Xi.push(function(){return Xu(o,"value",l)}),{c:function(){n=De("tr"),(e=De("th")).textContent="Property",i=rt(),r=De("td"),gt(o.$$.fragment),R(e,"class","svelte-1y818v2"),R(r,"class","svelte-1y818v2")},m:function(u,d){$e(u,n,d),me(n,e),me(n,i),me(n,r),pt(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],Yu(function(){return s=!1})),o.$set(h)},i:function(u){a||(Q(o.$$.fragment,u),a=!0)},o:function(u){fe(o.$$.fragment,u),a=!1},d:function(u){u&&Be(n),mt(o)}}}function Cue(t){var n,e;return{c:function(){n=De("div"),e=sn(t[5]),R(n,"class","jse-error svelte-1y818v2")},m:function(i,r){$e(i,n,r),me(n,e)},p:function(i,r){32&r&&ti(e,i[5])},d:function(i){i&&Be(n)}}}function bet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J;e=new e4({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&wue(t);function pe(F){t[15](F)}var A={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(A.value=t[2]),D=new ag({props:A}),Xi.push(function(){return Xu(D,"value",pe)});var N=t[5]&&Cue(t);return{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),o=De("table"),(s=De("colgroup")).innerHTML=' \n ',a=rt(),l=De("tbody"),c=De("tr"),(u=De("th")).textContent="Path",d=rt(),h=De("td"),f=De("input"),m=rt(),H&&H.c(),g=rt(),v=De("tr"),(y=De("th")).textContent="Direction",b=rt(),C=De("td"),gt(D.$$.fragment),B=rt(),z=De("div"),N&&N.c(),j=rt(),U=De("div"),G=De("button"),X=sn("Sort"),R(u,"class","svelte-1y818v2"),R(f,"class","jse-path svelte-1y818v2"),R(f,"type","text"),f.readOnly=!0,R(f,"title","Selected path"),f.value=p=Ji(t[0])?"(whole document)":cu(rc(t[0])),R(h,"class","svelte-1y818v2"),R(y,"class","svelte-1y818v2"),R(C,"class","svelte-1y818v2"),R(o,"class","svelte-1y818v2"),R(z,"class","jse-space svelte-1y818v2"),R(G,"type","button"),R(G,"class","jse-primary svelte-1y818v2"),G.disabled=oe=!!t[4]&&!t[1],R(U,"class","jse-actions svelte-1y818v2"),R(r,"class","jse-modal-contents svelte-1y818v2"),R(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(F,q){$e(F,n,q),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(o,s),me(o,a),me(o,l),me(l,c),me(c,u),me(c,d),me(c,h),me(h,f),me(l,m),H&&H.m(l,null),me(l,g),me(l,v),me(v,y),me(v,b),me(v,C),pt(D,C,null),me(r,B),me(r,z),N&&N.m(z,null),me(r,j),me(r,U),me(U,G),me(G,X),P=!0,W||(J=[Rt(G,"click",t[8]),Ea(xet.call(null,G)),Ea(Nk.call(null,n,t[6]))],W=!0)},p:function(F,q){var V=Jn(q,1)[0],ce={};16&V&&(ce.title=F[4]?"Sort array items":"Sort object keys"),e.$set(ce),(!P||1&V&&p!==(p=Ji(F[0])?"(whole document)":cu(rc(F[0])))&&f.value!==p)&&(f.value=p),F[4]&&(F[3].length>1||void 0===F[1])?H?(H.p(F,V),26&V&&Q(H,1)):((H=wue(F)).c(),Q(H,1),H.m(l,g)):H&&(Ht(),fe(H,1,1,function(){H=null}),Ut());var ve={};!E&&4&V&&(E=!0,ve.value=F[2],Yu(function(){return E=!1})),D.$set(ve),F[5]?N?N.p(F,V):((N=Cue(F)).c(),N.m(z,null)):N&&(N.d(1),N=null),(!P||18&V&&oe!==(oe=!!F[4]&&!F[1]))&&(G.disabled=oe)},i:function(F){P||(Q(e.$$.fragment,F),Q(H),Q(D.$$.fragment,F),P=!0)},o:function(F){fe(e.$$.fragment,F),fe(H),fe(D.$$.fragment,F),P=!1},d:function(F){F&&Be(n),mt(e),H&&H.d(),mt(D),N&&N.d(),W=!1,po(J)}}}function xet(t){t.focus()}function wet(t,n,e){var i,r,o,s=Ma("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=Aa("simple-modal").close,h="".concat(a,":").concat(dn(c)),f=On(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=kp[h]&&kp[h].selectedProperty||void 0,v=kp[h]&&kp[h].selectedDirection||p,y=void 0;return t.$$set=function(b){"id"in b&&e(9,a=b.id),"json"in b&&e(10,l=b.json),"rootPath"in b&&e(0,c=b.rootPath),"onSort"in b&&e(11,u=b.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?pP(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(sb):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,kp[h]={selectedProperty:g,selectedDirection:v},kp),s("store state in memory",h,kp[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var b,C;e(5,y=void 0);var D=null===(b=g)||void 0===b?void 0:b.value,E=null===(C=v)||void 0===C?void 0:C.value,B=Wce(l,c,D,E);u({operations:B,rootPath:c,itemPath:D,direction:E}),d()}catch(z){e(5,y=z.toString())}},a,l,u,kp,r,function(b){e(1,g=b),e(3,o),e(13,r),e(4,i)},function(b){e(2,v=b)}]}var Cet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wet,bet,Pi,{id:9,json:10,rootPath:0,onSort:11},_et),r}return Ie(e)}();function fh(){}function Rk(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function ket(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Det(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,b=n.canTransform,C=n.onRenderMenu;return t.$$set=function(D){"readOnly"in D&&e(1,s=D.readOnly),"onFormat"in D&&e(2,a=D.onFormat),"onCompact"in D&&e(3,l=D.onCompact),"onSort"in D&&e(4,c=D.onSort),"onTransform"in D&&e(5,u=D.onTransform),"onToggleSearch"in D&&e(6,d=D.onToggleSearch),"onUndo"in D&&e(7,h=D.onUndo),"onRedo"in D&&e(8,f=D.onRedo),"canUndo"in D&&e(9,p=D.canUndo),"canRedo"in D&&e(10,m=D.canRedo),"canFormat"in D&&e(11,g=D.canFormat),"canCompact"in D&&e(12,v=D.canCompact),"canSort"in D&&e(13,y=D.canSort),"canTransform"in D&&e(14,b=D.canTransform),"onRenderMenu"in D&&e(15,C=D.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:s4,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:iZe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!b},{type:"button",icon:HP,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=C(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,r]}var Tet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Det,ket,Pi,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Ie(e)}(),mo=function(){function t(){Oe(this,t)}return Ie(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),jk.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),jk.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new Sb(this),o=new Sb(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new Sb(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new kue(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Due(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new ld(n):jk.from(ld.split(n,[])):t.empty}}]),t}(),ld=function(t){Dt(e,mo);var n=Tt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function Eet(t){var n,e=-1,i=He(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return Oe(this,e),(r=n.call(this)).text=i,r.length=o,r}return Ie(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new Aet(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(Sue(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=Lk(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return _r(er(e.prototype),"replace",this).call(this,i,r,o);var s=Lk(this.text,Lk(o.text,Sue(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):jk.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=He(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=He(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),jk=function(t){Dt(e,mo);var n=Tt(e);function e(i,r){var o;Oe(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=He(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Ie(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return _r(er(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return _r(er(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=He(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Jn(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(j,U){return j+U.length+1},-1),s=0,a=He(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(j){a.e(j)}finally{a.f()}if(s<32){var c,u=[],d=He(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(j){d.e(j)}finally{d.f()}return new ld(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,b=[];function C(j){var U;if(j.lines>p&&j instanceof e){var G,X=He(j.children);try{for(X.s();!(G=X.n()).done;)C(G.value)}catch(oe){X.e(oe)}finally{X.f()}}else j.lines>m&&(v>m||!v)?(D(),g.push(j)):j instanceof ld&&v&&(U=b[b.length-1])instanceof ld&&j.lines+U.lines<=32?(v+=j.lines,y+=j.length+1,b[b.length-1]=new ld(U.text.concat(j.text),U.length+1+j.length)):(v+j.lines>f&&D(),v+=j.lines,y+=j.length+1,b.push(j))}function D(){0!=v&&(g.push(1==b.length?b[0]:e.from(b,y)),y=-1,v=b.length=0)}var E,B=He(i);try{for(B.s();!(E=B.n()).done;)C(E.value)}catch(j){B.e(j)}finally{B.f()}return D(),1==g.length?g[0]:new e(g,o)}}]),e}();function Lk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;Oe(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof ld?n.text.length:n.children.length)<<1]}return Ie(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof ld?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof ld){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof ld?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),kue=function(){function t(n,e,i){Oe(this,t),this.value="",this.done=!1,this.cursor=new Sb(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Ie(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),Due=function(){function t(n){Oe(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Ie(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(mo.prototype[Symbol.iterator]=function(){return this.iter()},Sb.prototype[Symbol.iterator]=kue.prototype[Symbol.iterator]=Due.prototype[Symbol.iterator]=function(){return this});for(var Aet=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Ie(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),U0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),Bk=1;Bkt)return U0[n-1]<=t;return!1}function Tue(t){return t>=127462&&t<=127487}function jl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?Oet:Eue)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function Eue(t,n,e){if(n==t.length)return n;n&&Aue(t.charCodeAt(n))&&Mue(t.charCodeAt(n-1))&&n--;var i=Wa(t,n);for(n+=Fc(i);n=0&&Tue(Wa(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function Oet(t,n,e){for(;n>0;){var i=Eue(t,n-2,e);if(i=56320&&t<57344}function Mue(t){return t>=55296&&t<56320}function Wa(t,n){var e=t.charCodeAt(n);if(!Mue(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return Aue(i)?i-56320+(e-55296<<10)+65536:e}function g4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Fc(t){return t<65536?1:2}var v4=/\r\n?|\n/,Ll=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ll||(Ll={})),z0=function(){function t(n){Oe(this,t),this.sections=n}return Ie(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ll.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Ll.Simple&&c>=n&&(i==Ll.TrackDel&&rn||i==Ll.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),cd=function(t){Dt(e,z0);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this,i)).inserted=r,o}return Ie(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return y4(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return _4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){y4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return z0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new kb(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&Dp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var b=y?"string"==typeof y?mo.of(y.split(o||v4)):y:mo.empty,C=b.length;if(m==v&&0==C)return;ml&&ml(s,m-l,-1),ml(s,v-m,C),Dp(a,s,b),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function Dp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function _4(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new kb(t),a=new kb(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);ml(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?cd.createSet(r,o):z0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new kb(t),s=new kb(n),a=!1;;){if(o.done&&s.done)return r?cd.createSet(i,r):z0.create(i);if(0==o.ins)ml(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;ml(i,l,u,a),r&&u&&Dp(r,i,s.text)}else-1==s.ins?(ml(i,o.off?0:o.len,l,a),r&&Dp(r,i,o.textBit(l))):(ml(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&Dp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else ml(i,0,s.ins,a),r&&Dp(r,i,s.text),s.next()}}var kb=function(){function t(n){Oe(this,t),this.set=n,this.i=0,this.next()}return Ie(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?mo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?mo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),$k=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.flags=i}return Ie(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return rn.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return rn.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return rn.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),rn=function(){function t(n,e){Oe(this,t),this.ranges=n,this.mainIndex=e}return Ie(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return $k.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return $k.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function Iue(t,n){var e,i=He(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var b4=0,oi=function(){function t(n,e,i,r,o){Oe(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=b4++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Ie(t,[{key:"of",value:function(n){return new Vk([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:x4),!!n.static,n.enables)}}]),t}();function x4(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var Vk=function(){function t(n,e,i,r){Oe(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=b4++}return Ie(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=He(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||w4(m,h)){var v=o(m);if(c?!Nue(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var b=Hk(g,y);if(r.dependencies.every(function(C){return C instanceof oi?g.facet(C)===m.facet(C):!(C instanceof qa)||g.field(C,!1)==m.field(C,!1)})||(c?Nue(v=o(m),b,s):s(v=o(m),b)))return m.values[l]=b,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function Nue(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,Fue.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(b4++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function Db(t){return function(n){return new Pue(n,t)}}var G0={highest:Db(0),high:Db(1),default:Db(2),low:Db(3),lowest:Db(4)},Pue=Ie(function t(n,e){Oe(this,t),this.inner=n,this.prec=e}),Tp=function(){function t(){Oe(this,t)}return Ie(t,[{key:"of",value:function(n){return new S4(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),S4=Ie(function t(n,e){Oe(this,t),this.compartment=n,this.inner=e}),Rue=function(){function t(n,e,i,r,o,s){for(Oe(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,C,D,E,B,z,o=[],s=Object.create(null),a=new Map,l=He((C=n,D=e,E=a,B=[[],[],[],[],[]],z=new Map,function j(U,G){var X=z.get(U);if(null!=X){if(X<=G)return;var oe=B[X].indexOf(U);oe>-1&&B[X].splice(oe,1),U instanceof S4&&E.delete(U.compartment)}if(z.set(U,G),Array.isArray(U)){var P,W=He(U);try{for(W.s();!(P=W.n()).done;)j(P.value,G)}catch(pe){W.e(pe)}finally{W.f()}}else if(U instanceof S4){if(E.has(U.compartment))throw new RangeError("Duplicate use of compartment in extensions");var J=D.get(U.compartment)||U.inner;E.set(U.compartment,J),j(J,G)}else if(U instanceof Pue)j(U.inner,U.prec);else if(U instanceof qa)B[G].push(U),U.provides&&j(U.provides,G);else if(U instanceof Vk)B[G].push(U),U.facet.extensions&&j(U.facet.extensions,2);else{var H=U.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(U,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));j(H,G)}}(C,2),B.reduce(function(U,G){return U.concat(G)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof qa?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(C){l.e(C)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var C=m[p];u[C.id]=h.length<<1,h.push(function(D){return C.slot(D)})},p=0,m=o;p>1;function N(F){for(var q=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function Hk(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var jue=oi.define(),Lue=oi.define({combine:function(t){return t.some(function(n){return n})},static:!0}),Bue=oi.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),$ue=oi.define(),Vue=oi.define(),Hue=oi.define(),Uue=oi.define({combine:function(t){return!!t.length&&t[0]}}),Ep=function(){function t(n,e){Oe(this,t),this.type=n,this.value=e}return Ie(t,null,[{key:"define",value:function(){return new Pet}}]),t}(),Pet=function(){function t(){Oe(this,t)}return Ie(t,[{key:"of",value:function(n){return new Ep(this,n)}}]),t}(),Ret=function(){function t(n){Oe(this,t),this.map=n}return Ie(t,[{key:"of",value:function(n){return new gr(this,n)}}]),t}(),gr=function(){function t(n,e){Oe(this,t),this.type=n,this.value=e}return Ie(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new Ret((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=He(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();gr.reconfigure=gr.define(),gr.appendConfig=gr.define();var oc=function(){function t(n,e,i,r,o,s){Oe(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&Iue(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Ie(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=He(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function jet(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=zue(u,k4(l,h,a.changes.newLength),!0))}return u==a?a:oc.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=He(c.facet($ue));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:jet(u,h))}}catch(b){d.e(b)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=cd.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=oc.create(c,f,a.selection&&a.selection.map(p),gr.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Vue),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof oc?y:Array.isArray(y)&&1==y.length&&y[0]instanceof oc?y[0]:Gue(c,W0(y),!1)}return a}(s):s)}oc.time=Ep.define(),oc.userEvent=Ep.define(),oc.addToHistory=Ep.define(),oc.remote=Ep.define();var Let=[];function W0(t){return null==t?Let:Array.isArray(t)?t:[t]}var D4,ls=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(ls||(ls={})),Bet=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{D4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Fo=function(){function t(n,e,i,r,o,s){Oe(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return Tb(this,i),Hk(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof cd?n:cd.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return mo.of(n.split(this.facet(t.lineSeparator)||v4))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(Tb(this,e),Hk(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof qa&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Uue)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=He(this.facet(jue));try{for(s.s();!(i=s.n()).done;){var a,c=He((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function $et(t){return function(n){if(!/\S/.test(n))return ls.Space;if(function(i){if(D4)return D4.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||Bet.test(o)))return!0}return!1}(n))return ls.Word;for(var e=0;e-1)return ls.Word;return ls.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=jl(i,a,!1);if(s(i.slice(c,a))!=ls.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:rn.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Rue.resolve(n.extensions||[],new Map),i=n.doc instanceof mo?n.doc:mo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||v4)),r=n.selection?n.selection instanceof rn?n.selection:rn.single(n.selection.anchor,n.selection.head):rn.single(0);return Iue(r,i.length),e.staticFacet(Lue)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function pu(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=He(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();cg.prototype.startSide=cg.prototype.endSide=0,cg.prototype.point=!1,cg.prototype.mapMode=Ll.TrackDel;var T4=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.value=i}return Ie(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function E4(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var Vet=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Ie(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),qo=function(){function t(n,e,i,r){Oe(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Ie(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=He(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(E4)),this.isEmpty)return i.length?t.of(i):this;for(var d=new que(this,null,-1).goto(0),h=0,f=[],p=new ug;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return A4.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return A4.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Wue(s,a,i),c=new Eb(s,l,o),u=new Eb(a,l,o);i.iterGaps(function(d,h,f){return Yue(c,d,u,h,f,r)}),i.empty&&0==i.length&&Yue(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Wue(o,s),l=new Eb(o,a,0).goto(i),c=new Eb(s,a,0).goto(i);;){if(l.to!=c.to||!O4(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new Eb(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new ug,o=He(n instanceof T4?[n]:i?function Het(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(E4);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();qo.empty=new qo([],[],null,-1),qo.empty.nextLayer=qo.empty;var ug=function(){function t(){Oe(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Ie(t,[{key:"finishChunk",value:function(n){this.chunks.push(new Vet(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(qo.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=qo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Wue(t,n,e){var i,r=new Map,o=He(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Ie(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=He(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)M4(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=He(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)M4(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),M4(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new que(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function M4(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var Eb=function(){function t(n,e,i){Oe(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=A4.from(n,e,i)}return Ie(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){Uk(this.active,n),Uk(this.activeTo,n),Uk(this.activeRank,n),this.minActive=Xue(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&Uk(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Yue(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&O4(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!O4(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function O4(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function Xue(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=jl(t,r)}return!0===i?-1:t.length}for(var Jue=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),N4=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Kue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Ap=function(){function t(n,e){Oe(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==wn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Ie(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Kue[Jue]||1;return Kue[Jue]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[N4]||new Uet(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),Gk=null,Uet=function(){function t(n){if(Oe(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(Gk)return n.adoptedStyleSheets=[Gk.sheet].concat(n.adoptedStyleSheets),n[N4]=Gk;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),Gk=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[N4]=this}return Ie(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Que=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),zet=typeof navigator<"u"&&/Mac/.test(navigator.platform),Get=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Wet=zet||Que&&+Que[1]<57,Ya=0;Ya<10;Ya++)Mp[48+Ya]=Mp[96+Ya]=String(Ya);for(Ya=1;Ya<=24;Ya++)Mp[Ya+111]="F"+Ya;for(Ya=65;Ya<=90;Ya++)Mp[Ya]=String.fromCharCode(Ya+32),Mb[Ya]=String.fromCharCode(Ya);for(var F4 in Mp)Mb.hasOwnProperty(F4)||(Mb[F4]=Mp[F4]);function Wk(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function q0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function qk(t,n){if(!n.anchorNode)return!1;try{return q0(t,n.anchorNode)}catch{return!1}}function Ob(t){return 3==t.nodeType?X0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function Yk(t,n,e,i){return!!e&&(Zue(t,n,e,i,-1)||Zue(t,n,e,i,1))}function Xk(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function Zue(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:Ib(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=Xk(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?Ib(t):0}}}function Ib(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var ede={left:0,right:0,top:0,bottom:0};function P4(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function qet(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var tde,Yet=function(){function t(){Oe(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Ie(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),Y0=null;function nde(t){if(t.setActive)return t.setActive();if(Y0)return t.focus(Y0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==Y0?{get preventScroll(){return Y0={preventScroll:!0},!0}}:void 0),!Y0){Y0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=tde||(tde=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function J0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function ide(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Pc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Oe(this,t),this.node=n,this.offset=e,this.precise=i}return Ie(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,Xk(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,Xk(n)+1,e)}}]),t}(),R4=[],Cs=function(){function t(){Oe(this,t),this.parent=null,this.dom=null,this.dirty=2}return Ie(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=He(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=He(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=rde(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=rde(i)}else if(1&this.dirty){var u,d=He(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==Ib(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R4;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function rde(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}Cs.prototype.breakAfter=0;var ode=function(){function t(n,e,i){Oe(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Ie(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function sde(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),si={mac:hde||/Mac/.test(Rc.platform),windows:/Win/.test(Rc.platform),linux:/Linux|X11/.test(Rc.platform),ie:Jk,ie_version:lde?j4.documentMode||6:B4?+B4[1]:L4?+L4[1]:0,gecko:cde,gecko_version:cde?+(/Firefox\/(\d+)/.exec(Rc.userAgent)||[0,0])[1]:0,chrome:!!$4,chrome_version:$4?+$4[1]:0,ios:hde,android:/Android\b/.test(Rc.userAgent),webkit:ude,safari:dde,webkit_version:ude?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=j4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},Nb=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).text=i,r}return Ie(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Pc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return V4(this.dom,i,r)}}]),e}(),dg=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Oe(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=He(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(Fn(r))}catch(u){l.e(u)}finally{l.f()}return r}return Ie(e,[{key:"setAttrs",value:function(i){if(ide(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),_r(er(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return mde(this,i)}},{key:"coordsAt",value:function(i,r){return vde(this,i,r)}}]),e}();function V4(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?si.chrome||si.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return si.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?P4(l,s<0):l||null}var H4=function(t){Dt(e,Cs);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Ie(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:P4(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){_r(er(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),fde=function(t){Dt(e,H4);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?U4(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Pc(s,Math.min(a,s.nodeValue.length))}):new Pc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?pde(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?U4(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return V4(a,l,c)}):V4(a,i,r)}},{key:"destroy",value:function(){var i;_r(er(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function U4(t,n,e,i,r,o){if(e instanceof dg){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=Cs.get(s);if(!a)return o(t,n);var l=q0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return mo.empty}}]),e}();function mde(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof dg&&r.length&&(i=r[r.length-1])instanceof dg&&i.mark.eq(n.mark)?gde(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function vde(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new yde(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new Fb(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=_de(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new Fb(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new Y4(i)}},{key:"set",value:function(i){return qo.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();Ci.none=qo.empty;var yde=function(t){Dt(e,Ci);var n=Tt(e);function e(i){var r;Oe(this,e);var o=_de(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Ie(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&W4(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();yde.prototype.point=!1;var Y4=function(t){Dt(e,Ci);var n=Tt(e);function e(i){return Oe(this,e),n.call(this,-2e8,-2e8,null,i)}return Ie(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&W4(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();Y4.prototype.mapMode=Ll.TrackBefore,Y4.prototype.point=!0;var Fb=function(t){Dt(e,Ci);var n=Tt(e);function e(i,r,o,s,a,l){var c;return Oe(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Ll.TrackBefore:Ll.TrackAfter:Ll.TrackDel,c}return Ie(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();function _de(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function X4(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}Fb.prototype.point=!0;var ud=function(t){Dt(e,Cs);var n=Tt(e);function e(){var i;return Oe(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Ie(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),ade(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){W4(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){gde(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=G4(r,this.attrs||{})),o&&(this.attrs=G4({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return mde(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(ide(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(q4(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),_r(er(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&Cs.get(s)instanceof dg;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=Cs.get(s))||void 0===o?void 0:o.isEditable)||si.ios&&this.children.some(function(l){return l instanceof Nb})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=He(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof Nb)||/[^ -~]/.test(s.text))return null;var a=Ob(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return vde(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return So.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),J4=function(t){Dt(e,Cs);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Ie(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(Kk(new z4(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(Kk(new Nb(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof Fb){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof Fb)if(i.block){var l=i.type;l!=So.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new J4(i.widget||new bde("div"),a,l))}else{var c=H4.create(i.widget||new bde("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(Kk(new z4(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(Kk(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=qo.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function Kk(t,n){var e,i=He(n);try{for(i.s();!(e=i.n()).done;)t=new dg(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var bde=function(t){Dt(e,Op);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).tag=i,r}return Ie(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),xde=oi.define(),wde=oi.define(),Cde=oi.define(),Sde=oi.define(),K4=oi.define(),kde=oi.define(),Dde=oi.define(),Tde=oi.define({combine:function(t){return t.some(function(n){return n})}}),Ede=oi.define({combine:function(t){return t.some(function(n){return n})}}),Ade=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;Oe(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Ie(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),Mde=gr.define({map:function(t,n){return t.map(n)}});function jc(t,n,e){var i=t.facet(Sde);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var Qk=oi.define({combine:function(t){return!t.length||t[0]}}),Ket=0,Pb=oi.define(),Ia=function(){function t(n,e,i,r){Oe(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Ie(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(Ket++,n,i.eventHandlers,function(a){var l=[Pb.of(a)];return s&&l.push(Rb.of(function(c){var u=c.plugin(a);return u?s(u):Ci.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),Q4=function(){function t(n){Oe(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Ie(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(jc(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){jc(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){jc(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),Ode=oi.define(),Z4=oi.define(),Rb=oi.define(),Ide=oi.define(),Nde=oi.define(),jb=oi.define(),K0=function(){function t(n,e,i,r){Oe(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Ie(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),Fde=function(){function t(n,e,i){Oe(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=cd.empty(this.startState.doc.length);var r,o=He(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new K0(l,c,u,d))}),this.changedRanges=a}return Ie(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),cs=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(cs||(cs={})),eR=cs.LTR,Qet=cs.RTL;function Pde(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),us=[];function $de(t){return[new Q0(0,t,0)]}var Vde="";function itt(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=Q0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=jl(t.text,s,u);if(Vde=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return rn.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=He(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=Cs.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=He(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=He(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Ude(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var zde=Ie(function t(n,e){Oe(this,t),this.node=n,this.offset=e,this.pos=-1}),Gde=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).view=i,r.compositionDeco=Ci.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new ud],r.children[0].setParent(Fn(r)),r.updateDeco(),r.updateInner([new K0(0,0,0,i.state.doc.length)],0),r}return Ie(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Ci.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=qde(a);if(!c)return Ci.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new Hde([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=Jet.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,b=v.off,C=o.findPos(l,-1);sde(this,C.i,C.off,y,b,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(si.gecko&&a.empty&&function rtt(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Pc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&Yk(l.node,l.offset,d.anchorNode,d.anchorOffset)&&Yk(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){si.android&&si.chrome&&i.dom.contains(d.focusNode)&&function ltt(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=Wk(i.view.root);if(h)if(a.empty){if(si.gecko){var f=function stt(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Pc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Pc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=Wk(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=ud.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||qk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=Cs.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=So.WidgetBefore&&a.type!=So.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==So.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==cs.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?Ob(g):[];if(v.length){var y=v[v.length-1],b=u?y.right-m.left:m.right-y.left;b>c&&(c=b,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?cs.RTL:cs.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=He(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof ud){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=Ob(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new ode(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(Ci.replace({widget:new Wde(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return Ci.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(Rb).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=He(this.view.state.facet(Nde).map(function(C){return C(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(C){f.e(C)}finally{f.f()}!function(C,D,E,B,z,j,U,G){for(var X=C.ownerDocument,oe=X.defaultView||window,P=C;P;)if(1==P.nodeType){var W=void 0,J=P==X.body;if(J)W=qet(oe);else{if(P.scrollHeight<=P.clientHeight&&P.scrollWidth<=P.clientWidth){P=P.assignedSlot||P.parentNode;continue}var H=P.getBoundingClientRect();W={left:H.left,right:H.left+P.clientWidth,top:H.top,bottom:H.top+P.clientHeight}}var pe=0,A=0;if("nearest"==z)D.top0&&D.bottom>W.bottom+A&&(A=D.bottom-W.bottom+A+U)):D.bottom>W.bottom&&(A=D.bottom-W.bottom+U,E<0&&D.top-A0&&D.right>W.right+pe&&(pe=D.right-W.right+pe+j)):D.right>W.right&&(pe=D.right-W.right+j,E<0&&D.left0&&e<=0)n=Ib(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var att=function(){function t(){Oe(this,t),this.changes=[]}return Ie(t,[{key:"compareRange",value:function(n,e){X4(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){X4(n,e,this.changes)}}]),t}();function ctt(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function utt(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function iR(t,n){return t.topn.top+1}function Xde(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function rR(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=Ob(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&iR(c,m)?c=Jde(c,m.bottom):u&&iR(u,m)&&(u=Xde(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var b=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Kde(i,b,e):d&&"false"!=i.contentEditable?rR(i,b,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Kde(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((si.chrome||si.gecko)&&X0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Qde(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=So.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:Zde(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,b=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var C=m.caretPositionFromPoint(c,u);C&&(y=C.offsetNode,b=C.offset)}else if(m.caretRangeFromPoint){var D=m.caretRangeFromPoint(c,u);D&&(b=D.startOffset,(!t.contentDOM.contains(y=D.startContainer)||si.safari&&function dtt(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return X0(t,i-1,i).getBoundingClientRect().left>e}(y,b,c)||si.chrome&&function htt(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():X0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,b,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var E=ud.find(t.docView,p);if(!E)return d>r.top+r.height/2?r.to:r.from;var B=rR(E.dom,c,u);y=B.node,b=B.offset}var z=t.docView.nearest(y);if(!z)return null;if(z.isWidget){var j=z.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+I4(s,o,t.state.tabSize)}function ehe(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=itt(r,o,s,a,e),u=Vde;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=rn.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function oR(t,n,e){for(var i=t.state.facet(Ide).map(function(a){return a(t)});;){var r,o=!1,s=He(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?rn.cursor(a,1):rn.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var ptt=function(){function t(n){var e=this;Oe(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=_a[s];n.contentDOM.addEventListener(s,function(l){ihe(n,l)&&i(a,l)},sR[s]),e.registeredEvents.push(s)};for(var o in _a)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(_a.mousedown,s)}),si.chrome&&102==si.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,si.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Ie(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=He(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){ihe(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=He(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){jc(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=He(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){jc(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,J0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(si.safari&&!si.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),the=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],mtt="dthko",nhe=[16,17,18,20,91,92,224,225];function Zk(t){return.7*t+8}var gtt=function(){function t(n,e,i,r){Oe(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Fo.allowMultipleSelections)&&(a=e,(l=n.state.facet(xde)).length?l[0](a):si.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(wde);return l.length?l[0](a):si.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=Wk(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=fhe(e))&&null}return Ie(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-Zk(o.left-n.clientX):n.clientX>=o.right&&(i=Zk(n.clientX-o.right)),n.clientY<=o.top?r=-Zk(o.top-n.clientY):n.clientY>=o.bottom&&(r=Zk(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function ihe(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=Cs.get(i))&&e.ignoreEvent(n))return!1;return!0}var _a=Object.create(null),sR=Object.create(null),rhe=si.ie&&si.ie_version<15||si.ios&&si.webkit_version<604;function ohe(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=aR&&i.selection.ranges.every(function(c){return c.empty})&&aR==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:rn.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:rn.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function she(t,n,e,i){if(1==i)return rn.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return rn.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=jl(h.text,f,!1):m=jl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=jl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=He(t.state.facet(Cde));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=che(s=t,a=n),c=fhe(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=che(s,d),m=she(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=she(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(b){return b.eq(m)})?function(b,C){for(var D=0;;D++)if(b.ranges[D].eq(C))return rn.create(b.ranges.slice(0,D).concat(b.ranges.slice(D+1)),b.mainIndex==D?0:b.mainIndex-(b.mainIndex>D?1:0))}(u,m):f?u.addRange(m):rn.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new gtt(t,n,i,o)),o&&t.observer.ignore(function(){return nde(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var ahe=function(t,n){return t>=n.top&&t<=n.bottom},lhe=function(t,n,e){return ahe(n,e)&&t>=e.left&&t<=e.right};function vtt(t,n,e,i){var r=ud.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&lhe(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&lhe(e,i,a)?1:s&&ahe(i,s)?-1:1}function che(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:vtt(t,e,n.clientX,n.clientY)}}var ytt=si.ie&&si.ie_version<=11,uhe=null,dhe=0,hhe=0;function fhe(t){if(!ytt)return t.detail;var n=uhe,e=hhe;return uhe=t,hhe=Date.now(),dhe=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(dhe+1)%3:1}function phe(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}_a.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},_a.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&phe(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(b){g.e(b)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){aR=o?i:null;var s=rhe?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var mhe=Ep.define();function ghe(t,n){var e,i=[],r=He(t.facet(Dde));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:mhe.of(!0)}):null}function vhe(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=ghe(t.state,n);e?t.dispatch(e):t.update([])}},10)}_a.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),vhe(t)},_a.blur=function(t){t.observer.clearSelectionRange(),vhe(t)},_a.compositionstart=_a.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},_a.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,si.chrome&&si.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},_a.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},_a.beforeinput=function(t,n){var e,i;if(si.chrome&&si.android&&(i=the.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var yhe=["pre-wrap","normal","pre-line","break-spaces"],_tt=function(){function t(n){Oe(this,t),this.lineWrapping=n,this.doc=mo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Ie(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return yhe.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;Oe(this,t),this.length=n,this.height=e,this.flags=i}return Ie(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Yo.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Yo.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),mh=function(t){Dt(e,_he);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this,i,r,So.Text)).collapsed=0,o.widgetHeight=0,o}return Ie(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof Z0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof Z0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):dd.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),Z0=function(t){Dt(e,dd);var n=Tt(e);function e(i){return Oe(this,e),n.call(this,i,0)}return Ie(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new hg(f.from,f.length,m,p,So.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new hg(v.from,v.length,o+u*g,u,So.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Yo.ByHeight)return this.blockAt(i,o,s,a);if(r==Yo.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new hg(c,l.to-c,0,0,So.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new hg(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,So.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new hg(m.from,m.length,p,v,So.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return dd.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new mh(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=dd.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),xtt=function(t){Dt(e,dd);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Ie(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Yo.ByPosNoHeight?Yo.ByPosNoHeight:Yo.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Yo.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=He(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&bhe(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?dd.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function bhe(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof Z0&&(i=t[n+1])instanceof Z0&&t.splice(n-1,3,new Z0(e.length+1+i.length))}var wtt=function(){function t(n,e){Oe(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Ie(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof mh?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new mh(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new mh(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new Z0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof mh)return n;var e=new mh(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=So.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=So.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof mh||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function Dtt(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var lR=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.size=i}return Ie(t,[{key:"draw",value:function(n){return Ci.replace({widget:new Ttt(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new eD(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?whe:new Att(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:Lb(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(Rb).filter(function(c){return"function"!=typeof c});var o=K0.extendWithRanges(n.changedRanges,function Ctt(t,n,e){var i=new Stt;return qo.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:cd.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(Ede)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?cs.RTL:cs.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?Dtt:ktt)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var b=n.docView.measureTextSize(),C=b.lineHeight,D=b.charWidth;(s=C>0&&r.refresh(o,C,D,v/D,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var E,B=He(this.viewports);try{for(B.s();!(E=B.n()).done;){var z=E.value,j=z.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(z);this.heightMap=(s?dd.empty().applyChanges(this.stateDeco,mo.empty,this.heightOracle,[new K0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new btt(z.from,j))}}catch(G){B.e(G)}finally{B.f()}r.heightChanged&&(c|=2)}var U=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return U&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||U)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new eD(r.lineAt(this.visibleTop-1e3*i,Yo.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Yo.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Yo.ByPos,o,0,0);l=new eD(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Yo.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Yo.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=cs.LTR&&!r)return[];var l,c=[],u=function X(oe,P,W,J){if(!(P-oeoe&&F=W.from&&ce.to<=W.to&&Math.abs(ce.from-oe)ve})});if(!q){if(P=P})){var V=e.moveToLineBoundary(rn.cursor(P),!1,!0).head;V>oe&&(P=V)}q=new lR(oe,P,i.gapSize(W,oe,P,J))}c.push(q)}},d=He(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||Lb(this.heightMap.lineAt(n,Yo.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return Lb(this.heightMap.lineAt(this.scaler.fromDOM(n),Yo.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return Lb(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),eD=Ie(function t(n,e){Oe(this,t),this.from=n,this.to=e});function Ett(t,n,e){var i=[],r=t,o=0;return qo.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function nD(t,n){var e,i=0,r=He(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var whe={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},Att=function(){function t(n,e,i){Oe(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Yo.ByPos,n,0,0).top,p=e.lineAt(h,Yo.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=He(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Ie(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),uR=Ap.newName(),Che=Ap.newName(),She=Ap.newName(),khe={"&light":"."+Che,"&dark":"."+She};function dR(t,n,e){return new Ap(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var Mtt=dR("."+uR,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},khe),Ott=Ie(function t(n,e,i,r){Oe(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,b=m.focusOffset;return g&&(p.push(new zde(g,v)),y==g&&b==v||p.push(new zde(y,b))),p}(n),c=new Hde(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?rn.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!q0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!q0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=rn.single(h,d)}});function Dhe(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||si.android&&n.text.length0&&J>0&&j.charCodeAt(W-1)==U.charCodeAt(J-1);)W--,J--;return"end"==X&&(G-=W+Math.max(0,P-Math.min(W,J))-P),W=W?P-G:0)+(J-W),W=P):J=J?P-G:0)+(W-J),J=P),{from:P,toA:W,toB:J}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(si.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:mo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(Qk)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(si.mac||si.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=rn.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:mo.of([" "])}):si.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=rn.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:mo.of([" "])}),e){var d=t.state;if(si.ios&&t.inputState.flushIOSKey(t)||si.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&J0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&J0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&J0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(kde).some(function(j){return j(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),b=qde(t)||t.state.doc.lineAt(r.head),C=r.to-e.to,D=r.to-r.from;h=d.changeByRange(function(j){if(j.from==r.from&&j.to==r.to)return{changes:g,range:v||j.map(g)};var U=j.to-C,G=U-y.length;if(j.to-j.from!=D||t.state.sliceDoc(G,U)!=y||b&&j.to>=b.from&&j.from<=b.to)return{range:j};var X=d.changes({from:G,to:U,insert:e.insert}),oe=j.to-r.to;return{changes:X,range:v?rn.range(Math.max(0,v.anchor+oe),Math.max(0,v.head+oe)):j.map(X)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var E="input.type";return t.composing&&(E+=".compose",t.inputState.compositionFirstChange&&(E+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:E}),!0}if(i&&!i.main.eq(r)){var B=!1,z="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(B=!0),z=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:B,userEvent:z}),!0}return!1}var Itt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},hR=si.ie&&si.ie_version<=11,Ntt=function(){function t(n){var e=this;Oe(this,t),this.view=n,this.active=!1,this.selectionRange=new Yet,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=He(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(si.ie&&si.ie_version<=11||si.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),hR&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Ie(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=He(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(Qk)?i.root.activeElement==this.dom:qk(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(si.ie&&si.ie_version<=11||si.android&&si.chrome)&&!i.state.selection.main.empty&&r.focusNode&&Yk(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=si.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(Yk(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||Wk(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=qk(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=He(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=He(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&qk(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new Ott(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=Dhe(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=The(e,n.previousSibling||n.target.previousSibling,-1),r=The(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=He(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function The(t,n,e){for(;n;){var i=Cs.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Qn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function Xet(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new xhe(e.state||Fo.create(e)),this.plugins=this.state.facet(Pb).map(function(s){return new Q4(s)});var i,r=He(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new Ntt(this),this.inputState=new ptt(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Gde(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Ie(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof oc?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=He(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(j){l.e(j)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(j){return j.annotation(mhe)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=ghe(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Fo.phrases)!=this.state.facet(Fo.phrases))return this.setState(a);(i=Fde.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=He(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var b=y.state.selection.main;m=new Ade(b.empty?b:rn.cursor(b.head,b.head>b.anchor?-1:1))}var C,D=He(y.effects);try{for(D.s();!(C=D.n()).done;){var E=C.value;E.is(Mde)&&(m=E.value)}}catch(j){D.e(j)}finally{D.f()}}}catch(j){v.e(j)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=Ahe.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(jb)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(j){return j.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(iD)!=i.state.facet(iD)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var B,z=He(this.state.facet(K4));try{for(z.s();!(B=z.n()).done;)(0,B.value)(i)}catch(j){z.e(j)}finally{z.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!Dhe(e,p)&&f.force&&J0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=He(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new xhe(n),this.plugins=n.facet(Pb).map(function(a){return new Q4(a)}),this.pluginMap.clear();var o,s=He(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Gde(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(Pb),i=n.state.facet(Pb);if(e!=i){var r,o=[],s=He(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new Q4(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=He(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=He(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(j){try{return j.read(n)}catch(U){return jc(n.state,U),Ehe}}),g=Fde.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var b=0;b1||D<-1)&&(this.scrollDOM.scrollTop+=D,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var E,B=He(this.state.facet(K4));try{for(B.s();!(E=B.n()).done;)(0,E.value)(i)}catch(j){B.e(j)}finally{B.f()}}}}},{key:"themeClasses",get:function(){return uR+" "+(this.state.facet(cR)?She:Che)+" "+this.state.facet(iD)}},{key:"updateAttrs",value:function(){var n=this,e=Mhe(this,Ode,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Qk)?"true":"false",class:"cm-content",style:"".concat(si.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),Mhe(this,Z4,i);var r=this.observer.ignore(function(){var o=q4(n.contentDOM,n.contentAttrs,i),s=q4(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=He(n);try{for(r.s();!(e=r.n()).done;){var o,s=He(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(jb),Ap.mount(this.root,this.styleModules.concat(Mtt).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==cs.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return rn.cursor(l,e?-1:1)}var c=ud.find(t.docView,n.head);return rn.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return oR(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return rn.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var b=u+(v+y)*c,C=Qde(r,{x:g,y:b},!1,c);if(bh.bottom||(c<0?Cl))return rn.cursor(C,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Qde(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return P4(i,o[Q0.find(o,n-r.from,-1,e)].dir==cs.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(Tde)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>Ftt)return $de(n.length);var e,i=this.textDirectionAt(n.from),r=He(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==eR?1:2,d=l==eR?2:1;if(!a||1==u&&!ntt.test(a))return $de(c);for(var h=0,f=u,p=u;h=0;oe-=3)if(ph[oe+1]==-z){var P=ph[oe+2],W=2&P?u:4&P?1&P?d:u:0;W&&(us[U]=us[ph[oe]]=W),G=oe;break}}else{if(189==ph.length)break;ph[G++]=U,ph[G++]=B,ph[G++]=X}else if(2==(j=us[U])||1==j){var J=j==u;X=J?0:1;for(var H=G-3;H>=0;H-=3){var pe=ph[H+2];if(2&pe)break;if(J)ph[H+2]|=2;else{if(4&pe)break;ph[H+2]|=4}}}for(var A=0;Aje;){for(var We=et,st=2!=us[--et];et>je&&st==(2!=us[et-1]);)et--;ce.push(new Q0(et,We,st?2:1))}else ce.push(new Q0(je,ve,0))}else for(var $=0;$Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){nde(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=He(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Mde.of(new Ade("number"==typeof n?rn.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return Ia.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=Ap.newName(),r=[iD.of(i),jb.of(dR(".".concat(i),n))];return e&&e.dark&&r.push(cR.of(!0)),r}},{key:"baseTheme",value:function(n){return G0.lowest(jb.of(dR("."+uR,n,khe)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&Cs.get(i)||Cs.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Qn.styleModule=jb,Qn.inputHandler=kde,Qn.focusChangeEffect=Dde,Qn.perLineTextDirection=Tde,Qn.exceptionSink=Sde,Qn.updateListener=K4,Qn.editable=Qk,Qn.mouseSelectionStyle=Cde,Qn.dragMovesSelection=wde,Qn.clickAddsSelectionRange=xde,Qn.decorations=Rb,Qn.atomicRanges=Ide,Qn.scrollMargins=Nde,Qn.darkTheme=cR,Qn.contentAttributes=Z4,Qn.editorAttributes=Ode,Qn.lineWrapping=Qn.contentAttributes.of({class:"cm-lineWrapping"}),Qn.announce=gr.define();var Ftt=4096,Ehe={},Ahe=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Ie(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:cs.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&G4(s,e)}return e}var Ptt=si.mac?"mac":si.windows?"win":si.linux?"linux":"key";function rD(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var jtt=G0.default(Qn.domEventHandlers({keydown:function(t,n){return Nhe(Ihe(n.state),t,n,"editor")}})),oD=oi.define({enables:jtt}),Ohe=new WeakMap;function Ihe(t){var n=t.facet(oD),e=Ohe.get(n);return e||Ohe.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ptt,s=Object.create(null),a=Object.create(null),l=function(E,B){var z=a[E];if(null==z)a[E]=B;else if(z!=B)throw new Error("Key binding "+E+" is used both as a regular binding and as a multi-stroke prefix")},c=function(E,B,z,j){for(var U,G,X=s[E]||(s[E]=Object.create(null)),oe=B.split(/ (?!$)/).map(function(pe){return function Rtt(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==cs.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=Fhe(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=Rhe(t,i),f=Rhe(t,r),p=h.type==So.Text?h:null,m=f.type==So.Text?f:null;if(t.lineWrapping&&(p&&(p=Phe(t,i,p)),m&&(m=Phe(t,r,m))),p&&m&&p.from==m.from)return C(D(e.from,e.to,p));var g=p?D(e.from,null,p):E(h,!1),v=m?D(null,e.to,m):E(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(b(u,g.bottom,d,v.top)):g.bottomW&&pe.from=N)break;je>A&&oe(Math.max(ve,A),null==B&&ve<=W,Math.min(je,N),null==z&&je>=J,ce.dir)}}catch(Te){V.e(Te)}finally{V.f()}if((A=q.to+1)>=N)break}}}catch(Te){H.e(Te)}finally{H.f()}return 0==X.length&&oe(W,null==B,J,null==z,t.textDirection),{top:U,bottom:G,horizontal:X}}function E(B,z){var j=a.top+(z?B.top:B.bottom);return{top:j,bottom:j,horizontal:[]}}}(n,e,i)}}]),t}();function Fhe(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==cs.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function Phe(t,n,e){var i=rn.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:So.Text}}function Rhe(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=He(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==So.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var Btt=function(){function t(n,e){Oe(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Ie(t,[{key:"update",value:function(n){n.startState.facet(sD)!=n.state.facet(sD)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(sD);e0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,Htt,Utt,Ede.of(!0)]}function Bhe(t){return t.startState.facet(Bb)!=t.state.facet(Bb)}var Vtt=jhe({above:!0,markers:function(t){var n,e=t.state,i=e.facet(Bb),r=[],o=He(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||Lhe:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:rn.cursor(s.head,s.head>s.anchor?-1:1),d=He(fR.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=Bhe(t);return e&&$he(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){$he(n.state,t)},class:"cm-cursorLayer"});function $he(t,n){n.style.animationDuration=t.facet(Bb).cursorBlinkRate+"ms"}var Htt=jhe({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:fR.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||Bhe(t)},class:"cm-selectionLayer"}),Vhe={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Lhe&&(Vhe[".cm-line"].caretColor="transparent !important");var Utt=G0.highest(Qn.theme(Vhe)),Hhe=gr.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),$b=qa.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Hhe)?i.value:e},t)}}),ztt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Ie(t,[{key:"update",value:function(n){var e,i=n.state.field($b);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field($b)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field($b),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field($b)!=n&&this.view.dispatch({effects:Hhe.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Uhe(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var Gtt=function(){function t(n){Oe(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Ie(t,[{key:"createDeco",value:function(n){var e,i=this,r=new ug,o=r.add.bind(r),s=He(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=He(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(b){m.e(b)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Uhe(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=He(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),pR=null!=/x/.unicode?"gu":"g",Wtt=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",pR),qtt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},mR=null,aD=oi.define({combine:function(t){var n=pu(t,{render:null,specialChars:Wtt,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==mR&&typeof document<"u"&&document.body){var i=document.body.style;mR=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return mR||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,pR)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,pR)),n}});function Ytt(){return[aD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),zhe||(zhe=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.decorations=Ci.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(aD)),this.decorations=this.decorator.createDeco(n)}return Ie(t,[{key:"makeDecorator",value:function(n){var e=this;return new Gtt({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Wa(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=Ab(l.text,c,o-l.from);return Ci.replace({widget:new Ktt((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=Ci.replace({widget:new Jtt(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(aD);n.startState.facet(aD)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var zhe=null,Jtt=function(t){Dt(e,Op);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this)).options=i,o.code=r,o}return Ie(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(qtt[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Ktt=function(t){Dt(e,Op);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).width=i,r}return Ie(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Qtt=Ci.line({class:"cm-activeLine"}),Ztt=Ia.fromClass(function(){function t(n){Oe(this,t),this.decorations=this.getDeco(n)}return Ie(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=He(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(Qtt.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return Ci.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ghe(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):Ab(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function tnt(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Qn.mouseSelectionStyle.of(function(e,i){return n(i)?function ent(t,n){var e=Ghe(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ghe(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(rn.range(y.from+m,y.to+g))}else for(var b=Math.min(u.col,d.col),C=Math.max(u.col,d.col),D=h;D<=f;D++){var E=c.doc.line(D),B=I4(E.text,b,c.tabSize,!0);if(B<0)p.push(rn.cursor(E.to));else{var z=I4(E.text,C,c.tabSize);p.push(rn.range(E.from+B,E.from+z))}}return p}(t.state,e,a);return l.length?rn.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var nnt={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},int={style:"cursor: crosshair"};function rnt(){var n=Jn(nnt[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=Ia.fromClass(function(){function o(s){Oe(this,o),this.view=s,this.isDown=!1}return Ie(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Qn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?int:null})]}var Whe=function(){function t(n,e,i){Oe(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Ie(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=He(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Ie(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=He(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(gR);if(r.position!=this.position){this.position=r.position;var o,s=He(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=He(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=He(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(gR).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=qhe.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||ant,v=this.view.textDirection==cs.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),b=!!a.above;!a.strictSide&&(b?u.top-(d.bottom-d.top)-g.yr.bottom)&&b==r.bottom-u.bottom>u.top-r.top&&(b=!b);var C=(b?u.top-r.top:r.bottom-u.bottom)-f;if(Cy&&j.topD&&(D=b?j.top-m-2-f:j.bottom+f+2)}}catch(U){z.e(U)}finally{z.f()}}"absolute"==this.position?(c.style.top=D-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=D+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:D,right:E,bottom:D+m}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=He(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),snt=Qn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ant={x:0,y:0},lD=oi.define({enables:[Yhe,snt]}),cD=oi.define(),lnt=function(){function t(n){var e=this;Oe(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Whe(n,cD,function(i){return e.createHostedView(i)})}return Ie(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=He(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=He(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),cnt=lD.compute([cD],function(t){var n=t.facet(cD).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,ui(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,ui(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:lnt.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),unt=function(){function t(n,e,i,r,o){Oe(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Ie(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==cs.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=gr.define(),i=qa.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Ll.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=He(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(fnt)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return cD.from(r)}});return[i,Ia.define(function(r){return new unt(r,t,i,e,n.hoverTime||300)}),cnt]}var fnt=gr.define(),Jhe=oi.define({combine:function(t){var n,e,i,r=He(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function Vb(t,n){var e=t.plugin(Khe),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Khe=Ia.fromClass(function(){function t(n){Oe(this,t),this.input=n.state.facet(Hb),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Jhe);this.top=new uD(n,!0,e.topContainer),this.bottom=new uD(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=He(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Ie(t,[{key:"update",value:function(n){var e=n.state.facet(Jhe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new uD(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new uD(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(Hb);if(i!=this.input){var r,o=i.filter(function(C){return C}),s=[],a=[],l=[],c=[],u=He(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(C){u.e(C)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),ife=function(){function t(n,e){var i=this;Oe(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=tfe(e.markers(n)),e.initialSpacer&&(this.spacer=new rfe(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Ie(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=tfe(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!qo.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=He(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),rfe=function(){function t(n,e,i,r){Oe(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Ie(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),efe(),ynt]}function ofe(t){for(var n=9;ni&&(i=s,e.push(bnt.range(s)))}}catch(a){r.e(a)}finally{r.f()}return qo.of(e)}),wnt=0,bR=Ie(function t(n,e){Oe(this,t),this.from=n,this.to=e}),xr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,t),this.id=wnt++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Ie(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=mu.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();xr.closedBy=new xr({deserialize:function(t){return t.split(" ")}}),xr.openedBy=new xr({deserialize:function(t){return t.split(" ")}}),xr.group=new xr({deserialize:function(t){return t.split(" ")}}),xr.contextHash=new xr({perNode:!0}),xr.lookAhead=new xr({perNode:!0}),xr.mounted=new xr({perNode:!0});var Cnt=Object.create(null),mu=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Ie(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(xr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):Cnt,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=He(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=He(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(xr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();mu.none=new mu("",Object.create(null),0,8);var Xa,Snt=function(){function t(n){Oe(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=hD.get(this)||this.topNode,r=new mD(i);return r.moveTo(n,e),hD.set(this,r._tree),r}},{key:"topNode",get:function(){return new Gb(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t1(hD.get(this)||this.topNode,n,e,!1);return hD.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t1(sfe.get(this)||this.topNode,n,e,!0);return sfe.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|Xa.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:CR(mu.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(mu.none,i,r,o)})}}],[{key:"build",value:function(n){return function Tnt(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new knt(e,e.length):e,d=i.types,h=0,f=0;function p(D,E,B,z,j){for(var U=u.id,G=u.start,X=u.end,oe=u.size,P=f;oe<0;){if(u.next(),-1==oe)return B.push(a[U]),void z.push(G-D);if(-3==oe)return void(h=U);if(-4==oe)return void(f=U);throw new RangeError("Unrecognized record size: ".concat(oe))}var J,H,st,pe=d[U],A=G-D;if(X-G<=o&&(H=function(st,$){var ae=u.fork(),le=0,Re=0,Ze=0,Ve=ae.end-o,Ct={size:0,start:0,skip:0};e:for(var Ot=ae.pos-st;ae.pos>Ot;){var yn=ae.size;if(ae.id==$&&yn>=0)Ct.size=le,Ct.start=Re,Ct.skip=Ze,Ze+=4,le+=4,ae.next();else{var Xn=ae.pos-yn;if(yn<0||Xn=c?4:0,Ri=ae.start;for(ae.next();ae.pos>Xn;){if(ae.size<0){if(-3!=ae.size)break e;on+=4}else ae.id>=c&&(on+=4);ae.next()}Re=Ri,le+=yn,Ze+=on}}return($<0||le==st)&&(Ct.size=le,Ct.start=Re,Ct.skip=Ze),Ct.size>4?Ct:void 0}(u.pos-E,j))){for(var N=new Uint16Array(H.size-H.skip),F=u.pos-H.size,q=N.length;u.pos>F;)q=v(H.start,N,q);J=new zb(N,X-H.start,i),A=H.start-D}else{var V=u.pos-oe;u.next();for(var ce=[],ve=[],je=U>=c?U:-1,Te=0,et=X;u.pos>V;)je>=0&&u.id==je&&u.size>=0?(u.end<=et-o&&(m(ce,ve,G,Te,u.end,et,je,P),Te=ce.length,et=u.end),u.next()):p(G,V,ce,ve,je);if(je>=0&&Te>0&&Te-1&&Te>0){var We=(st=pe,function($,ae,le){var Re,Ze,Ve=0,Ct=$.length-1;if(Ct>=0&&(Re=$[Ct])instanceof Ja){if(!Ct&&Re.type==st&&Re.length==le)return Re;(Ze=Re.prop(xr.lookAhead))&&(Ve=ae[Ct]+Re.length+Ze)}return g(st,$,ae,le,Ve)});J=CR(pe,ce,ve,0,ce.length,0,X-G,We,We)}else J=g(pe,ce,ve,X-G,P-X)}B.push(J),z.push(A)}function m(D,E,B,z,j,U,G,X){for(var oe=[],P=[];D.length>z;)oe.push(D.pop()),P.push(E.pop()+B-j);D.push(g(i.types[G],oe,P,U-j,X-U)),E.push(j-B)}function g(D,E,B,z){var j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,U=arguments.length>5?arguments[5]:void 0;if(h){var G=[xr.contextHash,h];U=U?[G].concat(U):[G]}if(j>25){var X=[xr.lookAhead,j];U=U?[X].concat(U):[X]}return new Ja(D,E,B,z,U)}function v(D,E,B){var z=u.id,j=u.start,U=u.end,G=u.size;if(u.next(),G>=0&&z4)for(var oe=u.pos-(G-4);u.pos>oe;)B=v(D,E,B);E[--B]=X,E[--B]=U-D,E[--B]=j-D,E[--B]=z}else-3==G?h=z:-4==G&&(f=z);return B}for(var y=[],b=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,b,-1);var C=null!==(n=t.length)&&void 0!==n?n:y.length?b[0]+y[0].length:0;return new Ja(d[t.topID],y.reverse(),b.reverse(),C)}(n)}}]),t}();Ja.empty=new Ja(mu.none,[],[],0);var knt=function(){function t(n,e){Oe(this,t),this.buffer=n,this.index=e}return Ie(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),zb=function(){function t(n,e,i){Oe(this,t),this.buffer=n,this.length=e,this.set=i}return Ie(t,[{key:"type",get:function(){return mu.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function lfe(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function t1(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(afe(r,i,h,h+d.length))if(d instanceof zb){if(o&Xa.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new xR(new Dnt(s,d,n,h),null,f)}else if(o&Xa.IncludeAnonymous||!d.type.isAnonymous||wR(d)){var p=void 0;if(!(o&Xa.IgnoreMounts)&&d.props&&(p=d.prop(xr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&Xa.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&Xa.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&Xa.IgnoreOverlays)&&(i=this._tree.prop(xr.mounted))&&i.overlay){var o,s=n-this.from,a=He(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new mD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return lfe(this,n)}},{key:"getChild",value:function(n){var r=fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return pD(this,n)}}]),t}();function fD(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function pD(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var Dnt=Ie(function t(n,e,i,r){Oe(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),xR=function(){function t(n,e,i){Oe(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Ie(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&Xa.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new mD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new Ja(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return lfe(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return pD(this,n)}}]),t}(),mD=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Oe(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof Gb)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Ie(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof Gb?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&Xa.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&Xa.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&Xa.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&Xa.IncludeAnonymous||u instanceof zb||!u.type.isAnonymous||wR(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return pD(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function wR(t){return t.children.some(function(n){return n instanceof zb||!n.type.isAnonymous||wR(n)})}var cfe=new WeakMap;function gD(t,n){if(!t.isAnonymous||n instanceof zb||n.type!=t)return 1;var e=cfe.get(n);if(null==e){e=1;var i,r=He(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof Ja)){e=1;break}e+=gD(t,o)}}catch(s){r.e(s)}finally{r.f()}cfe.set(n,e)}return e}function CR(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;B+=z}if(C==D+1){if(B>d){var j=m[D];p(j.children,j.positions,0,j.children.length,g[D]+b);continue}h.push(m[D])}else h.push(CR(t,m,g,D,C,E,g[C-1]+m[C-1].length-E,null,l));f.push(E+b-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var vD=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Oe(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Ie(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=He(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:dfe.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),Mnt=0,dfe=function(){function t(){Oe(this,t),this.instances=[],this.id=Mnt++}return Ie(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,b){return y==v[b]});var g,v});if(i)return i;var r,o=[],s=new Np(o,n,e),a=He(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=hfe(e),u=He(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=He(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function hfe(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new Ont(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return pfe.add(n)}var pfe=new xr,Ont=function(){function t(n,e,i,r){Oe(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Ie(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new Fnt(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var SR,Fnt=function(){function t(n,e,i){Oe(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Ie(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function(B){return!B.scope||B.scope(s)}));for(var c=r,u=s.prop(pfe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=Int(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(xr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function(B){return!B.scope||B.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var b=v=C)&&n.nextSibling()););if(!b||C>i)break;(y=b.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,b.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),Dn=Np.define,yD=Dn(),Fp=Dn(),gfe=Dn(Fp),vfe=Dn(Fp),Pp=Dn(),_D=Dn(Pp),kR=Dn(Pp),vh=Dn(),fg=Dn(vh),yh=Dn(),_h=Dn(),DR=Dn(),Wb=Dn(DR),bD=Dn(),gn={comment:yD,lineComment:Dn(yD),blockComment:Dn(yD),docComment:Dn(yD),name:Fp,variableName:Dn(Fp),typeName:gfe,tagName:Dn(gfe),propertyName:vfe,attributeName:Dn(vfe),className:Dn(Fp),labelName:Dn(Fp),namespace:Dn(Fp),macroName:Dn(Fp),literal:Pp,string:_D,docString:Dn(_D),character:Dn(_D),attributeValue:Dn(_D),number:kR,integer:Dn(kR),float:Dn(kR),bool:Dn(Pp),regexp:Dn(Pp),escape:Dn(Pp),color:Dn(Pp),url:Dn(Pp),keyword:yh,self:Dn(yh),null:Dn(yh),atom:Dn(yh),unit:Dn(yh),modifier:Dn(yh),operatorKeyword:Dn(yh),controlKeyword:Dn(yh),definitionKeyword:Dn(yh),moduleKeyword:Dn(yh),operator:_h,derefOperator:Dn(_h),arithmeticOperator:Dn(_h),logicOperator:Dn(_h),bitwiseOperator:Dn(_h),compareOperator:Dn(_h),updateOperator:Dn(_h),definitionOperator:Dn(_h),typeOperator:Dn(_h),controlOperator:Dn(_h),punctuation:DR,separator:Dn(DR),bracket:Wb,angleBracket:Dn(Wb),squareBracket:Dn(Wb),paren:Dn(Wb),brace:Dn(Wb),content:vh,heading:fg,heading1:Dn(fg),heading2:Dn(fg),heading3:Dn(fg),heading4:Dn(fg),heading5:Dn(fg),heading6:Dn(fg),contentSeparator:Dn(vh),list:Dn(vh),quote:Dn(vh),emphasis:Dn(vh),strong:Dn(vh),link:Dn(vh),monospace:Dn(vh),strikethrough:Dn(vh),inserted:Dn(),deleted:Dn(),changed:Dn(),invalid:Dn(),meta:bD,documentMeta:Dn(bD),annotation:Dn(bD),processingInstruction:Dn(bD),definition:Np.defineModifier(),constant:Np.defineModifier(),function:Np.defineModifier(),standard:Np.defineModifier(),local:Np.defineModifier(),special:Np.defineModifier()};mfe([{tag:gn.link,class:"tok-link"},{tag:gn.heading,class:"tok-heading"},{tag:gn.emphasis,class:"tok-emphasis"},{tag:gn.strong,class:"tok-strong"},{tag:gn.keyword,class:"tok-keyword"},{tag:gn.atom,class:"tok-atom"},{tag:gn.bool,class:"tok-bool"},{tag:gn.url,class:"tok-url"},{tag:gn.labelName,class:"tok-labelName"},{tag:gn.inserted,class:"tok-inserted"},{tag:gn.deleted,class:"tok-deleted"},{tag:gn.literal,class:"tok-literal"},{tag:gn.string,class:"tok-string"},{tag:gn.number,class:"tok-number"},{tag:[gn.regexp,gn.escape,gn.special(gn.string)],class:"tok-string2"},{tag:gn.variableName,class:"tok-variableName"},{tag:gn.local(gn.variableName),class:"tok-variableName tok-local"},{tag:gn.definition(gn.variableName),class:"tok-variableName tok-definition"},{tag:gn.special(gn.variableName),class:"tok-variableName2"},{tag:gn.definition(gn.propertyName),class:"tok-propertyName tok-definition"},{tag:gn.typeName,class:"tok-typeName"},{tag:gn.namespace,class:"tok-namespace"},{tag:gn.className,class:"tok-className"},{tag:gn.macroName,class:"tok-macroName"},{tag:gn.propertyName,class:"tok-propertyName"},{tag:gn.operator,class:"tok-operator"},{tag:gn.comment,class:"tok-comment"},{tag:gn.meta,class:"tok-meta"},{tag:gn.invalid,class:"tok-invalid"},{tag:gn.punctuation,class:"tok-punctuation"}]);var n1=new xr,Pnt=new xr,hd=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Oe(this,t),this.data=n,this.name=r,Fo.prototype.hasOwnProperty("tree")||Object.defineProperty(Fo.prototype,"tree",{get:function(){return gl(this)}}),this.parser=e,this.extension=[Rp.of(this),Fo.languageData.of(function(o,s,a){var l=yfe(o,s,a),c=l.type.prop(n1);if(!c)return[];var u=o.facet(c),d=l.type.prop(Pnt);if(d){var h,f=l.resolve(s-l.from,a),p=He(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Ie(t,[{key:"isActiveAt",value:function(n,e){return yfe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(n1)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(Rp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(n1)!=e.data){var l=s.prop(xr.mounted);if(l){if(l.tree.prop(n1)==e.data){if(l.overlay){var c,u=He(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),qb=null,Lnt=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;Oe(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Ie(t,[{key:"startParse",value:function(){return this.parser.startParse(new jnt(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ja.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(vD.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=qb;qb=this;try{return n()}finally{qb=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=_fe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=vD.applyChanges(i,l),r=Ja.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=He(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=_fe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],Ja.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){Dt(r,ufe);var i=Tt(r);function r(){return Oe(this,r),i.apply(this,arguments)}return Ie(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=qb;if(u){var d,h=He(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new Ja(mu.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return qb}}]),t}();function _fe(t,n,e){return vD.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var TR=function(){function t(n){Oe(this,t),this.context=n,this.tree=n.tree}return Ie(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=Lnt.create(n.facet(Rp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();hd.state=qa.define({create:TR.init,update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(hd.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(Rp)!=n.state.facet(Rp)?TR.init(n.state):t.apply(n)}});var bfe=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(bfe=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var ER=typeof navigator<"u"&&null!==(SR=navigator.scheduling)&&void 0!==SR&&SR.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,Bnt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Ie(t,[{key:"update",value:function(n){var e=this.view.state.field(hd.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(hd.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=bfe(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return ER&&ER()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:hd.setState.of(new TR(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return jc(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),Rp=oi.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[hd.state,Bnt,Qn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),$nt=Ie(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Oe(this,t),this.language=n,this.support=e,this.extension=[n,e]}),Vnt=oi.define(),xD=oi.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function i1(t){var n=t.facet(xD);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function Yb(t,n){var e="",i=t.tabSize,r=t.facet(xD)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};Oe(this,t),this.state=n,this.options=e,this.unit=i1(n)}return Ie(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return Ab(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),xfe=new xr;function Hnt(t){var n=t.type.prop(xfe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(xr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),b=v.lastChild;if(!y)return null;for(var C=g.options.simulateBreak,D=g.state.doc.lineAt(y.from),E=null==C||C<=D.from?D.to:Math.min(D.to,C),B=y.to;;){var z=v.childAfter(B);if(!z||z==b)return null;if(!z.type.isSkipped)return z.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var Wnt=oi.define(),Sfe=new xr;function CD(t,n,e){var i,r=He(t.facet(Wnt));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=gl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function kfe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var SD=gr.define({map:kfe}),Xb=gr.define({map:kfe});function Dfe(t){var n,e=[],i=He(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var pg=qa.define({create:function(){return Ci.none},update:function(t,n){t=t.map(n.changes);var e,i=He(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(SD)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[Ofe.range(a.value.from,a.value.to)]}):a.is(Xb)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Qn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function Tfe(t,n){return t.field(pg,!1)?n:n.concat(gr.appendConfig.of(Mfe()))}function Efe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Qn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var qnt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=He(Dfe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=CD(t.state,i.from,i.to);if(r)return t.dispatch({effects:Tfe(t.state,[SD.of(r),Efe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(pg,!1))return!1;var n,e=[],i=He(Dfe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=kD(t.state,r.from,r.to);o&&e.push(Xb.of(o),Efe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},Xnt),t),e=new MR(n,!0),i=new MR(n,!1),r=Ia.fromClass(function(){function s(a){Oe(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Ie(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(Rp)!=a.state.facet(Rp)||a.startState.field(pg,!1)!=a.state.field(pg,!1)||gl(a.startState)!=gl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new ug,u=He(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=kD(a.state,d.from,d.to)?i:CD(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,Zhe({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||qo.empty},initialSpacer:function(){return new MR(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=kD(s.state,a.from,a.to);if(c)return s.dispatch({effects:Xb.of(c)}),!0;var u=CD(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:SD.of(u)}),!0)}})}),Mfe()]}var Knt=Qn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),OR=function(){function t(n,e){var i;function r(a){var l=Ap.newName();return(i||(i=Object.create(null)))["."+l]=a,l}Oe(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof hd?function(a){return a.prop(n1)==s.data}:s?function(a){return a==s}:void 0,this.style=mfe(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new Ap(i):null,this.themeType=e.themeType}return Ie(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),IR=oi.define(),Ife=oi.define({combine:function(t){return t.length?[t[0]]:null}});function NR(t){var n=t.facet(IR);return n.length?n:t.facet(Ife)}function Nfe(t,n){var e,i=[Znt];return t instanceof OR&&(t.module&&i.push(Qn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?Ife.of(t):e?IR.computeN([Qn.darkTheme],function(r){return r.facet(Qn.darkTheme)==("dark"==e)?[t]:[]}):IR.of(t)),i}var Qnt=function(){function t(n){Oe(this,t),this.markCache=Object.create(null),this.tree=gl(n.state),this.decorations=this.buildDeco(n,NR(n.state))}return Ie(t,[{key:"update",value:function(n){var e=gl(n.state),i=NR(n.state),r=i!=NR(n.startState);e.length0&&bh(n.state,s.head-1,1,r)||r.afterCursor&&(bh(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),sit]}var lit=new xr;function FR(t,n,e){var i=t.prop(n<0?xr.openedBy:xr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function PR(t){var n=t.type.prop(lit);return n?n(t.node):t}function bh(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=gl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=FR(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return cit(0,0,e,l,u,c,o)}}return function uit(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function cit(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(Rfe.push(t),console.warn(n))}function mit(t,n){var e,i=null,r=He(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||gn[o];s?"function"==typeof s?i?i=s(i):jR(o,"Modifier ".concat(o," used at start of tag")):i?jR(o,"Tag ".concat(o," used as modifier")):i=s:jR(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=mu.define({id:Pfe.length,name:a,props:[ffe(ec({},a,i))]});return Pfe.push(l),l.id}function LR(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var git=LR(function bit(t,n){var e,r=[],o=-1,s=He(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=BR(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var oe,P=[],W=He(r);try{for(W.s();!(oe=W.n()).done;){var J=oe.value,H=J.line,pe=J.comment;if(pe>=0){var N=H.from+pe,F=N+J.token.length;" "==H.text[F-H.from]&&F++,P.push({from:N,to:F})}}}catch(q){W.e(q)}finally{W.f()}return{changes:P}}return null},0),vit=LR(Bfe,0),yit=LR(function(t,n){return Bfe(t,n,function(e){var i,r=[],o=He(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function BR(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function Bfe(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return BR(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function _it(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Qn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?HR:"historyRedo"==n.inputType?TD:null;return!!i&&(n.preventDefault(),i(e))}})]}function DD(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(VR,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var HR=DD(0,!1),TD=DD(1,!1),Sit=DD(0,!0),kit=DD(1,!0);function Vfe(t){return function(n){var e=n.field(VR,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var Dit=Vfe(0),Tit=Vfe(1),yf=function(){function t(n,e,i,r,o){Oe(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Ie(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&cd.fromJSON(n.changes),[],n.mapped&&z0.fromJSON(n.mapped),n.startSelection&&rn.fromJSON(n.startSelection),n.selectionsAfter.map(rn.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=gu,o=He(n.startState.facet(wit));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,gu)}},{key:"selection",value:function(n){return new t(void 0,gu,void 0,void 0,n)}}]),t}();function ED(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Hfe(t,n){return t.length?n.length?t.concat(n):t:n}var gu=[];function Ufe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),ED(t,t.length-1,1e9,e.setSelAfter(i)))}return[yf.selection([n])]}function Eit(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function UR(t,n){if(!t.length)return t;for(var e=t.length,i=gu;e;){var r=Ait(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[yf.selection(i)]:gu}function Ait(t,n,e){var i=Hfe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):gu,e);if(!t.changes)return yf.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new yf(r,gr.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var Mit=/^(input\.type|delete)($|\.)/,Jb=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;Oe(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Ie(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||Mit.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?ED(s,s.length-1,r.minDepth,new yf(n.changes.compose(a.changes),Hfe(n.effects,a.effects),a.mapped,a.startSelection,gu)):ED(s,s.length,r.minDepth,n),gu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:gu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function MD(t,n,e){for(var i=gl(t).resolveInner(n.head),r=e?xr.closedBy:xr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;Iit(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?bh(t,i.from,1):bh(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,rn.cursor(l,e?-1:1)}function Yfe(t,n){return fd(t,function(e){if(!e.empty)return AD(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var Xfe=function(t){return Yfe(t,!1)},Jfe=function(t){return Yfe(t,!0)};function Kfe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=ID(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=ID(t,s,!1),a=ID(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:rn.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Qn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ID(t,n,e){if(t instanceof Qn){var i,r=He(t.state.facet(Qn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var ppe=function(t,n){return OD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function _pe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=He(ND(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=He(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(rn.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=He(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(rn.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:rn.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function bpe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=He(ND(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var Nit=xpe(!1),Fit=xpe(!0);function xpe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=gl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(xr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new wD(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=AR(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:rn.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var wpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(WR(n,function(i,r){r.push({from:i.from,insert:n.facet(xD)})}),{userEvent:"input.indent"})),!0)},Cpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(WR(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=Ab(o,n.tabSize),a=0,l=Yb(n,Math.max(0,s-i1(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:ype}].concat(Pit.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),jit=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return fd(t,function(n){return MD(t.state,n,!vl(t))})},shift:function(t){return vu(t,function(n){return MD(t.state,n,!vl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return fd(t,function(n){return MD(t.state,n,vl(t))})},shift:function(t){return vu(t,function(n){return MD(t.state,n,vl(t))})}},{key:"Alt-ArrowUp",run:function(t){return _pe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return bpe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return _pe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return bpe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=rn.create([i.main]):i.main.empty||(r=rn.create([rn.cursor(i.main.head)])),!!r&&(e(xh(n,r)),!0)}},{key:"Mod-Enter",run:Fit},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=ND(n).map(function(r){return rn.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:rn.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=r1(n.selection,function(r){for(var o,s=gl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return rn.range(s.to,s.from)});return e(xh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:Cpe},{key:"Mod-]",run:wpe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new wD(n,{overrideIndentation:function(s){return i[s]??-1}}),o=WR(n,function(s,a,l){var c=AR(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=Yb(n,c);(u!=d||l.from0?o--:s0&&bh(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;Oe(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(kpe(a))}:kpe,this.query=this.normalize(e)}return Ie(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Wa(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=g4(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Fc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(Oe(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=Dpe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new Ape(n,e,i,r,o);this.re=new RegExp(e,qR+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=FD(n,r),this.getLine(this.curLineStart)}return Ie(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=FD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return YR.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=FD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Epe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function FD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function XR(t){var n=Po("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Jn(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:PD.of(!1),selection:rn.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Po("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:PD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Po("label",t.state.phrase("Go to line"),": ",n)," ",Po("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(Tpe.prototype[Symbol.iterator]=Ape.prototype[Symbol.iterator]=function(){return this});var PD=gr.define(),Mpe=qa.define({create:function(){return!0},update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(PD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Hb.from(t,function(n){return n?XR:null})}}),Bit=Qn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),$it={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ope=oi.define({combine:function(t){return pu(t,$it,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Vit=Ci.mark({class:"cm-selectionMatch"}),Hit=Ci.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ipe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==ls.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==ls.Word)}var Uit=Ia.fromClass(function(){function t(n){Oe(this,t),this.decorations=this.getDeco(n)}return Ie(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(Ope),i=n.state,r=i.selection;if(r.ranges.length>1)return Ci.none;var o,y,b,C,D,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return Ci.none;var l=i.wordAt(s.head);if(!l)return Ci.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return Ci.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!Ipe(a=i.charCategorizer(s.head),i,s.from,s.to)||(D=s.to,(y=a)((b=i).sliceDoc(C=s.from,C+1))!=ls.Word||y(b.sliceDoc(D-1,D))!=ls.Word))return Ci.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return Ci.none}var u,d=[],h=He(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new o1(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||Ipe(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Hit.range(g,v)):(g>=s.to||v<=s.from)&&d.push(Vit.range(g,v)),d.length>e.maxMatches))return Ci.none}}catch(y){h.e(y)}finally{h.f()}return Ci.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),zit=Qn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),RD=oi.define({combine:function(t){return pu(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new ert(n)}})}});function Git(t){return t?[RD.of(t),ij]:ij}var Npe=function(){function t(n){Oe(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,qR),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Ie(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new qit(this):new Wit(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Fo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?a1(this,r,e,i):s1(this,r,e,i)}}]),t}(),Fpe=Ie(function t(n){Oe(this,t),this.spec=n});function s1(t,n,e,i){return new o1(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=s1(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function a1(t,n,e,i){return new Tpe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(jD(a.input,a.index))!=ls.Word||r(LD(a.input,a.index))!=ls.Word)&&(r(LD(a.input,a.index+a[0].length))!=ls.Word||r(jD(a.input,a.index+a[0].length))!=ls.Word)}):void 0},e,i);var r}function jD(t,n){return t.slice(jl(t,n,!1),n)}function LD(t,n){return t.slice(n,jl(t,n))}var qit=function(t){Dt(e,Fpe);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e,[{key:"nextMatch",value:function(i,r,o){var s=a1(this.spec,i,o,i.doc.length).next();return s.done&&(s=a1(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=a1(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=a1(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),Kb=gr.define(),JR=gr.define(),Lp=qa.define({create:function(t){return new KR(ZR(t).create(),null)},update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(Kb)?t=new KR(r.value.create(),t.panel):r.is(JR)&&(t=new KR(t.query,r.value?QR:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Hb.from(t,function(n){return n.panel})}}),KR=Ie(function t(n,e){Oe(this,t),this.query=n,this.panel=e}),Yit=Ci.mark({class:"cm-searchMatch"}),Xit=Ci.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Jit=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Lp))}return Ie(t,[{key:"update",value:function(n){var e=n.state.field(Lp);(e!=n.startState.field(Lp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return Ci.none;for(var i=this.view,r=new ug,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Xit:Yit)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function Qb(t){return function(n){var e=n.state.field(Lp,!1);return e&&e.query.spec.valid?t(n,e):ej(n)}}var BD=Qb(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:nj(t,r),userEvent:"select.search"}),!0)}),$D=Qb(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:nj(t,o),userEvent:"select.search"}),!0)}),Kit=Qb(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:rn.create(e.map(function(i){return rn.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),Ppe=Qb(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Qn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(nj(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),Qit=Qb(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Qn.announce.of(r),userEvent:"input.replace.all"}),!0});function QR(t){return t.state.facet(RD).createPanel(t)}function ZR(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(RD);return new Npe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var ej=function(t){var n=t.state.field(Lp,!1);if(n&&n.panel){var e=Vb(t,QR);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=ZR(t.state,n.query.spec);r.valid&&t.dispatch({effects:Kb.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[JR.of(!0),n?Kb.of(ZR(t.state,n.query.spec)):gr.appendConfig.of(ij)]});return!0},tj=function(t){var n=t.state.field(Lp,!1);if(!n||!n.panel)return!1;var e=Vb(t,QR);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:JR.of(!1)}),!0},Zit=[{key:"Mod-f",run:ej,scope:"editor search-panel"},{key:"F3",run:BD,shift:$D,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:BD,shift:$D,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:tj,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new o1(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(rn.range(c.value.from,c.value.to))}return e(n.update({selection:rn.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=Vb(t,XR);if(!n){var e=[PD.of(!0)];null==t.state.field(Mpe,!1)&&e.push(gr.appendConfig.of([Mpe,Bit])),t.dispatch({effects:e}),n=Vb(t,XR)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=rn.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||rn.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(C){return C.from==y.value.from}))return m=y,p=v,"continue";if(h){var b=s.wordAt(y.value.from);if(!b||b.from!=y.value.from||b.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new o1(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new o1(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===wn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(rn.range(o.from,o.to),!1),effects:Qn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],ert=function(){function t(n){var e=this;Oe(this,t),this.view=n;var i=this.query=n.state.field(Lp).query.spec;function r(o,s,a){return Po("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Po("input",{value:i.search,placeholder:Lc(n,"Find"),"aria-label":Lc(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Po("input",{value:i.replace,placeholder:Lc(n,"Replace"),"aria-label":Lc(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Po("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Po("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Po("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Po("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return BD(n)},[Lc(n,"next")]),r("prev",function(){return $D(n)},[Lc(n,"previous")]),r("select",function(){return Kit(n)},[Lc(n,"all")]),Po("label",null,[this.caseField,Lc(n,"match case")]),Po("label",null,[this.reField,Lc(n,"regexp")]),Po("label",null,[this.wordField,Lc(n,"by word")])].concat(ui(n.state.readOnly?[]:[Po("br"),this.replaceField,r("replace",function(){return Ppe(n)},[Lc(n,"replace")]),r("replaceAll",function(){return Qit(n)},[Lc(n,"replace all")])]),[Po("button",{name:"close",onclick:function(){return tj(n)},"aria-label":Lc(n,"close"),type:"button"},["\xd7"])]))}return Ie(t,[{key:"commit",value:function(){var n=new Npe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:Kb.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return Nhe(Ihe(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?$D:BD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),Ppe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=He(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=He(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(Kb)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(RD).top}}]),t}();function Lc(t,n){return t.state.phrase(n)}var VD=/[\s\.,:;?!]/;function nj(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!VD.test(l[c+1])&&VD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!VD.test(l[u-1])&&VD.test(l[u])){l=l.slice(0,u);break}return Qn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var trt=Qn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ij=[Lp,G0.lowest(Jit),trt],Rpe=function(){function t(n,e,i){Oe(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Ie(t,[{key:"tokenBefore",value:function(n){for(var e=gl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(Bpe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function jpe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var Lpe=Ie(function t(n,e,i){Oe(this,t),this.completion=n,this.source=e,this.match=i});function Bp(t){return t.selection.main.head}function Bpe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function $pe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:rn.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:rn.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Vpe=new WeakMap;function irt(t){if(!Array.isArray(t))return t;var n=Vpe.get(t);return n||Vpe.set(t,n=function nrt(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Jn(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=He(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&j<=57||j>=97&&j<=122?2:j>=65&&j<=90?1:0:(U=g4(j))!=U.toLowerCase()?1:U!=U.toUpperCase()?2:0;(!E||1==G&&C||0==z&&0!=G)&&(e[m]==j||i[m]==j&&(g=!0)?s[m++]=E:s.length&&(D=!1)),z=G,E+=Fc(j)}return m==c&&0==s[0]&&D?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,b]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,b]:m==c?this.result((g?-200:0)-100-700+(D?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=He(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Fc(Wa(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),wh=oi.define({combine:function(t){return pu(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Hpe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var ort=function(){function t(n,e){var i=this;Oe(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(wh);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,ui(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var C=p.appendChild(document.createElement("span"));C.appendChild(document.createTextNode(m.slice(y,b))),C.className="cm-completionMatchedText",g=b}return g=this.range.to)&&(this.range=Hpe(i.options.length,i.selected,this.view.state.facet(wh).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return jc(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,zpe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=He(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,b=v.result.getMatch,C=He(v.result.options);try{for(C.s();!(y=C.n()).done;){var D=y.value,E=[1e9-m++];if(b){var B,z=He(b(D));try{for(z.s();!(B=z.n()).done;)E.push(B.value)}catch(F){z.e(F)}finally{z.f()}}p.push(new Lpe(D,v,E))}}catch(F){C.e(F)}finally{C.f()}}else{var U,G=new rrt(h.sliceDoc(v.from,v.to)),X=void 0,oe=He(v.result.options);try{for(oe.s();!(U=oe.n()).done;){var P=U.value;(X=G.match(P.label))&&(null!=P.boost&&(X[0]+=P.boost),p.push(new Lpe(P,v,X)))}}catch(F){oe.e(F)}finally{oe.f()}}}}catch(F){g.e(F)}finally{g.f()}var W,J=[],H=null,pe=h.facet(wh).compareCompletions,A=He(p.sort(function(F,q){return q.match[0]-F.match[0]||pe(F.completion,q.completion)}));try{for(A.s();!(W=A.n()).done;){var N=W.value;!H||H.label!=N.completion.label||H.detail!=N.completion.detail||null!=H.type&&null!=N.completion.type&&H.type!=N.completion.type||H.apply!=N.completion.apply?J.push(N):Upe(N.completion)>Upe(H)&&(J[J.length-1]=N),H=N.completion}}catch(F){A.e(F)}finally{A.f()}return J}(n,e);if(!s.length)return null;var a,l=e.facet(wh).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var crt=[];function rj(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var mg=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;Oe(this,t),this.source=n,this.state=e,this.explicitPos=i}return Ie(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=rj(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=He(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(oj))r=new t(r.source,1,a.value?Bp(n.state):-1);else if(a.is(HD))r=new t(r.source,0);else if(a.is(Gpe)){var l,c=He(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(Bp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),urt=function(t){Dt(e,mg);var n=Tt(e);function e(i,r,o,s,a){var l;return Oe(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Ie(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=Bp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&Bp(i.startState)==this.from)return new mg(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):Bpe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new Rpe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:Bp(i.state)):new mg(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new mg(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),oj=gr.define(),HD=gr.define(),Gpe=gr.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Wpe=gr.define(),yu=qa.define({create:function(){return art.start()},update:function(t,n){return t.update(n)},provide:function(t){return[lD.from(t,function(n){return n.tooltip}),Qn.contentAttributes.from(t,function(n){return n.attrs})]}});function UD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(yu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function hnt(t,n){var e=t.plugin(Yhe);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Wpe.of(a)}),!0}}var drt=Ie(function t(n,e){Oe(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),hrt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=He(n.state.field(yu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Ie(t,[{key:"update",value:function(n){var e=this,i=n.state.field(yu);if(n.selectionSet||n.docChanged||n.startState.field(yu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!rj(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=He(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){jc(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,ui(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=He(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==rj(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=He(this.view.state.field(yu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=Bp(i),o=new Rpe(i,r,n.explicitPos==r),s=new drt(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:HD.of(null)}),jc(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(wh),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new urt(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:Bp(l.updates.length?l.updates[0].startState:e.view.state)),d=He(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(yu).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new mg(l.active.source,0),g=He(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),zD={brackets:["(","[","{","'",'"'],before:")]}:;>"},gg=gr.define({map:function(t,n){return n.mapPos(t,-1,Ll.TrackAfter)??void 0}}),sj=gr.define({map:function(t,n){return n.mapPos(t)}}),aj=new(function(t){Dt(e,cg);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e)}());aj.startSide=1,aj.endSide=-1;var qpe=qa.define({create:function(){return qo.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=qo.empty)}t=t.map(n.changes);var r,o=He(n.effects);try{var s=function(){var a=r.value;a.is(gg)?t=t.update({add:[aj.range(a.value,a.value+1)]}):a.is(sj)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ype(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return g4(t<128?t:t+1)}function Xpe(t,n){return t.languageDataAt("closeBrackets",n)[0]||zD}var prt="object"==(typeof navigator>"u"?"undefined":wn(navigator))&&/Android\b/.test(navigator.userAgent),mrt=Qn.inputHandler.of(function(t,n,e,i){if((prt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Fc(Wa(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=Xpe(s,s.selection.main.head),u=c.brackets||zD.brackets,d=He(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Ype(Wa(h,0));if(a==h)return f==h?_rt(s,h,u.indexOf(h+h+h)>-1):vrt(s,h,f,c.before||zD.before);if(a==f&&Jpe(s,s.selection.main.from))return yrt(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),grt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Xpe(n,n.selection.main.head).brackets||zD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Fc(Wa(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=He(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&GD(n.doc,s.head)==Ype(Wa(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:rn.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Jpe(t,n){var e=!1;return t.field(qpe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function GD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Fc(Wa(e,0)))}function vrt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:gg.of(s.to+n.length),range:rn.range(s.anchor+n.length,s.head+n.length)};var a=GD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:gg.of(s.head+n.length),range:rn.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function yrt(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&GD(t.doc,o.head)==e?rn.cursor(o.head+e.length):i=o});return i?null:t.update({selection:rn.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return sj.of(o.from)})})}function _rt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:gg.of(o.to+n.length),range:rn.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=GD(t.doc,s);if(a==n){if(Kpe(t,s))return{changes:{insert:n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)};if(Jpe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:rn.cursor(s+n.length*(l?3:1)),effects:sj.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Kpe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=ls.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=ls.Word&&!function(u,d,h){for(var f=gl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Kpe(t,n){var e=gl(t).resolveInner(n+1);return e.parent&&e.from==n}function brt(){return[yu,wh.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),hrt,xrt,frt]}var Qpe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(yu,!1)&&(t.dispatch({effects:oj.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(yu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:HD.of(null)}),0))}},{key:"ArrowDown",run:UD(!0)},{key:"ArrowUp",run:UD(!1)},{key:"PageDown",run:UD(!0,"page")},{key:"PageUp",run:UD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(yu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||($pe(t,n.open.options[n.open.selected]),0))}}],xrt=G0.highest(oD.computeN([wh],function(t){return t.facet(wh).defaultKeymap?[Qpe]:[]})),wrt=Ie(function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.diagnostic=i}),Zb=function(){function t(n,e,i){Oe(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Ie(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(vg).markerFilter;o&&(r=o(r));var s=Ci.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?Ci.widget({widget:new Trt(a),diagnostic:a}).range(a.from):Ci.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,l1(s))}}]),t}();function l1(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new wrt(r,o,a.diagnostic),!1}),i}function Zpe(t,n){return!(!t.effects.some(function(e){return e.is(WD)})&&!t.changes.touchesRange(n.pos))}function eme(t,n){return t.field(Bc,!1)?n:n.concat(gr.appendConfig.of([Bc,Qn.decorations.compute([Bc],function(e){var i=e.field(Bc),r=i.selected;return r&&i.panel&&r.from!=r.to?Ci.set([Crt.range(r.from,r.to)]):Ci.none}),dnt(Srt,{hideOn:Zpe}),Ert]))}var WD=gr.define(),lj=gr.define(),tme=gr.define(),Bc=qa.define({create:function(){return new Zb(Ci.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=l1(e,t.selected.diagnostic,r)||l1(e,null,r)}t=new Zb(e,t.panel,i)}var o,s=He(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(WD)?t=Zb.init(a.value,t.panel,n.state):a.is(lj)?t=new Zb(t.diagnostics,a.value?ame.open:null,t.selected):a.is(tme)&&(t=new Zb(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[Hb.from(t,function(n){return n.panel}),Qn.decorations.from(t,function(n){return n.diagnostics})]}}),Crt=Ci.mark({class:"cm-lintRange cm-lintRange-active"});function Srt(t,n,e){var i=t.state.field(Bc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=rme(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=He(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=l1(this.view.state.field(Bc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:tme.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function qD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function cj(t){return qD(''),'width="6" height="3"')}var Ert=Qn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:cj("#d11")},".cm-lintRange-warning":{backgroundImage:cj("orange")},".cm-lintRange-info":{backgroundImage:cj("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Art=function(t){Dt(e,gh);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Ie(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(YD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:uj.of({pos:f.from,above:!1,create:function(){return{dom:nme(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var b=m.getBoundingClientRect();if(!(y.clientX>b.left-10&&y.clientXb.top-10&&y.clientY')},".cm-lint-marker-warning":{content:qD('')},".cm-lint-marker-error":{content:qD('')}}),YD=oi.define({combine:function(t){return pu(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Nrt(){return[YD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lme,Ort,Irt,cme]}var ume,Frt=function(){return[_nt(),xnt,Ytt(),Cit(),Jnt(),$tt(),[$b,ztt],Fo.allowMultipleSelections.of(!0),Fo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=He(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=AR(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=Yb(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),Nfe(eit,{fallback:!0}),ait(),[mrt,qpe],brt(),tnt(),rnt(),Ztt,(n=[zit,Uit],n),oD.of([].concat(grt,ui(jit),Zit,Oit,qnt,Qpe,krt))];var n}(),Prt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;Oe(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Ie(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Rrt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new dme(r,r.start):null,0,null)}}]),t}(),dme=Ie(function t(n,e){Oe(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(ume||(ume={}));var Rrt=function(){function t(n){Oe(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Ie(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),jrt=function(){function t(n,e,i){Oe(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Ie(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),XD=Ie(function t(){Oe(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),hme=new XD,Lrt=function(){function t(n,e){Oe(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=hme,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Ie(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=hme,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=He(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),JD=function(){function t(n,e){Oe(this,t),this.data=n,this.id=e}return Ie(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function KD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}JD.prototype.contextual=JD.prototype.fallback=JD.prototype.extend=!1;var fme,pd=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),dj=null;function pme(t,n,e){var i=t.cursor(Xa.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(fme||(fme={}));var mme,Brt=function(){function t(n,e){Oe(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Ie(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?pme(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?pme(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof Ja){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),$rt=function(){function t(n,e){Oe(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new XD})}return Ie(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new XD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new XD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Brt(i,n.nodeSet):null}return Ie(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,b=null,C=He(v);try{for(C.s();!(y=C.n()).done;){var D=y.value,E=D.p.stoppedAt;(D.pos==D.p.stream.end||null!=E&&D.pos>E)&&D.p.parser.stateFlag(D.state,2)&&(!b||b.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(xr.contextHash)||0)==l))return n.useNode(c,u),pd&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof Ja)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof Ja&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),pd&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(b):i.push(b)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return gme(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),pd&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(pd&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)pd&&(h=this.stackID(d)+" -> ");var p,m=He(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;pd&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),pd&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),gme(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],b=-v;b>0;b--)d(p[g++],m,y);g++}}}}catch(E){f.e(E)}finally{f.f()}}o.nodeSet=new Snt(s.map(function(E,B){return mu.define({name:B>=o.minRepeatTerm?void 0:E,id:B,props:c[B],top:l.indexOf(B)>-1,error:0==B,skipped:i.skippedNodes&&i.skippedNodes.indexOf(B)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,ui(i.propSources))),o.strict=!1,o.bufferLength=1024;var C=KD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var D=0;D2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=_f(this.data,o+2)}if(r==_f(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=_f(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=vme(this.data,this.tokenPrecTable,r);return o<0||vme(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=He(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&xme(t);return{c:function(){n=De("div"),r&&r.c(),e=rt(),o&&o.c(),i=rt(),s&&s.c(),R(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){$e(a,n,l),r&&r.m(n,null),me(n,e),o&&o.m(n,null),me(n,i),s&&s.m(n,null)},p:function(a,l){var c=Jn(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=_me(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=bme(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=xme(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:Bt,o:Bt,d:function(a){a&&Be(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Xrt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Jrt=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Xrt,Yrt,_s,{editorState:3},qrt),r}return Ie(e)}(),hj=OR.define([{tag:gn.propertyName,color:"var(--jse-key-color)"},{tag:gn.number,color:"var(--jse-value-color-number)"},{tag:gn.bool,color:"var(--jse-value-color-boolean)"},{tag:gn.string,color:"var(--jse-value-color-string)"},{tag:gn.keyword,color:"var(--jse-value-color-null)"}]),Krt=Nfe(hj),Qrt=hj.style;function fj(t){return t.doc.lineAt(t.selection.main.head)}function wme(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=wme(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=wme(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=fj(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=He(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,b=g.from;b<=y;){var C=f.doc.lineAt(b);p.has(C)||p.add(C),b=C.to+1}}catch(D){m.e(D)}finally{m.f()}return p}(this.view,n),o=new Zrt(r,n,this.unitWidth),s=n.facet(QD).hideFirstIndent,a=He(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=tot(c,this.unitWidth,s);i.add(l.from,l.from,Ci.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function iot(){return[QD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),eot,Ia.fromClass(not,{decorations:function(n){return n.decorations}})]}function rot(t){_i(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function pj(t){var n=t.slice();return n[93]=0===n[10].length,n}function Cme(t){var n,e;return n=new Tet({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function oot(t){var n;return{c:function(){(n=De("div")).innerHTML='
    \n
    loading...
    ',R(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function sot(t){var n,e,i,r,o,s=t[92]&&Sme(t),a=!t[92]&&kme(t);return{c:function(){n=De("div"),e=rt(),s&&s.c(),i=rt(),a&&a.c(),r=Dr(),R(n,"class","jse-contents svelte-1yqirn0"),Nt(n,"jse-hidden",t[92])},m:function(l,c){$e(l,n,c),t[50](n),$e(l,e,c),s&&s.m(l,c),$e(l,i,c),a&&a.m(l,c),$e(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&Nt(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&Q(s,1)):((s=Sme(l)).c(),Q(s,1),s.m(i.parentNode,i)):s&&(Ht(),fe(s,1,1,function(){s=null}),Ut()),l[92]?a&&(Ht(),fe(a,1,1,function(){a=null}),Ut()):a?(a.p(l,c),1152&c[0]&&Q(a,1)):((a=kme(l)).c(),Q(a,1),a.m(r.parentNode,r))},i:function(l){o||(Q(s),Q(a),o=!0)},o:function(l){fe(s),fe(a),o=!1},d:function(l){l&&Be(n),t[50](null),l&&Be(e),s&&s.d(l),l&&Be(i),a&&a.d(l),l&&Be(r)}}}function Sme(t){var n,e,i,r,o,s=ah(t[10]||"",2e4)+"";return n=new ad({props:{icon:rg,type:"error",message:"The JSON document is larger than ".concat(Rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Rk(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){gt(n.$$.fragment),e=rt(),i=De("div"),r=sn(s),R(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){pt(n,a,l),$e(a,e,l),$e(a,i,l),me(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(Rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Rk(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=ah(a[10]||"",2e4)+"")&&ti(r,s)},i:function(a){o||(Q(n.$$.fragment,a),o=!0)},o:function(a){fe(n.$$.fragment,a),o=!1},d:function(a){mt(n,a),a&&Be(e),a&&Be(i)}}}function kme(t){var n,e,i,r,o,s=!t[13]&&t[8]&&Dse(t[10]),a=t[2]&&Dme(t),l=t[13]&&Tme(t),c=s&&Eme(t);return r=new ZP({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=rt(),l&&l.c(),e=rt(),c&&c.c(),i=rt(),gt(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),$e(u,n,d),l&&l.m(u,d),$e(u,e,d),c&&c.m(u,d),$e(u,i,d),pt(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&Q(a,1)):((a=Dme(u)).c(),Q(a,1),a.m(n.parentNode,n)):a&&(Ht(),fe(a,1,1,function(){a=null}),Ut()),u[13]?l?(l.p(u,d),8192&d[0]&&Q(l,1)):((l=Tme(u)).c(),Q(l,1),l.m(e.parentNode,e)):l&&(Ht(),fe(l,1,1,function(){l=null}),Ut()),9472&d[0]&&(s=!u[13]&&u[8]&&Dse(u[10])),s?c?(c.p(u,d),9472&d[0]&&Q(c,1)):((c=Eme(u)).c(),Q(c,1),c.m(i.parentNode,i)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(Q(a),Q(l),Q(c),Q(r.$$.fragment,u),o=!0)},o:function(u){fe(a),fe(l),fe(c),fe(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&Be(n),l&&l.d(u),u&&Be(e),c&&c.d(u),u&&Be(i),mt(r,u)}}}function Dme(t){var n,e;return n=new Jrt({props:{editorState:t[6]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Tme(t){var n,e;return n=new ad({props:{type:"error",icon:rg,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Eme(t){var n,e;return n=new ad({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:s4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:P0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:s4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:P0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function aot(t){var n,e,i,r,o,s=t[1]&&Cme(pj(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[sot,oot][i](c(t,i)),{c:function(){n=De("div"),s&&s.c(),e=rt(),r.c(),R(n,"class","jse-text-mode svelte-1yqirn0"),Nt(n,"no-main-menu",!t[1])},m:function(u,d){$e(u,n,d),s&&s.m(n,null),me(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(pj(u),d),2&d[0]&&Q(s,1)):((s=Cme(pj(u))).c(),Q(s,1),s.m(n,e)):s&&(Ht(),fe(s,1,1,function(){s=null}),Ut()),r.p(c(u,i),d),(!o||2&d[0])&&Nt(n,"no-main-menu",!u[1])},i:function(u){o||(Q(s),Q(r),o=!0)},o:function(u){fe(s),fe(r),o=!1},d:function(u){u&&Be(n),s&&s.d(),l[i].d(),t[52](null)}}}function Ame(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function lot(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,b=n.onChange,C=n.onChangeMode,D=n.onError,E=n.onFocus,B=n.onBlur,z=n.onRenderMenu,j=n.onSortModal,U=n.onTransformModal,G=Ma("jsoneditor:TextMode"),X={key:"Mod-i",run:le,shift:Re,preventDefault:!0},oe=typeof window>"u";G("isSSR:",oe);var P=!1,W=!0,J=[],H=new Tp,pe=new Tp,A=new Tp,N=new Tp,F=new Tp,q=new Tp,V=h,ce=ck(V,f,g),ve=m;eu(or(_n().mark(function vt(){return _n().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!oe){jn.next=2;break}return jn.abrupt("return");case 2:try{s=Xn({target:o,initialText:Ro(ce,P)?"":i.escapeValue(ce),readOnly:c,indentation:f})}catch(di){console.error(di)}case 3:case"end":return jn.stop()}},vt)}))),qu(function(){s&&(G("Destroy CodeMirror editor"),s.destroy())});var je=!1,Te=!1,et=mp(),We=mp();function st(){s&&(G("focus"),s.focus())}var $=!1;function ae(vt){G("patch",vt);var jn=g.parse(ce),di=ed(jn,vt),ki=WZ(jn,vt);return vr({text:g.stringify(di,null,f)}),{json:di,previousJson:jn,undo:ki,redo:vt}}function le(){if(G("format"),c)return!1;try{var vt=g.parse(ce);return vr({text:g.stringify(vt,null,f)}),e(8,W=!0),!0}catch(jn){D(jn)}return!1}function Re(){if(G("compact"),c)return!1;try{var vt=g.parse(ce);return vr({text:g.stringify(vt)}),e(8,W=!1),!0}catch(jn){D(jn)}return!1}function Ze(){if(G("repair"),!c)try{vr({text:Kd(ce)}),e(49,Rn="valid"),e(13,kt=null)}catch(vt){D(vt)}}function Ve(vt){var jn=vt.id,di=vt.rootPath,ki=vt.onTransform,Nr=vt.onClose;try{var Jr=g.parse(ce);$=!0,U({id:jn||We,json:Jr,rootPath:di||[],onTransform:function(co){ki?ki({operations:co,json:Jr,transformedJson:ed(Jr,co)}):(G("onTransform",co),ae(co))},onClose:function(){$=!1,st(),Nr&&Nr()}})}catch(co){D(co)}}function Ct(vt,jn){G("setSelection",{anchor:vt,head:jn}),s&&s.dispatch(s.state.update({selection:{anchor:vt,head:jn},scrollIntoView:!0}))}function Ot(vt,jn){if(1===jn.state.selection.ranges.length){var di=jn.state.selection.ranges[0],ki=ce.slice(di.from,di.to);if("{"===ki||"["===ki){var Nr=uS.parse(ce),Jr=Object.keys(Nr.pointers).find(function(Ks){var Cr;return(null===(Cr=Nr.pointers[Ks].value)||void 0===Cr?void 0:Cr.pos)===di.from}),co=Nr.pointers[Jr];Jr&&co&&co.value&&co.valueEnd&&(G("pointer found, selecting inner contents of path:",Jr,co),Ct(co.value.pos+1,co.valueEnd.pos-1))}}}function yn(){return function(vt){return vg.of({source:vt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(pi,{delay:300})}function Xn(vt){var jn=vt.target,di=vt.initialText,ki=vt.readOnly,Nr=vt.indentation;G("Create CodeMirror editor",{readOnly:ki,indentation:Nr});var Jr=Fo.create({doc:di,extensions:[oD.of([Lit,X]),H.of(yn()),Nrt(),Frt,Krt,iot({hideFirstIndent:!0}),Qn.domEventHandlers({dblclick:Ot}),Qn.updateListener.of(function(co){e(6,l=co.state),co.docChanged&&Si()}),new $nt(Wrt),Git({top:!0}),A.of(Fo.readOnly.of(ki)),pe.of(Qn.editable.of(!ki)),F.of(Fo.tabSize.of(p)),N.of(fr(Nr)),q.of(Qn.theme({},{dark:on()})),Qn.lineWrapping]});return s=new Qn({state:Jr,parent:jn})}function on(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ri(vt){var jn=vt.path,di=vt.message,ki=function(Nr,Jr){try{var co=uS.parse(Nr),Ks=dn(Jr),Cr=co.pointers[Ks];if(Cr)return{path:Jr,line:Cr.key?Cr.key.line:Cr.value?Cr.value.line:0,column:Cr.key?Cr.key.column:Cr.value?Cr.value.column:0,from:Cr.key?Cr.key.pos:Cr.value?Cr.value.pos:0,to:Cr.keyEnd?Cr.keyEnd.pos:Cr.valueEnd?Cr.valueEnd.pos:0}}catch(Qs){console.error(Qs)}return null}(i.escapeValue(ce),jn);return{path:jn,line:ki.line,column:ki.column,from:ki.from,to:ki.to,message:di,severity:Jd.warning,actions:[]}}function hn(vt,jn){var Nr=vt.position;return{path:[],line:vt.line,column:vt.column,from:Nr,to:Nr,severity:Jd.error,message:vt.message,actions:jn&&!c?[{name:"Auto repair",apply:function(){return Ze()}}]:null}}function vr(vt){var jn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],di=ck(vt,f,g),ki=!dr(vt,V),Nr=V;V=vt,e(10,ce=di),G("setCodeMirrorContent",{isChanged:ki,forceUpdate:jn}),s&&(ki||jn)&&(Ro(ce,P)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(ce)}}),wr(),ki&&Xr(V,Nr))}function Er(){if(s){var vt=s?i.unescapeValue(s.state.doc.toString()):"",jn=vt!==ce;if(G("onChangeCodeMirrorValue",{isChanged:jn}),jn){var di=V;e(10,ce=vt),V={text:ce},wr(),Xr(V,di)}}}function fr(vt){return xD.of("number"==typeof vt?" ".repeat(vt):vt)}function wr(){e(11,je=Dit(s.state)>0),e(12,Te=Tit(s.state)>0),G({canUndo:je,canRedo:Te})}QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(a)},hasFocus:function(){return $&&document.hasFocus()||dk(a)},onFocus:E,onBlur:B});var Si=p0(Er,300);function Xr(vt,jn){b&&b(vt,jn,{contentErrors:Bi(),patchResult:null})}function Ro(vt,jn){return!!vt&&vt.length>10485760&&!jn}var Rn="valid",kt=null;function pi(){if(Ro(ce,P))return[];var vt=Bi();return $le(vt)?[Ame(hn(vt.parseError,vt.isRepairable))]:function cKe(t){return Io(t)&&Array.isArray(t.validationErrors)}(vt)?vt.validationErrors.map(Ri).map(Ame):[]}function Bi(){G("validate:start"),Si.flush();var vt=Ar(i.escapeValue(ce),v,g,y);return $le(vt)?(e(49,Rn=vt.isRepairable?"repairable":"invalid"),e(13,kt=vt.parseError),e(9,J=[])):(e(49,Rn="valid"),e(13,kt=null),e(9,J=vt?.validationErrors||[])),G("validate:end"),vt}var Ar=wb(qJe);function ko(){kt&&function(vt){G("select parse error",vt);var jn=hn(vt,!1);Ct(jn.from,jn.to),st()}(kt)}var Qo={icon:FXe,text:"Show me",title:"Move to the parse error location",onClick:ko};return t.$$set=function(vt){"readOnly"in vt&&e(0,c=vt.readOnly),"mainMenuBar"in vt&&e(1,u=vt.mainMenuBar),"statusBar"in vt&&e(2,d=vt.statusBar),"externalContent"in vt&&e(29,h=vt.externalContent),"indentation"in vt&&e(30,f=vt.indentation),"tabSize"in vt&&e(31,p=vt.tabSize),"escapeUnicodeCharacters"in vt&&e(32,m=vt.escapeUnicodeCharacters),"parser"in vt&&e(33,g=vt.parser),"validator"in vt&&e(34,v=vt.validator),"validationParser"in vt&&e(35,y=vt.validationParser),"onChange"in vt&&e(36,b=vt.onChange),"onChangeMode"in vt&&e(37,C=vt.onChangeMode),"onError"in vt&&e(38,D=vt.onError),"onFocus"in vt&&e(39,E=vt.onFocus),"onBlur"in vt&&e(40,B=vt.onBlur),"onRenderMenu"in vt&&e(3,z=vt.onRenderMenu),"onSortModal"in vt&&e(41,j=vt.onSortModal),"onTransformModal"in vt&&e(42,U=vt.onTransformModal)},t.$$.update=function(){var vt;2&t.$$.dirty[1]&&(i=yP({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&vr(h),8&t.$$.dirty[1]&&(G("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(yn())})),1073741824&t.$$.dirty[0]&&(vt=f,s&&(G("updateIndentation",vt),s.dispatch({effects:N.reconfigure(fr(vt))}))),1&t.$$.dirty[1]&&function(vt){s&&(G("updateTabSize",vt),s.dispatch({effects:F.reconfigure(Fo.tabSize.of(vt))}))}(p),1&t.$$.dirty[0]&&function(vt){s&&(G("updateReadOnly",vt),s.dispatch({effects:[A.reconfigure(Fo.readOnly.of(vt)),pe.reconfigure(Qn.editable.of(!vt))]}))}(c),131074&t.$$.dirty[1]&&ve!==m&&(e(48,ve=m),G("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(ce)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Rn||c?[Qo]:[{icon:_k,text:"Auto repair",title:"Automatically repair JSON",onClick:Ze},Qo])},[c,u,d,z,o,a,l,P,W,J,ce,je,Te,kt,r,oe,le,Re,function(){var vt;if(!c)try{var jn=g.parse(ce);$=!0,j({id:et,json:jn,rootPath:[],onSort:(vt=or(_n().mark(function di(ki){var Nr;return _n().wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:G("onSort",Nr=ki.operations),ae(Nr);case 3:case"end":return Jr.stop()}},di)})),function(di){return vt.apply(this,arguments)}),onClose:function(){$=!1,st()}})}catch(di){D(di)}},function(){c||Ve({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?tj(s):ej(s))},function(){c||s&&(HR(s),st())},function(){c||s&&(TD(s),st())},function(){e(7,P=!0),vr(h,!0)},function(){C(Uo.tree)},function(){Er()},function(vt){G("select validation error",vt);var jn=Ri(vt);Ct(jn.from,jn.to),st()},Ro,ko,h,f,p,m,g,v,y,b,C,D,E,B,j,U,st,ae,Ve,function(){G("refresh"),tc().then(function(){if(s){var vt=on();G("updateTheme",{dark:vt}),s.dispatch({effects:[q.reconfigure(Qn.theme({},{dark:vt}))]})}})},Bi,ve,Rn,function(vt){Xi[vt?"unshift":"push"](function(){e(4,o=vt)})},function(){return e(8,W=!1)},function(vt){Xi[vt?"unshift":"push"](function(){e(5,a=vt)})}]}var cot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,lot,aot,Pi,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},rot,[-1,-1,-1,-1]),r}return Ie(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function uot(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function dot(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:Nae,title:hN,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var hot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dot,uot,Pi,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Ie(e)}();function Mme(t,n,e){var i=t.slice();return i[9]=n[e],i}function Ome(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],b=tr(v);b.length>0&&!nu(m,b);)y.unshift({op:"add",path:dn(b),value:{}}),b=tr(b);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&nr(c)&&yp(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var mot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,pot,fot,Pi,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Ie(e)}();function got(t){_i(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function vot(t){var n,e,i,r,o=ah(t[2].stringify(t[1]),50)+"";return{c:function(){n=De("button"),e=sn(o),R(n,"type","button"),R(n,"class","jse-inline-value svelte-l28mqd"),Nt(n,"jse-selected",t[3])},m:function(s,a){$e(s,n,a),me(n,e),i||(r=Rt(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Jn(a,1)[0];6&l&&o!==(o=ah(s[2].stringify(s[1]),50)+"")&&ti(e,o),8&l&&Nt(n,"jse-selected",s[3])},i:Bt,o:Bt,d:function(s){s&&Be(n),i=!1,r()}}}function yot(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=ao(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var _ot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,yot,vot,Pi,{path:0,value:1,parser:2,isSelected:3,onEdit:4},got),r}return Ie(e)}();function bot(t){_i(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function Ime(t){var n,e,i,r;return e=new hr({props:{data:t[1]===tu.asc?hu:Iae}}),{c:function(){n=De("span"),gt(e.$$.fragment),R(n,"class","jse-column-sort-icon svelte-h4fort"),R(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){$e(o,n,s),pt(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===tu.asc?hu:Iae),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&R(n,"title",i)},i:function(o){r||(Q(e.$$.fragment,o),r=!0)},o:function(o){fe(e.$$.fragment,o),r=!1},d:function(o){o&&Be(n),mt(e)}}}function xot(t){var n,e,i,r,o,s,a,l,c=ah(t[3],50)+"",u=void 0!==t[1]&&Ime(t);return{c:function(){n=De("button"),e=De("span"),i=sn(c),r=rt(),u&&u.c(),R(e,"class","jse-column-name"),R(n,"type","button"),R(n,"class","jse-column-header svelte-h4fort"),R(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),Nt(n,"jse-readonly",t[0])},m:function(d,h){$e(d,n,h),me(n,e),me(e,i),me(n,r),u&&u.m(n,null),s=!0,a||(l=Rt(n,"click",t[4]),a=!0)},p:function(d,h){var f=Jn(h,1)[0];(!s||8&f)&&c!==(c=ah(d[3],50)+"")&&ti(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&Q(u,1)):((u=Ime(d)).c(),Q(u,1),u.m(n,null)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&R(n,"title",o),(!s||1&f)&&Nt(n,"jse-readonly",d[0])},i:function(d){s||(Q(u),s=!0)},o:function(d){fe(u),s=!1},d:function(d){d&&Be(n),u&&u.d(),a=!1,l()}}}function wot(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Ji(s)?"values":cu(rc(s))),96&t.$$.dirty&&e(1,r=dr(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=tUe[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===tu.asc?tu.desc:tu.asc})},s,a,c]}var ZD,eT,Cot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wot,xot,Pi,{path:5,sortedColumn:6,readOnly:0,onSort:7},bot),r}return Ie(e)}();function Nme(t,n){return ZD||(eT=new WeakMap,ZD=new ResizeObserver(function(e){var i,r=He(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=eT.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),eT.set(t,n),ZD.observe(t),{destroy:function(){eT.delete(t),ZD.unobserve(t)}}}function Sot(t){var n,e;return n=new uce({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function kot(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,b=n.onEditValue,C=n.onEditRow,D=n.onToggleEnforceString,E=n.onCut,B=n.onCopy,z=n.onPaste,j=n.onRemove,U=n.onDuplicateRow,G=n.onInsertBeforeRow,X=n.onInsertAfterRow,oe=n.onRemoveRow;function P(){y(),b()}function W(){y(),C()}function J(){y(),D()}function H(){y(),E(!0)}function pe(){y(),E(!1)}function A(){y(),B(!0)}function N(){y(),B(!1)}function F(){y(),z()}function q(){y(),j()}function V(){y(),U()}function ce(){y(),G()}function ve(){y(),X()}function je(){y(),oe()}return t.$$set=function(Te){"json"in Te&&e(2,p=Te.json),"documentState"in Te&&e(3,m=Te.documentState),"parser"in Te&&e(4,g=Te.parser),"showTip"in Te&&e(0,v=Te.showTip),"onCloseContextMenu"in Te&&e(5,y=Te.onCloseContextMenu),"onEditValue"in Te&&e(6,b=Te.onEditValue),"onEditRow"in Te&&e(7,C=Te.onEditRow),"onToggleEnforceString"in Te&&e(8,D=Te.onToggleEnforceString),"onCut"in Te&&e(9,E=Te.onCut),"onCopy"in Te&&e(10,B=Te.onCopy),"onPaste"in Te&&e(11,z=Te.onPaste),"onRemove"in Te&&e(12,j=Te.onRemove),"onDuplicateRow"in Te&&e(13,U=Te.onDuplicateRow),"onInsertBeforeRow"in Te&&e(14,G=Te.onInsertBeforeRow),"onInsertAfterRow"in Te&&e(15,X=Te.onInsertAfterRow),"onRemoveRow"in Te&&e(16,oe=Te.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Ji(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?On(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Lr(i)||ws(i)||nr(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Lr(i)||nr(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&hb(i)&&!s&&Array.isArray(On(p,tr(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&hb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!zo(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&ng(i)&&Io(a),29491200&t.$$.dirty[0]&&d&&ng(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&ng(i)&&zo(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&mf(a,m.enforceStringMap,dn(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:P,icon:N0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:N0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:P,disabled:!c},{type:"button",icon:h?lb:cb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:J,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:I0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:I0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:I0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:pe,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:A,icon:xp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:xp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:A,disabled:!l},{type:"button",icon:xp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:N,disabled:!l}]},{type:"button",onClick:F,icon:Aae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:q,icon:BP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:W,icon:N0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:Rae,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:ce,icon:F0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:ve,icon:F0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:je,icon:BP,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,b,C,D,E,B,z,j,U,G,X,oe,o,l,u,h,c,i,a,d,r,s]}var Dot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,kot,Sot,Pi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Ie(e)}();function Tot(t){_i(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function Fme(t,n,e){var i=t.slice();i[12]=n[e];var r=On(i[0],i[12]).length;return i[13]=r,i}function Eot(t){var n,e;return{c:function(){n=sn(t[5]),e=sn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){$e(i,n,r),$e(i,e,r)},p:function(i,r){32&r&&ti(n,i[5])},d:function(i){i&&Be(n),i&&Be(e)}}}function Aot(t){var n;return{c:function(){n=sn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){$e(e,n,i)},p:Bt,d:function(e){e&&Be(n)}}}function Pme(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=cu(rc(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=De("button"),e=sn(t[6]),i=sn(' "'),r=sn(p),o=sn('"\n '),s=De("span"),a=sn("("),l=sn(m),c=rt(),u=sn(g),d=sn(")"),R(s,"class","jse-nested-array-count svelte-1te5h1h"),R(n,"type","button"),R(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,b){$e(y,n,b),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),me(s,a),me(s,l),me(s,c),me(s,u),me(s,d),h||(f=Rt(n,"click",v),h=!0)},p:function(y,b){t=y,64&b&&ti(e,t[6]),8&b&&p!==(p=cu(rc(t[12]))+"")&&ti(r,p),9&b&&m!==(m=t[13]+"")&&ti(l,m),9&b&&g!==(g=1!==t[13]?"items":"item")&&ti(u,g)},d:function(y){y&&Be(n),h=!1,f()}}}function Mot(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(z,j){return z[4]?Aot:Eot}for(var b=y(t),C=b(t),D=t[3],E=[],B=0;B1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){Oo(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Ji(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Oo(l)?"An object":ao(l)?"An empty array":"A ".concat(IN(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Uo.tree)}]}var Iot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Oot,Mot,Pi,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},Tot),r}return Ie(e)}();function Not(t){_i(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function Fot(t){var n,e,i,r,o,s;return e=new hr({props:{data:$Xe}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-column-header svelte-h4fort"),R(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){$e(a,n,l),pt(e,n,null),r=!0,o||(s=Rt(n,"click",t[3]),o=!0)},p:function(a,l){var c=Jn(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&R(n,"title",i)},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){fe(e.$$.fragment,a),r=!1},d:function(a){a&&Be(n),mt(e),o=!1,s()}}}function Pot(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Rot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Pot,Fot,Pi,{count:0,maxSampleCount:1,onRefresh:2},Not),r}return Ie(e)}();function jot(t){_i(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function Rme(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function jme(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=On(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function Lme(t,n,e){var i=t.slice();return i[125]=n[e],i}function Bme(t){var n,e;return n=new hot({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Lot(t){var n;return{c:function(){(n=De("div")).innerHTML='
    \n
    loading...
    ',R(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function Bot(t){var n,e,i,r,o,s,a,l,c,u=[Hot,Vot,$ot],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=De("label"),e=De("input"),i=rt(),o.c(),s=Dr(),R(e,"type","text"),e.readOnly="readonly",R(e,"tabindex","-1"),R(e,"class","jse-hidden-input svelte-hs49xj"),R(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){$e(f,n,p),me(n,e),t[71](e),$e(f,i,p),d[r].m(f,p),$e(f,s,p),a=!0,l||(c=Rt(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Ht(),fe(d[m],1,1,function(){d[m]=null}),Ut(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){fe(o),a=!1},d:function(f){f&&Be(n),t[71](null),f&&Be(i),d[r].d(f),f&&Be(s),l=!1,c()}}}function $ot(t){var n,e;return n=new Iot({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Vot(t){var n,e,i,r;return n=new ad({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:bp,text:"Repair manually",onClick:t[35]}]}}),i=new mue({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){gt(n.$$.fragment),e=rt(),gt(i.$$.fragment)},m:function(o,s){pt(n,o,s),$e(o,e,s),pt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:bp,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){fe(n.$$.fragment,o),fe(i.$$.fragment,o),r=!1},d:function(o){mt(n,o),o&&Be(e),mt(i,o)}}}function Hot(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j=!Ji(null===(n=t[21])||void 0===n?void 0:n.root),U=j&&$me(t),G=t[9],X=[],oe=0;oe"u";a("isSSR:",m);var g,v,y,b,C,D,E=n.readOnly,B=n.externalContent,z=n.mainMenuBar,j=n.escapeControlCharacters,U=n.escapeUnicodeCharacters,G=n.flattenColumns,X=n.parser,oe=n.parseMemoizeOne,P=n.validator,W=n.validationParser,J=n.indentation,H=n.onChange,pe=n.onChangeMode,A=n.onRenderValue,N=n.onRenderMenu,F=n.onFocus,q=n.onBlur,V=n.onSortModal,ce=n.onTransformModal,ve=n.onJSONEditorModal;QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(v)},hasFocus:function(){return st&&document.hasFocus()||dk(v)},onFocus:function(){F&&F()},onBlur:function(){q&&q()}});var je,Te=void 0,et=1e4,We=[],st=!1,$={},ae=600,le=0;function Re(Fe){a("updateSelection",Fe);var At="function"==typeof Fe?Fe(Ve.selection):Fe;dr(At,Ve.selection)||e(10,Ve=nt(nt({},Ve),{},{selection:At}))}function Ze(Fe){void 0!==Ve.selection&&void 0!==Fe&&(Ve.selection&&nu(Fe,Ve.selection.anchorPath)&&nu(Fe,Ve.selection.focusPath)||(a("clearing selection: path does not exist anymore",Ve.selection),e(10,Ve=nt(nt({},Ve),{},{selection:T0(Fe,Ve)}))))}var Ot,Ve=fk(),Ct=!1,yn=Tle({onChange:function(Fe){e(19,Xn=Fe)}}),Xn=yn.getState();function Ri(Fe){var At=Fe.previousJson,Gt=Fe.previousState,ln=Fe.previousText,mn=Fe.previousTextIsRepaired;void 0===At&&void 0===ln||(void 0!==C?yn.add(void 0!==At?{undo:{patch:[{op:"replace",path:"",value:At}],state:pl(Gt),json:void 0,text:ln,textIsRepaired:mn},redo:{patch:[{op:"replace",path:"",value:C}],state:pl(Ve),json:void 0,text:D,textIsRepaired:Ct}}:{undo:{patch:void 0,json:void 0,text:ln,state:pl(Gt),textIsRepaired:mn},redo:{patch:void 0,json:C,state:pl(Ve),text:D,textIsRepaired:Ct}}):void 0!==At&&yn.add({undo:{patch:void 0,json:At,state:pl(Gt),text:ln,textIsRepaired:mn},redo:{patch:void 0,json:void 0,text:D,textIsRepaired:Ct,state:pl(Ve)}}))}var hn=[],vr=wb(Ele);function Er(Fe,At,Gt,ln){j0(function(){var mn;try{mn=vr(Fe,At,Gt,ln)}catch(ci){mn=[{path:[],message:"Failed to validate: "+ci.message,severity:Jd.warning}]}dr(mn,hn)||(a("validationErrors changed:",mn),e(11,hn=mn))},function(mn){return a("validationErrors updated in ".concat(mn," ms"))})}function fr(){return a("validate"),Te?{parseError:Te,isRepairable:!1}:(Er(C,P,X,W),Ji(hn)?null:{validationErrors:hn})}function wr(Fe,At){if(a("patch",Fe,At),void 0===C)throw new Error("Cannot apply patch: no JSON");var Gt={json:C},ln=C,mn=Ve,ci=Ct,$i=_ae(C,Fe),Gn=Zse(C,Ve,Fe).json,ai=function UZe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=fu(Zu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return dr(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?nt(nt({},t),{},{sortedColumn:void 0}):t}(Ve,Fe,We),ni="function"==typeof At?At(Gn,ai):void 0;e(7,C=ni&&void 0!==ni.json?ni.json:Gn);var kr=ni&&void 0!==ni.state?ni.state:ai;e(10,Ve=kr),e(15,D=void 0),e(18,Ct=!1),e(17,je=void 0),yn.add({undo:{patch:$i,json:void 0,text:void 0,state:pl(mn),textIsRepaired:ci},redo:{patch:Fe,json:void 0,state:pl(kr),text:void 0,textIsRepaired:Ct}});var Fr={json:C,previousJson:ln,undo:$i,redo:Fe};return Xr(Gt,Fr),Fr}function Si(Fe,At){if(!E)return wr(Fe,At)}function Xr(Fe,At){(void 0!==Fe.json||void 0!==Fe?.text)&&(void 0!==D?H({text:D,json:void 0},Fe,{contentErrors:fr(),patchResult:At}):void 0!==C&&H({text:void 0,json:C},Fe,{contentErrors:fr(),patchResult:At}))}function Ro(Fe){a("handleFind",Fe)}function Rn(Fe){a("pasted json as text",Fe),e(17,je=Fe)}function kt(Fe){var At=parseInt(Fe[0]),Gt=[String(At+1)].concat(ui(Fe.slice(1)));return nu(C,Gt)?br(Gt,!1):br(Fe,!1)}function pi(){b&&(b.focus(),b.select())}function Bi(){Ve.selection||Re(function(){if(ao(C)&&!Ji(C)&&!Ji(We))return br(["0"].concat(ui(We[0])),!1)}())}function Ar(Fe){var At=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Gt=u4(Fe,We,$,18),ln=Gt-le,mn=vt(Fe);a("scrollTo",{path:Fe,top:Gt,scrollTop:le,elem:mn});var ci=y.getBoundingClientRect();if(mn&&!At){var $i=mn.getBoundingClientRect();if($i.bottom>ci.top&&$i.topGt.right&&e(13,y.scrollLeft+=ln.right-Gt.right,y),ln.left(Gn=le+ci.height-18)&&e(13,y.scrollTop+=mn-Gn,y),ln<$i&&e(13,y.scrollTop-=$i-ln,y),ko(Fe)}function vt(Fe){return y?y.querySelector('td[data-path="'.concat(C0(Fe),'"]')):null}function jn(Fe){st=!0;var ni=u(Dot,{json:C,documentState:Ve,parser:X,showTip:Fe.showTip,onEditValue:ki,onEditRow:Nr,onToggleEnforceString:Jr,onCut:Cr,onCopy:Za,onPaste:Ks,onRemove:$c,onDuplicateRow:Ee,onInsertBeforeRow:qe,onInsertAfterRow:Ke,onRemoveRow:dt,onCloseContextMenu:function(){d(ni),pi()}},{left:Fe.left,top:Fe.top,offsetTop:Fe.offsetTop,offsetLeft:Fe.offsetLeft,width:Fe.width,height:Fe.height,anchor:Fe.anchor,closeOnOuterClick:!0,onClose:function(){st=!1,pi()}})}function di(Fe){if(!E&&!yp(Ve.selection)){if(Fe&&(Fe.stopPropagation(),Fe.preventDefault()),Fe&&"contextmenu"===Fe.type&&Fe.target!==b)jn({left:Fe.clientX,top:Fe.clientY,width:260,height:336,showTip:!1});else{var At,Gt=null===(At=y)||void 0===At?void 0:At.querySelector(".jse-table-cell.jse-selected-value");if(Gt)jn({anchor:Gt,offsetTop:2,width:260,height:336,showTip:!1});else{var ln,mn=null===(ln=y)||void 0===ln?void 0:ln.getBoundingClientRect();mn&&jn({top:mn.top+2,left:mn.left+2,width:260,height:336,showTip:!1})}}return!1}}function ki(){if(!E&&Ve.selection){var Fe=Ve.selection.focusPath;zo(On(C,Fe))?gi(Fe):Re(br(Fe,!0))}}function Nr(){!E&&Ve.selection&&gi(Ve.selection.focusPath.slice(0,1))}function Jr(){if(!E&&nr(Ve.selection)){var Fe=Ve.selection.focusPath,At=dn(Fe),Gt=On(C,Fe),ln=!mf(Gt,Ve.enforceStringMap,At,X),mn=ln?String(Gt):e0(String(Gt),X);a("handleToggleEnforceString",{enforceString:ln,value:Gt,updatedValue:mn}),Si([{op:"replace",path:At,value:mn}],function(ci,$i){return{state:Qse($i,At,ln)}})}}function co(){return(co=or(_n().mark(function Fe(){var At,Gt,ln;return _n().wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return a("apply pasted json",je),Gt=(At=je).path,ln=At.contents,Re(br(Gt,!1)),mn.next=5,tc();case 5:Si([{op:"replace",path:dn(Gt),value:ln}]);case 7:case"end":return mn.stop()}},Fe)}))).apply(this,arguments)}function Ks(){l(Lle,{},nt(nt({},Vm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return pi()}})}function Cr(Fe){return Qs.apply(this,arguments)}function Qs(){return(Qs=or(_n().mark(function Fe(At){return _n().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,uue({json:C,documentState:Ve,indentation:At?J:void 0,readOnly:E,parser:X,onPatch:Si});case 2:case"end":return Gt.stop()}},Fe)}))).apply(this,arguments)}function Za(){return el.apply(this,arguments)}function el(){return el=or(_n().mark(function Fe(){var At,Gt=arguments;return _n().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(At=!(Gt.length>0&&void 0!==Gt[0])||Gt[0],void 0!==C){ln.next=3;break}return ln.abrupt("return");case 3:return ln.next=5,due({json:C,documentState:Ve,indentation:At?J:void 0,parser:X});case 5:case"end":return ln.stop()}},Fe)})),el.apply(this,arguments)}function $c(){fue({json:C,text:D,documentState:Ve,keepSelection:!0,readOnly:E,onChange:H,onPatch:Si})}function Ee(){!function zZe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&M0(e.selection)){var s=fu(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;Rl("duplicate row",{rowIndex:a});var c=[String(a)];o(gae(n,[c]),function(u,d){var h=br(lg({rowIndex:a0?a-1:void 0,h=void 0!==d?br(lg({rowIndex:d,columnIndex:l},i),!1):void 0;return Rl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:nt(nt({},u),{},{selection:h})}})}}({json:C,documentState:Ve,columns:We,readOnly:E,onPatch:Si})}function Ye(){return(Ye=or(_n().mark(function Fe(At){return _n().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,pue({char:At,selectInside:!1,refJsonEditor:v,json:C,documentState:Ve,readOnly:E,parser:X,onPatch:Si,onReplaceJson:In,onSelect:Re});case 2:case"end":return Gt.stop()}},Fe)}))).apply(this,arguments)}function In(Fe,At){var Gt=Ve,ln=C,mn=D,ci={json:C,text:D},$i=Ct,Gn=uu(C,Ve,[],lh),ai="function"==typeof At?At(Fe,Gn):void 0;e(7,C=ai&&void 0!==ai.json?ai.json:Fe),e(10,Ve=ai&&void 0!==ai.state?ai.state:Gn),e(15,D=void 0),e(18,Ct=!1),Ze(C),Ri({previousJson:ln,previousState:Gt,previousText:mn,previousTextIsRepaired:$i}),Xr(ci,null)}function li(Fe,At){a("handleChangeText");var Gt=Ve,ln=C,mn=D,ci={json:C,text:D},$i=Ct;try{e(7,C=oe(Fe)),e(10,Ve=uu(C,Ve,[],lh)),e(15,D=void 0),e(18,Ct=!1)}catch{try{e(7,C=oe(Kd(Fe))),e(10,Ve=uu(C,Ve,[],lh)),e(15,D=Fe),e(18,Ct=!0)}catch{e(7,C=void 0),e(10,Ve=fk({json:C,expand:lh})),e(15,D=Fe),e(18,Ct=!1)}}if("function"==typeof At){var Gn=At(C,Ve);e(7,C=Gn&&Gn.json?Gn.json:C),e(10,Ve=Gn&&Gn.state?Gn.state:Ve)}Ze(C),Ri({previousJson:ln,previousState:Gt,previousText:mn,previousTextIsRepaired:$i}),Xr(ci,null)}function vi(Fe){var Gt=Fe.rootPath,ln=Fe.onTransform,mn=Fe.onClose;E||void 0===C||(st=!0,ce({id:Fe.id||p,json:C,rootPath:Gt||[],onTransform:ln?function(ci){ln({operations:ci,json:C,transformedJson:ed(C,ci)})}:function(ci){a("onTransform",Gt,ci),Si(ci)},onClose:function(){st=!1,pi(),mn&&mn()}}))}function gi(Fe){a("openJSONEditorModal",{path:Fe}),st=!0,ve({content:{json:On(C,Fe)},path:Fe,onPatch:Ot.onPatch,onClose:function(){st=!1,pi()}})}function Mr(Fe,At){l(Xle,{text:Fe,onParse:ak,onRepair:bse,onApply:At},nt(nt({},Vm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return pi()}})}function to(){if(!E&&yn.getState().canUndo){var Fe=yn.undo();if(Fe){var At={json:C,text:D};e(7,C=Fe.undo.patch?ed(C,Fe.undo.patch):Fe.undo.json),e(10,Ve=Fe.undo.state),e(15,D=Fe.undo.text),e(18,Ct=Fe.undo.textIsRepaired),a("undo",{item:Fe,json:C}),Xr(At,{json:C,previousJson:At.json,redo:Fe.undo.patch,undo:Fe.redo.patch}),pi(),Ve.selection&&Ar(Ve.selection.focusPath,!1)}}}function xi(){if(!E&&yn.getState().canRedo){var Fe=yn.redo();if(Fe){var At={json:C,text:D};e(7,C=Fe.redo.patch?ed(C,Fe.redo.patch):Fe.redo.json),e(10,Ve=Fe.redo.state),e(15,D=Fe.redo.text),e(18,Ct=Fe.redo.textIsRepaired),a("redo",{item:Fe,json:C}),Xr(At,{json:C,previousJson:At.json,redo:Fe.redo.patch,undo:Fe.undo.patch}),pi(),Ve.selection&&Ar(Ve.selection.focusPath,!1)}}}function Sr(Fe,At){e(68,$[At]=Fe.getBoundingClientRect().height,$)}return t.$$set=function(Fe){"readOnly"in Fe&&e(0,E=Fe.readOnly),"externalContent"in Fe&&e(47,B=Fe.externalContent),"mainMenuBar"in Fe&&e(1,z=Fe.mainMenuBar),"escapeControlCharacters"in Fe&&e(48,j=Fe.escapeControlCharacters),"escapeUnicodeCharacters"in Fe&&e(49,U=Fe.escapeUnicodeCharacters),"flattenColumns"in Fe&&e(50,G=Fe.flattenColumns),"parser"in Fe&&e(2,X=Fe.parser),"parseMemoizeOne"in Fe&&e(51,oe=Fe.parseMemoizeOne),"validator"in Fe&&e(52,P=Fe.validator),"validationParser"in Fe&&e(53,W=Fe.validationParser),"indentation"in Fe&&e(3,J=Fe.indentation),"onChange"in Fe&&e(54,H=Fe.onChange),"onChangeMode"in Fe&&e(4,pe=Fe.onChangeMode),"onRenderValue"in Fe&&e(55,A=Fe.onRenderValue),"onRenderMenu"in Fe&&e(5,N=Fe.onRenderMenu),"onFocus"in Fe&&e(56,F=Fe.onFocus),"onBlur"in Fe&&e(57,q=Fe.onBlur),"onSortModal"in Fe&&e(58,V=Fe.onSortModal),"onTransformModal"in Fe&&e(59,ce=Fe.onTransformModal),"onJSONEditorModal"in Fe&&e(60,ve=Fe.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=yP({escapeControlCharacters:j,escapeUnicodeCharacters:U})),65536&t.$$.dirty[1]&&function on(Fe){var At=C,Gt=x0(Fe)?Fe.text!==D:!dr(At,Fe.json);if(a("update external content",{isChanged:Gt}),Gt){var ln={json:C,text:D},mn=C,ci=Ve,$i=D,Gn=Ct;if(x0(Fe))try{e(7,C=oe(Fe.text)),e(15,D=Fe.text),e(18,Ct=!1),e(16,Te=void 0)}catch(ai){try{e(7,C=oe(Kd(Fe.text))),e(15,D=Fe.text),e(18,Ct=!0),e(16,Te=void 0)}catch{e(7,C=void 0),e(15,D=B.text),e(18,Ct=!1),e(16,Te=lk(D,ai.message||ai.toString()))}}else e(7,C=Fe.json),e(15,D=void 0),e(18,Ct=!1),e(16,Te=void 0);Ze(C),Ve.sortedColumn&&e(10,Ve=nt(nt({},Ve),{},{sortedColumn:void 0})),Ri({previousJson:mn,previousState:ci,previousText:$i,previousTextIsRepaired:Gn}),Xr(ln,null)}}(B),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,We=ao(C)?function(Fe,At){var Gt,ln=new Set(At.map(dn)),mn=new Set(Fe.map(dn)),ci=He(ln);try{for(ci.s();!(Gt=ci.n()).done;){var $i=Gt.value;mn.has($i)||ln.delete($i)}}catch(kr){ci.e(kr)}finally{ci.f()}var Gn,ai=He(mn);try{for(ai.s();!(Gn=ai.n()).done;){var ni=Gn.value;ln.has(ni)||ln.add(ni)}}catch(kr){ai.e(kr)}finally{ai.f()}return ui(ln).map(Zu)}(function(Fe,At){var Gt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,ln={};Array.isArray(Fe)&&function Jqe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;ret),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Fe,At,Gt,ln,mn){for(var ci=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,$i=ao(Gt)?Gt.length:0,Gn=function $Ze(t,n){var e=Object.values(t);return Ji(e)?n:e.reduce(function(r,o){return r+o})/e.length}(ln,mn),ai=Fe-ci,ni=At+2*ci,kr=function(xd){return ln[xd]||mn},Fr=0,jo=0;jo0&&(jo-=kr(--Fr));for(var ba=Fr,bd=0;bd0?br(lg({rowIndex:kr.rowIndex,columnIndex:jo-1},ai),!1):ni;Re(Gt),Qo(Gt.focusPath)}if("ArrowRight"===At&&(Fe.preventDefault(),Bi(),Ve.selection)){var ln=function(ai,ni){var kr=fu(ni.focusPath,ai),jo=kr.columnIndex;return jo0?br(lg({rowIndex:Fr-1,columnIndex:kr.columnIndex},ai),!1):ni}(We,Ve.selection);Re(mn),Qo(mn.focusPath)}if("ArrowDown"===At&&(Fe.preventDefault(),Bi(),Ve.selection)){var ci=function(ai,ni,kr){var Fr=fu(kr.focusPath,ni),jo=Fr.rowIndex;return jo1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Qme({props:{mode:Bn(t[18]).mode,content:Bn(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:fh,onBlur:fh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var C=t[19]&&Zme(t),D=t[18].length>1&&ege(t);function E(j,U){return j[0]?est:tst}var B=E(t),z=B(t);return{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),(o=De("div")).innerHTML='
    Path
    ',s=rt(),a=De("input"),l=rt(),(c=De("div")).innerHTML='
    Contents
    ',u=rt(),d=De("div"),gt(h.$$.fragment),f=rt(),p=De("div"),C&&C.c(),m=rt(),D&&D.c(),g=rt(),z.c(),R(o,"class","jse-label svelte-1hibiw3"),R(a,"class","jse-path svelte-1hibiw3"),R(a,"type","text"),a.readOnly=!0,R(a,"title","Selected path"),a.value=t[21],R(c,"class","jse-label svelte-1hibiw3"),R(d,"class","jse-modal-inline-editor svelte-1hibiw3"),R(p,"class","jse-actions svelte-1hibiw3"),R(r,"class","jse-modal-contents svelte-1hibiw3"),R(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(j,U){$e(j,n,U),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(r,s),me(r,a),me(r,l),me(r,c),me(r,u),me(r,d),pt(h,d,null),me(r,f),me(r,p),C&&C.m(p,null),me(p,m),D&&D.m(p,null),me(p,g),z.m(p,null),v=!0,y||(b=Ea(Nk.call(null,n,t[23])),y=!0)},p:function(j,U){var G={};262144&U[0]&&(G.title="Edit nested content "+(j[18].length>1?" (".concat(j[18].length,")"):"")),e.$set(G),(!v||2097152&U[0]&&a.value!==j[21])&&(a.value=j[21]);var X={};262144&U[0]&&(X.mode=Bn(j[18]).mode),262144&U[0]&&(X.content=Bn(j[18]).content),1&U[0]&&(X.readOnly=j[0]),2&U[0]&&(X.indentation=j[1]),4&U[0]&&(X.tabSize=j[2]),32&U[0]&&(X.statusBar=j[5]),8&U[0]&&(X.mainMenuBar=j[3]),16&U[0]&&(X.navigationBar=j[4]),64&U[0]&&(X.escapeControlCharacters=j[6]),128&U[0]&&(X.escapeUnicodeCharacters=j[7]),256&U[0]&&(X.flattenColumns=j[8]),512&U[0]&&(X.parser=j[9]),1048576&U[0]&&(X.parseMemoizeOne=j[20]),1024&U[0]&&(X.validator=j[10]),2048&U[0]&&(X.validationParser=j[11]),4096&U[0]&&(X.pathParser=j[12]),8192&U[0]&&(X.onRenderValue=j[13]),16384&U[0]&&(X.onClassName=j[14]),32768&U[0]&&(X.onRenderMenu=j[15]),65536&U[0]&&(X.onSortModal=j[16]),131072&U[0]&&(X.onTransformModal=j[17]),h.$set(X),j[19]?C?C.p(j,U):((C=Zme(j)).c(),C.m(p,m)):C&&(C.d(1),C=null),j[18].length>1?D?(D.p(j,U),262144&U[0]&&Q(D,1)):((D=ege(j)).c(),Q(D,1),D.m(p,g)):D&&(Ht(),fe(D,1,1,function(){D=null}),Ut()),B===(B=E(j))&&z?z.p(j,U):(z.d(1),(z=B(j))&&(z.c(),z.m(p,null)))},i:function(j){v||(Q(e.$$.fragment,j),Q(h.$$.fragment,j),Q(D),v=!0)},o:function(j){fe(e.$$.fragment,j),fe(h.$$.fragment,j),fe(D),v=!1},d:function(j){j&&Be(n),mt(e),mt(h),C&&C.d(),D&&D.d(),z.d(),y=!1,b()}}}function tge(t){t.focus()}function ist(t,n,e){var i,r,o,s=Ma("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,b=n.parser,C=n.validator,D=n.validationParser,E=n.pathParser,B=n.onRenderValue,z=n.onClassName,j=n.onRenderMenu,U=n.onSortModal,G=n.onTransformModal,X=Aa("simple-modal").close,oe=[{mode:W(a),content:a,relativePath:l}],P=void 0;function W(H){return vP(H)&&ao(H.json)?Uo.table:Uo.tree}function J(H){s("handleChange",H);var pe=nt(nt({},Bn(oe)),{},{content:H});e(18,oe=[].concat(ui(tr(oe)),[pe]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,b=H.parser),"validator"in H&&e(10,C=H.validator),"validationParser"in H&&e(11,D=H.validationParser),"pathParser"in H&&e(12,E=H.pathParser),"onRenderValue"in H&&e(13,B=H.onRenderValue),"onClassName"in H&&e(14,z=H.onClassName),"onRenderMenu"in H&&e(15,j=H.onRenderMenu),"onSortModal"in H&&e(16,U=H.onSortModal),"onTransformModal"in H&&e(17,G=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=oe.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Ji(i)?"(whole document)":cu(rc(i))),512&t.$$.dirty[0]&&e(20,o=wb(b.parse))},[u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,oe,P,o,r,function(){if(s("handleApply"),!u)try{e(19,P=void 0);var H=[{op:"replace",path:dn(Bn(oe).relativePath),value:wse(Bn(oe).content,b).json}];if(oe.length>1){var pe={json:ed(wse(oe[oe.length-2].content,b).json,H)};e(18,oe=tr(oe)),J(pe)}else c(H),X()}catch(A){e(19,P=A.toString())}},function(){s("handleClose"),oe.length>1?(e(18,oe=tr(oe)),e(19,P=void 0)):X()},J,function(H){s("handleChangeMode",H);var pe=nt(nt({},Bn(oe)),{},{mode:H});e(18,oe=[].concat(ui(tr(oe)),[pe]))},function(H){e(19,P=H.toString()),console.error(H)},function(H){var pe=H.content,A=H.path;s("handleJSONEditorModal",{content:pe,path:A});var N={mode:W(pe),content:pe,relativePath:A};e(18,oe=[].concat(ui(oe),[N]))},a,l,c,i]}var rst=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ist,nst,Pi,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Zot,[-1,-1]),r}return Ie(e)}();function ost(t,n,e){var i=Aa("simple-modal");return[i.open,i.close]}var sst=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ost,null,Pi,{open:0,close:1}),r}return Ie(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function ast(t){_i(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function nge(t){var n,e;return n=new Qme({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){gt(n.$$.fragment)},m:function(r,o){pt(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(Q(n.$$.fragment,r),e=!0)},o:function(r){fe(n.$$.fragment,r),e=!1},d:function(r){t[56](null),mt(n,r)}}}function lst(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new sst({props:l}),Xi.push(function(){return Xu(n,"open",a)});var c=nge(t);return{c:function(){gt(n.$$.fragment),i=rt(),r=De("div"),c.c(),R(r,"class","jse-main svelte-sxaskb"),Nt(r,"jse-focus",t[20])},m:function(u,d){pt(n,u,d),$e(u,i,d),$e(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],Yu(function(){return e=!1})),n.$set(h),524288&d[0]&&Pi(s,s=u[19])?(Ht(),fe(c,1,1,Bt),Ut(),(c=nge(u)).c(),Q(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&Nt(r,"jse-focus",u[20])},i:function(u){o||(Q(n.$$.fragment,u),Q(c),o=!0)},o:function(u){fe(n.$$.fragment,u),fe(c),o=!1},d:function(u){mt(n,u),u&&Be(i),u&&Be(r),c.d(u)}}}function cst(t){var n,e;return n=new jZ({props:{closeOnEsc:!1,$$slots:{default:[lst]},$$scope:{ctx:t}}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function ust(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},LZ,{closeOnEsc:!1}],o={$$slots:{default:[cst]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;Oe(this,l),this._names={},this._prefixes=u,this._parent=d}return Ie(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){Dt(u,l);var c=Tt(u);function u(d,h){var f;return Oe(this,u),(f=c.call(this,h)).prefix=d,f}return Ie(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(Qq||(Qq=Pe([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)(Zq||(Zq=Pe(["\n"],["\\n"]))),a=function(l){Dt(u,l);var c=Tt(u);function u(d){var h;return Oe(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=nt(nt({},d),{},{_n:d.lines?s:e.nil}),h}return Ie(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var b=this._scope[m]||(this._scope[m]=[]),C=b.length;return b[C]=h.ref,p.setValue(h,{property:m,itemIndex:C}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(eY||(eY=Pe(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(b){var C=d[b];if(!C)return"continue";var D=p[b]=p[b]||new Map;C.forEach(function(E){if(!D.has(E)){D.set(E,n.Started);var B=h(E);if(B){var z=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(tY||(tY=Pe(["",""," "," = ",";",""])),g,z,E,B,f.opts._n)}else{if(!(B=m?.(E)))throw new i(E);g=(0,e._)(nY||(nY=Pe(["","","",""])),g,B,f.opts._n)}D.set(E,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(pge)),pge}function Tr(){return fge||(fge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=nT(),e=mge(),i=nT();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=mge();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function F(){Oe(this,F)}return Ie(F,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(q,V){return this}}]),F}(),s=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).varKind=ce,Te.name=ve,Te.rhs=je,Te}return Ie(V,[{key:"render",value:function(ce){var je=ce._n,Te=ce.es5?e.varKinds.var:this.varKind,et=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(Te," ").concat(this.name).concat(et,";")+je}},{key:"optimizeNames",value:function(ce,ve){if(ce[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,ce,ve)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).lhs=ce,Te.rhs=ve,Te.sideEffects=je,Te}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+ve}},{key:"optimizeNames",value:function(ce,ve){if(!(this.lhs instanceof n.Name)||ce[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,ce,ve),this}},{key:"names",get:function(){return oe(this.lhs instanceof n.Name?{}:nt({},this.lhs.names),this.rhs)}}]),V}(o),l=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this,ce,je,Te)).op=ve,et}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+ve}}]),V}(a),c=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).label=ce,ve.names={},ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.label,":")+ve}}]),V}(o),u=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).label=ce,ve.names={},ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n,je=this.label?" ".concat(this.label):"";return"break".concat(je,";")+ve}}]),V}(o),d=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).error=ce,ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"throw ".concat(this.error,";")+ve}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).code=ce,ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.code,";")+ve}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(ce,ve){return this.code=P(this.code,ce,ve),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(F){Dt(V,F);var q=Tt(V);function V(){var ce,ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Oe(this,V),(ce=q.call(this)).nodes=ve,ce}return Ie(V,[{key:"render",value:function(ce){return this.nodes.reduce(function(ve,je){return ve+je.render(ce)},"")}},{key:"optimizeNodes",value:function(){for(var ce=this.nodes,ve=ce.length;ve--;){var je=ce[ve].optimizeNodes();Array.isArray(je)?ce.splice.apply(ce,[ve,1].concat(ui(je))):je?ce[ve]=je:ce.splice(ve,1)}return ce.length>0?this:void 0}},{key:"optimizeNames",value:function(ce,ve){for(var je=this.nodes,Te=je.length;Te--;){var et=je[Te];et.optimizeNames(ce,ve)||(W(ce,et.names),je.splice(Te,1))}return je.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(ce,ve){return X(ce,ve.names)},{})}}]),V}(o),p=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"{"+ce._n+_r(er(V.prototype),"render",this).call(this,ce)+"}"+ce._n}}]),V}(f),m=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(f),g=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(p);g.kind="else";var v=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve){var je;return Oe(this,V),(je=q.call(this,ve)).condition=ce,je}return Ie(V,[{key:"render",value:function(ce){var ve="if(".concat(this.condition,")")+_r(er(V.prototype),"render",this).call(this,ce);return this.else&&(ve+="else "+this.else.render(ce)),ve}},{key:"optimizeNodes",value:function(){_r(er(V.prototype),"optimizeNodes",this).call(this);var ce=this.condition;if(!0===ce)return this.nodes;var ve=this.else;if(ve){var je=ve.optimizeNodes();ve=this.else=Array.isArray(je)?new g(je):je}return ve?!1===ce?ve instanceof V?ve:ve.nodes:this.nodes.length?this:new V(J(ce),ve instanceof V?[ve]:ve.nodes):!1!==ce&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(ce,ve){var je;if(this.else=null===(je=this.else)||void 0===je?void 0:je.optimizeNames(ce,ve),_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve)||this.else)return this.condition=P(this.condition,ce,ve),this}},{key:"names",get:function(){var ce=_r(er(V.prototype),"names",this);return oe(ce,this.condition),this.else&&X(ce,this.else.names),ce}}]),V}(p);v.kind="if";var y=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(p);y.kind="for";var b=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).iteration=ce,ve}return Ie(V,[{key:"render",value:function(ce){return"for(".concat(this.iteration,")")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"optimizeNames",value:function(ce,ve){if(_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve))return this.iteration=P(this.iteration,ce,ve),this}},{key:"names",get:function(){return X(_r(er(V.prototype),"names",this),this.iteration.names)}}]),V}(y),C=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this)).varKind=ce,et.name=ve,et.from=je,et.to=Te,et}return Ie(V,[{key:"render",value:function(ce){var je=this.name,Te=this.from,et=this.to;return"for(".concat(ce.es5?e.varKinds.var:this.varKind," ").concat(je,"=").concat(Te,"; ").concat(je,"<").concat(et,"; ").concat(je,"++)")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"names",get:function(){var ce=oe(_r(er(V.prototype),"names",this),this.from);return oe(ce,this.to)}}]),V}(y),D=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this)).loop=ce,et.varKind=ve,et.name=je,et.iterable=Te,et}return Ie(V,[{key:"render",value:function(ce){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"optimizeNames",value:function(ce,ve){if(_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve))return this.iterable=P(this.iterable,ce,ve),this}},{key:"names",get:function(){return X(_r(er(V.prototype),"names",this),this.iterable.names)}}]),V}(y),E=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).name=ce,Te.args=ve,Te.async=je,Te}return Ie(V,[{key:"render",value:function(ce){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);E.kind="func";var B=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"return "+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(f);B.kind="return";var z=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){var ve="try"+_r(er(V.prototype),"render",this).call(this,ce);return this.catch&&(ve+=this.catch.render(ce)),this.finally&&(ve+=this.finally.render(ce)),ve}},{key:"optimizeNodes",value:function(){var ce,ve;return _r(er(V.prototype),"optimizeNodes",this).call(this),null===(ce=this.catch)||void 0===ce||ce.optimizeNodes(),null===(ve=this.finally)||void 0===ve||ve.optimizeNodes(),this}},{key:"optimizeNames",value:function(ce,ve){var je,Te;return _r(er(V.prototype),"optimizeNames",this).call(this,ce,ve),null===(je=this.catch)||void 0===je||je.optimizeNames(ce,ve),null===(Te=this.finally)||void 0===Te||Te.optimizeNames(ce,ve),this}},{key:"names",get:function(){var ce=_r(er(V.prototype),"names",this);return this.catch&&X(ce,this.catch.names),this.finally&&X(ce,this.finally.names),ce}}]),V}(p),j=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).error=ce,ve}return Ie(V,[{key:"render",value:function(ce){return"catch(".concat(this.error,")")+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);j.kind="catch";var U=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"finally"+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);U.kind="finally";var G=function(){function F(q){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oe(this,F),this._values={},this._blockStarts=[],this._constants={},this.opts=nt(nt({},V),{},{_n:V.lines?"\n":""}),this._extScope=q,this._scope=new e.Scope({parent:q}),this._nodes=[new m]}return Ie(F,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(q){return this._scope.name(q)}},{key:"scopeName",value:function(q){return this._extScope.name(q)}},{key:"scopeValue",value:function(q,V){var ce=this._extScope.value(q,V);return(this._values[ce.prefix]||(this._values[ce.prefix]=new Set)).add(ce),ce}},{key:"getScopeValue",value:function(q,V){return this._extScope.getValue(q,V)}},{key:"scopeRefs",value:function(q){return this._extScope.scopeRefs(q,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(q,V,ce,ve){var je=this._scope.toName(V);return void 0!==ce&&ve&&(this._constants[je.str]=ce),this._leafNode(new s(q,je,ce)),je}},{key:"const",value:function(q,V,ce){return this._def(e.varKinds.const,q,V,ce)}},{key:"let",value:function(q,V,ce){return this._def(e.varKinds.let,q,V,ce)}},{key:"var",value:function(q,V,ce){return this._def(e.varKinds.var,q,V,ce)}},{key:"assign",value:function(q,V,ce){return this._leafNode(new a(q,V,ce))}},{key:"add",value:function(q,V){return this._leafNode(new l(q,t.operators.ADD,V))}},{key:"code",value:function(q){return"function"==typeof q?q():q!==n.nil&&this._leafNode(new h(q)),this}},{key:"object",value:function(){for(var q=["{"],V=arguments.length,ce=new Array(V),ve=0;ve1&&q.push(","),q.push(We),(We!==st||this.opts.es5)&&(q.push(":"),(0,n.addCodeArg)(q,st))}return q.push("}"),new n._Code(q)}},{key:"if",value:function(q,V,ce){if(this._blockNode(new v(q)),V&&ce)this.code(V).else().code(ce).endIf();else if(V)this.code(V).endIf();else if(ce)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(q){return this._elseNode(new v(q))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(q,V){return this._blockNode(q),V&&this.code(V).endFor(),this}},{key:"for",value:function(q,V){return this._for(new b(q),V)}},{key:"forRange",value:function(q,V,ce,ve){var je=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,Te=this._scope.toName(q);return this._for(new C(je,Te,V,ce),function(){return ve(Te)})}},{key:"forOf",value:function(q,V,ce){var ve=this,je=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,Te=this._scope.toName(q);if(this.opts.es5){var et=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(iY||(iY=Pe(["",".length"])),et),function(We){ve.var(Te,(0,n._)(rY||(rY=Pe(["","[","]"])),et,We)),ce(Te)})}return this._for(new D("of",je,Te,V),function(){return ce(Te)})}},{key:"forIn",value:function(q,V,ce){var ve=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(q,(0,n._)(oY||(oY=Pe(["Object.keys(",")"])),V),ce);var je=this._scope.toName(q);return this._for(new D("in",ve,je,V),function(){return ce(je)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(q){return this._leafNode(new c(q))}},{key:"break",value:function(q){return this._leafNode(new u(q))}},{key:"return",value:function(q){var V=new B;if(this._blockNode(V),this.code(q),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(B)}},{key:"try",value:function(q,V,ce){if(!V&&!ce)throw new Error('CodeGen: "try" without "catch" and "finally"');var ve=new z;if(this._blockNode(ve),this.code(q),V){var je=this.name("e");this._currNode=ve.catch=new j(je),V(je)}return ce&&(this._currNode=ve.finally=new U,this.code(ce)),this._endBlockNode(j,U)}},{key:"throw",value:function(q){return this._leafNode(new d(q))}},{key:"block",value:function(q,V){return this._blockStarts.push(this._nodes.length),q&&this.code(q).endBlock(V),this}},{key:"endBlock",value:function(q){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var ce=this._nodes.length-V;if(ce<0||void 0!==q&&ce!==q)throw new Error("CodeGen: wrong number of nodes: ".concat(ce," vs ").concat(q," expected"));return this._nodes.length=V,this}},{key:"func",value:function(q){var ve=arguments.length>3?arguments[3]:void 0;return this._blockNode(new E(q,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),ve&&this.code(ve).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(E)}},{key:"optimize",value:function(){for(var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;q-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(q){return this._currNode.nodes.push(q),this}},{key:"_blockNode",value:function(q){this._currNode.nodes.push(q),this._nodes.push(q)}},{key:"_endBlockNode",value:function(q,V){var ce=this._currNode;if(ce instanceof q||V&&ce instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(q.kind,"/").concat(V.kind):q.kind,'"'))}},{key:"_elseNode",value:function(q){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=q,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var q=this._nodes;return q[q.length-1]},set:function(q){var V=this._nodes;V[V.length-1]=q}}]),F}();function X(F,q){for(var V in q)F[V]=(F[V]||0)+(q[V]||0);return F}function oe(F,q){return q instanceof n._CodeOrName?X(F,q.names):F}function P(F,q,V){return F instanceof n.Name?ce(F):(ve=F)instanceof n._Code&&ve._items.some(function(je){return je instanceof n.Name&&1===q[je.str]&&void 0!==V[je.str]})?new n._Code(F._items.reduce(function(ve,je){return je instanceof n.Name&&(je=ce(je)),je instanceof n._Code?ve.push.apply(ve,ui(je._items)):ve.push(je),ve},[])):F;var ve;function ce(ve){var je=V[ve.str];return void 0===je||1!==q[ve.str]?ve:(delete q[ve.str],je)}}function W(F,q){for(var V in q)F[V]=(F[V]||0)-(q[V]||0)}function J(F){return"boolean"==typeof F||"number"==typeof F||null===F?!F:(0,n._)(sY||(sY=Pe(["!",""])),N(F))}t.CodeGen=G,t.not=J;var H=A(t.operators.AND);t.and=function(){for(var F=arguments.length,q=new Array(F),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,b,C,D){var E=void 0===C?b:C instanceof n.Name?(b instanceof n.Name?p(y,b,C):m(y,b,C),C):b instanceof n.Name?(m(y,C,b),b):g(b,C);return D!==n.Name||E instanceof n.Name?E:v(y,E)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(xY||(xY=Pe(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(wY||(wY=Pe(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=He(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(cY||(cY=Pe(["",""])),p)}return(0,n._)(uY||(uY=Pe(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=He(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(dY||(dY=Pe([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(hY||(hY=Pe([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(fY||(fY=Pe([""," || {}"])),m)).code((0,n._)(pY||(pY=Pe(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(mY||(mY=Pe([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(gY||(gY=Pe([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||nt(nt({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(vY||(vY=Pe([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(yY||(yY=Pe([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(_Y||(_Y=Pe([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(bY||(bY=Pe([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?CY||(CY=Pe(['"[" + ',' + "]"'])):SY||(SY=Pe(['"[\'" + ',' + "\']"'])):g?kY||(kY=Pe(['"/" + ',""])):DY||(DY=Pe(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(zr);var gge,vge,yge,iT={};function Vp(){if(gge)return iT;gge=1,Object.defineProperty(iT,"__esModule",{value:!0});var t=Tr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return iT.default=n,iT}function rT(){return vge||(vge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=Tr(),e=zr,i=Vp();function r(d,h){var f=d.const("err",h);d.if((0,n._)($Y||($Y=Pe([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(VY||(VY=Pe(["[","]"])),f))},(0,n._)(HY||(HY=Pe(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(UY||(UY=Pe(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(zY||(zY=Pe(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(GY||(GY=Pe(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(TY||(TY=Pe(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(EY||(EY=Pe(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(AY||(AY=Pe(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,b=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,b):o(m,(0,n._)(MY||(MY=Pe(["[","]"])),b))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(OY||(OY=Pe([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(IY||(IY=Pe(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(b){h.const(y,(0,n._)(NY||(NY=Pe(["","[","]"])),i.default.vErrors,b)),h.if((0,n._)(FY||(FY=Pe(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(PY||(PY=Pe(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(RY||(RY=Pe(["",".schemaPath"])),y),(0,n.str)(jY||(jY=Pe(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(LY||(LY=Pe(["",".schema"])),y),p),h.assign((0,n._)(BY||(BY=Pe(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(WY||(WY=Pe(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,b=d.it,C=b.opts,D=b.propertyName,E=b.topSchemaRef,B=b.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(JY||(JY=Pe(["{}"])))]),C.messages&&f.push([s.message,"function"==typeof m?m(d):m]),C.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(KY||(KY=Pe(["","",""])),E,B)],[i.default.data,v]),D&&f.push([s.propertyName,D])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(qY||(qY=Pe(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(YY||(YY=Pe(["","/",""])),p,f);return m&&(g=(0,n.str)(XY||(XY=Pe(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(cge)),cge}var ex={},_g={};Object.defineProperty(_g,"__esModule",{value:!0}),_g.getRules=_g.isJSONType=void 0;var bst=new Set(["string","number","integer","boolean","null","object","array"]);_g.isJSONType=function(t){return"string"==typeof t&&bst.has(t)},_g.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:nt(nt({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var _ge,xf={};function bge(){if(_ge)return xf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return _ge=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.shouldUseRule=xf.shouldUseGroup=xf.schemaHasRulesForType=void 0,xf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},xf.shouldUseGroup=t,xf.shouldUseRule=n,xf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=_g,i=bge(),r=rT(),o=Tr(),s=zr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var E,m=f.gen,g=f.data,v=f.opts,y=(E=v.coerceTypes)?p.filter(function(B){return l.has(B)||"array"===E&&"array"===B}):[],b=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(b){var C=u(p,g,v.strictNumbers,n.Wrong);m.if(C,function(){y.length?function(D,E,B){var z=D.gen,j=D.data,U=D.opts,G=z.let("dataType",(0,o._)(ZY||(ZY=Pe(["typeof ",""])),j)),X=z.let("coerced",(0,o._)(eX||(eX=Pe(["undefined"]))));"array"===U.coerceTypes&&z.if((0,o._)(tX||(tX=Pe([""," == 'object' && Array.isArray(",") && ",".length == 1"])),G,j,j),function(){return z.assign(j,(0,o._)(nX||(nX=Pe(["","[0]"])),j)).assign(G,(0,o._)(iX||(iX=Pe(["typeof ",""])),j)).if(u(E,j,U.strictNumbers),function(){return z.assign(X,j)})}),z.if((0,o._)(rX||(rX=Pe([""," !== undefined"])),X));var oe,P=He(B);try{for(P.s();!(oe=P.n()).done;){var W=oe.value;(l.has(W)||"array"===W&&"array"===U.coerceTypes)&&J(W)}}catch(H){P.e(H)}finally{P.f()}function J(H){switch(H){case"string":return void z.elseIf((0,o._)(sX||(sX=Pe(["",' == "number" || ',' == "boolean"'])),G,G)).assign(X,(0,o._)(aX||(aX=Pe(['"" + ',""])),j)).elseIf((0,o._)(lX||(lX=Pe([""," === null"])),j)).assign(X,(0,o._)(cX||(cX=Pe(['""']))));case"number":return void z.elseIf((0,o._)(uX||(uX=Pe(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),G,j,G,j,j,j)).assign(X,(0,o._)(dX||(dX=Pe(["+",""])),j));case"integer":return void z.elseIf((0,o._)(hX||(hX=Pe(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),G,j,G,j,j,j,j)).assign(X,(0,o._)(fX||(fX=Pe(["+",""])),j));case"boolean":return void z.elseIf((0,o._)(pX||(pX=Pe(["",' === "false" || '," === 0 || "," === null"])),j,j,j)).assign(X,!1).elseIf((0,o._)(mX||(mX=Pe(["",' === "true" || '," === 1"])),j,j)).assign(X,!0);case"null":return z.elseIf((0,o._)(gX||(gX=Pe(["",' === "" || '," === 0 || "," === false"])),j,j,j)),void z.assign(X,null);case"array":z.elseIf((0,o._)(vX||(vX=Pe(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),G,G,G,j)).assign(X,(0,o._)(yX||(yX=Pe(["[","]"])),j))}}z.else(),h(D),z.endIf(),z.if((0,o._)(oX||(oX=Pe([""," !== undefined"])),X),function(){var H,pe,A,N,F;z.assign(j,X),pe=X,N=(H=D).parentData,F=H.parentDataProperty,(A=H.gen).if((0,o._)(_X||(_X=Pe([""," !== undefined"])),N),function(){return A.assign((0,o._)(bX||(bX=Pe(["","[","]"])),N,F),pe)})})}(f,p,y):h(f)})}return b};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(xX||(xX=Pe([""," "," null"])),p,y);case"array":g=(0,o._)(wX||(wX=Pe(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(CX||(CX=Pe([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=b((0,o._)(SX||(SX=Pe(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=b();break;default:return(0,o._)(kX||(kX=Pe(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function b(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(DX||(DX=Pe(["typeof ",' == "number"'])),p),C,m?(0,o._)(TX||(TX=Pe(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var b=(0,o._)(EX||(EX=Pe(["typeof ",' != "object"'])),p);v=y.null?b:(0,o._)(AX||(AX=Pe(["!"," || ",""])),p,b),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var C in y.number&&delete y.integer,y)v=(0,o.and)(v,c(C,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(MX||(MX=Pe(["{type: ","}"])),p):(0,o._)(OX||(OX=Pe(["{type: ","}"])),m)}};function h(f){var m,g,v,y,b,p=(g=(m=f).gen,v=m.data,b=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:b,schemaValue:b,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(ex);var xge,wge,Cge,tx={},md={},go={};function gd(){if(wge)return go;wge=1,Object.defineProperty(go,"__esModule",{value:!0}),go.validateUnion=go.validateArray=go.usePattern=go.callValidateCode=go.schemaProperties=go.allSchemaProperties=go.noPropertyInData=go.propertyInData=go.isOwnProperty=go.hasPropFunc=go.reportMissingProp=go.checkMissingProp=go.checkReportMissingProp=void 0;var t=Tr(),n=zr,e=Vp(),i=zr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(LX||(LX=Pe(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(BX||(BX=Pe(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)(HX||(HX=Pe(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}go.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(RX||(RX=Pe(["",""])),u)},!0),c.error()})},go.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,ui(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(jX||(jX=Pe([""," = ",""])),d,m))})))},go.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},go.hasPropFunc=r,go.isOwnProperty=o,go.propertyInData=function(c,u,d,h){var f=(0,t._)($X||($X=Pe(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(VX||(VX=Pe([""," && ",""])),f,o(c,u,d)):f},go.noPropertyInData=s,go.allSchemaProperties=a,go.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},go.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,b=m.errorPath,C=c.it,D=h?(0,t._)(UX||(UX=Pe(["",", ",", ","",""])),f,p,v,y):p,E=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,b)],[e.default.parentData,C.parentData],[e.default.parentDataProperty,C.parentDataProperty],[e.default.rootData,e.default.rootData]];C.opts.dynamicRef&&E.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var B=(0,t._)(zX||(zX=Pe(["",", ",""])),D,g.object.apply(g,E));return d!==t.nil?(0,t._)(GX||(GX=Pe(["",".call(",", ",")"])),u,d,B):(0,t._)(WX||(WX=Pe(["","(",")"])),u,B)};var l=(0,t._)(qX||(qX=Pe(["new RegExp"])));return go.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(YX||(YX=Pe(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},go.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(XX||(XX=Pe(["",".length"])),d));u.forRange("i",0,y,function(b){c.subschema({keyword:h,dataProp:b,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},go.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(JX||(JX=Pe([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},go}var Sge,wf={},Ka={},kge=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==wn(n)&&"object"==wn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},mj={},wst={get exports(){return mj},set exports(t){mj=t}},Hp=wst.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),oT(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function oT(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==wn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Hp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!gj(t):!!n&&Dge(t)<=n)};var Tst=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function gj(t){for(var n in t){if(Tst.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(gj)||"object"==wn(e)&&gj(e))return!0}return!1}function Dge(t){var n=0;for(var e in t)if("$ref"===e||(n++,!Dst.has(e)&&("object"==wn(t[e])&&(0,Cst.eachItem)(t[e],function(i){return n+=Dge(i)}),n===1/0)))return 1/0;return n}function Tge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=u1(n));var i=t.parse(n);return Ege(t,i)}function Ege(t,n){return t.serialize(n).split("#")[0]+"#"}Ka.getFullPath=Tge,Ka._getFullPath=Ege;var Est=/#\/?$/;function u1(t){return t?t.replace(Est,""):""}Ka.normalizeId=u1,Ka.resolveUrl=function(t,n,e){return e=u1(e),t.resolve(n,e)};var Age,Ast=/^[a-z_][-a-z0-9._]*$/i;function sT(){if(Age)return bf;Age=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.getData=bf.KeywordCxt=bf.validateFunctionCode=void 0;var t=function(){if(yge)return yg;yge=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.boolOrEmptySchema=yg.topBoolOrEmptySchema=void 0;var P=rT(),W=Tr(),J=Vp(),H={message:"boolean schema is false"};function pe(A,N){(0,P.reportError)({gen:A.gen,keyword:"false schema",data:A.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:A},H,void 0,N)}return yg.topBoolOrEmptySchema=function(A){var N=A.gen,F=A.schema,q=A.validateName;!1===F?pe(A,!1):"object"==wn(F)&&!0===F.$async?N.return(J.default.data):(N.assign((0,W._)(QY||(QY=Pe(["",".errors"])),q),null),N.return(!0))},yg.boolOrEmptySchema=function(A,N){var F=A.gen;!1===A.schema?(F.var(N,!1),pe(A)):F.var(N,!0)},yg}(),n=ex,e=bge(),i=ex,r=function(){if(xge)return tx;xge=1,Object.defineProperty(tx,"__esModule",{value:!0}),tx.assignDefaults=void 0;var P=Tr(),W=zr;function J(H,pe,A){var N=H.gen,F=H.compositeRule,q=H.data,V=H.opts;if(void 0!==A){var ce=(0,P._)(IX||(IX=Pe(["","",""])),q,(0,P.getProperty)(pe));if(F)(0,W.checkStrictMode)(H,"default is ignored for: ".concat(ce));else{var ve=(0,P._)(NX||(NX=Pe([""," === undefined"])),ce);"empty"===V.useDefaults&&(ve=(0,P._)(FX||(FX=Pe([""," || "," === null || ",' === ""'])),ve,ce,ce)),N.if(ve,(0,P._)(PX||(PX=Pe([""," = ",""])),ce,(0,P.stringify)(A)))}}}return tx.assignDefaults=function(H,pe){var A=H.schema,N=A.properties,F=A.items;if("object"===pe&&N)for(var q in N)J(H,q,N[q].default);else"array"===pe&&Array.isArray(F)&&F.forEach(function(V,ce){return J(H,ce,V.default)})},tx}(),o=function xst(){if(Cge)return md;Cge=1,Object.defineProperty(md,"__esModule",{value:!0}),md.validateKeywordUsage=md.validSchemaType=md.funcKeywordCode=md.macroKeywordCode=void 0;var t=Tr(),n=Vp(),e=gd(),i=rT();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(iJ||(iJ=Pe(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return md.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},md.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(C,D){if(D.async&&!C.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(tJ||(tJ=Pe(["await "]))):t.nil,D=p.opts.passContext?n.default.this:n.default.self,E=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(nJ||(nJ=Pe(["","",""])),C,(0,e.callValidateCode)(s,g,D,E)),a.modifying)}function b(C){var D;c.if((0,t.not)(null!==(D=a.valid)&&void 0!==D?D:v),C)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),b(function(){return s.error()});else{var C=a.async?(E=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(KX||(KX=Pe(["await "]))))},function(B){return c.assign(v,!1).if((0,t._)(QX||(QX=Pe([""," instanceof ",""])),B,p.ValidationError),function(){return c.assign(E,(0,t._)(ZX||(ZX=Pe(["",".errors"])),B))},function(){return c.throw(B)})}),E):(D=(0,t._)(eJ||(eJ=Pe(["",".errors"])),g),c.assign(D,null),y(t.nil),D);a.modifying&&r(s),b(function(){return function(E,B){var z=E.gen;z.if((0,t._)(rJ||(rJ=Pe(["Array.isArray(",")"])),B),function(){z.assign(n.default.vErrors,(0,t._)(oJ||(oJ=Pe([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,B,n.default.vErrors,B)).assign(n.default.errors,(0,t._)(sJ||(sJ=Pe(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(E)},function(){return E.error()})}(s,C)})}var E,D}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},md.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==wn(s)&&!Array.isArray(s):wn(s)==c||l&&void 0===s})},md.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},md}(),s=function(){if(Sge)return wf;Sge=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.extendSubschemaMode=wf.extendSubschemaData=wf.getSubschema=void 0;var P=Tr(),W=zr;return wf.getSubschema=function(J,H){var pe=H.keyword,A=H.schemaProp,N=H.schema,F=H.schemaPath,q=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==pe&&void 0!==N)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==pe){var ce=J.schema[pe];return void 0===A?{schema:ce,schemaPath:(0,P._)(aJ||(aJ=Pe(["","",""])),J.schemaPath,(0,P.getProperty)(pe)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(pe)}:{schema:ce[A],schemaPath:(0,P._)(lJ||(lJ=Pe(["","","",""])),J.schemaPath,(0,P.getProperty)(pe),(0,P.getProperty)(A)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(pe,"/").concat((0,W.escapeFragment)(A))}}if(void 0!==N){if(void 0===F||void 0===q||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:N,schemaPath:F,topSchemaRef:V,errSchemaPath:q}}throw new Error('either "keyword" or "schema" must be passed')},wf.extendSubschemaData=function(J,H,pe){var A=pe.dataProp,N=pe.dataPropType,F=pe.data,q=pe.dataTypes,V=pe.propertyName;if(void 0!==F&&void 0!==A)throw new Error('both "data" and "dataProp" passed, only one allowed');var ce=H.gen;if(void 0!==A){var ve=H.errorPath,je=H.dataPathArr,Te=H.opts;et(ce.let("data",(0,P._)(cJ||(cJ=Pe(["","",""])),H.data,(0,P.getProperty)(A)),!0)),J.errorPath=(0,P.str)(uJ||(uJ=Pe(["","",""])),ve,(0,W.getErrorPath)(A,N,Te.jsPropertySyntax)),J.parentDataProperty=(0,P._)(dJ||(dJ=Pe(["",""])),A),J.dataPathArr=[].concat(ui(je),[J.parentDataProperty])}function et(We){J.data=We,J.dataLevel=H.dataLevel+1,J.dataTypes=[],H.definedProperties=new Set,J.parentData=H.data,J.dataNames=[].concat(ui(H.dataNames),[We])}void 0!==F&&(et(F instanceof P.Name?F:ce.let("data",F,!0)),void 0!==V&&(J.propertyName=V)),q&&(J.dataTypes=q)},wf.extendSubschemaMode=function(J,H){var pe=H.jtdDiscriminator,A=H.jtdMetadata,N=H.compositeRule,F=H.createErrors,q=H.allErrors;void 0!==N&&(J.compositeRule=N),void 0!==F&&(J.createErrors=F),void 0!==q&&(J.allErrors=q),J.jtdDiscriminator=pe,J.jtdMetadata=A},wf}(),a=Tr(),l=Vp(),c=Ka,u=zr,d=rT();function h(P,W){var F,J=P.gen,H=P.validateName,pe=P.schema,A=P.schemaEnv,N=P.opts;N.code.es5?J.func(H,(0,a._)(hJ||(hJ=Pe(["",", ",""])),l.default.data,l.default.valCxt),A.$async,function(){var F,q;J.code((0,a._)(fJ||(fJ=Pe(['"use strict"; ',""])),f(pe,N))),q=N,(F=J).if(l.default.valCxt,function(){F.var(l.default.instancePath,(0,a._)(vJ||(vJ=Pe(["",".",""])),l.default.valCxt,l.default.instancePath)),F.var(l.default.parentData,(0,a._)(yJ||(yJ=Pe(["",".",""])),l.default.valCxt,l.default.parentData)),F.var(l.default.parentDataProperty,(0,a._)(_J||(_J=Pe(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),F.var(l.default.rootData,(0,a._)(bJ||(bJ=Pe(["",".",""])),l.default.valCxt,l.default.rootData)),q.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(xJ||(xJ=Pe(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){F.var(l.default.instancePath,(0,a._)(wJ||(wJ=Pe(['""'])))),F.var(l.default.parentData,(0,a._)(CJ||(CJ=Pe(["undefined"])))),F.var(l.default.parentDataProperty,(0,a._)(SJ||(SJ=Pe(["undefined"])))),F.var(l.default.rootData,l.default.data),q.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(kJ||(kJ=Pe(["{}"]))))}),J.code(W)}):J.func(H,(0,a._)(pJ||(pJ=Pe(["",", ",""])),l.default.data,(F=N,(0,a._)(mJ||(mJ=Pe(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,F.dynamicRef?(0,a._)(gJ||(gJ=Pe([", ","={}"])),l.default.dynamicAnchors):a.nil))),A.$async,function(){return J.code(f(pe,N)).code(W)})}function f(P,W){var J="object"==wn(P)&&P[W.schemaId];return J&&(W.code.source||W.code.process)?(0,a._)(NJ||(NJ=Pe(["/*# sourceURL="," */"])),J):a.nil}function m(P){var W=P.schema,J=P.self;if("boolean"==typeof W)return!W;for(var H in W)if(J.RULES.all[H])return!0;return!1}function g(P){return"boolean"!=typeof P.schema}function v(P){var W,J,H,A;(0,u.checkUnknownRules)(P),H=(W=P).errSchemaPath,A=W.self,(J=W.schema).$ref&&W.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(J,A.RULES)&&A.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(P,W){if(P.opts.jtd)return C(P,[],!1,W);var J=(0,n.getSchemaTypes)(P.schema);C(P,J,!(0,n.coerceAndCheckDataType)(P,J),W)}function b(P){var W=P.gen,J=P.schemaEnv,pe=P.errSchemaPath,A=P.opts,N=P.schema.$comment;if(!0===A.$comment)W.code((0,a._)(PJ||(PJ=Pe(["",".logger.log(",")"])),l.default.self,N));else if("function"==typeof A.$comment){var F=(0,a.str)(RJ||(RJ=Pe(["","/$comment"])),pe),q=W.scopeValue("root",{ref:J.root});W.code((0,a._)(jJ||(jJ=Pe(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,N,F,q))}}function C(P,W,J,H){var ve,je,Te,et,pe=P.gen,A=P.schema,N=P.data,F=P.allErrors,q=P.opts,V=P.self.RULES;function ce(ve){(0,e.shouldUseGroup)(A,ve)&&(ve.type?(pe.if((0,i.checkDataType)(ve.type,N,q.strictNumbers)),D(P,ve),1===W.length&&W[0]===ve.type&&J&&(pe.else(),(0,i.reportTypeError)(P)),pe.endIf()):D(P,ve),F||pe.if((0,a._)(zJ||(zJ=Pe([""," === ",""])),l.default.errors,H||0)))}!A.$ref||!q.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(A,V)?(q.jtd||(je=W,(ve=P).schemaEnv.meta||!ve.opts.strictTypes||(function(Te,et){if(et.length){if(!Te.dataTypes.length)return void(Te.dataTypes=et);et.forEach(function(We){B(Te.dataTypes,We)||z(Te,'type "'.concat(We,'" not allowed by context "').concat(Te.dataTypes.join(","),'"'))}),function(We,st){var $,ae=[],le=He(We.dataTypes);try{for(le.s();!($=le.n()).done;){var Re=$.value;B(st,Re)?ae.push(Re):st.includes("integer")&&"number"===Re&&ae.push("integer")}}catch(Ze){le.e(Ze)}finally{le.f()}We.dataTypes=ae}(Te,et)}}(ve,je),ve.opts.allowUnionTypes||(Te=ve,(et=je).length>1&&(2!==et.length||!et.includes("null"))&&z(Te,"use allowUnionTypes to allow union type keyword")),function(Te,et){var We=Te.self.RULES.all;for(var st in We){var $=We[st];if("object"==wn($)&&(0,e.shouldUseRule)(Te.schema,$)){var ae=$.definition.type;ae.length&&!ae.some(function(le){return E(et,le)})&&z(Te,'missing type "'.concat(ae.join(","),'" for keyword "').concat(st,'"'))}}}(ve,ve.dataTypes))),pe.block(function(){var ve,je=He(V.rules);try{for(je.s();!(ve=je.n()).done;)ce(ve.value)}catch(Te){je.e(Te)}finally{je.f()}ce(V.post)})):pe.block(function(){return U(P,"$ref",V.all.$ref.definition)})}function D(P,W){var J=P.gen,H=P.schema;P.opts.useDefaults&&(0,r.assignDefaults)(P,W.type),J.block(function(){var pe,A=He(W.rules);try{for(A.s();!(pe=A.n()).done;){var N=pe.value;(0,e.shouldUseRule)(H,N)&&U(P,N.keyword,N.definition,W.type)}}catch(F){A.e(F)}finally{A.f()}})}function E(P,W){return P.includes(W)||"number"===W&&P.includes("integer")}function B(P,W){return P.includes(W)||"integer"===W&&P.includes("number")}function z(P,W){W+=' at "'.concat(P.schemaEnv.baseId+P.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(P,W,P.opts.strictTypes)}bf.validateFunctionCode=function(P){var W,J,H,pe;g(P)&&(v(P),m(P))?(J=(W=P).schema,H=W.opts,pe=W.gen,h(W,function(){var A,F;H.$comment&&J.$comment&&b(W),F=(A=W).opts,void 0!==A.schema.default&&F.useDefaults&&F.strictSchema&&(0,u.checkStrictMode)(A,"default is ignored in the schema root"),pe.let(l.default.vErrors,null),pe.let(l.default.errors,0),H.unevaluated&&function(A){var N=A.gen,F=A.validateName;A.evaluated=N.const("evaluated",(0,a._)(DJ||(DJ=Pe(["",".evaluated"])),F)),N.if((0,a._)(TJ||(TJ=Pe(["",".dynamicProps"])),A.evaluated),function(){return N.assign((0,a._)(EJ||(EJ=Pe(["",".props"])),A.evaluated),(0,a._)(AJ||(AJ=Pe(["undefined"]))))}),N.if((0,a._)(MJ||(MJ=Pe(["",".dynamicItems"])),A.evaluated),function(){return N.assign((0,a._)(OJ||(OJ=Pe(["",".items"])),A.evaluated),(0,a._)(IJ||(IJ=Pe(["undefined"]))))})}(W),y(W),function(A){var ve,je,Te,et,We,N=A.gen,q=A.validateName,V=A.ValidationError,ce=A.opts;A.schemaEnv.$async?N.if((0,a._)(LJ||(LJ=Pe([""," === 0"])),l.default.errors),function(){return N.return(l.default.data)},function(){return N.throw((0,a._)(BJ||(BJ=Pe(["new ","(",")"])),V,l.default.vErrors))}):(N.assign((0,a._)($J||($J=Pe(["",".errors"])),q),l.default.vErrors),ce.unevaluated&&(je=(ve=A).gen,Te=ve.evaluated,We=ve.items,(et=ve.props)instanceof a.Name&&je.assign((0,a._)(HJ||(HJ=Pe(["",".props"])),Te),et),We instanceof a.Name&&je.assign((0,a._)(UJ||(UJ=Pe(["",".items"])),Te),We)),N.return((0,a._)(VJ||(VJ=Pe([""," === 0"])),l.default.errors)))}(W)})):h(P,function(){return(0,t.topBoolOrEmptySchema)(P)})};var j=function(){function P(W,J,H){if(Oe(this,P),(0,o.validateKeywordUsage)(W,J,H),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=H,this.data=W.data,this.schema=W.schema[H],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(W,this.schema,H,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",oe(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(J.schemaType)));("code"in J?J.trackErrors:!1!==J.errors)&&(this.errsCount=W.gen.const("_errs",l.default.errors))}return Ie(P,[{key:"result",value:function(W,J,H){this.failResult((0,a.not)(W),J,H)}},{key:"failResult",value:function(W,J,H){this.gen.if(W),H?H():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(W,J){this.failResult((0,a.not)(W),void 0,J)}},{key:"fail",value:function(W){if(void 0===W)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(W){if(!this.$data)return this.fail(W);var J=this.schemaCode;this.fail((0,a._)(GJ||(GJ=Pe([""," !== undefined && (",")"])),J,(0,a.or)(this.invalid$data(),W)))}},{key:"error",value:function(W,J,H){if(J)return this.setParams(J),this._error(W,H),void this.setParams({});this._error(W,H)}},{key:"_error",value:function(W,J){(W?d.reportExtraError:d.reportError)(this,this.def.error,J)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(W){this.allErrors||this.gen.if(W)}},{key:"setParams",value:function(W,J){J?Object.assign(this.params,W):this.params=W}},{key:"block$data",value:function(W,J){var H=this,pe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(W,pe),J()})}},{key:"check$data",value:function(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,pe=this.schemaCode,A=this.schemaType,N=this.def;H.if((0,a.or)((0,a._)(WJ||(WJ=Pe([""," === undefined"])),pe),J)),W!==a.nil&&H.assign(W,!0),(A.length||N.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),W!==a.nil&&H.assign(W,!1)),H.else()}}},{key:"invalid$data",value:function(){var W=this.gen,J=this.schemaCode,H=this.schemaType,pe=this.def,A=this.it;return(0,a.or)(function(){if(H.length){if(!(J instanceof a.Name))throw new Error("ajv implementation error");var N=Array.isArray(H)?H:[H];return(0,a._)(qJ||(qJ=Pe(["",""])),(0,i.checkDataTypes)(N,J,A.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(pe.validateSchema){var N=W.scopeValue("validate$data",{ref:pe.validateSchema});return(0,a._)(YJ||(YJ=Pe(["!","(",")"])),N,J)}return a.nil}())}},{key:"subschema",value:function(W,J){var H=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(H,this.it,W),(0,s.extendSubschemaMode)(H,W);var pe=nt(nt(nt({},this.it),H),{},{items:void 0,props:void 0});return function p(P,W){g(P)&&(v(P),m(P))?function(J,H){var F,q,A=J.gen;J.opts.$comment&&J.schema.$comment&&b(J),(q=(F=J).schema[F.opts.schemaId])&&(F.baseId=(0,c.resolveUrl)(F.opts.uriResolver,F.baseId,q)),function(F){if(F.schema.$async&&!F.schemaEnv.$async)throw new Error("async schema in sync schema")}(J);var N=A.const("_errs",l.default.errors);y(J,N),A.var(H,(0,a._)(FJ||(FJ=Pe([""," === ",""])),N,l.default.errors))}(P,W):(0,t.boolOrEmptySchema)(P,W)}(pe,J),pe}},{key:"mergeEvaluated",value:function(W,J){var H=this.it,pe=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==W.props&&(H.props=u.mergeEvaluated.props(pe,W.props,H.props,J)),!0!==H.items&&void 0!==W.items&&(H.items=u.mergeEvaluated.items(pe,W.items,H.items,J)))}},{key:"mergeValidEvaluated",value:function(W,J){var H=this,pe=this.it;if(pe.opts.unevaluated&&(!0!==pe.props||!0!==pe.items))return this.gen.if(J,function(){return H.mergeEvaluated(W,a.Name)}),!0}}]),P}();function U(P,W,J,H){var pe=new j(P,J,W);"code"in J?J.code(pe,H):pe.$data&&J.validate?(0,o.funcKeywordCode)(pe,J):"macro"in J?(0,o.macroKeywordCode)(pe,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(pe,J)}bf.KeywordCxt=j;var G=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oe(P,W){var J,H,pe=W.dataLevel,A=W.dataNames,N=W.dataPathArr;if(""===P)return l.default.rootData;if("/"===P[0]){if(!G.test(P))throw new Error("Invalid JSON-pointer: ".concat(P));J=P,H=l.default.rootData}else{var F=X.exec(P);if(!F)throw new Error("Invalid JSON-pointer: ".concat(P));var q=+F[1];if("#"===(J=F[2])){if(q>=pe)throw new Error(Te("property/index",q));return N[pe-q]}if(q>pe)throw new Error(Te("data",q));if(H=A[pe-q],!J)return H}var V,ce=H,ve=He(J.split("/"));try{for(ve.s();!(V=ve.n()).done;){var je=V.value;je&&(H=(0,a._)(XJ||(XJ=Pe(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(je))),ce=(0,a._)(JJ||(JJ=Pe([""," && ",""])),ce,H))}}catch(et){ve.e(et)}finally{ve.f()}return ce;function Te(et,We){return"Cannot access ".concat(et," ").concat(We," levels up, current level is ").concat(pe)}}return bf.getData=oe,bf}Ka.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=u1(t[r]||n),a={"":s},l=Tge(o,s,!1),c={},u=new Set;return kst(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=b.call(e,f[r])),C.call(e,f.$anchor),C.call(e,f.$dynamicAnchor),a[p]=y}function b(D){if(D=u1(y?(0,this.opts.uriResolver.resolve)(y,D):D),u.has(D))throw h(D);u.add(D);var B=this.refs[D];return"string"==typeof B&&(B=this.refs[B]),"object"==wn(B)?d(f,B.schema,D):D!==u1(v)&&("#"===D[0]?(d(f,c[D],D),c[D]=f):this.refs[D]=v),D}function C(D){if("string"==typeof D){if(!Ast.test(D))throw new Error('invalid anchor "'.concat(D,'"'));b.call(this,"#".concat(D))}}}),c;function d(f,p,m){if(void 0!==p&&!Sst(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var Mge,aT={};function vj(){if(Mge)return aT;Mge=1,Object.defineProperty(aT,"__esModule",{value:!0});var t=function(n){Dt(i,O_(Error));var e=Tt(i);function i(r){var o;return Oe(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Ie(i)}();return aT.default=t,aT}var Oge,lT={};function yj(){if(Oge)return lT;Oge=1,Object.defineProperty(lT,"__esModule",{value:!0});var t=Ka,n=function(e){Dt(r,O_(Error));var i=Tt(r);function r(o,s,a,l){var c;return Oe(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Ie(r)}();return lT.default=n,lT}var sc={};Object.defineProperty(sc,"__esModule",{value:!0}),sc.resolveSchema=sc.getCompilingSchema=sc.resolveRef=sc.compileSchema=sc.SchemaEnv=void 0;var vd=Tr(),Mst=vj(),bg=Vp(),yd=Ka,Ige=zr,Ost=sT(),cT=Ie(function t(n){var e,i;Oe(this,t),this.refs={},this.dynamicAnchors={},"object"==wn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,yd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function _j(t){var n=Nge.call(this,t);if(n)return n;var e,i=(0,yd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new vd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:Mst.default,code:(0,vd._)(KJ||(KJ=Pe(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:bg.default.data,parentData:bg.default.parentData,parentDataProperty:bg.default.parentDataProperty,dataNames:[bg.default.data],dataPathArr:[vd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,vd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:vd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vd._)(QJ||(QJ=Pe(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,Ost.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(bg.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(bg.default.self),"".concat(bg.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof vd.Name?void 0:p,items:m instanceof vd.Name?void 0:m,dynamicProps:p instanceof vd.Name,dynamicItems:m instanceof vd.Name},f.source&&(f.source.evaluated=(0,vd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function Ist(t){return(0,yd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:_j.call(this,t)}function Nge(t){var n,e,i,r=He(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function Nst(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||uT.call(this,t,n)}function uT(t,n){var e=this.opts.uriResolver.parse(n),i=(0,yd._getFullPath)(this.opts.uriResolver,e),r=(0,yd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return bj.call(this,e,t);var o=(0,yd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=uT.call(this,t,s);return"object"!==wn(a?.schema)?void 0:bj.call(this,e,a)}if("object"===wn(s?.schema)){if(s.validate||_j.call(this,s),o===(0,yd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,yd.resolveUrl)(this.opts.uriResolver,r,u)),new cT({schema:l,schemaId:c,root:t,baseId:r})}return bj.call(this,e,s)}}sc.SchemaEnv=cT,sc.compileSchema=_j,sc.resolveRef=function(t,n,e){var i;e=(0,yd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=Nst.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new cT({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=Ist.call(this,o):void 0},sc.getCompilingSchema=Nge,sc.resolveSchema=uT;var Fst=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function bj(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=He(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,Ige.unescapeFragment)(c)];if(void 0===u)return;var d="object"===wn(r=u)&&r[this.opts.schemaId];!Fst.has(c)&&d&&(i=(0,yd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,Ige.schemaHasRulesButRef)(r,this.RULES)){var h=(0,yd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=uT.call(this,o,h)}return(a=a||new cT({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var Pst={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},xj={},Fge={};(function(t){function n(){for(var Ee=arguments.length,qe=Array(Ee),Ke=0;Ke1){qe[0]=qe[0].slice(0,-1);for(var dt=qe.length-1,Ye=1;Ye= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=Math.floor,G=String.fromCharCode;function X(Ee){throw new RangeError(z[Ee])}function P(Ee,qe){var Ke=Ee.split("@"),dt="";return Ke.length>1&&(dt=Ke[0]+"@",Ee=Ke[1]),dt+function oe(Ee,qe){for(var Ke=[],dt=Ee.length;dt--;)Ke[dt]=qe(Ee[dt]);return Ke}((Ee=Ee.replace(B,".")).split("."),qe).join(".")}function W(Ee){for(var qe=[],Ke=0,dt=Ee.length;Ke=55296&&Ye<=56319&&Ke>1,Ee+=U(Ee/qe);Ee>455;dt+=f)Ee=U(Ee/35);return U(dt+36*Ee/(Ee+38))},N=function(Ee){var qe=[],Ke=Ee.length,dt=0,Ye=128,In=72,li=Ee.lastIndexOf("-");li<0&&(li=0);for(var vi=0;vi=128&&X("not-basic"),qe.push(Ee.charCodeAt(vi));for(var gi=li>0?li+1:0;gi=Ke&&X("invalid-input");var Sr=H(Ee.charCodeAt(gi++));(Sr>=f||Sr>U((h-dt)/to))&&X("overflow"),dt+=Sr*to;var Fe=xi<=In?1:xi>=In+26?26:xi-In;if(SrU(h/At)&&X("overflow"),to*=At}var Gt=qe.length+1;In=A(dt-Mr,Gt,0==Mr),U(dt/Gt)>h-Ye&&X("overflow"),Ye+=U(dt/Gt),dt%=Gt,qe.splice(dt++,0,Ye)}return String.fromCodePoint.apply(String,qe)},F=function(Ee){var qe=[],Ke=(Ee=W(Ee)).length,dt=128,Ye=0,In=72,li=!0,vi=!1,gi=void 0;try{for(var Mr,to=Ee[Symbol.iterator]();!(li=(Mr=to.next()).done);li=!0){var xi=Mr.value;xi<128&&qe.push(G(xi))}}catch(wd){vi=!0,gi=wd}finally{try{!li&&to.return&&to.return()}finally{if(vi)throw gi}}var Sr=qe.length,Fe=Sr;for(Sr&&qe.push("-");Fe=dt&&GnU((h-Ye)/ai)&&X("overflow"),Ye+=(At-dt)*ai,dt=At;var ni=!0,kr=!1,Fr=void 0;try{for(var jo,ba=Ee[Symbol.iterator]();!(ni=(jo=ba.next()).done);ni=!0){var bd=jo.value;if(bdh&&X("overflow"),bd==dt){for(var bu=Ye,xa=f;;xa+=f){var Bl=xa<=In?1:xa>=In+26?26:xa-In;if(bu>6|192).toString(16).toUpperCase()+"%"+(63&qe|128).toString(16).toUpperCase():"%"+(qe>>12|224).toString(16).toUpperCase()+"%"+(qe>>6&63|128).toString(16).toUpperCase()+"%"+(63&qe|128).toString(16).toUpperCase()}function Te(Ee){for(var qe="",Ke=0,dt=Ee.length;Ke=194&&Ye<224){if(dt-Ke>=6){var In=parseInt(Ee.substr(Ke+4,2),16);qe+=String.fromCharCode((31&Ye)<<6|63&In)}else qe+=Ee.substr(Ke,6);Ke+=6}else if(Ye>=224){if(dt-Ke>=9){var li=parseInt(Ee.substr(Ke+4,2),16),vi=parseInt(Ee.substr(Ke+7,2),16);qe+=String.fromCharCode((15&Ye)<<12|(63&li)<<6|63&vi)}else qe+=Ee.substr(Ke,9);Ke+=9}else qe+=Ee.substr(Ke,3),Ke+=3}return qe}function et(Ee,qe){function Ke(dt){var Ye=Te(dt);return Ye.match(qe.UNRESERVED)?Ye:dt}return Ee.scheme&&(Ee.scheme=String(Ee.scheme).replace(qe.PCT_ENCODED,Ke).toLowerCase().replace(qe.NOT_SCHEME,"")),void 0!==Ee.userinfo&&(Ee.userinfo=String(Ee.userinfo).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_USERINFO,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.host&&(Ee.host=String(Ee.host).replace(qe.PCT_ENCODED,Ke).toLowerCase().replace(qe.NOT_HOST,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.path&&(Ee.path=String(Ee.path).replace(qe.PCT_ENCODED,Ke).replace(Ee.scheme?qe.NOT_PATH:qe.NOT_PATH_NOSCHEME,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.query&&(Ee.query=String(Ee.query).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_QUERY,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.fragment&&(Ee.fragment=String(Ee.fragment).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_FRAGMENT,je).replace(qe.PCT_ENCODED,r)),Ee}function We(Ee){return Ee.replace(/^0*(.*)/,"$1")||"0"}function st(Ee,qe){var Ke=Ee.match(qe.IPV4ADDRESS)||[],dt=u(Ke,2)[1];return dt?dt.split(".").map(We).join("."):Ee}function $(Ee,qe){var Ke=Ee.match(qe.IPV6ADDRESS)||[],dt=u(Ke,3),Ye=dt[1],In=dt[2];if(Ye){for(var li=Ye.toLowerCase().split("::").reverse(),vi=u(li,2),gi=vi[0],Mr=vi[1],to=Mr?Mr.split(":").map(We):[],xi=gi.split(":").map(We),Sr=qe.IPV4ADDRESS.test(xi[xi.length-1]),Fe=Sr?7:8,At=xi.length-Fe,Gt=Array(Fe),ln=0;ln1){var $i=Gt.slice(0,mn.index),Gn=Gt.slice(mn.index+mn.length);ci=$i.join(":")+"::"+Gn.join(":")}else ci=Gt.join(":");return In&&(ci+="%"+In),ci}return Ee}var ae=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,le=void 0==="".match(/(){0}/)[1];function Re(Ee){var qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke={},dt=!1!==qe.iri?c:l;"suffix"===qe.reference&&(Ee=(qe.scheme?qe.scheme+":":"")+"//"+Ee);var Ye=Ee.match(ae);if(Ye){le?(Ke.scheme=Ye[1],Ke.userinfo=Ye[3],Ke.host=Ye[4],Ke.port=parseInt(Ye[5],10),Ke.path=Ye[6]||"",Ke.query=Ye[7],Ke.fragment=Ye[8],isNaN(Ke.port)&&(Ke.port=Ye[5])):(Ke.scheme=Ye[1]||void 0,Ke.userinfo=-1!==Ee.indexOf("@")?Ye[3]:void 0,Ke.host=-1!==Ee.indexOf("//")?Ye[4]:void 0,Ke.port=parseInt(Ye[5],10),Ke.path=Ye[6]||"",Ke.query=-1!==Ee.indexOf("?")?Ye[7]:void 0,Ke.fragment=-1!==Ee.indexOf("#")?Ye[8]:void 0,isNaN(Ke.port)&&(Ke.port=Ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ye[4]:void 0)),Ke.host&&(Ke.host=$(st(Ke.host,dt),dt)),Ke.reference=void 0!==Ke.scheme||void 0!==Ke.userinfo||void 0!==Ke.host||void 0!==Ke.port||Ke.path||void 0!==Ke.query?void 0===Ke.scheme?"relative":void 0===Ke.fragment?"absolute":"uri":"same-document",qe.reference&&"suffix"!==qe.reference&&qe.reference!==Ke.reference&&(Ke.error=Ke.error||"URI is not a "+qe.reference+" reference.");var In=ve[(qe.scheme||Ke.scheme||"").toLowerCase()];if(qe.unicodeSupport||In&&In.unicodeSupport)et(Ke,dt);else{if(Ke.host&&(qe.domainHost||In&&In.domainHost))try{Ke.host=ce.toASCII(Ke.host.replace(dt.PCT_ENCODED,Te).toLowerCase())}catch(li){Ke.error=Ke.error||"Host's domain name can not be converted to ASCII via punycode: "+li}et(Ke,l)}In&&In.parse&&In.parse(Ke,qe)}else Ke.error=Ke.error||"URI can not be parsed.";return Ke}var Ve=/^\.\.?\//,Ct=/^\/\.(\/|$)/,Ot=/^\/\.\.(\/|$)/,yn=/^\/?(?:.|\n)*?(?=\/|$)/;function Xn(Ee){for(var qe=[];Ee.length;)if(Ee.match(Ve))Ee=Ee.replace(Ve,"");else if(Ee.match(Ct))Ee=Ee.replace(Ct,"/");else if(Ee.match(Ot))Ee=Ee.replace(Ot,"/"),qe.pop();else if("."===Ee||".."===Ee)Ee="";else{var Ke=Ee.match(yn);if(!Ke)throw new Error("Unexpected dot segment condition");var dt=Ke[0];Ee=Ee.slice(dt.length),qe.push(dt)}return qe.join("")}function on(Ee){var qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=qe.iri?c:l,dt=[],Ye=ve[(qe.scheme||Ee.scheme||"").toLowerCase()];if(Ye&&Ye.serialize&&Ye.serialize(Ee,qe),Ee.host&&!Ke.IPV6ADDRESS.test(Ee.host)&&(qe.domainHost||Ye&&Ye.domainHost))try{Ee.host=qe.iri?ce.toUnicode(Ee.host):ce.toASCII(Ee.host.replace(Ke.PCT_ENCODED,Te).toLowerCase())}catch(vi){Ee.error=Ee.error||"Host's domain name can not be converted to "+(qe.iri?"Unicode":"ASCII")+" via punycode: "+vi}et(Ee,Ke),"suffix"!==qe.reference&&Ee.scheme&&(dt.push(Ee.scheme),dt.push(":"));var In=function Ze(Ee,qe){var Ke=!1!==qe.iri?c:l,dt=[];return void 0!==Ee.userinfo&&(dt.push(Ee.userinfo),dt.push("@")),void 0!==Ee.host&&dt.push($(st(String(Ee.host),Ke),Ke).replace(Ke.IPV6ADDRESS,function(Ye,In,li){return"["+In+(li?"%25"+li:"")+"]"})),"number"!=typeof Ee.port&&"string"!=typeof Ee.port||(dt.push(":"),dt.push(String(Ee.port))),dt.length?dt.join(""):void 0}(Ee,qe);if(void 0!==In&&("suffix"!==qe.reference&&dt.push("//"),dt.push(In),Ee.path&&"/"!==Ee.path.charAt(0)&&dt.push("/")),void 0!==Ee.path){var li=Ee.path;qe.absolutePath||Ye&&Ye.absolutePath||(li=Xn(li)),void 0===In&&(li=li.replace(/^\/\//,"/%2F")),dt.push(li)}return void 0!==Ee.query&&(dt.push("?"),dt.push(Ee.query)),void 0!==Ee.fragment&&(dt.push("#"),dt.push(Ee.fragment)),dt.join("")}function Ri(Ee,qe){var Ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},dt={};return arguments[3]||(Ee=Re(on(Ee,Ke),Ke),qe=Re(on(qe,Ke),Ke)),!(Ke=Ke||{}).tolerant&&qe.scheme?(dt.scheme=qe.scheme,dt.userinfo=qe.userinfo,dt.host=qe.host,dt.port=qe.port,dt.path=Xn(qe.path||""),dt.query=qe.query):(void 0!==qe.userinfo||void 0!==qe.host||void 0!==qe.port?(dt.userinfo=qe.userinfo,dt.host=qe.host,dt.port=qe.port,dt.path=Xn(qe.path||""),dt.query=qe.query):(qe.path?("/"===qe.path.charAt(0)?dt.path=Xn(qe.path):(dt.path=void 0===Ee.userinfo&&void 0===Ee.host&&void 0===Ee.port||Ee.path?Ee.path?Ee.path.slice(0,Ee.path.lastIndexOf("/")+1)+qe.path:qe.path:"/"+qe.path,dt.path=Xn(dt.path)),dt.query=qe.query):(dt.path=Ee.path,dt.query=void 0!==qe.query?qe.query:Ee.query),dt.userinfo=Ee.userinfo,dt.host=Ee.host,dt.port=Ee.port),dt.scheme=Ee.scheme),dt.fragment=qe.fragment,dt}function wr(Ee,qe){return Ee&&Ee.toString().replace(qe&&qe.iri?c.PCT_ENCODED:l.PCT_ENCODED,Te)}var Si={scheme:"http",domainHost:!0,parse:function(Ee,qe){return Ee.host||(Ee.error=Ee.error||"HTTP URIs must have a host."),Ee},serialize:function(Ee,qe){var Ke="https"===String(Ee.scheme).toLowerCase();return Ee.port!==(Ke?443:80)&&""!==Ee.port||(Ee.port=void 0),Ee.path||(Ee.path="/"),Ee}},Xr={scheme:"https",domainHost:Si.domainHost,parse:Si.parse,serialize:Si.serialize};function Ro(Ee){return"boolean"==typeof Ee.secure?Ee.secure:"wss"===String(Ee.scheme).toLowerCase()}var Rn={scheme:"ws",domainHost:!0,parse:function(Ee,qe){var Ke=Ee;return Ke.secure=Ro(Ke),Ke.resourceName=(Ke.path||"/")+(Ke.query?"?"+Ke.query:""),Ke.path=void 0,Ke.query=void 0,Ke},serialize:function(Ee,qe){if(Ee.port!==(Ro(Ee)?443:80)&&""!==Ee.port||(Ee.port=void 0),"boolean"==typeof Ee.secure&&(Ee.scheme=Ee.secure?"wss":"ws",Ee.secure=void 0),Ee.resourceName){var Ke=Ee.resourceName.split("?"),dt=u(Ke,2),Ye=dt[0],In=dt[1];Ee.path=Ye&&"/"!==Ye?Ye:void 0,Ee.query=In,Ee.resourceName=void 0}return Ee.fragment=void 0,Ee}},kt={scheme:"wss",domainHost:Rn.domainHost,parse:Rn.parse,serialize:Rn.serialize},pi={},Bi="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ar="[0-9A-Fa-f]",ko=e(e("%[EFef]"+Ar+"%"+Ar+Ar+"%"+Ar+Ar)+"|"+e("%[89A-Fa-f]"+Ar+"%"+Ar+Ar)+"|"+e("%"+Ar+Ar)),vt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),di=new RegExp(Bi,"g"),ki=new RegExp(ko,"g"),Nr=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',vt),"g"),Jr=new RegExp(n("[^]",Bi,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),co=Jr;function Ks(Ee){var qe=Te(Ee);return qe.match(di)?qe:Ee}var Cr={scheme:"mailto",parse:function(Ee,qe){var Ke=Ee,dt=Ke.to=Ke.path?Ke.path.split(","):[];if(Ke.path=void 0,Ke.query){for(var Ye=!1,In={},li=Ke.query.split("&"),vi=0,gi=li.length;vi string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=function(){function A(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,A),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts=nt(nt({},N),function y(A){var N,F,q,V,ce,ve,je,Te,et,We,st,$,ae,le,Re,Ze,Ve,Ct,Ot,yn,Xn,on,Ri,hn,vr,Er=A.strict,fr=null===(N=A.code)||void 0===N?void 0:N.optimize,wr=!0===fr||void 0===fr?1:fr||0,Si=null!==(q=null===(F=A.code)||void 0===F?void 0:F.regExp)&&void 0!==q?q:f,Xr=null!==(V=A.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(ve=null!==(ce=A.strictSchema)&&void 0!==ce?ce:Er)||void 0===ve||ve,strictNumbers:null===(Te=null!==(je=A.strictNumbers)&&void 0!==je?je:Er)||void 0===Te||Te,strictTypes:null!==(We=null!==(et=A.strictTypes)&&void 0!==et?et:Er)&&void 0!==We?We:"log",strictTuples:null!==($=null!==(st=A.strictTuples)&&void 0!==st?st:Er)&&void 0!==$?$:"log",strictRequired:null!==(le=null!==(ae=A.strictRequired)&&void 0!==ae?ae:Er)&&void 0!==le&&le,code:A.code?nt(nt({},A.code),{},{optimize:wr,regExp:Si}):{optimize:wr,regExp:Si},loopRequired:null!==(Re=A.loopRequired)&&void 0!==Re?Re:200,loopEnum:null!==(Ze=A.loopEnum)&&void 0!==Ze?Ze:200,meta:null===(Ve=A.meta)||void 0===Ve||Ve,messages:null===(Ct=A.messages)||void 0===Ct||Ct,inlineRefs:null===(Ot=A.inlineRefs)||void 0===Ot||Ot,schemaId:null!==(yn=A.schemaId)&&void 0!==yn?yn:"$id",addUsedSchema:null===(Xn=A.addUsedSchema)||void 0===Xn||Xn,validateSchema:null===(on=A.validateSchema)||void 0===on||on,validateFormats:null===(Ri=A.validateFormats)||void 0===Ri||Ri,unicodeRegExp:null===(hn=A.unicodeRegExp)||void 0===hn||hn,int32range:null===(vr=A.int32range)||void 0===vr||vr,uriResolver:Xr}}(N));var F=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:F.es5,lines:F.lines}),this.logger=function G(A){if(!1===A)return U;if(void 0===A)return console;if(A.log&&A.warn&&A.error)return A;throw new Error("logger must implement log, warn and error methods")}(N.logger);var ce=N.validateFormats;N.validateFormats=!1,this.RULES=(0,o.getRules)(),C.call(this,g,N,"NOT SUPPORTED"),C.call(this,v,N,"DEPRECATED","warn"),this._metaOpts=j.call(this),N.formats&&B.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&z.call(this,N.keywords),"object"==wn(N.meta)&&this.addMetaSchema(N.meta),E.call(this),N.validateFormats=ce}return Ie(A,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var N=this.opts,F=N.$data,q=N.meta,V=N.schemaId,ce=d;"id"===V&&((ce=nt({},d)).id=ce.$id,delete ce.$id),q&&F&&this.addMetaSchema(ce,ce[V],!1)}},{key:"defaultMeta",value:function(){var N=this.opts,F=N.meta,q=N.schemaId;return this.opts.defaultMeta="object"==wn(F)?F[q]||F:void 0}},{key:"validate",value:function(N,F){var q;if("string"==typeof N){if(!(q=this.getSchema(N)))throw new Error('no schema with key or ref "'.concat(N,'"'))}else q=this.compile(N);var V=q(F);return"$async"in q||(this.errors=q.errors),V}},{key:"compile",value:function(N,F){var q=this._addSchema(N,F);return q.validate||this._compileSchemaEnv(q)}},{key:"compileAsync",value:function(N,F){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var q=this.opts.loadSchema;return V.call(this,N,F);function V(Re,Ze){return ce.apply(this,arguments)}function ce(){return(ce=or(_n().mark(function Re(Ze,Ve){var Ct;return _n().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,ve.call(this,Ze.$schema);case 2:return Ct=this._addSchema(Ze,Ve),Ot.abrupt("return",Ct.validate||Te.call(this,Ct));case 4:case"end":return Ot.stop()}},Re,this)}))).apply(this,arguments)}function ve(Re){return je.apply(this,arguments)}function je(){return(je=or(_n().mark(function Re(Ze){return _n().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!Ze||this.getSchema(Ze)){Ve.next=3;break}return Ve.next=3,V.call(this,{$ref:Ze},!0);case 3:case"end":return Ve.stop()}},Re,this)}))).apply(this,arguments)}function Te(Re){return et.apply(this,arguments)}function et(){return(et=or(_n().mark(function Re(Ze){return _n().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.prev=0,Ve.abrupt("return",this._compileSchemaEnv(Ze));case 4:if(Ve.prev=4,Ve.t0=Ve.catch(0),Ve.t0 instanceof r.default){Ve.next=8;break}throw Ve.t0;case 8:return We.call(this,Ve.t0),Ve.next=11,st.call(this,Ve.t0.missingSchema);case 11:return Ve.abrupt("return",Te.call(this,Ze));case 12:case"end":return Ve.stop()}},Re,this,[[0,4]])}))).apply(this,arguments)}function We(Re){var Ze=Re.missingSchema,Ve=Re.missingRef;if(this.refs[Ze])throw new Error("AnySchema ".concat(Ze," is loaded but ").concat(Ve," cannot be resolved"))}function st(Re){return $.apply(this,arguments)}function $(){return($=or(_n().mark(function Re(Ze){var Ve;return _n().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,ae.call(this,Ze);case 2:if(Ve=Ct.sent,this.refs[Ze]){Ct.next=6;break}return Ct.next=6,ve.call(this,Ve.$schema);case 6:this.refs[Ze]||this.addSchema(Ve,Ze,F);case 7:case"end":return Ct.stop()}},Re,this)}))).apply(this,arguments)}function ae(Re){return le.apply(this,arguments)}function le(){return(le=or(_n().mark(function Re(Ze){var Ve;return _n().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!(Ve=this._loading[Ze])){Ct.next=3;break}return Ct.abrupt("return",Ve);case 3:return Ct.prev=3,Ct.next=6,this._loading[Ze]=q(Ze);case 6:return Ct.abrupt("return",Ct.sent);case 7:return Ct.prev=7,delete this._loading[Ze],Ct.finish(7);case 10:case"end":return Ct.stop()}},Re,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(N,F,q){var V,ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(N)){var ve,je=He(N);try{for(je.s();!(ve=je.n()).done;)this.addSchema(ve.value,void 0,q,ce)}catch(We){je.e(We)}finally{je.f()}return this}if("object"===wn(N)){var et=this.opts.schemaId;if(void 0!==(V=N[et])&&"string"!=typeof V)throw new Error("schema ".concat(et," must be string"))}return F=(0,l.normalizeId)(F||V),this._checkUnique(F),this.schemas[F]=this._addSchema(N,q,F,ce,!0),this}},{key:"addMetaSchema",value:function(N,F){return this.addSchema(N,F,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(N,F){if("boolean"==typeof N)return!0;var q;if(void 0!==(q=N.$schema)&&"string"!=typeof q)throw new Error("$schema must be a string");if(!(q=q||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(q,N);if(!V&&F){var ce="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(ce);this.logger.error(ce)}return V}},{key:"getSchema",value:function(N){for(var F;"string"==typeof(F=D.call(this,N));)N=F;if(void 0===F){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(F=s.resolveSchema.call(this,V,N)))return;this.refs[N]=F}return F.validate||this._compileSchemaEnv(F)}},{key:"removeSchema",value:function(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(wn(N)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var F=D.call(this,N);return"object"==wn(F)&&this._cache.delete(F.schema),delete this.schemas[N],delete this.refs[N],this;case"object":this._cache.delete(N);var V=N[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(N){var F,q=He(N);try{for(q.s();!(F=q.n()).done;)this.addKeyword(F.value)}catch(ce){q.e(ce)}finally{q.f()}return this}},{key:"addKeyword",value:function(N,F){var q,V=this;if("string"==typeof N)q=N,"object"==wn(F)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=q);else{if("object"!=wn(N)||void 0!==F)throw new Error("invalid addKeywords parameters");if(q=(F=N).keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(oe.call(this,q,F),!F)return(0,u.eachItem)(q,function(ve){return P.call(V,ve)}),this;J.call(this,F);var ce=nt(nt({},F),{},{type:(0,c.getJSONTypes)(F.type),schemaType:(0,c.getJSONTypes)(F.schemaType)});return(0,u.eachItem)(q,0===ce.type.length?function(ve){return P.call(V,ve,ce)}:function(ve){return ce.type.forEach(function(je){return P.call(V,ve,ce,je)})}),this}},{key:"getKeyword",value:function(N){var F=this.RULES.all[N];return"object"==wn(F)?F.definition:!!F}},{key:"removeKeyword",value:function(N){var F=this.RULES;delete F.keywords[N],delete F.all[N];var q,V=He(F.rules);try{for(V.s();!(q=V.n()).done;){var ce=q.value,ve=ce.rules.findIndex(function(je){return je.keyword===N});ve>=0&&ce.rules.splice(ve,1)}}catch(je){V.e(je)}finally{V.f()}return this}},{key:"addFormat",value:function(N,F){return"string"==typeof F&&(F=new RegExp(F)),this.formats[N]=F,this}},{key:"errorsText",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=F.separator,V=void 0===q?", ":q,ce=F.dataVar,ve=void 0===ce?"data":ce;return N&&0!==N.length?N.map(function(je){return"".concat(ve).concat(je.instancePath," ").concat(je.message)}).reduce(function(je,Te){return je+V+Te}):"No errors"}},{key:"$dataMetaSchema",value:function(N,F){var q=this.RULES.all;N=JSON.parse(JSON.stringify(N));var V,ce=He(F);try{for(ce.s();!(V=ce.n()).done;){var ve,je=V.value.split("/").slice(1),Te=N,et=He(je);try{for(et.s();!(ve=et.n()).done;)Te=Te[ve.value]}catch(le){et.e(le)}finally{et.f()}for(var We in q){var st=q[We];if("object"==wn(st)){var ae=Te[We];st.definition.$data&&ae&&(Te[We]=pe(ae))}}}}catch(le){ce.e(le)}finally{ce.f()}return N}},{key:"_removeAllSchemas",value:function(N,F){for(var q in N){var V=N[q];F&&!F.test(q)||("string"==typeof V?delete N[q]:V&&!V.meta&&(this._cache.delete(V.schema),delete N[q]))}}},{key:"_addSchema",value:function(N,F,q){var V,ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,ve=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,je=this.opts.schemaId;if("object"==wn(N))V=N[je];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof N)throw new Error("schema must be object or boolean")}var Te=this._cache.get(N);if(void 0!==Te)return Te;q=(0,l.normalizeId)(V||q);var et=l.getSchemaRefs.call(this,N,q);return Te=new s.SchemaEnv({schema:N,schemaId:je,meta:F,baseId:q,localRefs:et}),this._cache.set(Te.schema,Te),ve&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=Te),ce&&this.validateSchema(N,!0),Te}},{key:"_checkUnique",value:function(N){if(this.schemas[N]||this.refs[N])throw new Error('schema with key or id "'.concat(N,'" already exists'))}},{key:"_compileSchemaEnv",value:function(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}},{key:"_compileMetaSchema",value:function(N){var F=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=F}}}]),A}();function C(A,N,F){var q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in A){var ce=V;ce in N&&this.logger[q]("".concat(F,": option ").concat(V,". ").concat(A[ce]))}}function D(A){return A=(0,l.normalizeId)(A),this.schemas[A]||this.refs[A]}function E(){var A=this.opts.schemas;if(A)if(Array.isArray(A))this.addSchema(A);else for(var N in A)this.addSchema(A[N],N)}function B(){for(var A in this.opts.formats){var N=this.opts.formats[A];N&&this.addFormat(A,N)}}function z(A){if(Array.isArray(A))this.addVocabulary(A);else for(var N in this.logger.warn("keywords option as map is deprecated, pass array"),A){var F=A[N];F.keyword||(F.keyword=N),this.addKeyword(F)}}function j(){var A,N=nt({},this.opts),F=He(p);try{for(F.s();!(A=F.n()).done;)delete N[A.value]}catch(q){F.e(q)}finally{F.f()}return N}t.default=b,b.ValidationError=i.default,b.MissingRefError=r.default;var U={log:function(){},warn:function(){},error:function(){}},X=/^[a-z_$][a-z0-9_$:-]*$/i;function oe(A,N){var F=this.RULES;if((0,u.eachItem)(A,function(q){if(F.keywords[q])throw new Error("Keyword ".concat(q," is already defined"));if(!X.test(q))throw new Error("Keyword ".concat(q," has invalid name"))}),N&&N.$data&&!("code"in N)&&!("validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function P(A,N,F){var q,V=this,ce=N?.post;if(F&&ce)throw new Error('keyword with "post" flag cannot have "type"');var ve=this.RULES,je=ce?ve.post:ve.rules.find(function(et){return et.type===F});if(je||ve.rules.push(je={type:F,rules:[]}),ve.keywords[A]=!0,N){var Te={keyword:A,definition:nt(nt({},N),{},{type:(0,c.getJSONTypes)(N.type),schemaType:(0,c.getJSONTypes)(N.schemaType)})};N.before?W.call(this,je,Te,N.before):je.rules.push(Te),ve.all[A]=Te,null===(q=N.implements)||void 0===q||q.forEach(function(et){return V.addKeyword(et)})}}function W(A,N,F){var q=A.rules.findIndex(function(V){return V.keyword===F});q>=0?A.rules.splice(q,0,N):(A.rules.push(N),this.logger.warn("rule ".concat(F," is not defined")))}function J(A){var N=A.metaSchema;void 0!==N&&(A.$data&&this.opts.$data&&(N=pe(N)),A.validateSchema=this.compile(N,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function pe(A){return{anyOf:[A,H]}}}(lge);var wj={},Cj={},Sj={};Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.callRef=xg.getValidate=void 0;var jst=yj(),Rge=gd(),ac=Tr(),d1=Vp(),jge=sc,dT=zr,Lst={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return hT(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return hT(t,(0,ac._)(ZJ||(ZJ=Pe(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=jge.resolveRef.call(l,c,r,e);if(void 0===p)throw new jst.default(i.opts.uriResolver,r,e);return p instanceof jge.SchemaEnv?(g=Lge(t,m=p),void hT(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,ac.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:ac.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function Lge(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,ac._)(eK||(eK=Pe(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function hT(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?d1.default.this:ac.nil;function c(d){var h=(0,ac._)(iK||(iK=Pe(["",".errors"])),d);r.assign(d1.default.vErrors,(0,ac._)(rK||(rK=Pe([""," === null ? "," : ",".concat(",")"])),d1.default.vErrors,h,d1.default.vErrors,h)),r.assign(d1.default.errors,(0,ac._)(oK||(oK=Pe(["",".length"])),d1.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=dT.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,ac._)(sK||(sK=Pe(["",".evaluated.props"])),d));o.props=dT.mergeEvaluated.props(r,p,o.props,ac.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=dT.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,ac._)(aK||(aK=Pe(["",".evaluated.items"])),d));o.items=dT.mergeEvaluated.items(r,m,o.items,ac.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,ac._)(tK||(tK=Pe(["await ",""])),(0,Rge.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,ac._)(nK||(nK=Pe(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,Rge.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}xg.getValidate=Lge,xg.callRef=hT,xg.default=Lst,Object.defineProperty(Cj,"__esModule",{value:!0}),Cj.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Sj.default,xg.default];var kj={},Dj={};Object.defineProperty(Dj,"__esModule",{value:!0});var fT=Tr(),Up=fT.operators,pT={maximum:{okStr:"<=",ok:Up.LTE,fail:Up.GT},minimum:{okStr:">=",ok:Up.GTE,fail:Up.LT},exclusiveMaximum:{okStr:"<",ok:Up.LT,fail:Up.GTE},exclusiveMinimum:{okStr:">",ok:Up.GT,fail:Up.LTE}},Vst={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,fT.str)(lK||(lK=Pe(["must be "," ",""])),pT[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,fT._)(cK||(cK=Pe(["{comparison: ",", limit: ","}"])),pT[n].okStr,e)}},Hst={keyword:Object.keys(pT),type:"number",schemaType:"number",$data:!0,error:Vst,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,fT._)(uK||(uK=Pe([""," "," "," || isNaN(",")"])),e,pT[n].fail,i,e))}};Dj.default=Hst;var Tj={};Object.defineProperty(Tj,"__esModule",{value:!0});var nx=Tr(),Ust={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,nx.str)(dK||(dK=Pe(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,nx._)(hK||(hK=Pe(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,nx._)(fK||(fK=Pe(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,nx._)(pK||(pK=Pe([""," !== parseInt(",")"])),o,o);t.fail$data((0,nx._)(mK||(mK=Pe(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};Tj.default=Ust;var Ej={},Aj={};function Bge(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(ox.nil,g);else{var v,y=He(e);try{for(y.s();!(v=y.n()).done;)(0,rx.checkReportMissingProp)(t,v.value)}catch(C){y.e(C)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return C=y,t.setParams({missingProperty:b=v}),void n.forOf(b,i,function(){n.assign(C,(0,rx.propertyInData)(n,r,b,a.ownProperties)),n.if((0,ox.not)(C),function(){t.error(),n.break()})},ox.nil);var b,C}),t.ok(y)}else n.if((0,rx.checkMissingProp)(t,e,v)),(0,rx.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=He(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,Qst.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,rx.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};Ij.default=Zst;var Nj={};Object.defineProperty(Nj,"__esModule",{value:!0});var sx=Tr(),eat={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,sx.str)(MK||(MK=Pe(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,sx._)(OK||(OK=Pe(["{limit: ","}"])),n)}},tat={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:eat,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?sx.operators.GT:sx.operators.LT;t.fail$data((0,sx._)(IK||(IK=Pe(["",".length "," ",""])),e,r,i))}};Nj.default=tat;var Fj={},ax={};Object.defineProperty(ax,"__esModule",{value:!0});var $ge=kge;$ge.code='require("ajv/dist/runtime/equal").default',ax.default=$ge,Object.defineProperty(Fj,"__esModule",{value:!0});var Pj=ex,Qa=Tr(),nat=zr,iat=ax,rat={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Qa.str)(NK||(NK=Pe(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Qa._)(FK||(FK=Pe(["{i: ",", j: ","}"])),e,i)}},oat={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:rat,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,Pj.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Qa._)(RK||(RK=Pe(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Qa._)(jK||(jK=Pe([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Qa._)(PK||(PK=Pe([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,Pj.checkDataTypes)(c,p,a.opts.strictNumbers,Pj.DataType.Wrong),g=n.const("indices",(0,Qa._)(LK||(LK=Pe(["{}"]))));n.for((0,Qa._)(BK||(BK=Pe([";","--;"])),h),function(){n.let(p,(0,Qa._)($K||($K=Pe(["","[","]"])),e,h)),n.if(m,(0,Qa._)(VK||(VK=Pe(["continue"])))),c.length>1&&n.if((0,Qa._)(HK||(HK=Pe(["typeof ",' == "string"'])),p),(0,Qa._)(UK||(UK=Pe(["",' += "_"'])),p)),n.if((0,Qa._)(zK||(zK=Pe(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Qa._)(GK||(GK=Pe(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Qa._)(WK||(WK=Pe(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,nat.useFunc)(n,iat.default),m=n.name("outer");n.label(m).for((0,Qa._)(qK||(qK=Pe([";","--;"])),h),function(){return n.for((0,Qa._)(YK||(YK=Pe([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Qa._)(XK||(XK=Pe(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};Fj.default=oat;var Rj={};Object.defineProperty(Rj,"__esModule",{value:!0});var jj=Tr(),sat=zr,aat=ax,lat={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,jj._)(JK||(JK=Pe(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==wn(o)?t.fail$data((0,jj._)(KK||(KK=Pe(["!","(",", ",")"])),(0,sat.useFunc)(n,aat.default),e,r)):t.fail((0,jj._)(QK||(QK=Pe([""," !== ",""])),o,e))}};Rj.default=lat;var Lj={};Object.defineProperty(Lj,"__esModule",{value:!0});var lx=Tr(),cat=zr,uat=ax,dat={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,lx._)(ZK||(ZK=Pe(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,cat.useFunc)(n,uat.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,lx._)(eQ||(eQ=Pe(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=lx.or.apply(void 0,ui(r.map(function(h,f){return p=d,"object"===wn(g=r[m=f])&&null!==g?(0,lx._)(tQ||(tQ=Pe(["","(",", ","[","])"])),u(),e,p,m):(0,lx._)(nQ||(nQ=Pe([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};Lj.default=dat,Object.defineProperty(kj,"__esModule",{value:!0}),kj.default=[Dj.default,Tj.default,Ej.default,Mj.default,Oj.default,Ij.default,Nj.default,Fj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Rj.default,Lj.default];var Bj={},h1={};Object.defineProperty(h1,"__esModule",{value:!0}),h1.validateAdditionalItems=void 0;var Cg=Tr(),$j=zr,wat={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Cg.str)(iQ||(iQ=Pe(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Cg._)(rQ||(rQ=Pe(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Vge(t,i):(0,$j.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Vge(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,Cg._)(oQ||(oQ=Pe(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,Cg._)(sQ||(sQ=Pe([""," <= ",""])),a,n.length));else if("object"==wn(i)&&!(0,$j.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,Cg._)(aQ||(aQ=Pe([""," <= ",""])),a,n.length));e.if((0,Cg.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:$j.Type.Num},c),s.allErrors||e.if((0,Cg.not)(c),function(){return e.break()})});var c}),t.ok(l)}}h1.validateAdditionalItems=Vge,h1.default=wat;var Vj={},f1={};Object.defineProperty(f1,"__esModule",{value:!0}),f1.validateTuple=void 0;var Hge=Tr(),gT=zr,Cat=gd(),Sat={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Uge(t,"additionalItems",n);e.items=!0,(0,gT.alwaysValidSchema)(e,n)||t.ok((0,Cat.validateArray)(t))}};function Uge(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,gT.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=gT.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Hge._)(lQ||(lQ=Pe(["",".length"])),o));e.forEach(function(d,h){(0,gT.alwaysValidSchema)(a,d)||(i.if((0,Hge._)(cQ||(cQ=Pe([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}f1.validateTuple=Uge,f1.default=Sat,Object.defineProperty(Vj,"__esModule",{value:!0});var kat=f1,Dat={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,kat.validateTuple)(t,"items")}};Vj.default=Dat;var Hj={};Object.defineProperty(Hj,"__esModule",{value:!0});var zge=Tr(),Tat=zr,Eat=gd(),Aat=h1,Mat={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,zge.str)(uQ||(uQ=Pe(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,zge._)(dQ||(dQ=Pe(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,Tat.alwaysValidSchema)(i,n)||(r?(0,Aat.validateAdditionalItems)(t,r):t.ok((0,Eat.validateArray)(t)))}};Hj.default=Mat;var Uj={};Object.defineProperty(Uj,"__esModule",{value:!0});var _u=Tr(),vT=zr,Oat={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,_u.str)(hQ||(hQ=Pe(["must contain at least "," valid item(s)"])),e):(0,_u.str)(fQ||(fQ=Pe(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,_u._)(pQ||(pQ=Pe(["{minContains: ","}"])),e):(0,_u._)(mQ||(mQ=Pe(["{minContains: ",", maxContains: ","}"])),e,i)}},Iat={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Oat,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,_u._)(gQ||(gQ=Pe(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,vT.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,vT.alwaysValidSchema)(a,r)){var d=(0,_u._)(vQ||(vQ=Pe([""," >= ",""])),u,n);return void 0!==e&&(d=(0,_u._)(yQ||(yQ=Pe([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,_u._)(_Q||(_Q=Pe(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,vT.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,_u._)(bQ||(bQ=Pe(["","++"])),v)),void(void 0===e?i.if((0,_u._)(xQ||(xQ=Pe([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,_u._)(wQ||(wQ=Pe([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,_u._)(CQ||(CQ=Pe([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:vT.Type.Num,compositeRule:!0},m),g()})}}};Uj.default=Iat;var Gge={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=Tr(),e=zr,i=gd();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(SQ||(SQ=Pe(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(kQ||(kQ=Pe(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Jn(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,b=He(g);try{for(b.s();!(y=b.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(D){b.e(D)}finally{b.f()}}):(c.if((0,n._)(DQ||(DQ=Pe([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Gge);var zj={};Object.defineProperty(zj,"__esModule",{value:!0});var Wge=Tr(),Nat=zr,Fat={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Wge._)(TQ||(TQ=Pe(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,Nat.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Wge.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};zj.default=Fat;var yT={};Object.defineProperty(yT,"__esModule",{value:!0});var _T=gd(),_d=Tr(),Pat=Vp(),bT=zr,Rat={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,_d._)(EQ||(EQ=Pe(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,bT.alwaysValidSchema)(s,e)){var c=(0,_T.allSchemaProperties)(i.properties),u=(0,_T.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,bT.schemaRefOrVal)(s,i.properties,"properties");g=(0,_T.isOwnProperty)(n,v,m)}else g=c.length?_d.or.apply(void 0,ui(c.map(function(y){return(0,_d._)(MQ||(MQ=Pe([""," === ",""])),m,y)}))):_d.nil;return u.length&&(g=_d.or.apply(void 0,[g].concat(ui(u.map(function(y){return(0,_d._)(OQ||(OQ=Pe(["",".test(",")"])),(0,_T.usePattern)(t,y),m)}))))),(0,_d.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,_d._)(AQ||(AQ=Pe([""," === ",""])),o,Pat.default.errors))}function d(p){n.code((0,_d._)(IQ||(IQ=Pe(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==wn(e)&&!(0,bT.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,_d.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,_d.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:bT.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};yT.default=Rat;var Gj={};Object.defineProperty(Gj,"__esModule",{value:!0});var jat=sT(),qge=gd(),Wj=zr,Yge=yT,Lat={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Yge.default.code(new jat.KeywordCxt(o,Yge.default,"additionalProperties"));var s,a=(0,qge.allSchemaProperties)(e),l=He(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=Wj.mergeEvaluated.props(n,(0,Wj.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,Wj.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=He(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,qge.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};Gj.default=Lat;var qj={};Object.defineProperty(qj,"__esModule",{value:!0});var Xge=gd(),xT=Tr(),Jge=zr,Kge=zr,Bat={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,Xge.allSchemaProperties)(e),l=a.filter(function(p){return(0,Jge.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof xT.Name||(o.props=(0,Kge.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=He(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,Jge.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,xT._)(NQ||(NQ=Pe(["",".test(",")"])),(0,Xge.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Kge.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,xT._)(FQ||(FQ=Pe(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,xT.not)(u),function(){return n.break()})})})}}};qj.default=Bat;var Yj={};Object.defineProperty(Yj,"__esModule",{value:!0});var $at=zr,Vat={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,$at.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};Yj.default=Vat;var Xj={};Object.defineProperty(Xj,"__esModule",{value:!0});var Hat={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:gd().validateUnion,error:{message:"must match a schema in anyOf"}};Xj.default=Hat;var Jj={};Object.defineProperty(Jj,"__esModule",{value:!0});var wT=Tr(),Uat=zr,zat={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,wT._)(PQ||(PQ=Pe(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Uat.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,wT._)(RQ||(RQ=Pe([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,wT._)(jQ||(jQ=Pe(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,wT.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};Jj.default=zat;var Kj={};Object.defineProperty(Kj,"__esModule",{value:!0});var Gat=zr,Wat={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Gat.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};Kj.default=Wat;var Qj={};Object.defineProperty(Qj,"__esModule",{value:!0});var CT=Tr(),Qge=zr,qat={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,CT.str)(LQ||(LQ=Pe(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,CT._)(BQ||(BQ=Pe(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Qge.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=Zge(i,"then"),o=Zge(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,CT.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,CT._)($Q||($Q=Pe(["",""])),d)):t.setParams({ifClause:d})}}}};function Zge(t,n){var e=t.schema[n];return void 0!==e&&!(0,Qge.alwaysValidSchema)(t,e)}Qj.default=qat;var Zj={};Object.defineProperty(Zj,"__esModule",{value:!0});var Yat=zr,Xat={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,Yat.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};Zj.default=Xat,Object.defineProperty(Bj,"__esModule",{value:!0});var Jat=h1,Kat=Vj,Qat=f1,Zat=Hj,elt=Uj,tlt=Gge,nlt=zj,ilt=yT,rlt=Gj,olt=qj,slt=Yj,alt=Xj,llt=Jj,clt=Kj,ult=Qj,dlt=Zj;Bj.default=function(){var n=[slt.default,alt.default,llt.default,clt.default,ult.default,dlt.default,nlt.default,ilt.default,tlt.default,rlt.default,olt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Kat.default,Zat.default):n.push(Jat.default,Qat.default),n.push(elt.default),n};var eL={},tL={};Object.defineProperty(tL,"__esModule",{value:!0});var Ps=Tr(),hlt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,Ps.str)(VQ||(VQ=Pe(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,Ps._)(HQ||(HQ=Pe(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,Ps._)(UQ||(UQ=Pe(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,Ps._)(zQ||(zQ=Pe(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,Ps._)(GQ||(GQ=Pe(["",'.type || "string"'])),f)).assign(m,(0,Ps._)(WQ||(WQ=Pe(["",".validate"])),f))},function(){return e.assign(p,(0,Ps._)(qQ||(qQ=Pe(['"string"'])))).assign(m,f)}),t.fail$data((0,Ps.or)(!1===l.strictSchema?Ps.nil:(0,Ps._)(YQ||(YQ=Pe([""," && !",""])),s,m),(g=u.$async?(0,Ps._)(XQ||(XQ=Pe(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,Ps._)(JQ||(JQ=Pe(["","(",")"])),m,i),v=(0,Ps._)(KQ||(KQ=Pe(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,Ps._)(QQ||(QQ=Pe([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Jn(function(v){var y=v instanceof RegExp?(0,Ps.regexpCode)(v):l.code.formats?(0,Ps._)(ZQ||(ZQ=Pe(["","",""])),l.code.formats,(0,Ps.getProperty)(o)):void 0,b=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=wn(v)||v instanceof RegExp?["string",v,b]:[v.type||"string",v.validate,(0,Ps._)(eZ||(eZ=Pe(["",".validate"])),b)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==wn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ps._)(tZ||(tZ=Pe(["await ","(",")"])),g,i)}return(0,Ps._)("function"==typeof m?nZ||(nZ=Pe(["","(",")"])):iZ||(iZ=Pe(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};tL.default=hlt,Object.defineProperty(eL,"__esModule",{value:!0}),eL.default=[tL.default];var p1={};Object.defineProperty(p1,"__esModule",{value:!0}),p1.contentVocabulary=p1.metadataVocabulary=void 0,p1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],p1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(wj,"__esModule",{value:!0});var glt=eL,eve=p1,vlt=[Cj.default,kj.default,(0,Bj.default)(),glt.default,eve.metadataVocabulary,eve.contentVocabulary];wj.default=vlt;var nL={},tve={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(tve),Object.defineProperty(nL,"__esModule",{value:!0});var m1=Tr(),iL=tve,nve=sc,ylt=zr,_lt={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===iL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,m1._)(rZ||(rZ=Pe(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,m1._)(oZ||(oZ=Pe(["","",""])),e,(0,m1.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,m1.Name),h}n.if((0,m1._)(sZ||(sZ=Pe(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=C(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",b="Expref",C="Pipe",B="EQ",z="GT",j="LT",U="GTE",G="LTE",X="NE",oe="Flatten",P="Star",W="Filter",J="Dot",pe="Lbrace",A="Lbracket",N="Lparen",F="Literal",q={".":J,"*":P,",":p,":":m,"{":pe,"}":g,"]":h,"(":N,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},ce={" ":!0,"\t":!0,"\n":!0};function ve($){return $>="0"&&$<="9"||"-"===$}function je(){}je.prototype={tokenize:function($){var ae,le,Re,Ze,Ve=[];for(this._current=0;this._current<$.length;)if((Ze=$[this._current])>="a"&&Ze<="z"||Ze>="A"&&Ze<="Z"||"_"===Ze)ae=this._current,le=this._consumeUnquotedIdentifier($),Ve.push({type:u,value:le,start:ae});else if(void 0!==q[$[this._current]])Ve.push({type:q[$[this._current]],value:$[this._current],start:this._current}),this._current++;else if(ve($[this._current]))Re=this._consumeNumber($),Ve.push(Re);else if("["===$[this._current])Re=this._consumeLBracket($),Ve.push(Re);else if('"'===$[this._current])ae=this._current,le=this._consumeQuotedIdentifier($),Ve.push({type:d,value:le,start:ae});else if("'"===$[this._current])ae=this._current,le=this._consumeRawStringLiteral($),Ve.push({type:F,value:le,start:ae});else if("`"===$[this._current]){ae=this._current;var Ct=this._consumeLiteral($);Ve.push({type:F,value:Ct,start:ae})}else if(void 0!==V[$[this._current]])Ve.push(this._consumeOperator($));else if(void 0!==ce[$[this._current]])this._current++;else if("&"===$[this._current])ae=this._current,this._current++,"&"===$[this._current]?(this._current++,Ve.push({type:"And",value:"&&",start:ae})):Ve.push({type:b,value:"&",start:ae});else{if("|"!==$[this._current]){var Ot=new Error("Unknown character:"+$[this._current]);throw Ot.name="LexerError",Ot}ae=this._current,this._current++,"|"===$[this._current]?(this._current++,Ve.push({type:"Or",value:"||",start:ae})):Ve.push({type:C,value:"|",start:ae})}return Ve},_consumeUnquotedIdentifier:function($){var ae,le=this._current;for(this._current++;this._current<$.length&&((ae=$[this._current])>="a"&&ae<="z"||ae>="A"&&ae<="Z"||ae>="0"&&ae<="9"||"_"===ae);)this._current++;return $.slice(le,this._current)},_consumeQuotedIdentifier:function($){var ae=this._current;this._current++;for(var le=$.length;'"'!==$[this._current]&&this._current"===le?"="===$[this._current]?(this._current++,{type:U,value:">=",start:ae}):{type:z,value:">",start:ae}:"="===le&&"="===$[this._current]?(this._current++,{type:B,value:"==",start:ae}):void 0},_consumeLiteral:function($){this._current++;for(var ae,le=this._current,Re=$.length;"`"!==$[this._current]&&this._current=0||["true","false","null"].indexOf($)>=0)return!0;if(!("-0123456789".indexOf($[0])>=0))return!1;try{return JSON.parse($),!0}catch{return!1}}};var Te={};function et(){}function We($){this.runtime=$}function st($){this._interpreter=$,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}Te.EOF=0,Te.UnquotedIdentifier=0,Te.QuotedIdentifier=0,Te.Rbracket=0,Te.Rparen=0,Te.Comma=0,Te.Rbrace=0,Te.Number=0,Te.Current=0,Te.Expref=0,Te.Pipe=1,Te.Or=2,Te.And=3,Te.EQ=5,Te.GT=5,Te.LT=5,Te.GTE=5,Te.LTE=5,Te.NE=5,Te.Flatten=9,Te.Star=20,Te.Filter=21,Te.Dot=40,Te.Not=45,Te.Lbrace=50,Te.Lbracket=55,Te.Lparen=60,et.prototype={parse:function($){this._loadTokens($),this.index=0;var ae=this.expression(0);if("EOF"!==this._lookahead(0)){var le=this._lookaheadToken(0),Re=new Error("Unexpected token type: "+le.type+", value: "+le.value);throw Re.name="ParserError",Re}return ae},_loadTokens:function($){var ae=(new je).tokenize($);ae.push({type:"EOF",value:"",start:$.length}),this.tokens=ae},expression:function($){var ae=this._lookaheadToken(0);this._advance();for(var le=this.nud(ae),Re=this._lookahead(0);$=0?this.expression($):ae===A?(this._match(A),this._parseMultiselectList()):ae===pe?(this._match(pe),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function($){var ae;if(Te[this._lookahead(0)]<10)ae={type:"Identity"};else if(this._lookahead(0)===A)ae=this.expression($);else if(this._lookahead(0)===W)ae=this.expression($);else{if(this._lookahead(0)!==J){var le=this._lookaheadToken(0),Re=new Error("Sytanx error, unexpected token: "+le.value+"("+le.type+")");throw Re.name="ParserError",Re}this._match(J),ae=this._parseDotRHS($)}return ae},_parseMultiselectList:function(){for(var $=[];this._lookahead(0)!==h;){var ae=this.expression(0);if($.push(ae),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:$}},_parseMultiselectHash:function(){for(var $,ae,le,Re=[],Ze=[u,d];;){if($=this._lookaheadToken(0),Ze.indexOf($.type)<0)throw new Error("Expecting an identifier token, got: "+$.type);if(ae=$.value,this._advance(),this._match(m),le={type:"KeyValuePair",name:ae,value:this.expression(0)},Re.push(le),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Re}}},We.prototype={search:function($,ae){return this.visit($,ae)},visit:function($,ae){var le,Re,Ze,Ve,Ct,Ot,yn,Xn,on;switch($.type){case"Field":return null!==ae&&e(ae)?void 0===(Ot=ae[$.name])?null:Ot:null;case"Subexpression":for(Ze=this.visit($.children[0],ae),on=1;on<$.children.length;on++)if(null===(Ze=this.visit($.children[1],Ze)))return null;return Ze;case"IndexExpression":return yn=this.visit($.children[0],ae),this.visit($.children[1],yn);case"Index":if(!n(ae))return null;var Ri=$.value;return Ri<0&&(Ri=ae.length+Ri),void 0===(Ze=ae[Ri])&&(Ze=null),Ze;case"Slice":if(!n(ae))return null;var hn=$.children.slice(0),vr=this.computeSliceParams(ae.length,hn),Er=vr[0],fr=vr[1],wr=vr[2];if(Ze=[],wr>0)for(on=Er;onfr;on+=wr)Ze.push(ae[on]);return Ze;case"Projection":var Si=this.visit($.children[0],ae);if(!n(Si))return null;for(Xn=[],on=0;onCt;break;case U:Ze=Ve>=Ct;break;case j:Ze=Ve=$&&(ae=le<0?$-1:$),ae}},st.prototype={callFunction:function($,ae){var le=this.functionTable[$];if(void 0===le)throw new Error("Unknown function: "+$+"()");return this._validateArgs($,ae,le._signature),le._func.call(this,ae)},_validateArgs:function($,ae,le){var Re,Ze,Ve,Ct;if(le[le.length-1].variadic){if(ae.length=0;Re--)le+=ae[Re];return le}var Ze=$[0].slice(0);return Ze.reverse(),Ze},_functionAbs:function($){return Math.abs($[0])},_functionCeil:function($){return Math.ceil($[0])},_functionAvg:function($){for(var ae=0,le=$[0],Re=0;Re=0},_functionFloor:function($){return Math.floor($[0])},_functionLength:function($){return e($[0])?Object.keys($[0]).length:$[0].length},_functionMap:function($){for(var ae=[],le=this._interpreter,Re=$[0],Ze=$[1],Ve=0;Ve0){if(this._getTypeName($[0][0])===s)return Math.max.apply(Math,$[0]);for(var ae=$[0],le=ae[0],Re=1;Re0){if(this._getTypeName($[0][0])===s)return Math.min.apply(Math,$[0]);for(var ae=$[0],le=ae[0],Re=1;Rehn?1:RiCt&&(Ct=le,ae=Ze[Ot]);return ae},_functionMinBy:function($){for(var ae,le,Ze=$[0],Ve=this.createKeyFunction($[1],[s,a]),Ct=1/0,Ot=0;Ot1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var Slt=function(){function t(n,e,i,r){rL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=ST(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=ST(p,4),b=m[3];void 0===b&&(b=1),o.rgba=[m[0],m[1],m[2],b]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return oL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return ove(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return ove(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=Clt[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=ST(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),klt=function(){function t(){rL(this,t),this._events=[]}return oL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function sL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function Ch(t,n){return(n||document).querySelector(t)}function sve(t){t.preventDefault(),t.stopPropagation()}function aL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&sve(o),i(o))})}var ave=function(){function t(n){rL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new klt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return oL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),aL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(sve(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new Slt(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=Ch(".picker_hue",o),this._domSL=Ch(".picker_sl",o),this._domA=Ch(".picker_alpha",o),this._domEdit=Ch(".picker_editor input",o),this._domSample=Ch(".picker_sample",o),this._domOkay=Ch(".picker_done button",o),this._domCancel=Ch(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),sL(r,this._domH,function(l,c){return e._setHSLA(l)}),sL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&sL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),aL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),aL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=Ch(".picker_selector",this._domH),d=Ch(".picker_selector",l),h=Ch(".picker_selector",c);b(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,b(0,d,i[1]),C(0,d,1-i[2]),l.style.color=o,C(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function b(D,E,B){E.style.left=100*B+"%"}function C(D,E,B){E.style.top=100*B+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),lL=document.createElement("style");lL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(lL),ave.StyleElement=lL;var Dlt=Object.freeze({__proto__:null,default:ave});const Tlt=["editor"];function Elt(t,n){if(1&t&&(_(0,"ngb-alert",38),xe(1,"img",39),_(2,"h6",40),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while modifying storage object: ",e.error,"")}}function Alt(t,n){1&t&&(_(0,"ngb-alert",41),xe(1,"img",42),_(2,"h6",40),O(3,"Storage object was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Mlt(t,n){1&t&&(_(0,"span"),O(1,"Save as a copy"),x())}function Olt(t,n){1&t&&O(0,"Save")}function Ilt(t,n){if(1&t&&(_(0,"button",43),te(1,Mlt,2,0,"span",44),te(2,Olt,1,0,"ng-template",null,45,Xo),x()),2&t){const e=sa(3),i=L();S("disabled",i.updating),w(1),S("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const cL=function(){return["/storage"]},Nlt=function(t){return{collection:t}},Flt=function(t,n){return{collection:t,key:n}},Plt=function(t,n,e){return{collection:t,key:n,user_id:e}},uL=function(t){return{"is-invalid":t}},ux=function(t){return{active:t}};let Rlt=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;editor;jsonEditor;error="";object;objectForm;updating=!1;updated=!1;ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",qr.required],keyname:["",qr.required],user_id:["",qr.required],permission_read:[{value:0,disabled:!1},qr.required],permission_write:[{value:0,disabled:!1},qr.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Tlt,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:88,vars:60,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["id","permission_read","name","permission_read",1,"btn-group","btn-group-toggle"],[1,"btn","btn-outline-secondary",3,"ngClass"],["formControlName","permission_read","type","radio",3,"value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["id","permission_write","name","permission_write",1,"btn-group","btn-group-toggle"],["formControlName","permission_write","type","radio",3,"value"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Storage Object"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),O(6,"Storage"),x(),_(7,"li",4)(8,"a",5),O(9),x()(),_(10,"li",4)(11,"a",5),O(12),x()(),_(13,"li",4)(14,"a",5),O(15),x()()()()(),te(16,Elt,4,2,"ngb-alert",6),te(17,Alt,4,1,"ngb-alert",7),_(18,"form",8),ke("ngSubmit",function(){return r.updateObject()}),_(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),O(23,"Collection"),x()(),xe(24,"input",13),_(25,"div",14),O(26,"Collection is required"),x()(),_(27,"div",10)(28,"div",11)(29,"label",15),O(30,"Key"),x()(),xe(31,"input",16),_(32,"div",14),O(33,"Key is required"),x()()(),_(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),O(38,"User ID"),x()(),xe(39,"input",18),_(40,"div",14),O(41,"User ID is required"),x()(),_(42,"div",19)(43,"div",11)(44,"label",20),O(45,"Read Permission"),x()(),_(46,"div",21)(47,"label",22),xe(48,"input",23),O(49," No Read "),x(),_(50,"label",22),xe(51,"input",23),O(52," Owner Read "),x(),_(53,"label",22),xe(54,"input",23),O(55," Public Read "),x()()()(),_(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),O(60,"Version"),x()(),xe(61,"input",25),x(),_(62,"div",19)(63,"div",11)(64,"label",26),O(65,"Write Permission"),x()(),_(66,"div",27)(67,"label",22),xe(68,"input",28),O(69," No Write "),x(),_(70,"label",22),xe(71,"input",28),O(72," Owner Write "),x()()()(),_(73,"div",29)(74,"div",10)(75,"div",11)(76,"label",30),O(77,"Create Time"),x()(),xe(78,"input",31),x(),_(79,"div",10)(80,"div",11)(81,"label",32),O(82,"Update Time"),x()(),xe(83,"input",33),x()(),_(84,"div",34),xe(85,"div",35,36),x(),te(87,Ilt,4,3,"button",37),x()),2&i&&(w(8),S("routerLink",cl(32,cL))("queryParams",Zi(33,Nlt,r.object.collection)),w(1),bt(r.object.collection),w(2),S("routerLink",cl(35,cL))("queryParams",Rr(36,Flt,r.object.collection,r.object.key)),w(1),bt(r.object.key),w(2),S("routerLink",cl(39,cL))("queryParams",ty(40,Plt,r.object.collection,r.object.key,r.object.user_id)),w(1),bt(r.object.user_id),w(1),S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.objectForm),w(6),S("ngClass",Zi(44,uL,r.f.collection.dirty&&r.f.collection.errors)),w(1),S("hidden",r.f.collection.disabled||r.f.collection.valid||r.f.collection.pristine),w(6),S("ngClass",Zi(46,uL,r.f.keyname.dirty&&r.f.keyname.errors)),w(1),S("hidden",r.f.keyname.disabled||r.f.keyname.valid||r.f.keyname.pristine),w(7),S("ngClass",Zi(48,uL,r.f.user_id.dirty&&r.f.user_id.errors)),w(1),S("hidden",r.f.user_id.disabled||r.f.user_id.valid||r.f.user_id.pristine),w(7),S("ngClass",Zi(50,ux,0==r.f.permission_read.value)),w(1),S("value",0),w(2),S("ngClass",Zi(52,ux,1==r.f.permission_read.value)),w(1),S("value",1),w(2),S("ngClass",Zi(54,ux,2==r.f.permission_read.value)),w(1),S("value",2),w(7),S("value",r.object.version),w(6),S("ngClass",Zi(56,ux,0==r.f.permission_write.value)),w(1),S("value",0),w(2),S("ngClass",Zi(58,ux,1==r.f.permission_write.value)),w(1),S("value",1),w(7),S("value",r.object.create_time),w(5),S("value",r.object.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Ru,Of,xn,yo,fa,Us,B3,da,ha,qh,Ts,zs],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),jlt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Llt(t,n){if(1&t&&(_(0,"ngb-alert",18),xe(1,"img",19),_(2,"h6",20),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Blt(t,n){1&t&&(_(0,"th",21),O(1,"Remove"),x())}function $lt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"Yes"),x()}}function Vlt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"No"),x()}}function Hlt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"Yes"),x()}}function Ult(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"No"),x()}}function zlt(t,n){if(1&t){const e=_t();_(0,"td",26)(1,"button",27),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteLeaderboard(r,s,a))}),O(2,"Delete"),x()()}}function Glt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(2),x(),_(3,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(4),x(),_(5,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(6),x(),_(7,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(8),x(),te(9,$lt,2,0,"td",23),te(10,Vlt,2,0,"td",23),te(11,Hlt,2,0,"td",23),te(12,Ult,2,0,"td",23),te(13,zlt,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.id),w(2),bt(i.orderString[e.sort_order]),w(2),bt(i.operatorString[e.operator]),w(2),bt(""===e.reset_schedule?"-":e.reset_schedule),w(1),S("ngIf",e.authoritative),w(1),S("ngIf",!e.authoritative),w(1),S("ngIf",e.tournament),w(1),S("ngIf",!e.tournament),w(1),S("ngIf",i.deleteAllowed())}}function Wlt(t,n){1&t&&(_(0,"tr")(1,"td",28),O(2,"No leaderboards were found."),x()())}let qlt=(()=>{class t{route;router;authService;consoleService;deleteConfirmService;error="";leaderboards=[];nextCursor="";leaderboardsCount=0;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};constructor(e,i,r,o,s){this.route=e,this.router=i,this.authService=r,this.consoleService=o,this.deleteConfirmService=s}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ho),ge(Ai),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),O(4,"Leaderboards"),x(),_(5,"h6",4),O(6),x()(),_(7,"div",5)(8,"div",6)(9,"button",7),ke("click",function(){return r.search(0)}),xe(10,"img",8),x(),_(11,"button",7),ke("click",function(){return r.search(1)}),xe(12,"img",9),x()()()()(),te(13,Llt,4,2,"ngb-alert",10),_(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),O(18,"Leaderboard ID"),x(),_(19,"th",13),O(20,"Sort Order"),x(),_(21,"th",13),O(22,"Operator"),x(),_(23,"th",13),O(24,"Reset Schedule"),x(),_(25,"th",14),O(26,"Authoritative"),x(),_(27,"th",14),O(28,"Tournament"),x(),te(29,Blt,2,0,"th",15),x()(),_(30,"tbody"),te(31,Glt,14,9,"tr",16),te(32,Wlt,3,0,"tr",17),x()()),2&i&&(w(6),bn("",r.leaderboardsCount," leaderboards found."),w(3),S("disabled",0===r.leaderboards.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(16),S("ngIf",r.deleteAllowed()),w(2),S("ngForOf",r.leaderboards),w(1),S("ngIf",0===r.leaderboards.length))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Ylt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xlt(t,n){if(1&t&&(_(0,"ngb-alert",31),xe(1,"img",32),_(2,"h6",33),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying accounts: ",e.error,"")}}function Jlt(t,n){if(1&t){const e=_t();_(0,"ngb-alert",31),xe(1,"img",32),_(2,"h6",33),O(3,"Query ongoing..."),x(),_(4,"button",34),ke("click",function(){return ze(e),Ge(L().cancelQuery())}),O(5,"Cancel!"),x()()}2&t&&S("dismissible",!1)}function Klt(t,n){1&t&&(_(0,"th",35),O(1,"Remove"),x())}function Qlt(t,n){1&t&&(_(0,"tr")(1,"td",36),O(2,"No users found - change the filter criteria or add new user accounts."),x()())}function Zlt(t,n){1&t&&xe(0,"td")}function ect(t,n){if(1&t){const e=_t();_(0,"td",39)(1,"button",40),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteAccount(r,s,a))}),O(2,"Delete"),x()()}}function tct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(6),x(),_(7,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(8),x(),te(9,Zlt,1,0,"td",29),te(10,ect,3,0,"td",38),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.id),w(2),bt(e.username),w(2),bt(e.display_name),w(2),bt(e.update_time),w(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let nct=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";accountsCount=0;accounts=[];nextCursor="";prevCursor="";searchForm;querySubject;ongoingQuery=!1;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.querySubject=new fn,this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}ngOnDestroy(){this.querySubject.next(),this.querySubject.complete()}search(e){this.ongoingQuery&&this.querySubject.next(),this.ongoingQuery=!0;let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).pipe(ns(this.querySubject)).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"}),this.ongoingQuery=!1},o=>{this.error=o,this.ongoingQuery=!1})}cancelQuery(){this.querySubject.next(),this.ongoingQuery=!1}deleteAccount(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:46,vars:10,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button",1,"btn","btn-danger",3,"click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Accounts"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6),xe(9,"input",7),_(10,"div",8)(11,"span",9),ke("click",function(){return r.f.filter.setValue(r.systemUserId)}),xe(12,"img",10),x()(),_(13,"div",8)(14,"div",11)(15,"button",12),ke("click",function(){return r.f.filter_type.setValue(0),r.search(0)}),O(16,"Search"),x(),_(17,"div",13),xe(18,"button",14),_(19,"div",15)(20,"button",16),ke("click",function(){return r.f.filter_type.setValue(1),r.search(0)}),O(21,"Tombstones"),x()()()()()()()(),_(22,"div",17)(23,"div",18)(24,"button",19),ke("click",function(){return r.search(0)}),xe(25,"img",20),x(),_(26,"button",19),ke("click",function(){return r.search(1)}),xe(27,"img",21),x()()()()(),te(28,Xlt,4,2,"ngb-alert",22),te(29,Jlt,6,1,"ngb-alert",22),_(30,"div",23)(31,"table",24)(32,"thead",25)(33,"tr")(34,"th",26),O(35,"User ID"),x(),_(36,"th"),O(37,"Username"),x(),_(38,"th"),O(39,"Display Name"),x(),_(40,"th",27),O(41,"Last Update"),x(),te(42,Klt,2,0,"th",28),x()(),_(43,"tbody"),te(44,Qlt,3,0,"tr",29),te(45,tct,11,6,"tr",30),x()()()),2&i&&(w(3),bn("",r.accountsCount," accounts found."),w(4),S("formGroup",r.searchForm),w(11),S("disabled",!r.f.filter.value||""===r.f.filter.value),w(6),S("disabled",0===r.accounts.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(1),S("ngIf",r.ongoingQuery),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.accounts.length),w(1),S("ngForOf",r.accounts))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),ict=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rct(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().exportAccount(r))}),xe(1,"img",16),O(2,"Export"),x()}}function oct(t,n){1&t&&(_(0,"span"),O(1,"Unban"),x())}function sct(t,n){1&t&&(_(0,"span"),O(1,"Ban"),x())}function act(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().banUnbanAccount(r))}),xe(1,"img",17),te(2,oct,2,0,"span",18),te(3,sct,2,0,"span",18),x()}if(2&t){const e=L();w(2),S("ngIf",e.account.disable_time),w(1),S("ngIf",!e.account.disable_time)}}function lct(t,n){if(1&t){const e=_t();_(0,"button",19),ke("click",function(r){return ze(e),Ge(L().deleteAccount(r,!1))}),xe(1,"img",20),O(2,"Delete"),x()}}function cct(t,n){if(1&t){const e=_t();_(0,"button",19),ke("click",function(r){return ze(e),Ge(L().deleteAccount(r,!0))}),xe(1,"img",21),O(2,"Recorded delete"),x()}}function uct(t,n){if(1&t&&(_(0,"ngb-alert",22),xe(1,"img",23),_(2,"h6",24),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const dct=function(t,n){return["/accounts",t,n]};function hct(t,n){if(1&t&&(_(0,"div"),Cl(1,25),_(2,"a",26),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,dct,i.account.user.id,e.path)),w(1),bt(e.label)}}const fct=function(){return["/accounts"]},pct=function(){return["/storage"]},mct=function(t){return{user_id:t}};let gct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;account;error="";views=[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,XI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Account"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Account"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,rct,3,0,"button",7),te(12,act,4,2,"button",7),te(13,lct,3,0,"button",8),te(14,cct,3,0,"button",8),x()(),te(15,uct,4,2,"ngb-alert",9),_(16,"nav",10,11),te(18,hct,4,6,"div",12),_(19,"div"),Cl(20,13),_(21,"a",14),O(22," Storage "),x(),Sl(),x()(),xe(23,"router-outlet")),2&i&&(w(6),S("routerLink",cl(10,fct)),w(3),bt(r.account.user.id),w(2),S("ngIf",r.exportAllowed()),w(1),S("ngIf",r.banAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views),w(3),S("routerLink",cl(11,pct))("queryParams",Zi(12,mct,r.account.user.id)))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),vct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const yct=["editor"];function _ct(t,n){if(1&t&&(_(0,"ngb-alert",29),xe(1,"img",30),_(2,"h6",31),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function bct(t,n){1&t&&(_(0,"ngb-alert",32),xe(1,"img",33),_(2,"h6",31),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function xct(t,n){1&t&&(_(0,"button",34),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}const wct=function(t){return{"is-invalid":t}};let Cct=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",qr.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(yct,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,_ct,4,2,"ngb-alert",0),te(1,bct,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateAccount()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"User ID"),x()(),xe(8,"input",7),x(),_(9,"div",4)(10,"div",5)(11,"label",8),O(12,"Username"),x()(),xe(13,"input",9),_(14,"div",10),O(15,"Username is required"),x()()(),_(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),O(20,"Display Name"),x()(),xe(21,"input",12),x(),_(22,"div",13)(23,"div",5)(24,"label",14),O(25,"Avatar URL"),x()(),xe(26,"input",15),x()(),_(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),O(31,"Location"),x()(),xe(32,"input",17),x(),_(33,"div",13)(34,"div",5)(35,"label",18),O(36,"Timezone"),x()(),xe(37,"input",19),x()(),_(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),O(42,"Create Time"),x()(),xe(43,"input",22),x(),_(44,"div",4)(45,"div",5)(46,"label",23),O(47,"Update Time"),x()(),xe(48,"input",24),x()(),_(49,"div",25),xe(50,"div",26,27),x(),te(52,xct,2,1,"button",28),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.accountForm),w(6),S("value",r.account.user.id),w(5),S("ngClass",Zi(9,wct,r.f.username.dirty&&r.f.username.errors)),w(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),w(29),S("value",r.account.user.create_time),w(5),S("value",r.account.user.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Of,xn,yo,fa,Us,da,ha,qh,Ts,zs]})}return t})();function Sct(t,n){if(1&t&&(_(0,"ngb-alert",36),xe(1,"img",37),_(2,"h6",38),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function kct(t,n){1&t&&(_(0,"ngb-alert",39),xe(1,"img",40),_(2,"h6",38),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Dct(t,n){if(1&t&&(_(0,"option",41),O(1),x()),2&t){const e=n.$implicit,i=n.index;Ph("value",i),S("selected",0===i),w(1),bt(e.id)}}function Tct(t,n){1&t&&(_(0,"button",42),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}let Ect=(()=>{class t{route;router;consoleService;authService;formBuilder;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,Sct,4,2,"ngb-alert",0),te(1,kct,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateAccount()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"Device IDs"),x()(),_(8,"div",7)(9,"button",8),ke("click",function(){return r.copyDeviceIdToClipboard(r.f.selected_device_id_index.value)}),xe(10,"img",9),O(11," Copy "),x(),_(12,"select",10),te(13,Dct,2,3,"option",11),x(),_(14,"div",12)(15,"button",13),ke("click",function(s){return r.unlinkDeviceId(s)}),O(16,"Unlink"),x()()()(),_(17,"div",4)(18,"div",5)(19,"label",14),O(20,"Custom ID"),x()(),_(21,"div",7),xe(22,"input",15),_(23,"div",12)(24,"button",13),ke("click",function(s){return r.unlinkCustomID(s)}),O(25,"Unlink"),x()()()()(),_(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),O(30,"Facebook ID"),x()(),_(31,"div",7),xe(32,"input",17),_(33,"div",12)(34,"button",13),ke("click",function(s){return r.unlinkFacebook(s)}),O(35,"Unlink"),x()()()(),_(36,"div",18)(37,"div",5)(38,"label",19),O(39,"FB Instant Game ID"),x()(),_(40,"div",7),xe(41,"input",20),_(42,"div",12)(43,"button",13),ke("click",function(s){return r.unlinkFacebookInstantGames(s)}),O(44,"Unlink"),x()()()()(),_(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),O(49,"Apple ID"),x()(),_(50,"div",7),xe(51,"input",22),_(52,"div",12)(53,"button",13),ke("click",function(s){return r.unlinkApple(s)}),O(54,"Unlink"),x()()()(),_(55,"div",18)(56,"div",5)(57,"label",23),O(58,"GameCenter ID"),x()(),_(59,"div",7),xe(60,"input",24),_(61,"div",12)(62,"button",13),ke("click",function(s){return r.unlinkGameCenter(s)}),O(63,"Unlink"),x()()()()(),_(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),O(68,"Google ID"),x()(),_(69,"div",7),xe(70,"input",26),_(71,"div",12)(72,"button",13),ke("click",function(s){return r.unlinkGoogle(s)}),O(73,"Unlink"),x()()()(),_(74,"div",4)(75,"div",5)(76,"label",27),O(77,"Steam ID"),x()(),_(78,"div",7),xe(79,"input",28),_(80,"div",12)(81,"button",13),ke("click",function(s){return r.unlinkSteam(s)}),O(82,"Unlink"),x()()()()(),_(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),O(87,"Email"),x(),xe(88,"br"),x(),xe(89,"input",30),x(),_(90,"div",4)(91,"div",5)(92,"label",31),O(93,"Password"),x()(),xe(94,"input",32),x()(),_(95,"div",33)(96,"div",4),xe(97,"div",5),_(98,"span",34),O(99),x()(),xe(100,"div",4),x(),te(101,Tct,2,1,"button",35),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.accountForm),w(11),S("ngForOf",r.account.devices),w(2),S("disabled",!r.updateAllowed()||0===r.account.devices.length),w(7),S("value",r.account.custom_id),w(2),S("disabled",!r.updateAllowed()||!r.account.custom_id||""===r.account.custom_id),w(8),S("value",r.account.user.facebook_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_id||""===r.account.user.facebook_id),w(7),S("value",r.account.user.facebook_instant_game_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_instant_game_id||""===r.account.user.facebook_instant_game_id),w(8),S("value",r.account.user.apple_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.apple_id||""===r.account.user.apple_id),w(7),S("value",r.account.user.gamecenter_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.gamecenter_id||""===r.account.user.gamecenter_id),w(8),S("value",r.account.user.google_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.google_id||""===r.account.user.google_id),w(7),S("value",r.account.user.steam_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.steam_id||""===r.account.user.steam_id),w(18),bn("Verification Status: ",null===r.account.verify_time?"Not Verified":"Verified",""),w(2),S("ngIf",r.updateAllowed()))},dependencies:[Un,xn,yo,fa,HC,UC,Us,kv,da,ha,Ts,zs],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})}return t})();const Act=["editor"];function Mct(t,n){if(1&t&&(_(0,"ngb-alert",24),xe(1,"img",25),_(2,"h6",26),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Oct(t,n){1&t&&(_(0,"ngb-alert",27),xe(1,"img",28),_(2,"h6",26),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Ict(t,n){if(1&t){const e=_t();_(0,"button",29),ke("click",function(){return ze(e),Ge(L().updateWallet())}),O(1,"Save"),x()}2&t&&S("disabled",L().updating)}function Nct(t,n){1&t&&(_(0,"th",30),O(1,"Remove"),x())}function Fct(t,n){1&t&&(_(0,"tr")(1,"td",31),O(2,"No wallet ledger items found."),x()())}function Pct(t,n){1&t&&xe(0,"div",37)}function Rct(t,n){1&t&&xe(0,"div",38)}function jct(t,n){if(1&t){const e=_t();_(0,"td")(1,"button",39),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteLedgerItem(r,s,a))}),O(2,"Delete"),x()()}}function Lct(t,n){if(1&t&&(_(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),O(4),x()()()()),2&t){const e=L().$implicit;w(4),bt(e.metadata)}}function Bct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",32),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),te(3,Pct,1,0,"div",33),te(4,Rct,1,0,"div",34),x(),O(5),x(),_(6,"td",35)(7,"pre",36),O(8),x()(),_(9,"td"),O(10),x(),te(11,jct,3,0,"td",22),x(),te(12,Lct,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.walletLedgerMetadataOpen[e]),w(1),S("ngIf",r.walletLedgerMetadataOpen[e]),w(1),bn(" ",i.id," "),w(3),bt(i.changeset),w(2),bt(i.update_time),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.walletLedgerMetadataOpen[e])}}let $ct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;editor;jsonEditor;error="";account;walletLedger=[];walletLedgerMetadataOpen=[];updating=!1;updated=!1;nextCursor="";prevCursor="";limit=100;userID;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Act,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(te(0,Mct,4,2,"ngb-alert",0),te(1,Oct,4,1,"ngb-alert",1),_(2,"div",2),xe(3,"div",3,4),x(),te(5,Ict,2,1,"button",5),xe(6,"hr",6),_(7,"div",7)(8,"div",8),xe(9,"div",9),_(10,"div",10)(11,"div",11)(12,"button",12),ke("click",function(){return r.loadData("")}),xe(13,"img",13),x(),_(14,"button",12),ke("click",function(){return r.loadData(r.prevCursor)}),xe(15,"img",14),x(),_(16,"button",12),ke("click",function(){return r.loadData(r.nextCursor)}),xe(17,"img",15),x()()()()(),_(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),O(23,"ID"),x(),_(24,"th"),O(25,"Changeset"),x(),_(26,"th",20),O(27,"Update Time"),x(),te(28,Nct,2,0,"th",21),x()(),_(29,"tbody"),te(30,Fct,3,0,"tr",22),te(31,Bct,13,7,"ng-template",23),x()()()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(4),S("ngIf",r.updateAllowed()),w(7),S("disabled",0===r.walletLedger.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(12),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.walletLedger.length),w(1),S("ngForOf",r.walletLedger))},dependencies:[Un,xn,yo],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})}return t})(),Vct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hct(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Uct(t,n){1&t&&(_(0,"th",13),O(1,"Remove"),x())}function zct(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No friends found."),x()())}function Gct(t,n){1&t&&(_(0,"span"),O(1,"Friend (0)"),x())}function Wct(t,n){1&t&&(_(0,"span"),O(1,"Invite Sent (1)"),x())}function qct(t,n){1&t&&(_(0,"span"),O(1,"Invite Received (2)"),x())}function Yct(t,n){1&t&&(_(0,"span"),O(1,"Blocked (3)"),x())}function Xct(t,n){if(1&t){const e=_t();_(0,"td",17)(1,"button",18),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteFriend(r,s,a))}),O(2,"Delete"),x()()}}function Jct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),O(2),x(),_(3,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),O(4),x(),_(5,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),te(6,Gct,2,0,"span",8),te(7,Wct,2,0,"span",8),te(8,qct,2,0,"span",8),te(9,Yct,2,0,"span",8),x(),_(10,"td"),O(11),x(),te(12,Xct,3,0,"td",16),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.user.id),w(2),bt(e.user.username),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(2),bt(e.update_time),w(1),S("ngIf",i.deleteAllowed())}}let Kct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;error="";account;friends=[];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})})}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,Hct,4,2,"ngb-alert",0),_(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),O(6,"User ID"),x(),_(7,"th"),O(8,"Username"),x(),_(9,"th",5),O(10,"State"),x(),_(11,"th",6),O(12,"Update Time"),x(),te(13,Uct,2,0,"th",7),x()(),_(14,"tbody"),te(15,zct,3,0,"tr",8),te(16,Jct,13,8,"tr",9),x()()()),2&i&&(S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.friends.length),w(1),S("ngForOf",r.friends))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Qct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zct(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function eut(t,n){1&t&&(_(0,"th",13),O(1,"Remove"),x())}function tut(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No group membership found."),x()())}function nut(t,n){1&t&&(_(0,"span"),O(1,"Superadmin (0)"),x())}function iut(t,n){1&t&&(_(0,"span"),O(1,"Admin (1)"),x())}function rut(t,n){1&t&&(_(0,"span"),O(1,"Member (2)"),x())}function out(t,n){1&t&&(_(0,"span"),O(1,"Join Request (3)"),x())}function sut(t,n){1&t&&(_(0,"span"),O(1,"Banned (4)"),x())}function aut(t,n){if(1&t){const e=_t();_(0,"td")(1,"button",16),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroupUser(r,s,a))}),O(2,"Delete"),x()()}}function lut(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),te(6,nut,2,0,"span",8),te(7,iut,2,0,"span",8),te(8,rut,2,0,"span",8),te(9,out,2,0,"span",8),te(10,sut,2,0,"span",8),x(),_(11,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(12),x(),te(13,aut,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.group.id),w(2),bt(e.group.name),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(1),S("ngIf",4===e.state),w(2),bt(e.group.update_time),w(1),S("ngIf",i.deleteAllowed())}}let cut=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;error="";account;groups=[];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,Zct,4,2,"ngb-alert",0),_(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),O(6,"Group ID"),x(),_(7,"th"),O(8,"Name"),x(),_(9,"th",5),O(10,"State"),x(),_(11,"th",6),O(12,"Update Time"),x(),te(13,eut,2,0,"th",7),x()(),_(14,"tbody"),te(15,tut,3,0,"tr",8),te(16,lut,14,9,"tr",9),x()()()),2&i&&(S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.groups.length),w(1),S("ngForOf",r.groups))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),uut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dut=["editor"];function hut(t,n){if(1&t&&(_(0,"ngb-alert",34),xe(1,"img",35),_(2,"h6",36),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function fut(t,n){1&t&&(_(0,"ngb-alert",37),xe(1,"img",38),_(2,"h6",36),O(3,"Group was modified successfully."),x()()),2&t&&S("dismissible",!1)}function put(t,n){1&t&&(_(0,"button",39),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}const mut=function(t){return["/accounts",t]},gut=function(t){return{"is-invalid":t}};let vut=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";group;groupForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",qr.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(dut,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,hut,4,2,"ngb-alert",0),te(1,fut,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateGroup()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"Group ID"),x()(),xe(8,"input",7),x(),_(9,"div",4)(10,"div",5)(11,"label",8),O(12,"Creator ID"),x()(),_(13,"a",9),xe(14,"input",10),x()()(),_(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),O(19,"Name"),x()(),xe(20,"input",12),_(21,"div",13),O(22,"Name is required"),x()(),_(23,"div",4)(24,"div",5)(25,"label",14),O(26,"Description"),x()(),xe(27,"input",15),x()(),_(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),O(32,"Avatar URL"),x()(),xe(33,"input",18),x(),_(34,"div",4)(35,"div",5)(36,"label",19),O(37,"Language"),x()(),xe(38,"input",20),x()(),_(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),O(43,"Members"),x()(),xe(44,"input",21),x(),_(45,"div",16)(46,"div",5)(47,"label",22),O(48,"Max Count"),x()(),xe(49,"input",23),x()(),_(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),O(54,"Open"),x()(),xe(55,"input",24),x()(),_(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),O(60,"Create Time"),x()(),xe(61,"input",27),x(),_(62,"div",4)(63,"div",5)(64,"label",28),O(65,"Update Time"),x()(),xe(66,"input",29),x()(),_(67,"div",30),xe(68,"div",31,32),x(),te(70,put,2,1,"button",33),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.groupForm),w(6),S("value",r.group.id),w(5),S("routerLink",Zi(12,mut,r.group.creator_id)),w(1),S("value",r.group.creator_id),w(6),S("ngClass",Zi(14,gut,r.f.name.dirty&&r.f.name.errors)),w(1),S("hidden",r.f.name.disabled||r.f.name.valid||r.f.name.pristine),w(23),S("value",r.group.edge_count),w(17),S("value",r.group.create_time),w(5),S("value",r.group.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Ru,Of,xn,yo,fa,Us,OC,da,ha,qh,Ts,zs]})}return t})();function yut(t,n){if(1&t&&(_(0,"ngb-alert",13),xe(1,"img",14),_(2,"h6",15),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function _ut(t,n){1&t&&(_(0,"span"),O(1,"Add by membership state"),x())}function but(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L(2);w(1),bt(e.activeState)}}function xut(t,n){if(1&t){const e=_t();_(0,"button",20),ke("click",function(){const o=ze(e).$implicit;return Ge(L(2).activeState=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function wut(t,n){if(1&t&&(_(0,"div",16)(1,"button",17),te(2,_ut,2,0,"span",11),te(3,but,2,1,"span",11),x(),_(4,"div",18),te(5,xut,2,1,"button",19),x()()),2&t){const e=L();w(2),S("ngIf",!e.activeState||""===e.activeState),w(1),S("ngIf",e.activeState&&""!==e.activeState),w(2),S("ngForOf",e.states)}}function Cut(t,n){if(1&t){const e=_t();_(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),xe(5,"input",26),_(6,"div",27)(7,"div",28)(8,"button",29),ke("click",function(){return ze(e),Ge(L().add())}),O(9,"Add"),x()()()()()()()()}if(2&t){const e=L();w(3),S("formGroup",e.addForm)}}function Sut(t,n){1&t&&(_(0,"th",30),O(1,"Demote"),x())}function kut(t,n){1&t&&(_(0,"th",30),O(1,"Promote"),x())}function Dut(t,n){1&t&&(_(0,"th",31),O(1,"Remove"),x())}function Tut(t,n){1&t&&(_(0,"tr")(1,"td",32),O(2,"No group membership found."),x()())}function Eut(t,n){1&t&&(_(0,"span"),O(1,"Superadmin (0)"),x())}function Aut(t,n){1&t&&(_(0,"span"),O(1,"Admin (1)"),x())}function Mut(t,n){1&t&&(_(0,"span"),O(1,"Member (2)"),x())}function Out(t,n){1&t&&(_(0,"span"),O(1,"Join Request (3)"),x())}function Iut(t,n){1&t&&(_(0,"span"),O(1,"Banned (4)"),x())}function Nut(t,n){if(1&t){const e=_t();_(0,"td",36)(1,"button",37),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().demoteGroupUser(r,s,a))}),lt(),_(2,"svg",38),xe(3,"path",39),x()()()}}function Fut(t,n){if(1&t){const e=_t();_(0,"td",36)(1,"button",37),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().promoteGroupUser(r,s,a))}),lt(),_(2,"svg",40),xe(3,"path",41),x()()()}}function Put(t,n){if(1&t){const e=_t();_(0,"td",42)(1,"button",43),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroupUser(r,s,a))}),O(2,"Delete"),x()()}}function Rut(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),te(6,Eut,2,0,"span",11),te(7,Aut,2,0,"span",11),te(8,Mut,2,0,"span",11),te(9,Out,2,0,"span",11),te(10,Iut,2,0,"span",11),x(),_(11,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(12),x(),te(13,Nut,4,0,"td",34),te(14,Fut,4,0,"td",34),te(15,Put,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.user.id),w(2),bt(e.user.username),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(1),S("ngIf",4===e.state),w(2),bt(e.user.update_time),w(1),S("ngIf",i.editionAllowed()),w(1),S("ngIf",i.editionAllowed()),w(1),S("ngIf",i.editionAllowed())}}let jut=(()=>{class t{route;router;consoleService;formBuilder;authService;error="";group;members=[];activeState="Add Member";states=["Add Member","Join"];addForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge($a),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,yut,4,2,"ngb-alert",0),te(1,wut,6,3,"div",1),te(2,Cut,10,1,"div",2),_(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),O(8,"User ID"),x(),_(9,"th"),O(10,"Name"),x(),_(11,"th",7),O(12,"State"),x(),_(13,"th",8),O(14,"Update Time"),x(),te(15,Sut,2,0,"th",9),te(16,kut,2,0,"th",9),te(17,Dut,2,0,"th",10),x()(),_(18,"tbody"),te(19,Tut,3,0,"tr",11),te(20,Rut,16,11,"tr",12),x()()()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",!r.group.open&&r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(13),S("ngIf",r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(2),S("ngIf",0===r.members.length),w(1),S("ngForOf",r.members))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),Lut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function But(t,n){if(1&t&&(_(0,"ngb-alert",28),xe(1,"img",29),_(2,"h6",30),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function $ut(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),bt(e.activeType)}}function Vut(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeType=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function Hut(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),bt(e.activeNode)}}function Uut(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeNode=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function zut(t,n){1&t&&(_(0,"tr")(1,"td",32),O(2,"No realtime matches were found."),x()())}function Gut(t,n){1&t&&xe(0,"div",40)}function Wut(t,n){1&t&&xe(0,"div",41)}function qut(t,n){if(1&t){const e=_t();_(0,"div",37),ke("click",function(){ze(e);const r=L(),o=r.index,s=r.$implicit,a=L();return a.getMatchState(o,s),Ge(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),te(1,Gut,1,0,"div",38),te(2,Wut,1,0,"div",39),x()}if(2&t){const e=L().index,i=L();w(1),S("ngIf",!i.matchStatesOpen[e]),w(1),S("ngIf",i.matchStatesOpen[e])}}function Yut(t,n){1&t&&xe(0,"div",42)}function Xut(t,n){1&t&&(_(0,"span"),O(1,"Yes"),x())}function Jut(t,n){1&t&&(_(0,"span"),O(1,"No"),x())}function Kut(t,n){1&t&&xe(0,"img",51)}function Qut(t,n){if(1&t&&(_(0,"div")(1,"small")(2,"b"),O(3,"Current Tick"),x()(),_(4,"pre",47)(5,"small"),O(6),x()(),_(7,"small")(8,"b"),O(9,"Match State"),x()(),_(10,"pre",47)(11,"small"),O(12),x()()()),2&t){const e=L(2).index,i=L();w(6),bt(i.matchStates[e].tick),w(6),bt(i.matchStates[e].state)}}function Zut(t,n){1&t&&xe(0,"img",51)}function edt(t,n){if(1&t&&(_(0,"pre",47)(1,"small"),O(2),x()()),2&t){const e=L(2).index,i=L();w(2),bt(i.getMatchPresencesString(i.matchStates[e].presences))}}function tdt(t,n){if(1&t&&(_(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),O(6,"Match Label"),x()(),_(7,"pre",47)(8,"small"),O(9),x()()(),_(10,"div",48),te(11,Kut,1,0,"img",49),te(12,Qut,13,2,"div",7),x(),_(13,"div",48)(14,"small")(15,"b"),O(16,"Match Presences"),x()(),te(17,Zut,1,0,"img",49),te(18,edt,3,1,"pre",50),x()()()()),2&t){const e=L(),i=e.$implicit,r=e.index,o=L();w(9),bt(i.api_match.label),w(2),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),S("ngIf",null!==o.matchStates[r]),w(5),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),S("ngIf",null!==o.matchStates[r])}}function ndt(t,n){if(1&t&&(_(0,"tr")(1,"td"),te(2,qut,3,2,"div",33),te(3,Yut,1,0,"div",34),O(4),x(),_(5,"td"),O(6),x(),_(7,"td",35),te(8,Xut,2,0,"span",7),te(9,Jut,2,0,"span",7),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x()(),te(16,tdt,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=L();w(2),S("ngIf",i.api_match.authoritative),w(1),S("ngIf",!i.api_match.authoritative),w(1),bn(" ",i.api_match.match_id," "),w(2),bt(i.api_match.size),w(2),S("ngIf",i.api_match.authoritative),w(1),S("ngIf",!i.api_match.authoritative),w(2),bt(i.node),w(2),bt(i.api_match.handler_name),w(2),bt(i.api_match.authoritative?i.api_match.tick_rate:"-"),w(1),S("ngIf",r.matchStatesOpen[e])}}let idt=(()=>{class t{route;router;formBuilder;consoleService;error="";matches=[];matchStates=[];matchStatesOpen=[];updated=!1;searchForm1;searchForm2;searchForm3;type;activeType="All";types=["All","Authoritative","Relayed"];activeNode="All Nodes";nodes=["All Nodes"];constructor(e,i,r,o){this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));const i=e.get("type");this.type=Number(i);const r=e.get("node");if(this.route.data.subscribe(o=>{o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1===this.type||2===this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,lve(this.consoleService,e,0===e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge($a),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Active Matches"),x(),_(2,"h6",1),O(3),x(),te(4,But,4,2,"ngb-alert",2),_(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),te(9,$ut,2,1,"span",7),x(),_(10,"div",8),te(11,Vut,2,1,"button",9),x()()(),_(12,"div",10)(13,"button",11),ke("click",function(){return r.search()}),O(14,"Search"),x()()(),_(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),ke("ngSubmit",function(){return r.search()}),_(19,"div",16),xe(20,"input",17),x()(),_(21,"form",15),ke("ngSubmit",function(){return r.search()}),_(22,"div",16),xe(23,"input",17),x()(),_(24,"form",15),ke("ngSubmit",function(){return r.search()}),_(25,"div",16),xe(26,"input",18),_(27,"div",10)(28,"div",5)(29,"button",19),te(30,Hut,2,1,"span",7),x(),_(31,"div",8),te(32,Uut,2,1,"button",9),x()()()()()()()(),_(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),O(39,"Match ID"),x()(),_(40,"th",23),O(41,"Presence Count"),x(),_(42,"th",24),O(43,"Authoritative"),x(),_(44,"th",24),O(45,"Node"),x(),_(46,"th",25),O(47,"Handler Name"),x(),_(48,"th",26),O(49,"Tick Rate"),x()()(),_(50,"tbody"),te(51,zut,3,0,"tr",7),te(52,ndt,17,10,"ng-template",27),x()()()),2&i&&(w(3),bn("",r.matches.length," running matches found."),w(1),S("ngIf",r.error),w(5),S("ngIf",r.activeType&&""!==r.activeType),w(2),S("ngForOf",r.types),w(7),S("hidden","All"!==r.activeType)("formGroup",r.searchForm1),w(3),S("hidden","Relayed"!==r.activeType)("formGroup",r.searchForm2),w(3),S("hidden","Authoritative"!==r.activeType)("formGroup",r.searchForm3),w(6),S("ngIf",r.activeNode&&""!==r.activeNode),w(2),S("ngForOf",r.nodes),w(6),Vn("pl-3",r.matches.length>0),w(13),S("ngIf",0===r.matches.length),w(1),S("ngForOf",r.matches))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),rdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));return lve(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))))}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lve(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return Hn(null)}let odt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(it(r=>Hn(r.nodes.map(o=>o.name)))).pipe(Jl(r=>(e.data={...e.data,error:r},Hn([]))))}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sdt(t,n){if(1&t&&(_(0,"ngb-alert",25),xe(1,"img",26),_(2,"h6",27),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying groups: ",e.error,"")}}function adt(t,n){1&t&&(_(0,"th",28),O(1,"Remove"),x())}function ldt(t,n){1&t&&(_(0,"tr")(1,"td",29),O(2,"No groups found - change the filter criteria or add new user groups."),x()())}function cdt(t,n){1&t&&xe(0,"td")}function udt(t,n){if(1&t){const e=_t();_(0,"td",32)(1,"button",33),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroup(r,s,a))}),O(2,"Delete"),x()()}}function ddt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(2),x(),_(3,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(4),x(),_(5,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(6),x(),te(7,cdt,1,0,"td",23),te(8,udt,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.id),w(2),bt(e.name),w(2),bt(e.update_time),w(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let hdt=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";groupsCount=0;groups=[];nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Groups"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6),xe(9,"input",7),_(10,"div",8)(11,"div",9)(12,"button",10),ke("click",function(){return r.search(0)}),O(13,"Search"),x()()()()()(),_(14,"div",11)(15,"div",12)(16,"button",13),ke("click",function(){return r.search(0)}),xe(17,"img",14),x(),_(18,"button",13),ke("click",function(){return r.search(1)}),xe(19,"img",15),x()()()()(),te(20,sdt,4,2,"ngb-alert",16),_(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),O(26,"Group ID"),x(),_(27,"th"),O(28,"Name"),x(),_(29,"th",21),O(30,"Last Update"),x(),te(31,adt,2,0,"th",22),x()(),_(32,"tbody"),te(33,ldt,3,0,"tr",23),te(34,ddt,9,5,"tr",24),x()()()),2&i&&(w(3),bn("",r.groupsCount," groups found."),w(4),S("formGroup",r.searchForm),w(9),S("disabled",0===r.groups.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(11),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.groups.length),w(1),S("ngForOf",r.groups))},dependencies:[Un,xn,yo,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),fdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pdt(t,n){if(1&t){const e=_t();_(0,"button",13),ke("click",function(r){return ze(e),Ge(L().exportGroup(r))}),xe(1,"img",14),O(2,"Export"),x()}}function mdt(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().deleteGroup(r,!1))}),xe(1,"img",16),O(2,"Delete"),x()}}function gdt(t,n){if(1&t&&(_(0,"ngb-alert",17),xe(1,"img",18),_(2,"h6",19),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const vdt=function(t,n){return["/groups",t,n]};function ydt(t,n){if(1&t&&(_(0,"div"),Cl(1,20),_(2,"a",21),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,vdt,i.group.id,e.path)),w(1),bt(e.label)}}const _dt=function(){return["/groups"]};let bdt=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;group;error="";views=[{label:"Details",path:"details"},{label:"Members",path:"members"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,XI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Group"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Group"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,pdt,3,0,"button",7),te(12,mdt,3,0,"button",8),x()(),te(13,gdt,4,2,"ngb-alert",9),_(14,"nav",10,11),te(16,ydt,4,6,"div",12),x(),xe(17,"router-outlet")),2&i&&(w(6),S("routerLink",cl(6,_dt)),w(3),bt(r.group.id),w(2),S("ngIf",r.exportAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),xdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wdt(t,n){if(1&t){const e=_t();_(0,"button",12),ke("click",function(r){return ze(e),Ge(L().deleteLeaderboard(r))}),xe(1,"img",13),O(2,"Delete Leaderboard"),x()}}function Cdt(t,n){if(1&t&&(_(0,"ngb-alert",14),xe(1,"img",15),_(2,"h6",16),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const Sdt=function(t,n){return["/leaderboards",t,n]};function kdt(t,n){if(1&t&&(_(0,"div"),Cl(1,17),_(2,"a",18),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,Sdt,i.leaderboard.id,e.path)),w(1),bt(e.label)}}const Ddt=function(){return["/leaderboards"]};let Tdt=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;leaderboard;error="";views=[{label:"Details",path:"details"},{label:"Records",path:"records"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Leaderboard"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Leaderboards"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,wdt,3,0,"button",7),x()(),te(12,Cdt,4,2,"ngb-alert",8),_(13,"nav",9,10),te(15,kdt,4,6,"div",11),x(),xe(16,"router-outlet")),2&i&&(w(6),S("routerLink",cl(5,Ddt)),w(3),bt(r.leaderboard.id),w(2),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),Edt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Adt=["editor"];function Mdt(t,n){if(1&t&&(_(0,"ngb-alert",24),xe(1,"img",25),_(2,"h6",26),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Odt(t,n){if(1&t&&(_(0,"div",27)(1,"h6"),O(2,"Tournament"),x(),xe(3,"hr",28),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),O(8,"Title"),x()(),xe(9,"input",30),x(),_(10,"div",3)(11,"div",4)(12,"label",31),O(13,"Description"),x()(),xe(14,"input",32),x()(),_(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),O(19,"Category"),x()(),xe(20,"input",34),x(),_(21,"div",3)(22,"div",4)(23,"label",35),O(24,"Max Num Score"),x()(),xe(25,"input",36),x()(),_(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),O(30,"Size"),x()(),xe(31,"input",38),x(),_(32,"div",3)(33,"div",4)(34,"label",39),O(35,"Max Size"),x()(),xe(36,"input",40),x()(),_(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),O(41,"Duration"),x()(),xe(42,"input",42),x(),_(43,"div",3)(44,"div",4)(45,"label",43),O(46,"Join Required"),x()(),xe(47,"input",44),x()(),_(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),O(52,"Start Time"),x()(),xe(53,"input",46),x(),_(54,"div",3)(55,"div",4)(56,"label",47),O(57,"End Time"),x()(),xe(58,"input",48),x()(),_(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),O(63,"Start Active"),x()(),xe(64,"input",50),x(),_(65,"div",3)(66,"div",4)(67,"label",51),O(68,"End Active"),x()(),xe(69,"input",52),x()()()),2&t){const e=L();w(9),S("value",e.leaderboard.title),w(5),S("value",e.leaderboard.description),w(6),S("value",e.leaderboard.category),w(5),S("value",e.leaderboard.max_num_score),w(6),S("value",e.leaderboard.size),w(5),S("value",e.leaderboard.max_size),w(6),S("value",e.leaderboard.duration),w(5),S("value",e.leaderboard.join_required),w(6),S("value",e.leaderboard.start_time),w(5),S("value",e.leaderboard.end_time),w(6),S("value",e.leaderboard.start_active),w(5),S("value",e.leaderboard.end_active)}}let Idt=(()=>{class t{route;editor;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};jsonEditor;leaderboard;error="";constructor(e){this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}static \u0275fac=function(i){return new(i||t)(ge(Vr))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Adt,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(i,r){1&i&&(te(0,Mdt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),O(6,"ID"),x()(),xe(7,"input",6),x(),_(8,"div",3)(9,"div",4)(10,"label",7),O(11,"Authoritative"),x()(),xe(12,"input",8),x()(),_(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),O(17,"Sort Order"),x()(),xe(18,"input",10),x(),_(19,"div",3)(20,"div",4)(21,"label",11),O(22,"Operator"),x()(),xe(23,"input",12),x()(),_(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),O(28,"Reset Schedule"),x()(),xe(29,"input",14),x(),_(30,"div",3)(31,"div",4)(32,"label",15),O(33,"Create Time"),x()(),xe(34,"input",16),x()(),_(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),O(39,"Prev Reset"),x()(),xe(40,"input",18),x(),_(41,"div",3)(42,"div",4)(43,"label",15),O(44,"Next Reset"),x()(),xe(45,"input",19),x()()(),te(46,Odt,70,12,"div",20),_(47,"div",21),xe(48,"div",22,23),x()),2&i&&(S("ngIf",r.error),w(7),S("value",r.leaderboard.id),w(5),S("value",r.leaderboard.authoritative),w(6),S("value",r.orderString[r.leaderboard.sort_order]),w(5),S("value",r.operatorString[r.leaderboard.operator]),w(6),S("value",r.leaderboard.reset_schedule),w(5),S("value",r.leaderboard.create_time),w(6),S("value",r.leaderboard.prev_reset),w(5),S("value",r.leaderboard.next_reset),w(1),S("ngIf",r.leaderboard.tournament))},dependencies:[xn,yo],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})();function Ndt(t,n){if(1&t&&(_(0,"ngb-alert",19),xe(1,"img",20),_(2,"h6",21),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Fdt(t,n){1&t&&(_(0,"th",22),O(1,"Remove"),x())}function Pdt(t,n){1&t&&(_(0,"tr")(1,"td",23),O(2,"No records found."),x()())}function Rdt(t,n){1&t&&xe(0,"div",28)}function jdt(t,n){1&t&&xe(0,"div",29)}function Ldt(t,n){if(1&t){const e=_t();_(0,"td",30)(1,"button",31),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteRecord(r,s,a))}),O(2,"Delete"),x()()}}function Bdt(t,n){if(1&t&&(_(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),O(4),x()()()()),2&t){const e=L().$implicit;w(4),bt(e.metadata)}}function $dt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",24),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),te(3,Rdt,1,0,"div",25),te(4,jdt,1,0,"div",26),x(),O(5),x(),_(6,"td"),O(7),x(),_(8,"td"),O(9),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x(),te(18,Ldt,3,0,"td",27),x(),te(19,Bdt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.recordsMetadataOpen[e]),w(1),S("ngIf",r.recordsMetadataOpen[e]),w(1),bn(" ",i.owner_id," "),w(2),bt(i.username),w(2),bt(i.score),w(2),bt(i.subscore),w(2),bt(i.rank),w(2),bt(i.num_score),w(2),bt(i.expiry_time?i.expiry_time:"-"),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.recordsMetadataOpen[e])}}let Vdt=(()=>{class t{route;consoleService;authService;deleteConfirmService;error="";leaderboard;records=[];recordsMetadataOpen=[];nextCursor="";prevCursor="";constructor(e,i,r,o){this.route=e,this.consoleService=i,this.authService=r,this.deleteConfirmService=o}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(te(0,Ndt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadRecords(0)}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadRecords(-1)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadRecords(1)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),O(17,"Owner ID"),x(),_(18,"th"),O(19,"Username"),x(),_(20,"th",14),O(21,"Score"),x(),_(22,"th",14),O(23,"Subscore"),x(),_(24,"th",14),O(25,"Rank"),x(),_(26,"th",14),O(27,"No. of scores"),x(),_(28,"th",15),O(29,"Expiry Time"),x(),te(30,Fdt,2,0,"th",16),x()(),_(31,"tbody"),te(32,Pdt,3,0,"tr",17),te(33,$dt,20,11,"ng-template",18),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.records.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(20),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.records.length),w(1),S("ngForOf",r.records))},dependencies:[Un,xn,yo]})}return t})(),Hdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Udt=["editorReq"],zdt=["editorVars"],Gdt=["editorRes"];function Wdt(t,n){if(1&t&&(_(0,"ngb-alert",27),xe(1,"img",28),_(2,"h6",29),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error invoking RPC call: ",e.error,"")}}function qdt(t,n){if(1&t&&(_(0,"option",30),O(1),x()),2&t){const e=n.$implicit;Ph("value",e.method),w(1),bt(e.method)}}function Ydt(t,n){if(1&t&&(_(0,"option",30),O(1),x()),2&t){const e=n.$implicit;Ph("value",e.method),w(1),bt(e.method)}}function Xdt(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){return ze(e),Ge(L().addSessionVars())}),O(1,"Add Session Variables"),x()}}let Jdt=(()=>{class t{route;router;consoleService;formBuilder;editorReq;editorVars;editorRes;jsonEditorReq;jsonEditorVars;jsonEditorRes;error="";rpcEndpoints=[];endpoints=[];endpointCallForm;addVars=!1;constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",qr.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditorReq=new $p({target:this.editorReq.nativeElement,props:{mode:Uo.text,readOnly:!0}}),this.jsonEditorVars=new $p({target:this.editorVars.nativeElement,props:{mode:Uo.text}}),this.jsonEditorRes=new $p({target:this.editorRes.nativeElement,props:{mode:Uo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=Zm(this.jsonEditorReq.get()).text}catch(s){return void(this.error=s)}let i={};try{const s=Zm(this.jsonEditorVars.get()).text;if(""!==s){const a=JSON.parse(s);Object.keys(a).forEach(l=>{if("string"!=typeof l)throw new Error(`Invalid session variables: ${l} must be a string`);if("string"!=typeof a[l])throw new Error(`Invalid session variables: ${a[l]} must be a string`)}),i=a}}catch(s){return void(this.error=s)}const r={user_id:this.f.user_id.value,body:e,session_vars:i};let o=null;o=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,r):this.consoleService.callApiEndpoint("",this.f.method.value,r),o.subscribe(s=>{if(s.error_message&&""!==s.error_message)this.jsonEditorRes.set({json:s.error_message});else{e="";try{e=""===s.body?s.body:JSON.stringify(JSON.parse(s.body),null,2)}catch(a){return void(this.error=a)}this.jsonEditorRes.set({text:e})}},s=>{this.jsonEditorRes.set({text:""}),this.error=s})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditorReq){if(!e||""===e)return this.jsonEditorReq.set({text:""}),void this.jsonEditorReq.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditorReq.set({text:i}),this.jsonEditorReq.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}addSessionVars(){this.addVars=!0,this.jsonEditorVars.set({json:{"":"","":""}})}get f(){return this.endpointCallForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&(wo(Udt,5),wo(zdt,5),wo(Gdt,5)),2&i){let o;Tn(o=En())&&(r.editorReq=o.first),Tn(o=En())&&(r.editorVars=o.first),Tn(o=En())&&(r.editorRes=o.first)}},decls:43,vars:8,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],[1,"row","mb-3",3,"hidden"],[1,"col-md-6","py-3"],[1,"text-muted","pt-2"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","200px"],["editorVars",""],[1,"row","mb-3"],[1,"col-lg-6","py-3"],[2,"height","500px"],["editorReq",""],["editorRes",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"API Explorer"),x(),te(2,Wdt,4,2,"ngb-alert",1),_(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),ke("ngSubmit",function(){return r.sendRequest()}),_(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),O(11,"Select Endpoint"),x(),te(12,qdt,2,2,"option",10),_(13,"option",11),O(14,"----"),x(),te(15,Ydt,2,2,"option",10),x()(),xe(16,"input",12),_(17,"div",13)(18,"button",14),O(19,"Send Request"),x()()()()()()(),te(20,Xdt,2,0,"button",15),_(21,"div",16)(22,"div",17)(23,"h5"),O(24,"Session Vars"),x(),_(25,"div",18),O(26,"Add variables as object of string to string key-value pairs."),x(),_(27,"div",19),xe(28,"div",20,21),x()()(),_(30,"div",22)(31,"div",23)(32,"h5"),O(33,"Request Body"),x(),_(34,"div",19),xe(35,"div",24,25),x()(),_(37,"div",23)(38,"h5"),O(39,"Response"),x(),_(40,"div",19),xe(41,"div",24,26),x()()()),2&i&&(w(2),S("ngIf",r.error),w(4),S("formGroup",r.endpointCallForm),w(4),S("value",""),w(2),S("ngForOf",r.rpcEndpoints),w(3),S("ngForOf",r.endpoints),w(3),S("disabled",r.f.method.invalid),w(2),S("ngIf",!r.addVars),w(1),S("hidden",!r.addVars))},dependencies:[Un,xn,yo,fa,HC,UC,Us,kv,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})}return t})(),Kdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qdt(t,n){if(1&t&&(_(0,"ngb-alert",16),xe(1,"img",17),_(2,"h6",18),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Zdt(t,n){1&t&&(_(0,"th"),O(1,"User ID"),x())}function eht(t,n){1&t&&xe(0,"div",23)}function tht(t,n){1&t&&xe(0,"div",24)}function nht(t,n){if(1&t&&(_(0,"td"),O(1),x()),2&t){const e=L().$implicit;w(1),bt(e.user_id)}}function iht(t,n){if(1&t&&(_(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),O(6,"Provider Response"),x()()(),_(7,"div")(8,"pre",28)(9,"small"),O(10),x()()()()()()),2&t){const e=L().$implicit;w(10),bt(e.provider_response)}}function rht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",19),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),te(3,eht,1,0,"div",20),te(4,tht,1,0,"div",21),x(),O(5),x(),te(6,nht,2,1,"td",13),_(7,"td"),O(8),x(),_(9,"td"),O(10),x(),_(11,"td"),O(12),x(),_(13,"td"),O(14),x(),_(15,"td"),O(16),x()(),te(17,iht,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.purchasesRowsOpen[e]),w(1),S("ngIf",r.purchasesRowsOpen[e]),w(1),bn(" ",i.transaction_id," "),w(1),S("ngIf",!r.userId),w(2),bt(i.product_id),w(2),bt(r.getStoreText(i.store)),w(2),bt(i.purchase_time),w(2),bt(i.create_time),w(2),bt(r.getRefundText(i.refund_time)),w(1),S("ngIf",r.purchasesRowsOpen[e])}}function oht(t,n){1&t&&(_(0,"tr")(1,"td",29),O(2,"No purchases were found."),x()())}let cve=(()=>{class t{route;consoleService;purchases=[];purchasesRowsOpen=[];error="";nextCursor="";prevCursor="";userId;limit=100;transactionId;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){const e=this.route?.parent?.snapshot?.paramMap?.get("id")??"";e&&(this.userId=e),this.route.data.subscribe(i=>{this.purchases=i[0].validated_purchases,this.nextCursor=i[0].cursor,this.prevCursor=i[0].prev_cursor})}ngOnChanges(e){e.transactionId.firstChange||(this.transactionId?(this.transactionId=this.transactionId.trim(),this.consoleService.getPurchase("",this.transactionId).subscribe(i=>{this.purchases=[i]},i=>{this.error=i})):""===this.transactionId&&this.loadData(""))}loadData(e){this.error="",this.consoleService.listPurchases("",this.userId,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(zy[e])}getRefundText(e){return"1970-01-01T00:00:00Z"===e?"":e}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["app-purchases"]],inputs:{transactionId:["transaction_id","transactionId"]},features:[ei],decls:32,vars:7,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[4,"ngIf"],[2,"width","180px"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","6"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","6",1,"text-muted"]],template:function(i,r){1&i&&(te(0,Qdt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadData("")}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadData(r.prevCursor)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadData(r.nextCursor)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),O(17,"Transaction ID"),x(),te(18,Zdt,2,0,"th",13),_(19,"th"),O(20,"Product ID"),x(),_(21,"th"),O(22,"Store"),x(),_(23,"th",14),O(24,"Purchase Time"),x(),_(25,"th",14),O(26,"Create Time"),x(),_(27,"th",14),O(28,"Refund Time"),x()()(),_(29,"tbody"),te(30,rht,18,10,"ng-template",15),te(31,oht,3,0,"tr",13),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.purchases.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(8),S("ngIf",!r.userId),w(12),S("ngForOf",r.purchases),w(1),S("ngIf",0===r.purchases.length))},dependencies:[Un,xn,yo]})}return t})(),uve=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent?.paramMap?.get("id")??"";return this.consoleService.listPurchases("",r,100,"")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sht(t,n){1&t&&(_(0,"span"),O(1,"Filter by type"),x())}function aht(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),bt(e.activeFilter)}}function lht(t,n){if(1&t){const e=_t();_(0,"button",39),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeFilter=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function cht(t,n){if(1&t&&(_(0,"h6"),O(1),x()),2&t){const e=L();w(1),bn("Showing results for chat room label: ",e.f1.label.value,"")}}const uht=function(t){return["/groups",t]};function dht(t,n){if(1&t&&(_(0,"h6"),O(1,"Showing results for group ID: "),_(2,"a",40),O(3),x()()),2&t){const e=L();w(2),S("routerLink",Zi(2,uht,e.route.snapshot.queryParamMap.get("group_id"))),w(1),bt(e.f2.group_id.value)}}const dve=function(t){return["/accounts",t]};function hht(t,n){if(1&t&&(_(0,"h6"),O(1,"Showing results for user IDs: "),_(2,"a",40),O(3),x(),O(4,", "),_(5,"a",40),O(6),x()()),2&t){const e=L();w(2),S("routerLink",Zi(4,dve,e.route.snapshot.queryParamMap.get("user_id_one"))),w(1),bt(e.f3.user_id_one.value),w(2),S("routerLink",Zi(6,dve,e.route.snapshot.queryParamMap.get("user_id_two"))),w(1),bt(e.f3.user_id_two.value)}}function fht(t,n){if(1&t&&(_(0,"ngb-alert",41),xe(1,"img",42),_(2,"h6",43),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying messages: ",e.error,"")}}function pht(t,n){1&t&&(_(0,"th",44),O(1,"Remove"),x())}function mht(t,n){if(1&t&&(_(0,"tr")(1,"td",45),O(2,"No messages found."),x()()),2&t){const e=L();w(1),ft("colspan",e.deleteAllowed()?6:5)}}function ght(t,n){1&t&&xe(0,"div",54)}function vht(t,n){1&t&&xe(0,"div",55)}function yht(t,n){1&t&&xe(0,"td")}function _ht(t,n){if(1&t){const e=_t();_(0,"td",56)(1,"button",57),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteMessage(r,s,a))}),O(2,"Delete"),x()()}}function bht(t,n){if(1&t&&(_(0,"tr",58)(1,"td"),O(2),x()()),2&t){const e=L().$implicit,i=L();w(1),ft("colspan",i.deleteAllowed()?6:5),w(1),bn(" ",e.content," ")}}function xht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td"),O(2),x(),_(3,"td",46),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",47),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(6),x(),_(7,"td",48)(8,"div",49),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),te(9,ght,1,0,"div",50),te(10,vht,1,0,"div",51),x(),O(11),x(),_(12,"td"),O(13),x(),te(14,yht,1,0,"td",3),te(15,_ht,3,0,"td",52),x(),te(16,bht,3,2,"tr",53)}if(2&t){const e=n.$implicit,i=n.index,r=L();w(2),bt(e.code),w(2),bt(e.sender_id),w(2),bt(e.username),w(3),S("ngIf",!r.messageStatesOpen[i]),w(1),S("ngIf",r.messageStatesOpen[i]),w(1),bn(" ",e.content," "),w(2),bt(e.create_time),w(1),S("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),w(1),S("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),w(1),S("ngIf",r.messageStatesOpen[i])}}function wht(t,n){if(1&t&&(_(0,"ngb-alert",59),xe(1,"img",42),_(2,"h6",43),O(3,"Failed to delete data."),x(),_(4,"p",60),O(5),x()()),2&t){const e=L();S("dismissible",!1),w(5),bt(e.deleteError)}}function Cht(t,n){if(1&t){const e=_t();_(0,"ngb-alert",61),ke("close",function(){return ze(e),Ge(L().deleteSuccess=!1)}),xe(1,"img",62),_(2,"h6",43),O(3),x()()}if(2&t){const e=L();S("dismissible",!0),w(3),Af("",e.totalDeleted," messages ",e.totalDeleted>0?"successfully":""," deleted.")}}function Sht(t,n){if(1&t){const e=_t();_(0,"button",63),ke("click",function(){return ze(e),Ge(L().deleteData())}),O(1,"Delete messages"),x()}2&t&&S("disabled",L().deleting)}let kht=(()=>{class t{route;router;consoleService;authService;formBuilder;modalService;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";messages=[];nextCursor="";searchForm1;searchForm2;searchForm3;type;confirmDeleteForm;deleteError="";deleteSuccess=!1;deleting=!1;totalDeleted=0;activeFilter="";filters=["Chat Room","Group Chat","Direct Chat"];messageStatesOpen=[];constructor(e,i,r,o,s,a,l){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.deleteConfirmService=l,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",qr.compose([qr.required,qr.pattern("DELETE")])],numberValueControl:{title:"Choose how many days to retain:",id:"days"},days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");const i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2===this.type||3===this.type||4===this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}deleteData(){this.deleteConfirmService.openDeleteConfirmModal(e=>{this.deleteError="",this.deleting=!0;const i=new Date,r=Number(e.days);i.setDate(i.getDate()-r),this.consoleService.deleteChannelMessages("",i.toISOString(),null).subscribe(o=>{this.totalDeleted=Number(o.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const s=this.route.snapshot.queryParamMap,a=s.get("type");let l=s.get("label");l||(l="0");const c=s.get("group_id"),u=s.get("user_id_one"),d=s.get("user_id_two");let h=s.get("cursor");h||(h=""),a&&this.updateMessages(Number(a),l,c,u,d,h)},o=>{this.deleting=!1,this.deleteError=o})},this.confirmDeleteForm,"Delete messages","Are you sure you want to delete all messages before retain days?")}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(m2),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:68,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Chat Messages"),x(),_(2,"div",1)(3,"button",2),te(4,sht,2,0,"span",3),te(5,aht,2,1,"span",3),x(),_(6,"div",4),te(7,lht,2,1,"button",5),x()(),_(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),xe(13,"input",11),_(14,"div",12)(15,"div",13)(16,"button",14),ke("click",function(){return r.type=2,r.search(0)}),O(17,"Search"),x()()()()(),_(18,"form",9)(19,"div",10),xe(20,"input",15),_(21,"div",12)(22,"div",13)(23,"button",14),ke("click",function(){return r.type=3,r.search(0)}),O(24,"Search "),x()()()()(),_(25,"form",9)(26,"div",10),xe(27,"input",16),_(28,"div",12)(29,"span",17),ke("click",function(){return r.f3.user_id_one.setValue(r.systemUserId)}),xe(30,"img",18),x()(),xe(31,"input",19),_(32,"div",12)(33,"div",13)(34,"button",14),ke("click",function(){return r.type=4,r.search(0)}),O(35,"Search "),x()()()()()(),_(36,"div",20)(37,"div",21)(38,"button",22),ke("click",function(){return r.search(0)}),xe(39,"img",23),x(),_(40,"button",22),ke("click",function(){return r.search(1)}),xe(41,"img",24),x()()()()(),te(42,cht,2,1,"h6",3),te(43,dht,4,4,"h6",3),te(44,hht,7,8,"h6",3),te(45,fht,4,2,"ngb-alert",25),_(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),O(51,"Code"),x(),_(52,"th",30),O(53,"Sender ID"),x(),_(54,"th",31),O(55,"Username"),x(),_(56,"th"),O(57,"Content"),x(),_(58,"th",32),O(59,"Create Time"),x(),te(60,pht,2,0,"th",33),x()(),_(61,"tbody"),te(62,mht,3,1,"tr",3),te(63,xht,17,10,"ng-template",34),x()()(),te(64,wht,6,2,"ngb-alert",35),te(65,Cht,4,3,"ngb-alert",36),_(66,"div",37),te(67,Sht,2,1,"button",38),x()),2&i&&(w(4),S("ngIf",!r.activeFilter||""===r.activeFilter),w(1),S("ngIf",r.activeFilter&&""!==r.activeFilter),w(2),S("ngForOf",r.filters),w(4),S("hidden","Chat Room"!==r.activeFilter)("formGroup",r.searchForm1),w(7),S("hidden","Group Chat"!==r.activeFilter)("formGroup",r.searchForm2),w(7),S("hidden","Direct Chat"!==r.activeFilter)("formGroup",r.searchForm3),w(13),S("disabled",0===r.messages.length),w(2),S("disabled",""===r.nextCursor||null===r.nextCursor),w(2),S("ngIf",0!=r.messages.length&&""===r.error&&2==r.type),w(1),S("ngIf",0!=r.messages.length&&""===r.error&&3==r.type),w(1),S("ngIf",0!=r.messages.length&&""===r.error&&4==r.type),w(1),S("ngIf",r.error),w(15),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.messages.length),w(1),S("ngForOf",r.messages),w(1),S("ngIf",r.deleteError),w(1),S("ngIf",r.deleteSuccess),w(2),S("ngIf",r.deleteMessagesAllowed()))},dependencies:[Ru,Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})}return t})(),Dht=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));default:return Hn(null)}}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tht(t,n){if(1&t&&(_(0,"ngb-alert",16),xe(1,"img",17),_(2,"h6",18),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Eht(t,n){1&t&&xe(0,"div",23)}function Aht(t,n){1&t&&xe(0,"div",24)}function Mht(t,n){if(1&t&&(_(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),O(6,"Provider Response"),x()()(),_(7,"div")(8,"pre",28)(9,"small"),O(10),x()()(),_(11,"div",29)(12,"small")(13,"b"),O(14,"Provider Notification"),x()()(),_(15,"div")(16,"pre",28)(17,"small"),O(18),x()()()()()()),2&t){const e=L().$implicit;w(10),bt(e.provider_response),w(8),bt(e.provider_notification)}}function Oht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",19),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.subscriptionsRowOpen[o]=!s.subscriptionsRowOpen[o])}),te(3,Eht,1,0,"div",20),te(4,Aht,1,0,"div",21),x(),O(5),x(),_(6,"td"),O(7),x(),_(8,"td"),O(9),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x()(),te(18,Mht,19,2,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.subscriptionsRowOpen[e]),w(1),S("ngIf",r.subscriptionsRowOpen[e]),w(1),bn(" ",i.product_id," "),w(2),bt(i.original_transaction_id),w(2),bt(r.getStoreText(i.store)),w(2),bt(i.purchase_time),w(2),bt(i.expiry_time),w(2),bt(i.create_time),w(2),bt(r.getRefundText(i.refund_time)),w(1),S("ngIf",r.subscriptionsRowOpen[e])}}function Iht(t,n){1&t&&(_(0,"tr")(1,"td",30),O(2,"No subscriptions were found."),x()())}let hve=(()=>{class t{route;consoleService;subscriptions=[];subscriptionsRowOpen=[];error="";nextCursor="";prevCursor="";userId;limit=100;originalTransactionId;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){const e=this.route?.parent?.snapshot?.paramMap?.get("id")??"";e&&(this.userId=e),this.userId=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(i=>{this.subscriptions=i[0].validated_subscriptions,this.nextCursor=i[0].cursor,this.prevCursor=i[0].prev_cursor})}ngOnChanges(e){e.originalTransactionId.firstChange||(this.originalTransactionId?(this.originalTransactionId=this.originalTransactionId.trim(),this.consoleService.getSubscription("",this.originalTransactionId).subscribe(i=>{this.subscriptions=[i]},i=>{this.error=i})):""===this.originalTransactionId&&this.loadData(""))}loadData(e){this.error="",this.consoleService.listSubscriptions("",this.userId,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.subscriptionsRowOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(zy[e])}getRefundText(e){return"1970-01-01T00:00:00Z"===e?"":e}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["app-subscriptions"]],inputs:{originalTransactionId:["original_transaction_id","originalTransactionId"]},features:[ei],decls:33,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],[1,"pt-2"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(te(0,Tht,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadData("")}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadData(r.prevCursor)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadData(r.nextCursor)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),O(17,"Product ID"),x(),_(18,"th"),O(19,"Original Transaction ID"),x(),_(20,"th"),O(21,"Store"),x(),_(22,"th",13),O(23,"Purchase Time"),x(),_(24,"th",13),O(25,"Expiry Time"),x(),_(26,"th",13),O(27,"Create Time"),x(),_(28,"th",13),O(29,"Refund Time"),x()()(),_(30,"tbody"),te(31,Oht,19,10,"ng-template",14),te(32,Iht,3,0,"tr",15),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.subscriptions.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(21),S("ngForOf",r.subscriptions),w(1),S("ngIf",0===r.subscriptions.length))},dependencies:[Un,xn,yo]})}return t})(),fve=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent?.paramMap?.get("id")??"";return this.consoleService.listSubscriptions("",r,100,"")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nht=(()=>{class t{formBuilder;transactionId;searchForm;constructor(e){this.formBuilder=e}ngOnInit(){this.searchForm=this.formBuilder.group({transaction_id:[""]})}search(){this.transactionId=this.f.transaction_id.value}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:12,vars:2,consts:[[1,"pb-1"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","transaction_id","placeholder","Search by transaction_id (purchaseToken for Play Store purchases)",1,"form-control","border-right-0"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[3,"transaction_id"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Purchases"),x(),_(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4),ke("ngSubmit",function(){return r.search()}),_(6,"div",5),xe(7,"input",6),_(8,"div",7)(9,"button",8),ke("click",function(){return r.search()}),O(10,"Search"),x()()()()()()(),xe(11,"app-purchases",9)),2&i&&(w(5),S("formGroup",r.searchForm),w(6),S("transaction_id",r.transactionId))},dependencies:[fa,Us,da,ha,Ts,zs,cve],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Fht=(()=>{class t{formBuilder;originalTransactionId;searchForm;constructor(e){this.formBuilder=e}ngOnInit(){this.searchForm=this.formBuilder.group({original_transaction_id:[""]})}search(){this.originalTransactionId=this.f.original_transaction_id.value}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:13,vars:2,consts:[[1,"pb-1"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","original_transaction_id","placeholder","Search by original_transaction_id (purchaseToken for Play Store purchases)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[3,"original_transaction_id"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Subscriptions"),x(),_(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4),ke("ngSubmit",function(){return r.search()}),_(6,"div",5),xe(7,"input",6),_(8,"div",7)(9,"div",8)(10,"button",9),ke("click",function(){return r.search()}),O(11,"Search"),x()()()()()()()(),xe(12,"app-subscriptions",10)),2&i&&(w(5),S("formGroup",r.searchForm),w(7),S("original_transaction_id",r.originalTransactionId))},dependencies:[fa,Us,da,ha,Ts,zs,hve],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})();function pve(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function mve(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){pve(o,i,r,s,a,"next",l)}function a(l){pve(o,i,r,s,a,"throw",l)}s(void 0)})}}var dL=ue(3259);const Pht=["qrcElement"];let Rht=(()=>{class t{constructor(e,i){this.renderer=e,this.sanitizer=i,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new ot,this.context=null}ngOnChanges(){var e=this;return mve(function*(){yield e.createQRCode()})()}isValidQrCodeText(e){return!1===this.allowEmptyString?!(typeof e>"u"||""===e||"null"===e||null===e):!(typeof e>"u")}toDataURL(e){return new Promise((i,r)=>{(0,dL.hz)(this.qrdata,e,(o,s)=>{o?r(o):i(s)})})}toCanvas(e,i){return new Promise((r,o)=>{(0,dL.rT)(e,this.qrdata,i,s=>{s?o(s):r("success")})})}toSVG(e){return new Promise((i,r)=>{(0,dL.toString)(this.qrdata,e,(o,s)=>{o?r(o):i(s)})})}renderElement(e){for(const i of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,i);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){var e=this;return mve(function*(){e.version&&e.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),e.version=40):e.version&&e.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),e.version=1):void 0!==e.version&&isNaN(e.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),e.version=void 0);try{if(!e.isValidQrCodeText(e.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");e.isValidQrCodeText(e.qrdata)&&""===e.qrdata&&(e.qrdata=" ");const i={color:{dark:e.colorDark,light:e.colorLight},errorCorrectionLevel:e.errorCorrectionLevel,margin:e.margin,scale:e.scale,version:e.version,width:e.width},r=e.imageSrc,o=e.imageHeight||40,s=e.imageWidth||40;switch(e.elementType){case"canvas":const a=e.renderer.createElement("canvas");e.context=a.getContext("2d"),e.toCanvas(a,i).then(()=>{if(e.ariaLabel&&e.renderer.setAttribute(a,"aria-label",`${e.ariaLabel}`),e.title&&e.renderer.setAttribute(a,"title",`${e.title}`),r&&e.context){e.centerImage=new Image(s,o),r!==e.centerImage.src&&(e.centerImage.src=r),o!==e.centerImage.height&&(e.centerImage.height=o),s!==e.centerImage.width&&(e.centerImage.width=s);const u=e.centerImage;u&&(u.onload=()=>{e.context?.drawImage(u,a.width/2-s/2,a.height/2-o/2,s,o)})}e.renderElement(a),e.emitQRCodeURL(a)}).catch(u=>{console.error("[angularx-qrcode] canvas error:",u)});break;case"svg":const l=e.renderer.createElement("div");e.toSVG(i).then(u=>{e.renderer.setProperty(l,"innerHTML",u);const d=l.firstChild;e.renderer.setAttribute(d,"height",`${e.width}`),e.renderer.setAttribute(d,"width",`${e.width}`),e.renderElement(d),e.emitQRCodeURL(d)}).catch(u=>{console.error("[angularx-qrcode] svg error:",u)});break;default:const c=e.renderer.createElement("img");e.toDataURL(i).then(u=>{e.alt&&c.setAttribute("alt",e.alt),e.ariaLabel&&c.setAttribute("aria-label",e.ariaLabel),c.setAttribute("src",u),e.title&&c.setAttribute("title",e.title),e.renderElement(c),e.emitQRCodeURL(c)}).catch(u=>{console.error("[angularx-qrcode] img/url error:",u)})}}catch(i){console.error("[angularx-qrcode] Error generating QR Code:",i.message)}})()}emitQRCodeURL(e){const i=e.constructor.name;if(i===SVGSVGElement.name){const s=new Blob([e.outerHTML],{type:"image/svg+xml"}),a=URL.createObjectURL(s),l=this.sanitizer.bypassSecurityTrustUrl(a);return void this.qrCodeURL.emit(l)}let r="";i===HTMLCanvasElement.name&&(r=e.toDataURL("image/png")),i===HTMLImageElement.name&&(r=e.src),fetch(r).then(o=>o.blob()).then(o=>URL.createObjectURL(o)).then(o=>this.sanitizer.bypassSecurityTrustUrl(o)).then(o=>{this.qrCodeURL.emit(o)}).catch(o=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+o)})}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(wM))},t.\u0275cmp=Vt({type:t,selectors:[["qrcode"]],viewQuery:function(e,i){if(1&e&&wo(Pht,7),2&e){let r;Tn(r=En())&&(i.qrcElement=r.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[ei],decls:2,vars:2,consts:[["qrcElement",""]],template:function(e,i){1&e&&xe(0,"div",null,0),2&e&&Au(i.cssClass)},encapsulation:2,changeDetection:0}),t})(),jht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();function Lht(t,n){if(1&t&&(_(0,"ngb-alert",6)(1,"h6",7),O(2),x()()),2&t){const e=L();S("dismissible",!1),w(2),bt(e.error)}}const Bht=function(t){return{"was-validated":t}},$ht=function(t){return{"is-invalid":t}};function Vht(t,n){if(1&t){const e=_t();Cl(0),_(1,"div")(2,"h5",8),O(3,"Instructions"),x(),_(4,"form",9),ke("ngSubmit",function(){return ze(e),Ge(L().onSubmit())}),_(5,"ol")(6,"div",10)(7,"li"),O(8,"Install an Authenticator app and use it to scan the QR code. "),_(9,"div"),O(10," e.g. "),_(11,"a",11),O(12,"Google Authenticator"),x(),O(13," or "),_(14,"a",12),O(15,"Authy"),x(),O(16,". "),x()()(),_(17,"div",10)(18,"li"),O(19,"Scan the QR code with your authenticator app. "),xe(20,"qrcode",13),x()(),_(21,"div",10)(22,"li")(23,"label",14),O(24,"Insert 6-digit code from your authenticator app."),x(),xe(25,"input",15),x()(),_(26,"button",16),O(27,"Verify"),x()()()(),Sl()}if(2&t){const e=L();w(4),S("formGroup",e.codeForm)("ngClass",Zi(7,Bht,e.submitted)),w(16),S("qrdata",e.mfaUrl())("width",256)("errorCorrectionLevel","M"),w(5),S("ngClass",Zi(9,$ht,e.f.code.dirty&&e.f.code.errors)),w(1),S("disabled",!e.codeForm.valid||e.submitted)}}function Hht(t,n){1&t&&(_(0,"div",20),O(1," Multi-factor authentication has been successfully set up. Please download the recovery codes and keep them in a safe place. "),x())}function Uht(t,n){if(1&t){const e=_t();_(0,"div"),te(1,Hht,2,0,"div",17),_(2,"button",18),ke("click",function(){return ze(e),Ge(L().downloadRecoveryCodes())}),O(3,"Download Recovery Codes"),x(),_(4,"button",19),ke("click",function(){return ze(e),Ge(L().router.navigateByUrl("/"))}),O(5,"Continue to Dashboard"),x()()}if(2&t){const e=L();w(1),S("ngIf",!e.error&&e.recoveryCodes),w(3),S("disabled",!e.downloadClicked)}}let gve=(()=>{class t{formBuilder;consoleService;authService;router;required;codeForm;mfaCode;submitted=!1;downloadClicked=!1;recoveryCodes;error="";constructor(e,i,r,o){this.formBuilder=e,this.consoleService=i,this.authService=r,this.router=o}ngOnInit(){this.codeForm=this.formBuilder.group({code:["",qr.required]}),this.mfaCode=this.authService.mfa}onSubmit(){this.submitted=!0,this.error="",!this.codeForm.invalid&&this.authService.mfaSet(this.f.code.value).subscribe(e=>{this.codeForm.reset(),this.submitted=!1,this.recoveryCodes=e.recovery_codes},e=>{this.error=e,this.submitted=!1})}mfaUrl(){return decodeURIComponent(this.mfaCode.mfa_url)}get f(){return this.codeForm.controls}downloadRecoveryCodes(){const e=this.recoveryCodes.map((r,o)=>o%2==0?"\n"+r:r),i=document.createElement("a");i.href=window.URL.createObjectURL(new Blob([e.join(" ").trim()],{type:"text/plain"})),i.download="nakama_mfa_recovery_codes.txt",i.click(),window.URL.revokeObjectURL(i.href),this.downloadClicked=!0}static \u0275fac=function(i){return new(i||t)(ge(HH),ge(Ai),ge(Ho),ge(yr))};static \u0275cmp=Vt({type:t,selectors:[["mfa-setup"]],inputs:{required:"required"},decls:8,vars:3,consts:[[1,"login-title","mb-4"],[1,"container"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row"],[4,"ngIf","ngIfElse"],["recoveryCodesBlock",""],["type","danger",1,"mb-3",3,"dismissible"],[1,"mr-2","d-inline","font-weight-bold"],[2,"font-size","23px"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group"],["href","https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2","target","blank","rel","noopener noreferrer"],["href","https://authy.com/download/","target","blank","rel","noopener noreferrer"],[3,"qrdata","width","errorCorrectionLevel"],["for","code",1,"d-inline"],["type","code","id","code","formControlName","code","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["class","alert alert-success mb-4","role","alert",4,"ngIf"],[1,"btn","btn-primary","btn-lg","btn-block","mb-4",3,"click"],["href","/",1,"btn","btn-outline-primary","btn-lg","btn-block",3,"disabled","click"],["role","alert",1,"alert","alert-success","mb-4"]],template:function(i,r){if(1&i&&(_(0,"h3",0),O(1,"Setup Multi-Factor Authentication"),x(),_(2,"div",1),te(3,Lht,3,2,"ngb-alert",2),_(4,"div",3),te(5,Vht,28,11,"ng-container",4),te(6,Uht,6,2,"ng-template",null,5,Xo),x()()),2&i){const o=sa(7);w(3),S("ngIf",r.error),w(2),S("ngIf",!r.recoveryCodes)("ngIfElse",o)}},dependencies:[Of,xn,yo,fa,Us,da,ha,qh,Ts,zs,Rht]})}return t})();const zht=[{path:"",component:n4e,canActivate:[x3e],canActivateChild:[i4e],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:fVe,resolve:[pVe]},{path:"config",component:WVe,resolve:[qVe]},{path:"users",component:ZVe,resolve:[eHe]},{path:"modules",component:pHe,resolve:[mHe]},{path:"storage",component:SHe,resolve:[kHe,DHe],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Rlt,resolve:[jlt],pathMatch:"full"},{path:"leaderboards",component:qlt,resolve:[Ylt]},{path:"leaderboards/:id",component:Tdt,resolve:[Edt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:Idt,resolve:[]},{path:"records",component:Vdt,resolve:[Hdt]}]},{path:"matches",component:idt,resolve:[rdt,odt]},{path:"groups",component:hdt,resolve:[fdt]},{path:"groups/:id",component:bdt,resolve:[xdt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:vut,resolve:[]},{path:"members",component:jut,resolve:[Lut],runGuardsAndResolvers:"always"}]},{path:"accounts",component:nct,resolve:[ict]},{path:"accounts/:id",component:gct,resolve:[vct],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:Cct,resolve:[]},{path:"authentication",component:Ect,resolve:[]},{path:"wallet",component:$ct,resolve:[Vct]},{path:"friends",component:Kct,resolve:[Qct]},{path:"groups",component:cut,resolve:[uut]},{path:"purchases",component:cve,resolve:[uve]},{path:"subscriptions",component:hve,resolve:[fve]}]},{path:"apiexplorer",component:Jdt,resolve:[Kdt]},{path:"chat",component:kht,resolve:[Dht]},{path:"purchases",component:Nht,resolve:[uve]},{path:"subscriptions",component:Fht,resolve:[fve]},{path:"settings/mfa",component:gve,resolve:[]}]},{path:"login",component:_3e,canActivate:[b3e],children:[{path:"mfa",component:gve,resolve:[]}]},{path:"**",redirectTo:""}];let Ght=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ii({type:t});static \u0275inj=Di({imports:[$V.forRoot(zht,{useHash:!0}),$V]})}return t})(),Wht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Vt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"router-outlet")},dependencies:[Vf]})}return t})();new class Yht extends Vd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Jht=1;const Kht=Promise.resolve(),kT={};function vve(t){return t in kT&&(delete kT[t],!0)}const yve={setImmediate(t){const n=Jht++;return kT[n]=!0,Kht.then(()=>vve(n)&&t()),n},clearImmediate(t){vve(t)}};new class Zht extends Vd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=yve.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(yve.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Aft=new Yn("ng-select-selection-model");function Mft(){return new Oft}class Oft{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}let Ift=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[{provide:Aft,useValue:Mft}],imports:[If]}),t})(),Nft=(()=>{class t{authenticationService;constructor(e){this.authenticationService=e}intercept(e,i){const r=this.authenticationService.session;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}static \u0275fac=function(i){return new(i||t)(wt(Ho))};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),Fft=(()=>{class t{authenticationService;router;constructor(e,i){this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Jl(r=>{if(401===r.status)this.authenticationService.logout().subscribe({next:()=>{this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}});else{if(403===r.status)return Rf(r);r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`)}return Rf(r.error.message||r.statusText)}))}static \u0275fac=function(i){return new(i||t)(wt(Ho),wt(yr))};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),Pft=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ii({type:t,bootstrap:[Wht]});static \u0275inj=Di({providers:[p3e,Lz,{provide:XC,useValue:{host:document.location.origin,timeout:15e3}},{provide:X3,useClass:Nft,multi:!0},{provide:X3,useClass:Fft,multi:!0}],imports:[EVe,Ght,bM,zDe,d3e,WPe,W9e,UMe.forRoot({apiKey:"",debug:!1,loadOnInitialization:!1}),GDe,$Me,BMe,Ift,jht]})}return t})();jSe().bootstrapModule(Pft).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},5343:(Et,Xe)=>{"use strict";Xe.byteLength=function we(T){var I=Se(T),Ae=I[1];return 3*(I[0]+Ae)/4-Ae},Xe.toByteArray=function K(T){var I,Zt,Z=Se(T),Ae=Z[0],Ue=Z[1],ut=new de(function se(T,I,Z){return 3*(I+Z)/4-Z}(0,Ae,Ue)),ht=0,yt=Ue>0?Ae-4:Ae;for(Zt=0;Zt>16&255,ut[ht++]=I>>8&255,ut[ht++]=255&I;return 2===Ue&&(I=be[T.charCodeAt(Zt)]<<2|be[T.charCodeAt(Zt+1)]>>4,ut[ht++]=255&I),1===Ue&&(I=be[T.charCodeAt(Zt)]<<10|be[T.charCodeAt(Zt+1)]<<4|be[T.charCodeAt(Zt+2)]>>2,ut[ht++]=I>>8&255,ut[ht++]=255&I),ut},Xe.fromByteArray=function k(T){for(var I,Z=T.length,Ae=Z%3,Ue=[],ht=0,yt=Z-Ae;htyt?yt:ht+16383));return 1===Ae?Ue.push(ue[(I=T[Z-1])>>2]+ue[I<<4&63]+"=="):2===Ae&&Ue.push(ue[(I=(T[Z-2]<<8)+T[Z-1])>>10]+ue[I>>4&63]+ue[I<<2&63]+"="),Ue.join("")};for(var ue=[],be=[],de=typeof Uint8Array<"u"?Uint8Array:Array,ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=0,ee=ye.length;he0)throw new Error("Invalid string. Length must be a multiple of 4");var Z=T.indexOf("=");return-1===Z&&(Z=I),[Z,Z===I?0:4-Z%4]}function re(T){return ue[T>>18&63]+ue[T>>12&63]+ue[T>>6&63]+ue[63&T]}function ie(T,I,Z){for(var Ue=[],ut=I;ut{"use strict";var de=ue(5343),ye=ue(8461),he="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Xe.lW=se,Xe.h2=50;var ee=2147483647;function we(Ne){if(Ne>ee)throw new RangeError('The value "'+Ne+'" is invalid for option "size"');var Y=new Uint8Array(Ne);return Object.setPrototypeOf(Y,se.prototype),Y}function se(Ne,Y,ne){if("number"==typeof Ne){if("string"==typeof Y)throw new TypeError('The "string" argument must be of type string. Received type number');return k(Ne)}return K(Ne,Y,ne)}function K(Ne,Y,ne){if("string"==typeof Ne)return function T(Ne,Y){if(("string"!=typeof Y||""===Y)&&(Y="utf8"),!se.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var ne=0|yt(Ne,Y),Le=we(ne),it=Le.write(Ne,Y);return it!==ne&&(Le=Le.slice(0,it)),Le}(Ne,Y);if(ArrayBuffer.isView(Ne))return function Z(Ne){if(wa(Ne,Uint8Array)){var Y=new Uint8Array(Ne);return Ae(Y.buffer,Y.byteOffset,Y.byteLength)}return I(Ne)}(Ne);if(null==Ne)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne);if(wa(Ne,ArrayBuffer)||Ne&&wa(Ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(wa(Ne,SharedArrayBuffer)||Ne&&wa(Ne.buffer,SharedArrayBuffer)))return Ae(Ne,Y,ne);if("number"==typeof Ne)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=Ne.valueOf&&Ne.valueOf();if(null!=Le&&Le!==Ne)return se.from(Le,Y,ne);var it=function Ue(Ne){if(se.isBuffer(Ne)){var Y=0|ut(Ne.length),ne=we(Y);return 0===ne.length||Ne.copy(ne,0,0,Y),ne}return void 0!==Ne.length?"number"!=typeof Ne.length||ho(Ne.length)?we(0):I(Ne):"Buffer"===Ne.type&&Array.isArray(Ne.data)?I(Ne.data):void 0}(Ne);if(it)return it;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Ne[Symbol.toPrimitive])return se.from(Ne[Symbol.toPrimitive]("string"),Y,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne)}function re(Ne){if("number"!=typeof Ne)throw new TypeError('"size" argument must be of type number');if(Ne<0)throw new RangeError('The value "'+Ne+'" is invalid for option "size"')}function k(Ne){return re(Ne),we(Ne<0?0:0|ut(Ne))}function I(Ne){for(var Y=Ne.length<0?0:0|ut(Ne.length),ne=we(Y),Le=0;Le=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return 0|Ne}function yt(Ne,Y){if(se.isBuffer(Ne))return Ne.length;if(ArrayBuffer.isView(Ne)||wa(Ne,ArrayBuffer))return Ne.byteLength;if("string"!=typeof Ne)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ne);var ne=Ne.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===ne)return 0;for(var it=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return ds(Ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ne;case"hex":return ne>>>1;case"base64":return Cu(Ne).length;default:if(it)return Le?-1:ds(Ne).length;Y=(""+Y).toLowerCase(),it=!0}}function Zt(Ne,Y,ne){var Le=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===ne||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0)<=(Y>>>=0))return"";for(Ne||(Ne="utf8");;)switch(Ne){case"hex":return cc(this,Y,ne);case"utf8":case"utf-8":return $t(this,Y,ne);case"ascii":return Zn(this,Y,ne);case"latin1":case"binary":return yl(this,Y,ne);case"base64":return fi(this,Y,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return uo(this,Y,ne);default:if(Le)throw new TypeError("Unknown encoding: "+Ne);Ne=(Ne+"").toLowerCase(),Le=!0}}function Wt(Ne,Y,ne){var Le=Ne[Y];Ne[Y]=Ne[ne],Ne[ne]=Le}function Qt(Ne,Y,ne,Le,it){if(0===Ne.length)return-1;if("string"==typeof ne?(Le=ne,ne=0):ne>2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ho(ne=+ne)&&(ne=it?0:Ne.length-1),ne<0&&(ne=Ne.length+ne),ne>=Ne.length){if(it)return-1;ne=Ne.length-1}else if(ne<0){if(!it)return-1;ne=0}if("string"==typeof Y&&(Y=se.from(Y,Le)),se.isBuffer(Y))return 0===Y.length?-1:An(Ne,Y,ne,Le,it);if("number"==typeof Y)return Y&=255,"function"==typeof Uint8Array.prototype.indexOf?it?Uint8Array.prototype.indexOf.call(Ne,Y,ne):Uint8Array.prototype.lastIndexOf.call(Ne,Y,ne):An(Ne,[Y],ne,Le,it);throw new TypeError("val must be string, number or Buffer")}function An(Ne,Y,ne,Le,it){var at,qt=1,nn=Ne.length,ar=Y.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(Ne.length<2||Y.length<2)return-1;qt=2,nn/=2,ar/=2,ne/=2}function M(vn,_e){return 1===qt?vn[_e]:vn.readUInt16BE(_e*qt)}if(it){var Mt=-1;for(at=ne;atnn&&(ne=nn-ar),at=ne;at>=0;at--){for(var Yt=!0,zt=0;ztit&&(Le=it):Le=it;var qt=Y.length;Le>qt/2&&(Le=qt/2);for(var nn=0;nn>8,qt.push(ne%256),qt.push(Le);return qt}(Y,Ne.length-ne),Ne,ne,Le)}function fi(Ne,Y,ne){return de.fromByteArray(0===Y&&ne===Ne.length?Ne:Ne.slice(Y,ne))}function $t(Ne,Y,ne){ne=Math.min(Ne.length,ne);for(var Le=[],it=Y;it239?4:qt>223?3:qt>191?2:1;if(it+ar<=ne)switch(ar){case 1:qt<128&&(nn=qt);break;case 2:128==(192&(M=Ne[it+1]))&&(Yt=(31&qt)<<6|63&M)>127&&(nn=Yt);break;case 3:at=Ne[it+2],128==(192&(M=Ne[it+1]))&&128==(192&at)&&(Yt=(15&qt)<<12|(63&M)<<6|63&at)>2047&&(Yt<55296||Yt>57343)&&(nn=Yt);break;case 4:at=Ne[it+2],Mt=Ne[it+3],128==(192&(M=Ne[it+1]))&&128==(192&at)&&128==(192&Mt)&&(Yt=(15&qt)<<18|(63&M)<<12|(63&at)<<6|63&Mt)>65535&&Yt<1114112&&(nn=Yt)}null===nn?(nn=65533,ar=1):nn>65535&&(Le.push((nn-=65536)>>>10&1023|55296),nn=56320|1023&nn),Le.push(nn),it+=ar}return function tl(Ne){var Y=Ne.length;if(Y<=ta)return String.fromCharCode.apply(String,Ne);for(var ne="",Le=0;Leit.length?se.from(nn).copy(it,qt):Uint8Array.prototype.set.call(it,nn,qt);else{if(!se.isBuffer(nn))throw new TypeError('"list" argument must be an Array of Buffers');nn.copy(it,qt)}qt+=nn.length}return it},se.byteLength=yt,se.prototype._isBuffer=!0,se.prototype.swap16=function(){var Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(Y+=" ... "),""},he&&(se.prototype[he]=se.prototype.inspect),se.prototype.compare=function(Y,ne,Le,it,qt){if(wa(Y,Uint8Array)&&(Y=se.from(Y,Y.offset,Y.byteLength)),!se.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(void 0===ne&&(ne=0),void 0===Le&&(Le=Y?Y.length:0),void 0===it&&(it=0),void 0===qt&&(qt=this.length),ne<0||Le>Y.length||it<0||qt>this.length)throw new RangeError("out of range index");if(it>=qt&&ne>=Le)return 0;if(it>=qt)return-1;if(ne>=Le)return 1;if(this===Y)return 0;for(var nn=(qt>>>=0)-(it>>>=0),ar=(Le>>>=0)-(ne>>>=0),M=Math.min(nn,ar),at=this.slice(it,qt),Mt=Y.slice(ne,Le),Yt=0;Yt>>=0,isFinite(Le)?(Le>>>=0,void 0===it&&(it="utf8")):(it=Le,Le=void 0)}var qt=this.length-ne;if((void 0===Le||Le>qt)&&(Le=qt),Y.length>0&&(Le<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");for(var nn=!1;;)switch(it){case"hex":return Cn(this,Y,ne,Le);case"utf8":case"utf-8":return Sn(this,Y,ne,Le);case"ascii":case"latin1":case"binary":return mi(this,Y,ne,Le);case"base64":return fn(this,Y,ne,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qn(this,Y,ne,Le);default:if(nn)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),nn=!0}},se.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ta=4096;function Zn(Ne,Y,ne){var Le="";ne=Math.min(Ne.length,ne);for(var it=Y;itLe)&&(ne=Le);for(var it="",qt=Y;qtne)throw new RangeError("Trying to access beyond buffer length")}function Gr(Ne,Y,ne,Le,it,qt){if(!se.isBuffer(Ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>it||YNe.length)throw new RangeError("Index out of range")}function Ss(Ne,Y,ne,Le,it,qt){if(ne+Le>Ne.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function Wr(Ne,Y,ne,Le,it){return Y=+Y,ne>>>=0,it||Ss(Ne,0,ne,4),ye.write(Ne,Y,ne,Le,23,4),ne+4}function na(Ne,Y,ne,Le,it){return Y=+Y,ne>>>=0,it||Ss(Ne,0,ne,8),ye.write(Ne,Y,ne,Le,52,8),ne+8}se.prototype.slice=function(Y,ne){var Le=this.length;(Y=~~Y)<0?(Y+=Le)<0&&(Y=0):Y>Le&&(Y=Le),(ne=void 0===ne?Le:~~ne)<0?(ne+=Le)<0&&(ne=0):ne>Le&&(ne=Le),ne>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y],qt=1,nn=0;++nn>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y+--ne],qt=1;ne>0&&(qt*=256);)it+=this[Y+--ne]*qt;return it},se.prototype.readUint8=se.prototype.readUInt8=function(Y,ne){return Y>>>=0,ne||Kr(Y,1,this.length),this[Y]},se.prototype.readUint16LE=se.prototype.readUInt16LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,2,this.length),this[Y]|this[Y+1]<<8},se.prototype.readUint16BE=se.prototype.readUInt16BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,2,this.length),this[Y]<<8|this[Y+1]},se.prototype.readUint32LE=se.prototype.readUInt32LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},se.prototype.readUint32BE=se.prototype.readUInt32BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},se.prototype.readIntLE=function(Y,ne,Le){Y>>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y],qt=1,nn=0;++nn=(qt*=128)&&(it-=Math.pow(2,8*ne)),it},se.prototype.readIntBE=function(Y,ne,Le){Y>>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=ne,qt=1,nn=this[Y+--it];it>0&&(qt*=256);)nn+=this[Y+--it]*qt;return nn>=(qt*=128)&&(nn-=Math.pow(2,8*ne)),nn},se.prototype.readInt8=function(Y,ne){return Y>>>=0,ne||Kr(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},se.prototype.readInt16LE=function(Y,ne){Y>>>=0,ne||Kr(Y,2,this.length);var Le=this[Y]|this[Y+1]<<8;return 32768&Le?4294901760|Le:Le},se.prototype.readInt16BE=function(Y,ne){Y>>>=0,ne||Kr(Y,2,this.length);var Le=this[Y+1]|this[Y]<<8;return 32768&Le?4294901760|Le:Le},se.prototype.readInt32LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},se.prototype.readInt32BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},se.prototype.readFloatLE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),ye.read(this,Y,!0,23,4)},se.prototype.readFloatBE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),ye.read(this,Y,!1,23,4)},se.prototype.readDoubleLE=function(Y,ne){return Y>>>=0,ne||Kr(Y,8,this.length),ye.read(this,Y,!0,52,8)},se.prototype.readDoubleBE=function(Y,ne){return Y>>>=0,ne||Kr(Y,8,this.length),ye.read(this,Y,!1,52,8)},se.prototype.writeUintLE=se.prototype.writeUIntLE=function(Y,ne,Le,it){Y=+Y,ne>>>=0,Le>>>=0,it||Gr(this,Y,ne,Le,Math.pow(2,8*Le)-1,0);var nn=1,ar=0;for(this[ne]=255&Y;++ar>>=0,Le>>>=0,it||Gr(this,Y,ne,Le,Math.pow(2,8*Le)-1,0);var nn=Le-1,ar=1;for(this[ne+nn]=255&Y;--nn>=0&&(ar*=256);)this[ne+nn]=Y/ar&255;return ne+Le},se.prototype.writeUint8=se.prototype.writeUInt8=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,1,255,0),this[ne]=255&Y,ne+1},se.prototype.writeUint16LE=se.prototype.writeUInt16LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,65535,0),this[ne]=255&Y,this[ne+1]=Y>>>8,ne+2},se.prototype.writeUint16BE=se.prototype.writeUInt16BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,65535,0),this[ne]=Y>>>8,this[ne+1]=255&Y,ne+2},se.prototype.writeUint32LE=se.prototype.writeUInt32LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,4294967295,0),this[ne+3]=Y>>>24,this[ne+2]=Y>>>16,this[ne+1]=Y>>>8,this[ne]=255&Y,ne+4},se.prototype.writeUint32BE=se.prototype.writeUInt32BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,4294967295,0),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=255&Y,ne+4},se.prototype.writeIntLE=function(Y,ne,Le,it){if(Y=+Y,ne>>>=0,!it){var qt=Math.pow(2,8*Le-1);Gr(this,Y,ne,Le,qt-1,-qt)}var nn=0,ar=1,M=0;for(this[ne]=255&Y;++nn>0)-M&255;return ne+Le},se.prototype.writeIntBE=function(Y,ne,Le,it){if(Y=+Y,ne>>>=0,!it){var qt=Math.pow(2,8*Le-1);Gr(this,Y,ne,Le,qt-1,-qt)}var nn=Le-1,ar=1,M=0;for(this[ne+nn]=255&Y;--nn>=0&&(ar*=256);)Y<0&&0===M&&0!==this[ne+nn+1]&&(M=1),this[ne+nn]=(Y/ar>>0)-M&255;return ne+Le},se.prototype.writeInt8=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,1,127,-128),Y<0&&(Y=255+Y+1),this[ne]=255&Y,ne+1},se.prototype.writeInt16LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,32767,-32768),this[ne]=255&Y,this[ne+1]=Y>>>8,ne+2},se.prototype.writeInt16BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,32767,-32768),this[ne]=Y>>>8,this[ne+1]=255&Y,ne+2},se.prototype.writeInt32LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,2147483647,-2147483648),this[ne]=255&Y,this[ne+1]=Y>>>8,this[ne+2]=Y>>>16,this[ne+3]=Y>>>24,ne+4},se.prototype.writeInt32BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=255&Y,ne+4},se.prototype.writeFloatLE=function(Y,ne,Le){return Wr(this,Y,ne,!0,Le)},se.prototype.writeFloatBE=function(Y,ne,Le){return Wr(this,Y,ne,!1,Le)},se.prototype.writeDoubleLE=function(Y,ne,Le){return na(this,Y,ne,!0,Le)},se.prototype.writeDoubleBE=function(Y,ne,Le){return na(this,Y,ne,!1,Le)},se.prototype.copy=function(Y,ne,Le,it){if(!se.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!it&&0!==it&&(it=this.length),ne>=Y.length&&(ne=Y.length),ne||(ne=0),it>0&&it=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),Y.length-ne>>=0,Le=void 0===Le?this.length:Le>>>0,Y||(Y=0),"number"==typeof Y)for(nn=ne;nn55295&&ne<57344){if(!it){if(ne>56319){(Y-=3)>-1&&qt.push(239,191,189);continue}if(nn+1===Le){(Y-=3)>-1&&qt.push(239,191,189);continue}it=ne;continue}if(ne<56320){(Y-=3)>-1&&qt.push(239,191,189),it=ne;continue}ne=65536+(it-55296<<10|ne-56320)}else it&&(Y-=3)>-1&&qt.push(239,191,189);if(it=null,ne<128){if((Y-=1)<0)break;qt.push(ne)}else if(ne<2048){if((Y-=2)<0)break;qt.push(ne>>6|192,63&ne|128)}else if(ne<65536){if((Y-=3)<0)break;qt.push(ne>>12|224,ne>>6&63|128,63&ne|128)}else{if(!(ne<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;qt.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,63&ne|128)}}return qt}function Cu(Ne){return de.toByteArray(function Ls(Ne){if((Ne=(Ne=Ne.split("=")[0]).trim().replace(nl,"")).length<2)return"";for(;Ne.length%4!=0;)Ne+="=";return Ne}(Ne))}function il(Ne,Y,ne,Le){for(var it=0;it=Y.length||it>=Ne.length);++it)Y[it+ne]=Ne[it];return it}function wa(Ne,Y){return Ne instanceof Y||null!=Ne&&null!=Ne.constructor&&null!=Ne.constructor.name&&Ne.constructor.name===Y.name}function ho(Ne){return Ne!=Ne}var Hl=function(){for(var Ne="0123456789abcdef",Y=new Array(256),ne=0;ne<16;++ne)for(var Le=16*ne,it=0;it<16;++it)Y[Le+it]=Ne[ne]+Ne[it];return Y}()},4901:Et=>{"use strict";var Xe={single_source_shortest_paths:function(ue,be,de){var ye={},he={};he[be]=0;var Se,we,se,K,re,k,ee=Xe.PriorityQueue.make();for(ee.push(be,0);!ee.empty();)for(se in K=(Se=ee.pop()).cost,re=ue[we=Se.value]||{})re.hasOwnProperty(se)&&(k=K+re[se],(typeof he[se]>"u"||he[se]>k)&&(he[se]=k,ee.push(se,k),ye[se]=we));if(typeof de<"u"&&typeof he[de]>"u"){var Z=["Could not find a path from ",be," to ",de,"."].join("");throw new Error(Z)}return ye},extract_shortest_path_from_predecessor_list:function(ue,be){for(var de=[],ye=be;ye;)de.push(ye),ye=ue[ye];return de.reverse(),de},find_path:function(ue,be,de){var ye=Xe.single_source_shortest_paths(ue,be,de);return Xe.extract_shortest_path_from_predecessor_list(ye,de)},PriorityQueue:{make:function(ue){var ye,be=Xe.PriorityQueue,de={};for(ye in ue=ue||{},be)be.hasOwnProperty(ye)&&(de[ye]=be[ye]);return de.queue=[],de.sorter=ue.sorter||be.default_sorter,de},default_sorter:function(ue,be){return ue.cost-be.cost},push:function(ue,be){this.queue.push({value:ue,cost:be}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Et.exports=Xe},8419:Et=>{"use strict";Et.exports=function(ue){for(var be=[],de=ue.length,ye=0;ye=55296&&he<=56319&&de>ye+1){var ee=ue.charCodeAt(ye+1);ee>=56320&&ee<=57343&&(he=1024*(he-55296)+ee-56320+65536,ye+=1)}he<128?be.push(he):he<2048?(be.push(he>>6|192),be.push(63&he|128)):he<55296||he>=57344&&he<65536?(be.push(he>>12|224),be.push(he>>6&63|128),be.push(63&he|128)):he>=65536&&he<=1114111?(be.push(he>>18|240),be.push(he>>12&63|128),be.push(he>>6&63|128),be.push(63&he|128)):be.push(239,191,189)}return new Uint8Array(be).buffer}},7797:function(Et){Et.exports=function(Xe){var ue={};function be(de){if(ue[de])return ue[de].exports;var ye=ue[de]={exports:{},id:de,loaded:!1};return Xe[de].call(ye.exports,ye,ye.exports,be),ye.loaded=!0,ye.exports}return be.m=Xe,be.c=ue,be.p="",be(0)}([function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(1),ye=be(3),he=be(8),ee=be(15);function Se(ie,k,T){var I=null,Z=function(Qt,An){T&&T(Qt,An),I&&I.visit(Qt,An)},Ae="function"==typeof T?Z:null,Ue=!1;if(k){var ut="boolean"==typeof k.attachComment&&k.attachComment;((Ue="boolean"==typeof k.comment&&k.comment)||ut)&&((I=new de.CommentHandler).attach=ut,k.comment=!0,Ae=Z)}var yt,ht=!1;k&&"string"==typeof k.sourceType&&(ht="module"===k.sourceType),yt=k&&"boolean"==typeof k.jsx&&k.jsx?new ye.JSXParser(ie,k,Ae):new he.Parser(ie,k,Ae);var Wt=ht?yt.parseModule():yt.parseScript();return Ue&&I&&(Wt.comments=I.comments),yt.config.tokens&&(Wt.tokens=yt.tokens),yt.config.tolerant&&(Wt.errors=yt.errorHandler.errors),Wt}ue.parse=Se,ue.parseModule=function we(ie,k,T){var I=k||{};return I.sourceType="module",Se(ie,I,T)},ue.parseScript=function se(ie,k,T){var I=k||{};return I.sourceType="script",Se(ie,I,T)},ue.tokenize=function K(ie,k,T){var Z,I=new ee.Tokenizer(ie,k);Z=[];try{for(;;){var Ae=I.getNextToken();if(!Ae)break;T&&(Ae=T(Ae)),Z.push(Ae)}}catch(Ue){I.errorHandler.tolerate(Ue)}return I.errorHandler.tolerant&&(Z.errors=I.errors()),Z};var re=be(2);ue.Syntax=re.Syntax,ue.version="4.0.1"},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(2),ye=function(){function he(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return he.prototype.insertInnerComments=function(ee,Se){if(ee.type===de.Syntax.BlockStatement&&0===ee.body.length){for(var we=[],se=this.leading.length-1;se>=0;--se){var K=this.leading[se];Se.end.offset>=K.start&&(we.unshift(K.comment),this.leading.splice(se,1),this.trailing.splice(se,1))}we.length&&(ee.innerComments=we)}},he.prototype.findTrailingComments=function(ee){var Se=[];if(this.trailing.length>0){for(var we=this.trailing.length-1;we>=0;--we){var se=this.trailing[we];se.start>=ee.end.offset&&Se.unshift(se.comment)}return this.trailing.length=0,Se}var K=this.stack[this.stack.length-1];if(K&&K.node.trailingComments){var re=K.node.trailingComments[0];re&&re.range[0]>=ee.end.offset&&(Se=K.node.trailingComments,delete K.node.trailingComments)}return Se},he.prototype.findLeadingComments=function(ee){for(var we,Se=[];this.stack.length>0&&(se=this.stack[this.stack.length-1])&&se.start>=ee.start.offset;)we=se.node,this.stack.pop();if(we){for(var re=(we.leadingComments?we.leadingComments.length:0)-1;re>=0;--re){var ie=we.leadingComments[re];ie.range[1]<=ee.start.offset&&(Se.unshift(ie),we.leadingComments.splice(re,1))}return we.leadingComments&&0===we.leadingComments.length&&delete we.leadingComments,Se}for(re=this.leading.length-1;re>=0;--re){var se;(se=this.leading[re]).start<=ee.start.offset&&(Se.unshift(se.comment),this.leading.splice(re,1))}return Se},he.prototype.visitNode=function(ee,Se){if(!(ee.type===de.Syntax.Program&&ee.body.length>0)){this.insertInnerComments(ee,Se);var we=this.findTrailingComments(Se),se=this.findLeadingComments(Se);se.length>0&&(ee.leadingComments=se),we.length>0&&(ee.trailingComments=we),this.stack.push({node:ee,start:Se.start.offset})}},he.prototype.visitComment=function(ee,Se){var we="L"===ee.type[0]?"Line":"Block",se={type:we,value:ee.value};if(ee.range&&(se.range=ee.range),ee.loc&&(se.loc=ee.loc),this.comments.push(se),this.attach){var K={comment:{type:we,value:ee.value,range:[Se.start.offset,Se.end.offset]},start:Se.start.offset};ee.loc&&(K.comment.loc=ee.loc),ee.type=we,this.leading.push(K),this.trailing.push(K)}},he.prototype.visit=function(ee,Se){"LineComment"===ee.type||"BlockComment"===ee.type?this.visitComment(ee,Se):this.attach&&this.visitNode(ee,Se)},he}();ue.CommentHandler=ye},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Xe,ue,be){"use strict";var k,de=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,I){T.__proto__=I}||function(T,I){for(var Z in I)I.hasOwnProperty(Z)&&(T[Z]=I[Z])},function(T,I){function Z(){this.constructor=T}k(T,I),T.prototype=null===I?Object.create(I):(Z.prototype=I.prototype,new Z)});Object.defineProperty(ue,"__esModule",{value:!0});var ye=be(4),he=be(5),ee=be(6),Se=be(7),we=be(8),se=be(13),K=be(14);function re(k){var T;switch(k.type){case ee.JSXSyntax.JSXIdentifier:T=k.name;break;case ee.JSXSyntax.JSXNamespacedName:var Z=k;T=re(Z.namespace)+":"+re(Z.name);break;case ee.JSXSyntax.JSXMemberExpression:var Ae=k;T=re(Ae.object)+"."+re(Ae.property)}return T}se.TokenName[100]="JSXIdentifier",se.TokenName[101]="JSXText";var ie=function(k){function T(I,Z,Ae){return k.call(this,I,Z,Ae)||this}return de(T,k),T.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():k.prototype.parsePrimaryExpression.call(this)},T.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},T.prototype.finishJSX=function(){this.nextToken()},T.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},T.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.scanXHTMLEntity=function(I){for(var Z="&",Ae=!0,Ue=!1,ut=!1,ht=!1;!this.scanner.eof()&&Ae&&!Ue;){var yt=this.scanner.source[this.scanner.index];if(yt===I)break;if(Ue=";"===yt,Z+=yt,++this.scanner.index,!Ue)switch(Z.length){case 2:ut="#"===yt;break;case 3:ut&&(Ae=(ht="x"===yt)||ye.Character.isDecimalDigit(yt.charCodeAt(0)),ut=ut&&!ht);break;default:Ae=(Ae=Ae&&!(ut&&!ye.Character.isDecimalDigit(yt.charCodeAt(0))))&&!(ht&&!ye.Character.isHexDigit(yt.charCodeAt(0)))}}if(Ae&&Ue&&Z.length>2){var Zt=Z.substr(1,Z.length-2);ut&&Zt.length>1?Z=String.fromCharCode(parseInt(Zt.substr(1),10)):ht&&Zt.length>2?Z=String.fromCharCode(parseInt("0"+Zt.substr(1),16)):!ut&&!ht&&K.XHTMLEntities[Zt]&&(Z=K.XHTMLEntities[Zt])}return Z},T.prototype.lexJSX=function(){var I=this.scanner.source.charCodeAt(this.scanner.index);if(60===I||62===I||47===I||58===I||61===I||123===I||125===I)return{type:7,value:Z=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===I||39===I){for(var Ae=this.scanner.index,Ue=this.scanner.source[this.scanner.index++],ut="";!this.scanner.eof()&&(ht=this.scanner.source[this.scanner.index++])!==Ue;)ut+="&"===ht?this.scanXHTMLEntity(Ue):ht;return{type:8,value:ut,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(46===I){var Z,yt=this.scanner.source.charCodeAt(this.scanner.index+1),Zt=this.scanner.source.charCodeAt(this.scanner.index+2);return Ae=this.scanner.index,this.scanner.index+=(Z=46===yt&&46===Zt?"...":".").length,{type:7,value:Z,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(96===I)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(ye.Character.isIdentifierStart(I)&&92!==I){for(Ae=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var ht=this.scanner.source.charCodeAt(this.scanner.index);if(ye.Character.isIdentifierPart(ht)&&92!==ht)++this.scanner.index;else{if(45!==ht)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Ae,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}return this.scanner.lex()},T.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var I=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(I)),I},T.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var I=this.scanner.index,Z="";!this.scanner.eof();){var Ae=this.scanner.source[this.scanner.index];if("{"===Ae||"<"===Ae)break;++this.scanner.index,Z+=Ae,ye.Character.isLineTerminator(Ae.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Ae&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Ue={type:101,value:Z,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:I,end:this.scanner.index};return Z.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Ue)),Ue},T.prototype.peekJSXToken=function(){var I=this.scanner.saveState();this.scanner.scanComments();var Z=this.lexJSX();return this.scanner.restoreState(I),Z},T.prototype.expectJSX=function(I){var Z=this.nextJSXToken();(7!==Z.type||Z.value!==I)&&this.throwUnexpectedToken(Z)},T.prototype.matchJSX=function(I){var Z=this.peekJSXToken();return 7===Z.type&&Z.value===I},T.prototype.parseJSXIdentifier=function(){var I=this.createJSXNode(),Z=this.nextJSXToken();return 100!==Z.type&&this.throwUnexpectedToken(Z),this.finalize(I,new he.JSXIdentifier(Z.value))},T.prototype.parseJSXElementName=function(){var I=this.createJSXNode(),Z=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ae=Z;this.expectJSX(":");var Ue=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXNamespacedName(Ae,Ue))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var ut=Z;this.expectJSX(".");var ht=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXMemberExpression(ut,ht))}return Z},T.prototype.parseJSXAttributeName=function(){var Z,I=this.createJSXNode(),Ae=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ue=Ae;this.expectJSX(":");var ut=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXNamespacedName(Ue,ut))}else Z=Ae;return Z},T.prototype.parseJSXStringLiteralAttribute=function(){var I=this.createJSXNode(),Z=this.nextJSXToken();8!==Z.type&&this.throwUnexpectedToken(Z);var Ae=this.getTokenRaw(Z);return this.finalize(I,new Se.Literal(Z.value,Ae))},T.prototype.parseJSXExpressionAttribute=function(){var I=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var Z=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(I,new he.JSXExpressionContainer(Z))},T.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},T.prototype.parseJSXNameValueAttribute=function(){var I=this.createJSXNode(),Z=this.parseJSXAttributeName(),Ae=null;return this.matchJSX("=")&&(this.expectJSX("="),Ae=this.parseJSXAttributeValue()),this.finalize(I,new he.JSXAttribute(Z,Ae))},T.prototype.parseJSXSpreadAttribute=function(){var I=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var Z=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(I,new he.JSXSpreadAttribute(Z))},T.prototype.parseJSXAttributes=function(){for(var I=[];!this.matchJSX("/")&&!this.matchJSX(">");){var Z=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();I.push(Z)}return I},T.prototype.parseJSXOpeningElement=function(){var I=this.createJSXNode();this.expectJSX("<");var Z=this.parseJSXElementName(),Ae=this.parseJSXAttributes(),Ue=this.matchJSX("/");return Ue&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(I,new he.JSXOpeningElement(Z,Ue,Ae))},T.prototype.parseJSXBoundaryElement=function(){var I=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var Z=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(I,new he.JSXClosingElement(Z))}var Ae=this.parseJSXElementName(),Ue=this.parseJSXAttributes(),ut=this.matchJSX("/");return ut&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(I,new he.JSXOpeningElement(Ae,ut,Ue))},T.prototype.parseJSXEmptyExpression=function(){var I=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(I,new he.JSXEmptyExpression)},T.prototype.parseJSXExpressionContainer=function(){var Z,I=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(Z=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),Z=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(I,new he.JSXExpressionContainer(Z))},T.prototype.parseJSXChildren=function(){for(var I=[];!this.scanner.eof();){var Z=this.createJSXChildNode(),Ae=this.nextJSXText();if(Ae.start0))break;ht=this.finalize(I.node,new he.JSXElement(I.opening,I.children,I.closing)),(I=Z[Z.length-1]).children.push(ht),Z.pop()}}return I},T.prototype.parseJSXElement=function(){var I=this.createJSXNode(),Z=this.parseJSXOpeningElement(),Ae=[],Ue=null;if(!Z.selfClosing){var ut=this.parseComplexJSXElement({node:I,opening:Z,closing:Ue,children:Ae});Ae=ut.children,Ue=ut.closing}return this.finalize(I,new he.JSXElement(Z,Ae,Ue))},T.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var I=this.parseJSXElement();return this.finishJSX(),I},T.prototype.isStartOfExpression=function(){return k.prototype.isStartOfExpression.call(this)||this.match("<")},T}(we.Parser);ue.JSXParser=ie},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var be={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};ue.Character={fromCodePoint:function(de){return de<65536?String.fromCharCode(de):String.fromCharCode(55296+(de-65536>>10))+String.fromCharCode(56320+(de-65536&1023))},isWhiteSpace:function(de){return 32===de||9===de||11===de||12===de||160===de||de>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(de)>=0},isLineTerminator:function(de){return 10===de||13===de||8232===de||8233===de},isIdentifierStart:function(de){return 36===de||95===de||de>=65&&de<=90||de>=97&&de<=122||92===de||de>=128&&be.NonAsciiIdentifierStart.test(ue.Character.fromCodePoint(de))},isIdentifierPart:function(de){return 36===de||95===de||de>=65&&de<=90||de>=97&&de<=122||de>=48&&de<=57||92===de||de>=128&&be.NonAsciiIdentifierPart.test(ue.Character.fromCodePoint(de))},isDecimalDigit:function(de){return de>=48&&de<=57},isHexDigit:function(de){return de>=48&&de<=57||de>=65&&de<=70||de>=97&&de<=102},isOctalDigit:function(de){return de>=48&&de<=55}}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(6);ue.JSXClosingElement=function I(Z){this.type=de.JSXSyntax.JSXClosingElement,this.name=Z},ue.JSXElement=function I(Z,Ae,Ue){this.type=de.JSXSyntax.JSXElement,this.openingElement=Z,this.children=Ae,this.closingElement=Ue},ue.JSXEmptyExpression=function I(){this.type=de.JSXSyntax.JSXEmptyExpression},ue.JSXExpressionContainer=function I(Z){this.type=de.JSXSyntax.JSXExpressionContainer,this.expression=Z},ue.JSXIdentifier=function I(Z){this.type=de.JSXSyntax.JSXIdentifier,this.name=Z},ue.JSXMemberExpression=function I(Z,Ae){this.type=de.JSXSyntax.JSXMemberExpression,this.object=Z,this.property=Ae},ue.JSXAttribute=function I(Z,Ae){this.type=de.JSXSyntax.JSXAttribute,this.name=Z,this.value=Ae},ue.JSXNamespacedName=function I(Z,Ae){this.type=de.JSXSyntax.JSXNamespacedName,this.namespace=Z,this.name=Ae},ue.JSXOpeningElement=function I(Z,Ae,Ue){this.type=de.JSXSyntax.JSXOpeningElement,this.name=Z,this.selfClosing=Ae,this.attributes=Ue},ue.JSXSpreadAttribute=function I(Z){this.type=de.JSXSyntax.JSXSpreadAttribute,this.argument=Z},ue.JSXText=function I(Z,Ae){this.type=de.JSXSyntax.JSXText,this.value=Z,this.raw=Ae}},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(2);ue.ArrayExpression=function Je(Qe){this.type=de.Syntax.ArrayExpression,this.elements=Qe},ue.ArrayPattern=function Je(Qe){this.type=de.Syntax.ArrayPattern,this.elements=Qe},ue.ArrowFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.ArrowFunctionExpression,this.id=null,this.params=Qe,this.body=St,this.generator=!1,this.expression=kn,this.async=!1},ue.AssignmentExpression=function Je(Qe,St,kn){this.type=de.Syntax.AssignmentExpression,this.operator=Qe,this.left=St,this.right=kn},ue.AssignmentPattern=function Je(Qe,St){this.type=de.Syntax.AssignmentPattern,this.left=Qe,this.right=St},ue.AsyncArrowFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.ArrowFunctionExpression,this.id=null,this.params=Qe,this.body=St,this.generator=!1,this.expression=kn,this.async=!0},ue.AsyncFunctionDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.FunctionDeclaration,this.id=Qe,this.params=St,this.body=kn,this.generator=!1,this.expression=!1,this.async=!0},ue.AsyncFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.FunctionExpression,this.id=Qe,this.params=St,this.body=kn,this.generator=!1,this.expression=!1,this.async=!0},ue.AwaitExpression=function Je(Qe){this.type=de.Syntax.AwaitExpression,this.argument=Qe},ue.BinaryExpression=function Je(Qe,St,kn){this.type="||"===Qe||"&&"===Qe?de.Syntax.LogicalExpression:de.Syntax.BinaryExpression,this.operator=Qe,this.left=St,this.right=kn},ue.BlockStatement=function Je(Qe){this.type=de.Syntax.BlockStatement,this.body=Qe},ue.BreakStatement=function Je(Qe){this.type=de.Syntax.BreakStatement,this.label=Qe},ue.CallExpression=function Je(Qe,St){this.type=de.Syntax.CallExpression,this.callee=Qe,this.arguments=St},ue.CatchClause=function Je(Qe,St){this.type=de.Syntax.CatchClause,this.param=Qe,this.body=St},ue.ClassBody=function Je(Qe){this.type=de.Syntax.ClassBody,this.body=Qe},ue.ClassDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.ClassDeclaration,this.id=Qe,this.superClass=St,this.body=kn},ue.ClassExpression=function Je(Qe,St,kn){this.type=de.Syntax.ClassExpression,this.id=Qe,this.superClass=St,this.body=kn},ue.ComputedMemberExpression=function Je(Qe,St){this.type=de.Syntax.MemberExpression,this.computed=!0,this.object=Qe,this.property=St},ue.ConditionalExpression=function Je(Qe,St,kn){this.type=de.Syntax.ConditionalExpression,this.test=Qe,this.consequent=St,this.alternate=kn},ue.ContinueStatement=function Je(Qe){this.type=de.Syntax.ContinueStatement,this.label=Qe},ue.DebuggerStatement=function Je(){this.type=de.Syntax.DebuggerStatement},ue.Directive=function Je(Qe,St){this.type=de.Syntax.ExpressionStatement,this.expression=Qe,this.directive=St},ue.DoWhileStatement=function Je(Qe,St){this.type=de.Syntax.DoWhileStatement,this.body=Qe,this.test=St},ue.EmptyStatement=function Je(){this.type=de.Syntax.EmptyStatement},ue.ExportAllDeclaration=function Je(Qe){this.type=de.Syntax.ExportAllDeclaration,this.source=Qe},ue.ExportDefaultDeclaration=function Je(Qe){this.type=de.Syntax.ExportDefaultDeclaration,this.declaration=Qe},ue.ExportNamedDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.ExportNamedDeclaration,this.declaration=Qe,this.specifiers=St,this.source=kn},ue.ExportSpecifier=function Je(Qe,St){this.type=de.Syntax.ExportSpecifier,this.exported=St,this.local=Qe},ue.ExpressionStatement=function Je(Qe){this.type=de.Syntax.ExpressionStatement,this.expression=Qe},ue.ForInStatement=function Je(Qe,St,kn){this.type=de.Syntax.ForInStatement,this.left=Qe,this.right=St,this.body=kn,this.each=!1},ue.ForOfStatement=function Je(Qe,St,kn){this.type=de.Syntax.ForOfStatement,this.left=Qe,this.right=St,this.body=kn},ue.ForStatement=function Je(Qe,St,kn,Br){this.type=de.Syntax.ForStatement,this.init=Qe,this.test=St,this.update=kn,this.body=Br},ue.FunctionDeclaration=function Je(Qe,St,kn,Br){this.type=de.Syntax.FunctionDeclaration,this.id=Qe,this.params=St,this.body=kn,this.generator=Br,this.expression=!1,this.async=!1},ue.FunctionExpression=function Je(Qe,St,kn,Br){this.type=de.Syntax.FunctionExpression,this.id=Qe,this.params=St,this.body=kn,this.generator=Br,this.expression=!1,this.async=!1},ue.Identifier=function Je(Qe){this.type=de.Syntax.Identifier,this.name=Qe},ue.IfStatement=function Je(Qe,St,kn){this.type=de.Syntax.IfStatement,this.test=Qe,this.consequent=St,this.alternate=kn},ue.ImportDeclaration=function Je(Qe,St){this.type=de.Syntax.ImportDeclaration,this.specifiers=Qe,this.source=St},ue.ImportDefaultSpecifier=function Je(Qe){this.type=de.Syntax.ImportDefaultSpecifier,this.local=Qe},ue.ImportNamespaceSpecifier=function Je(Qe){this.type=de.Syntax.ImportNamespaceSpecifier,this.local=Qe},ue.ImportSpecifier=function Je(Qe,St){this.type=de.Syntax.ImportSpecifier,this.local=Qe,this.imported=St},ue.LabeledStatement=function Je(Qe,St){this.type=de.Syntax.LabeledStatement,this.label=Qe,this.body=St},ue.Literal=function Je(Qe,St){this.type=de.Syntax.Literal,this.value=Qe,this.raw=St},ue.MetaProperty=function Je(Qe,St){this.type=de.Syntax.MetaProperty,this.meta=Qe,this.property=St},ue.MethodDefinition=function Je(Qe,St,kn,Br,g1){this.type=de.Syntax.MethodDefinition,this.key=Qe,this.computed=St,this.value=kn,this.kind=Br,this.static=g1},ue.Module=function Je(Qe){this.type=de.Syntax.Program,this.body=Qe,this.sourceType="module"},ue.NewExpression=function Je(Qe,St){this.type=de.Syntax.NewExpression,this.callee=Qe,this.arguments=St},ue.ObjectExpression=function Je(Qe){this.type=de.Syntax.ObjectExpression,this.properties=Qe},ue.ObjectPattern=function Je(Qe){this.type=de.Syntax.ObjectPattern,this.properties=Qe},ue.Property=function Je(Qe,St,kn,Br,g1,ji){this.type=de.Syntax.Property,this.key=St,this.computed=kn,this.value=Br,this.kind=Qe,this.method=g1,this.shorthand=ji},ue.RegexLiteral=function Je(Qe,St,kn,Br){this.type=de.Syntax.Literal,this.value=Qe,this.raw=St,this.regex={pattern:kn,flags:Br}},ue.RestElement=function Je(Qe){this.type=de.Syntax.RestElement,this.argument=Qe},ue.ReturnStatement=function Je(Qe){this.type=de.Syntax.ReturnStatement,this.argument=Qe},ue.Script=function Je(Qe){this.type=de.Syntax.Program,this.body=Qe,this.sourceType="script"},ue.SequenceExpression=function Je(Qe){this.type=de.Syntax.SequenceExpression,this.expressions=Qe},ue.SpreadElement=function Je(Qe){this.type=de.Syntax.SpreadElement,this.argument=Qe},ue.StaticMemberExpression=function Je(Qe,St){this.type=de.Syntax.MemberExpression,this.computed=!1,this.object=Qe,this.property=St},ue.Super=function Je(){this.type=de.Syntax.Super},ue.SwitchCase=function Je(Qe,St){this.type=de.Syntax.SwitchCase,this.test=Qe,this.consequent=St},ue.SwitchStatement=function Je(Qe,St){this.type=de.Syntax.SwitchStatement,this.discriminant=Qe,this.cases=St},ue.TaggedTemplateExpression=function Je(Qe,St){this.type=de.Syntax.TaggedTemplateExpression,this.tag=Qe,this.quasi=St},ue.TemplateElement=function Je(Qe,St){this.type=de.Syntax.TemplateElement,this.value=Qe,this.tail=St},ue.TemplateLiteral=function Je(Qe,St){this.type=de.Syntax.TemplateLiteral,this.quasis=Qe,this.expressions=St},ue.ThisExpression=function Je(){this.type=de.Syntax.ThisExpression},ue.ThrowStatement=function Je(Qe){this.type=de.Syntax.ThrowStatement,this.argument=Qe},ue.TryStatement=function Je(Qe,St,kn){this.type=de.Syntax.TryStatement,this.block=Qe,this.handler=St,this.finalizer=kn},ue.UnaryExpression=function Je(Qe,St){this.type=de.Syntax.UnaryExpression,this.operator=Qe,this.argument=St,this.prefix=!0},ue.UpdateExpression=function Je(Qe,St,kn){this.type=de.Syntax.UpdateExpression,this.operator=Qe,this.argument=St,this.prefix=kn},ue.VariableDeclaration=function Je(Qe,St){this.type=de.Syntax.VariableDeclaration,this.declarations=Qe,this.kind=St},ue.VariableDeclarator=function Je(Qe,St){this.type=de.Syntax.VariableDeclarator,this.id=Qe,this.init=St},ue.WhileStatement=function Je(Qe,St){this.type=de.Syntax.WhileStatement,this.test=Qe,this.body=St},ue.WithStatement=function Je(Qe,St){this.type=de.Syntax.WithStatement,this.object=Qe,this.body=St},ue.YieldExpression=function Je(Qe,St){this.type=de.Syntax.YieldExpression,this.argument=Qe,this.delegate=St}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(9),ye=be(10),he=be(11),ee=be(7),Se=be(12),we=be(2),se=be(13),K="ArrowParameterPlaceHolder",re=function(){function ie(k,T,I){void 0===T&&(T={}),this.config={range:"boolean"==typeof T.range&&T.range,loc:"boolean"==typeof T.loc&&T.loc,source:null,tokens:"boolean"==typeof T.tokens&&T.tokens,comment:"boolean"==typeof T.comment&&T.comment,tolerant:"boolean"==typeof T.tolerant&&T.tolerant},this.config.loc&&T.source&&null!==T.source&&(this.config.source=String(T.source)),this.delegate=I,this.errorHandler=new ye.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new Se.Scanner(k,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return ie.prototype.throwError=function(k){for(var T=[],I=1;I0&&this.delegate)for(var T=0;T>="===k||">>>="===k||"&="===k||"^="===k||"|="===k},ie.prototype.isolateCoverGrammar=function(k){var T=this.context.isBindingElement,I=this.context.isAssignmentTarget,Z=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=k.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=T,this.context.isAssignmentTarget=I,this.context.firstCoverInitializedNameError=Z,Ae},ie.prototype.inheritCoverGrammar=function(k){var T=this.context.isBindingElement,I=this.context.isAssignmentTarget,Z=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=k.call(this);return this.context.isBindingElement=this.context.isBindingElement&&T,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&I,this.context.firstCoverInitializedNameError=Z||this.context.firstCoverInitializedNameError,Ae},ie.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},ie.prototype.parsePrimaryExpression=function(){var T,I,Z,k=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),T=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(k,new ee.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal(I.value,Z));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal("true"===I.value,Z));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal(null,Z));break;case 10:T=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,T=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":T=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":T=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,I=this.nextRegexToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.RegexLiteral(I.regex,Z,I.pattern,I.flags));break;default:T=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?T=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?T=this.finalize(k,new ee.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?T=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),T=this.finalize(k,new ee.ThisExpression)):T=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:T=this.throwUnexpectedToken(this.nextToken())}return T},ie.prototype.parseSpreadElement=function(){var k=this.createNode();this.expect("...");var T=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(k,new ee.SpreadElement(T))},ie.prototype.parseArrayInitializer=function(){var k=this.createNode(),T=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else if(this.match("...")){var I=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),T.push(I)}else T.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(k,new ee.ArrayExpression(T))},ie.prototype.parsePropertyMethod=function(k){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var T=this.context.strict,I=this.context.allowStrictDirective;this.context.allowStrictDirective=k.simple;var Z=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&k.firstRestricted&&this.tolerateUnexpectedToken(k.firstRestricted,k.message),this.context.strict&&k.stricted&&this.tolerateUnexpectedToken(k.stricted,k.message),this.context.strict=T,this.context.allowStrictDirective=I,Z},ie.prototype.parsePropertyMethodFunction=function(){var T=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters(),Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(T,new ee.FunctionExpression(null,Z.params,Ae,!1))},ie.prototype.parsePropertyMethodAsyncFunction=function(){var k=this.createNode(),T=this.context.allowYield,I=this.context.await;this.context.allowYield=!1,this.context.await=!0;var Z=this.parseFormalParameters(),Ae=this.parsePropertyMethod(Z);return this.context.allowYield=T,this.context.await=I,this.finalize(k,new ee.AsyncFunctionExpression(null,Z.params,Ae))},ie.prototype.parseObjectPropertyKey=function(){var I,k=this.createNode(),T=this.nextToken();switch(T.type){case 8:case 6:this.context.strict&&T.octal&&this.tolerateUnexpectedToken(T,he.Messages.StrictOctalLiteral);var Z=this.getTokenRaw(T);I=this.finalize(k,new ee.Literal(T.value,Z));break;case 3:case 1:case 5:case 4:I=this.finalize(k,new ee.Identifier(T.value));break;case 7:"["===T.value?(I=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):I=this.throwUnexpectedToken(T);break;default:I=this.throwUnexpectedToken(T)}return I},ie.prototype.isPropertyKey=function(k,T){return k.type===we.Syntax.Identifier&&k.name===T||k.type===we.Syntax.Literal&&k.value===T},ie.prototype.parseObjectProperty=function(k){var Z,T=this.createNode(),I=this.lookahead,Ae=null,Ue=null,ut=!1,ht=!1,yt=!1,Zt=!1;if(3===I.type){var Wt=I.value;this.nextToken(),ut=this.match("["),Ae=(Zt=!(this.hasLineTerminator||"async"!==Wt||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(T,new ee.Identifier(Wt))}else this.match("*")?this.nextToken():(ut=this.match("["),Ae=this.parseObjectPropertyKey());var Qt=this.qualifiedPropertyName(this.lookahead);if(3===I.type&&!Zt&&"get"===I.value&&Qt)Z="get",ut=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Ue=this.parseGetterMethod();else if(3===I.type&&!Zt&&"set"===I.value&&Qt)Z="set",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseSetterMethod();else if(7===I.type&&"*"===I.value&&Qt)Z="init",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseGeneratorMethod(),ht=!0;else if(Ae||this.throwUnexpectedToken(this.lookahead),Z="init",this.match(":")&&!Zt)!ut&&this.isPropertyKey(Ae,"__proto__")&&(k.value&&this.tolerateError(he.Messages.DuplicateProtoProperty),k.value=!0),this.nextToken(),Ue=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Ue=Zt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),ht=!0;else if(3===I.type)if(Wt=this.finalize(T,new ee.Identifier(I.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),yt=!0;var An=this.isolateCoverGrammar(this.parseAssignmentExpression);Ue=this.finalize(T,new ee.AssignmentPattern(Wt,An))}else yt=!0,Ue=Wt;else this.throwUnexpectedToken(this.nextToken());return this.finalize(T,new ee.Property(Z,Ae,ut,Ue,ht,yt))},ie.prototype.parseObjectInitializer=function(){var k=this.createNode();this.expect("{");for(var T=[],I={value:!1};!this.match("}");)T.push(this.parseObjectProperty(I)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(k,new ee.ObjectExpression(T))},ie.prototype.parseTemplateHead=function(){de.assert(this.lookahead.head,"Template literal must start with a template head");var k=this.createNode(),T=this.nextToken();return this.finalize(k,new ee.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ie.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var k=this.createNode(),T=this.nextToken();return this.finalize(k,new ee.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ie.prototype.parseTemplateLiteral=function(){var k=this.createNode(),T=[],I=[],Z=this.parseTemplateHead();for(I.push(Z);!Z.tail;)T.push(this.parseExpression()),Z=this.parseTemplateElement(),I.push(Z);return this.finalize(k,new ee.TemplateLiteral(I,T))},ie.prototype.reinterpretExpressionAsPattern=function(k){switch(k.type){case we.Syntax.Identifier:case we.Syntax.MemberExpression:case we.Syntax.RestElement:case we.Syntax.AssignmentPattern:break;case we.Syntax.SpreadElement:k.type=we.Syntax.RestElement,this.reinterpretExpressionAsPattern(k.argument);break;case we.Syntax.ArrayExpression:k.type=we.Syntax.ArrayPattern;for(var T=0;T")||this.expect("=>"),k={type:K,params:[],async:!1};else{var T=this.lookahead,I=[];if(this.match("..."))k=this.parseRestElement(I),this.expect(")"),this.match("=>")||this.expect("=>"),k={type:K,params:[k],async:!1};else{var Z=!1;if(this.context.isBindingElement=!0,k=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Ae=[];for(this.context.isAssignmentTarget=!1,Ae.push(k);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Ue=0;Ue")||this.expect("=>"),this.context.isBindingElement=!1,Ue=0;Ue")&&(k.type===we.Syntax.Identifier&&"yield"===k.name&&(Z=!0,k={type:K,params:[k],async:!1}),!Z)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),k.type===we.Syntax.SequenceExpression)for(Ue=0;Ue")){for(var ht=0;ht0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Ae=[k,this.lookahead],Ue=T,ut=this.isolateCoverGrammar(this.parseExponentiationExpression),ht=[Ue,I.value,ut],yt=[Z];!((Z=this.binaryPrecedence(this.lookahead))<=0);){for(;ht.length>2&&Z<=yt[yt.length-1];){ut=ht.pop();var Zt=ht.pop();yt.pop(),Ue=ht.pop(),Ae.pop();var Wt=this.startNode(Ae[Ae.length-1]);ht.push(this.finalize(Wt,new ee.BinaryExpression(Zt,Ue,ut)))}ht.push(this.nextToken().value),yt.push(Z),Ae.push(this.lookahead),ht.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Qt=ht.length-1;T=ht[Qt];for(var An=Ae.pop();Qt>1;){var Cn=Ae.pop();Wt=this.startNode(Cn,An&&An.lineStart),T=this.finalize(Wt,new ee.BinaryExpression(Zt=ht[Qt-1],ht[Qt-2],T)),Qt-=2,An=Cn}}return T},ie.prototype.parseConditionalExpression=function(){var k=this.lookahead,T=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var I=this.context.allowIn;this.context.allowIn=!0;var Z=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=I,this.expect(":");var Ae=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(k),new ee.ConditionalExpression(T,Z,Ae)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return T},ie.prototype.checkPatternParam=function(k,T){switch(T.type){case we.Syntax.Identifier:this.validateParam(k,T,T.name);break;case we.Syntax.RestElement:this.checkPatternParam(k,T.argument);break;case we.Syntax.AssignmentPattern:this.checkPatternParam(k,T.left);break;case we.Syntax.ArrayPattern:for(var I=0;I")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Ae=k.async,Ue=this.reinterpretAsCoverFormalsList(k);if(Ue){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var ut=this.context.strict,ht=this.context.allowStrictDirective;this.context.allowStrictDirective=Ue.simple;var yt=this.context.allowYield,Zt=this.context.await;this.context.allowYield=!0,this.context.await=Ae;var Wt=this.startNode(T);this.expect("=>");var Qt=void 0;if(this.match("{")){var An=this.context.allowIn;this.context.allowIn=!0,Qt=this.parseFunctionSourceElements(),this.context.allowIn=An}else Qt=this.isolateCoverGrammar(this.parseAssignmentExpression);var Cn=Qt.type!==we.Syntax.BlockStatement;this.context.strict&&Ue.firstRestricted&&this.throwUnexpectedToken(Ue.firstRestricted,Ue.message),this.context.strict&&Ue.stricted&&this.tolerateUnexpectedToken(Ue.stricted,Ue.message),k=this.finalize(Wt,Ae?new ee.AsyncArrowFunctionExpression(Ue.params,Qt,Cn):new ee.ArrowFunctionExpression(Ue.params,Qt,Cn)),this.context.strict=ut,this.context.allowStrictDirective=ht,this.context.allowYield=yt,this.context.await=Zt}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(he.Messages.InvalidLHSInAssignment),this.context.strict&&k.type===we.Syntax.Identifier){var Sn=k;this.scanner.isRestrictedWord(Sn.name)&&this.tolerateUnexpectedToken(I,he.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(Sn.name)&&this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(k):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var mi=(I=this.nextToken()).value,fn=this.isolateCoverGrammar(this.parseAssignmentExpression);k=this.finalize(this.startNode(T),new ee.AssignmentExpression(mi,k,fn)),this.context.firstCoverInitializedNameError=null}}return k},ie.prototype.parseExpression=function(){var k=this.lookahead,T=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var I=[];for(I.push(T);2!==this.lookahead.type&&this.match(",");)this.nextToken(),I.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(k),new ee.SequenceExpression(I))}return T},ie.prototype.parseStatementListItem=function(){var k;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalExportDeclaration),k=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalImportDeclaration),k=this.parseImportDeclaration();break;case"const":k=this.parseLexicalDeclaration({inFor:!1});break;case"function":k=this.parseFunctionDeclaration();break;case"class":k=this.parseClassDeclaration();break;case"let":k=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:k=this.parseStatement()}else k=this.parseStatement();return k},ie.prototype.parseBlock=function(){var k=this.createNode();this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseStatementListItem());return this.expect("}"),this.finalize(k,new ee.BlockStatement(T))},ie.prototype.parseLexicalBinding=function(k,T){var I=this.createNode(),Ae=this.parsePattern([],k);this.context.strict&&Ae.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(Ae.name)&&this.tolerateError(he.Messages.StrictVarName);var Ue=null;return"const"===k?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Ue=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(he.Messages.DeclarationMissingInitializer,"const")):(!T.inFor&&Ae.type!==we.Syntax.Identifier||this.match("="))&&(this.expect("="),Ue=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(I,new ee.VariableDeclarator(Ae,Ue))},ie.prototype.parseBindingList=function(k,T){for(var I=[this.parseLexicalBinding(k,T)];this.match(",");)this.nextToken(),I.push(this.parseLexicalBinding(k,T));return I},ie.prototype.isLexicalDeclaration=function(){var k=this.scanner.saveState();this.scanner.scanComments();var T=this.scanner.lex();return this.scanner.restoreState(k),3===T.type||7===T.type&&"["===T.value||7===T.type&&"{"===T.value||4===T.type&&"let"===T.value||4===T.type&&"yield"===T.value},ie.prototype.parseLexicalDeclaration=function(k){var T=this.createNode(),I=this.nextToken().value;de.assert("let"===I||"const"===I,"Lexical declaration must be either let or const");var Z=this.parseBindingList(I,k);return this.consumeSemicolon(),this.finalize(T,new ee.VariableDeclaration(Z,I))},ie.prototype.parseBindingRestElement=function(k,T){var I=this.createNode();this.expect("...");var Z=this.parsePattern(k,T);return this.finalize(I,new ee.RestElement(Z))},ie.prototype.parseArrayPattern=function(k,T){var I=this.createNode();this.expect("[");for(var Z=[];!this.match("]");)if(this.match(","))this.nextToken(),Z.push(null);else{if(this.match("...")){Z.push(this.parseBindingRestElement(k,T));break}Z.push(this.parsePatternWithDefault(k,T)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(I,new ee.ArrayPattern(Z))},ie.prototype.parsePropertyPattern=function(k,T){var ut,ht,I=this.createNode(),Z=!1,Ae=!1;if(3===this.lookahead.type){var yt=this.lookahead;ut=this.parseVariableIdentifier();var Zt=this.finalize(I,new ee.Identifier(yt.value));if(this.match("=")){k.push(yt),Ae=!0,this.nextToken();var Wt=this.parseAssignmentExpression();ht=this.finalize(this.startNode(yt),new ee.AssignmentPattern(Zt,Wt))}else this.match(":")?(this.expect(":"),ht=this.parsePatternWithDefault(k,T)):(k.push(yt),Ae=!0,ht=Zt)}else Z=this.match("["),ut=this.parseObjectPropertyKey(),this.expect(":"),ht=this.parsePatternWithDefault(k,T);return this.finalize(I,new ee.Property("init",ut,Z,ht,!1,Ae))},ie.prototype.parseObjectPattern=function(k,T){var I=this.createNode(),Z=[];for(this.expect("{");!this.match("}");)Z.push(this.parsePropertyPattern(k,T)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(I,new ee.ObjectPattern(Z))},ie.prototype.parsePattern=function(k,T){var I;return this.match("[")?I=this.parseArrayPattern(k,T):this.match("{")?I=this.parseObjectPattern(k,T):(this.matchKeyword("let")&&("const"===T||"let"===T)&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.LetInLexicalBinding),k.push(this.lookahead),I=this.parseVariableIdentifier(T)),I},ie.prototype.parsePatternWithDefault=function(k,T){var I=this.lookahead,Z=this.parsePattern(k,T);if(this.match("=")){this.nextToken();var Ae=this.context.allowYield;this.context.allowYield=!0;var Ue=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Ae,Z=this.finalize(this.startNode(I),new ee.AssignmentPattern(Z,Ue))}return Z},ie.prototype.parseVariableIdentifier=function(k){var T=this.createNode(),I=this.nextToken();return 4===I.type&&"yield"===I.value?this.context.strict?this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(I):3!==I.type?this.context.strict&&4===I.type&&this.scanner.isStrictModeReservedWord(I.value)?this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord):(this.context.strict||"let"!==I.value||"var"!==k)&&this.throwUnexpectedToken(I):(this.context.isModule||this.context.await)&&3===I.type&&"await"===I.value&&this.tolerateUnexpectedToken(I),this.finalize(T,new ee.Identifier(I.value))},ie.prototype.parseVariableDeclaration=function(k){var T=this.createNode(),Z=this.parsePattern([],"var");this.context.strict&&Z.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(Z.name)&&this.tolerateError(he.Messages.StrictVarName);var Ae=null;return this.match("=")?(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseAssignmentExpression)):Z.type!==we.Syntax.Identifier&&!k.inFor&&this.expect("="),this.finalize(T,new ee.VariableDeclarator(Z,Ae))},ie.prototype.parseVariableDeclarationList=function(k){var T={inFor:k.inFor},I=[];for(I.push(this.parseVariableDeclaration(T));this.match(",");)this.nextToken(),I.push(this.parseVariableDeclaration(T));return I},ie.prototype.parseVariableStatement=function(){var k=this.createNode();this.expectKeyword("var");var T=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(k,new ee.VariableDeclaration(T,"var"))},ie.prototype.parseEmptyStatement=function(){var k=this.createNode();return this.expect(";"),this.finalize(k,new ee.EmptyStatement)},ie.prototype.parseExpressionStatement=function(){var k=this.createNode(),T=this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ExpressionStatement(T))},ie.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(he.Messages.StrictFunction),this.parseStatement()},ie.prototype.parseIfStatement=function(){var T,k=this.createNode(),I=null;this.expectKeyword("if"),this.expect("(");var Z=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement)):(this.expect(")"),T=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),I=this.parseIfClause())),this.finalize(k,new ee.IfStatement(Z,T,I))},ie.prototype.parseDoWhileStatement=function(){var k=this.createNode();this.expectKeyword("do");var T=this.context.inIteration;this.context.inIteration=!0;var I=this.parseStatement();this.context.inIteration=T,this.expectKeyword("while"),this.expect("(");var Z=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(k,new ee.DoWhileStatement(I,Z))},ie.prototype.parseWhileStatement=function(){var T,k=this.createNode();this.expectKeyword("while"),this.expect("(");var I=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement);else{this.expect(")");var Z=this.context.inIteration;this.context.inIteration=!0,T=this.parseStatement(),this.context.inIteration=Z}return this.finalize(k,new ee.WhileStatement(I,T))},ie.prototype.parseForStatement=function(){var Ae,Ue,Cn,k=null,T=null,I=null,Z=!0,ut=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){k=this.createNode(),this.nextToken();var ht=this.context.allowIn;this.context.allowIn=!1;var yt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=ht,1===yt.length&&this.matchKeyword("in")){var Zt=yt[0];Zt.init&&(Zt.id.type===we.Syntax.ArrayPattern||Zt.id.type===we.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(he.Messages.ForInOfLoopInitializer,"for-in"),k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null}else 1===yt.length&&null===yt[0].init&&this.matchContextualKeyword("of")?(k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.nextToken(),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1):(k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){k=this.createNode();var Wt=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(ht=this.context.allowIn,this.context.allowIn=!1,yt=this.parseBindingList(Wt,{inFor:!0}),this.context.allowIn=ht,1===yt.length&&null===yt[0].init&&this.matchKeyword("in")?(k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null):1===yt.length&&null===yt[0].init&&this.matchContextualKeyword("of")?(k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)),this.nextToken(),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1):(this.consumeSemicolon(),k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)))):(k=this.finalize(k,new ee.Identifier(Wt)),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null)}else{var Qt=this.lookahead;if(ht=this.context.allowIn,this.context.allowIn=!1,k=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=ht,this.matchKeyword("in"))(!this.context.isAssignmentTarget||k.type===we.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(k),Ae=k,Ue=this.parseExpression(),k=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||k.type===we.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(k),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1;else{if(this.match(",")){for(var An=[k];this.match(",");)this.nextToken(),An.push(this.isolateCoverGrammar(this.parseAssignmentExpression));k=this.finalize(this.startNode(Qt),new ee.SequenceExpression(An))}this.expect(";")}}if(typeof Ae>"u"&&(this.match(";")||(T=this.parseExpression()),this.expect(";"),this.match(")")||(I=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Cn=this.finalize(this.createNode(),new ee.EmptyStatement);else{this.expect(")");var Sn=this.context.inIteration;this.context.inIteration=!0,Cn=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=Sn}return this.finalize(ut,typeof Ae>"u"?new ee.ForStatement(k,T,I,Cn):Z?new ee.ForInStatement(Ae,Ue,Cn):new ee.ForOfStatement(Ae,Ue,Cn))},ie.prototype.parseContinueStatement=function(){var k=this.createNode();this.expectKeyword("continue");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var I=this.parseVariableIdentifier();T=I,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+I.name)||this.throwError(he.Messages.UnknownLabel,I.name)}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&this.throwError(he.Messages.IllegalContinue),this.finalize(k,new ee.ContinueStatement(T))},ie.prototype.parseBreakStatement=function(){var k=this.createNode();this.expectKeyword("break");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var I=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+I.name)||this.throwError(he.Messages.UnknownLabel,I.name),T=I}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(he.Messages.IllegalBreak),this.finalize(k,new ee.BreakStatement(T))},ie.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(he.Messages.IllegalReturn);var k=this.createNode();this.expectKeyword("return");var I=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ReturnStatement(I))},ie.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(he.Messages.StrictModeWith);var T,k=this.createNode();this.expectKeyword("with"),this.expect("(");var I=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement)):(this.expect(")"),T=this.parseStatement()),this.finalize(k,new ee.WithStatement(I,T))},ie.prototype.parseSwitchCase=function(){var T,k=this.createNode();this.matchKeyword("default")?(this.nextToken(),T=null):(this.expectKeyword("case"),T=this.parseExpression()),this.expect(":");for(var I=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)I.push(this.parseStatementListItem());return this.finalize(k,new ee.SwitchCase(T,I))},ie.prototype.parseSwitchStatement=function(){var k=this.createNode();this.expectKeyword("switch"),this.expect("(");var T=this.parseExpression();this.expect(")");var I=this.context.inSwitch;this.context.inSwitch=!0;var Z=[],Ae=!1;for(this.expect("{");!this.match("}");){var Ue=this.parseSwitchCase();null===Ue.test&&(Ae&&this.throwError(he.Messages.MultipleDefaultsInSwitch),Ae=!0),Z.push(Ue)}return this.expect("}"),this.context.inSwitch=I,this.finalize(k,new ee.SwitchStatement(T,Z))},ie.prototype.parseLabelledStatement=function(){var I,k=this.createNode(),T=this.parseExpression();if(T.type===we.Syntax.Identifier&&this.match(":")){this.nextToken();var Z=T,Ae="$"+Z.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Ae)&&this.throwError(he.Messages.Redeclaration,"Label",Z.name),this.context.labelSet[Ae]=!0;var Ue=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Ue=this.parseClassDeclaration();else if(this.matchKeyword("function")){var ut=this.lookahead,ht=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(ut,he.Messages.StrictFunction):ht.generator&&this.tolerateUnexpectedToken(ut,he.Messages.GeneratorInLegacyContext),Ue=ht}else Ue=this.parseStatement();delete this.context.labelSet[Ae],I=new ee.LabeledStatement(Z,Ue)}else this.consumeSemicolon(),I=new ee.ExpressionStatement(T);return this.finalize(k,I)},ie.prototype.parseThrowStatement=function(){var k=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(he.Messages.NewlineAfterThrow);var T=this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ThrowStatement(T))},ie.prototype.parseCatchClause=function(){var k=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var T=[],I=this.parsePattern(T),Z={},Ae=0;Ae0&&this.tolerateError(he.Messages.BadGetterArity);var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,false))},ie.prototype.parseSetterMethod=function(){var k=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters();1!==Z.params.length?this.tolerateError(he.Messages.BadSetterArity):Z.params[0]instanceof ee.RestElement&&this.tolerateError(he.Messages.BadSetterRestParameter);var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,false))},ie.prototype.parseGeneratorMethod=function(){var k=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters();this.context.allowYield=!1;var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,!0))},ie.prototype.isStartOfExpression=function(){var k=!0,T=this.lookahead.value;switch(this.lookahead.type){case 7:k="["===T||"("===T||"{"===T||"+"===T||"-"===T||"!"===T||"~"===T||"++"===T||"--"===T||"/"===T||"/="===T;break;case 4:k="class"===T||"delete"===T||"function"===T||"let"===T||"new"===T||"super"===T||"this"===T||"typeof"===T||"void"===T||"yield"===T}return k},ie.prototype.parseYieldExpression=function(){var k=this.createNode();this.expectKeyword("yield");var T=null,I=!1;if(!this.hasLineTerminator){var Z=this.context.allowYield;this.context.allowYield=!1,(I=this.match("*"))?(this.nextToken(),T=this.parseAssignmentExpression()):this.isStartOfExpression()&&(T=this.parseAssignmentExpression()),this.context.allowYield=Z}return this.finalize(k,new ee.YieldExpression(T,I))},ie.prototype.parseClassElement=function(k){var T=this.lookahead,I=this.createNode(),Z="",Ae=null,Ue=null,ut=!1,ht=!1,yt=!1,Zt=!1;if(this.match("*"))this.nextToken();else if(ut=this.match("["),"static"===(Ae=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(T=this.lookahead,yt=!0,ut=this.match("["),this.match("*")?this.nextToken():Ae=this.parseObjectPropertyKey()),3===T.type&&!this.hasLineTerminator&&"async"===T.value){var Qt=this.lookahead.value;":"!==Qt&&"("!==Qt&&"*"!==Qt&&(Zt=!0,T=this.lookahead,Ae=this.parseObjectPropertyKey(),3===T.type&&"constructor"===T.value&&this.tolerateUnexpectedToken(T,he.Messages.ConstructorIsAsync))}var An=this.qualifiedPropertyName(this.lookahead);return 3===T.type?"get"===T.value&&An?(Z="get",ut=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Ue=this.parseGetterMethod()):"set"===T.value&&An&&(Z="set",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseSetterMethod()):7===T.type&&"*"===T.value&&An&&(Z="init",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseGeneratorMethod(),ht=!0),!Z&&Ae&&this.match("(")&&(Z="init",Ue=Zt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),ht=!0),Z||this.throwUnexpectedToken(this.lookahead),"init"===Z&&(Z="method"),ut||(yt&&this.isPropertyKey(Ae,"prototype")&&this.throwUnexpectedToken(T,he.Messages.StaticPrototype),!yt&&this.isPropertyKey(Ae,"constructor")&&(("method"!==Z||!ht||Ue&&Ue.generator)&&this.throwUnexpectedToken(T,he.Messages.ConstructorSpecialMethod),k.value?this.throwUnexpectedToken(T,he.Messages.DuplicateConstructor):k.value=!0,Z="constructor")),this.finalize(I,new ee.MethodDefinition(Ae,ut,Ue,Z,yt))},ie.prototype.parseClassElementList=function(){var k=[],T={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():k.push(this.parseClassElement(T));return this.expect("}"),k},ie.prototype.parseClassBody=function(){var k=this.createNode(),T=this.parseClassElementList();return this.finalize(k,new ee.ClassBody(T))},ie.prototype.parseClassDeclaration=function(k){var T=this.createNode(),I=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var Z=k&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Ae=null;this.matchKeyword("extends")&&(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ue=this.parseClassBody();return this.context.strict=I,this.finalize(T,new ee.ClassDeclaration(Z,Ae,Ue))},ie.prototype.parseClassExpression=function(){var k=this.createNode(),T=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var I=3===this.lookahead.type?this.parseVariableIdentifier():null,Z=null;this.matchKeyword("extends")&&(this.nextToken(),Z=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ae=this.parseClassBody();return this.context.strict=T,this.finalize(k,new ee.ClassExpression(I,Z,Ae))},ie.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var k=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(k,new ee.Module(T))},ie.prototype.parseScript=function(){for(var k=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(k,new ee.Script(T))},ie.prototype.parseModuleSpecifier=function(){var k=this.createNode();8!==this.lookahead.type&&this.throwError(he.Messages.InvalidModuleSpecifier);var T=this.nextToken(),I=this.getTokenRaw(T);return this.finalize(k,new ee.Literal(T.value,I))},ie.prototype.parseImportSpecifier=function(){var T,I,k=this.createNode();return 3===this.lookahead.type?(I=T=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),I=this.parseVariableIdentifier())):(I=T=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),I=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(k,new ee.ImportSpecifier(I,T))},ie.prototype.parseNamedImports=function(){this.expect("{");for(var k=[];!this.match("}");)k.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),k},ie.prototype.parseImportDefaultSpecifier=function(){var k=this.createNode(),T=this.parseIdentifierName();return this.finalize(k,new ee.ImportDefaultSpecifier(T))},ie.prototype.parseImportNamespaceSpecifier=function(){var k=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(he.Messages.NoAsAfterImportNamespace),this.nextToken();var T=this.parseIdentifierName();return this.finalize(k,new ee.ImportNamespaceSpecifier(T))},ie.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalImportDeclaration);var k=this.createNode();this.expectKeyword("import");var T,I=[];return 8===this.lookahead.type||(this.match("{")?I=I.concat(this.parseNamedImports()):this.match("*")?I.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(I.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?I.push(this.parseImportNamespaceSpecifier()):this.match("{")?I=I.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),T=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(k,new ee.ImportDeclaration(I,T))},ie.prototype.parseExportSpecifier=function(){var k=this.createNode(),T=this.parseIdentifierName(),I=T;return this.matchContextualKeyword("as")&&(this.nextToken(),I=this.parseIdentifierName()),this.finalize(k,new ee.ExportSpecifier(T,I))},ie.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalExportDeclaration);var T,k=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var I=this.parseFunctionDeclaration(!0);T=this.finalize(k,new ee.ExportDefaultDeclaration(I))}else this.matchKeyword("class")?(I=this.parseClassDeclaration(!0),T=this.finalize(k,new ee.ExportDefaultDeclaration(I))):this.matchContextualKeyword("async")?(I=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),T=this.finalize(k,new ee.ExportDefaultDeclaration(I))):(this.matchContextualKeyword("from")&&this.throwError(he.Messages.UnexpectedToken,this.lookahead.value),I=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),T=this.finalize(k,new ee.ExportDefaultDeclaration(I)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Ae=this.parseModuleSpecifier();this.consumeSemicolon(),T=this.finalize(k,new ee.ExportAllDeclaration(Ae))}else if(4===this.lookahead.type){switch(I=void 0,this.lookahead.value){case"let":case"const":I=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":I=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}T=this.finalize(k,new ee.ExportNamedDeclaration(I,[],null))}else if(this.matchAsyncFunction())I=this.parseFunctionDeclaration(),T=this.finalize(k,new ee.ExportNamedDeclaration(I,[],null));else{var Ue=[],ut=null,ht=!1;for(this.expect("{");!this.match("}");)ht=ht||this.matchKeyword("default"),Ue.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),ut=this.parseModuleSpecifier(),this.consumeSemicolon()):ht?this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),T=this.finalize(k,new ee.ExportNamedDeclaration(null,Ue,ut))}return T},ie}();ue.Parser=re},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.assert=function be(de,ye){if(!de)throw new Error("ASSERT: "+ye)}},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var be=function(){function de(){this.errors=[],this.tolerant=!1}return de.prototype.recordError=function(ye){this.errors.push(ye)},de.prototype.tolerate=function(ye){if(!this.tolerant)throw ye;this.recordError(ye)},de.prototype.constructError=function(ye,he){var ee=new Error(ye);try{throw ee}catch(Se){Object.create&&Object.defineProperty&&(ee=Object.create(Se),Object.defineProperty(ee,"column",{value:he}))}return ee},de.prototype.createError=function(ye,he,ee,Se){var se=this.constructError("Line "+he+": "+Se,ee);return se.index=ye,se.lineNumber=he,se.description=Se,se},de.prototype.throwError=function(ye,he,ee,Se){throw this.createError(ye,he,ee,Se)},de.prototype.tolerateError=function(ye,he,ee,Se){var we=this.createError(ye,he,ee,Se);if(!this.tolerant)throw we;this.recordError(we)},de}();ue.ErrorHandler=be},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(9),ye=be(4),he=be(11);function ee(se){return"0123456789abcdef".indexOf(se.toLowerCase())}function Se(se){return"01234567".indexOf(se)}var we=function(){function se(K,re){this.source=K,this.errorHandler=re,this.trackComment=!1,this.isModule=!1,this.length=K.length,this.index=0,this.lineNumber=K.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return se.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},se.prototype.restoreState=function(K){this.index=K.index,this.lineNumber=K.lineNumber,this.lineStart=K.lineStart},se.prototype.eof=function(){return this.index>=this.length},se.prototype.throwUnexpectedToken=function(K){return void 0===K&&(K=he.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,K)},se.prototype.tolerateUnexpectedToken=function(K){void 0===K&&(K=he.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,K)},se.prototype.skipSingleLineComment=function(K){var ie,k,re=[];for(this.trackComment&&(re=[],ie=this.index-K,k={start:{line:this.lineNumber,column:this.index-this.lineStart-K},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(++this.index,ye.Character.isLineTerminator(T))return this.trackComment&&(k.end={line:this.lineNumber,column:this.index-this.lineStart-1},re.push({multiLine:!1,slice:[ie+K,this.index-1],range:[ie,this.index-1],loc:k})),13===T&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,re}return this.trackComment&&(k.end={line:this.lineNumber,column:this.index-this.lineStart},re.push({multiLine:!1,slice:[ie+K,this.index],range:[ie,this.index],loc:k})),re},se.prototype.skipMultiLineComment=function(){var re,ie,K=[];for(this.trackComment&&(K=[],re=this.index-2,ie={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var k=this.source.charCodeAt(this.index);if(ye.Character.isLineTerminator(k))13===k&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===k){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(ie.end={line:this.lineNumber,column:this.index-this.lineStart},K.push({multiLine:!0,slice:[re+2,this.index-2],range:[re,this.index],loc:ie})),K;++this.index}else++this.index}return this.trackComment&&(ie.end={line:this.lineNumber,column:this.index-this.lineStart},K.push({multiLine:!0,slice:[re+2,this.index],range:[re,this.index],loc:ie})),this.tolerateUnexpectedToken(),K},se.prototype.scanComments=function(){var K;this.trackComment&&(K=[]);for(var re=0===this.index;!this.eof();){var ie=this.source.charCodeAt(this.index);if(ye.Character.isWhiteSpace(ie))++this.index;else if(ye.Character.isLineTerminator(ie))++this.index,13===ie&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,re=!0;else if(47===ie)if(47===(ie=this.source.charCodeAt(this.index+1))){this.index+=2;var k=this.skipSingleLineComment(2);this.trackComment&&(K=K.concat(k)),re=!0}else{if(42!==ie)break;this.index+=2,k=this.skipMultiLineComment(),this.trackComment&&(K=K.concat(k))}else if(re&&45===ie){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,k=this.skipSingleLineComment(3),this.trackComment&&(K=K.concat(k))}else{if(60!==ie||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,k=this.skipSingleLineComment(4),this.trackComment&&(K=K.concat(k))}}return K},se.prototype.isFutureReservedWord=function(K){switch(K){case"enum":case"export":case"import":case"super":return!0;default:return!1}},se.prototype.isStrictModeReservedWord=function(K){switch(K){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},se.prototype.isRestrictedWord=function(K){return"eval"===K||"arguments"===K},se.prototype.isKeyword=function(K){switch(K.length){case 2:return"if"===K||"in"===K||"do"===K;case 3:return"var"===K||"for"===K||"new"===K||"try"===K||"let"===K;case 4:return"this"===K||"else"===K||"case"===K||"void"===K||"with"===K||"enum"===K;case 5:return"while"===K||"break"===K||"catch"===K||"throw"===K||"const"===K||"yield"===K||"class"===K||"super"===K;case 6:return"return"===K||"typeof"===K||"delete"===K||"switch"===K||"export"===K||"import"===K;case 7:return"default"===K||"finally"===K||"extends"===K;case 8:return"function"===K||"continue"===K||"debugger"===K;case 10:return"instanceof"===K;default:return!1}},se.prototype.codePointAt=function(K){var re=this.source.charCodeAt(K);if(re>=55296&&re<=56319){var ie=this.source.charCodeAt(K+1);ie>=56320&&ie<=57343&&(re=1024*(re-55296)+ie-56320+65536)}return re},se.prototype.scanHexEscape=function(K){for(var re="u"===K?4:2,ie=0,k=0;k1114111||"}"!==K)&&this.throwUnexpectedToken(),ye.Character.fromCodePoint(re)},se.prototype.getIdentifier=function(){for(var K=this.index++;!this.eof();){var re=this.source.charCodeAt(this.index);if(92===re)return this.index=K,this.getComplexIdentifier();if(re>=55296&&re<57343)return this.index=K,this.getComplexIdentifier();if(!ye.Character.isIdentifierPart(re))break;++this.index}return this.source.slice(K,this.index)},se.prototype.getComplexIdentifier=function(){var ie,K=this.codePointAt(this.index),re=ye.Character.fromCodePoint(K);for(this.index+=re.length,92===K&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ie=this.scanUnicodeCodePointEscape()):(null===(ie=this.scanHexEscape("u"))||"\\"===ie||!ye.Character.isIdentifierStart(ie.charCodeAt(0)))&&this.throwUnexpectedToken(),re=ie);!this.eof()&&(K=this.codePointAt(this.index),ye.Character.isIdentifierPart(K));)re+=ie=ye.Character.fromCodePoint(K),this.index+=ie.length,92===K&&(re=re.substr(0,re.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ie=this.scanUnicodeCodePointEscape()):(null===(ie=this.scanHexEscape("u"))||"\\"===ie||!ye.Character.isIdentifierPart(ie.charCodeAt(0)))&&this.throwUnexpectedToken(),re+=ie);return re},se.prototype.octalToDecimal=function(K){var re="0"!==K,ie=Se(K);return!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(re=!0,ie=8*ie+Se(this.source[this.index++]),"0123".indexOf(K)>=0&&!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ie=8*ie+Se(this.source[this.index++]))),{code:ie,octal:re}},se.prototype.scanIdentifier=function(){var K,re=this.index,ie=92===this.source.charCodeAt(re)?this.getComplexIdentifier():this.getIdentifier();if(3!=(K=1===ie.length?3:this.isKeyword(ie)?4:"null"===ie?5:"true"===ie||"false"===ie?1:3)&&re+ie.length!==this.index){var k=this.index;this.index=re,this.tolerateUnexpectedToken(he.Messages.InvalidEscapedReservedWord),this.index=k}return{type:K,value:ie,lineNumber:this.lineNumber,lineStart:this.lineStart,start:re,end:this.index}},se.prototype.scanPunctuator=function(){var K=this.index,re=this.source[this.index];switch(re){case"(":case"{":"{"===re&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,re="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(re=this.source.substr(this.index,4))?this.index+=4:"==="===(re=re.substr(0,3))||"!=="===re||">>>"===re||"<<="===re||">>="===re||"**="===re?this.index+=3:"&&"===(re=re.substr(0,2))||"||"===re||"=="===re||"!="===re||"+="===re||"-="===re||"*="===re||"/="===re||"++"===re||"--"===re||"<<"===re||">>"===re||"&="===re||"|="===re||"^="===re||"%="===re||"<="===re||">="===re||"=>"===re||"**"===re?this.index+=2:"<>=!+-*%&|^/".indexOf(re=this.source[this.index])>=0&&++this.index}return this.index===K&&this.throwUnexpectedToken(),{type:7,value:re,lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanHexLiteral=function(K){for(var re="";!this.eof()&&ye.Character.isHexDigit(this.source.charCodeAt(this.index));)re+=this.source[this.index++];return 0===re.length&&this.throwUnexpectedToken(),ye.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+re,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanBinaryLiteral=function(K){for(var ie,re="";!this.eof()&&("0"===(ie=this.source[this.index])||"1"===ie);)re+=this.source[this.index++];return 0===re.length&&this.throwUnexpectedToken(),this.eof()||(ie=this.source.charCodeAt(this.index),(ye.Character.isIdentifierStart(ie)||ye.Character.isDecimalDigit(ie))&&this.throwUnexpectedToken()),{type:6,value:parseInt(re,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanOctalLiteral=function(K,re){var ie="",k=!1;for(ye.Character.isOctalDigit(K.charCodeAt(0))?(k=!0,ie="0"+this.source[this.index++]):++this.index;!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index));)ie+=this.source[this.index++];return!k&&0===ie.length&&this.throwUnexpectedToken(),(ye.Character.isIdentifierStart(this.source.charCodeAt(this.index))||ye.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(ie,8),octal:k,lineNumber:this.lineNumber,lineStart:this.lineStart,start:re,end:this.index}},se.prototype.isImplicitOctalLiteral=function(){for(var K=this.index+1;K=0&&(k=k.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(I,Z,Ae){var Ue=parseInt(Z||Ae,16);return Ue>1114111&&T.throwUnexpectedToken(he.Messages.InvalidRegExp),Ue<=65535?String.fromCharCode(Ue):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(k)}catch{this.throwUnexpectedToken(he.Messages.InvalidRegExp)}try{return new RegExp(K,re)}catch{return null}},se.prototype.scanRegExpBody=function(){var K=this.source[this.index];de.assert("/"===K,"Regular expression literal must start with a slash");for(var re=this.source[this.index++],ie=!1,k=!1;!this.eof();)if(re+=K=this.source[this.index++],"\\"===K)K=this.source[this.index++],ye.Character.isLineTerminator(K.charCodeAt(0))&&this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),re+=K;else if(ye.Character.isLineTerminator(K.charCodeAt(0)))this.throwUnexpectedToken(he.Messages.UnterminatedRegExp);else if(ie)"]"===K&&(ie=!1);else{if("/"===K){k=!0;break}"["===K&&(ie=!0)}return k||this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),re.substr(1,re.length-2)},se.prototype.scanRegExpFlags=function(){for(var re="";!this.eof();){var ie=this.source[this.index];if(!ye.Character.isIdentifierPart(ie.charCodeAt(0)))break;if(++this.index,"\\"!==ie||this.eof())re+=ie;else if("u"===(ie=this.source[this.index])){++this.index;var k=this.index,T=this.scanHexEscape("u");if(null!==T)for(re+=T;k=55296&&K<57343&&ye.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},se}();ue.Scanner=we},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.TokenName={},ue.TokenName[1]="Boolean",ue.TokenName[2]="",ue.TokenName[3]="Identifier",ue.TokenName[4]="Keyword",ue.TokenName[5]="Null",ue.TokenName[6]="Numeric",ue.TokenName[7]="Punctuator",ue.TokenName[8]="String",ue.TokenName[9]="RegularExpression",ue.TokenName[10]="Template"},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(10),ye=be(12),he=be(13),ee=function(){function we(){this.values=[],this.curly=this.paren=-1}return we.prototype.beforeFunctionExpression=function(se){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(se)>=0},we.prototype.isRegexStart=function(){var se=this.values[this.values.length-1],K=null!==se;switch(se){case"this":case"]":K=!1;break;case")":var re=this.values[this.paren-1];K="if"===re||"while"===re||"for"===re||"with"===re;break;case"}":if(K=!1,"function"===this.values[this.curly-3])K=!!(ie=this.values[this.curly-4])&&!this.beforeFunctionExpression(ie);else if("function"===this.values[this.curly-4]){var ie;K=!(ie=this.values[this.curly-5])||!this.beforeFunctionExpression(ie)}}return K},we.prototype.push=function(se){7===se.type||4===se.type?("{"===se.value?this.curly=this.values.length:"("===se.value&&(this.paren=this.values.length),this.values.push(se.value)):this.values.push(null)},we}(),Se=function(){function we(se,K){this.errorHandler=new de.ErrorHandler,this.errorHandler.tolerant=!!K&&"boolean"==typeof K.tolerant&&K.tolerant,this.scanner=new ye.Scanner(se,this.errorHandler),this.scanner.trackComment=!!K&&"boolean"==typeof K.comment&&K.comment,this.trackRange=!!K&&"boolean"==typeof K.range&&K.range,this.trackLoc=!!K&&"boolean"==typeof K.loc&&K.loc,this.buffer=[],this.reader=new ee}return we.prototype.errors=function(){return this.errorHandler.errors},we.prototype.getNextToken=function(){if(0===this.buffer.length){var se=this.scanner.scanComments();if(this.scanner.trackComment)for(var K=0;K=ie.status}function Se(re){try{re.dispatchEvent(new MouseEvent("click"))}catch{var ie=document.createEvent("MouseEvents");ie.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),re.dispatchEvent(ie)}}var we="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,se=we.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),K=we.saveAs||("object"!=typeof window||window!==we?function(){}:"download"in HTMLAnchorElement.prototype&&!se?function(re,ie,k){var T=we.URL||we.webkitURL,I=document.createElement("a");I.download=ie=ie||re.name||"download",I.rel="noopener","string"==typeof re?(I.href=re,I.origin===location.origin?Se(I):ee(I.href)?he(re,ie,k):Se(I,I.target="_blank")):(I.href=T.createObjectURL(re),setTimeout(function(){T.revokeObjectURL(I.href)},4e4),setTimeout(function(){Se(I)},0))}:"msSaveOrOpenBlob"in navigator?function(re,ie,k){if(ie=ie||re.name||"download","string"!=typeof re)navigator.msSaveOrOpenBlob(function ye(re,ie){return typeof ie>"u"?ie={autoBom:!1}:"object"!=typeof ie&&(console.warn("Deprecated: Expected third argument to be a object"),ie={autoBom:!ie}),ie.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(re.type)?new Blob(["\ufeff",re],{type:re.type}):re}(re,k),ie);else if(ee(re))he(re,ie,k);else{var T=document.createElement("a");T.href=re,T.target="_blank",setTimeout(function(){Se(T)})}}:function(re,ie,k,T){if((T=T||open("","_blank"))&&(T.document.title=T.document.body.innerText="downloading..."),"string"==typeof re)return he(re,ie,k);var I="application/octet-stream"===re.type,Z=/constructor/i.test(we.HTMLElement)||we.safari,Ae=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ae||I&&Z||se)&&typeof FileReader<"u"){var Ue=new FileReader;Ue.onloadend=function(){var yt=Ue.result;yt=Ae?yt:yt.replace(/^data:[^;]*;/,"data:attachment/file;"),T?T.location.href=yt:location=yt,T=null},Ue.readAsDataURL(re)}else{var ut=we.URL||we.webkitURL,ht=ut.createObjectURL(re);T?T.location=ht:location.href=ht,T=null,setTimeout(function(){ut.revokeObjectURL(ht)},4e4)}});we.saveAs=K.saveAs=K,Et.exports=K})?ue.apply(Xe,[]):ue)&&(Et.exports=de)},8461:(Et,Xe)=>{Xe.read=function(ue,be,de,ye,he){var ee,Se,we=8*he-ye-1,se=(1<>1,re=-7,ie=de?he-1:0,k=de?-1:1,T=ue[be+ie];for(ie+=k,ee=T&(1<<-re)-1,T>>=-re,re+=we;re>0;ee=256*ee+ue[be+ie],ie+=k,re-=8);for(Se=ee&(1<<-re)-1,ee>>=-re,re+=ye;re>0;Se=256*Se+ue[be+ie],ie+=k,re-=8);if(0===ee)ee=1-K;else{if(ee===se)return Se?NaN:1/0*(T?-1:1);Se+=Math.pow(2,ye),ee-=K}return(T?-1:1)*Se*Math.pow(2,ee-ye)},Xe.write=function(ue,be,de,ye,he,ee){var Se,we,se,K=8*ee-he-1,re=(1<>1,k=23===he?Math.pow(2,-24)-Math.pow(2,-77):0,T=ye?0:ee-1,I=ye?1:-1,Z=be<0||0===be&&1/be<0?1:0;for(be=Math.abs(be),isNaN(be)||be===1/0?(we=isNaN(be)?1:0,Se=re):(Se=Math.floor(Math.log(be)/Math.LN2),be*(se=Math.pow(2,-Se))<1&&(Se--,se*=2),(be+=Se+ie>=1?k/se:k*Math.pow(2,1-ie))*se>=2&&(Se++,se/=2),Se+ie>=re?(we=0,Se=re):Se+ie>=1?(we=(be*se-1)*Math.pow(2,he),Se+=ie):(we=be*Math.pow(2,ie-1)*Math.pow(2,he),Se=0));he>=8;ue[de+T]=255&we,T+=I,we/=256,he-=8);for(Se=Se<0;ue[de+T]=255&Se,T+=I,Se/=256,K-=8);ue[de+T-I]|=128*Z}},1870:(Et,Xe,ue)=>{"use strict";var be=ue(5133);Et.exports=be},5133:(Et,Xe,ue)=>{"use strict";var be=ue(7840),de=ue(34);function ye(he){return function(){throw new Error("Function "+he+" is deprecated and cannot be used.")}}Et.exports.Type=ue(7647),Et.exports.Schema=ue(372),Et.exports.FAILSAFE_SCHEMA=ue(8746),Et.exports.JSON_SCHEMA=ue(7147),Et.exports.CORE_SCHEMA=ue(3192),Et.exports.DEFAULT_SAFE_SCHEMA=ue(3031),Et.exports.DEFAULT_FULL_SCHEMA=ue(7094),Et.exports.load=be.load,Et.exports.loadAll=be.loadAll,Et.exports.safeLoad=be.safeLoad,Et.exports.safeLoadAll=be.safeLoadAll,Et.exports.dump=de.dump,Et.exports.safeDump=de.safeDump,Et.exports.YAMLException=ue(314),Et.exports.MINIMAL_SCHEMA=ue(8746),Et.exports.SAFE_SCHEMA=ue(3031),Et.exports.DEFAULT_SCHEMA=ue(7094),Et.exports.scan=ye("scan"),Et.exports.parse=ye("parse"),Et.exports.compose=ye("compose"),Et.exports.addConstructor=ye("addConstructor")},997:Et=>{"use strict";function Xe(ee){return typeof ee>"u"||null===ee}Et.exports.isNothing=Xe,Et.exports.isObject=function ue(ee){return"object"==typeof ee&&null!==ee},Et.exports.toArray=function be(ee){return Array.isArray(ee)?ee:Xe(ee)?[]:[ee]},Et.exports.repeat=function ye(ee,Se){var se,we="";for(se=0;se{"use strict";var be=ue(997),de=ue(314),ye=ue(7094),he=ue(3031),ee=Object.prototype.toString,Se=Object.prototype.hasOwnProperty,we=9,se=10,K=13,re=32,ie=33,k=34,T=35,I=37,Z=38,Ae=39,Ue=42,ut=44,ht=45,yt=58,Zt=61,Wt=62,Qt=63,An=64,Cn=91,Sn=93,mi=96,fn=123,qn=124,fi=125,$t={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},ta=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Zn(_e){var xt,Pt,tn;if(xt=_e.toString(16).toUpperCase(),_e<=255)Pt="x",tn=2;else if(_e<=65535)Pt="u",tn=4;else{if(!(_e<=4294967295))throw new de("code point within a string may not be greater than 0xFFFFFFFF");Pt="U",tn=8}return"\\"+Pt+be.repeat("0",tn-xt.length)+xt}function yl(_e){this.schema=_e.schema||ye,this.indent=Math.max(1,_e.indent||2),this.noArrayIndent=_e.noArrayIndent||!1,this.skipInvalid=_e.skipInvalid||!1,this.flowLevel=be.isNothing(_e.flowLevel)?-1:_e.flowLevel,this.styleMap=function tl(_e,xt){var Pt,tn,Kt,Lt,pn,Jt,Je;if(null===xt)return{};for(Pt={},Kt=0,Lt=(tn=Object.keys(xt)).length;Kt0?_e.charCodeAt(Lt-1):null,Br=Br&&na(pn,Jt)}else{for(Lt=0;Lt<_e.length;Lt++){if((pn=_e.charCodeAt(Lt))===se)Je=!0,St&&(Qe=Qe||Lt-kn-1>tn&&" "!==_e[kn+1],kn=Lt);else if(!Ss(pn))return il;Jt=Lt>0?_e.charCodeAt(Lt-1):null,Br=Br&&na(pn,Jt)}Qe=Qe||St&&Lt-kn-1>tn&&" "!==_e[kn+1]}return Je||Qe?Pt>9&&Ls(_e)?il:Qe?Cu:Vl:Br&&!Kt(_e)?ds:ia}(xt,tn||_e.flowLevel>-1&&Pt>=_e.flowLevel,_e.indent,Lt,function Jt(Je){return function Kr(_e,xt){var Pt,tn;for(Pt=0,tn=_e.implicitTypes.length;Pt"+Hl(xt,_e.indent)+Ne(cc(function Y(_e,xt){for(var Lt,pn,Pt=/(\n+)([^\n]*)/g,tn=(Qe=void 0,Qe=_e.indexOf("\n"),Pt.lastIndex=Qe=-1!==Qe?Qe:_e.length,ne(_e.slice(0,Qe),xt)),Kt="\n"===_e[0]||" "===_e[0];pn=Pt.exec(_e);){var Je=pn[2];Lt=" "===Je[0],tn+=pn[1]+(Kt||Lt||""===Je?"":"\n")+ne(Je,xt),Kt=Lt}var Qe;return tn}(xt,Lt),Kt));case il:return'"'+function Le(_e){for(var Pt,tn,Kt,xt="",Lt=0;Lt<_e.length;Lt++)(Pt=_e.charCodeAt(Lt))>=55296&&Pt<=56319&&(tn=_e.charCodeAt(Lt+1))>=56320&&tn<=57343?(xt+=Zn(1024*(Pt-55296)+tn-56320+65536),Lt++):xt+=!(Kt=$t[Pt])&&Ss(Pt)?_e[Lt]:Kt||Zn(Pt);return xt}(xt)+'"';default:throw new de("impossible error: invalid scalar style")}}()}function Hl(_e,xt){var Pt=Ls(_e)?String(xt):"",tn="\n"===_e[_e.length-1];return Pt+(!tn||"\n"!==_e[_e.length-2]&&"\n"!==_e?tn?"":"-":"+")+"\n"}function Ne(_e){return"\n"===_e[_e.length-1]?_e.slice(0,-1):_e}function ne(_e,xt){if(""===_e||" "===_e[0])return _e;for(var tn,Lt,Pt=/ [^ ]/g,Kt=0,pn=0,Jt=0,Je="";tn=Pt.exec(_e);)(Jt=tn.index)-Kt>xt&&(Je+="\n"+_e.slice(Kt,Lt=pn>Kt?pn:Jt),Kt=Lt+1),pn=Jt;return Je+="\n",(Je+=_e.length-Kt>xt&&pn>Kt?_e.slice(Kt,pn)+"\n"+_e.slice(pn+1):_e.slice(Kt)).slice(1)}function M(_e,xt,Pt){var tn,Kt,Lt,pn,Jt,Je;for(Lt=0,pn=(Kt=Pt?_e.explicitTypes:_e.implicitTypes).length;Lt tag resolver accepts not "'+Je+'" style');tn=Jt.represent[Je](xt,Je)}_e.dump=tn}return!0}return!1}function at(_e,xt,Pt,tn,Kt,Lt){_e.tag=null,_e.dump=Pt,M(_e,Pt,!1)||M(_e,Pt,!0);var pn=ee.call(_e.dump);tn&&(tn=_e.flowLevel<0||_e.flowLevel>xt);var Je,Qe,Jt="[object Object]"===pn||"[object Array]"===pn;if(Jt&&(Qe=-1!==(Je=_e.duplicates.indexOf(Pt))),(null!==_e.tag&&"?"!==_e.tag||Qe||2!==_e.indent&&xt>0)&&(Kt=!1),Qe&&_e.usedDuplicates[Je])_e.dump="*ref_"+Je;else{if(Jt&&Qe&&!_e.usedDuplicates[Je]&&(_e.usedDuplicates[Je]=!0),"[object Object]"===pn)tn&&0!==Object.keys(_e.dump).length?(function ar(_e,xt,Pt,tn){var Jt,Je,Qe,St,kn,Br,Kt="",Lt=_e.tag,pn=Object.keys(Pt);if(!0===_e.sortKeys)pn.sort();else if("function"==typeof _e.sortKeys)pn.sort(_e.sortKeys);else if(_e.sortKeys)throw new de("sortKeys must be a boolean or a function");for(Jt=0,Je=pn.length;Jt1024)&&(_e.dump&&se===_e.dump.charCodeAt(0)?Br+="?":Br+="? "),Br+=_e.dump,kn&&(Br+=uo(_e,xt)),at(_e,xt+1,St,!0,kn)&&(_e.dump&&se===_e.dump.charCodeAt(0)?Br+=":":Br+=": ",Kt+=Br+=_e.dump));_e.tag=Lt,_e.dump=Kt||"{}"}(_e,xt,_e.dump,Kt),Qe&&(_e.dump="&ref_"+Je+_e.dump)):(function nn(_e,xt,Pt){var pn,Jt,Je,Qe,St,tn="",Kt=_e.tag,Lt=Object.keys(Pt);for(pn=0,Jt=Lt.length;pn1024&&(St+="? "),St+=_e.dump+(_e.condenseFlow?'"':"")+":"+(_e.condenseFlow?"":" "),at(_e,xt,Qe,!1,!1)&&(tn+=St+=_e.dump));_e.tag=Kt,_e.dump="{"+tn+"}"}(_e,xt,_e.dump),Qe&&(_e.dump="&ref_"+Je+" "+_e.dump));else if("[object Array]"===pn){var St=_e.noArrayIndent&&xt>0?xt-1:xt;tn&&0!==_e.dump.length?(function qt(_e,xt,Pt,tn){var pn,Jt,Kt="",Lt=_e.tag;for(pn=0,Jt=Pt.length;pn "+_e.dump)}return!0}function Mt(_e,xt){var Kt,Lt,Pt=[],tn=[];for(Yt(_e,Pt,tn),Kt=0,Lt=tn.length;Kt{"use strict";function Xe(ue,be){Error.call(this),this.name="YAMLException",this.reason=ue,this.mark=be,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Xe.prototype=Object.create(Error.prototype)).constructor=Xe,Xe.prototype.toString=function(be){var de=this.name+": ";return de+=this.reason||"(unknown reason)",!be&&this.mark&&(de+=" "+this.mark.toString()),de},Et.exports=Xe},7840:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(314),ye=ue(48),he=ue(3031),ee=ue(7094),Se=Object.prototype.hasOwnProperty,we=1,se=2,K=3,re=4,ie=1,k=2,T=3,I=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Z=/[\x85\u2028\u2029]/,Ae=/[,\[\]\{\}]/,Ue=/^(?:!|!!|![a-z\-]+!)$/i,ut=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ht(M){return Object.prototype.toString.call(M)}function yt(M){return 10===M||13===M}function Zt(M){return 9===M||32===M}function Wt(M){return 9===M||32===M||10===M||13===M}function Qt(M){return 44===M||91===M||93===M||123===M||125===M}function An(M){var at;return 48<=M&&M<=57?M-48:97<=(at=32|M)&&at<=102?at-97+10:-1}function Cn(M){return 120===M?2:117===M?4:85===M?8:0}function Sn(M){return 48<=M&&M<=57?M-48:-1}function mi(M){return 48===M?"\0":97===M?"\x07":98===M?"\b":116===M||9===M?"\t":110===M?"\n":118===M?"\v":102===M?"\f":114===M?"\r":101===M?"\x1b":32===M?" ":34===M?'"':47===M?"/":92===M?"\\":78===M?"\x85":95===M?"\xa0":76===M?"\u2028":80===M?"\u2029":""}function fn(M){return M<=65535?String.fromCharCode(M):String.fromCharCode(55296+(M-65536>>10),56320+(M-65536&1023))}for(var qn=new Array(256),fi=new Array(256),$t=0;$t<256;$t++)qn[$t]=mi($t)?1:0,fi[$t]=mi($t);function ta(M,at){this.input=M,this.filename=at.filename||null,this.schema=at.schema||ee,this.onWarning=at.onWarning||null,this.legacy=at.legacy||!1,this.json=at.json||!1,this.listener=at.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=M.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function tl(M,at){return new de(at,new ye(M.filename,M.input,M.position,M.line,M.position-M.lineStart))}function Zn(M,at){throw tl(M,at)}function yl(M,at){M.onWarning&&M.onWarning.call(null,tl(M,at))}var cc={YAML:function(at,Mt,Yt){var zt,vn,_e;null!==at.version&&Zn(at,"duplication of %YAML directive"),1!==Yt.length&&Zn(at,"YAML directive accepts exactly one argument"),null===(zt=/^([0-9]+)\.([0-9]+)$/.exec(Yt[0]))&&Zn(at,"ill-formed argument of the YAML directive"),vn=parseInt(zt[1],10),_e=parseInt(zt[2],10),1!==vn&&Zn(at,"unacceptable YAML version of the document"),at.version=Yt[0],at.checkLineBreaks=_e<2,1!==_e&&2!==_e&&yl(at,"unsupported YAML version of the document")},TAG:function(at,Mt,Yt){var zt,vn;2!==Yt.length&&Zn(at,"TAG directive accepts exactly two arguments"),vn=Yt[1],Ue.test(zt=Yt[0])||Zn(at,"ill-formed tag handle (first argument) of the TAG directive"),Se.call(at.tagMap,zt)&&Zn(at,'there is a previously declared suffix for "'+zt+'" tag handle'),ut.test(vn)||Zn(at,"ill-formed tag prefix (second argument) of the TAG directive"),at.tagMap[zt]=vn}};function uo(M,at,Mt,Yt){var zt,vn,_e,xt;if(at1&&(M.result+=be.repeat("\n",at-1))}function il(M,at){var Mt,Pt,Yt=M.tag,zt=M.anchor,vn=[],xt=!1;for(null!==M.anchor&&(M.anchorMap[M.anchor]=vn),Pt=M.input.charCodeAt(M.position);0!==Pt&&45===Pt&&Wt(M.input.charCodeAt(M.position+1));)if(xt=!0,M.position++,Wr(M,!0,-1)&&M.lineIndent<=at)vn.push(null),Pt=M.input.charCodeAt(M.position);else if(Mt=M.line,Y(M,at,K,!1,!0),vn.push(M.result),Wr(M,!0,-1),Pt=M.input.charCodeAt(M.position),(M.line===Mt||M.lineIndent>at)&&0!==Pt)Zn(M,"bad indentation of a sequence entry");else if(M.lineIndentat?Pt=1:M.lineIndent===at?Pt=0:M.lineIndentat?Pt=1:M.lineIndent===at?Pt=0:M.lineIndentat)&&(Y(M,at,re,!0,zt)&&(Je?pn=M.result:Jt=M.result),Je||(Gr(M,tn,Kt,Lt,pn,Jt,vn,_e),Lt=pn=Jt=null),Wr(M,!0,-1),St=M.input.charCodeAt(M.position)),M.lineIndent>at&&0!==St)Zn(M,"bad indentation of a mapping entry");else if(M.lineIndent=0))break;0===Kt?Zn(M,"bad explicit indentation width of a block scalar; it cannot be less than one"):_e?Zn(M,"repeat of an indentation width identifier"):(xt=at+Kt-1,_e=!0)}if(Zt(Lt)){do{Lt=M.input.charCodeAt(++M.position)}while(Zt(Lt));if(35===Lt)do{Lt=M.input.charCodeAt(++M.position)}while(!yt(Lt)&&0!==Lt)}for(;0!==Lt;){for(Ss(M),M.lineIndent=0,Lt=M.input.charCodeAt(M.position);(!_e||M.lineIndentxt&&(xt=M.lineIndent),yt(Lt))Pt++;else{if(M.lineIndent0){for(zt=_e,vn=0;zt>0;zt--)(_e=An(xt=M.input.charCodeAt(++M.position)))>=0?vn=(vn<<4)+_e:Zn(M,"expected hexadecimal character");M.result+=fn(vn),M.position++}else Zn(M,"unknown escape sequence");Mt=Yt=M.position}else yt(xt)?(uo(M,Mt,Yt,!0),nl(M,Wr(M,!1,at)),Mt=Yt=M.position):M.position===M.lineStart&&na(M)?Zn(M,"unexpected end of the document within a double quoted scalar"):(M.position++,Yt=M.position)}Zn(M,"unexpected end of the stream within a double quoted scalar")}(M,Je)?Kt=!0:function Ne(M){var at,Mt,Yt;if(42!==(Yt=M.input.charCodeAt(M.position)))return!1;for(Yt=M.input.charCodeAt(++M.position),at=M.position;0!==Yt&&!Wt(Yt)&&!Qt(Yt);)Yt=M.input.charCodeAt(++M.position);return M.position===at&&Zn(M,"name of an alias node must contain at least one character"),Mt=M.input.slice(at,M.position),Se.call(M.anchorMap,Mt)||Zn(M,'unidentified alias "'+Mt+'"'),M.result=M.anchorMap[Mt],Wr(M,!0,-1),!0}(M)?(Kt=!0,(null!==M.tag||null!==M.anchor)&&Zn(M,"alias node should not have any properties")):function Ls(M,at,Mt){var zt,vn,_e,xt,Pt,tn,Kt,Jt,Lt=M.kind,pn=M.result;if(Wt(Jt=M.input.charCodeAt(M.position))||Qt(Jt)||35===Jt||38===Jt||42===Jt||33===Jt||124===Jt||62===Jt||39===Jt||34===Jt||37===Jt||64===Jt||96===Jt||(63===Jt||45===Jt)&&(Wt(zt=M.input.charCodeAt(M.position+1))||Mt&&Qt(zt)))return!1;for(M.kind="scalar",M.result="",vn=_e=M.position,xt=!1;0!==Jt;){if(58===Jt){if(Wt(zt=M.input.charCodeAt(M.position+1))||Mt&&Qt(zt))break}else if(35===Jt){if(Wt(M.input.charCodeAt(M.position-1)))break}else{if(M.position===M.lineStart&&na(M)||Mt&&Qt(Jt))break;if(yt(Jt)){if(Pt=M.line,tn=M.lineStart,Kt=M.lineIndent,Wr(M,!1,-1),M.lineIndent>=at){xt=!0,Jt=M.input.charCodeAt(M.position);continue}M.position=_e,M.line=Pt,M.lineStart=tn,M.lineIndent=Kt;break}}xt&&(uo(M,vn,_e,!1),nl(M,M.line-Pt),vn=_e=M.position,xt=!1),Zt(Jt)||(_e=M.position+1),Jt=M.input.charCodeAt(++M.position)}return uo(M,vn,_e,!1),!!M.result||(M.kind=Lt,M.result=pn,!1)}(M,Je,we===Mt)&&(Kt=!0,null===M.tag&&(M.tag="?")),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):0===Pt&&(Kt=xt&&il(M,Qe))),null!==M.tag&&"!"!==M.tag)if("?"===M.tag){for(null!==M.result&&"scalar"!==M.kind&&Zn(M,'unacceptable node kind for ! tag; it should be "scalar", not "'+M.kind+'"'),Lt=0,pn=M.implicitTypes.length;Lt tag; it should be "'+Jt.kind+'", not "'+M.kind+'"'),Jt.resolve(M.result)?(M.result=Jt.construct(M.result),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):Zn(M,"cannot resolve a node with !<"+M.tag+"> explicit tag")):Zn(M,"unknown tag !<"+M.tag+">");return null!==M.listener&&M.listener("close",M),null!==M.tag||null!==M.anchor||Kt}function ne(M){var Mt,Yt,zt,_e,at=M.position,vn=!1;for(M.version=null,M.checkLineBreaks=M.legacy,M.tagMap={},M.anchorMap={};0!==(_e=M.input.charCodeAt(M.position))&&(Wr(M,!0,-1),_e=M.input.charCodeAt(M.position),!(M.lineIndent>0||37!==_e));){for(vn=!0,_e=M.input.charCodeAt(++M.position),Mt=M.position;0!==_e&&!Wt(_e);)_e=M.input.charCodeAt(++M.position);for(zt=[],(Yt=M.input.slice(Mt,M.position)).length<1&&Zn(M,"directive name must not be less than one character in length");0!==_e;){for(;Zt(_e);)_e=M.input.charCodeAt(++M.position);if(35===_e){do{_e=M.input.charCodeAt(++M.position)}while(0!==_e&&!yt(_e));break}if(yt(_e))break;for(Mt=M.position;0!==_e&&!Wt(_e);)_e=M.input.charCodeAt(++M.position);zt.push(M.input.slice(Mt,M.position))}0!==_e&&Ss(M),Se.call(cc,Yt)?cc[Yt](M,Yt,zt):yl(M,'unknown document directive "'+Yt+'"')}Wr(M,!0,-1),0===M.lineIndent&&45===M.input.charCodeAt(M.position)&&45===M.input.charCodeAt(M.position+1)&&45===M.input.charCodeAt(M.position+2)?(M.position+=3,Wr(M,!0,-1)):vn&&Zn(M,"directives end mark is expected"),Y(M,M.lineIndent-1,re,!1,!0),Wr(M,!0,-1),M.checkLineBreaks&&Z.test(M.input.slice(at,M.position))&&yl(M,"non-ASCII line breaks are interpreted as content"),M.documents.push(M.result),M.position===M.lineStart&&na(M)?46===M.input.charCodeAt(M.position)&&(M.position+=3,Wr(M,!0,-1)):M.position"u"&&(Mt=at,at=null);var Yt=Le(M,Mt);if("function"!=typeof at)return Yt;for(var zt=0,vn=Yt.length;zt"u"&&(Mt=at,at=null),it(M,at,be.extend({schema:he},Mt))},Et.exports.safeLoad=function ar(M,at){return qt(M,be.extend({schema:he},at))}},48:(Et,Xe,ue)=>{"use strict";var be=ue(997);function de(ye,he,ee,Se,we){this.name=ye,this.buffer=he,this.position=ee,this.line=Se,this.column=we}de.prototype.getSnippet=function(he,ee){var Se,we,se,K,re;if(!this.buffer)return null;for(he=he||4,ee=ee||75,Se="",we=this.position;we>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(we-1));)if(this.position-(we-=1)>ee/2-1){Se=" ... ",we+=5;break}for(se="",K=this.position;Kee/2-1){se=" ... ",K-=5;break}return re=this.buffer.slice(we,K),be.repeat(" ",he)+Se+re+se+"\n"+be.repeat(" ",he+this.position-we+Se.length)+"^"},de.prototype.toString=function(he){var ee,Se="";return this.name&&(Se+='in "'+this.name+'" '),Se+="at line "+(this.line+1)+", column "+(this.column+1),he||(ee=this.getSnippet())&&(Se+=":\n"+ee),Se},Et.exports=de},372:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(314),ye=ue(7647);function he(we,se,K){var re=[];return we.include.forEach(function(ie){K=he(ie,se,K)}),we[se].forEach(function(ie){K.forEach(function(k,T){k.tag===ie.tag&&k.kind===ie.kind&&re.push(T)}),K.push(ie)}),K.filter(function(ie,k){return-1===re.indexOf(k)})}function Se(we){this.include=we.include||[],this.implicit=we.implicit||[],this.explicit=we.explicit||[],this.implicit.forEach(function(se){if(se.loadKind&&"scalar"!==se.loadKind)throw new de("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=he(this,"implicit",[]),this.compiledExplicit=he(this,"explicit",[]),this.compiledTypeMap=function ee(){var se,K,we={scalar:{},sequence:{},mapping:{},fallback:{}};function re(ie){we[ie.kind][ie.tag]=we.fallback[ie.tag]=ie}for(se=0,K=arguments.length;se{"use strict";var be=ue(372);Et.exports=new be({include:[ue(7147)]})},7094:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=be.DEFAULT=new be({include:[ue(3031)],explicit:[ue(8771),ue(632),ue(716)]})},3031:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({include:[ue(3192)],implicit:[ue(6934),ue(9996)],explicit:[ue(6486),ue(7166),ue(7711),ue(8738)]})},8746:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({explicit:[ue(3464),ue(2322),ue(3071)]})},7147:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({include:[ue(8746)],implicit:[ue(9568),ue(8911),ue(7877),ue(8615)]})},7647:(Et,Xe,ue)=>{"use strict";var be=ue(314),de=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ye=["scalar","sequence","mapping"];Et.exports=function ee(Se,we){if(we=we||{},Object.keys(we).forEach(function(se){if(-1===de.indexOf(se))throw new be('Unknown option "'+se+'" is met in definition of "'+Se+'" YAML type.')}),this.tag=Se,this.kind=we.kind||null,this.resolve=we.resolve||function(){return!0},this.construct=we.construct||function(se){return se},this.instanceOf=we.instanceOf||null,this.predicate=we.predicate||null,this.represent=we.represent||null,this.defaultStyle=we.defaultStyle||null,this.styleAliases=function he(Se){var we={};return null!==Se&&Object.keys(Se).forEach(function(se){Se[se].forEach(function(K){we[String(K)]=se})}),we}(we.styleAliases||null),-1===ye.indexOf(this.kind))throw new be('Unknown kind "'+this.kind+'" is specified for "'+Se+'" YAML type.')}},6486:(Et,Xe,ue)=>{"use strict";var be;try{be=ue(3172).lW}catch{}var ye=ue(7647),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Et.exports=new ye("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function ee(K){if(null===K)return!1;var re,ie,k=0,T=K.length,I=he;for(ie=0;ie64)){if(re<0)return!1;k+=6}return k%8==0},construct:function Se(K){var re,ie,k=K.replace(/[\r\n=]/g,""),T=k.length,I=he,Z=0,Ae=[];for(re=0;re>16&255),Ae.push(Z>>8&255),Ae.push(255&Z)),Z=Z<<6|I.indexOf(k.charAt(re));return 0==(ie=T%4*6)?(Ae.push(Z>>16&255),Ae.push(Z>>8&255),Ae.push(255&Z)):18===ie?(Ae.push(Z>>10&255),Ae.push(Z>>2&255)):12===ie&&Ae.push(Z>>4&255),be?be.from?be.from(Ae):new be(Ae):Ae},predicate:function se(K){return be&&be.isBuffer(K)},represent:function we(K){var k,T,re="",ie=0,I=K.length,Z=he;for(k=0;k>18&63],re+=Z[ie>>12&63],re+=Z[ie>>6&63],re+=Z[63&ie]),ie=(ie<<8)+K[k];return 0==(T=I%3)?(re+=Z[ie>>18&63],re+=Z[ie>>12&63],re+=Z[ie>>6&63],re+=Z[63&ie]):2===T?(re+=Z[ie>>10&63],re+=Z[ie>>4&63],re+=Z[ie<<2&63],re+=Z[64]):1===T&&(re+=Z[ie>>2&63],re+=Z[ie<<4&63],re+=Z[64],re+=Z[64]),re}})},8911:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function de(ee){if(null===ee)return!1;var Se=ee.length;return 4===Se&&("true"===ee||"True"===ee||"TRUE"===ee)||5===Se&&("false"===ee||"False"===ee||"FALSE"===ee)},construct:function ye(ee){return"true"===ee||"True"===ee||"TRUE"===ee},predicate:function he(ee){return"[object Boolean]"===Object.prototype.toString.call(ee)},represent:{lowercase:function(ee){return ee?"true":"false"},uppercase:function(ee){return ee?"TRUE":"FALSE"},camelcase:function(ee){return ee?"True":"False"}},defaultStyle:"lowercase"})},8615:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(7647),ye=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Se=/^[-+]?[0-9]+e/;Et.exports=new de("tag:yaml.org,2002:float",{kind:"scalar",resolve:function he(K){return!(null===K||!ye.test(K)||"_"===K[K.length-1])},construct:function ee(K){var re,ie,k,T;return ie="-"===(re=K.replace(/_/g,"").toLowerCase())[0]?-1:1,T=[],"+-".indexOf(re[0])>=0&&(re=re.slice(1)),".inf"===re?1===ie?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===re?NaN:re.indexOf(":")>=0?(re.split(":").forEach(function(I){T.unshift(parseFloat(I,10))}),re=0,k=1,T.forEach(function(I){re+=I*k,k*=60}),ie*re):ie*parseFloat(re,10)},predicate:function se(K){return"[object Number]"===Object.prototype.toString.call(K)&&(K%1!=0||be.isNegativeZero(K))},represent:function we(K,re){var ie;if(isNaN(K))switch(re){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===K)switch(re){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===K)switch(re){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(be.isNegativeZero(K))return"-0.0";return ie=K.toString(10),Se.test(ie)?ie.replace("e",".e"):ie},defaultStyle:"lowercase"})},7877:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(7647);function ye(K){return 48<=K&&K<=57||65<=K&&K<=70||97<=K&&K<=102}function he(K){return 48<=K&&K<=55}function ee(K){return 48<=K&&K<=57}Et.exports=new de("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Se(K){if(null===K)return!1;var T,re=K.length,ie=0,k=!1;if(!re)return!1;if(("-"===(T=K[ie])||"+"===T)&&(T=K[++ie]),"0"===T){if(ie+1===re)return!0;if("b"===(T=K[++ie])){for(ie++;ie=0?"0b"+K.toString(2):"-0b"+K.toString(2).slice(1)},octal:function(K){return K>=0?"0"+K.toString(8):"-0"+K.toString(8).slice(1)},decimal:function(K){return K.toString(10)},hexadecimal:function(K){return K>=0?"0x"+K.toString(16).toUpperCase():"-0x"+K.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Et,Xe,ue)=>{"use strict";var be;try{be=ue(7797)}catch{typeof window<"u"&&(be=window.esprima)}var ye=ue(7647);Et.exports=new ye("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function he(se){if(null===se)return!1;try{var re=be.parse("("+se+")",{range:!0});return!("Program"!==re.type||1!==re.body.length||"ExpressionStatement"!==re.body[0].type||"ArrowFunctionExpression"!==re.body[0].expression.type&&"FunctionExpression"!==re.body[0].expression.type)}catch{return!1}},construct:function ee(se){var k,K="("+se+")",re=be.parse(K,{range:!0}),ie=[];if("Program"!==re.type||1!==re.body.length||"ExpressionStatement"!==re.body[0].type||"ArrowFunctionExpression"!==re.body[0].expression.type&&"FunctionExpression"!==re.body[0].expression.type)throw new Error("Failed to resolve function");return re.body[0].expression.params.forEach(function(T){ie.push(T.name)}),k=re.body[0].expression.body.range,new Function(ie,"BlockStatement"===re.body[0].expression.body.type?K.slice(k[0]+1,k[1]-1):"return "+K.slice(k[0],k[1]))},predicate:function we(se){return"[object Function]"===Object.prototype.toString.call(se)},represent:function Se(se){return se.toString()}})},632:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function de(Se){if(null===Se||0===Se.length)return!1;var we=Se,se=/\/([gim]*)$/.exec(Se),K="";return!("/"===we[0]&&(se&&(K=se[1]),K.length>3||"/"!==we[we.length-K.length-1]))},construct:function ye(Se){var we=Se,se=/\/([gim]*)$/.exec(Se),K="";return"/"===we[0]&&(se&&(K=se[1]),we=we.slice(1,we.length-K.length-1)),new RegExp(we,K)},predicate:function ee(Se){return"[object RegExp]"===Object.prototype.toString.call(Se)},represent:function he(Se){var we="/"+Se.source+"/";return Se.global&&(we+="g"),Se.multiline&&(we+="m"),Se.ignoreCase&&(we+="i"),we}})},8771:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function de(){return!0},construct:function ye(){},predicate:function ee(Se){return typeof Se>"u"},represent:function he(){return""}})},3071:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:map",{kind:"mapping",construct:function(de){return null!==de?de:{}}})},9996:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function de(ye){return"<<"===ye||null===ye}})},9568:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:null",{kind:"scalar",resolve:function de(ee){if(null===ee)return!0;var Se=ee.length;return 1===Se&&"~"===ee||4===Se&&("null"===ee||"Null"===ee||"NULL"===ee)},construct:function ye(){return null},predicate:function he(ee){return null===ee},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},7166:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=Object.prototype.hasOwnProperty,ye=Object.prototype.toString;Et.exports=new be("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function he(Se){if(null===Se)return!0;var se,K,re,ie,k,we=[],T=Se;for(se=0,K=T.length;se{"use strict";var be=ue(7647),de=Object.prototype.toString;Et.exports=new be("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function ye(ee){if(null===ee)return!0;var Se,we,se,K,re,ie=ee;for(re=new Array(ie.length),Se=0,we=ie.length;Se{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(de){return null!==de?de:[]}})},8738:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=Object.prototype.hasOwnProperty;Et.exports=new be("tag:yaml.org,2002:set",{kind:"mapping",resolve:function ye(ee){if(null===ee)return!0;var Se,we=ee;for(Se in we)if(de.call(we,Se)&&null!==we[Se])return!1;return!0},construct:function he(ee){return null!==ee?ee:{}}})},3464:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:str",{kind:"scalar",construct:function(de){return null!==de?de:""}})},6934:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ye=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Et.exports=new be("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function he(we){return null!==we&&(null!==de.exec(we)||null!==ye.exec(we))},construct:function ee(we){var se,K,re,ie,k,T,I,ht,Z=0,Ae=null;if(null===(se=de.exec(we))&&(se=ye.exec(we)),null===se)throw new Error("Date resolve error");if(K=+se[1],re=+se[2]-1,ie=+se[3],!se[4])return new Date(Date.UTC(K,re,ie));if(k=+se[4],T=+se[5],I=+se[6],se[7]){for(Z=se[7].slice(0,3);Z.length<3;)Z+="0";Z=+Z}return se[9]&&(Ae=6e4*(60*+se[10]+ +(se[11]||0)),"-"===se[9]&&(Ae=-Ae)),ht=new Date(Date.UTC(K,re,ie,k,T,I,Z)),Ae&&ht.setTime(ht.getTime()-Ae),ht},instanceOf:Date,represent:function Se(we){return we.toISOString()}})},3259:(Et,Xe,ue)=>{const de=ue(8695),ye=ue(1465),he=ue(3210),ee=ue(2334);function Se(we,se,K,re,ie){const k=[].slice.call(arguments,1),T=k.length,I="function"==typeof k[T-1];if(!I&&!de())throw new Error("Callback required as last argument");if(!I){if(T<1)throw new Error("Too few arguments provided");return 1===T?(K=se,se=re=void 0):2===T&&!se.getContext&&(re=K,K=se,se=void 0),new Promise(function(Z,Ae){try{const Ue=ye.create(K,re);Z(we(Ue,se,re))}catch(Ue){Ae(Ue)}})}if(T<2)throw new Error("Too few arguments provided");2===T?(ie=K,K=se,se=re=void 0):3===T&&(se.getContext&&typeof ie>"u"?(ie=re,re=void 0):(ie=re,re=K,K=se,se=void 0));try{const Z=ye.create(K,re);ie(null,we(Z,se,re))}catch(Z){ie(Z)}}Xe.rT=Se.bind(null,he.render),Xe.hz=Se.bind(null,he.renderToDataURL),Xe.toString=Se.bind(null,function(we,se,K){return ee.render(we,K)})},8695:Et=>{Et.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Et,Xe,ue)=>{const be=ue(4792).getSymbolSize;Xe.getRowColCoords=function(ye){if(1===ye)return[];const he=Math.floor(ye/7)+2,ee=be(ye),Se=145===ee?26:2*Math.ceil((ee-13)/(2*he-2)),we=[ee-7];for(let se=1;se{const be=ue(4016),de=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ye(he){this.mode=be.ALPHANUMERIC,this.data=he}ye.getBitsLength=function(ee){return 11*Math.floor(ee/2)+ee%2*6},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(ee){let Se;for(Se=0;Se+2<=this.data.length;Se+=2){let we=45*de.indexOf(this.data[Se]);we+=de.indexOf(this.data[Se+1]),ee.put(we,11)}this.data.length%2&&ee.put(de.indexOf(this.data[Se]),6)},Et.exports=ye},2118:Et=>{function Xe(){this.buffer=[],this.length=0}Xe.prototype={get:function(ue){const be=Math.floor(ue/8);return 1==(this.buffer[be]>>>7-ue%8&1)},put:function(ue,be){for(let de=0;de>>be-de-1&1))},getLengthInBits:function(){return this.length},putBit:function(ue){const be=Math.floor(this.length/8);this.buffer.length<=be&&this.buffer.push(0),ue&&(this.buffer[be]|=128>>>this.length%8),this.length++}},Et.exports=Xe},4425:Et=>{function Xe(ue){if(!ue||ue<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=ue,this.data=new Uint8Array(ue*ue),this.reservedBit=new Uint8Array(ue*ue)}Xe.prototype.set=function(ue,be,de,ye){const he=ue*this.size+be;this.data[he]=de,ye&&(this.reservedBit[he]=!0)},Xe.prototype.get=function(ue,be){return this.data[ue*this.size+be]},Xe.prototype.xor=function(ue,be,de){this.data[ue*this.size+be]^=de},Xe.prototype.isReserved=function(ue,be){return this.reservedBit[ue*this.size+be]},Et.exports=Xe},5663:(Et,Xe,ue)=>{const be=ue(8419),de=ue(4016);function ye(he){this.mode=de.BYTE,"string"==typeof he&&(he=be(he)),this.data=new Uint8Array(he)}ye.getBitsLength=function(ee){return 8*ee},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(he){for(let ee=0,Se=this.data.length;ee{const be=ue(2259),de=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],ye=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Xe.getBlocksCount=function(ee,Se){switch(Se){case be.L:return de[4*(ee-1)+0];case be.M:return de[4*(ee-1)+1];case be.Q:return de[4*(ee-1)+2];case be.H:return de[4*(ee-1)+3];default:return}},Xe.getTotalCodewordsCount=function(ee,Se){switch(Se){case be.L:return ye[4*(ee-1)+0];case be.M:return ye[4*(ee-1)+1];case be.Q:return ye[4*(ee-1)+2];case be.H:return ye[4*(ee-1)+3];default:return}}},2259:(Et,Xe)=>{Xe.L={bit:1},Xe.M={bit:0},Xe.Q={bit:3},Xe.H={bit:2},Xe.isValid=function(de){return de&&typeof de.bit<"u"&&de.bit>=0&&de.bit<4},Xe.from=function(de,ye){if(Xe.isValid(de))return de;try{return function ue(be){if("string"!=typeof be)throw new Error("Param is not a string");switch(be.toLowerCase()){case"l":case"low":return Xe.L;case"m":case"medium":return Xe.M;case"q":case"quartile":return Xe.Q;case"h":case"high":return Xe.H;default:throw new Error("Unknown EC Level: "+be)}}(de)}catch{return ye}}},3114:(Et,Xe,ue)=>{const be=ue(4792).getSymbolSize;Xe.getPositions=function(he){const ee=be(he);return[[0,0],[ee-7,0],[0,ee-7]]}},7078:(Et,Xe,ue)=>{const be=ue(4792),he=be.getBCHDigit(1335);Xe.getEncodedBits=function(Se,we){const se=Se.bit<<3|we;let K=se<<10;for(;be.getBCHDigit(K)-he>=0;)K^=1335<{const ue=new Uint8Array(512),be=new Uint8Array(256);(function(){let ye=1;for(let he=0;he<255;he++)ue[he]=ye,be[ye]=he,ye<<=1,256&ye&&(ye^=285);for(let he=255;he<512;he++)ue[he]=ue[he-255]})(),Xe.log=function(ye){if(ye<1)throw new Error("log("+ye+")");return be[ye]},Xe.exp=function(ye){return ue[ye]},Xe.mul=function(ye,he){return 0===ye||0===he?0:ue[be[ye]+be[he]]}},449:(Et,Xe,ue)=>{const be=ue(4016),de=ue(4792);function ye(he){this.mode=be.KANJI,this.data=he}ye.getBitsLength=function(ee){return 13*ee},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(he){let ee;for(ee=0;ee=33088&&Se<=40956)Se-=33088;else{if(!(Se>=57408&&Se<=60351))throw new Error("Invalid SJIS character: "+this.data[ee]+"\nMake sure your charset is UTF-8");Se-=49472}Se=192*(Se>>>8&255)+(255&Se),he.put(Se,13)}},Et.exports=ye},3667:(Et,Xe)=>{Xe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function be(de,ye,he){switch(de){case Xe.Patterns.PATTERN000:return(ye+he)%2==0;case Xe.Patterns.PATTERN001:return ye%2==0;case Xe.Patterns.PATTERN010:return he%3==0;case Xe.Patterns.PATTERN011:return(ye+he)%3==0;case Xe.Patterns.PATTERN100:return(Math.floor(ye/2)+Math.floor(he/3))%2==0;case Xe.Patterns.PATTERN101:return ye*he%2+ye*he%3==0;case Xe.Patterns.PATTERN110:return(ye*he%2+ye*he%3)%2==0;case Xe.Patterns.PATTERN111:return(ye*he%3+(ye+he)%2)%2==0;default:throw new Error("bad maskPattern:"+de)}}Xe.isValid=function(ye){return null!=ye&&""!==ye&&!isNaN(ye)&&ye>=0&&ye<=7},Xe.from=function(ye){return Xe.isValid(ye)?parseInt(ye,10):void 0},Xe.getPenaltyN1=function(ye){const he=ye.size;let ee=0,Se=0,we=0,se=null,K=null;for(let re=0;re=5&&(ee+=Se-5+3),se=k,Se=1),k=ye.get(ie,re),k===K?we++:(we>=5&&(ee+=we-5+3),K=k,we=1)}Se>=5&&(ee+=Se-5+3),we>=5&&(ee+=we-5+3)}return ee},Xe.getPenaltyN2=function(ye){const he=ye.size;let ee=0;for(let Se=0;Se=10&&(1488===Se||93===Se)&&ee++,we=we<<1&2047|ye.get(K,se),K>=10&&(1488===we||93===we)&&ee++}return 40*ee},Xe.getPenaltyN4=function(ye){let he=0;const ee=ye.data.length;for(let we=0;we{const be=ue(4406),de=ue(2699);Xe.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Xe.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Xe.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Xe.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Xe.MIXED={bit:-1},Xe.getCharCountIndicator=function(ee,Se){if(!ee.ccBits)throw new Error("Invalid mode: "+ee);if(!be.isValid(Se))throw new Error("Invalid version: "+Se);return Se>=1&&Se<10?ee.ccBits[0]:Se<27?ee.ccBits[1]:ee.ccBits[2]},Xe.getBestModeForData=function(ee){return de.testNumeric(ee)?Xe.NUMERIC:de.testAlphanumeric(ee)?Xe.ALPHANUMERIC:de.testKanji(ee)?Xe.KANJI:Xe.BYTE},Xe.toString=function(ee){if(ee&&ee.id)return ee.id;throw new Error("Invalid mode")},Xe.isValid=function(ee){return ee&&ee.bit&&ee.ccBits},Xe.from=function(ee,Se){if(Xe.isValid(ee))return ee;try{return function ye(he){if("string"!=typeof he)throw new Error("Param is not a string");switch(he.toLowerCase()){case"numeric":return Xe.NUMERIC;case"alphanumeric":return Xe.ALPHANUMERIC;case"kanji":return Xe.KANJI;case"byte":return Xe.BYTE;default:throw new Error("Unknown mode: "+he)}}(ee)}catch{return Se}}},7783:(Et,Xe,ue)=>{const be=ue(4016);function de(ye){this.mode=be.NUMERIC,this.data=ye.toString()}de.getBitsLength=function(he){return 10*Math.floor(he/3)+(he%3?he%3*3+1:0)},de.prototype.getLength=function(){return this.data.length},de.prototype.getBitsLength=function(){return de.getBitsLength(this.data.length)},de.prototype.write=function(he){let ee,Se,we;for(ee=0;ee+3<=this.data.length;ee+=3)Se=this.data.substr(ee,3),we=parseInt(Se,10),he.put(we,10);const se=this.data.length-ee;se>0&&(Se=this.data.substr(ee),we=parseInt(Se,10),he.put(we,3*se+1))},Et.exports=de},1106:(Et,Xe,ue)=>{const be=ue(5339);Xe.mul=function(ye,he){const ee=new Uint8Array(ye.length+he.length-1);for(let Se=0;Se=0;){const Se=ee[0];for(let se=0;se{const be=ue(4792),de=ue(2259),ye=ue(2118),he=ue(4425),ee=ue(6221),Se=ue(3114),we=ue(3667),se=ue(4655),K=ue(2636),re=ue(2088),ie=ue(7078),k=ue(4016),T=ue(2033);function ut(Qt,An,Cn){const Sn=Qt.size,mi=ie.getEncodedBits(An,Cn);let fn,qn;for(fn=0;fn<15;fn++)qn=1==(mi>>fn&1),Qt.set(fn<6?fn:fn<8?fn+1:Sn-15+fn,8,qn,!0),Qt.set(8,fn<8?Sn-fn-1:fn<9?15-fn-1+1:15-fn-1,qn,!0);Qt.set(Sn-8,8,1,!0)}function Wt(Qt,An,Cn,Sn){let mi;if(Array.isArray(Qt))mi=T.fromArray(Qt);else{if("string"!=typeof Qt)throw new Error("Invalid data");{let ta=An;if(!ta){const tl=T.rawSplit(Qt);ta=re.getBestVersionForData(tl,Cn)}mi=T.fromString(Qt,ta||40)}}const fn=re.getBestVersionForData(mi,Cn);if(!fn)throw new Error("The amount of data is too big to be stored in a QR Code");if(An){if(An=0&&fi<=6&&(0===$t||6===$t)||$t>=0&&$t<=6&&(0===fi||6===fi)||fi>=2&&fi<=4&&$t>=2&&$t<=4,!0)}}($t,An),function Z(Qt){const An=Qt.size;for(let Cn=8;Cn=7&&function Ue(Qt,An){const Cn=Qt.size,Sn=re.getEncodedBits(An);let mi,fn,qn;for(let fi=0;fi<18;fi++)mi=Math.floor(fi/3),fn=fi%3+Cn-8-3,qn=1==(Sn>>fi&1),Qt.set(mi,fn,qn,!0),Qt.set(fn,mi,qn,!0)}($t,An),function ht(Qt,An){const Cn=Qt.size;let Sn=-1,mi=Cn-1,fn=7,qn=0;for(let fi=Cn-1;fi>0;fi-=2)for(6===fi&&fi--;;){for(let $t=0;$t<2;$t++)if(!Qt.isReserved(mi,fi-$t)){let ta=!1;qn>>fn&1)),Qt.set(mi,fi-$t,ta),fn--,-1===fn&&(qn++,fn=7)}if(mi+=Sn,mi<0||Cn<=mi){mi-=Sn,Sn=-Sn;break}}}($t,qn),isNaN(Sn)&&(Sn=we.getBestMask($t,ut.bind(null,$t,Cn))),we.applyMask(Sn,$t),ut($t,Cn,Sn),{modules:$t,version:An,errorCorrectionLevel:Cn,maskPattern:Sn,segments:mi}}Xe.create=function(An,Cn){if(typeof An>"u"||""===An)throw new Error("No input text");let mi,fn,Sn=de.M;return typeof Cn<"u"&&(Sn=de.from(Cn.errorCorrectionLevel,de.M),mi=re.from(Cn.version),fn=we.from(Cn.maskPattern),Cn.toSJISFunc&&be.setToSJISFunction(Cn.toSJISFunc)),Wt(An,mi,Sn,fn)}},2636:(Et,Xe,ue)=>{const be=ue(1106);function de(ye){this.genPoly=void 0,this.degree=ye,this.degree&&this.initialize(this.degree)}de.prototype.initialize=function(he){this.degree=he,this.genPoly=be.generateECPolynomial(this.degree)},de.prototype.encode=function(he){if(!this.genPoly)throw new Error("Encoder not initialized");const ee=new Uint8Array(he.length+this.degree);ee.set(he);const Se=be.mod(ee,this.genPoly),we=this.degree-Se.length;if(we>0){const se=new Uint8Array(this.degree);return se.set(Se,we),se}return Se},Et.exports=de},2699:(Et,Xe)=>{let de="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";de=de.replace(/u/g,"\\u");const ye="(?:(?![A-Z0-9 $%*+\\-./:]|"+de+")(?:.|[\r\n]))+";Xe.KANJI=new RegExp(de,"g"),Xe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Xe.BYTE=new RegExp(ye,"g"),Xe.NUMERIC=new RegExp("[0-9]+","g"),Xe.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const he=new RegExp("^"+de+"$"),ee=new RegExp("^[0-9]+$"),Se=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Xe.testKanji=function(se){return he.test(se)},Xe.testNumeric=function(se){return ee.test(se)},Xe.testAlphanumeric=function(se){return Se.test(se)}},2033:(Et,Xe,ue)=>{const be=ue(4016),de=ue(7783),ye=ue(2424),he=ue(5663),ee=ue(449),Se=ue(2699),we=ue(4792),se=ue(4901);function K(Ue){return unescape(encodeURIComponent(Ue)).length}function re(Ue,ut,ht){const yt=[];let Zt;for(;null!==(Zt=Ue.exec(ht));)yt.push({data:Zt[0],index:Zt.index,mode:ut,length:Zt[0].length});return yt}function ie(Ue){const ut=re(Se.NUMERIC,be.NUMERIC,Ue),ht=re(Se.ALPHANUMERIC,be.ALPHANUMERIC,Ue);let yt,Zt;return we.isKanjiModeEnabled()?(yt=re(Se.BYTE,be.BYTE,Ue),Zt=re(Se.KANJI,be.KANJI,Ue)):(yt=re(Se.BYTE_KANJI,be.BYTE,Ue),Zt=[]),ut.concat(ht,yt,Zt).sort(function(Qt,An){return Qt.index-An.index}).map(function(Qt){return{data:Qt.data,mode:Qt.mode,length:Qt.length}})}function k(Ue,ut){switch(ut){case be.NUMERIC:return de.getBitsLength(Ue);case be.ALPHANUMERIC:return ye.getBitsLength(Ue);case be.KANJI:return ee.getBitsLength(Ue);case be.BYTE:return he.getBitsLength(Ue)}}function Ae(Ue,ut){let ht;const yt=be.getBestModeForData(Ue);if(ht=be.from(ut,yt),ht!==be.BYTE&&ht.bit=0?ut[ut.length-1]:null;return yt&&yt.mode===ht.mode?(ut[ut.length-1].data+=ht.data,ut):(ut.push(ht),ut)},[])}(An))},Xe.rawSplit=function(ut){return Xe.fromArray(ie(ut,we.isKanjiModeEnabled()))}},4792:(Et,Xe)=>{let ue;const be=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Xe.getSymbolSize=function(ye){if(!ye)throw new Error('"version" cannot be null or undefined');if(ye<1||ye>40)throw new Error('"version" should be in range from 1 to 40');return 4*ye+17},Xe.getSymbolTotalCodewords=function(ye){return be[ye]},Xe.getBCHDigit=function(de){let ye=0;for(;0!==de;)ye++,de>>>=1;return ye},Xe.setToSJISFunction=function(ye){if("function"!=typeof ye)throw new Error('"toSJISFunc" is not a valid function.');ue=ye},Xe.isKanjiModeEnabled=function(){return typeof ue<"u"},Xe.toSJIS=function(ye){return ue(ye)}},4406:(Et,Xe)=>{Xe.isValid=function(be){return!isNaN(be)&&be>=1&&be<=40}},2088:(Et,Xe,ue)=>{const be=ue(4792),de=ue(4655),ye=ue(2259),he=ue(4016),ee=ue(4406),we=be.getBCHDigit(7973);function K(k,T){return he.getCharCountIndicator(k,T)+4}function re(k,T){let I=0;return k.forEach(function(Z){const Ae=K(Z.mode,T);I+=Ae+Z.getBitsLength()}),I}Xe.from=function(T,I){return ee.isValid(T)?parseInt(T,10):I},Xe.getCapacity=function(T,I,Z){if(!ee.isValid(T))throw new Error("Invalid QR Code version");typeof Z>"u"&&(Z=he.BYTE);const ut=8*(be.getSymbolTotalCodewords(T)-de.getTotalCodewordsCount(T,I));if(Z===he.MIXED)return ut;const ht=ut-K(Z,T);switch(Z){case he.NUMERIC:return Math.floor(ht/10*3);case he.ALPHANUMERIC:return Math.floor(ht/11*2);case he.KANJI:return Math.floor(ht/13);default:return Math.floor(ht/8)}},Xe.getBestVersionForData=function(T,I){let Z;const Ae=ye.from(I,ye.M);if(Array.isArray(T)){if(T.length>1)return function ie(k,T){for(let I=1;I<=40;I++)if(re(k,I)<=Xe.getCapacity(I,T,he.MIXED))return I}(T,Ae);if(0===T.length)return 1;Z=T[0]}else Z=T;return function se(k,T,I){for(let Z=1;Z<=40;Z++)if(T<=Xe.getCapacity(Z,I,k))return Z}(Z.mode,Z.getLength(),Ae)},Xe.getEncodedBits=function(T){if(!ee.isValid(T)||T<7)throw new Error("Invalid QR Code version");let I=T<<12;for(;be.getBCHDigit(I)-we>=0;)I^=7973<{const be=ue(6355);Xe.render=function(ee,Se,we){let se=we,K=Se;typeof se>"u"&&(!Se||!Se.getContext)&&(se=Se,Se=void 0),Se||(K=function ye(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),se=be.getOptions(se);const re=be.getImageWidth(ee.modules.size,se),ie=K.getContext("2d"),k=ie.createImageData(re,re);return be.qrToImageData(k.data,ee,se),function de(he,ee,Se){he.clearRect(0,0,ee.width,ee.height),ee.style||(ee.style={}),ee.height=Se,ee.width=Se,ee.style.height=Se+"px",ee.style.width=Se+"px"}(ie,K,re),ie.putImageData(k,0,0),K},Xe.renderToDataURL=function(ee,Se,we){let se=we;return typeof se>"u"&&(!Se||!Se.getContext)&&(se=Se,Se=void 0),se||(se={}),Xe.render(ee,Se,se).toDataURL(se.type||"image/png",(se.rendererOpts||{}).quality)}},2334:(Et,Xe,ue)=>{const be=ue(6355);function de(ee,Se){const we=ee.a/255,se=Se+'="'+ee.hex+'"';return we<1?se+" "+Se+'-opacity="'+we.toFixed(2).slice(1)+'"':se}function ye(ee,Se,we){let se=ee+Se;return typeof we<"u"&&(se+=" "+we),se}Xe.render=function(Se,we,se){const K=be.getOptions(we),re=Se.modules.size,ie=Se.modules.data,k=re+2*K.margin,T=K.color.light.a?"':"",I="0&&T>0&&ee[k-1]||(se+=re?ye("M",T+we,.5+I+we):ye("m",K,0),K=0,re=!1),T+1',Ue=''+T+I+"\n";return"function"==typeof se&&se(null,Ue),Ue}},6355:(Et,Xe)=>{function ue(be){if("number"==typeof be&&(be=be.toString()),"string"!=typeof be)throw new Error("Color should be defined as hex string");let de=be.slice().replace("#","").split("");if(de.length<3||5===de.length||de.length>8)throw new Error("Invalid hex color: "+be);(3===de.length||4===de.length)&&(de=Array.prototype.concat.apply([],de.map(function(he){return[he,he]}))),6===de.length&&de.push("F","F");const ye=parseInt(de.join(""),16);return{r:ye>>24&255,g:ye>>16&255,b:ye>>8&255,a:255&ye,hex:"#"+de.slice(0,6).join("")}}Xe.getOptions=function(de){de||(de={}),de.color||(de.color={});const he=de.width&&de.width>=21?de.width:void 0;return{width:he,scale:he?4:de.scale||4,margin:typeof de.margin>"u"||null===de.margin||de.margin<0?4:de.margin,color:{dark:ue(de.color.dark||"#000000ff"),light:ue(de.color.light||"#ffffffff")},type:de.type,rendererOpts:de.rendererOpts||{}}},Xe.getScale=function(de,ye){return ye.width&&ye.width>=de+2*ye.margin?ye.width/(de+2*ye.margin):ye.scale},Xe.getImageWidth=function(de,ye){const he=Xe.getScale(de,ye);return Math.floor((de+2*ye.margin)*he)},Xe.qrToImageData=function(de,ye,he){const ee=ye.modules.size,Se=ye.modules.data,we=Xe.getScale(ee,he),se=Math.floor((ee+2*he.margin)*we),K=he.margin*we,re=[he.color.light,he.color.dark];for(let ie=0;ie=K&&k>=K&&ie{Et(Et.s=5349)}]); \ No newline at end of file diff --git a/console/ui/dist/prod-nt/static/main.b666a3d50cd63032.js b/console/ui/dist/prod-nt/static/main.b666a3d50cd63032.js deleted file mode 100644 index b194897d5..000000000 --- a/console/ui/dist/prod-nt/static/main.b666a3d50cd63032.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{5349:(Et,Xe,ue)=>{"use strict";function be(t){return"function"==typeof t}let de=!1;const ye={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else de&&console.log("RxJS: Back to a better error behavior. Thank you. <3");de=t},get useDeprecatedSynchronousErrorHandling(){return de}};function he(t){setTimeout(()=>{throw t},0)}const ee={closed:!0,next(t){},error(t){if(ye.useDeprecatedSynchronousErrorHandling)throw t;he(t)},complete(){}},Se=Array.isArray||(t=>t&&"number"==typeof t.length);function we(t){return null!==t&&"object"==typeof t}const K=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class re{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof re)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof K?e.errors:e),[])}re.EMPTY=((t=new re).closed=!0,t);const k="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class I extends re{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ee;break;case 1:if(!n){this.destination=ee;break}if("object"==typeof n){n instanceof I?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new Z(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new Z(this,n,e,i)}}[k](){return this}static create(n,e,i){const r=new I(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class Z extends I{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;be(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==ee&&(s=Object.create(e),be(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ye.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ye;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):he(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;he(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);ye.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),ye.useDeprecatedSynchronousErrorHandling)throw i;he(i)}}__tryOrSetError(n,e,i){if(!ye.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return ye.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(he(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const ut="function"==typeof Symbol&&Symbol.observable||"@@observable";function ht(t){return t}function Zt(t){return 0===t.length?ht:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let Wt=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Ue(t,n,e){if(t){if(t instanceof I)return t;if(t[k])return t[k]()}return t||n||e?new I(t,n,e):new I(ee)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||ye.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ye.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ye.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Ae(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof I?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Qt(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[ut](){return this}pipe(...e){return 0===e.length?this:Zt(e)(this)}toPromise(e){return new(e=Qt(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Qt(t){if(t||(t=ye.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Cn=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Sn extends re{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class mi extends I{constructor(n){super(n),this.destination=n}}let fn=(()=>{class t extends Wt{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[k](){return new mi(this)}lift(e){const i=new qn(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Cn;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew qn(n,e),t})();class qn extends fn{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):re.EMPTY}}function fi(t){return t&&"function"==typeof t.schedule}function $t(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ta(t,n))}}class ta{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new tl(n,this.project,this.thisArg))}}class tl extends I{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Zn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function na(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const nl=t=>{if(t&&"function"==typeof t[ut])return(t=>n=>{const e=t[ut]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Wr(t))return Zn(t);if(na(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,he),n))(t);if(t&&"function"==typeof t[uo])return(t=>n=>{const e=t[uo]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${we(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function ia(t,n){return new Wt(e=>{const i=new re;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function ho(t,n){return n?function wa(t,n){if(null!=t){if(function Cu(t){return t&&"function"==typeof t[ut]}(t))return function Ls(t,n){return new Wt(e=>{const i=new re;return i.add(n.schedule(()=>{const r=t[ut]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(na(t))return function ds(t,n){return new Wt(e=>{const i=new re;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Wr(t))return ia(t,n);if(function il(t){return t&&"function"==typeof t[uo]}(t)||"string"==typeof t)return function Vl(t,n){if(!t)throw new Error("Iterable cannot be null");return new Wt(e=>{const i=new re;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[uo](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof Wt?t:new Wt(nl(t))}class Hl extends I{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Y extends I{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Le(t,n){if(n.closed)return;if(t instanceof Wt)return t.subscribe(n);let e;try{e=nl(t)(n)}catch(i){n.error(i)}return e}function it(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(it((r,o)=>ho(t(r,o)).pipe($t((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new qt(t,e)))}class qt{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new nn(n,this.project,this.concurrent))}}class nn extends Y{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function M(t=Number.POSITIVE_INFINITY){return it(ht,t)}function at(t,n){return n?ia(t,n):new Wt(Zn(t))}function Mt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return fi(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof Wt?t[0]:M(n)(at(t,e))}function Yt(){return function(n){return n.lift(new zt(n))}}class zt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new vn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class vn extends I{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class _e extends Wt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new re,n.add(this.source.subscribe(new Pt(this.getSubject(),this))),n.closed&&(this._connection=null,n=re.EMPTY)),n}refCount(){return Yt()(this)}}const bt=(()=>{const t=_e.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Pt extends mi{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class pn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function Jt(){return new fn}function Je(){return t=>Yt()(function Lt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new pn(r,n));const o=Object.create(i,bt);return o.source=i,o.subjectFactory=r,o}}(Jt)(t))}function Qe(t){for(let n in t)if(t[n]===Qe)return n;throw Error("Could not find renamed property on target object.")}function St(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function kn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(kn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Br(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const g1=Qe({__forward_ref__:Qe});function ji(t){return t.__forward_ref__=ji,t.toString=function(){return kn(this())},t}function Mi(t){return ET(t)?t():t}function ET(t){return"function"==typeof t&&t.hasOwnProperty(g1)&&t.__forward_ref__===ji}function AT(t){return t&&!!t.\u0275providers}const fx="https://g.co/ng/security#xss";class jt extends Error{constructor(n,e){super(px(n,e)),this.code=n}}function px(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Gi(t){return"string"==typeof t?t:null==t?"":String(t)}function mx(t,n){throw new jt(-201,!1)}function io(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}function It(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Di(t){return{providers:t.providers||[],imports:t.imports||[]}}function gx(t){return hL(t,vx)||hL(t,pL)}function hL(t,n){return t.hasOwnProperty(n)?t[n]:null}function fL(t){return t&&(t.hasOwnProperty(MT)||t.hasOwnProperty(Ave))?t[MT]:null}const vx=Qe({\u0275prov:Qe}),MT=Qe({\u0275inj:Qe}),pL=Qe({ngInjectableDef:Qe}),Ave=Qe({ngInjectorDef:Qe});var Oi=(()=>((Oi=Oi||{})[Oi.Default=0]="Default",Oi[Oi.Host=1]="Host",Oi[Oi.Self=2]="Self",Oi[Oi.SkipSelf=4]="SkipSelf",Oi[Oi.Optional=8]="Optional",Oi))();let OT;function Hc(t){const n=OT;return OT=t,n}function mL(t,n,e){const i=gx(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Oi.Optional?null:void 0!==n?n:void mx(kn(t))}const Bo=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),v1={},IT="__NG_DI_FLAG__",yx="ngTempTokenPath",Ove="ngTokenPath",Ive=/\n/gm,Nve="\u0275",gL="__source";let y1;function kg(t){const n=y1;return y1=t,n}function Fve(t,n=Oi.Default){if(void 0===y1)throw new jt(-203,!1);return null===y1?mL(t,void 0,n):y1.get(t,n&Oi.Optional?null:void 0,n)}function xt(t,n=Oi.Default){return(function Mve(){return OT}()||Fve)(Mi(t),n)}function Vi(t,n=Oi.Default){return xt(t,_x(n))}function _x(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function NT(t){const n=[];for(let e=0;e((Ed=Ed||{})[Ed.OnPush=0]="OnPush",Ed[Ed.Default=1]="Default",Ed))(),Su=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Su||(Su={})),Su))();const Th={},Qr=[],bx=Qe({\u0275cmp:Qe}),FT=Qe({\u0275dir:Qe}),PT=Qe({\u0275pipe:Qe}),yL=Qe({\u0275mod:Qe}),Eh=Qe({\u0275fac:Qe}),b1=Qe({__NG_ELEMENT_ID__:Qe});let Lve=0;function Vt(t){return Dh(()=>{const n=bL(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ed.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Su.Emulated,id:"c"+Lve++,styles:t.styles||Qr,_:null,schemas:t.schemas||null,tView:null};xL(e);const i=t.dependencies;return e.directiveDefs=xx(i,!1),e.pipeDefs=xx(i,!0),e})}function $ve(t){return ro(t)||rl(t)}function Vve(t){return null!==t}function Ii(t){return Dh(()=>({type:t.type,bootstrap:t.bootstrap||Qr,declarations:t.declarations||Qr,imports:t.imports||Qr,exports:t.exports||Qr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function _L(t,n){if(null==t)return Th;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function un(t){return Dh(()=>{const n=bL(t);return xL(n),n})}function _l(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ro(t){return t[bx]||null}function rl(t){return t[FT]||null}function Ul(t){return t[PT]||null}function dc(t,n){const e=t[yL]||null;if(!e&&!0===n)throw new Error(`Type ${kn(t)} does not have '\u0275mod' property.`);return e}function bL(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||Qr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_L(t.inputs,n),outputs:_L(t.outputs)}}function xL(t){t.features?.forEach(n=>n(t))}function xx(t,n){if(!t)return null;const e=n?Ul:$ve;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(Vve)}const Ah=0,$n=1,ir=2,hs=3,ku=4,zp=5,ol=6,Tg=7,ks=8,wx=9,Cx=10,lr=11,RT=12,x1=13,wL=14,Eg=15,sl=16,w1=17,Ag=18,Ad=19,C1=20,CL=21,$o=22,jT=1,SL=2,Sx=7,kx=8,Mg=9,bl=10;function hc(t){return Array.isArray(t)&&"object"==typeof t[jT]}function Du(t){return Array.isArray(t)&&!0===t[jT]}function LT(t){return 0!=(4&t.flags)}function S1(t){return t.componentOffset>-1}function Dx(t){return 1==(1&t.flags)}function Tu(t){return!!t.template}function Uve(t){return 0!=(256&t[ir])}function Gp(t,n){return t.hasOwnProperty(Eh)?t[Eh]:null}class Wve{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ei(){return TL}function TL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Yve),qve}function qve(){const t=AL(this),n=t?.current;if(n){const e=t.previous;if(e===Th)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Yve(t,n,e,i){const r=this.declaredInputs[e],o=AL(t)||function Xve(t,n){return t[EL]=n}(t,{previous:Th,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Wve(l&&l.currentValue,n,a===Th),t[i]=n}ei.ngInherit=!0;const EL="__ngSimpleChanges__";function AL(t){return t[EL]||null}const Uc=function(t,n,e){},ML="svg";function Na(t){for(;Array.isArray(t);)t=t[Ah];return t}function Tx(t,n){return Na(n[t])}function fc(t,n){return Na(n[t.index])}function IL(t,n){return t.data[n]}function Og(t,n){return t[n]}function zl(t,n){const e=n[t];return hc(e)?e:e[Ah]}function Ex(t){return 64==(64&t[ir])}function Sf(t,n){return null==n?null:t[n]}function NL(t){t[Ag]=0}function $T(t,n){t[zp]+=n;let e=t,i=t[hs];for(;null!==i&&(1===n&&1===e[zp]||-1===n&&0===e[zp]);)i[zp]+=n,e=i,i=i[hs]}const Wi={lFrame:UL(null),bindingsEnabled:!0};function PL(){return Wi.bindingsEnabled}function Xt(){return Wi.lFrame.lView}function $r(){return Wi.lFrame.tView}function ze(t){return Wi.lFrame.contextLView=t,t[ks]}function Ge(t){return Wi.lFrame.contextLView=null,t}function Fa(){let t=RL();for(;null!==t&&64===t.type;)t=t.parent;return t}function RL(){return Wi.lFrame.currentTNode}function k1(){const t=Wi.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function Md(t,n){const e=Wi.lFrame;e.currentTNode=t,e.isParent=n}function VT(){return Wi.lFrame.isParent}function HT(){Wi.lFrame.isParent=!1}function xl(){const t=Wi.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Mh(){return Wi.lFrame.bindingIndex}function Ig(){return Wi.lFrame.bindingIndex++}function Oh(t){const n=Wi.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function BL(t){Wi.lFrame.inI18n=t}function l0e(t,n){const e=Wi.lFrame;e.bindingIndex=e.bindingRootIndex=t,UT(n)}function UT(t){Wi.lFrame.currentDirectiveIndex=t}function $L(){return Wi.lFrame.currentQueryIndex}function GT(t){Wi.lFrame.currentQueryIndex=t}function u0e(t){const n=t[$n];return 2===n.type?n.declTNode:1===n.type?t[ol]:null}function VL(t,n,e){if(e&Oi.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Oi.Host||(r=u0e(o),null===r||(o=o[Eg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Wi.lFrame=HL();return i.currentTNode=n,i.lView=t,!0}function WT(t){const n=HL(),e=t[$n];Wi.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function HL(){const t=Wi.lFrame,n=null===t?null:t.child;return null===n?UL(t):n}function UL(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function zL(){const t=Wi.lFrame;return Wi.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const GL=zL;function qT(){const t=zL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function wl(){return Wi.lFrame.selectedIndex}function Wp(t){Wi.lFrame.selectedIndex=t}function es(){const t=Wi.lFrame;return IL(t.tView,t.selectedIndex)}function lt(){Wi.lFrame.currentNamespace=ML}function qp(){!function p0e(){Wi.lFrame.currentNamespace=null}()}function Ax(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[Ag]+=65536),(a>11>16&&(3&t[ir])===n){t[ir]+=2048,Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}else{Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}const Ng=-1;class D1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function JT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[Eg],e--;return i}let KT=!0;function Fx(t){const n=KT;return KT=t,n}const KL=255,QL=5;let w0e=0;const Od={};function Px(t,n){const e=ZL(t,n);if(-1!==e)return e;const i=n[$n];i.firstCreatePass&&(t.injectorIndex=n.length,QT(i.data,t),QT(n,null),QT(i.blueprint,null));const r=ZT(t,n),o=t.injectorIndex;if(JL(r)){const s=Ix(r),a=Nx(r,n),l=a[$n].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function QT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function ZL(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ZT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=s5(r),null===i)return Ng;if(e++,r=r[Eg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Ng}function eE(t,n,e){!function C0e(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(b1)&&(i=e[b1]),null==i&&(i=e[b1]=w0e++);const r=i&KL;n.data[t+(r>>QL)]|=1<=0?n&KL:T0e:n}(e);if("function"==typeof o){if(!VL(n,t,i))return i&Oi.Host?e5(r,0,i):t5(n,e,i,r);try{const s=o(i);if(null!=s||i&Oi.Optional)return s;mx()}finally{GL()}}else if("number"==typeof o){let s=null,a=ZL(t,n),l=Ng,c=i&Oi.Host?n[sl][ol]:null;for((-1===a||i&Oi.SkipSelf)&&(l=-1===a?ZT(t,n):n[a+8],l!==Ng&&o5(i,!1)?(s=n[$n],a=Ix(l),n=Nx(l,n)):a=-1);-1!==a;){const u=n[$n];if(r5(o,a,u.data)){const d=k0e(a,n,e,s,i,c);if(d!==Od)return d}l=n[a+8],l!==Ng&&o5(i,n[$n].data[a+8]===c)&&r5(o,a,n)?(s=u,a=Ix(l),n=Nx(l,n)):a=-1}}return r}function k0e(t,n,e,i,r,o){const s=n[$n],a=s.data[t+8],u=Rx(a,s,e,null==i?S1(a)&&KT:i!=s&&0!=(3&a.type),r&Oi.Host&&o===a);return null!==u?Yp(n,s,u,a):Od}function Rx(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&Tu(f)&&f.type===e)return l}return null}function Yp(t,n,e,i){let r=t[e];const o=n.data;if(function y0e(t){return t instanceof D1}(r)){const s=r;s.resolving&&function wve(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new jt(-200,`Circular dependency in DI detected for ${t}${e}`)}(function no(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Gi(t)}(o[e]));const a=Fx(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Hc(s.injectImpl):null;VL(t,i,Oi.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function g0e(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=TL(n);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Hc(l),Fx(a),s.resolving=!1,GL()}}return r}function r5(t,n,e){return!!(e[n+(t>>QL)]&1<{const n=t.prototype.constructor,e=n[Eh]||tE(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Eh]||tE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function tE(t){return ET(t)?()=>{const n=tE(Mi(t));return n&&n()}:Gp(t)}function s5(t){const n=t[$n],e=n.type;return 2===e?n.declTNode:1===e?t[ol]:null}function kf(t){return function S0e(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function nE(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Rg)?l[Rg]:Object.defineProperty(l,Rg,{value:[]})[Rg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Yn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=It({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xp(t,n){t.forEach(e=>Array.isArray(e)?Xp(e,n):n(e))}function l5(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function jx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function M1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function I0e(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function rE(t,n){const e=Bg(t,n);if(e>=0)return t[1|e]}function Bg(t,n){return function c5(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Gl=Gl||{})[Gl.Important=1]="Important",Gl[Gl.DashCase=2]="DashCase",Gl))();const K0e=/^>|^->||--!>|)/,Z0e="\u200b$1\u200b";const uE=new Map;let e1e=0;const hE="__ngContext__";function al(t,n){hc(n)?(t[hE]=n[C1],function n1e(t){uE.set(t[C1],t)}(n)):t[hE]=n}let fE;function pE(t,n){return fE(t,n)}function R1(t){const n=t[hs];return Du(n)?n[hs]:n}function mE(t){return A5(t[x1])}function gE(t){return A5(t[ku])}function A5(t){for(;null!==t&&!Du(t);)t=t[ku];return t}function Vg(t,n,e,i,r){if(null!=i){let o,s=!1;Du(i)?o=i:hc(i)&&(s=!0,i=i[Ah]);const a=Na(i);0===t&&null!==e?null==r?P5(n,e,a):Jp(n,e,a,r||null,!0):1===t&&null!==e?Jp(n,e,a,r||null,!0):2===t?CE(n,a,s):3===t&&n.destroyNode(a),null!=o&&function k1e(t,n,e,i,r){const o=e[Sx];o!==Na(e)&&Vg(n,t,i,o,r);for(let a=bl;an.replace(Q0e,Z0e))}(n))}function yE(t,n,e){return t.createElement(n,e)}function O5(t,n){const e=t[Mg],i=e.indexOf(n),r=n[hs];512&n[ir]&&(n[ir]&=-513,$T(r,-1)),e.splice(i,1)}function _E(t,n){if(t.length<=bl)return;const e=bl+n,i=t[e];if(i){const r=i[w1];null!==r&&r!==t&&O5(r,i),n>0&&(t[e-1][ku]=i[ku]);const o=jx(t,bl+n);!function p1e(t,n){j1(t,n,n[lr],2,null,null),n[Ah]=null,n[ol]=null}(i[$n],i);const s=o[Ad];null!==s&&s.detachView(o[$n]),i[hs]=null,i[ku]=null,i[ir]&=-65}return i}function I5(t,n){if(!(128&n[ir])){const e=n[lr];e.destroyNode&&j1(t,n,e,3,null,null),function v1e(t){let n=t[x1];if(!n)return bE(t[$n],t);for(;n;){let e=null;if(hc(n))e=n[x1];else{const i=n[bl];i&&(e=i)}if(!e){for(;n&&!n[ku]&&n!==t;)hc(n)&&bE(n[$n],n),n=n[hs];null===n&&(n=t),hc(n)&&bE(n[$n],n),e=n&&n[ku]}n=e}}(n)}}function bE(t,n){if(!(128&n[ir])){n[ir]&=-65,n[ir]|=128,function x1e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===Su.None||o===Su.Emulated)return null}return fc(i,e)}}function Jp(t,n,e,i,r){t.insertBefore(n,e,i,r)}function P5(t,n,e){t.appendChild(n,e)}function R5(t,n,e,i,r){null!==i?Jp(t,n,e,i,r):P5(t,n,e)}function Vx(t,n){return t.parentNode(n)}function j5(t,n,e){return B5(t,n,e)}function L5(t,n,e){return 40&t.type?fc(t,e):null}let xE,zx,DE,Gx,B5=L5;function $5(t,n){B5=t,xE=n}function Hx(t,n,e,i){const r=N5(t,i,n),o=n[lr],a=j5(i.parent||n[ol],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return zx}()?.createHTML(t)||t}function G5(){return void 0!==DE?DE:typeof document<"u"?document:void 0}function TE(){if(void 0===Gx&&(Gx=null,Bo.trustedTypes))try{Gx=Bo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Gx}function W5(t){return TE()?.createHTML(t)||t}function Y5(t){return TE()?.createScriptURL(t)||t}class Kp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${fx})`}}class I1e extends Kp{getTypeName(){return"HTML"}}class N1e extends Kp{getTypeName(){return"Style"}}class F1e extends Kp{getTypeName(){return"Script"}}class P1e extends Kp{getTypeName(){return"URL"}}class R1e extends Kp{getTypeName(){return"ResourceURL"}}function mc(t){return t instanceof Kp?t.changingThisBreaksApplicationSecurity:t}function Id(t,n){const e=function j1e(t){return t instanceof Kp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${fx})`)}return e===n}function X5(t){const n=new z1e(t);return function G1e(){try{return!!(new window.DOMParser).parseFromString(Hg(""),"text/html")}catch{return!1}}()?new U1e(n):n}class U1e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Hg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class z1e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Hg(n),e}}const W1e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wx(t){return(t=String(t)).match(W1e)?t:"unsafe:"+t}function Ih(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function L1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const J5=Ih("area,br,col,hr,img,wbr"),K5=Ih("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Q5=Ih("rp,rt"),EE=L1(J5,L1(K5,Ih("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),L1(Q5,Ih("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),L1(Q5,K5)),AE=Ih("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Z5=L1(AE,Ih("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ih("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),q1e=Ih("script,style,template");class Y1e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!EE.hasOwnProperty(e))return this.sanitizedSomething=!0,!q1e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();EE.hasOwnProperty(e)&&!J5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(e8(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const X1e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,J1e=/([^\#-~ |!])/g;function e8(t){return t.replace(/&/g,"&").replace(X1e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(J1e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let qx;function t8(t,n){let e=null;try{qx=qx||X5(t);let i=n?String(n):"";e=qx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=qx.getInertBodyElement(i)}while(i!==o);return Hg((new Y1e).sanitizeChildren(ME(e)||e))}finally{if(e){const i=ME(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function ME(t){return"content"in t&&function K1e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var To=(()=>((To=To||{})[To.NONE=0]="NONE",To[To.HTML=1]="HTML",To[To.STYLE=2]="STYLE",To[To.SCRIPT=3]="SCRIPT",To[To.URL=4]="URL",To[To.RESOURCE_URL=5]="RESOURCE_URL",To))();function Yx(t){const n=$1();return n?W5(n.sanitize(To.HTML,t)||""):Id(t,"HTML")?W5(mc(t)):t8(G5(),Gi(t))}function B1(t){const n=$1();return n?n.sanitize(To.URL,t)||"":Id(t,"URL")?mc(t):Wx(Gi(t))}function n8(t){const n=$1();if(n)return Y5(n.sanitize(To.RESOURCE_URL,t)||"");if(Id(t,"ResourceURL"))return Y5(mc(t));throw new jt(904,!1)}function $1(){const t=Xt();return t&&t[RT]}const Xx=new Yn("ENVIRONMENT_INITIALIZER"),r8=new Yn("INJECTOR",-1),o8=new Yn("INJECTOR_DEF_TYPES");class s8{get(n,e=v1){if(e===v1){const i=new Error(`NullInjectorError: No provider for ${kn(n)}!`);throw i.name="NullInjectorError",i}return e}}function rye(...t){return{\u0275providers:a8(0,t),\u0275fromNgModule:!0}}function a8(t,...n){const e=[],i=new Set;let r;return Xp(n,o=>{const s=o;OE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&l8(r,e),e}function l8(t,n){for(let e=0;e{n.push(o)})}}function OE(t,n,e,i){if(!(t=Mi(t)))return!1;let r=null,o=fL(t);const s=!o&&ro(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=fL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)OE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Xp(o.imports,u=>{OE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&l8(c,n)}if(!a){const c=Gp(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Qr},{provide:o8,useValue:r,multi:!0},{provide:Xx,useValue:()=>xt(r),multi:!0})}const l=o.providers;null==l||a||IE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function IE(t,n){for(let e of t)AT(e)&&(e=e.\u0275providers),Array.isArray(e)?IE(e,n):n(e)}const oye=Qe({provide:String,useValue:Qe});function NE(t){return null!==t&&"object"==typeof t&&oye in t}function Qp(t){return"function"==typeof t}const FE=new Yn("Set Injector scope."),Jx={},aye={};let PE;function Kx(){return void 0===PE&&(PE=new s8),PE}class Gc{}class d8 extends Gc{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,jE(n,s=>this.processProvider(s)),this.records.set(r8,Ug(void 0,this)),r.has("environment")&&this.records.set(Gc,Ug(void 0,this));const o=this.records.get(FE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(o8.multi,Qr,Oi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=kg(this),i=Hc(void 0);try{return n()}finally{kg(e),Hc(i)}}get(n,e=v1,i=Oi.Default){this.assertNotDestroyed(),i=_x(i);const r=kg(this),o=Hc(void 0);try{if(!(i&Oi.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function hye(t){return"function"==typeof t||"object"==typeof t&&t instanceof Yn}(n)&&gx(n);a=l&&this.injectableDefInScope(l)?Ug(RE(n),Jx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Oi.Self?Kx():this.parent).get(n,e=i&Oi.Optional&&e===v1?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[yx]=s[yx]||[]).unshift(kn(n)),r)throw s;return function Rve(t,n,e,i){const r=t[yx];throw n[gL]&&r.unshift(n[gL]),t.message=function jve(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Nve?t.slice(2):t;let r=kn(n);if(Array.isArray(n))r=n.map(kn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):kn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(Ive,"\n ")}`}("\n"+t.message,r,e,i),t[Ove]=r,t[yx]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Hc(o),kg(r)}}resolveInjectorInitializers(){const n=kg(this),e=Hc(void 0);try{const i=this.get(Xx.multi,Qr,Oi.Self);for(const r of i)r()}finally{kg(n),Hc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(kn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new jt(205,!1)}processProvider(n){let e=Qp(n=Mi(n))?n:Mi(n&&n.provide);const i=function cye(t){return NE(t)?Ug(void 0,t.useValue):Ug(h8(t),Jx)}(n);if(Qp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ug(void 0,Jx,!0),r.factory=()=>NT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Jx&&(e.value=aye,e.value=e.factory()),"object"==typeof e.value&&e.value&&function dye(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Mi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function RE(t){const n=gx(t),e=null!==n?n.factory:Gp(t);if(null!==e)return e;if(t instanceof Yn)throw new jt(204,!1);if(t instanceof Function)return function lye(t){const n=t.length;if(n>0)throw M1(n,"?"),new jt(204,!1);const e=function Eve(t){return t&&(t[vx]||t[pL])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new jt(204,!1)}function h8(t,n,e){let i;if(Qp(t)){const r=Mi(t);return Gp(r)||RE(r)}if(NE(t))i=()=>Mi(t.useValue);else if(function u8(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...NT(t.deps||[]));else if(function c8(t){return!(!t||!t.useExisting)}(t))i=()=>xt(Mi(t.useExisting));else{const r=Mi(t&&(t.useClass||t.provide));if(!function uye(t){return!!t.deps}(t))return Gp(r)||RE(r);i=()=>new r(...NT(t.deps))}return i}function Ug(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function jE(t,n){for(const e of t)Array.isArray(e)?jE(e,n):e&&AT(e)?jE(e.\u0275providers,n):n(e)}class fye{}class f8{}class mye{resolveComponentFactory(n){throw function pye(t){const n=Error(`No component factory found for ${kn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let zg=(()=>{class t{}return t.NULL=new mye,t})();function gye(){return Gg(Fa(),Xt())}function Gg(t,n){return new Ni(fc(t,n))}let Ni=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=gye,t})();function vye(t){return t instanceof Ni?t.nativeElement:t}class Wg{}let oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function yye(){const t=Xt(),e=zl(Fa().index,t);return(hc(e)?e:t)[lr]}(),t})(),_ye=(()=>{class t{}return t.\u0275prov=It({token:t,providedIn:"root",factory:()=>null}),t})();class V1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const bye=new V1("15.2.9"),LE={},BE="ngOriginalError";function $E(t){return t[BE]}class qg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&$E(n);for(;e&&$E(e);)e=$E(e);return e||null}}function m8(t){return t.ownerDocument.defaultView}function Nh(t){return t instanceof Function?t():t}function v8(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const y8="ng-template";function Mye(t,n,e){let i=0,r=!0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==v8(f,c,0)||2&i&&c!==h){if(Eu(i))return!1;s=!0}}}}else{if(!s&&!Eu(i)&&!Eu(l))return!1;if(s&&Eu(l))continue;s=!1,i=l|1&i}}return Eu(i)||s}function Eu(t){return 0==(1&t)}function Nye(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Eu(s)&&(n+=x8(o,r),r=""),i=s,o=o||!Eu(i);e++}return""!==r&&(n+=x8(o,r)),n}const qi={};function w(t){w8($r(),Xt(),wl()+t,!1)}function w8(t,n,e,i){if(!i)if(3==(3&n[ir])){const o=t.preOrderCheckHooks;null!==o&&Mx(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Ox(n,o,0,e)}Wp(e)}function D8(t,n=null,e=null,i){const r=T8(t,n,e,i);return r.resolveInjectorInitializers(),r}function T8(t,n=null,e=null,i,r=new Set){const o=[e||Qr,rye(t)];return i=i||("object"==typeof t?void 0:kn(t)),new d8(o,n||Kx(),i||null,r)}let Ca=(()=>{class t{static create(e,i){if(Array.isArray(e))return D8({name:""},i,e,"");{const r=e.name??"";return D8({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=v1,t.NULL=new s8,t.\u0275prov=It({token:t,providedIn:"any",factory:()=>xt(r8)}),t.__NG_ELEMENT_ID__=-1,t})();function ge(t,n=Oi.Default){const e=Xt();return null===e?xt(t,n):n5(Fa(),e,Mi(t),n)}function P8(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i$o&&w8(t,n,$o,!1),Uc(s?2:0,r),e(i,r)}finally{Wp(o),Uc(s?3:1,r)}}function qE(t,n,e){if(LT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,H1(t,e,r.hostVars,qi),r)}function ZE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Gi(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function k_e(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&eA(e)}}function eA(t){for(let i=mE(t);null!==i;i=gE(i))for(let r=bl;r0&&eA(o)}const e=t[$n].components;if(null!==e)for(let i=0;i0&&eA(r)}}function M_e(t,n){const e=zl(n,t),i=e[$n];(function O_e(t,n){for(let e=n.length;e-1&&(_E(n,i),jx(e,i))}this._attachedToViewContainer=!1}I5(this._lView[$n],this._lView)}onDestroy(n){L8(this._lView[$n],this._lView,null,n)}markForCheck(){nw(this._cdRefInjectingView||this._lView)}detach(){this._lView[ir]&=-65}reattach(){this._lView[ir]|=64}detectChanges(){iw(this._lView[$n],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new jt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function g1e(t,n){j1(t,n,n[lr],2,null,null)}(this._lView[$n],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new jt(902,!1);this._appRef=n}}class I_e extends U1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;iw(n[$n],n,n[ks],!1)}checkNoChanges(){}get context(){return null}}class Y8 extends zg{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ro(n);return new z1(e,this.ngModule)}}function X8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class F_e{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=_x(i);const r=this.injector.get(n,LE,i);return r!==LE||e===LE?r:this.parentInjector.get(n,e,i)}}class z1 extends f8{get inputs(){return X8(this.componentDef.inputs)}get outputs(){return X8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function Bye(t){return t.map(Lye).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Gc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new F_e(n,o):n,a=s.get(Wg,null);if(null===a)throw new jt(407,!1);const l=s.get(_ye,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function c_e(t,n,e){return t.selectRootElement(n,e===Su.ShadowDom)}(c,i,this.componentDef.encapsulation):yE(c,u,function N_e(t){const n=t.toLowerCase();return"svg"===n?ML:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=JE(0,null,null,1,0,null,null,null,null,null),p=Zx(null,f,null,h,null,null,a,c,l,s,null);let m,g;WT(p);try{const v=this.componentDef;let y,b=null;v.findHostDirectiveDefs?(y=[],b=new Map,v.findHostDirectiveDefs(v,y,b),y.push(v)):y=[v];const C=function R_e(t,n){const e=t[$n],i=$o;return t[i]=n,Jg(e,i,2,"#host",null)}(p,d),D=function j_e(t,n,e,i,r,o,s,a){const l=r[$n];!function L_e(t,n,e,i){for(const r of t)n.mergedAttrs=T1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(rw(n,n.mergedAttrs,!0),null!==e&&z5(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Zx(r,j8(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&QE(l,t,i.length-1),tw(r,u),r[t.index]=u}(C,d,v,y,p,a,c);g=IL(f,$o),d&&function $_e(t,n,e,i){if(i)JT(t,e,["ng-version",bye.full]);else{const{attrs:r,classes:o}=function $ye(t){const n=[],e=[];let i=1,r=2;for(;i0&&U5(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function V_e(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=T1(r.hostAttrs,e=T1(e,r.hostAttrs))}}(i)}function iA(t){return t===Th?{}:t===Qr?[]:t}function z_e(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function G_e(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function W_e(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function G1(t){return n=>{n.findHostDirectiveDefs=K8,n.hostDirectives=(Array.isArray(t)?t:t()).map(e=>"function"==typeof e?{directive:Mi(e),inputs:Th,outputs:Th}:{directive:Mi(e.directive),inputs:Q8(e.inputs),outputs:Q8(e.outputs)})}}function K8(t,n,e){if(null!==t.hostDirectives)for(const i of t.hostDirectives){const r=rl(i.directive);J_e(r.declaredInputs,i.inputs),K8(r,n,e),e.set(r,i),n.push(r)}}function Q8(t){if(void 0===t||0===t.length)return Th;const n={};for(let e=0;es(Na(C[i.index])):i.index;let b=null;if(!s&&a&&(b=function obe(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,h=!1;else{o=p6(i,n,u,o,!1);const C=e.listen(g,r,o);d.push(o,C),c&&c.push(r,y,v,v+1)}}else o=p6(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?zl(t.index,n):n);let l=f6(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=f6(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function L(t=1){return function d0e(t){return(Wi.lFrame.contextLView=function h0e(t,n){for(;t>0;)n=n[Eg],t--;return n}(t,Wi.lFrame.contextLView))[ks]}(t)}function sbe(t,n){let e=null;const i=function Fye(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function aA(t){return 2|t}function tm(t){return(131068&t)>>2}function lA(t,n){return-131069&t|n<<2}function cA(t){return 1|t}function C6(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?Ef(o):tm(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];hbe(t[a],n)&&(l=!0,t[a+1]=i?cA(u):aA(u)),a=i?Ef(u):tm(u)}l&&(t[e+1]=i?aA(o):cA(o))}function hbe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Bg(t,n)>=0}const aa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function S6(t){return t.substring(aa.key,aa.keyEnd)}function k6(t,n){const e=aa.textEnd;return e===n?-1:(n=aa.keyEnd=function gbe(t,n,e){for(;n32;)n++;return n}(t,aa.key=n,e),sv(t,n,e))}function sv(t,n,e){for(;n=0;e=k6(n,e))pc(t,S6(n),!0)}function Mu(t,n,e,i){const r=Xt(),o=$r(),s=Oh(2);o.firstUpdatePass&&O6(o,t,s,i),n!==qi&&ll(r,s,n)&&N6(o,o.data[wl()],r,r[lr],t,r[s+1]=function Tbe(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=kn(mc(t)))),t}(n,e),i,s)}function Ou(t,n,e,i){const r=$r(),o=Oh(2);r.firstUpdatePass&&O6(r,null,o,i);const s=Xt();if(e!==qi&&ll(s,o,e)){const a=r.data[wl()];if(P6(a,i)&&!M6(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Br(l,e||"")),oA(r,a,s,e,i)}else!function Dbe(t,n,e,i,r,o,s,a){r===qi&&(r=Qr);let l=0,c=0,u=0=t.expandoStartIndex}function O6(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[wl()],s=M6(t,e);P6(o,i)&&null===n&&!s&&(n=!1),n=function bbe(t,n,e,i){const r=function zT(t){const n=Wi.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Y1(e=uA(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=uA(r,t,n,e,i),null===o){let l=function xbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==tm(i))return t[Ef(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=uA(null,t,n,l[1],i),l=Y1(l,n.attrs,i),function wbe(t,n,e,i){t[Ef(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function Cbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=Ef(t[a+1]);t[i+1]=lw(h,a),0!==h&&(t[h+1]=lA(t[h+1],i)),t[a+1]=function lbe(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=lw(a,0),0!==a&&(t[a+1]=lA(t[a+1],i)),a=i;else t[i+1]=lw(l,0),0===a?a=i:t[l+1]=lA(t[l+1],i),l=i;c&&(t[i+1]=aA(t[i+1])),C6(t,u,i,!0),C6(t,u,i,!1),function dbe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Bg(o,n)>=0&&(e[i+1]=cA(e[i+1]))}(n,u,t,i,o),s=lw(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function uA(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===qi&&(h=d?Qr:void 0);let f=d?rE(h,i):u===i?h:void 0;if(c&&!cw(f)&&(f=rE(l,i)),cw(f)&&(a=f,s))return a;const p=t[r+1];r=s?Ef(p):tm(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=rE(l,i))}return a}function cw(t){return void 0!==t}function P6(t,n){return 0!=(t.flags&(n?8:16))}function O(t,n=""){const e=Xt(),i=$r(),r=t+$o,o=i.firstCreatePass?Jg(i,r,1,n,null):i.data[r],s=e[r]=vE(e[lr],n);Hx(i,e,s,o),Md(o,!1)}function wt(t){return bn("",t,""),wt}function bn(t,n,e){const i=Xt(),r=Qg(i,t,n,e);return r!==qi&&Fh(i,wl(),r),bn}function Af(t,n,e,i,r){const o=Xt(),s=Zg(o,t,n,e,i,r);return s!==qi&&Fh(o,wl(),s),Af}function ql(t,n,e){const i=Xt();return ll(i,Ig(),n)&&gc($r(),es(),i,t,n,i[lr],e,!0),ql}const nm=void 0;var Gbe=["en",[["a","p"],["AM","PM"],nm],[["AM","PM"],nm,nm],[["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"]],nm,[["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"]],nm,[["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}",nm,"{1} 'at' {0}",nm],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function zbe(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let av={};function kl(t){const n=function Wbe(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=nB(n);if(e)return e;const i=n.split("-")[0];if(e=nB(i),e)return e;if("en"===i)return Gbe;throw new jt(701,!1)}function nB(t){return t in av||(av[t]=Bo.ng&&Bo.ng.common&&Bo.ng.common.locales&&Bo.ng.common.locales[t]),av[t]}var Nn=(()=>((Nn=Nn||{})[Nn.LocaleId=0]="LocaleId",Nn[Nn.DayPeriodsFormat=1]="DayPeriodsFormat",Nn[Nn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Nn[Nn.DaysFormat=3]="DaysFormat",Nn[Nn.DaysStandalone=4]="DaysStandalone",Nn[Nn.MonthsFormat=5]="MonthsFormat",Nn[Nn.MonthsStandalone=6]="MonthsStandalone",Nn[Nn.Eras=7]="Eras",Nn[Nn.FirstDayOfWeek=8]="FirstDayOfWeek",Nn[Nn.WeekendRange=9]="WeekendRange",Nn[Nn.DateFormat=10]="DateFormat",Nn[Nn.TimeFormat=11]="TimeFormat",Nn[Nn.DateTimeFormat=12]="DateTimeFormat",Nn[Nn.NumberSymbols=13]="NumberSymbols",Nn[Nn.NumberFormats=14]="NumberFormats",Nn[Nn.CurrencyCode=15]="CurrencyCode",Nn[Nn.CurrencySymbol=16]="CurrencySymbol",Nn[Nn.CurrencyName=17]="CurrencyName",Nn[Nn.Currencies=18]="Currencies",Nn[Nn.Directionality=19]="Directionality",Nn[Nn.PluralCase=20]="PluralCase",Nn[Nn.ExtraData=21]="ExtraData",Nn))();const qbe=["zero","one","two","few","many"],lv="en-US",uw={marker:"element"},dw={marker:"ICU"};var fs=(()=>((fs=fs||{})[fs.SHIFT=2]="SHIFT",fs[fs.APPEND_EAGERLY=1]="APPEND_EAGERLY",fs[fs.COMMENT=2]="COMMENT",fs))();let iB=lv;function rB(t){(function Vc(t,n){null==t&&io(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(iB=t.toLowerCase().replace(/_/g,"-"))}function oB(t,n,e){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?L5(t,0,e):Na(e[r])}function sB(t,n,e,i,r){const o=n.insertBeforeIndex;if(Array.isArray(o)){let s=i,a=null;if(3&n.type||(a=s,s=r),null!==s&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];lB(i)||Kbe(i,n)&&null===Qbe(i)&&Zbe(i,n.index)}}function lB(t){return!(64&t.type)}function Kbe(t,n){return lB(n)||t.index>n.index}function Qbe(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function Zbe(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:($5(oB,sB),t.insertBeforeIndex=n)}function X1(t,n){const e=t.data[n];return null===e||"string"==typeof e?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function nxe(t,n,e){const i=GE(t,e,64,null,null);return aB(n,i),i}function hw(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}function cB(t){return t>>>17}function uB(t){return(131070&t)>>>1}let J1=0,K1=0;function hB(t,n,e,i){const r=e[lr];let s,o=null;for(let a=0;a>>1,e),null,null,f,p,null)}else switch(l){case dw:const c=n[++a],u=n[++a];null===e[u]&&al(e[u]=f1e(r,c),e);break;case uw:const d=n[++a],h=n[++a];null===e[h]&&al(e[h]=yE(r,d,null),e)}}}function fB(t,n,e,i,r){for(let o=0;o>>2;switch(3&u){case 1:const h=e[++c],f=e[++c],p=t.data[d];"string"==typeof p?ZE(n[lr],n[d],null,p,h,l,f):gc(t,p,n,h,l,n[lr],f,!1);break;case 0:const m=n[d];null!==m&&M5(n[lr],m,l);break;case 2:axe(t,X1(t,d),n,l);break;case 3:pB(t,X1(t,d),i,n)}}}}else{const l=e[o+1];if(l>0&&3==(3&l)){const u=X1(t,l>>>2);n[u.currentCaseLViewIndex]<0&&pB(t,u,i,n)}}o+=a}}function pB(t,n,e,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=J1;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),fB(t,i,n.update[r],e,o)}}function axe(t,n,e,i){const r=function lxe(t,n){let e=t.cases.indexOf(n);if(-1===e)switch(t.type){case 1:{const i=function Ybe(t,n){const e=function tB(t){return kl(t)[Nn.PluralCase]}(n)(parseInt(t,10)),i=qbe[e];return void 0!==i?i:"other"}(n,function Jbe(){return iB}());e=t.cases.indexOf(i),-1===e&&"other"!==i&&(e=t.cases.indexOf("other"));break}case 0:e=t.cases.indexOf("other")}return-1===e?null:e}(n,i);if(hw(n,e)!==r&&(mB(t,n,e),e[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const s=e[n.anchorIdx];s&&hB(t,n.create[r],e,s)}}function mB(t,n,e){let i=hw(n,e);if(null!==i){const r=n.remove[i];for(let o=0;o0){const a=Tx(s,e);null!==a&&CE(e[lr],a)}else mB(t,X1(t,~s),e)}}}function cxe(){const t=[];let e,i,n=-1;function o(a,l){n=0;const c=hw(a,l);i=null!==c?a.remove[c]:Qr}function s(){if(n0?e[a]:(t.push(n,i),o(e[$n].data[~a],e),s())}return 0===t.length?null:(i=t.pop(),n=t.pop(),s())}return function r(a,l){for(e=l;t.length;)t.pop();return o(a.value,l),s}}const fw=/\ufffd(\d+):?\d*\ufffd/gi,dxe=/\ufffd(\d+)\ufffd/,vB=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Q1="\ufffd",hxe=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,fxe=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,pxe=/\uE500/g;function yB(t,n,e,i,r,o,s){const a=H1(t,i,1,null);let l=a<e.length&&e.push(l)}return{type:i,mainBinding:r,cases:n,values:e}}function dA(t){if(!t)return[];let n=0;const e=[],i=[],r=/[{}]/g;let o;for(r.lastIndex=0;o=r.exec(t);){const a=o.index;if("}"==o[0]){if(e.pop(),0==e.length){const l=t.substring(n,a);vB.test(l)?i.push(wxe(l)):i.push(l),n=a+1}}else{if(0==e.length){const l=t.substring(n,a);i.push(l),n=a+1}e.push("{")}}const s=t.substring(n);return i.push(s),i}function Cxe(t,n,e,i,r,o,s,a){const l=[],c=[],u=[];n.cases.push(o),n.create.push(l),n.remove.push(c),n.update.push(u);const h=X5(G5()).getInertBodyElement(s),f=ME(h)||h;return f?wB(t,n,e,i,l,c,u,f,r,a,0):0}function wB(t,n,e,i,r,o,s,a,l,c,u){let d=0,h=a.firstChild;for(;h;){const f=H1(t,e,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,m=p.tagName.toLowerCase();if(EE.hasOwnProperty(m)){hA(r,uw,m,l,f),t.data[f]=m;const b=p.attributes;for(let C=0;C>>fs.SHIFT;let d=t[u];null===d&&(d=t[u]=(s&fs.COMMENT)===fs.COMMENT?r.createComment(a):vE(r,a)),c&&null!==e&&Jp(r,e,d,i,!1)}})(r,l.create,u,a&&8&a.type?r[a.index]:null),BL(!0)}function Pa(t,n,e){kB(t,n,e),function DB(){BL(!1)}()}function cv(t){return function rxe(t){t&&(J1|=1<0){const i=t.data[e];fB(t,n,Array.isArray(i)?i:i.update,Mh()-K1-1,J1)}J1=0,K1=0}($r(),Xt(),t+$o)}function fA(t,n,e,i,r){if(t=Mi(t),Array.isArray(t))for(let o=0;o>20;if(Qp(t)||!t.multi){const f=new D1(l,r,ge),p=mA(a,n,r?u:u+h,d);-1===p?(eE(Px(c,s),o,a),pA(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=mA(a,n,u+h,d),p=mA(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){eE(Px(c,s),o,a);const v=function Vxe(t,n,e,i,r){const o=new D1(t,e,ge);return o.multi=[],o.index=n,o.componentProviders=0,TB(o,r,i&&!e),o}(r?$xe:Bxe,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),pA(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else pA(o,t,f>-1?f:p,TB(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function pA(t,n,e,i){const r=Qp(n),o=function sye(t){return!!t.useClass}(n);if(r||o){const l=(o?Mi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function TB(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function mA(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Lxe(t,n,e){const i=$r();if(i.firstCreatePass){const r=Tu(t);fA(e,i.data,i.blueprint,r,!0),fA(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class uv{}class EB{}class AB extends uv{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Y8(this);const i=dc(n);this._bootstrapComponents=Nh(i.bootstrap),this._r3Injector=T8(n,e,[{provide:uv,useValue:this},{provide:zg,useValue:this.componentFactoryResolver}],kn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class vA extends EB{constructor(n){super(),this.moduleType=n}create(n){return new AB(this.moduleType,n)}}class Uxe extends uv{constructor(n,e,i){super(),this.componentFactoryResolver=new Y8(this),this.instance=null;const r=new d8([...n,{provide:uv,useValue:this},{provide:zg,useValue:this.componentFactoryResolver}],e||Kx(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function pw(t,n,e=null){return new Uxe(t,n,e).injector}let zxe=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=a8(0,e.type),r=i.length>0?pw([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=It({token:t,providedIn:"environment",factory:()=>new t(xt(Gc))}),t})();function Bs(t){t.getStandaloneInjector=n=>n.get(zxe).getOrCreateStandaloneInjector(t)}function cl(t,n,e){const i=xl()+t,r=Xt();return r[i]===qi?Fd(r,i,e?n.call(e):n()):function W1(t,n){return t[n]}(r,i)}function Zi(t,n,e,i){return RB(Xt(),xl(),t,n,e,i)}function Rr(t,n,e,i,r){return function jB(t,n,e,i,r,o,s){const a=n+e;return Zp(t,a,r,o)?Fd(t,a+2,s?i.call(s,r,o):i(r,o)):ny(t,a+2)}(Xt(),xl(),t,n,e,i,r)}function ty(t,n,e,i,r,o){return function LB(t,n,e,i,r,o,s,a){const l=n+e;return function aw(t,n,e,i,r){const o=Zp(t,n,e,i);return ll(t,n+2,r)||o}(t,l,r,o,s)?Fd(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):ny(t,l+3)}(Xt(),xl(),t,n,e,i,r,o)}function ny(t,n){const e=t[n];return e===qi?void 0:e}function RB(t,n,e,i,r,o){const s=n+e;return ll(t,s,r)?Fd(t,s+1,o?i.call(o,r):i(r)):ny(t,s+1)}function _A(t,n){const e=$r();let i;const r=t+$o;e.firstCreatePass?(i=function owe(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Gp(i.type)),s=Hc(ge);try{const a=Fx(!1),l=o();return Fx(a),function nbe(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Xt(),r,l),l}finally{Hc(s)}}function bA(t,n,e){const i=t+$o,r=Xt(),o=Og(r,i);return function iy(t,n){return t[$n].data[n].pure}(r,i)?RB(r,xl(),n,o.transform,e,o):o.transform(e)}function xA(t){return n=>{setTimeout(t,void 0,n)}}const ot=class uwe extends fn{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=xA(o),r&&(r=xA(r)),s&&(s=xA(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof re&&n.add(a),a}};function dwe(){return this._results[Symbol.iterator]()}class wA{get changes(){return this._changes||(this._changes=new ot)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=wA.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=dwe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function zc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function M0e(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=pwe,t})();const hwe=fo,fwe=class extends hwe{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Zx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[w1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ad];return null!==s&&(r[Ad]=s.createEmbeddedView(i)),WE(i,r,n),new U1(r)}};function pwe(){return mw(Fa(),Xt())}function mw(t,n){return 4&t.type?new fwe(n,t,Gg(t,n)):null}let Yl=(()=>{class t{}return t.__NG_ELEMENT_ID__=mwe,t})();function mwe(){return UB(Fa(),Xt())}const gwe=Yl,VB=class extends gwe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Gg(this._hostTNode,this._hostLView)}get injector(){return new Fg(this._hostTNode,this._hostLView)}get parentInjector(){const n=ZT(this._hostTNode,this._hostLView);if(JL(n)){const e=Nx(n,this._hostLView),i=Ix(n);return new Fg(e[$n].data[i+8],e)}return new Fg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=HB(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-bl}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function A1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new z1(ro(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Gc,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[$n];if(function e0e(t){return Du(t[hs])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[hs],h=new VB(d,d[ol],d[hs]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function y1e(t,n,e,i){const r=bl+i,o=e.length;i>0&&(e[r-1][ku]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=bl;d{class t{constructor(e){this.appInits=e,this.resolve=vw,this.reject=vw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(xt(yw,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oy=new Yn("AppId",{providedIn:"root",factory:function h$(){return`${FA()}${FA()}${FA()}`}});function FA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const f$=new Yn("Platform Initializer"),sy=new Yn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),p$=new Yn("AnimationModuleType");let Hwe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const vc=new Yn("LocaleId",{providedIn:"root",factory:()=>Vi(vc,Oi.Optional|Oi.SkipSelf)||function Uwe(){return typeof $localize<"u"&&$localize.locale||lv}()});class Gwe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let m$=(()=>{class t{compileModuleSync(e){return new vA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Nh(dc(e).declarations).reduce((s,a)=>{const l=ro(a);return l&&s.push(new z1(l)),s},[]);return new Gwe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ywe=(()=>Promise.resolve(0))();function PA(t){typeof Zone>"u"?Ywe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ur{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ot(!1),this.onMicrotaskEmpty=new ot(!1),this.onStable=new ot(!1),this.onError=new ot(!1),typeof Zone>"u")throw new jt(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Xwe(){let t=Bo.requestAnimationFrame,n=Bo.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Qwe(t){const n=()=>{!function Kwe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Bo,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,jA(t),t.isCheckStableRunning=!0,RA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),jA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return y$(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),_$(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return y$(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),_$(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,jA(t),RA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ur.isInAngularZone())throw new jt(909,!1)}static assertNotInAngularZone(){if(ur.isInAngularZone())throw new jt(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Jwe,vw,vw);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Jwe={};function RA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function jA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function y$(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _$(t){t._nesting--,RA(t)}class Zwe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ot,this.onMicrotaskEmpty=new ot,this.onStable=new ot,this.onError=new ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const b$=new Yn(""),bw=new Yn("");let $A,LA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$A||(function eCe(t){$A=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ur.assertNotInAngularZone(),PA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())PA(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(xt(ur),xt(BA),xt(bw))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),BA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return $A?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Rh=!1;let Mf=null;const x$=new Yn("AllowMultipleToken"),VA=new Yn("PlatformDestroyListeners"),w$=new Yn("appBootstrapListener");class C${constructor(n,e){this.name=n,this.token=e}}function k$(t,n,e=[]){const i=`Platform: ${n}`,r=new Yn(i);return(o=[])=>{let s=HA();if(!s||s.injector.get(x$,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function iCe(t){if(Mf&&!Mf.get(x$,!1))throw new jt(400,!1);Mf=t;const n=t.get(T$);(function S$(t){const n=t.get(f$,null);n&&n.forEach(e=>e())})(t)}(function D$(t=[],n){return Ca.create({name:n,providers:[{provide:FE,useValue:"platform"},{provide:VA,useValue:new Set([()=>Mf=null])},...t]})}(a,i))}return function oCe(t){const n=HA();if(!n)throw new jt(401,!1);return n}()}}function HA(){return Mf?.get(T$)??null}let T$=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function A$(t,n){let e;return e="noop"===t?new Zwe:("zone.js"===t?void 0:t)||new ur(n),e}(i?.ngZone,function E$(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:ur,useValue:r}];return r.run(()=>{const s=Ca.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(qg,null);if(!l)throw new jt(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{xw(this._modules,a),c.unsubscribe()})}),function M$(t,n,e){try{const i=e();return q1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(_w);return c.runInitializers(),c.donePromise.then(()=>(rB(a.injector.get(vc,lv)||lv),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=O$({},i);return function tCe(t,n,e){const i=new vA(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(jh);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new jt(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new jt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(VA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(xt(Ca))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function O$(t,n){return Array.isArray(n)?n.reduce(O$,t):{...t,...n}}let jh=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Wt(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Wt(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ur.assertNotInAngularZone(),PA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ur.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Mt(o,s.pipe(Je()))}bootstrap(e,i){const r=e instanceof f8;if(!this._injector.get(_w).done){!r&&function Dg(t){const n=ro(t)||rl(t)||Ul(t);return null!==n&&n.standalone}(e);throw new jt(405,Rh)}let s;s=r?e:this._injector.get(zg).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function nCe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(uv),c=s.create(Ca.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(b$,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),xw(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new jt(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;xw(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(w$,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>xw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new jt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(xt(ur),xt(Gc),xt(qg))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xw(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let $s=(()=>{class t{}return t.__NG_ELEMENT_ID__=aCe,t})();function aCe(t){return function lCe(t,n,e){if(S1(t)&&!e){const i=zl(t.index,n);return new U1(i,i)}return 47&t.type?new U1(n[sl],n):null}(Fa(),Xt(),16==(16&t))}class R${constructor(){}supports(n){return sw(n)}create(n){return new pCe(n)}}const fCe=(t,n)=>n;class pCe{constructor(n){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=n||fCe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new mCe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new j$),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new j$),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class mCe{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gCe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class j${constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new gCe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function L$(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new yCe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class yCe{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $$(){return new Sw([new R$])}let Sw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||$$()),deps:[[t,new I1,new O1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new jt(901,!1)}}return t.\u0275prov=It({token:t,providedIn:"root",factory:$$}),t})();function V$(){return new ay([new B$])}let ay=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||V$()),deps:[[t,new I1,new O1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new jt(901,!1)}}return t.\u0275prov=It({token:t,providedIn:"root",factory:V$}),t})();const xCe=k$(null,"core",[]);let wCe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(xt(jh))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();function fv(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function qA(t,n){const e=ro(t),i=n.elementInjector||Kx();return new z1(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let YA=null;function Lh(){return YA}class kCe{}const vo=new Yn("DocumentToken");let XA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function DCe(){return xt(H$)}()},providedIn:"platform"}),t})();const TCe=new Yn("Location Initialized");let H$=(()=>{class t extends XA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Lh().getBaseHref(this._doc)}onPopState(e){const i=Lh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Lh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){U$()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){U$()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:function(){return function ECe(){return new H$(xt(vo))}()},providedIn:"platform"}),t})();function U$(){return!!window.history.pushState}function JA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function z$(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Bh(t){return t&&"?"!==t[0]?"?"+t:t}let rm=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(W$)},providedIn:"root"}),t})();const G$=new Yn("appBaseHref");let W$=(()=>{class t extends rm{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Vi(vo).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return JA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Bh(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Bh(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Bh(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(xt(XA),xt(G$,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ACe=(()=>{class t extends rm{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=JA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Bh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Bh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(xt(XA),xt(G$,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),KA=(()=>{class t{constructor(e){this._subject=new ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function ICe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(z$(q$(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Bh(i))}normalize(e){return t.stripTrailingSlash(function OCe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,q$(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Bh(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Bh(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Bh,t.joinWithSlash=JA,t.stripTrailingSlash=z$,t.\u0275fac=function(e){return new(e||t)(xt(rm))},t.\u0275prov=It({token:t,factory:function(){return function MCe(){return new KA(xt(rm))}()},providedIn:"root"}),t})();function q$(t){return t.replace(/\/index.html$/,"")}var Xl=(()=>((Xl=Xl||{})[Xl.Decimal=0]="Decimal",Xl[Xl.Percent=1]="Percent",Xl[Xl.Currency=2]="Currency",Xl[Xl.Scientific=3]="Scientific",Xl))(),Vo=(()=>((Vo=Vo||{})[Vo.Format=0]="Format",Vo[Vo.Standalone=1]="Standalone",Vo))(),Yi=(()=>((Yi=Yi||{})[Yi.Narrow=0]="Narrow",Yi[Yi.Abbreviated=1]="Abbreviated",Yi[Yi.Wide=2]="Wide",Yi[Yi.Short=3]="Short",Yi))(),ts=(()=>((ts=ts||{})[ts.Short=0]="Short",ts[ts.Medium=1]="Medium",ts[ts.Long=2]="Long",ts[ts.Full=3]="Full",ts))(),Ei=(()=>((Ei=Ei||{})[Ei.Decimal=0]="Decimal",Ei[Ei.Group=1]="Group",Ei[Ei.List=2]="List",Ei[Ei.PercentSign=3]="PercentSign",Ei[Ei.PlusSign=4]="PlusSign",Ei[Ei.MinusSign=5]="MinusSign",Ei[Ei.Exponential=6]="Exponential",Ei[Ei.SuperscriptingExponent=7]="SuperscriptingExponent",Ei[Ei.PerMille=8]="PerMille",Ei[Ei.Infinity=9]="Infinity",Ei[Ei.NaN=10]="NaN",Ei[Ei.TimeSeparator=11]="TimeSeparator",Ei[Ei.CurrencyDecimal=12]="CurrencyDecimal",Ei[Ei.CurrencyGroup=13]="CurrencyGroup",Ei))();function X$(t,n,e){const i=kl(t),o=Yc([i[Nn.DayPeriodsFormat],i[Nn.DayPeriodsStandalone]],n);return Yc(o,e)}function J$(t,n,e){const i=kl(t),o=Yc([i[Nn.DaysFormat],i[Nn.DaysStandalone]],n);return Yc(o,e)}function QA(t,n,e){const i=kl(t),o=Yc([i[Nn.MonthsFormat],i[Nn.MonthsStandalone]],n);return Yc(o,e)}function kw(t,n){return Yc(kl(t)[Nn.DateFormat],n)}function Dw(t,n){return Yc(kl(t)[Nn.TimeFormat],n)}function Tw(t,n){return Yc(kl(t)[Nn.DateTimeFormat],n)}function qc(t,n){const e=kl(t),i=e[Nn.NumberSymbols][n];if(typeof i>"u"){if(n===Ei.CurrencyDecimal)return e[Nn.NumberSymbols][Ei.Decimal];if(n===Ei.CurrencyGroup)return e[Nn.NumberSymbols][Ei.Group]}return i}function K$(t){if(!t[Nn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Nn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Yc(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function eM(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const HCe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ly={},UCe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var la=(()=>((la=la||{})[la.Short=0]="Short",la[la.ShortGMT=1]="ShortGMT",la[la.Long=2]="Long",la[la.Extended=3]="Extended",la))(),Fi=(()=>((Fi=Fi||{})[Fi.FullYear=0]="FullYear",Fi[Fi.Month=1]="Month",Fi[Fi.Date=2]="Date",Fi[Fi.Hours=3]="Hours",Fi[Fi.Minutes=4]="Minutes",Fi[Fi.Seconds=5]="Seconds",Fi[Fi.FractionalSeconds=6]="FractionalSeconds",Fi[Fi.Day=7]="Day",Fi))(),rr=(()=>((rr=rr||{})[rr.DayPeriods=0]="DayPeriods",rr[rr.Days=1]="Days",rr[rr.Months=2]="Months",rr[rr.Eras=3]="Eras",rr))();function Q$(t,n,e,i){let r=function QCe(t){if(t7(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Ew(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(HCe))return function ZCe(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!t7(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=$h(e,n)||n;let a,s=[];for(;n;){if(a=UCe.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=e7(i,l),r=function KCe(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function JCe(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(e7(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function XCe(t){if(nM[t])return nM[t];let n;switch(t){case"G":case"GG":case"GGG":n=Eo(rr.Eras,Yi.Abbreviated);break;case"GGGG":n=Eo(rr.Eras,Yi.Wide);break;case"GGGGG":n=Eo(rr.Eras,Yi.Narrow);break;case"y":n=Hs(Fi.FullYear,1,0,!1,!0);break;case"yy":n=Hs(Fi.FullYear,2,0,!0,!0);break;case"yyy":n=Hs(Fi.FullYear,3,0,!1,!0);break;case"yyyy":n=Hs(Fi.FullYear,4,0,!1,!0);break;case"Y":n=Iw(1);break;case"YY":n=Iw(2,!0);break;case"YYY":n=Iw(3);break;case"YYYY":n=Iw(4);break;case"M":case"L":n=Hs(Fi.Month,1,1);break;case"MM":case"LL":n=Hs(Fi.Month,2,1);break;case"MMM":n=Eo(rr.Months,Yi.Abbreviated);break;case"MMMM":n=Eo(rr.Months,Yi.Wide);break;case"MMMMM":n=Eo(rr.Months,Yi.Narrow);break;case"LLL":n=Eo(rr.Months,Yi.Abbreviated,Vo.Standalone);break;case"LLLL":n=Eo(rr.Months,Yi.Wide,Vo.Standalone);break;case"LLLLL":n=Eo(rr.Months,Yi.Narrow,Vo.Standalone);break;case"w":n=tM(1);break;case"ww":n=tM(2);break;case"W":n=tM(1,!0);break;case"d":n=Hs(Fi.Date,1);break;case"dd":n=Hs(Fi.Date,2);break;case"c":case"cc":n=Hs(Fi.Day,1);break;case"ccc":n=Eo(rr.Days,Yi.Abbreviated,Vo.Standalone);break;case"cccc":n=Eo(rr.Days,Yi.Wide,Vo.Standalone);break;case"ccccc":n=Eo(rr.Days,Yi.Narrow,Vo.Standalone);break;case"cccccc":n=Eo(rr.Days,Yi.Short,Vo.Standalone);break;case"E":case"EE":case"EEE":n=Eo(rr.Days,Yi.Abbreviated);break;case"EEEE":n=Eo(rr.Days,Yi.Wide);break;case"EEEEE":n=Eo(rr.Days,Yi.Narrow);break;case"EEEEEE":n=Eo(rr.Days,Yi.Short);break;case"a":case"aa":case"aaa":n=Eo(rr.DayPeriods,Yi.Abbreviated);break;case"aaaa":n=Eo(rr.DayPeriods,Yi.Wide);break;case"aaaaa":n=Eo(rr.DayPeriods,Yi.Narrow);break;case"b":case"bb":case"bbb":n=Eo(rr.DayPeriods,Yi.Abbreviated,Vo.Standalone,!0);break;case"bbbb":n=Eo(rr.DayPeriods,Yi.Wide,Vo.Standalone,!0);break;case"bbbbb":n=Eo(rr.DayPeriods,Yi.Narrow,Vo.Standalone,!0);break;case"B":case"BB":case"BBB":n=Eo(rr.DayPeriods,Yi.Abbreviated,Vo.Format,!0);break;case"BBBB":n=Eo(rr.DayPeriods,Yi.Wide,Vo.Format,!0);break;case"BBBBB":n=Eo(rr.DayPeriods,Yi.Narrow,Vo.Format,!0);break;case"h":n=Hs(Fi.Hours,1,-12);break;case"hh":n=Hs(Fi.Hours,2,-12);break;case"H":n=Hs(Fi.Hours,1);break;case"HH":n=Hs(Fi.Hours,2);break;case"m":n=Hs(Fi.Minutes,1);break;case"mm":n=Hs(Fi.Minutes,2);break;case"s":n=Hs(Fi.Seconds,1);break;case"ss":n=Hs(Fi.Seconds,2);break;case"S":n=Hs(Fi.FractionalSeconds,1);break;case"SS":n=Hs(Fi.FractionalSeconds,2);break;case"SSS":n=Hs(Fi.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Mw(la.Short);break;case"ZZZZZ":n=Mw(la.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Mw(la.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Mw(la.Long);break;default:return null}return nM[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Ew(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function $h(t,n){const e=function NCe(t){return kl(t)[Nn.LocaleId]}(t);if(ly[e]=ly[e]||{},ly[e][n])return ly[e][n];let i="";switch(n){case"shortDate":i=kw(t,ts.Short);break;case"mediumDate":i=kw(t,ts.Medium);break;case"longDate":i=kw(t,ts.Long);break;case"fullDate":i=kw(t,ts.Full);break;case"shortTime":i=Dw(t,ts.Short);break;case"mediumTime":i=Dw(t,ts.Medium);break;case"longTime":i=Dw(t,ts.Long);break;case"fullTime":i=Dw(t,ts.Full);break;case"short":const r=$h(t,"shortTime"),o=$h(t,"shortDate");i=Aw(Tw(t,ts.Short),[r,o]);break;case"medium":const s=$h(t,"mediumTime"),a=$h(t,"mediumDate");i=Aw(Tw(t,ts.Medium),[s,a]);break;case"long":const l=$h(t,"longTime"),c=$h(t,"longDate");i=Aw(Tw(t,ts.Long),[l,c]);break;case"full":const u=$h(t,"fullTime"),d=$h(t,"fullDate");i=Aw(Tw(t,ts.Full),[u,d])}return i&&(ly[e][n]=i),i}function Aw(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Nu(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Fi.Hours)0===a&&-12===e&&(a=12);else if(t===Fi.FractionalSeconds)return function zCe(t,n){return Nu(t,3).substring(0,n)}(a,n);const l=qc(s,Ei.MinusSign);return Nu(a,n,l,i,r)}}function Eo(t,n,e=Vo.Format,i=!1){return function(r,o){return function WCe(t,n,e,i,r,o){switch(e){case rr.Months:return QA(n,r,i)[t.getMonth()];case rr.Days:return J$(n,r,i)[t.getDay()];case rr.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function jCe(t){const n=kl(t);return K$(n),(n[Nn.ExtraData][2]||[]).map(i=>"string"==typeof i?eM(i):[eM(i[0]),eM(i[1])])}(n),u=function LCe(t,n,e){const i=kl(t);K$(i);const o=Yc([i[Nn.ExtraData][0],i[Nn.ExtraData][1]],n)||[];return Yc(o,e)||[]}(n,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,m=s>=f.hours&&a>=f.minutes,g=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case la.Short:return(r>=0?"+":"")+Nu(s,2,o)+Nu(Math.abs(r%60),2,o);case la.ShortGMT:return"GMT"+(r>=0?"+":"")+Nu(s,1,o);case la.Long:return"GMT"+(r>=0?"+":"")+Nu(s,2,o)+":"+Nu(Math.abs(r%60),2,o);case la.Extended:return 0===i?"Z":(r>=0?"+":"")+Nu(s,2,o)+":"+Nu(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const qCe=0,Ow=4;function Z$(t){return Ew(t.getFullYear(),t.getMonth(),t.getDate()+(Ow-t.getDay()))}function tM(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=Z$(e),s=function YCe(t){const n=Ew(t,qCe,1).getDay();return Ew(t,0,1+(n<=Ow?Ow:Ow+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Nu(r,t,qc(i,Ei.MinusSign))}}function Iw(t,n=!1){return function(e,i){return Nu(Z$(e).getFullYear(),t,qc(i,Ei.MinusSign),n)}}const nM={};function e7(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function t7(t){return t instanceof Date&&!isNaN(t.valueOf())}const e2e=/^(\d+)?\.((\d+)(-(\d+))?)?$/,n7=22,Nw=".",cy="0",t2e=";",n2e=",",iM="#";function sM(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function o7(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const lM=/\s+/,s7=[];let Of=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=s7,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(lM):s7}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(lM):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(lM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(ge(Sw),ge(ay),ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class h2e{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Un=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new h2e(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),c7(a,r)}});for(let r=0,o=i.length;r{c7(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo),ge(Sw))},t.\u0275dir=un({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function c7(t,n){t.context.$implicit=n.item}let xn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new p2e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){u7("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){u7("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo))},t.\u0275dir=un({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class p2e{constructor(){this.$implicit=null,this.ngIf=null}}function u7(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${kn(n)}'.`)}class cM{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Fw=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),d7=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new cM(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo),ge(Fw,9))},t.\u0275dir=un({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),f7=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Gl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ay),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Fu=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl))},t.\u0275dir=un({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ei]}),t})();let m7=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!function uM(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function o2e(t,n,e){return function rM(t,n,e,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function l2e(t){let i,r,o,s,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf(Nw))>-1&&(n=n.replace(Nw,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===cy;o++);if(o===(a=n.length))i=[0],r=1;else{for(a--;n.charAt(a)===cy;)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(n.charAt(o))}return r>n7&&(i=i.splice(0,n7-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);s&&(c=function a2e(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(o){const y=o.match(e2e);if(null===y)throw new Error(`${o} is not a valid digit info`);const b=y[1],C=y[3],D=y[5];null!=b&&(u=sM(b)),null!=C&&(d=sM(C)),null!=D?h=sM(D):null!=C&&d>h&&(h=d)}!function c2e(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(n,r),e);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=c?p.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,h);let f=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(l=f.every(y=>!y);p0?g=f.splice(p,f.length):(g=f,f=[0]);const v=[];for(f.length>=n.lgSize&&v.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)v.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(qc(e,i)),g.length&&(a+=qc(e,r)+g.join("")),m&&(a+=qc(e,Ei.Exponential)+"+"+m)}else a=qc(e,Ei.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function oM(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(t2e),r=i[0],o=i[1],s=-1!==r.indexOf(Nw)?r.split(Nw):[r.substring(0,r.lastIndexOf(cy)+1),r.substring(r.lastIndexOf(cy)+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf(iM));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();const g7="browser";function v7(t){return t===g7}let V2e=(()=>{class t{}return t.\u0275prov=It({token:t,providedIn:"root",factory:()=>new H2e(xt(vo),window)}),t})();class H2e{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function U2e(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=y7(this.window.history)||y7(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function y7(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class _7{}class gSe extends kCe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class pM extends gSe{static makeCurrent(){!function SCe(t){YA||(YA=t)}(new pM)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function vSe(){return dy=dy||document.querySelector("base"),dy?dy.getAttribute("href"):null}();return null==e?null:function ySe(t){jw=jw||document.createElement("a"),jw.setAttribute("href",t);const n=jw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){dy=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return o7(document.cookie,n)}}let jw,dy=null;const S7=new Yn("TRANSITION_ID"),bSe=[{provide:yw,useFactory:function _Se(t,n,e){return()=>{e.get(_w).donePromise.then(()=>{const i=Lh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const Lw=new Yn("EventManagerPlugins");let Bw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),hy=(()=>{class t extends D7{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const mM={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gM=/%COMP%/g,A7=new Yn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function M7(t,n){return n.flat(100).map(e=>e.replace(gM,t))}function O7(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let $w=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new vM(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof F7?r.applyToHost(e):r instanceof yM&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case Su.Emulated:o=new F7(s,a,i,this.appId,l);break;case Su.ShadowDom:return new ASe(s,a,e,i);default:o=new yM(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(xt(Bw),xt(hy),xt(oy),xt(A7))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class vM{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(mM[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(N7(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(N7(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=mM[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=mM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Gl.DashCase|Gl.Important)?n.style.setProperty(e,i,r&Gl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Gl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,O7(i)):this.eventManager.addEventListener(n,e,O7(i))}}function N7(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class ASe extends vM{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=M7(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class yM extends vM{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=M7(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class F7 extends yM{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function DSe(t){return"_ngcontent-%COMP%".replace(gM,t)}(s),this.hostAttr=function TSe(t){return"_nghost-%COMP%".replace(gM,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let MSe=(()=>{class t extends k7{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const P7=["alt","control","meta","shift"],OSe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ISe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let NSe=(()=>{class t extends k7{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Lh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),P7.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=OSe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),P7.forEach(s=>{s!==r&&(0,ISe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const j7=[{provide:sy,useValue:g7},{provide:f$,useValue:function FSe(){pM.makeCurrent()},multi:!0},{provide:vo,useFactory:function RSe(){return function O1e(t){DE=t}(document),document},deps:[]}],jSe=k$(xCe,"browser",j7),L7=new Yn(""),B7=[{provide:bw,useClass:class xSe{addToWindow(n){Bo.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Bo.getAllAngularTestabilities=()=>n.getAllTestabilities(),Bo.getAllAngularRootElements=()=>n.getAllRootElements(),Bo.frameworkStabilizers||(Bo.frameworkStabilizers=[]),Bo.frameworkStabilizers.push(i=>{const r=Bo.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Lh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:b$,useClass:LA,deps:[ur,BA,bw]},{provide:LA,useClass:LA,deps:[ur,BA,bw]}],$7=[{provide:FE,useValue:"root"},{provide:qg,useFactory:function PSe(){return new qg},deps:[]},{provide:Lw,useClass:MSe,multi:!0,deps:[vo,ur,sy]},{provide:Lw,useClass:NSe,multi:!0,deps:[vo]},{provide:$w,useClass:$w,deps:[Bw,hy,oy,A7]},{provide:Wg,useExisting:$w},{provide:D7,useExisting:hy},{provide:hy,useClass:hy,deps:[vo]},{provide:Bw,useClass:Bw,deps:[Lw,ur]},{provide:_7,useClass:wSe,deps:[]},[]];let bM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:oy,useValue:e.appId},{provide:S7,useExisting:oy},bSe]}}}return t.\u0275fac=function(e){return new(e||t)(xt(L7,12))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[...$7,...B7],imports:[If,wCe]}),t})(),V7=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function BSe(){return new V7(xt(vo))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let wM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new(e||t):xt(z7),i},providedIn:"root"}),t})(),z7=(()=>{class t extends wM{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case To.NONE:return i;case To.HTML:return Id(i,"HTML")?mc(i):t8(this._doc,String(i)).toString();case To.STYLE:return Id(i,"Style")?mc(i):i;case To.SCRIPT:if(Id(i,"Script"))return mc(i);throw new Error("unsafe value used in a script context");case To.URL:return Id(i,"URL")?mc(i):Wx(String(i));case To.RESOURCE_URL:if(Id(i,"ResourceURL"))return mc(i);throw new Error(`unsafe value used in a resource URL context (see ${fx})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${fx})`)}}bypassSecurityTrustHtml(e){return function L1e(t){return new I1e(t)}(e)}bypassSecurityTrustStyle(e){return function B1e(t){return new N1e(t)}(e)}bypassSecurityTrustScript(e){return function $1e(t){return new F1e(t)}(e)}bypassSecurityTrustUrl(e){return function V1e(t){return new P1e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function H1e(t){return new R1e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function zSe(t){return new z7(t.get(vo))}(xt(Ca)),i},providedIn:"root"}),t})();class G7{}class GSe{}const Vh="*";function ul(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ra(t,n=null){return{type:4,styles:n,timings:t}}function W7(t,n=null){return{type:2,steps:t,options:n}}function Or(t){return{type:6,styles:t,offset:null}}function ja(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function q7(t){Promise.resolve().then(t)}class fy{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){q7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Y7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?q7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const CM="!";function X7(t){return new jt(3e3,!1)}function Dke(){return typeof window<"u"&&typeof window.document<"u"}function SM(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ff(t){switch(t.length){case 0:return new fy;case 1:return t[0];default:return new Y7(t)}}function J7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case CM:v=r.get(m);break;case Vh:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function pke(t){return new jt(3502,!1)}();return a}function kM(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&DM(e,"start",t)));break;case"done":t.onDone(()=>i(e&&DM(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&DM(e,"destroy",t)))}}function DM(t,n,e){const o=TM(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function TM(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function yc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function K7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let EM=(t,n)=>!1,Q7=(t,n,e)=>[],Z7=null;function AM(t){const n=t.parentNode||t.host;return n===Z7?null:n}(SM()||typeof Element<"u")&&(Dke()?(Z7=(()=>document.documentElement)(),EM=(t,n)=>{for(;n;){if(n===t)return!0;n=AM(n)}return!1}):EM=(t,n)=>t.contains(n),Q7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let om=null,e9=!1;const t9=EM,n9=Q7;let i9=(()=>{class t{validateStyleProperty(e){return function Eke(t){om||(om=function Ake(){return typeof document<"u"?document.body:null}()||{},e9=!!om.style&&"WebkitAppearance"in om.style);let n=!0;return om.style&&!function Tke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in om.style,!n&&e9&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in om.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return t9(e,i)}getParentElement(e){return AM(e)}query(e,i,r){return n9(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new fy(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),MM=(()=>{class t{}return t.NOOP=new i9,t})();const Mke=1e3,OM="ng-enter",Vw="ng-leave",Hw="ng-trigger",Uw=".ng-trigger",o9="ng-animating",IM=".ng-animating";function Hh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:NM(parseFloat(n[1]),n[2])}function NM(t,n){return"s"===n?t*Mke:t}function zw(t,n,e){return t.hasOwnProperty("duration")?t:function Ike(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(X7()),{duration:0,delay:0,easing:""};r=NM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=NM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function WSe(){return new jt(3100,!1)}()),a=!0),o<0&&(n.push(function qSe(){return new jt(3101,!1)}()),a=!0),a&&n.splice(l,0,X7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function py(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function s9(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Pf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function l9(t,n,e){return e?n+":"+e+";":""}function c9(t){let n="";for(let e=0;e{const o=PM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),SM()&&c9(t))}function sm(t,n){t.style&&(n.forEach((e,i)=>{const r=PM(i);t.style[r]=""}),SM()&&c9(t))}function my(t){return Array.isArray(t)?1==t.length?t[0]:W7(t):t}const FM=new RegExp("{{\\s*(.+?)\\s*}}","g");function u9(t){let n=[];if("string"==typeof t){let e;for(;e=FM.exec(t);)n.push(e[1]);FM.lastIndex=0}return n}function gy(t,n,e){const i=t.toString(),r=i.replace(FM,(o,s)=>{let a=n[s];return null==a&&(e.push(function XSe(t){return new jt(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function Gw(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const Pke=/-+([a-z0-9])/g;function PM(t){return t.replace(Pke,(...n)=>n[1].toUpperCase())}function Rke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _c(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function JSe(t){return new jt(3004,!1)}()}}function d9(t,n){return window.getComputedStyle(t)[n]}const Yw="*";function Hke(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Uke(t,n,e){if(":"==t[0]){const l=function zke(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function cke(t){return new jt(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(h9(r,s));"<"==o[0]&&!(r==Yw&&s==Yw)&&n.push(h9(s,r))}(i,e,n)):e.push(t),e}const Xw=new Set(["true","1"]),Jw=new Set(["false","0"]);function h9(t,n){const e=Xw.has(t)||Jw.has(t),i=Xw.has(n)||Jw.has(n);return(r,o)=>{let s=t==Yw||t==r,a=n==Yw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Xw.has(t):Jw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Xw.has(n):Jw.has(n)),s&&a}}const Gke=new RegExp("s*:selfs*,?","g");function RM(t,n,e,i){return new Wke(t).build(n,e,i)}class Wke{constructor(n){this._driver=n}build(n,e,i){const r=new Xke(e);return this._resetContextStyleTimingState(r),_c(this,my(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function QSe(){return new jt(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function ZSe(){return new jt(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{u9(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Gw(o.values()),e.errors.push(function eke(t,n){return new jt(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=_c(this,my(n.animation),e);return{type:1,matchers:Hke(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:am(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>_c(this,i,e)),options:am(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=_c(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:am(n.options)}}visitAnimate(n,e){const i=function Kke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return jM(zw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=jM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=zw(e,n);return jM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Or({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Or(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Vh?i.push(a):e.errors.push(new jt(3002,!1)):i.push(s9(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function nke(t,n,e,i,r){return new jt(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function Fke(t,n,e){const i=n.params||{},r=u9(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function YSe(t){return new jt(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function ike(){return new jt(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let b=null!=y.offset?y.offset:function Jke(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),C=0;return null!=b&&(o++,C=y.offset=b),l=l||C<0||C>1,a=a||C0&&o{const b=h>0?y==f?1:h*y:s[y],C=b*g;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(v,e),v.offset=b,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:_c(this,my(n.animation),e),options:am(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:am(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:am(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function qke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Gke,"")),t=t.replace(/@\*/g,Uw).replace(/@\w+/g,e=>Uw+"-"+e.slice(1)).replace(/:animating/g,IM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,yc(e.collectedStyles,e.currentQuerySelector,new Map);const a=_c(this,my(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:am(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function ake(){return new jt(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:zw(n.timings,e.errors,!0);return{type:12,animation:_c(this,my(n.animation),e),timings:i,options:null}}}class Xke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function am(t){return t?(t=py(t)).params&&(t.params=function Yke(t){return t?py(t):null}(t.params)):t={},t}function jM(t,n,e){return{duration:t,delay:n,easing:e}}function LM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Kw{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const eDe=new RegExp(":enter","g"),nDe=new RegExp(":leave","g");function BM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new iDe).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class iDe{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Kw;const d=new $M(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Hh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),_c(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[LM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Hh(gy(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Hh(i.duration):null,a=null!=i.delay?Hh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),_c(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qw);const s=Hh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>_c(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Hh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),_c(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return zw(e.params?gy(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Hh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Qw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),_c(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;_c(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Qw={};class $M{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Zw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Hh(i.duration)),null!=i.delay&&(r.delay=Hh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=gy(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new $M(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Qw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new rDe(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(eDe,"."+this._enterClassName)).replace(nDe,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function lke(t){return new jt(3014,!1)}()),a}}class Zw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Zw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vh),this._currentKeyframe.set(e,Vh);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function oDe(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,Vh)}else Pf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=gy(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Vh),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Pf(a,new Map,this._backFill);c.forEach((u,d)=>{u===CM?n.add(d):u===Vh&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?Gw(n.values()):[],s=e.size?Gw(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return LM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class rDe extends Zw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Pf(n[0]);l.set("offset",0),o.push(l);const c=Pf(n[0]);c.set("offset",m9(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Pf(n[d]);const f=h.get("offset");h.set("offset",m9((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return LM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function m9(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class VM{}const sDe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class aDe extends VM{normalizePropertyName(n,e){return PM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(sDe.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function KSe(t,n){return new jt(3005,!1)}())}return s+o}}function g9(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const HM={};class v9{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function lDe(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||HM,p=this.buildStyles(i,a&&a.params||HM,d),m=l&&l.params||HM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,b=new Map,C="void"===r,D={params:cDe(m,h),delay:this.ast.options?.delay},E=u?[]:BM(n,e,this.ast.animation,o,s,p,g,D,c,d);let B=0;if(E.forEach(j=>{B=Math.max(j.duration+j.delay,B)}),d.length)return g9(e,this._triggerName,i,r,C,p,g,[],[],y,b,B,d);E.forEach(j=>{const U=j.element,G=yc(y,U,new Set);j.preStyleProps.forEach(oe=>G.add(oe));const X=yc(b,U,new Set);j.postStyleProps.forEach(oe=>X.add(oe)),U!==e&&v.add(U)});const z=Gw(v.values());return g9(e,this._triggerName,i,r,C,p,g,E,z,y,b,B)}}function cDe(t,n){const e=py(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class uDe{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=py(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=gy(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class hDe{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new uDe(r.style,r.options&&r.options.params||{},i))}),y9(this.states,"true","1"),y9(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new v9(n,r,this.states))}),this.fallbackTransition=function fDe(t,n,e){return new v9(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function y9(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const pDe=new Kw;class mDe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=RM(this._driver,e,i,r);if(i.length)throw function mke(t){return new jt(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=J7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=BM(this._driver,e,o,OM,Vw,new Map,new Map,i,pDe,r),s.forEach(u=>{const d=yc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function gke(){return new jt(3300,!1)}()),s=[]),r.length)throw function vke(t){return new jt(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Vh))})});const c=Ff(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function yke(t){return new jt(3301,!1)}();return e}listen(n,e,i,r){const o=TM(e,"","","");return kM(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const _9="ng-animate-queued",UM="ng-animate-disabled",bDe=[],b9={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xDe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xc="__ng_removed";class zM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function kDe(t){return t??null}(i?n.value:n),i){const o=py(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const vy="void",GM=new zM(vy);class wDe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Jc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function _ke(t,n){return new jt(3302,!1)}();if(null==i||0==i.length)throw function bke(t){return new jt(3303,!1)}();if(!function DDe(t){return"start"==t||"done"==t}(i))throw function xke(t,n){return new jt(3400,!1)}();const o=yc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=yc(this._engine.statesByElement,n,new Map);return a.has(e)||(Jc(n,Hw),Jc(n,Hw+"-"+e),a.set(e,GM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function wke(t){return new jt(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new WM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Jc(n,Hw),Jc(n,Hw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new zM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=GM),c.value!==vy&&l.value===c.value){if(!function ADe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{sm(n,g),jd(n,v)})}return}const h=yc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Jc(n,_9),s.onStart(()=>{pv(n,_9)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Uw,!0);i.forEach(r=>{if(r[Xc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,vy,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Ff(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||GM,u=new zM(vy),d=new WM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Xc];(!o||o===b9)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Jc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=TM(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,kM(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class CDe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new wDe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(eC(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!eC(e))return;const o=e[Xc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Jc(n,UM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),pv(n,UM))}removeNode(n,e,i,r){if(eC(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Xc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return eC(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Uw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,IM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ff(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Xc];if(e&&e.setForRemoval){if(n[Xc]=b9,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(UM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ff(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function Cke(t){return new jt(3402,!1)}()}_flushAnimations(n,e){const i=new Kw,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(J=>{u.add(J);const H=this.driver.query(J,".ng-animate-queued",!0);for(let pe=0;pe{const pe=OM+m++;p.set(H,pe),J.forEach(A=>Jc(A,pe))});const g=[],v=new Set,y=new Set;for(let J=0;Jv.add(A)):y.add(H))}const b=new Map,C=C9(h,Array.from(v));C.forEach((J,H)=>{const pe=Vw+m++;b.set(H,pe),J.forEach(A=>Jc(A,pe))}),n.push(()=>{f.forEach((J,H)=>{const pe=p.get(H);J.forEach(A=>pv(A,pe))}),C.forEach((J,H)=>{const pe=b.get(H);J.forEach(A=>pv(A,pe))}),g.forEach(J=>{this.processLeaveNode(J)})});const D=[],E=[];for(let J=this._namespaceList.length-1;J>=0;J--)this._namespaceList[J].drainQueuedTransitions(e).forEach(pe=>{const A=pe.player,N=pe.element;if(D.push(A),this.collectedEnterElements.length){const Te=N[Xc];if(Te&&Te.setForMove){if(Te.previousTriggersValues&&Te.previousTriggersValues.has(pe.triggerName)){const et=Te.previousTriggersValues.get(pe.triggerName),We=this.statesByElement.get(pe.element);if(We&&We.has(pe.triggerName)){const st=We.get(pe.triggerName);st.value=et,We.set(pe.triggerName,st)}}return void A.destroy()}}const F=!d||!this.driver.containsElement(d,N),q=b.get(N),V=p.get(N),ce=this._buildInstruction(pe,i,V,q,F);if(ce.errors&&ce.errors.length)return void E.push(ce);if(F)return A.onStart(()=>sm(N,ce.fromStyles)),A.onDestroy(()=>jd(N,ce.toStyles)),void r.push(A);if(pe.isFallbackTransition)return A.onStart(()=>sm(N,ce.fromStyles)),A.onDestroy(()=>jd(N,ce.toStyles)),void r.push(A);const ve=[];ce.timelines.forEach(Te=>{Te.stretchStartingKeyframe=!0,this.disabledNodes.has(Te.element)||ve.push(Te)}),ce.timelines=ve,i.append(N,ce.timelines),s.push({instruction:ce,player:A,element:N}),ce.queriedElements.forEach(Te=>yc(a,Te,[]).push(A)),ce.preStyleProps.forEach((Te,et)=>{if(Te.size){let We=l.get(et);We||l.set(et,We=new Set),Te.forEach((st,$)=>We.add($))}}),ce.postStyleProps.forEach((Te,et)=>{let We=c.get(et);We||c.set(et,We=new Set),Te.forEach((st,$)=>We.add($))})});if(E.length){const J=[];E.forEach(H=>{J.push(function Ske(t,n){return new jt(3505,!1)}())}),D.forEach(H=>H.destroy()),this.reportError(J)}const B=new Map,z=new Map;s.forEach(J=>{const H=J.element;i.has(H)&&(z.set(H,H),this._beforeAnimationBuild(J.player.namespaceId,J.instruction,B))}),r.forEach(J=>{const H=J.element;this._getPreviousPlayers(H,!1,J.namespaceId,J.triggerName,null).forEach(A=>{yc(B,H,[]).push(A),A.destroy()})});const j=g.filter(J=>k9(J,l,c)),U=new Map;w9(U,this.driver,y,c,Vh).forEach(J=>{k9(J,l,c)&&j.push(J)});const X=new Map;f.forEach((J,H)=>{w9(X,this.driver,new Set(J),l,CM)}),j.forEach(J=>{const H=U.get(J),pe=X.get(J);U.set(J,new Map([...Array.from(H?.entries()??[]),...Array.from(pe?.entries()??[])]))});const oe=[],P=[],W={};s.forEach(J=>{const{element:H,player:pe,instruction:A}=J;if(i.has(H)){if(u.has(H))return pe.onDestroy(()=>jd(H,A.toStyles)),pe.disabled=!0,pe.overrideTotalTime(A.totalTime),void r.push(pe);let N=W;if(z.size>1){let q=H;const V=[];for(;q=q.parentNode;){const ce=z.get(q);if(ce){N=ce;break}V.push(q)}V.forEach(ce=>z.set(ce,N))}const F=this._buildAnimation(pe.namespaceId,A,B,o,X,U);if(pe.setRealPlayer(F),N===W)oe.push(pe);else{const q=this.playersByElement.get(N);q&&q.length&&(pe.parentPlayer=Ff(q)),r.push(pe)}}else sm(H,A.fromStyles),pe.onDestroy(()=>jd(H,A.toStyles)),P.push(pe),u.has(H)&&r.push(pe)}),P.forEach(J=>{const H=o.get(J.element);if(H&&H.length){const pe=Ff(H);J.setRealPlayer(pe)}}),r.forEach(J=>{J.parentPlayer?J.syncPlayerEvents(J.parentPlayer):J.destroy()});for(let J=0;J!F.destroyed);N.length?TDe(this,H,N):this.processLeaveNode(H)}return g.length=0,oe.forEach(J=>{this.players.push(J),J.onDone(()=>{J.destroy();const H=this.players.indexOf(J);this.players.splice(H,1)}),J.play()}),oe}elementContainsData(n,e){let i=!1;const r=e[Xc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==vy;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=yc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}sm(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[Xc];if(g&&g.removedBeforeQueried)return new fy(p.duration,p.delay);const v=m!==l,y=function EDe(t){const n=[];return S9(t,n),n}((i.get(m)||bDe).map(B=>B.getRealPlayer())).filter(B=>!!B.element&&B.element===m),b=o.get(m),C=s.get(m),D=J7(0,this._normalizer,0,p.keyframes,b,C),E=this._buildPlayer(p,D,y);if(p.subTimeline&&r&&d.add(m),v){const B=new WM(n,a,m);B.setRealPlayer(E),c.push(B)}return E});c.forEach(p=>{yc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function SDe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Jc(p,o9));const f=Ff(h);return f.onDestroy(()=>{u.forEach(p=>pv(p,o9)),jd(l,e.toStyles)}),d.forEach(p=>{yc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new fy(n.duration,n.delay)}}class WM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new fy,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>kM(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){yc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function eC(t){return t&&1===t.nodeType}function x9(t,n){const e=t.style.display;return t.style.display=n??"none",e}function w9(t,n,e,i,r){const o=[];e.forEach(l=>o.push(x9(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Xc]=xDe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>x9(l,o[a++])),s}function C9(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Jc(t,n){t.classList?.add(n)}function pv(t,n){t.classList?.remove(n)}function TDe(t,n,e){Ff(e).onDone(()=>t.processLeaveNode(n))}function S9(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class tC{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new CDe(n,e,i),this._timelineEngine=new mDe(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=RM(this._driver,o,l,c);if(l.length)throw function fke(t,n){return new jt(3404,!1)}();a=function dDe(t,n,e){return new hDe(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=K7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=K7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ODe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&jd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jd(this._element,this._initialStyles),this._endStyles&&(jd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sm(this._element,this._endStyles),this._endStyles=null),jd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function qM(t){let n=null;return t.forEach((e,i)=>{(function IDe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class D9{constructor(n,e,i,r){this.element=n,this.keyframes=e,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._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:d9(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class NDe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return t9(n,e)}getParentElement(n){return AM(n)}query(n,e,i){return n9(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof D9);(function jke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function Nke(t){return t.length?t[0]instanceof Map?t:t.map(n=>s9(n)):[]}(e).map(f=>Pf(f));d=function Lke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,d9(t,a)))}}return n}(n,d,c);const h=function MDe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=qM(n[0]),n.length>1&&(i=qM(n[n.length-1]))):n instanceof Map&&(e=qM(n)),e||i?new ODe(t,e,i):null}(n,d);return new D9(n,d,l,h)}}let FDe=(()=>{class t extends G7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Su.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?W7(e):e;return T9(this._renderer,null,i,"register",[r]),new PDe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(xt(Wg),xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class PDe extends GSe{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new RDe(this._id,n,e||{},this._renderer)}}class RDe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return T9(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function T9(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const E9="@.disabled";let jDe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new A9("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new LDe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(xt(Wg),xt(tC),xt(ur))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class A9{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==E9?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class LDe extends A9{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==E9?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function BDe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function $De(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let VDe=(()=>{class t extends tC{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(xt(vo),xt(MM),xt(VM),xt(jh))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const M9=[{provide:G7,useClass:FDe},{provide:VM,useFactory:function HDe(){return new aDe}},{provide:tC,useClass:VDe},{provide:Wg,useFactory:function UDe(t,n,e){return new jDe(t,n,e)},deps:[$w,tC,ur]}],YM=[{provide:MM,useFactory:()=>new NDe},{provide:p$,useValue:"BrowserAnimations"},...M9],XM=[{provide:MM,useClass:i9},{provide:p$,useValue:"NoopAnimations"},...M9];let zDe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?XM:YM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:YM,imports:[bM]}),t})(),GDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:XM,imports:[bM]}),t})();function Hn(...t){let n=t[t.length-1];return fi(n)?(t.pop(),ia(t,n)):at(t)}class ca extends fn{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Cn;return this._value}next(n){super.next(this._value=n)}}const iC=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class JM extends I{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class WDe extends I{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function KM(t,n,e,i,r=new WDe(t,e,i)){if(!r.closed)return n instanceof Wt?n.subscribe(r):nl(n)(r)}const O9={};function rC(...t){let n,e;return fi(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Se(t[0])&&(t=t[0]),at(t,e).lift(new qDe(n))}class qDe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new YDe(n,this.resultSelector))}}class YDe extends JM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(O9),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function sC(t){return t?function JDe(t){return new Wt(n=>t.schedule(()=>n.complete()))}(t):Uh}function I9(t){return new Wt(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?ho(e):sC()).subscribe(n)})}function Rf(t,n){return new Wt(n?e=>n.schedule(KDe,0,{error:t,subscriber:e}):e=>e.error(t))}function KDe({error:t,subscriber:n}){n.error(t)}function bc(t,n){return"function"==typeof n?e=>e.pipe(bc((i,r)=>ho(t(i,r)).pipe($t((o,s)=>n(i,o,r,s))))):e=>e.lift(new QDe(t))}class QDe{constructor(n){this.project=n}call(n,e){return e.subscribe(new ZDe(n,this.project))}}class ZDe extends Y{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Hl(this),r=this.destination;r.add(i),this.innerSubscription=Le(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const N9=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function ua(t){return n=>0===t?sC():n.lift(new eTe(t))}class eTe{constructor(n){if(this.total=n,this.total<0)throw new N9}call(n,e){return e.subscribe(new tTe(n,this.total))}}class tTe extends I{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function aC(...t){const n=t[t.length-1];return fi(n)?(t.pop(),e=>oC(t,e,n)):e=>oC(t,e)}function ps(t,n){return function(i){return i.lift(new nTe(t,n))}}class nTe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new iTe(n,this.predicate,this.thisArg))}}class iTe extends I{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function lC(t=null){return n=>n.lift(new rTe(t))}class rTe{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new oTe(n,this.defaultValue))}}class oTe extends I{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function F9(t=lTe){return n=>n.lift(new sTe(t))}class sTe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new aTe(n,this.errorFactory))}}class aTe extends I{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function lTe(){return new iC}function jf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ps((r,o)=>t(r,o,i)):ht,ua(1),e?lC(n):F9(()=>new iC))}function Lf(t,n){return it(t,n,1)}function zh(){}function ms(t,n,e){return function(r){return r.lift(new cTe(t,n,e))}}class cTe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new uTe(n,this.nextOrObserver,this.error,this.complete))}}class uTe extends I{constructor(n,e,i,r){super(n),this._tapNext=zh,this._tapError=zh,this._tapComplete=zh,this._tapError=i||zh,this._tapComplete=r||zh,be(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||zh,this._tapError=e.error||zh,this._tapComplete=e.complete||zh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Jl(t){return function(e){const i=new dTe(t),r=e.lift(i);return i.caught=r}}class dTe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new hTe(n,this.selector,this.caught))}}class hTe extends Y{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Hl(this);this.add(i);const r=Le(e,i);r!==i&&this.add(r)}}}function P9(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new fTe(t,n,e))}}class fTe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new pTe(n,this.accumulator,this.seed,this.hasSeed))}}class pTe extends I{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function QM(t){return function(e){return 0===t?sC():e.lift(new mTe(t))}}class mTe{constructor(n){if(this.total=n,this.total<0)throw new N9}call(n,e){return e.subscribe(new gTe(n,this.total))}}class gTe extends I{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?ps((r,o)=>t(r,o,i)):ht,QM(1),e?lC(n):F9(()=>new iC))}class yTe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new _Te(n,this.predicate,this.inclusive))}}class _Te extends I{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class xTe{constructor(n){this.value=n}call(n,e){return e.subscribe(new wTe(n,this.value))}}class wTe extends I{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function ZM(t){return n=>n.lift(new CTe(t))}class CTe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new STe(n,this.callback))}}class STe extends I{constructor(n,e){super(n),this.add(new re(e))}}const Ki="primary",yy=Symbol("RouteTitle");class kTe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mv(t){return new kTe(t)}function DTe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function L9(t){return Array.prototype.concat.apply([],t)}function B9(t){return t.length>0?t[t.length-1]:null}function La(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Bf(t){return sA(t)?t:q1(t)?ho(Promise.resolve(t)):Hn(t)}const cC=!1,ETe={exact:function H9(t,n,e){if(!lm(t.segments,n.segments)||!uC(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!H9(t.children[i],n.children[i],e))return!1;return!0},subset:U9},$9={exact:function ATe(t,n){return Ld(t,n)},subset:function MTe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>j9(t[e],n[e]))},ignored:()=>!0};function V9(t,n,e){return ETe[e.paths](t.root,n.root,e.matrixParams)&&$9[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function U9(t,n,e){return z9(t,n,n.segments,e)}function z9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!lm(r,e)||n.hasChildren()||!uC(r,e,i))}if(t.segments.length===e.length){if(!lm(t.segments,e)||!uC(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!U9(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(lm(t.segments,r)&&uC(t.segments,r,i)&&t.children[Ki])&&z9(t.children[Ki],n,o,i)}}function uC(t,n,e){return n.every((i,r)=>$9[e](t[r].parameters,i.parameters))}class $f{constructor(n=new pr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mv(this.queryParams)),this._queryParamMap}toString(){return NTe.serialize(this)}}class pr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,La(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dC(this)}}class _y{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mv(this.parameters)),this._parameterMap}toString(){return q9(this)}}function lm(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let by=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return new e3},providedIn:"root"}),t})();class e3{parse(n){const e=new HTe(n);return new $f(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${xy(n.root,!0)}`,i=function RTe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${hC(e)}=${hC(r)}`).join("&"):`${hC(e)}=${hC(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function FTe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const NTe=new e3;function dC(t){return t.segments.map(n=>q9(n)).join("/")}function xy(t,n){if(!t.hasChildren())return dC(t);if(n){const e=t.children[Ki]?xy(t.children[Ki],!1):"",i=[];return La(t.children,(r,o)=>{o!==Ki&&i.push(`${o}:${xy(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function ITe(t,n){let e=[];return La(t.children,(i,r)=>{r===Ki&&(e=e.concat(n(i,r)))}),La(t.children,(i,r)=>{r!==Ki&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===Ki?[xy(t.children[Ki],!1)]:[`${r}:${xy(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ki]?`${dC(t)}/${e[0]}`:`${dC(t)}/(${e.join("//")})`}}function G9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hC(t){return G9(t).replace(/%3B/gi,";")}function t3(t){return G9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fC(t){return decodeURIComponent(t)}function W9(t){return fC(t.replace(/\+/g,"%20"))}function q9(t){return`${t3(t.path)}${function PTe(t){return Object.keys(t).map(n=>`;${t3(n)}=${t3(t[n])}`).join("")}(t.parameters)}`}const jTe=/^[^\/()?;=#]+/;function pC(t){const n=t.match(jTe);return n?n[0]:""}const LTe=/^[^=?&#]+/,$Te=/^[^&#]+/;class HTe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pr([],{}):new pr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Ki]=new pr(n,e)),i}parseSegment(){const n=pC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new jt(4009,cC);return this.capture(n),new _y(fC(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=pC(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=pC(this.remaining);r&&(i=r,this.capture(i))}n[fC(e)]=fC(i)}parseQueryParam(n){const e=function BTe(t){const n=t.match(LTe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function VTe(t){const n=t.match($Te);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=W9(e),o=W9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=pC(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new jt(4010,cC);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Ki);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ki]:new pr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new jt(4011,cC)}}function n3(t){return t.segments.length>0?new pr([],{[Ki]:t}):t}function mC(t){const n={};for(const i of Object.keys(t.children)){const o=mC(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function UTe(t){if(1===t.numberOfChildren&&t.children[Ki]){const n=t.children[Ki];return new pr(t.segments.concat(n.segments),n.children)}return t}(new pr(t.segments,n))}function cm(t){return t instanceof $f}const r3=!1;function zTe(t,n,e,i,r){if(0===e.length)return gv(n.root,n.root,n.root,i,r);const o=function Q9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new K9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return La(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new K9(e,n,i)}(e);return o.toRoot()?gv(n.root,n.root,new pr([],{}),i,r):function s(l){const c=function WTe(t,n,e,i){if(t.isAbsolute)return new vv(n.root,!0,0);if(-1===i)return new vv(e,e===n.root,0);return function Z9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new jt(4005,r3&&"Invalid number of '../'");r=i.segments.length}return new vv(i,!1,r-o)}(e,i+(wy(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?yv(c.segmentGroup,c.index,o.commands):o3(c.segmentGroup,c.index,o.commands);return gv(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function wy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Cy(t){return"object"==typeof t&&null!=t&&t.outlets}function gv(t,n,e,i,r){let s,o={};i&&La(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:J9(t,n,e);const a=n3(mC(s));return new $f(a,o,r)}function J9(t,n,e){const i={};return La(t.children,(r,o)=>{i[o]=r===n?e:J9(r,n,e)}),new pr(t.segments,i)}class K9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&wy(i[0]))throw new jt(4003,r3&&"Root segment cannot have matrix parameters");const r=i.find(Cy);if(r&&r!==B9(i))throw new jt(4004,r3&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vv{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function o3(t,n,e){if(t||(t=new pr([],{})),0===t.segments.length&&t.hasChildren())return yv(t,n,e);const i=function YTe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(Cy(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!tV(l,c,s))return o;i+=2}else{if(!tV(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=o3(t.children[s],n,o))}),La(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new pr(t.segments,r)}}function s3(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=s3(new pr([],{}),0,e))}),n}function eV(t){const n={};return La(t,(e,i)=>n[i]=`${e}`),n}function tV(t,n,e){return t==e.path&&Ld(n,e.parameters)}const Sy="imperative";class Bd{constructor(n,e){this.id=n,this.url=e}}class gC extends Bd{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gh extends Bd{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ky extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vC extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class yC extends Bd{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class JTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QTe extends Bd{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ZTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eEe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tEe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nEe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iEe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rEe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oEe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sEe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nV{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let cEe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return zTe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),dEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(n){return cEe.\u0275fac(n)},providedIn:"root"}),t})();class iV{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=a3(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=a3(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=l3(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return l3(n,this._root).map(e=>e.value)}}function a3(t,n){if(t===n.value)return n;for(const e of n.children){const i=a3(t,e);if(i)return i}return null}function l3(t,n){if(t===n.value)return[n];for(const e of n.children){const i=l3(t,e);if(i.length)return i.unshift(n),i}return[]}class Wh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function _v(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class rV extends iV{constructor(n,e){super(n),this.snapshot=e,c3(this,n)}toString(){return this.snapshot.toString()}}function oV(t,n){const e=function hEe(t,n){const s=new _C([],{},{},"",{},Ki,n,null,t.root,-1,{});return new aV("",new Wh(s,[]))}(t,n),i=new ca([new _y("",{})]),r=new ca({}),o=new ca({}),s=new ca({}),a=new ca(""),l=new Vr(i,r,s,a,o,Ki,n,e.root);return l.snapshot=e.root,new rV(new Wh(l,[]),e)}class Vr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe($t(c=>c[yy]))??Hn(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($t(n=>mv(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($t(n=>mv(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sV(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function fEe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class _C{get title(){return this.data?.[yy]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=mv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class aV extends iV{constructor(n,e){super(e),this.url=n,c3(this,e)}toString(){return lV(this._root)}}function c3(t,n){n.value._routerState=t,n.children.forEach(e=>c3(t,e))}function lV(t){const n=t.children.length>0?` { ${t.children.map(lV).join(", ")} } `:"";return`${t.value}${n}`}function u3(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ld(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Ld(n.params,e.params)||t.params.next(e.params),function TTe(t,n){if(t.length!==n.length)return!1;for(let e=0;eLd(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||d3(t.parent,n.parent))}function Dy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function mEe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Dy(t,i,r);return Dy(t,i)})}(t,n,e);return new Wh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Dy(t,a)),s}}const i=function gEe(t){return new Vr(new ca(t.url),new ca(t.params),new ca(t.queryParams),new ca(t.fragment),new ca(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>Dy(t,o));return new Wh(i,r)}}const h3="ngNavigationCancelingError";function cV(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=cm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=uV(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function uV(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[h3]=!0,i.cancellationCode=n,e&&(i.url=e),i}function dV(t){return hV(t)&&cm(t.url)}function hV(t){return t&&t[h3]}class vEe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ty,this.attachRef=null}}let Ty=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new vEe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const bC=!1;let Vf=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ki,this.activateEvents=new ot,this.deactivateEvents=new ot,this.attachEvents=new ot,this.detachEvents=new ot,this.parentContexts=Vi(Ty),this.location=Vi(Yl),this.changeDetector=Vi($s),this.environmentInjector=Vi(Gc)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new jt(4012,bC);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new jt(4012,bC);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new jt(4012,bC);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new jt(4013,bC);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yEe(e,a,r.injector);if(i&&function _Ee(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ei]}),t})();class yEe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Vr?this.route:n===Ty?this.childContexts:this.parent.get(n,e)}}let f3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ng-component"]],standalone:!0,features:[Bs],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"router-outlet")},dependencies:[Vf],encapsulation:2}),t})();function fV(t,n){return t.providers&&!t._injector&&(t._injector=pw(t.providers,n,`Route: ${t.path}`)),t._injector??n}function m3(t){const n=t.children&&t.children.map(m3),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ki&&(e.component=f3),e}function Kc(t){return t.outlet||Ki}function pV(t,n){const e=t.filter(i=>Kc(i)===n);return e.push(...t.filter(i=>Kc(i)!==n)),e}function Ey(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class SEe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),u3(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=_v(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),La(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=_v(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=_v(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=_v(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new sEe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new rEe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(u3(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),u3(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ey(r.snapshot),l=a?.get(zg)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class mV{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class xC{constructor(n,e){this.component=n,this.route=e}}function kEe(t,n,e){const i=t._root;return Ay(i,n?n._root:null,e,[i.value])}function bv(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Tve(t){return null!==gx(t)}(t)?n.get(t):t:i}function Ay(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=_v(n);return t.children.forEach(s=>{(function TEe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function EEe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!lm(t.url,n.url);case"pathParamsOrQueryParamsChange":return!lm(t.url,n.url)||!Ld(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!d3(t,n)||!Ld(t.queryParams,n.queryParams);default:return!d3(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new mV(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ay(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new xC(a.outlet.component,s))}else s&&My(n,a,r),r.canActivateChecks.push(new mV(i)),Ay(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),La(o,(s,a)=>My(s,e.getContext(a),r)),r}function My(t,n,e){const i=_v(t),r=t.value;La(i,(o,s)=>{My(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new xC(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Oy(t){return"function"==typeof t}function g3(t){return t instanceof iC||"EmptyError"===t?.name}const wC=Symbol("INITIAL_VALUE");function xv(){return bc(t=>rC(t.map(n=>n.pipe(ua(1),aC(wC)))).pipe($t(n=>{for(const e of n)if(!0!==e){if(e===wC)return wC;if(!1===e||e instanceof $f)return e}return!0}),ps(n=>n!==wC),ua(1)))}function gV(t){return function yt(...t){return Zt(t)}(ms(n=>{if(cm(n))throw cV(0,n)}),$t(n=>!0===n))}const v3={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vV(t,n,e,i,r){const o=y3(t,n,e);return o.matched?function GEe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Hn(r.map(s=>{const a=bv(s,t);return Bf(function FEe(t){return t&&Oy(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(xv(),gV()):Hn(!0)}(i=fV(n,i),n,e).pipe($t(s=>!0===s?o:{...v3})):Hn(o)}function y3(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...v3}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||DTe)(e,t,n);if(!r)return{...v3};const o={};La(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function CC(t,n,e,i){if(e.length>0&&function YEe(t,n,e){return e.some(i=>SC(t,n,i)&&Kc(i)!==Ki)}(t,e,i)){const o=new pr(n,function qEe(t,n,e,i){const r={};r[Ki]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Kc(o)!==Ki){const s=new pr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Kc(o)]=s}return r}(t,n,i,new pr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function XEe(t,n,e){return e.some(i=>SC(t,n,i))}(t,e,i)){const o=new pr(t.segments,function WEe(t,n,e,i,r){const o={};for(const s of i)if(SC(t,e,s)&&!r[Kc(s)]){const a=new pr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Kc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new pr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function SC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function yV(t,n,e,i){return!!(Kc(t)===i||i!==Ki&&SC(n,e,t))&&("**"===t.path||y3(n,t,e).matched)}function _V(t,n,e){return 0===n.length&&!t.children[e]}const kC=!1;class DC{constructor(n){this.segmentGroup=n||null}}class bV{constructor(n){this.urlTree=n}}function Iy(t){return Rf(new DC(t))}function xV(t){return Rf(new bV(t))}function JEe(t){return Rf(new jt(4e3,kC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class ZEe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=CC(this.urlTree.root,[],[],this.config).segmentGroup,e=new pr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Ki).pipe($t(o=>this.createUrlTree(mC(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Jl(o=>{if(o instanceof bV)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof DC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Ki).pipe($t(r=>this.createUrlTree(mC(r),n.queryParams,n.fragment))).pipe(Jl(r=>{throw r instanceof DC?this.noMatchError(r):r}))}noMatchError(n){return new jt(4002,kC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=n3(n);return new $f(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe($t(o=>new pr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return ho(r).pipe(Lf(o=>{const s=i.children[o],a=pV(e,o);return this.expandSegmentGroup(n,a,s,o).pipe($t(l=>({segment:l,outlet:o})))}),P9((o,s)=>(o[s.outlet]=s.segment,o),{}),R9())}expandSegment(n,e,i,r,o,s){return ho(i).pipe(Lf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Jl(c=>{if(c instanceof DC)return Hn(null);throw c}))),jf(a=>!!a),Jl((a,l)=>{if(g3(a))return _V(e,r,o)?Hn(new pr([],{})):Iy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return yV(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):Iy(e):Iy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?xV(o):this.lineralizeSegments(i,o).pipe(it(s=>{const a=new pr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=y3(e,r,o);if(!a)return Iy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?xV(d):this.lineralizeSegments(r,d).pipe(it(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=fV(i,n),i.loadChildren?(i._loadedRoutes?Hn({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe($t(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new pr(r,{})))):Hn(new pr(r,{}))):vV(e,i,r,n).pipe(bc(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(it(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=CC(e,a,l,h),m=new pr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe($t(b=>new pr(a,b)));if(0===h.length&&0===p.length)return Hn(new pr(a,{}));const g=Kc(i)===o;return this.expandSegment(d,m,h,p,g?Ki:o,!0).pipe($t(y=>new pr(a.concat(y.segments),y.children)))})):Iy(e)))}getChildConfig(n,e,i){return e.children?Hn({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Hn({routes:e._loadedRoutes,injector:e._loadedInjector}):function zEe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Hn(!0):Hn(r.map(s=>{const a=bv(s,t);return Bf(function MEe(t){return t&&Oy(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(xv(),gV())}(n,e,i).pipe(it(r=>r?this.configLoader.loadChildren(n,e).pipe(ms(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function KEe(t){return Rf(uV(kC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):Hn({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Hn(i);if(r.numberOfChildren>1||!r.children[Ki])return JEe(n.redirectTo);r=r.children[Ki]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new $f(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return La(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return La(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new pr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new jt(4001,kC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class tAe{}class rAe{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=CC(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ki).pipe($t(e=>{if(null===e)return null;const i=new _C([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ki,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Wh(i,e),o=new aV(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=sV(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return ho(Object.keys(i.children)).pipe(Lf(r=>{const o=i.children[r],s=pV(e,r);return this.processSegmentGroup(n,s,o,r)}),P9((r,o)=>r&&o?(r.push(...o),r):null),function vTe(t,n=!1){return e=>e.lift(new yTe(t,n))}(r=>null!==r),lC(null),R9(),$t(r=>{if(null===r)return null;const o=CV(r);return function oAe(t){t.sort((n,e)=>n.value.outlet===Ki?-1:e.value.outlet===Ki?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return ho(e).pipe(Lf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),jf(s=>!!s),Jl(s=>{if(g3(s))return _V(i,r,o)?Hn([]):Hn(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!yV(e,i,r,o))return Hn(null);let s;if("**"===e.path){const a=r.length>0?B9(r).parameters:{},l=kV(i)+r.length;s=Hn({snapshot:new _C(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DV(e),Kc(e),e.component??e._loadedComponent??null,e,SV(i),l,TV(e)),consumedSegments:[],remainingSegments:[]})}else s=vV(i,e,r,n).pipe($t(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=kV(i)+l.length;return{snapshot:new _C(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DV(e),Kc(e),e.component??e._loadedComponent??null,e,SV(i),d,TV(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(bc(a=>{if(null===a)return Hn(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function sAe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=CC(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe($t(g=>null===g?null:[new Wh(l,g)]));if(0===h.length&&0===p.length)return Hn([new Wh(l,[])]);const m=Kc(e)===o;return this.processSegment(d,h,f,p,m?Ki:o).pipe($t(g=>null===g?null:[new Wh(l,g)]))}))}}function aAe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function CV(t){const n=[],e=new Set;for(const i of t){if(!aAe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=CV(i.children);n.push(new Wh(i.value,r))}return n.filter(i=>!e.has(i))}function SV(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function kV(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function DV(t){return t.data||{}}function TV(t){return t.resolve||{}}function EV(t){return"string"==typeof t.title||null===t.title}function _3(t){return bc(n=>{const e=t(n);return e?ho(e).pipe($t(()=>n)):Hn(n)})}const wv=new Yn("ROUTES");let b3=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Vi(m$)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Hn(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Bf(e.loadComponent()).pipe($t(MV),ms(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ZM(()=>{this.componentLoaders.delete(e)})),r=new _e(i,()=>new fn).pipe(Yt());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Hn({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe($t(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=L9(l.get(wv,[],Oi.Self|Oi.Optional)));return{routes:c.map(m3),injector:l}}),ZM(()=>{this.childrenLoaders.delete(i)})),s=new _e(o,()=>new fn).pipe(Yt());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Bf(e()).pipe($t(MV),it(i=>i instanceof EB||Array.isArray(i)?Hn(i):ho(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function MV(t){return function mAe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let EC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new fn,this.configLoader=Vi(b3),this.environmentInjector=Vi(Gc),this.urlSerializer=Vi(by),this.rootContexts=Vi(Ty),this.navigationId=0,this.afterPreactivation=()=>Hn(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new nEe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new tEe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new ca({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Sy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ps(i=>0!==i.id),$t(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),bc(i=>{let r=!1,o=!1;return Hn(i).pipe(ms(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),bc(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new vC(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Uh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return OV(s.source)&&(e.browserUrlTree=s.extractedUrl),Hn(s).pipe(bc(u=>{const d=this.transitions?.getValue();return this.events.next(new gC(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Uh:Promise.resolve(u)}),function eAe(t,n,e,i){return bc(r=>function QEe(t,n,e,i,r){return new ZEe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe($t(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),ms(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function cAe(t,n,e,i,r){return it(o=>function iAe(t,n,e,i,r,o,s="emptyOnly"){return new rAe(t,n,e,i,r,s,o).recognize().pipe(bc(a=>null===a?function nAe(t){return new Wt(n=>n.error(t))}(new tAe):Hn(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe($t(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),ms(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(h,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new JTe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new gC(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=oV(d,this.rootComponentType).snapshot;return Hn(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new vC(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Uh}}),ms(s=>{const a=new KTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),$t(s=>i={...s,guards:kEe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function REe(t,n){return it(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Hn({...e,guardsResult:!0}):function jEe(t,n,e,i){return ho(t).pipe(it(r=>function UEe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Hn(o.map(a=>{const l=Ey(n)??r,c=bv(a,l);return Bf(function NEe(t){return t&&Oy(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(jf())})).pipe(xv()):Hn(!0)}(r.component,r.route,e,n,i)),jf(r=>!0!==r,!0))}(s,i,r,t).pipe(it(a=>a&&function AEe(t){return"boolean"==typeof t}(a)?function LEe(t,n,e,i){return ho(n).pipe(Lf(r=>oC(function $Ee(t,n){return null!==t&&n&&n(new iEe(t)),Hn(!0)}(r.route.parent,i),function BEe(t,n){return null!==t&&n&&n(new oEe(t)),Hn(!0)}(r.route,i),function HEe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function DEe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>I9(()=>Hn(s.guards.map(l=>{const c=Ey(s.node)??e,u=bv(l,c);return Bf(function IEe(t){return t&&Oy(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(jf())})).pipe(xv())));return Hn(o).pipe(xv())}(t,r.path,e),function VEe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Hn(!0);const r=i.map(o=>I9(()=>{const s=Ey(n)??e,a=bv(o,s);return Bf(function OEe(t){return t&&Oy(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(jf())}));return Hn(r).pipe(xv())}(t,r.route,e))),jf(r=>!0!==r,!0))}(i,o,t,n):Hn(a)),$t(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ms(s=>{if(i.guardsResult=s.guardsResult,cm(s.guardsResult))throw cV(0,s.guardsResult);const a=new QTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ps(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),_3(s=>{if(s.guards.canActivateChecks.length)return Hn(s).pipe(ms(a=>{const l=new ZTe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),bc(a=>{let l=!1;return Hn(a).pipe(function uAe(t,n){return it(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Hn(e);let o=0;return ho(r).pipe(Lf(s=>function dAe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!EV(r)&&(o[yy]=r.title),function hAe(t,n,e,i){const r=function fAe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return Hn({});const o={};return ho(r).pipe(it(s=>function pAe(t,n,e,i){const r=Ey(n)??i,o=bv(t,r);return Bf(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(jf(),ms(a=>{o[s]=a}))),QM(1),function bTe(t){return n=>n.lift(new xTe(t))}(o),Jl(s=>g3(s)?Uh:Rf(s)))}(o,t,n,i).pipe($t(s=>(t._resolvedData=s,t.data=sV(t,e).resolve,r&&EV(r)&&(t.data[yy]=r.title),null)))}(s.route,i,t,n)),ms(()=>o++),QM(1),it(s=>o===r.length?Hn(e):Uh))})}(e.paramsInheritanceStrategy,this.environmentInjector),ms({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ms(a=>{const l=new eEe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),_3(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(ms(u=>{l.component=u}),$t(()=>{})));for(const u of l.children)c.push(...a(u));return c};return rC(a(s.targetSnapshot.root)).pipe(lC(),ua(1))}),_3(()=>this.afterPreactivation()),$t(s=>{const a=function pEe(t,n,e){const i=Dy(t,n._root,e?e._root:void 0);return new rV(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),ms(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>$t(i=>(new SEe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),ua(1),ms({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Gh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),ZM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Jl(s=>{if(o=!0,hV(s)){dV(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ky(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),dV(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||OV(i.source)};e.scheduleNavigation(l,Sy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new yC(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Uh}))}))}cancelNavigationTransition(e,i,r){const o=new ky(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function OV(t){return t!==Sy}let IV=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ki);return i}getResolvedTitleForRoute(e){return e.data[yy]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(gAe)},providedIn:"root"}),t})(),gAe=(()=>{class t extends IV{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(xt(V7))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(_Ae)},providedIn:"root"}),t})();class yAe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let _Ae=(()=>{class t extends yAe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const AC=new Yn("",{providedIn:"root",factory:()=>({})});let xAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(wAe)},providedIn:"root"}),t})(),wAe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function CAe(t){throw t}function SAe(t,n,e){return n.parse("/")}const kAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},DAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let yr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Vi(Hwe),this.isNgZoneEnabled=!1,this.options=Vi(AC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||CAe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||SAe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Vi(xAe),this.routeReuseStrategy=Vi(vAe),this.urlCreationStrategy=Vi(dEe),this.titleStrategy=Vi(IV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=L9(Vi(wv,{optional:!0})??[]),this.navigationTransitions=Vi(EC),this.urlSerializer=Vi(by),this.location=Vi(KA),this.isNgZoneEnabled=Vi(ur)instanceof ur&&ur.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new $f,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=oV(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Sy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(m3),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=cm(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Sy,null,i)}navigate(e,i={skipLocationChange:!1}){return function TAe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ru=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new fn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Gh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=fv(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=fv(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=fv(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function i8(t,n,e){return function nye(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?n8:B1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(ge(yr),ge(Vr),kf("tabindex"),ge(oa),ge(Ni),ge(rm))},t.\u0275dir=un({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&ke("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ft("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[ei]}),t})(),Ny=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ot,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Gh&&this.update()})}ngAfterContentInit(){Hn(this.links.changes,Hn(null)).pipe(M()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=ho(e).pipe(M()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function EAe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(yr),ge(Ni),ge(oa),ge($s),ge(Ru,8))},t.\u0275dir=un({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Ru,5),2&e){let o;Tn(o=En())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ei]}),t})();class NV{}let AAe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ps(e=>e instanceof Gh),Lf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=pw(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ho(r).pipe(M())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Hn(null);const o=r.pipe(it(s=>null===s?Hn(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?ho([o,this.loader.loadComponent(i)]).pipe(M()):o})}}return t.\u0275fac=function(e){return new(e||t)(xt(yr),xt(m$),xt(Gc),xt(NV),xt(b3))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const w3=new Yn("");let FV=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof gC?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof nV&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new nV(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function F8(){throw new Error("invalid")}()},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();var xc=(()=>((xc=xc||{})[xc.COMPLETE=0]="COMPLETE",xc[xc.FAILED=1]="FAILED",xc[xc.REDIRECTING=2]="REDIRECTING",xc))();const Cv=!1;function Hf(t,n){return{\u0275kind:t,\u0275providers:n}}const C3=new Yn("",{providedIn:"root",factory:()=>!1});function RV(){const t=Vi(Ca);return n=>{const e=t.get(jh);if(n!==e.components[0])return;const i=t.get(yr),r=t.get(jV);1===t.get(S3)&&i.initialNavigation(),t.get(LV,null,Oi.Optional)?.setUpPreloading(),t.get(w3,null,Oi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const jV=new Yn(Cv?"bootstrap done indicator":"",{factory:()=>new fn}),S3=new Yn(Cv?"initial navigation":"",{providedIn:"root",factory:()=>1});function FAe(){let t=[];return t=Cv?[{provide:Xx,multi:!0,useFactory:()=>{const n=Vi(yr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function aEe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Hf(1,t)}const LV=new Yn(Cv?"router preloader":"");function PAe(t){return Hf(0,[{provide:LV,useExisting:AAe},{provide:NV,useExisting:t}])}const Fy=!1,BV=new Yn(Fy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),RAe=[KA,{provide:by,useClass:e3},yr,Ty,{provide:Vr,useFactory:function PV(t){return t.routerState.root},deps:[yr]},b3,Fy?{provide:C3,useValue:!0}:[]];function jAe(){return new C$("Router",yr)}let $V=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[RAe,Fy&&i?.enableTracing?FAe().\u0275providers:[],{provide:wv,multi:!0,useValue:e},{provide:BV,useFactory:VAe,deps:[[yr,new O1,new I1]]},{provide:AC,useValue:i||{}},i?.useHash?{provide:rm,useClass:ACe}:{provide:rm,useClass:W$},{provide:w3,useFactory:()=>{const t=Vi(V2e),n=Vi(ur),e=Vi(AC),i=Vi(EC),r=Vi(by);return e.scrollOffset&&t.setOffset(e.scrollOffset),new FV(r,i,t,n,e)}},i?.preloadingStrategy?PAe(i.preloadingStrategy).\u0275providers:[],{provide:C$,multi:!0,useFactory:jAe},i?.initialNavigation?HAe(i):[],[{provide:VV,useFactory:RV},{provide:w$,multi:!0,useExisting:VV}]]}}static forChild(e){return{ngModule:t,providers:[{provide:wv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(xt(BV,8))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[f3]}),t})();function VAe(t){if(Fy&&t)throw new jt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function HAe(t){return["disabled"===t.initialNavigation?Hf(3,[{provide:yw,multi:!0,useFactory:()=>{const n=Vi(yr);return()=>{n.setUpLocationChangeListener()}}},{provide:S3,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Hf(2,[{provide:S3,useValue:0},{provide:yw,multi:!0,deps:[Ca],useFactory:n=>{const e=n.get(TCe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(yr),o=n.get(jV);(function MAe(t,n){t.events.pipe(ps(e=>e instanceof Gh||e instanceof ky||e instanceof yC||e instanceof vC),$t(e=>e instanceof Gh||e instanceof vC?xc.COMPLETE:e instanceof ky&&(0===e.code||1===e.code)?xc.REDIRECTING:xc.FAILED),ps(e=>e!==xc.REDIRECTING),ua(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(EC).afterPreactivation=()=>(i(!0),o.closed?Hn(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const VV=new Yn(Fy?"Router Initializer":"");function MC(t,n){return new Wt(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let HV=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni))},t.\u0275dir=un({type:t}),t})(),um=(()=>{class t extends HV{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,features:[wi]}),t})();const Kl=new Yn("NgValueAccessor"),GAe={provide:Kl,useExisting:ji(()=>OC),multi:!0};let OC=(()=>{class t extends um{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&ke("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[oo([GAe]),wi]}),t})();const WAe={provide:Kl,useExisting:ji(()=>Us),multi:!0},YAe=new Yn("CompositionEventMode");let Us=(()=>{class t extends HV{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qAe(){const t=Lh()?Lh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni),ge(YAe,8))},t.\u0275dir=un({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ke("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[oo([WAe]),wi]}),t})();const XAe=!1;function Uf(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function UV(t){return null!=t&&"number"==typeof t.length}const Ba=new Yn("NgValidators"),zf=new Yn("NgAsyncValidators"),JAe=/^(?=.{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 qr{static min(n){return zV(n)}static max(n){return function GV(t){return n=>{if(Uf(n.value)||Uf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return WV(n)}static requiredTrue(n){return function qV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function YV(t){return Uf(t.value)||JAe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function XV(t){return n=>Uf(n.value)||!UV(n.value)?null:n.value.lengthUV(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function KV(t){if(!t)return IC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Uf(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return iH(n)}static composeAsync(n){return rH(n)}}function zV(t){return n=>{if(Uf(n.value)||Uf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function tH(t,n){return n.map(e=>e(t))}function nH(t){return t.map(n=>function KAe(t){return!t.validate}(n)?n:e=>n.validate(e))}function iH(t){if(!t)return null;const n=t.filter(QV);return 0==n.length?null:function(e){return eH(tH(e,n))}}function k3(t){return null!=t?iH(nH(t)):null}function rH(t){if(!t)return null;const n=t.filter(QV);return 0==n.length?null:function(e){return function zAe(...t){if(1===t.length){const n=t[0];if(Se(n))return MC(n,null);if(we(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return MC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return MC(t=1===t.length&&Se(t[0])?t[0]:t,null).pipe($t(e=>n(...e)))}return MC(t,null)}(tH(e,n).map(ZV)).pipe($t(eH))}}function D3(t){return null!=t?rH(nH(t)):null}function oH(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function sH(t){return t._rawValidators}function aH(t){return t._rawAsyncValidators}function T3(t){return t?Array.isArray(t)?t:[t]:[]}function NC(t,n){return Array.isArray(t)?t.includes(n):t===n}function lH(t,n){const e=T3(n);return T3(t).forEach(r=>{NC(e,r)||e.push(r)}),e}function cH(t,n){return T3(n).filter(e=>!NC(t,e))}class uH{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(n){this._rawValidators=n||[],this._composedValidatorFn=k3(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=D3(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Tl extends uH{get formDirective(){return null}get path(){return null}}class Gf extends uH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class dH{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let da=(()=>{class t extends dH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(Gf,2))},t.\u0275dir=un({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Vn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[wi]}),t})(),ha=(()=>{class t extends dH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(Tl,10))},t.\u0275dir=un({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Vn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[wi]}),t})();function hH(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const M3=!1,Py="VALID",PC="INVALID",Sv="PENDING",Ry="DISABLED";function O3(t){return(RC(t)?t.validators:t)||null}function I3(t,n){return(RC(n)?n.asyncValidators:t)||null}function RC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function fH(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new jt(1e3,M3?function tMe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new jt(1001,M3?function nMe(t,n){return`Cannot find form control ${hH(t,n)}`}(n,e):"")}function pH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new jt(1002,M3?function iMe(t,n){return`Must supply a value for form control ${hH(t,n)}`}(n,r):"")})}class jC{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Py}get invalid(){return this.status===PC}get pending(){return this.status==Sv}get disabled(){return this.status===Ry}get enabled(){return this.status!==Ry}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(lH(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(lH(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(cH(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(cH(n,this._rawAsyncValidators))}hasValidator(n){return NC(this._rawValidators,n)}hasAsyncValidator(n){return NC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Sv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ry,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Py,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Py||this.status===Sv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ry:Py}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Sv,this._hasOwnPendingAsyncValidator=!0;const e=ZV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?Ry:this.errors?PC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Sv)?Sv:this._anyControlsHaveStatus(PC)?PC:Py}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){RC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function rMe(t){return Array.isArray(t)?k3(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function oMe(t){return Array.isArray(t)?D3(t):t||null}(this._rawAsyncValidators)}}class jy extends jC{constructor(n,e,i){super(O3(e),I3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){pH(this,!0,n),Object.keys(n).forEach(i=>{fH(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class mH extends jy{}const dm=new Yn("CallSetDisabledState",{providedIn:"root",factory:()=>Ly}),Ly="always";function By(t,n,e=Ly){N3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function aMe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&gH(t,n)})}(t,n),function cMe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function lMe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&gH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function sMe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function BC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),VC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $C(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function N3(t,n){const e=sH(t);null!==n.validator?t.setValidators(oH(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=aH(t);null!==n.asyncValidator?t.setAsyncValidators(oH(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();$C(n._rawValidators,r),$C(n._rawAsyncValidators,r)}function VC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=sH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=aH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return $C(n._rawValidators,i),$C(n._rawAsyncValidators,i),e}function gH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _H(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function bH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vy=class extends jC{constructor(n=null,e,i){super(O3(e),I3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),RC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=bH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){_H(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){_H(this._onDisabledChange,n)}_forEachChild(n){}_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(n){bH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let fa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yMe={provide:Kl,useExisting:ji(()=>L3),multi:!0};let L3=(()=>{class t extends um{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ke("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[oo([yMe]),wi]}),t})();const _Me={provide:Kl,useExisting:ji(()=>B3),multi:!0};let kH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),bMe=(()=>{class t{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:kH}),t})(),B3=(()=>{class t extends um{constructor(e,i,r,o){super(e,i),this._registry=r,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Vi(dm,{optional:!0})??Ly}ngOnInit(){this._control=this._injector.get(Gf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni),ge(bMe),ge(Ca))},t.\u0275dir=un({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&ke("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[oo([_Me]),wi]}),t})();const $3=new Yn("NgModelWithFormControlWarning"),CMe={provide:Tl,useExisting:ji(()=>Ts)};let Ts=(()=>{class t extends Tl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(VC(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 i=this.form.get(e.path);return By(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){BC(e.control||null,e,!1),function fMe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function yH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(BC(i||null,e),(t=>t instanceof Vy)(r)&&(By(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function vH(t,n){N3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function uMe(t,n){return VC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){N3(this.form,this),this._oldForm&&VC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(ge(Ba,10),ge(zf,10),ge(dm,8))},t.\u0275dir=un({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ke("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oo([CMe]),wi,ei]}),t})();const DMe={provide:Gf,useExisting:ji(()=>zs)};let zs=(()=>{class t extends Gf{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ot,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function R3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Us?e=o:function hMe(t){return Object.getPrototypeOf(t.constructor)===um}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function P3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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 function LC(t,n){return[...n.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(ge(Tl,13),ge(Ba,10),ge(zf,10),ge(Kl,10),ge($3,8))},t.\u0275dir=un({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[oo([DMe]),wi,ei]}),t})();const TMe={provide:Kl,useExisting:ji(()=>kv),multi:!0};function AH(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let kv=(()=>{class t extends um{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=AH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function EMe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&ke("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[oo([TMe]),wi]}),t})(),HC=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(AH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(kv,9))},t.\u0275dir=un({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const AMe={provide:Kl,useExisting:ji(()=>U3),multi:!0};function MH(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let U3=(()=>{class t extends um{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(MH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(MH(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(U3,9))},t.\u0275dir=un({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let hm=(()=>{class t{constructor(){this._validator=IC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):IC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,features:[ei]}),t})();const IMe={provide:Ba,useExisting:ji(()=>z3),multi:!0};let z3=(()=>{class t extends hm{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function IH(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>zV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ft("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[oo([IMe]),wi]}),t})();const NMe={provide:Ba,useExisting:ji(()=>qh),multi:!0};let qh=(()=>{class t extends hm{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=fv,this.createValidator=e=>WV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ft("required",i._enabled?"":null)},inputs:{required:"required"},features:[oo([NMe]),wi]}),t})(),BH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[kH]}),t})();class $H extends jC{constructor(n,e,i){super(O3(e),I3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){pH(this,!1,n),n.forEach((i,r)=>{fH(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function VH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let HH=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return VH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new jy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new mH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(VH(i)?o=i:(o.validators=i,o.asyncValidators=r),new Vy(e,{...o,nonNullable:!0})):new Vy(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new $H(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Vy||e instanceof jC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$a=(()=>{class t extends HH{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),BMe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:dm,useValue:e.callSetDisabledState??Ly}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[BH]}),t})(),$Me=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:dm,useValue:e.callSetDisabledState??Ly}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[BH]}),t})();const UH=new Yn("ngx-segment-analytics.config"),VMe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};let zH=(()=>{class t{analytics;static \u0275fac=function(i){return new(i||t)};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),zC=(()=>{class t{_w;_doc;_config;constructor(e,i,r){if(this._w=e,this._doc=i,this._config={...VMe,...r},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(e){this._w.analytics.setAnonymousId(e)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}addDestinationMiddleware(e,...i){this._w.analytics.addDestinationMiddleware(e,...i)}register(...e){return this._w.analytics.register(...e)}get plugins(){return this._w.analytics.plugins}static \u0275fac=function(i){return new(i||t)(xt(zH),xt(vo),xt(UH))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function HMe(t){return v7(t)?window:{}}let UMe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:UH,useValue:e},zC]}}constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static \u0275fac=function(i){return new(i||t)(xt(t,12))};static \u0275mod=Ii({type:t});static \u0275inj=Di({providers:[{provide:zH,useFactory:HMe,deps:[sy]}],imports:[If]})}return t})();class GC{}class G3{}class ju{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{let r;if(r="string"==typeof i?[i]:"number"==typeof i?[i.toString()]:i.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof ju?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new ju;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ju?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class zMe{encodeKey(n){return GH(n)}encodeValue(n){return GH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const WMe=/%(\d[a-f0-9])/gi,qMe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function GH(t){return encodeURIComponent(t).replace(WMe,(n,e)=>qMe[e]??n)}function WC(t){return`${t}`}class On{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new zMe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GMe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(WC):[WC(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new On({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(WC(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(WC(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class YMe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function WH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function qH(t){return typeof Blob<"u"&&t instanceof Blob}function YH(t){return typeof FormData<"u"&&t instanceof FormData}class Hy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function XMe(t){switch(t){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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new ju),this.context||(this.context=new YMe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Hy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Gs=(()=>((Gs=Gs||{})[Gs.Sent=0]="Sent",Gs[Gs.UploadProgress=1]="UploadProgress",Gs[Gs.ResponseHeader=2]="ResponseHeader",Gs[Gs.DownloadProgress=3]="DownloadProgress",Gs[Gs.Response=4]="Response",Gs[Gs.User=5]="User",Gs))();class W3{constructor(n,e=200,i="OK"){this.headers=n.headers||new ju,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class q3 extends W3{constructor(n={}){super(n),this.type=Gs.ResponseHeader}clone(n={}){return new q3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qC extends W3{constructor(n={}){super(n),this.type=Gs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new qC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class XH extends W3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Y3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let YC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Hy)o=e;else{let l,c;l=r.headers instanceof ju?r.headers:new ju(r.headers),r.params&&(c=r.params instanceof On?r.params:new On({fromObject:r.params})),o=new Hy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Hn(o).pipe(Lf(l=>this.handler.handle(l)));if(e instanceof Hy||"events"===r.observe)return s;const a=s.pipe(ps(l=>l instanceof qC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe($t(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($t(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new On).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Y3(r,i))}post(e,i,r={}){return this.request("POST",e,Y3(r,i))}put(e,i,r={}){return this.request("PUT",e,Y3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(xt(GC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();function JH(t,n){return n(t)}function KMe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const X3=new Yn("HTTP_INTERCEPTORS"),Uy=new Yn("HTTP_INTERCEPTOR_FNS");function ZMe(){let t=null;return(n,e)=>(null===t&&(t=(Vi(X3,{optional:!0})??[]).reduceRight(KMe,JH)),t(n,e))}let KH=(()=>{class t extends GC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Uy)));this.chain=i.reduceRight((r,o)=>function QMe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),JH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(xt(G3),xt(Gc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const i3e=/^\)\]\}',?\n/;let ZH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Wt(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new ju(r.getAllResponseHeaders()),m=function r3e(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new q3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const b=v;v=v.replace(i3e,"");try{v=""!==v?JSON.parse(v):null}catch(C){v=b,y&&(y=!1,v={error:C,text:v})}}y?(i.next(new qC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new XH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new XH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Gs.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Gs.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:Gs.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(xt(_7))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const J3=new Yn("XSRF_ENABLED"),eU=new Yn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tU=new Yn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nU{}let a3e=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=o7(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(xt(vo),xt(sy),xt(eU))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();function l3e(t,n){const e=t.url.toLowerCase();if(!Vi(J3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Vi(nU).getToken(),r=Vi(tU);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Es=(()=>((Es=Es||{})[Es.Interceptors=0]="Interceptors",Es[Es.LegacyInterceptors=1]="LegacyInterceptors",Es[Es.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Es[Es.NoXsrfProtection=3]="NoXsrfProtection",Es[Es.JsonpSupport=4]="JsonpSupport",Es[Es.RequestsMadeViaParent=5]="RequestsMadeViaParent",Es))();function Dv(t,n){return{\u0275kind:t,\u0275providers:n}}function c3e(...t){const n=[YC,ZH,KH,{provide:GC,useExisting:KH},{provide:G3,useExisting:ZH},{provide:Uy,useValue:l3e,multi:!0},{provide:J3,useValue:!0},{provide:nU,useClass:a3e}];for(const e of t)n.push(...e.\u0275providers);return function iye(t){return{\u0275providers:t}}(n)}const iU=new Yn("LEGACY_INTERCEPTOR_FN");let d3e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[c3e(Dv(Es.LegacyInterceptors,[{provide:iU,useFactory:ZMe},{provide:Uy,useExisting:iU,multi:!0}]))]}),t})();var ri=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(ri||(ri={})),ri))(),zy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY",t[t.FACEBOOK_INSTANT_STORE=3]="FACEBOOK_INSTANT_STORE"}(zy||(zy={})),zy))();class XC{host;timeoutMs}let Ai=(()=>{class t{httpClient;config;constructor(e,i){this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new On({encoder:new Wn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new On({encoder:new Wn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new On({encoder:new Wn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}authenticateMFASetup(e,i){let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/mfa",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new On({encoder:new Wn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new On({encoder:new Wn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getPurchase(e,i){const r=`/v2/console/iap/purchase/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getSubscription(e,i){const r=`/v2/console/iap/subscription/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new On({encoder:new Wn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new On({encoder:new Wn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new On({encoder:new Wn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new On({encoder:new Wn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new On({encoder:new Wn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new On({encoder:new Wn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new On({encoder:new Wn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new On({encoder:new Wn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new On({encoder:new Wn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new On({encoder:new Wn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new On({encoder:new Wn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}resetUserMfa(e,i){const r=`/v2/console/user/${i=encodeURIComponent(String(i))}/reset/mfa`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new ju).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new ju).set("Authorization","Basic "+btoa(e+":"+i))}static \u0275fac=function(i){return new(i||t)(xt(YC),xt(XC,8))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Wn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const rU=new Yn("window"),p3e=[{provide:rU,useFactory:()=>window}],JC="currentSession";let Ho=(()=>{class t{window;segment;http;consoleService;config;currentSessionSubject;currentSession;constructor(e,i,r,o,s){this.window=e,this.segment=i,this.http=r,this.consoleService=o,this.config=s;const a=JSON.parse(localStorage.getItem(JC));this.currentSessionSubject=new ca(a),this.currentSession=this.currentSessionSubject.asObservable()}get session(){return this.currentSessionSubject.getValue()}get username(){return this.claims.usn}get sessionRole(){switch(this.claims.rol){case 1:return ri.USER_ROLE_ADMIN;case 2:return ri.USER_ROLE_DEVELOPER;case 3:return ri.USER_ROLE_MAINTAINER;case 4:return ri.USER_ROLE_READONLY;default:return ri.USER_ROLE_UNKNOWN}}get claims(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1]))}get mfa(){const e=this.currentSessionSubject.getValue().mfa_code;return e?JSON.parse(atob(e.split(".")[1])):null}get mfaRequired(){return this?.mfa?.mfa_required||!1}login(e,i,r){return this.http.post(this.config.host+"/v2/console/authenticate",{username:e,password:i,mfa:r},{observe:"response"}).pipe(ms(s=>{localStorage.setItem(JC,JSON.stringify(s.body)),this.currentSessionSubject.next(s.body)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(ms(()=>{localStorage.removeItem(JC),this.currentSessionSubject.next(null)})):Uh}mfaSet(e){return this.consoleService.authenticateMFASetup("",{mfa:this.session.mfa_code,code:e}).pipe(ms(()=>{this.session.mfa_code=null,localStorage.setItem(JC,JSON.stringify(this.session)),this.currentSessionSubject.next(this.session)}))}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}static \u0275fac=function(i){return new(i||t)(xt(rU),xt(zC),xt(YC),xt(Ai),xt(XC))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function m3e(t,n){if(1&t&&(_(0,"div",32),O(1),x()),2&t){const e=L(2);w(1),bn(" ",e.error," ")}}const g3e=function(t){return{"was-validated":t}},K3=function(t){return{"is-invalid":t}};function v3e(t,n){if(1&t){const e=_t();_(0,"div",18)(1,"h3",19),O(2,"Sign in to continue to the Nakama Dashboard"),x(),te(3,m3e,2,1,"div",20),_(4,"form",21),ke("ngSubmit",function(){return ze(e),Ge(L().onSubmit())}),_(5,"div",22)(6,"label",23),O(7,"Username"),x(),xe(8,"input",24),_(9,"div",25),O(10,"Please enter a username."),x()(),_(11,"div",22)(12,"label",26),O(13,"Password"),x(),xe(14,"input",27),_(15,"div",25),O(16,"Password must be at least 8 characters."),x()(),_(17,"div",28)(18,"label",29),O(19,"MFA Code"),x(),xe(20,"input",30),_(21,"div",25),O(22,"Code must contain 6 digits."),x()(),_(23,"button",31),O(24),x()()()}if(2&t){const e=L();w(3),S("ngIf",e.error),w(1),S("formGroup",e.loginForm)("ngClass",Zi(12,g3e,e.submitted)),w(4),S("ngClass",Zi(14,K3,e.f.username.dirty&&e.f.username.errors)),w(1),S("hidden",e.f.username.disabled||e.f.username.pristine||e.f.username.valid),w(5),S("ngClass",Zi(16,K3,e.f.password.dirty&&e.f.password.errors)),w(1),S("hidden",e.f.password.disabled||e.f.password.pristine||e.f.password.valid),w(2),S("hidden",!e.mfaEnabled),w(3),S("ngClass",Zi(18,K3,e.f.code.dirty&&e.f.code.errors)),w(1),S("hidden",e.f.code.disabled||e.f.code.pristine||e.f.code.valid),w(2),S("disabled",!e.loginForm.valid),w(1),wt(e.mfaEnabled?"Verify":"Login")}}function y3e(t,n){1&t&&xe(0,"router-outlet")}let _3e=(()=>{class t{router;segment;formBuilder;route;authService;error="";loginForm;submitted;mfaEnabled=!1;returnUrl;constructor(e,i,r,o,s){this.router=e,this.segment=i,this.formBuilder=r,this.route=o,this.authService=s}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",qr.compose([qr.required])],password:["",qr.compose([qr.required,qr.minLength(8)])],code:[{value:"",disabled:!0},qr.compose([qr.required,qr.minLength(6),qr.maxLength(6)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authService.login(this.f.username.value,this.f.password.value,this.f.code.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,e.body.mfa_code&&this.authService.mfaRequired?this.router.navigate(["mfa"],{relativeTo:this.route}):this.router.navigate([this.returnUrl])},e=>{403===e.status?(this.mfaEnabled=!0,this.f.username.disable(),this.f.password.disable(),this.f.code.enable()):(this.error=e,this.submitted=!1)})}get f(){return this.loginForm.controls}static \u0275fac=function(i){return new(i||t)(ge(yr),ge(zC),ge($a),ge(Vr),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:37,vars:2,consts:[[1,"d-flex","flex-column","flex-lg-row","h-100","relative"],["src","/static/svg/logo-white.svg","alt","Nakama Logo","width","175","height","43",1,"logo"],[1,"login-panel"],[1,"align-self-center","login-form"],["class","px-4",4,"ngIf","ngIfElse"],["mfa",""],[1,"heroic-stack"],[1,""],["src","/static/svg/hiro-logo.svg","alt","Hiro Logo","width","110","height","50",1,"mb-3"],["href","https://www.youtube.com/playlist?list=PLOAExZcDNj9sWny_J8J5ARkxDTwAV0i6f&utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Reconstructing%20Fun%20Sign-In","target","_blank"],["href","https://heroiclabs.com/hiro/?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Hiro%20Sign-In","target","_blank",1,"login-link"],["src","/static/svg/satori-logo.svg","alt","Satori Logo","width","134","height","50",1,"mb-3"],["href","https://heroiclabs.com/satori/?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Satori%20Sign-In","target","_blank",1,"login-link"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/calendar.svg","alt","Calendar"],[1,"font-weight-bold","ml-2",2,"font-size","20px"],["href","https://heroiclabs.com/bookademo?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Book%20a%20Demo%20Sign-In","target","_blank",1,"login-link-pink"],["src","/static/svg/phone.svg","alt","Phone"],[1,"px-4"],[1,"login-title","mb-4"],["class","alert alert-warning","role","alert",4,"ngIf"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"form-group",3,"hidden"],["for","code"],["type","code","id","code","formControlName","code","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(i,r){if(1&i&&(_(0,"div",0),xe(1,"img",1),_(2,"div",2)(3,"div",3),te(4,v3e,25,20,"div",4),te(5,y3e,1,0,"ng-template",null,5,Xo),x()(),_(7,"div",2)(8,"div",6)(9,"div",7),xe(10,"img",8),_(11,"p"),O(12,"A metagame framework built on Nakama to add virtual store, rewards, event leaderboards and much more rapidly and flexibly to your game. "),_(13,"a",9),O(14,"RECONSTRUCTING FUN"),x(),O(15," on YouTube shows you how."),x(),_(16,"a",10),O(17,"Explore Hiro"),x()(),xe(18,"hr"),_(19,"div",7),xe(20,"img",11),_(21,"p"),O(22,"LiveOps for your live services game. Live events, Experiments, Feature Flags, Audience Segmentation and Analytics built to work independently but beautifully with Nakama."),x(),_(23,"a",12),O(24,"Explore Satori"),x()(),xe(25,"hr"),_(26,"div")(27,"div",13),xe(28,"img",14),_(29,"span",15),O(30,"Working at a Game Studio?"),x()(),_(31,"p"),O(32,"Ready to take your game development to the next level? Contact us for a free 45 minute demo call."),x(),_(33,"a",16),xe(34,"img",17),_(35,"span"),O(36,"Schedule a call with us"),x()()()()()()),2&i){const o=sa(6);w(4),S("ngIf",!r.router.url.endsWith("mfa"))("ngIfElse",o)}},dependencies:[Vf,Of,xn,fa,Us,da,ha,qh,Ts,zs],styles:[".logo[_ngcontent-%COMP%]{position:absolute;top:10px;left:15px}@media (min-width: 992px){.logo[_ngcontent-%COMP%]{top:40px;left:30px}}.login-form[_ngcontent-%COMP%]{margin:100px auto auto;max-width:600px}@media (min-width: 992px){.login-form[_ngcontent-%COMP%]{width:485px;margin:auto}}.login-title[_ngcontent-%COMP%]{font-size:28px;font-weight:300}.login-panel[_ngcontent-%COMP%]{flex:1 1 0;display:flex}.login-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:300;font-size:20px}.heroic-stack[_ngcontent-%COMP%]{padding:0 1.5rem;max-width:600px;margin:70px auto 40px}@media (min-width: 992px){.heroic-stack[_ngcontent-%COMP%]{max-width:660px;padding:0 15px;margin:auto}}.login-link[_ngcontent-%COMP%], .login-link-pink[_ngcontent-%COMP%]{display:inline-flex;padding:15px;font-size:15px;border:1px;border-radius:5px;border:1px solid}.login-link[_ngcontent-%COMP%]{color:#4739c5;border-color:#4739c51a}hr[_ngcontent-%COMP%]{border:2px solid rgba(217,217,217,.2);margin-top:20px;margin-bottom:40px}.login-link-pink[_ngcontent-%COMP%]{border-color:#b421b41a;background:#FFF6FF;color:#b421b4}.login-link-pink[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:15px}"]})}return t})(),b3e=(()=>{class t{authService;router;constructor(e,i){this.authService=e,this.router=i}canActivate(e,i){return!(this.authService.session&&!this.authService.session.mfa_code&&!this.authService.mfaRequired)||(this.router.navigate(["/"]),!1)}static \u0275fac=function(i){return new(i||t)(xt(Ho),xt(yr))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x3e=(()=>{class t{router;authService;constructor(e,i){this.router=e,this.authService=i}canActivate(e,i){const r=this.authService.session;return r?!r||!this.authService.mfaRequired||(this.router.navigate(["/login/mfa"],{queryParams:{next:i.url}}),!1):(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}static \u0275fac=function(i){return new(i||t)(xt(yr),xt(Ho))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class w3e extends re{constructor(n,e){super()}schedule(n,e=0){return this}}class Q3 extends w3e{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let oU=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Vd extends oU{constructor(n,e=oU.now){super(n,()=>Vd.delegate&&Vd.delegate!==this?Vd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Vd.delegate&&Vd.delegate!==this?Vd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const KC=new Vd(Q3);class S3e{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new D3e(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class k3e{constructor(){this.buffer=[]}}class D3e extends I{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(sU,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(aU,e,{subscriber:this,context:s})),this.add(o.schedule(T3e,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(sU,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new k3e;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function sU(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function T3e(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(aU,e,{subscriber:i,context:o})),this.schedule(t,n))}function aU(t){const{subscriber:n,context:e}=t;n.closeContext(e)}function QC(t,n){return e=>e.lift(new E3e(t,n))}class E3e{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new A3e(n,this.compare,this.keySelector))}}class A3e extends I{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Va(t,n,e,i){return be(e)&&(i=e,e=void 0),i?Va(t,n,e).pipe($t(r=>Se(r)?i(...r):i(r))):new Wt(r=>{lU(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function lU(t,n,e,i,r){let o;if(function I3e(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function O3e(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function M3e(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function Gy(t=0,n,e){let i=-1;return cU(n)?i=Number(n)<1?1:Number(n):fi(n)&&(e=n),fi(e)||(e=KC),new Wt(r=>{const o=cU(t)?t:+t-e.now();return e.schedule(N3e,o,{index:0,period:i,subscriber:r})})}function N3e(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function uU(...t){if(1===t.length){if(!Se(t[0]))return t[0];t=t[0]}return at(t,void 0).lift(new F3e)}class F3e{call(n,e){return e.subscribe(new P3e(n))}}class P3e extends JM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class $3e extends Y{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[uo](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Le(this.observable,new Hl(this))}}function ns(t){return n=>n.lift(new H3e(t))}class H3e{constructor(n){this.notifier=n}call(n,e){const i=new U3e(n),r=Le(this.notifier,new Hl(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class U3e extends Y{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Z3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new z3e(t,e))}}class z3e{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new G3e(n,this.observables,this.project))}}class G3e extends JM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Lu{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Hn(this.value);case"E":return Rf(this.error);case"C":return sC()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Lu("N",n):Lu.undefinedValueNotification}static createError(n){return new Lu("E",void 0,n)}static createComplete(){return Lu.completeNotification}}function eO(t,n=KC){const i=function W3e(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new q3e(i,n))}Lu.completeNotification=new Lu("C"),Lu.undefinedValueNotification=new Lu("N",void 0);class q3e{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new tO(n,this.delay,this.scheduler))}}class tO extends I{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(tO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new Y3e(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Lu.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Lu.createComplete()),this.unsubscribe()}}class Y3e{constructor(n,e){this.time=n,this.notification=e}}class J3e{constructor(n){this.total=n}call(n,e){return e.subscribe(new K3e(n,this.total))}}class K3e extends I{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}var Q3e={left:"right",right:"left",bottom:"top",top:"bottom"};function e2(t){return t.replace(/left|right|bottom|top/g,function(n){return Q3e[n]})}function Hd(t){return t.split("-")[0]}var Z3e={start:"end",end:"start"};function hU(t){return t.replace(/start|end/g,function(n){return Z3e[n]})}var wc="top",Bu="bottom",$u="right",Cc="left",nO="auto",Wy=[wc,Bu,$u,Cc],Tv="start",qy="end",eOe="clippingParents",fU="viewport",Yy="popper",tOe="reference",pU=Wy.reduce(function(t,n){return t.concat([n+"-"+Tv,n+"-"+qy])},[]),mU=[].concat(Wy,[nO]).reduce(function(t,n){return t.concat([n,n+"-"+Tv,n+"-"+qy])},[]),dOe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sc(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function fm(t){return t instanceof Sc(t).Element||t instanceof Element}function Qc(t){return t instanceof Sc(t).HTMLElement||t instanceof HTMLElement}function iO(t){return!(typeof ShadowRoot>"u")&&(t instanceof Sc(t).ShadowRoot||t instanceof ShadowRoot)}function Wf(t){return((fm(t)?t.ownerDocument:t.document)||window.document).documentElement}var pm=Math.max,t2=Math.min,Ev=Math.round;function rO(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function gU(){return!/^((?!chrome|android).)*safari/i.test(rO())}function Av(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&Qc(t)&&(r=t.offsetWidth>0&&Ev(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ev(i.height)/t.offsetHeight||1);var a=(fm(t)?Sc(t):window).visualViewport,l=!gU()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function oO(t){var n=Sc(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function sO(t){return Av(Wf(t)).left+oO(t).scrollLeft}function Yh(t){return Sc(t).getComputedStyle(t)}function Ud(t){return t?(t.nodeName||"").toLowerCase():null}function n2(t){return"html"===Ud(t)?t:t.assignedSlot||t.parentNode||(iO(t)?t.host:null)||Wf(t)}function aO(t){var n=Yh(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function vU(t){return["html","body","#document"].indexOf(Ud(t))>=0?t.ownerDocument.body:Qc(t)&&aO(t)?t:vU(n2(t))}function Xy(t,n){var e;void 0===n&&(n=[]);var i=vU(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Sc(i),s=r?[o].concat(o.visualViewport||[],aO(i)?i:[]):i,a=n.concat(s);return r?a:a.concat(Xy(n2(s)))}function pOe(t){return["table","td","th"].indexOf(Ud(t))>=0}function yU(t){return Qc(t)&&"fixed"!==Yh(t).position?t.offsetParent:null}function Jy(t){for(var n=Sc(t),e=yU(t);e&&pOe(e)&&"static"===Yh(e).position;)e=yU(e);return e&&("html"===Ud(e)||"body"===Ud(e)&&"static"===Yh(e).position)?n:e||function mOe(t){var n=/firefox/i.test(rO());if(/Trident/i.test(rO())&&Qc(t)&&"fixed"===Yh(t).position)return null;var r=n2(t);for(iO(r)&&(r=r.host);Qc(r)&&["html","body"].indexOf(Ud(r))<0;){var o=Yh(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||n}function _U(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&iO(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function lO(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function bU(t,n,e){return n===fU?lO(function hOe(t,n){var e=Sc(t),i=Wf(t),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=gU();(c||!c&&"fixed"===n)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+sO(t),y:l}}(t,e)):fm(n)?function gOe(t,n){var e=Av(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):lO(function fOe(t){var n,e=Wf(t),i=oO(t),r=null==(n=t.ownerDocument)?void 0:n.body,o=pm(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=pm(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+sO(t),l=-i.scrollTop;return"rtl"===Yh(r||e).direction&&(a+=pm(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Wf(t)))}function Mv(t){return t.split("-")[1]}function cO(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xU(t){var l,n=t.reference,e=t.element,i=t.placement,r=i?Hd(i):null,o=i?Mv(i):null,s=n.x+n.width/2-e.width/2,a=n.y+n.height/2-e.height/2;switch(r){case wc:l={x:s,y:n.y-e.height};break;case Bu:l={x:s,y:n.y+n.height};break;case $u:l={x:n.x+n.width,y:a};break;case Cc:l={x:n.x-e.width,y:a};break;default:l={x:n.x,y:n.y}}var c=r?cO(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Tv:l[c]=l[c]-(n[u]/2-e[u]/2);break;case qy:l[c]=l[c]+(n[u]/2-e[u]/2)}}return l}function CU(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function SU(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function uO(t,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?eOe:a,c=n.rootBoundary,u=void 0===c?fU:c,d=n.elementContext,h=void 0===d?Yy:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=CU("number"!=typeof g?g:SU(g,Wy)),b=t.rects.popper,C=t.elements[p?h===Yy?tOe:Yy:h],D=function yOe(t,n,e,i){var r="clippingParents"===n?function vOe(t){var n=Xy(n2(t)),i=["absolute","fixed"].indexOf(Yh(t).position)>=0&&Qc(t)?Jy(t):t;return fm(i)?n.filter(function(r){return fm(r)&&_U(r,i)&&"body"!==Ud(r)}):[]}(t):[].concat(n),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=bU(t,c,i);return l.top=pm(u.top,l.top),l.right=t2(u.right,l.right),l.bottom=t2(u.bottom,l.bottom),l.left=pm(u.left,l.left),l},bU(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(fm(C)?C:C.contextElement||Wf(t.elements.popper),l,u,s),E=Av(t.elements.reference),B=xU({reference:E,element:b,strategy:"absolute",placement:r}),z=lO(Object.assign({},b,B)),j=h===Yy?z:E,U={top:D.top-j.top+v.top,bottom:j.bottom-D.bottom+v.bottom,left:D.left-j.left+v.left,right:j.right-D.right+v.right},G=t.modifiersData.offset;if(h===Yy&&G){var X=G[r];Object.keys(U).forEach(function(oe){var P=[$u,Bu].indexOf(oe)>=0?1:-1,W=[wc,Bu].indexOf(oe)>=0?"y":"x";U[oe]+=X[W]*P})}return U}const wOe={name:"flip",enabled:!0,phase:"main",fn:function xOe(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,f=e.flipVariations,p=void 0===f||f,m=e.allowedAutoPlacements,g=n.options.placement,v=Hd(g),b=l||(v!==g&&p?function bOe(t){if(Hd(t)===nO)return[];var n=e2(t);return[hU(t),n,hU(n)]}(g):[e2(g)]),C=[g].concat(b).reduce(function(ce,ve){return ce.concat(Hd(ve)===nO?function _Oe(t,n){void 0===n&&(n={});var r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?mU:l,u=Mv(n.placement),d=u?a?pU:pU.filter(function(p){return Mv(p)===u}):Wy,h=d.filter(function(p){return c.indexOf(p)>=0});0===h.length&&(h=d);var f=h.reduce(function(p,m){return p[m]=uO(t,{placement:m,boundary:r,rootBoundary:o,padding:s})[Hd(m)],p},{});return Object.keys(f).sort(function(p,m){return f[p]-f[m]})}(n,{placement:ve,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):ve)},[]),D=n.rects.reference,E=n.rects.popper,B=new Map,z=!0,j=C[0],U=0;U=0,W=P?"width":"height",J=uO(n,{placement:G,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),H=P?oe?$u:Cc:oe?Bu:wc;D[W]>E[W]&&(H=e2(H));var pe=e2(H),A=[];if(o&&A.push(J[X]<=0),a&&A.push(J[H]<=0,J[pe]<=0),A.every(function(ce){return ce})){j=G,z=!1;break}B.set(G,A)}if(z)for(var F=function(ve){var je=C.find(function(Te){var et=B.get(Te);if(et)return et.slice(0,ve).every(function(We){return We})});if(je)return j=je,"break"},q=p?3:1;q>0&&"break"!==F(q);q--);n.placement!==j&&(n.modifiersData[i]._skip=!0,n.placement=j,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ky(t,n,e){return pm(t,t2(n,e))}function dO(t){var n=Av(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const DOe={name:"preventOverflow",enabled:!0,phase:"main",fn:function kOe(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,f=void 0===h||h,p=e.tetherOffset,m=void 0===p?0:p,g=uO(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),v=Hd(n.placement),y=Mv(n.placement),b=!y,C=cO(v),D=function COe(t){return"x"===t?"y":"x"}(C),E=n.modifiersData.popperOffsets,B=n.rects.reference,z=n.rects.popper,j="function"==typeof m?m(Object.assign({},n.rects,{placement:n.placement})):m,U="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),G=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(E){if(o){var oe,P="y"===C?wc:Cc,W="y"===C?Bu:$u,J="y"===C?"height":"width",H=E[C],pe=H+g[P],A=H-g[W],N=f?-z[J]/2:0,F=y===Tv?B[J]:z[J],q=y===Tv?-z[J]:-B[J],V=n.elements.arrow,ce=f&&V?dO(V):{width:0,height:0},ve=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},je=ve[P],Te=ve[W],et=Ky(0,B[J],ce[J]),We=b?B[J]/2-N-et-je-U.mainAxis:F-et-je-U.mainAxis,st=b?-B[J]/2+N+et+Te+U.mainAxis:q+et+Te+U.mainAxis,$=n.elements.arrow&&Jy(n.elements.arrow),le=null!=(oe=G?.[C])?oe:0,Ze=H+st-le,Ve=Ky(f?t2(pe,H+We-le-($?"y"===C?$.clientTop||0:$.clientLeft||0:0)):pe,H,f?pm(A,Ze):A);E[C]=Ve,X[C]=Ve-H}if(a){var Ct,Xn=E[D],on="y"===D?"height":"width",Ri=Xn+g["x"===C?wc:Cc],hn=Xn-g["x"===C?Bu:$u],vr=-1!==[wc,Cc].indexOf(v),Er=null!=(Ct=G?.[D])?Ct:0,fr=vr?Ri:Xn-B[on]-z[on]-Er+U.altAxis,wr=vr?Xn+B[on]+z[on]-Er-U.altAxis:hn,Si=f&&vr?function SOe(t,n,e){var i=Ky(t,n,e);return i>e?e:i}(fr,Xn,wr):Ky(f?fr:Ri,Xn,f?wr:hn);E[D]=Si,X[D]=Si-Xn}n.modifiersData[i]=X}},requiresIfExists:["offset"]};const MOe={name:"arrow",enabled:!0,phase:"main",fn:function EOe(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=Hd(e.placement),l=cO(a),u=[Cc,$u].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(n,e){return CU("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:SU(n,Wy))}(r.padding,e),h=dO(o),f="y"===l?wc:Cc,p="y"===l?Bu:$u,m=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],g=s[l]-e.rects.reference[l],v=Jy(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,E=y/2-h[u]/2+(m/2-g/2),B=Ky(d[f],E,y-h[u]-d[p]);e.modifiersData[i]=((n={})[l]=B,n.centerOffset=B-E,n)}},effect:function AOe(t){var n=t.state,i=t.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||_U(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function FOe(t,n,e){void 0===e&&(e=!1);var i=Qc(n),r=Qc(n)&&function NOe(t){var n=t.getBoundingClientRect(),e=Ev(n.width)/t.offsetWidth||1,i=Ev(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),o=Wf(n),s=Av(t,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==Ud(n)||aO(o))&&(a=function IOe(t){return t!==Sc(t)&&Qc(t)?function OOe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):oO(t)}(n)),Qc(n)?((l=Av(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):o&&(l.x=sO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function POe(t){var n=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=n.get(a);l&&r(l)}}),i.push(o)}return t.forEach(function(o){n.set(o.name,o)}),t.forEach(function(o){e.has(o.name)||r(o)}),i}function jOe(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var kU={placement:"bottom",modifiers:[],strategy:"absolute"};function DU(){for(var t=arguments.length,n=new Array(t),e=0;e=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Cc,$u].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,n.rects,o),u},{}),a=s[n.placement],c=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=a.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[i]=s}};function tIe(t,n){}function nIe(t,n){if(1&t&&(_(0,"button",3),O(1),te(2,tIe,0,0,"ng-template",4),x()),2&t){const e=n.$implicit;S("ngbPanelToggle",e),w(1),bn(" ",e.title," "),w(1),S("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function iIe(t,n){}function rIe(t,n){}function oIe(t,n){if(1&t){const e=_t();_(0,"div",8),ke("ngbRef",function(r){return ze(e),Ge(L().$implicit.panelDiv=r)}),_(1,"div",9),te(2,rIe,0,0,"ng-template",4),x()()}if(2&t){const e=L().$implicit;Ph("id",e.id),ft("aria-labelledby",e.id+"-header"),w(2),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const sIe=function(t,n){return{$implicit:t,opened:n}};function aIe(t,n){if(1&t&&(_(0,"div")(1,"div",5),te(2,iIe,0,0,"ng-template",6),x(),te(3,oIe,3,3,"div",7),x()),2&t){const e=n.$implicit,i=L(),r=sa(1);Au("accordion-item "+(e.cardClass||"")),w(1),Au("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),em("id","",e.id,"-header"),w(1),S("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||r)("ngTemplateOutletContext",Rr(8,sIe,e,e.isOpen)),w(1),S("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function lIe(t,n){if(1&t){const e=_t();_(0,"button",1),ke("click",function(){return ze(e),Ge(L().close())}),x()}}const Qy=["*"];function cIe(t,n){if(1&t){const e=_t();_(0,"button",6),ke("click",function(){const o=ze(e).$implicit,s=L();return s.focus(),Ge(s.select(o.id,s.NgbSlideEventSource.INDICATOR))}),x()}if(2&t){const e=n.$implicit,i=L();Vn("active",e.id===i.activeId),ft("aria-labelledby","slide-"+e.id)("aria-controls","slide-"+e.id)("aria-selected",e.id===i.activeId)}}function uIe(t,n){}function dIe(t,n){if(1&t&&(_(0,"div",7)(1,"span",8),Pa(2,9),x(),te(3,uIe,0,0,"ng-template",10),x()),2&t){const e=n.$implicit,i=n.index,r=n.count;S("id","slide-"+e.id),w(2),cv(i+1)(r),ey(2),w(1),S("ngTemplateOutlet",e.tplRef)}}function hIe(t,n){if(1&t){const e=_t();_(0,"button",11),ke("click",function(){return ze(e),Ge(L().arrowLeft())}),xe(1,"span",12),_(2,"span",8),Pa(3,13),x()()}}function fIe(t,n){if(1&t){const e=_t();_(0,"button",14),ke("click",function(){return ze(e),Ge(L().arrowRight())}),xe(1,"span",15),_(2,"span",8),Pa(3,16),x()()}}const pIe=["ngbDatepickerDayView",""],mIe=["month"],gIe=["year"];function vIe(t,n){if(1&t&&(_(0,"option",5),O(1),x()),2&t){const e=n.$implicit,i=L();S("value",e),ft("aria-label",i.i18n.getMonthFullName(e,i.date.year)),w(1),wt(i.i18n.getMonthShortName(e,i.date.year))}}function yIe(t,n){if(1&t&&(_(0,"option",5),O(1),x()),2&t){const e=n.$implicit,i=L();S("value",e),w(1),wt(i.i18n.getYearNumerals(e))}}function _Ie(t,n){if(1&t){const e=_t();_(0,"ngb-datepicker-navigation-select",7),ke("select",function(r){return ze(e),Ge(L().select.emit(r))}),x()}if(2&t){const e=L();S("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function bIe(t,n){1&t&&xe(0,"div",0)}function xIe(t,n){1&t&&xe(0,"div",0)}function wIe(t,n){if(1&t&&(te(0,bIe,1,0,"div",9),_(1,"div",10),O(2),x(),te(3,xIe,1,0,"div",9)),2&t){const e=n.$implicit,i=n.index,r=L(2);S("ngIf",i>0),w(2),bn(" ",r.i18n.getMonthLabel(e.firstDate)," "),w(1),S("ngIf",i!==r.months.length-1)}}function CIe(t,n){1&t&&te(0,wIe,4,3,"ng-template",8),2&t&&S("ngForOf",L().months)}function SIe(t,n){if(1&t&&(_(0,"div",5),O(1),x()),2&t){const e=L(2);w(1),wt(e.i18n.getWeekLabel())}}function kIe(t,n){if(1&t&&(_(0,"div",6),O(1),x()),2&t){const e=n.$implicit;w(1),wt(e)}}function DIe(t,n){if(1&t&&(_(0,"div",2),te(1,SIe,2,1,"div",3),te(2,kIe,2,1,"div",4),x()),2&t){const e=L();w(1),S("ngIf",e.datepicker.showWeekNumbers),w(1),S("ngForOf",e.viewModel.weekdays)}}function TIe(t,n){if(1&t&&(_(0,"div",11),O(1),x()),2&t){const e=L(2).$implicit,i=L();w(1),wt(i.i18n.getWeekNumerals(e.number))}}function EIe(t,n){}function AIe(t,n){if(1&t&&te(0,EIe,0,0,"ng-template",14),2&t){const e=L().$implicit;S("ngTemplateOutlet",L(3).datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function MIe(t,n){if(1&t){const e=_t();_(0,"div",12),ke("click",function(r){const s=ze(e).$implicit;return L(3).doSelect(s),Ge(r.preventDefault())}),te(1,AIe,1,2,"ng-template",13),x()}if(2&t){const e=n.$implicit;Vn("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),S("tabindex",e.tabindex),ft("aria-label",e.ariaLabel),w(1),S("ngIf",!e.hidden)}}function OIe(t,n){if(1&t&&(_(0,"div",8),te(1,TIe,2,1,"div",9),te(2,MIe,2,9,"div",10),x()),2&t){const e=L().$implicit,i=L();w(1),S("ngIf",i.datepicker.showWeekNumbers),w(1),S("ngForOf",e.days)}}function IIe(t,n){1&t&&te(0,OIe,3,2,"div",7),2&t&&S("ngIf",!n.$implicit.collapsed)}const NIe=["defaultDayTemplate"],FIe=["content"];function PIe(t,n){if(1&t&&xe(0,"div",8),2&t){const i=n.currentMonth,r=n.selected,o=n.disabled,s=n.focused;S("date",n.date)("currentMonth",i)("selected",r)("disabled",o)("focused",s)}}function RIe(t,n){if(1&t&&(_(0,"div",13),O(1),x()),2&t){const e=L().$implicit,i=L(2);w(1),bn(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function jIe(t,n){if(1&t&&(_(0,"div",10),te(1,RIe,2,1,"div",11),xe(2,"ngb-datepicker-month",12),x()),2&t){const e=n.$implicit,i=L(2);w(1),S("ngIf","none"===i.navigation||i.displayMonths>1&&"select"===i.navigation),w(1),S("month",e.firstDate)}}function LIe(t,n){1&t&&te(0,jIe,3,2,"div",9),2&t&&S("ngForOf",L().model.months)}function BIe(t,n){if(1&t){const e=_t();_(0,"ngb-datepicker-navigation",14),ke("navigate",function(r){return ze(e),Ge(L().onNavigateEvent(r))})("select",function(r){return ze(e),Ge(L().onNavigateDateSelect(r))}),x()}if(2&t){const e=L();S("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function $Ie(t,n){}function VIe(t,n){}const EU=function(t){return{$implicit:t}},HIe=["dialog"],UIe=["ngbNavOutlet",""];function zIe(t,n){}function GIe(t,n){if(1&t&&(_(0,"div",2),te(1,zIe,0,0,"ng-template",3),x()),2&t){const e=L().$implicit,i=L();S("item",e)("nav",i.nav)("role",i.paneRole),w(1),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",Zi(5,EU,e.active||i.isPanelTransitioning(e)))}}function WIe(t,n){if(1&t&&te(0,GIe,2,7,"div",1),2&t){const e=n.$implicit,i=L();S("ngIf",e.isPanelInDom()||i.isPanelTransitioning(e))}}function qIe(t,n){1&t&&(_(0,"span",9),Pa(1,10),x())}function YIe(t,n){1&t&&(_(0,"span",9),Pa(1,11),x())}function XIe(t,n){1&t&&(_(0,"span",9),Pa(1,12),x())}function JIe(t,n){1&t&&(_(0,"span",9),Pa(1,13),x())}function KIe(t,n){1&t&&O(0,"...")}function QIe(t,n){1&t&&O(0),2&t&&wt(n.$implicit)}function ZIe(t,n){}const eNe=function(t){return{disabled:!0,currentPage:t}};function tNe(t,n){if(1&t&&(_(0,"a",18),te(1,ZIe,0,0,"ng-template",8),x()),2&t){const e=L(2).$implicit,i=L(),r=sa(9);w(1),S("ngTemplateOutlet",(null==i.tplEllipsis?null:i.tplEllipsis.templateRef)||r)("ngTemplateOutletContext",Zi(2,eNe,e))}}function nNe(t,n){}const iNe=function(t,n,e){return{disabled:t,$implicit:n,currentPage:e}};function rNe(t,n){if(1&t){const e=_t();_(0,"a",19),ke("click",function(r){ze(e);const o=L().$implicit;return L(2).selectPage(o),Ge(r.preventDefault())}),te(1,nNe,0,0,"ng-template",8),x()}if(2&t){const e=L().$implicit,i=L(),r=i.disabled,o=i.$implicit,s=L(),a=sa(11);ft("tabindex",r?"-1":null)("aria-disabled",r?"true":null),w(1),S("ngTemplateOutlet",(null==s.tplNumber?null:s.tplNumber.templateRef)||a)("ngTemplateOutletContext",ty(4,iNe,r,e,o))}}function oNe(t,n){if(1&t&&(_(0,"li",15),te(1,tNe,2,4,"a",16),te(2,rNe,2,8,"a",17),x()),2&t){const e=n.$implicit,i=L(),r=i.$implicit,o=i.disabled,s=L();Vn("active",e===r)("disabled",s.isEllipsis(e)||o),ft("aria-current",e===r?"page":null),w(1),S("ngIf",s.isEllipsis(e)),w(1),S("ngIf",!s.isEllipsis(e))}}function sNe(t,n){1&t&&te(0,oNe,3,7,"li",14),2&t&&S("ngForOf",n.pages)}function aNe(t,n){}const hO=function(t,n){return{disabled:t,currentPage:n}};function lNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",20),ke("click",function(r){return ze(e),L().selectPage(1),Ge(r.preventDefault())}),te(2,aNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(1);Vn("disabled",e.previousDisabled()),w(1),ft("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.previousDisabled(),e.page))}}function cNe(t,n){}const uNe=function(t){return{disabled:t}};function dNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",21),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.page-1),Ge(r.preventDefault())}),te(2,cNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(3);Vn("disabled",e.previousDisabled()),w(1),ft("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||i)("ngTemplateOutletContext",Zi(6,uNe,e.previousDisabled()))}}function hNe(t,n){}function fNe(t,n){}function pNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",22),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.page+1),Ge(r.preventDefault())}),te(2,fNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(5);Vn("disabled",e.nextDisabled()),w(1),ft("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.nextDisabled(),e.page))}}function mNe(t,n){}function gNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",23),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.pageCount),Ge(r.preventDefault())}),te(2,mNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(7);Vn("disabled",e.nextDisabled()),w(1),ft("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.nextDisabled(),e.page))}}const vNe=function(t,n,e){return{$implicit:t,pages:n,disabled:e}};function bNe(t,n){if(1&t&&(_(0,"span"),Pa(1,1),_A(2,"percent"),x()),2&t){const e=L();w(2),cv(bA(2,1,e.getValue()/e.max)),ey(1)}}function xNe(t,n){1&t&&O(0),2&t&&wt(100===n.fill?"\u2605":"\u2606")}function wNe(t,n){}function CNe(t,n){if(1&t){const e=_t();_(0,"span",2),O(1),x(),_(2,"span",3),ke("mouseenter",function(){const o=ze(e).index;return Ge(L().enter(o+1))})("click",function(){const o=ze(e).index;return Ge(L().handleClick(o+1))}),te(3,wNe,0,0,"ng-template",4),x()}if(2&t){const e=n.index,i=L(),r=sa(1);w(1),bn("(",e=12)("ngIfElse",e)}}function RNe(t,n){if(1&t&&(_(0,"strong",3),O(1),x()),2&t){const e=L();w(1),wt(e.header)}}function jNe(t,n){}function LNe(t,n){if(1&t){const e=_t();_(0,"div",4),te(1,jNe,0,0,"ng-template",5),_(2,"button",6),ke("click",function(){return ze(e),Ge(L().hide())}),x()()}if(2&t){const e=L(),i=sa(1);w(1),S("ngTemplateOutlet",e.contentHeaderTpl||i)}}function BNe(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L().$implicit;Au(L().highlightClass),w(1),wt(e)}}function $Ne(t,n){1&t&&O(0),2&t&&wt(L().$implicit)}function VNe(t,n){if(1&t&&(te(0,BNe,2,3,"span",1),te(1,$Ne,1,1,"ng-template",null,2,Xo)),2&t){const e=n.odd,i=sa(2);S("ngIf",e)("ngIfElse",i)}}function Ha(t){return parseInt(`${t}`,10)}function AU(t){return null!=t?`${t}`:""}function r2(t,n,e=0){return Math.max(Math.min(t,n),e)}function mm(t){return"string"==typeof t}function gs(t){return!isNaN(Ha(t))}function is(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function gm(t){return null!=t}function Ov(t){return gs(t)?`0${t}`.slice(-2):""}function OU(t,n){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(n)>=0}function Iv(t){return(t||document.body).getBoundingClientRect()}function IU(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const NU={animation:!0,transitionTimerDelayMs:5},YNe=()=>{},{transitionTimerDelayMs:XNe}=NU,Zy=new Map,pa=(t,n,e,i)=>{let r=i.context||{};const o=Zy.get(n);if(o)switch(i.runningTransition){case"continue":return Uh;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Zy.delete(n)}const s=e(n,i.animation,r)||YNe;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),Hn(void 0).pipe(function WNe(t){return n=>new Wt(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const a=new fn,l=new fn,c=a.pipe(function V3e(...t){return n=>oC(n,Hn(...t))}(!0));Zy.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function qNe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const d=Va(n,"transitionend").pipe(ns(c),ps(({target:f})=>f===n));uU(Gy(u+XNe).pipe(ns(c)),d,l).pipe(ns(c)).subscribe(()=>{Zy.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},fO=(t,n,e)=>{let{direction:i,maxSize:r,dimension:o}=e;const{classList:s}=t;function a(){s.add("collapse"),"show"===i?s.add("show"):s.remove("show")}if(n)return r||(r=function KNe(t,n){if(typeof navigator>"u")return"0px";const{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[n]="";const r=t.getBoundingClientRect()[n]+"px";return i||e.remove("show"),r}(t,o),e.maxSize=r,t.style[o]="show"!==i?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),Iv(t),s.add("collapsing")),t.style[o]="show"===i?r:"0px",()=>{a(),s.remove("collapsing"),t.style[o]=""};a()};let qf=(()=>{class t{constructor(){this.animation=NU.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),FU=(()=>{class t{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QNe=0,pO=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),PU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),RU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),mO=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+QNe++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ot,this.hidden=new ot}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["ngb-panel"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,PU,4),Ti(r,pO,4),Ti(r,RU,4)),2&e){let o;Tn(o=En())&&(i.titleTpls=o),Tn(o=En())&&(i.headerTpls=o),Tn(o=En())&&(i.contentTpls=o)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),ZNe=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new ot}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),jU=(()=>{class t{constructor(e,i){this.accordion=e,this.panel=i}set ngbPanelToggle(e){e&&(this.panel=e)}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>gO)),ge(mO,9))},t.\u0275dir=un({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&ke("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(ql("disabled",i.panel.disabled),ft("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),Vn("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),gO=(()=>{class t{constructor(e,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ot,this.shown=new ot,this.hidden=new ot,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const i=this._findPanelById(e);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){mm(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{this.panels.forEach(e=>{const i=e.panelDiv;i?e.initClassDone||(e.initClassDone=!0,pa(this._ngZone,i,fO,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide",dimension:"height"}})):e.initClassDone=!1})})}_changeOpenState(e,i){if(null!=e&&!e.disabled&&e.isOpen!==i){let r=!1;this.panelChange.emit({panelId:e.id,nextState:i,preventDefault:()=>{r=!0}}),r||(e.isOpen=i,e.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,i=!0){this.panels.forEach(r=>{r.id!==e&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(e){return this.panels.find(i=>i.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&pa(this._ngZone,i.panelDiv,fO,{animation:e,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{i.transitionRunning=!1;const{id:o}=i;i.isOpen?(i.shown.emit(),this.shown.emit(o)):(i.hidden.emit(),this.hidden.emit(o))})})}}return t.\u0275fac=function(e){return new(e||t)(ge(FU),ge(ur),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,mO,4),2&e){let o;Tn(o=En())&&(i.panels=o)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&ft("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[Bs],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(e,i){1&e&&(te(0,nIe,3,3,"ng-template",0,1,Xo),te(2,aIe,4,11,"ng-template",2)),2&e&&(w(2),S("ngForOf",i.panels))},dependencies:[Un,Fu,jU,ZNe,pO,xn],encapsulation:2}),t})(),VU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[gO]}),t})();const oFe=({classList:t})=>{t.remove("show")};let sFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yo=(()=>{class t{constructor(e,i,r,o){this._renderer=i,this._element=r,this._zone=o,this.closed=new ot,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=pa(this._zone,this._element.nativeElement,oFe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(ge(sFe),ge(oa),ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Vn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[ei,Bs],ngContentSelectors:Qy,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Df(),Tf(0),te(1,lIe,1,0,"button",0)),2&e&&(w(1),S("ngIf",i.dismissible))},dependencies:[xn],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),HU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[yo]}),t})();var Yf=(()=>(function(t){t.START="start",t.END="end"}(Yf||(Yf={})),Yf))();const UU=({classList:t})=>t.contains("carousel-item-start")||t.contains("carousel-item-end"),e_=t=>{t.remove("carousel-item-start"),t.remove("carousel-item-end")},o2=t=>{e_(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},aFe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(UU(t)?e_(i):(i.add("carousel-item-"+(e===Yf.START?"next":"prev")),Iv(t),i.add("carousel-item-"+e)),()=>{o2(i),i.add("active")}):(e_(i),o2(i),void i.add("active"))},lFe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(UU(t)?e_(i):i.add("carousel-item-"+e),()=>{o2(i),i.remove("active")}):(e_(i),o2(i),void i.remove("active"))};let cFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uFe=0,dFe=(()=>{class t{constructor(e){this.tplRef=e,this.id="ngb-slide-"+uFe++,this.slid=new ot}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"},standalone:!0}),t})(),hFe=(()=>{class t{constructor(e,i,r,o,s){this._platformId=i,this._ngZone=r,this._cd=o,this._container=s,this.NgbSlideEventSource=ym,this._destroy$=new fn,this._interval$=new ca(0),this._mouseHover$=new ca(!1),this._focused$=new ca(!1),this._pauseOnHover$=new ca(!1),this._pauseOnFocus$=new ca(!1),this._pause$=new ca(!1),this._wrap$=new ca(!1),this.slide=new ot,this.slid=new ot,this._transitionIds=null,this.animation=e.animation,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.pauseOnFocus=e.pauseOnFocus,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(e){this._pauseOnFocus$.next(e)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(e){this._mouseHover$.next(e)}get mouseHover(){return this._mouseHover$.value}set focused(e){this._focused$.next(e)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(ym.ARROW_LEFT)}arrowRight(){this.focus(),this.next(ym.ARROW_RIGHT)}ngAfterContentInit(){v7(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const e=rC([this.slide.pipe($t(i=>i.current),aC(this.activeId)),this._wrap$,this.slides.changes.pipe(aC(null))]).pipe($t(([i,r])=>{const o=this.slides.toArray(),s=this._getSlideIdxById(i);return r?o.length>1:si||r&&o||s&&a||!c?0:l),QC(),bc(i=>i>0?Gy(i,i):dU),ns(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(ym.TIMER)))}),this.slides.changes.pipe(ns(this._destroy$)).subscribe(()=>{this._transitionIds?.forEach(e=>(t=>{Zy.get(t)?.complete()})(this._getSlideElement(e))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{for(const{id:e}of this.slides){const i=this._getSlideElement(e);e===this.activeId?i.classList.add("active"):i.classList.remove("active")}})})}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const e=this._getSlideElement(this.activeId);e&&e.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(e,i){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),i)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),Yf.END,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),Yf.START,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(e,i,r){const o=this._transitionIds;if(o&&(o[0]!==e||o[1]!==this.activeId))return;let s=this._getSlideById(e);if(s&&s.id!==this.activeId){this._transitionIds=[this.activeId,e],this.slide.emit({prev:this.activeId,current:s.id,direction:i,paused:this._pause$.value,source:r});const a={animation:this.animation,runningTransition:"stop",context:{direction:i}},l=[],c=this._getSlideById(this.activeId);if(c){const f=pa(this._ngZone,this._getSlideElement(c.id),lFe,a);f.subscribe(()=>{c.slid.emit({isShown:!1,direction:i,source:r})}),l.push(f)}const u=this.activeId;this.activeId=s.id;const d=this._getSlideById(this.activeId),h=pa(this._ngZone,this._getSlideElement(s.id),aFe,a);h.subscribe(()=>{d?.slid.emit({isShown:!0,direction:i,source:r})}),l.push(h),ZC(...l).pipe(ua(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:u,current:s.id,direction:i,paused:this._pause$.value,source:r})})}this._cd.markForCheck()}_getSlideEventDirection(e,i){return this._getSlideIdxById(e)>this._getSlideIdxById(i)?Yf.END:Yf.START}_getSlideById(e){return this.slides.find(i=>i.id===e)||null}_getSlideIdxById(e){const i=this._getSlideById(e);return null!=i?this.slides.toArray().indexOf(i):-1}_getNextSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return r===i.length-1?this.wrap?i[0].id:i[i.length-1].id:i[r+1].id}_getPrevSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return 0===r?this.wrap?i[i.length-1].id:i[0].id:i[r-1].id}_getSlideElement(e){return this._container.nativeElement.querySelector(`#slide-${e}`)}}return t.\u0275fac=function(e){return new(e||t)(ge(cFe),ge(sy),ge(ur),ge($s),ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-carousel"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,dFe,4),2&e){let o;Tn(o=En())&&(i.slides=o)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(e,i){1&e&&ke("keydown.arrowLeft",function(){return i.keyboard&&i.arrowLeft()})("keydown.arrowRight",function(){return i.keyboard&&i.arrowRight()})("mouseenter",function(){return i.mouseHover=!0})("mouseleave",function(){return i.mouseHover=!1})("focusin",function(){return i.focused=!0})("focusout",function(){return i.focused=!1}),2&e&&(ft("aria-activedescendant","slide-"+i.activeId),cr("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],standalone:!0,features:[Bs],decls:6,vars:6,consts:function(){let n,e,i;return n=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,e=$localize`:@@ngb.carousel.previous:Previous`,i=$localize`:@@ngb.carousel.next:Next`,[["role","tablist",1,"carousel-indicators"],["type","button","data-bs-target","","role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","type","button",3,"click",4,"ngIf"],["class","carousel-control-next","type","button",3,"click",4,"ngIf"],["type","button","data-bs-target","","role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"visually-hidden"],n,[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],e,["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],i]},template:function(e,i){1&e&&(_(0,"div",0),te(1,cIe,1,5,"button",1),x(),_(2,"div",2),te(3,dIe,4,4,"div",3),x(),te(4,hIe,4,0,"button",4),te(5,fIe,4,0,"button",5)),2&e&&(Vn("visually-hidden",!i.showNavigationIndicators),w(1),S("ngForOf",i.slides),w(2),S("ngForOf",i.slides),w(1),S("ngIf",i.showNavigationArrows),w(1),S("ngIf",i.showNavigationArrows))},dependencies:[Un,Fu,xn],encapsulation:2,changeDetection:0}),t})();var ym=(()=>(function(t){t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator"}(ym||(ym={})),ym))();let zU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[hFe]}),t})(),GU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();class ma{constructor(n,e,i){this.year=is(n)?n:null,this.month=is(e)?e:null,this.day=is(i)?i:null}static from(n){return n instanceof ma?n:n?new ma(n.year,n.month,n.day):null}equals(n){return null!=n&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return!!n&&(this.year===n.year?this.month===n.month?this.day!==n.day&&this.dayn.day:this.month>n.month:this.year>n.year)}}function Nv(t,n){return!function fFe(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}(t,n)}function WU(t,n){return!(!t&&!n||t&&n&&t.year===n.year&&t.month===n.month)}function s2(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function yO(t,n){const{minDate:e,maxDate:i,disabled:r,markDisabled:o}=n;return!(null==t||r||o&&o(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function qU(t){return new ma(t.getFullYear(),t.getMonth()+1,t.getDate())}function a2(t){const n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}let l2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function wFe(){return new CFe}()},providedIn:"root"}),t})(),CFe=(()=>{class t extends l2{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",r=1){let o=a2(e),s=!0,a=o.getMonth();switch(i){case"y":o.setFullYear(o.getFullYear()+r);break;case"m":a+=r,o.setMonth(a),a%=12,a<0&&(a+=12);break;case"d":o.setDate(o.getDate()+r),s=!1;break;default:return e}return s&&o.getMonth()!==a&&o.setDate(0),qU(o)}getPrev(e,i="d",r=1){return this.getNext(e,i,-r)}getWeekday(e){let r=a2(e).getDay();return 0===r?7:r}getWeekNumber(e,i){7===i&&(i=0);const s=a2(e[(11-i)%7]);s.setDate(s.getDate()+4-(s.getDay()||7));const a=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((a-s.getTime())/864e5)/7)+1}getToday(){return qU(new Date)}isValid(e){if(!(e&&is(e.year)&&is(e.month)&&is(e.day)&&0!==e.year))return!1;const i=a2(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function SFe(t){return new kFe(t)}(xt(vc)),i},providedIn:"root"}),t})(),kFe=(()=>{class t extends _m{constructor(e){super(),this._locale=e,this._monthsShort=QA(e,Vo.Standalone,Yi.Abbreviated),this._monthsFull=QA(e,Vo.Standalone,Yi.Wide)}getWeekdayLabel(e,i){const r=J$(this._locale,Vo.Standalone,void 0===i?Yi.Short:i);return r.map((s,a)=>r[(a+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){return Q$(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(xt(vc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),_O=(()=>{class t{constructor(e,i){this._calendar=e,this._i18n=i,this._VALIDATORS={dayTemplateData:r=>{if(this._state.dayTemplateData!==r)return{dayTemplateData:r}},displayMonths:r=>{if(is(r=Ha(r))&&r>0&&this._state.displayMonths!==r)return{displayMonths:r}},disabled:r=>{if(this._state.disabled!==r)return{disabled:r}},firstDayOfWeek:r=>{if(is(r=Ha(r))&&r>=0&&this._state.firstDayOfWeek!==r)return{firstDayOfWeek:r}},focusVisible:r=>{if(this._state.focusVisible!==r&&!this._state.disabled)return{focusVisible:r}},markDisabled:r=>{if(this._state.markDisabled!==r)return{markDisabled:r}},maxDate:r=>{const o=this.toValidDate(r,null);if(Nv(this._state.maxDate,o))return{maxDate:o}},minDate:r=>{const o=this.toValidDate(r,null);if(Nv(this._state.minDate,o))return{minDate:o}},navigation:r=>{if(this._state.navigation!==r)return{navigation:r}},outsideDays:r=>{if(this._state.outsideDays!==r)return{outsideDays:r}},weekdays:r=>{const o=!0===r||!1===r?Yi.Short:r,s=!0!==r&&!1!==r||r;if(this._state.weekdayWidth!==o||this._state.weekdaysVisible!==s)return{weekdayWidth:o,weekdaysVisible:s}}},this._model$=new fn,this._dateSelect$=new fn,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:Yi.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(ps(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(ps(e=>null!==e))}set(e){let i=Object.keys(e).map(r=>this._VALIDATORS[r](e[r])).reduce((r,o)=>({...r,...o}),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){const i=this.toValidDate(e,null);null!=i&&!this._state.disabled&&Nv(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){yO(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const i=this.toValidDate(e,this._calendar.getToday());null!=i&&!this._state.disabled&&(!this._state.firstDate||WU(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){const r=this.toValidDate(e,null);null!=r&&!this._state.disabled&&(Nv(this._state.selectedDate,r)&&this._nextState({selectedDate:r}),i.emitEvent&&yO(r,this._state)&&this._dateSelect$.next(r))}toValidDate(e,i){const r=ma.from(e);return void 0===i&&(i=this._calendar.getToday()),this._calendar.isValid(r)?r:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){const{months:i,displayMonths:r,selectedDate:o,focusDate:s,focusVisible:a,disabled:l,outsideDays:c}=e;e.months.forEach(u=>{u.weeks.forEach(d=>{d.days.forEach(h=>{s&&(h.context.focused=s.equals(h.date)&&a),h.tabindex=!l&&s&&h.date.equals(s)&&s.month===u.number?0:-1,!0===l&&(h.context.disabled=!0),void 0!==o&&(h.context.selected=null!==o&&o.equals(h.date)),u.number!==h.date.month&&(h.hidden="hidden"===c||"collapsed"===c||r>1&&h.date.after(i[0].firstDate)&&h.date.before(i[r-1].lastDate))})})})}_updateState(e){const i=Object.assign({},this._state,e);let r=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(function pFe(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}(i.minDate,i.maxDate),i.focusDate=s2(i.focusDate,i.minDate,i.maxDate),i.firstDate=s2(i.firstDate,i.minDate,i.maxDate),r=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(r=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=s2(i.focusDate,i.minDate,i.maxDate),r=i.focusDate,0!==i.months.length&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=s2(i.firstDate,i.minDate,i.maxDate),r=i.firstDate),r){const s=function _Fe(t,n,e,i,r){const{displayMonths:o,months:s}=e,a=s.splice(0,s.length);return Array.from({length:o},(c,u)=>{const d=Object.assign(t.getNext(n,"m",u),{day:1});if(s[u]=null,!r){const h=a.findIndex(f=>f.firstDate.equals(d));-1!==h&&(s[u]=a.splice(h,1)[0])}return d}).forEach((c,u)=>{null===s[u]&&(s[u]=function bFe(t,n,e,i,r={}){const{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u,weekdayWidth:d,weekdaysVisible:h}=e,f=t.getToday();r.firstDate=null,r.lastDate=null,r.number=n.month,r.year=n.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],n=function xFe(t,n,e){const i=t.getDaysPerWeek(),r=new ma(n.year,n.month,1),o=t.getWeekday(r)%i;return t.getPrev(r,"d",(i+o-e)%i)}(t,n,l),h||(r.weekdays.length=0);for(let p=0;pv.date),l),m.collapsed="collapsed"===u&&g[0].date.month!==r.number&&g[g.length-1].date.month!==r.number}return r}(t,c,e,i,a.shift()||{}))}),s}(this._calendar,r,i,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e);i.months=s,i.firstDate=s[0].firstDate,i.lastDate=s[s.length-1].lastDate,"selectedDate"in e&&!yO(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=r);const a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;"select"===i.navigation?(("minDate"in e||"maxDate"in e||0===i.selectBoxes.years.length||a)&&(i.selectBoxes.years=function gFe(t,n,e){if(!t)return[];const i=n?Math.max(n.year,t.year-500):t.year-10,o=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,s=Array(o);for(let a=0;as===e.month);r=r.slice(o)}if(i&&n.year===i.year){const o=r.findIndex(s=>s===i.month);r=r.slice(0,o+1)}return r}(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},("arrows"===i.navigation||"select"===i.navigation)&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||function yFe(t,n,e){const i=Object.assign(t.getPrev(n,"m"),{day:1});return null!=e&&(i.year===e.year&&i.month(function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(Fv||(Fv={})),Fv))();let DFe=(()=>{class t{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m))},t.\u0275cmp=Vt({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,i){2&e&&Vn("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[Bs],attrs:pIe,decls:1,vars:1,template:function(e,i){1&e&&O(0),2&e&&wt(i.i18n.getDayNumerals(i.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),TFe=(()=>{class t{constructor(e,i){this.i18n=e,this._renderer=i,this.select=new ot,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new ma(this.date.year,Ha(e),1))}changeYear(e){this.select.emit(new ma(Ha(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(ge(_m),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,i){if(1&e&&(wo(mIe,7,Ni),wo(gIe,7,Ni)),2&e){let r;Tn(r=En())&&(i.monthSelect=r.first),Tn(r=En())&&(i.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[Bs],decls:6,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.select-month:Select month`,e=$localize`:@@ngb.datepicker.select-month:Select month`,i=$localize`:@@ngb.datepicker.select-year:Select year`,r=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",n,"title",e,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",i,"title",r,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,i){1&e&&(_(0,"select",0,1),ke("change",function(o){return i.changeMonth(o.target.value)}),te(2,vIe,2,3,"option",2),x(),_(3,"select",3,4),ke("change",function(o){return i.changeYear(o.target.value)}),te(5,yIe,2,2,"option",2),x()),2&e&&(S("disabled",i.disabled),w(2),S("ngForOf",i.months),w(1),S("disabled",i.disabled),w(2),S("ngForOf",i.years))},dependencies:[Un],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),t})(),EFe=(()=>{class t{constructor(e){this.i18n=e,this.navigation=Fv,this.months=[],this.navigate=new ot,this.select=new ot}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[Bs],decls:8,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.previous-month:Previous month`,e=$localize`:@@ngb.datepicker.previous-month:Previous month`,i=$localize`:@@ngb.datepicker.next-month:Next month`,r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",n,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",i,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,i){1&e&&(_(0,"div",0)(1,"button",1),ke("click",function(o){return i.onClickPrev(o)}),xe(2,"span",2),x()(),te(3,_Ie,1,4,"ngb-datepicker-navigation-select",3),te(4,CIe,1,1,null,4),_(5,"div",5)(6,"button",6),ke("click",function(o){return i.onClickNext(o)}),xe(7,"span",2),x()()),2&e&&(w(1),S("disabled",i.prevDisabled),w(2),S("ngIf",i.showSelect),w(1),S("ngIf",!i.showSelect),w(2),S("disabled",i.nextDisabled))},dependencies:[xn,Un,TFe],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),t})();var jr=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(jr||(jr={})),jr))();let AFe=(()=>{class t{processKey(e,i){const{state:r,calendar:o}=i;switch(e.which){case jr.PageUp:i.focusDate(o.getPrev(r.focusedDate,e.shiftKey?"y":"m",1));break;case jr.PageDown:i.focusDate(o.getNext(r.focusedDate,e.shiftKey?"y":"m",1));break;case jr.End:i.focusDate(e.shiftKey?r.maxDate:r.lastDate);break;case jr.Home:i.focusDate(e.shiftKey?r.minDate:r.firstDate);break;case jr.ArrowLeft:i.focusDate(o.getPrev(r.focusedDate,"d",1));break;case jr.ArrowUp:i.focusDate(o.getPrev(r.focusedDate,"d",o.getDaysPerWeek()));break;case jr.ArrowRight:i.focusDate(o.getNext(r.focusedDate,"d",1));break;case jr.ArrowDown:i.focusDate(o.getNext(r.focusedDate,"d",o.getDaysPerWeek()));break;case jr.Enter:case jr.Space:i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bO=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=Yi.Short}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function MFe(){return new OFe}()},providedIn:"root"}),t})(),OFe=(()=>{class t extends xO{fromModel(e){return e&&is(e.year)&&is(e.month)&&is(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&is(e.year)&&is(e.month)&&is(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),YU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0}),t})(),wO=(()=>{class t{constructor(e,i,r,o){this.i18n=e,this.datepicker=i,this._keyboardService=r,this._service=o}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m),ge(ji(()=>c2)),ge(AFe),ge(_O))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,i){1&e&&ke("keydown",function(o){return i.onKeyDown(o)})},inputs:{month:"month"},standalone:!0,features:[Bs],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(te(0,DIe,3,2,"div",0),te(1,IIe,1,1,"ng-template",1)),2&e&&(S("ngIf",i.viewModel.weekdays.length>0),w(1),S("ngForOf",i.viewModel.weeks))},dependencies:[xn,Un,Fu],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),t})(),c2=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this._service=e,this._calendar=i,this._i18n=r,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=c,this.injector=Vi(Ca),this._controlValue=null,this._destroyed$=new fn,this._publicState={},this.navigate=new ot,this.dateSelect=new ot,this.onChange=u=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(u=>this[u]=o[u]),e.dateSelect$.pipe(ns(this._destroyed$)).subscribe(u=>{this.dateSelect.emit(u)}),e.model$.pipe(ns(this._destroyed$)).subscribe(u=>{const d=u.firstDate,h=this.model?this.model.firstDate:null;this._publicState={maxDate:u.maxDate,minDate:u.minDate,firstDate:u.firstDate,lastDate:u.lastDate,focusedDate:u.focusDate,months:u.months.map(v=>v.firstDate)};let f=!1;if(!d.equals(h)&&(this.navigate.emit({current:h?{year:h.year,month:h.month}:null,next:{year:d.year,month:d.month},preventDefault:()=>f=!0}),f&&null!==h))return void this._service.open(h);const p=u.selectedDate,m=u.focusDate,g=this.model?this.model.focusDate:null;this.model=u,Nv(p,this._controlValue)&&(this._controlValue=p,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(p))),Nv(m,g)&&g&&u.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(ma.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(ma.from(e?e.day?e:{...e,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Va(this._contentEl.nativeElement,"focusin"),i=Va(this._contentEl.nativeElement,"focusout"),{nativeElement:r}=this._elementRef;Mt(e,i).pipe(ps(({target:o,relatedTarget:s})=>!(OU(o,"ngb-dp-day")&&OU(s,"ngb-dp-day")&&r.contains(o)&&r.contains(s))),ns(this._destroyed$)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===o})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(r=>r in e).forEach(r=>i[r]=this[r]),this._service.set(i),"startDate"in e){const{currentValue:r,previousValue:o}=e.startDate;WU(o,r)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Fv.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Fv.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=ma.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(ge(_O),ge(l2),ge(_m),ge(bO),ge($s),ge(Ni),ge(xO),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,YU,7),2&e){let o;Tn(o=En())&&(i.contentTemplateFromContent=o.first)}},viewQuery:function(e,i){if(1&e&&(wo(NIe,7),wo(FIe,7)),2&e){let r;Tn(r=En())&&(i._defaultDayTemplate=r.first),Tn(r=En())&&(i._contentEl=r.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("disabled",i.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0},_O]),ei,Bs],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,i){if(1&e&&(te(0,PIe,1,5,"ng-template",null,0,Xo),te(2,LIe,1,1,"ng-template",null,1,Xo),_(4,"div",2),te(5,BIe,1,7,"ngb-datepicker-navigation",3),x(),_(6,"div",4,5),te(8,$Ie,0,0,"ng-template",6),x(),te(9,VIe,0,0,"ng-template",7)),2&e){const r=sa(3);w(5),S("ngIf","none"!==i.navigation),w(1),Vn("ngb-dp-months",!i.contentTemplate),w(2),S("ngTemplateOutlet",i.contentTemplate||(null==i.contentTemplateFromContent?null:i.contentTemplateFromContent.templateRef)||r)("ngTemplateOutletContext",Zi(7,EU,i))("ngTemplateOutletInjector",i.injector),w(1),S("ngTemplateOutlet",i.footerTemplate)}},dependencies:[xn,Un,Fu,DFe,wO,EFe],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),t})();const u2=(t,n)=>!!n&&n.some(e=>e.contains(t)),XU=(t,n)=>!n||null!=function GNe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),IFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),NFe=t=>IFe?()=>setTimeout(()=>t(),100):t;function CO(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(NFe(()=>{const c=Va(n,"keydown").pipe(ns(r),ps(h=>h.which===jr.Escape),ms(h=>h.preventDefault())),u=Va(n,"mousedown").pipe($t(h=>{const f=h.target;return 2!==h.button&&!u2(f,s)&&("inside"===e?u2(f,o)&&XU(f,a):"outside"===e?!u2(f,o):XU(f,a)||!u2(f,o))}),ns(r)),d=Va(n,"mouseup").pipe(Z3(u),ps(([h,f])=>f),eO(0),ns(r));uU([c.pipe($t(h=>0)),d.pipe($t(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const JU=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function KU(t){const n=Array.from(t.querySelectorAll(JU)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}let FFe=(()=>{class t{constructor(e){this._element=e.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const PFe=/\s+/,RFe=/ +/gi,jFe={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},BFe=/^left/,$Fe=/^right/,VFe=/^start/,HFe=/^end/;function ZU({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(PFe),o=i.findIndex(c=>"auto"===c);o>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==i.find(u=>-1!==u.search("^"+c))&&i.splice(o++,1,c)});const s=i.map(c=>function LFe(t,n){const[e,i]=jFe[t];return n&&i||e}(c,e.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const u=new RegExp(n+"(-[a-z]+)*","gi"),d=c.elements.popper,h=c.placement;let f=d.className;f=f.replace(u,""),f+=` ${function UFe(t,n){let[e,i]=n.split("-");const r=e.replace(BFe,"start").replace($Fe,"end");let o=[r];if(i){let s=i;("left"===e||"right"===e)&&(s=s.replace(VFe,"top").replace(HFe,"bottom")),o.push(`${r}-${s}`)}return t&&(o=o.map(s=>`${t}-${s}`)),o.join(" ")}(n,h)}`,f=f.trim().replace(RFe," "),d.className=f}},wOe,DOe,MOe,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function ez(t){return t}function SO(){const t=Vi(FFe);let n=null;return{createPopper(e){if(!n){let r=(e.updatePopperOptions||ez)(ZU(e,t));n=KOe(e.hostElement,e.targetElement,r)}},update(){n&&n.update()},setOptions(e){if(n){let r=(e.updatePopperOptions||ez)(ZU(e,t));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}new Date(1882,10,12),new Date(2174,10,25);let cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[c2,wO]}),t})(),ePe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xf=(()=>{class t{constructor(e,i){this.elementRef=e,this._renderer=i,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(e,i){2&e&&(ql("tabIndex",i.disabled?-1:0),Vn("disabled",i.disabled))},inputs:{disabled:"disabled"},standalone:!0}),t})(),Jf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Xf,4),2&e){let o;Tn(o=En())&&(i.menuItems=o)}},hostVars:4,hostBindings:function(e,i){1&e&&ke("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&Vn("dropdown-menu",!0)("show",i.dropdown.isOpen())},standalone:!0}),t})(),p2=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ft("aria-expanded",i.dropdown.isOpen())},standalone:!0}),t})(),wm=(()=>{class t extends p2{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&ke("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ft("aria-expanded",i.dropdown.isOpen())},standalone:!0,features:[oo([{provide:p2,useExisting:ji(()=>t)}]),wi]}),t})(),Hu=(()=>{class t{constructor(e,i,r,o,s,a){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._destroyCloseHandlers$=new fn,this._bodyContainer=null,this._open=!1,this.openChange=new ot,this.placement=i.placement,this.popperOptions=i.popperOptions,this.container=i.container,this.autoClose=i.autoClose,this._positioning=SO(),this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic"}ngAfterContentInit(){this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),e.dropdownClass){const{currentValue:i,previousValue:r}=e.dropdownClass;this._applyCustomDropdownClass(i,r)}e.autoClose&&this._open&&(this.autoClose=e.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:e=>this.popperOptions(function nz(t){return n=>(n.modifiers.push(eIe,{name:"offset",options:{offset:()=>t}}),n)}([0,2])(e))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),CO(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==jr.Space&&i!==jr.Enter){if(i!==jr.Tab){if(a||s){if(this.open(),r.length){switch(i){case jr.ArrowDown:o=Math.min(o+1,r.length-1);break;case jr.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case jr.Home:o=0;break;case jr.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(JU);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Va(e.target,"focusout").pipe(ua(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Va(s,"click").pipe(ua(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;this._menu&&e.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1055"),i.appendChild(o,r),i.appendChild(this._document.body,o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){const r="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;r&&(i&&this._renderer.removeClass(r,i),e&&this._renderer.addClass(r,e))}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown");const{nativeElement:s}=i;"static"===this.display?(i.placement=null,r.setAttribute(s,"data-bs-popper","static")):(i.placement=e,r.removeAttribute(s,"data-bs-popper"));const a=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,a);const l=this._bodyContainer;l&&(r.removeClass(l,"dropup"),r.removeClass(l,"dropdown"),r.addClass(l,a))}}}return t.\u0275fac=function(e){return new(e||t)(ge($s),ge(ePe),ge(vo),ge(ur),ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Jf,5),Ti(r,p2,5)),2&e){let o;Tn(o=En())&&(i._menu=o.first),Tn(o=En())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("show",i.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[ei]}),t})(),uz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();class Cm{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class tPe{constructor(n,e,i,r,o,s){this._componentType=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,o=this._ngZone.onStable.pipe(ua(1),it(()=>pa(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(n=!1){return this._windowRef?pa(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(ms(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Hn(void 0)}_getContentRef(n,e){if(n){if(n instanceof fo){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new Cm([i.rootNodes],i)}return new Cm([[this._renderer.createText(`${n}`)]])}return new Cm([])}}let nPe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{pa(this._zone,this._el.nativeElement,(e,i)=>{i&&Iv(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return pa(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(Au("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Vn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Bs],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class dz{update(n){}close(n){}dismiss(n){}}const iPe=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],rPe=["animation","backdropClass"];class oPe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new fn,this._dismissed=new fn,this._hidden=new fn,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}_applyWindowOptions(n,e){iPe.forEach(i=>{gm(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){rPe.forEach(i=>{gm(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(ns(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(ns(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function MU(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Hn(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ZC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var i_=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(i_||(i_={})),i_))();let sPe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new fn,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ot,this.shown=new fn,this.hidden=new fn}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":mm(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=ZC(pa(this._zone,e,()=>e.classList.remove("show"),i),pa(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};ZC(pa(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Iv(o),o.classList.add("show")},e),pa(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Va(e,"keydown").pipe(ns(this._closed$),ps(r=>r.which===jr.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(i_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Va(this._dialogEl.nativeElement,"mousedown").pipe(ns(this._closed$),ms(()=>i=!1),bc(()=>Va(e,"mouseup").pipe(ns(this._closed$),ua(1))),ps(({target:r})=>e===r)).subscribe(()=>{i=!0}),Va(e,"click").pipe(ns(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(i_.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=KU(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&pa(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(ge(vo),ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&wo(HIe,7),2&e){let r;Tn(r=En())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ft("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Au("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Vn("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Df(),_(0,"div",0,1)(2,"div",2),Tf(3),x()()),2&e&&Au("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),aPe=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(e>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=o}}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lPe=(()=>{class t{constructor(e,i,r,o,s,a,l){this._applicationRef=e,this._injector=i,this._environmentInjector=r,this._document=o,this._scrollBar=s,this._rendererFactory=a,this._ngZone=l,this._activeWindowCmptHasChanged=new fn,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ot,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Va(n,"focusin").pipe(ns(e),$t(o=>o.target));Va(n,"keydown").pipe(ns(e),ps(o=>o.which===jr.Tab),Z3(r)).subscribe(([o,s])=>{const[a,l]=KU(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Va(n,"click").pipe(ns(e),Z3(r),$t(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const o=r.container instanceof HTMLElement?r.container:gm(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new dz,l=(e=r.injector||e).get(Gc,null)||this._environmentInjector,c=this._getContentRef(e,l,i,a,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,c.nodes),h=new oPe(d,c,u,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(ua(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{h.close(f)},a.dismiss=f=>{h.dismiss(f)},a.update=f=>{h.update(f)},h.update(r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=qA(nPe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=qA(sPe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,o,s){return r?r instanceof fo?this._createFromTemplateRef(r,o):mm(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new Cm([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new Cm([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Cm([[i]])}_createFromComponent(e,i,r,o,s){const l=qA(r,{environmentInjector:i,elementInjector:Ca.create({providers:[{provide:dz,useValue:o}],parent:e})}),c=l.location.nativeElement;return s.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new Cm([[c]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(xt(jh),xt(Ca),xt(Gc),xt(vo),xt(aPe),xt(Wg),xt(ur))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m2=(()=>{class t{constructor(e,i,r){this._injector=e,this._modalStack=i,this._config=r}open(e,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(xt(Ca),xt(lPe),xt(cPe))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[m2]}),t})(),uPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fz=t=>gm(t)&&""!==t;let dPe=0,pz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbNavContent",""]],standalone:!0}),t})(),Xh=(()=>{class t{constructor(e,i){this._nav=e,this.elementRef=i,this.disabled=!1,this.shown=new ot,this.hidden=new ot}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){gm(this.domId)||(this.domId="ngb-nav-"+dPe++)}get active(){return this._nav.activeId===this.id}get id(){return fz(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(gm(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>zd)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,pz,4),2&e){let o;Tn(o=En())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0}),t})(),zd=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new ot,this.shown=new ot,this.hidden=new ot,this.destroy$=new fn,this.navItemChange$=new fn,this.navChange=new ot,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case jr.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case jr.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case jr.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case jr.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case jr.Home:s=0;break;case jr.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!gm(this.activeId)){const e=this.items.first?this.items.first.id:null;fz(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(ns(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(kf("role"),ge(uPe),ge($s),ge(vo))},t.\u0275dir=un({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Xh,4),Ti(r,Kf,5)),2&e){let o;Tn(o=En())&&(i.items=o),Tn(o=En())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&ke("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ft("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Vn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[ei]}),t})(),Kf=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(kf("role"),ge(Xh),ge(zd),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(e,i){2&e&&(ql("id",i.navItem.domId),ft("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Vn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))},standalone:!0}),t})(),r_=(()=>{class t{constructor(e,i){this.navItem=e,this.nav=i}}return t.\u0275fac=function(e){return new(e||t)(ge(Xh),ge(zd))},t.\u0275dir=un({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(e,i){1&e&&ke("click",function(o){return i.nav.click(i.navItem),o.preventDefault()})},standalone:!0,features:[G1([Kf])]}),t})();const pPe=({classList:t})=>(t.remove("show"),()=>t.remove("active")),mPe=(t,n)=>{n&&Iv(t),t.classList.add("show")};let EO=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,i){2&e&&(ql("id",i.item.panelDomId),ft("role",i.role?i.role:i.nav.roles?"tabpanel":void 0)("aria-labelledby",i.item.domId),Vn("fade",i.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0}),t})(),mz=(()=>{class t{constructor(e,i){this._cd=e,this._ngZone=i,this._activePane=null}isPanelTransitioning(e){return this._activePane?.item===e}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ns(this.nav.destroy$),aC(this._activePane?.item||null),QC(),function X3e(t){return n=>n.lift(new J3e(t))}(1)).subscribe(e=>{const i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?pa(this._ngZone,this._activePane.elRef.nativeElement,pPe,i).subscribe(()=>{const r=this._activePane?.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),pa(this._ngZone,this._activePane.elRef.nativeElement,mPe,i).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.elRef.nativeElement.classList.add("show"),this._activePane?.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(ge($s),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,i){if(1&e&&wo(EO,5),2&e){let r;Tn(r=En())&&(i._panes=r)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},standalone:!0,features:[Bs],attrs:UIe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&te(0,WIe,1,1,"ng-template",0),2&e&&S("ngForOf",i.nav.items)},dependencies:[EO,Un,xn,Fu],encapsulation:2,changeDetection:0}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[mz]}),t})(),gPe=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]],standalone:!0}),t})(),yz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationFirst",""]],standalone:!0}),t})(),_z=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationLast",""]],standalone:!0}),t})(),bz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationNext",""]],standalone:!0}),t})(),xz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationNumber",""]],standalone:!0}),t})(),wz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]],standalone:!0}),t})(),Cz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationPages",""]],standalone:!0}),t})(),Sz=(()=>{class t{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new ot(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),i0&&this.pageCount>this.maxSize){let i=0,r=this.pageCount;[i,r]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(i,r),this._applyEllipses(i,r)}}}return t.\u0275fac=function(e){return new(e||t)(ge(gPe))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-pagination"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,vz,5),Ti(r,yz,5),Ti(r,_z,5),Ti(r,bz,5),Ti(r,xz,5),Ti(r,wz,5),Ti(r,Cz,5)),2&e){let o;Tn(o=En())&&(i.tplEllipsis=o.first),Tn(o=En())&&(i.tplFirst=o.first),Tn(o=En())&&(i.tplLast=o.first),Tn(o=En())&&(i.tplNext=o.first),Tn(o=En())&&(i.tplNumber=o.first),Tn(o=En())&&(i.tplPrevious=o.first),Tn(o=En())&&(i.tplPages=o.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},standalone:!0,features:[ei,Bs],decls:20,vars:12,consts:function(){let n,e,i,r,o,s,a,l;return n=$localize`:@@ngb.pagination.first:««`,e=$localize`:@@ngb.pagination.previous:«`,i=$localize`:@@ngb.pagination.next:»`,r=$localize`:@@ngb.pagination.last:»»`,o=$localize`:@@ngb.pagination.first-aria:First`,s=$localize`:@@ngb.pagination.previous-aria:Previous`,a=$localize`:@@ngb.pagination.next-aria:Next`,l=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],n,e,i,r,["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"],["aria-label",l,"href","",1,"page-link",3,"click"]]},template:function(e,i){if(1&e&&(te(0,qIe,2,0,"ng-template",null,0,Xo),te(2,YIe,2,0,"ng-template",null,1,Xo),te(4,XIe,2,0,"ng-template",null,2,Xo),te(6,JIe,2,0,"ng-template",null,3,Xo),te(8,KIe,1,0,"ng-template",null,4,Xo),te(10,QIe,1,1,"ng-template",null,5,Xo),te(12,sNe,1,1,"ng-template",null,6,Xo),_(14,"ul"),te(15,lNe,3,9,"li",7),te(16,dNe,3,8,"li",7),te(17,hNe,0,0,"ng-template",8),te(18,pNe,3,9,"li",7),te(19,gNe,3,9,"li",7),x()),2&e){const r=sa(13);w(14),Au("pagination"+(i.size?" pagination-"+i.size:"")),w(1),S("ngIf",i.boundaryLinks),w(1),S("ngIf",i.directionLinks),w(1),S("ngTemplateOutlet",(null==i.tplPages?null:i.tplPages.templateRef)||r)("ngTemplateOutletContext",ty(8,vNe,i.page,i.pages,i.disabled)),w(1),S("ngIf",i.directionLinks),w(1),S("ngIf",i.boundaryLinks)}},dependencies:[xn,Un,Fu],encapsulation:2,changeDetection:0}),t})(),kz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Sz]}),t})();class vPe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const yPe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Dz=t=>t>0?eO(t):n=>n;let Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),CPe=(()=>{class t{constructor(){this.max=100,this.animated=!1,this.ariaLabel="progress bar",this.striped=!1,this.showValue=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SPe=(()=>{class t{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.ariaLabel=e.ariaLabel,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!gs(e)||e<=0?100:e}get max(){return this._max}getValue(){return r2(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}}return t.\u0275fac=function(e){return new(e||t)(ge(CPe))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:5,hostBindings:function(e,i){2&e&&(ft("aria-valuenow",i.getValue())("aria-valuemax",i.max)("aria-label",i.ariaLabel),cr("height",i.height))},inputs:{max:"max",animated:"animated",ariaLabel:"ariaLabel",striped:"striped",showValue:"showValue",textType:"textType",type:"type",value:"value",height:"height"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:3,vars:11,consts:function(){let n;return n=$localize`:@@ngb.progressbar.value:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[4,"ngIf"],n]},template:function(e,i){1&e&&(Df(),_(0,"div"),te(1,bNe,3,3,"span",0),Tf(2),x()),2&e&&(function z6(t,n,e,i,r){Ou(pc,Rd,Zg(Xt(),t,n,e,i,r),!0)}("progress-bar",i.type?i.textType?" bg-"+i.type:" text-bg-"+i.type:"","",i.textType?" text-"+i.textType:"",""),cr("width",i.getPercentValue(),"%"),Vn("progress-bar-animated",i.animated)("progress-bar-striped",i.striped),w(1),S("ngIf",i.showValue))},dependencies:[xn,m7],encapsulation:2,changeDetection:0}),t})(),Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[SPe]}),t})(),kPe=(()=>{class t{constructor(){this.max=10,this.readonly=!1,this.resettable=!1,this.tabindex=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DPe=(()=>{class t{constructor(e,i){this._changeDetectorRef=i,this.contexts=[],this.disabled=!1,this.hover=new ot,this.leave=new ot,this.rateChange=new ot(!0),this.onChange=r=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly,this.tabindex=e.tabindex}ariaValueText(e,i){return`${e} out of ${i}`}isInteractive(){return!this.readonly&&!this.disabled}enter(e){this.isInteractive()&&this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.isInteractive()&&this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case jr.ArrowDown:case jr.ArrowLeft:this.update(this.rate-1);break;case jr.ArrowUp:case jr.ArrowRight:this.update(this.rate+1);break;case jr.Home:this.update(0);break;case jr.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate),e.max&&this._updateMax()}ngOnInit(){this._setupContexts(),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,i=!0){const r=r2(e,this.max,0);this.isInteractive()&&this.rate!==r&&(this.rate=r,this.rateChange.emit(this.rate)),i&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_updateState(e){this.nextRate=e,this.contexts.forEach((i,r)=>i.fill=Math.round(100*r2(e-r,1,0)))}_updateMax(){this.max>0&&(this._setupContexts(),this.update(this.rate))}_setupContexts(){this.contexts=Array.from({length:this.max},(e,i)=>({fill:0,index:i}))}}return t.\u0275fac=function(e){return new(e||t)(ge(kPe),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-rating"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,fo,5),2&e){let o;Tn(o=En())&&(i.starTemplateFromContent=o.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,i){1&e&&ke("blur",function(){return i.handleBlur()})("keydown",function(o){return i.handleKeyDown(o)})("mouseleave",function(){return i.reset()}),2&e&&(ql("tabindex",i.disabled?-1:i.tabindex),ft("aria-valuemax",i.max)("aria-valuenow",i.nextRate)("aria-valuetext",i.ariaValueText(i.nextRate,i.max))("aria-disabled",!!i.readonly||null))},inputs:{max:"max",rate:"rate",readonly:"readonly",resettable:"resettable",starTemplate:"starTemplate",tabindex:"tabindex",ariaValueText:"ariaValueText"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0}]),ei,Bs],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"visually-hidden"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(te(0,xNe,1,1,"ng-template",null,0,Xo),te(2,CNe,4,5,"ng-template",1)),2&e&&(w(2),S("ngForOf",i.contexts))},dependencies:[Un,Fu],encapsulation:2,changeDetection:0}),t})(),Az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[DPe]}),t})();class Mz{constructor(n,e,i){this.hour=Ha(n),this.minute=Ha(e),this.second=Ha(i)}changeHour(n=1){this.updateHour((isNaN(this.hour)?0:this.hour)+n)}updateHour(n){this.hour=gs(n)?(n<0?24+n:n)%24:NaN}changeMinute(n=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+n)}updateMinute(n){gs(n)?(this.minute=n%60<0?60+n%60:n%60,this.changeHour(Math.floor(n/60))):this.minute=NaN}changeSecond(n=1){this.updateSecond((isNaN(this.second)?0:this.second)+n)}updateSecond(n){gs(n)?(this.second=n<0?60+n%60:n%60,this.changeMinute(Math.floor(n/60))):this.second=NaN}isValid(n=!0){return gs(this.hour)&&gs(this.minute)&&(!n||gs(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let TPe=(()=>{class t{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function EPe(){return new APe}()},providedIn:"root"}),t})(),APe=(()=>{class t extends Oz{fromModel(e){return e&&is(e.hour)&&is(e.minute)?{hour:e.hour,minute:e.minute,second:is(e.second)?e.second:null}:null}toModel(e){return e&&is(e.hour)&&is(e.minute)?{hour:e.hour,minute:e.minute,second:is(e.second)?e.second:null}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),Iz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function MPe(t){return new OPe(t)}(xt(vc)),i},providedIn:"root"}),t})(),OPe=(()=>{class t extends Iz{constructor(e){super(),this._periods=X$(e,Vo.Standalone,Yi.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return t.\u0275fac=function(e){return new(e||t)(xt(vc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const IPe=/[^0-9]/g;let NPe=(()=>{class t{constructor(e,i,r,o){this._config=e,this._ngbTimeAdapter=i,this._cd=r,this.i18n=o,this.onChange=s=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=is(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=is(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=is(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const i=this._ngbTimeAdapter.fromModel(e);this.model=i?new Mz(i.hour,i.minute,i.second):new Mz,!this.seconds&&(!i||!gs(i.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model?.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model?.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model?.changeSecond(e),this.propagateModelChange()}updateHour(e){const i=!!this.model&&this.model.hour>=12,r=Ha(e);this.model?.updateHour(this.meridian&&(i&&r<12||!i&&12===r)?r+12:r),this.propagateModelChange()}updateMinute(e){this.model?.updateMinute(Ha(e)),this.propagateModelChange()}updateSecond(e){this.model?.updateSecond(Ha(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(IPe,"")}formatHour(e){return gs(e)?Ov(this.meridian?e%12==0?12:e%12:e%24):Ov(NaN)}formatMinSec(e){return Ov(gs(e)?e:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!gs(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model?.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return t.\u0275fac=function(e){return new(e||t)(ge(TPe),ge(Oz),ge($s),ge(Iz))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},exportAs:["ngbTimepicker"],standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0}]),ei,Bs],decls:16,vars:25,consts:function(){let n,e,i,r,o,s,a,l,c,u,d,h,f,p;return n=$localize`:@@ngb.timepicker.HH:HH`,e=$localize`:@@ngb.timepicker.hours:Hours`,i=$localize`:@@ngb.timepicker.MM:MM`,r=$localize`:@@ngb.timepicker.minutes:Minutes`,o=$localize`:@@ngb.timepicker.increment-hours:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hours:Decrement hours`,a=$localize`:@@ngb.timepicker.increment-minutes:Increment minutes`,l=$localize`:@@ngb.timepicker.decrement-minutes:Decrement minutes`,c=$localize`:@@ngb.timepicker.SS:SS`,u=$localize`:@@ngb.timepicker.seconds:Seconds`,d=$localize`:@@ngb.timepicker.increment-seconds:Increment seconds`,h=$localize`:@@ngb.timepicker.decrement-seconds:Decrement seconds`,f=$localize`:@@ngb.timepicker.PM:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AM:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",i,"aria-label",r,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"visually-hidden"],o,[1,"chevron","ngb-tp-chevron","bottom"],s,a,l,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",c,"aria-label",u,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],d,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],f,p]},template:function(e,i){1&e&&(_(0,"fieldset",0)(1,"div",1)(2,"div",2),te(3,SNe,4,7,"button",3),_(4,"input",4),ke("change",function(o){return i.updateHour(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeHour(i.hourStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeHour(-i.hourStep),o.preventDefault()}),x(),te(5,kNe,4,7,"button",3),x(),_(6,"div",5),O(7,":"),x(),_(8,"div",6),te(9,DNe,4,7,"button",3),_(10,"input",7),ke("change",function(o){return i.updateMinute(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeMinute(i.minuteStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeMinute(-i.minuteStep),o.preventDefault()}),x(),te(11,TNe,4,7,"button",3),x(),te(12,ENe,2,0,"div",8),te(13,ONe,4,9,"div",9),te(14,INe,1,0,"div",8),te(15,PNe,5,9,"div",10),x()()),2&e&&(Vn("disabled",i.disabled),S("disabled",i.disabled),w(3),S("ngIf",i.spinners),w(1),Vn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatHour(null==i.model?null:i.model.hour))("readOnly",i.readonlyInputs)("disabled",i.disabled),w(1),S("ngIf",i.spinners),w(4),S("ngIf",i.spinners),w(1),Vn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatMinSec(null==i.model?null:i.model.minute))("readOnly",i.readonlyInputs)("disabled",i.disabled),w(1),S("ngIf",i.spinners),w(1),S("ngIf",i.seconds),w(1),S("ngIf",i.seconds),w(1),S("ngIf",i.meridian),w(1),S("ngIf",i.meridian))},dependencies:[xn],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n'],encapsulation:2}),t})(),Nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[NPe]}),t})();const FPe=(t,n)=>{const{classList:e}=t;if(n)return e.add("fade"),Iv(t),e.add("show","showing"),()=>{e.remove("showing")};e.add("show")},PPe=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")});let RPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["","ngbToastHeader",""]],standalone:!0}),t})(),LPe=(()=>{class t{constructor(e,i,r,o){this.ariaLive=e,this._zone=r,this._element=o,this.contentHeaderTpl=null,this.shown=new ot,this.hidden=new ot,null==this.ariaLive&&(this.ariaLive=i.ariaLive),this.delay=i.delay,this.autohide=i.autohide,this.animation=i.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const e=pa(this._zone,this._element.nativeElement,PPe,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){const e=pa(this._zone,this._element.nativeElement,FPe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}return t.\u0275fac=function(e){return new(e||t)(kf("aria-live"),ge(RPe),ge(ur),ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-toast"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,jPe,7,fo),2&e){let o;Tn(o=En())&&(i.contentHeaderTpl=o.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(e,i){2&e&&(ft("aria-live",i.ariaLive),Vn("fade",i.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[ei,Bs],ngContentSelectors:Qy,decls:5,vars:1,consts:function(){let n;return n=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Df(),te(0,RNe,2,1,"ng-template",null,0,Xo),te(2,LNe,3,1,"ng-template",1),_(3,"div",2),Tf(4),x()),2&e&&(w(2),S("ngIf",i.contentHeaderTpl||i.header))},dependencies:[xn,Fu],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2}),t})(),Fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[LPe]}),t})(),BPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$Pe=0,VPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(e,i){2&e&&(ql("id",i.id),Au("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Vn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Df(),xe(0,"div",0),_(1,"div",1),Tf(2),x())},encapsulation:2,changeDetection:0}),t})(),HPe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u){this._elementRef=e,this._renderer=i,this._ngZone=a,this._document=l,this._changeDetector=c,this.shown=new ot,this.hidden=new ot,this._ngbTooltipWindowId="ngb-tooltip-"+$Pe++,this._windowRef=null,this.animation=s.animation,this.autoClose=s.autoClose,this.placement=s.placement,this.popperOptions=s.popperOptions,this.triggers=s.triggers,this.container=s.container,this.disableTooltip=s.disableTooltip,this.tooltipClass=s.tooltipClass,this.openDelay=s.openDelay,this.closeDelay=s.closeDelay,this._popupService=new tPe(VPe,r,o,i,this._ngZone,u),this._positioning=SO()}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:o=>this.popperOptions(o)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),CO(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(e=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(e).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function wPe(t,n,e,i,r,o,s=0,a=0){const l=function _Pe(t,n=yPe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new vPe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function bPe(t,n,e,i){return new Wt(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function xPe(t,n,e){return i=>{let r=null;const o=i.pipe($t(l=>({open:l})),ps(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),Je());return Mt(o.pipe(ps(l=>l.open),Dz(t)),o.pipe(ps(l=>!l.open),Dz(n))).pipe(ps(l=>l===r&&(r=null,l.open!==e())),$t(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(mm(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(Ca),ge(Yl),ge(BPe),ge(ur),ge(vo),ge($s),ge(jh))},t.\u0275dir=un({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[ei]}),t})(),Pz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),UPe=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const i=AU(this.result),r=Array.isArray(this.term)?this.term:[this.term],o=c=>this.accentSensitive?c:IU(c),s=r.map(c=>function zNe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(o(AU(c)))).filter(c=>c),a=this.accentSensitive?i:IU(i),l=s.length?a.split(new RegExp(`(${s.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=l;else{let c=0;this.parts=l.map(u=>i.substring(c,c+=u.length))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[ei,Bs],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,i){1&e&&te(0,VNe,3,2,"ng-template",0),2&e&&S("ngForOf",i.parts)},dependencies:[xn,Un],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0}),t})();new Yn("live announcer delay",{providedIn:"root",factory:function zPe(){return 100}});let Rz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[UPe]}),t})(),jz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();const GPe=[VU,HU,zU,GU,cz,uz,hz,gz,jz,kz,Tz,Ez,Az,Nz,Fz,Pz,Rz];let WPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[GPe,VU,HU,zU,GU,cz,uz,hz,gz,jz,kz,Tz,Ez,Az,Nz,Fz,Pz,Rz]}),t})(),Lz=(()=>{class t{restrictedPages=new Map([["users",ri.USER_ROLE_ADMIN],["config",ri.USER_ROLE_DEVELOPER],["modules",ri.USER_ROLE_DEVELOPER],["apiexplorer",ri.USER_ROLE_DEVELOPER]]);static \u0275fac=function(i){return new(i||t)};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qPe(t,n){if(1&t&&(Cl(0,5),_(1,"a",31),xe(2,"img",32),_(3,"span",12),O(4),x()(),Sl()),2&t){const e=L().$implicit;S("ngbNavItem",e.navItem),w(1),S("routerLink",e.routerLink),w(1),em("src","/static/svg/",e.icon,".svg",B1),w(2),wt(e.label)}}function YPe(t,n){if(1&t&&te(0,qPe,5,4,"ng-container",24),2&t){const e=n.$implicit;S("ngIf",L().getSessionRole()<=e.minRole)}}const XPe=function(){return["/settings/mfa"]};function JPe(t,n){1&t&&(Cl(0,5),_(1,"a",31),xe(2,"img",33),_(3,"span",12),O(4,"MFA Setup"),x()(),Sl()),2&t&&(S("ngbNavItem","mfasetup"),w(1),S("routerLink",cl(2,XPe)))}function KPe(t,n){if(1&t&&(_(0,"div",34)(1,"h2",35),xe(2,"img",36),O(3,"An error has occurred!"),x(),_(4,"h6",37),O(5),x(),_(6,"p"),O(7,"Please refresh the page to try again."),x()()),2&t){const e=L();w(5),wt(e.error)}}function QPe(t,n){1&t&&(_(0,"div",38),xe(1,"img",39),x())}function ZPe(t,n){1&t&&xe(0,"router-outlet")}const e4e=function(){return["/"]},t4e=function(){return["/login"]};let n4e=(()=>{class t{route;router;segment;authService;UserRole=ri;routerSub;segmentRouterSub;loading=!0;error="";routes=[{navItem:"status",routerLink:["/status"],label:"Status",minRole:ri.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:ri.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:ri.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:ri.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:ri.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:ri.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:ri.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:ri.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:ri.USER_ROLE_READONLY,icon:"chat"},{navItem:"purchases",routerLink:["/purchases"],label:"Purchases",minRole:ri.USER_ROLE_READONLY,icon:""},{navItem:"subscriptions",routerLink:["/subscriptions"],label:"Subscriptions",minRole:ri.USER_ROLE_READONLY,icon:""},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:ri.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:ri.USER_ROLE_DEVELOPER,icon:"api-explorer"}];constructor(e,i,r,o){this.route=e,this.router=i,this.segment=r,this.authService=o,this.loading=!1,this.routerSub=this.router.events.pipe(function C3e(t){let n=arguments.length,e=KC;fi(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new S3e(t,i,r,e))}}(2e3)).subscribe(s=>{if(0===s.length)return;const a=s[s.length-1];a instanceof gC&&(this.loading=!0),a instanceof Gh&&(this.loading=!1),a instanceof ky&&(this.loading=!1),a instanceof yC&&(this.loading=!1,this.error=a.error)}),this.segmentRouterSub=i.events.pipe(QC((s,a)=>!(a instanceof Gh)||s.url===a.url)).subscribe(s=>{})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}x;getUsername(){return this.authService.username}isMfaEnabled(){return!this.authService.session?.mfa_code}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(zC),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:50,vars:12,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","http://heroiclabs.com/cloud?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Heroic%20Cloud%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/hiro/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Hiro%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/hiro.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/satori/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Satori%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/satori.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/docs/nakama/getting-started/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Documentation%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Blog%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],["src","/static/svg/configuration.svg","alt","","width","24","height","",1,"mr-1"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1)(2,"nav",2,3),ke("navChange",function(s){return r.onSidebarNavChange(s)}),_(4,"div",4),Cl(5,5),_(6,"a",6),xe(7,"img",7)(8,"img",8),x(),Sl(),xe(9,"hr"),te(10,YPe,1,1,"ng-template",9),xe(11,"hr"),_(12,"a",10),xe(13,"img",11),_(14,"span",12),O(15,"Heroic Cloud"),x()(),_(16,"a",13),xe(17,"img",14),_(18,"span",12),O(19,"Hiro"),x()(),_(20,"a",15),xe(21,"img",16),_(22,"span",12),O(23,"Satori"),x()(),xe(24,"hr"),_(25,"a",17),xe(26,"img",18),_(27,"span",12),O(28,"Documentation"),x()(),_(29,"a",19),xe(30,"img",20),_(31,"span",12),O(32,"Forum"),x()(),_(33,"a",21),xe(34,"img",22),_(35,"span",12),O(36,"Heroic Labs Blog"),x()(),xe(37,"hr"),_(38,"div",23),O(39),x(),te(40,JPe,5,3,"ng-container",24),Cl(41,5),_(42,"a",25),ke("click",function(){return r.logout()}),xe(43,"img",26),_(44,"span",12),O(45,"Logout"),x()(),Sl(),x()(),_(46,"main",27),te(47,KPe,8,1,"div",28),te(48,QPe,2,0,"div",29),te(49,ZPe,1,0,"router-outlet",30),x()()()),2&i&&(w(5),S("ngbNavItem","logo"),w(1),S("routerLink",cl(10,e4e)),w(4),S("ngForOf",r.routes),w(29),bn("Logged in as: ",r.getUsername(),""),w(1),S("ngIf",!r.isMfaEnabled()),w(1),S("ngbNavItem","logout"),w(1),S("routerLink",cl(11,t4e)),w(5),S("ngIf",r.error),w(1),S("ngIf",!r.error&&r.loading),w(1),S("ngIf",!r.error&&!r.loading))},dependencies:[Vf,Ru,Ny,Un,xn,zd,Xh,r_,Kf],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px;color:#fff}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})}return t})(),i4e=(()=>{class t{authService;router;globals;constructor(e,i,r){this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ca.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class l4e extends a4e{}"function"==typeof SuppressedError&&SuppressedError;class N4e{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new F4e(n,this.dueTime,this.scheduler))}}class F4e extends I{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P4e,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function P4e(t){t.debouncedNext()}function R4e(){}function FO(t){return null==t?R4e:function(){return this.querySelector(t)}}function L4e(){return[]}function Hz(t){return null==t?L4e:function(){return this.querySelectorAll(t)}}function Uz(t){return function(){return this.matches(t)}}function zz(t){return new Array(t.length)}function g2(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}g2.prototype={constructor:g2,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Gz="$";function U4e(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var PO="http://www.w3.org/1999/xhtml";const Wz={svg:"http://www.w3.org/2000/svg",xhtml:PO,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function v2(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Wz.hasOwnProperty(n)?{space:Wz[n],local:t}:t}function rRe(t){return function(){this.removeAttribute(t)}}function oRe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function sRe(t,n){return function(){this.setAttribute(t,n)}}function aRe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function lRe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function cRe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function qz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function dRe(t){return function(){this.style.removeProperty(t)}}function hRe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function fRe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function Rv(t,n){return t.style.getPropertyValue(n)||qz(t).getComputedStyle(t,null).getPropertyValue(n)}function mRe(t){return function(){delete this[t]}}function gRe(t,n){return function(){this[t]=n}}function vRe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Yz(t){return t.trim().split(/^|\s+/)}function RO(t){return t.classList||new Xz(t)}function Xz(t){this._node=t,this._names=Yz(t.getAttribute("class")||"")}function Jz(t,n){for(var e=RO(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Zz={},Ur=null;function qRe(t,n,e){return t=eG(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function eG(t,n,e){return function(i){var r=Ur;Ur=i;try{t.call(this,this.__data__,n,e)}finally{Ur=r}}}function XRe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=b&&(b=y+1);!(D=g[b])&&++b=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function J4e(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=K4e);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?dRe:"function"==typeof n?fRe:hRe)(t,n,e??"")):Rv(this.node(),t)},property:function yRe(t,n){return arguments.length>1?this.each((null==n?mRe:"function"==typeof n?vRe:gRe)(t,n)):this.node()[t]},classed:function wRe(t,n){var e=Yz(t+"");if(arguments.length<2){for(var i=RO(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?JRe:XRe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?b2(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?b2(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=lje.exec(t))?new Dc(n[1],n[2],n[3],1):(n=cje.exec(t))?new Dc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=uje.exec(t))?b2(n[1],n[2],n[3],n[4]):(n=dje.exec(t))?b2(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=hje.exec(t))?pG(n[1],n[2]/100,n[3]/100,1):(n=fje.exec(t))?pG(n[1],n[2]/100,n[3]/100,n[4]):lG.hasOwnProperty(t)?dG(lG[t]):"transparent"===t?new Dc(NaN,NaN,NaN,0):null}function dG(t){return new Dc(t>>16&255,t>>8&255,255&t,1)}function b2(t,n,e,i){return i<=0&&(t=n=e=NaN),new Dc(t,n,e,i)}function u_(t,n,e,i){return 1===arguments.length?function mje(t){return t instanceof a_||(t=Sm(t)),t?new Dc((t=t.rgb()).r,t.g,t.b,t.opacity):new Dc}(t):new Dc(t,n,e,i??1)}function Dc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function hG(){return"#"+BO(this.r)+BO(this.g)+BO(this.b)}function fG(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function BO(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function pG(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Wd(t,n,e,i)}function mG(t){if(t instanceof Wd)return new Wd(t.h,t.s,t.l,t.opacity);if(t instanceof a_||(t=Sm(t)),!t)return new Wd;if(t instanceof Wd)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Wd(s,a,l,t.opacity)}function Wd(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function $O(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function gG(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function VO(t){return function(){return t}}function yG(t,n){var e=n-t;return e?function vG(t,n){return function(e){return t+e*n}}(t,e):VO(isNaN(t)?n:t)}LO(a_,Sm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:cG,formatHex:cG,formatHsl:function pje(){return mG(this).formatHsl()},formatRgb:uG,toString:uG}),LO(Dc,u_,aG(a_,{brighter:function(t){return t=null==t?_2:Math.pow(_2,t),new Dc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Dc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hG,formatHex:hG,formatRgb:fG,toString:fG})),LO(Wd,function gje(t,n,e,i){return 1===arguments.length?mG(t):new Wd(t,n,e,i??1)},aG(a_,{brighter:function(t){return t=null==t?_2:Math.pow(_2,t),new Wd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Wd(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new Dc($O(t>=240?t-240:t+120,r,i),$O(t,r,i),$O(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const x2=function t(n){var e=function bje(t){return 1==(t=+t)?yG:function(n,e){return e-n?function _je(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):VO(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=u_(r)).r,(o=u_(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=yG(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function _G(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return gG((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Uu(i,r)})),e=UO.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--Lv}()}finally{Lv=0,function Ije(){for(var t,e,n=w2,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:w2=e);f_=t,zO(i)}(),Dm=0}}function Oje(){var t=p_.now(),n=t-C2;n>SG&&(S2-=n,C2=t)}function zO(t){Lv||(d_&&(d_=clearTimeout(d_)),t-Dm>24?(t<1/0&&(d_=setTimeout(TG,t-p_.now()-S2)),h_&&(h_=clearInterval(h_))):(h_||(C2=p_.now(),h_=setInterval(Oje,SG)),Lv=1,kG(TG)))}function EG(t,n,e){var i=new D2;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}D2.prototype=DG.prototype={constructor:D2,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?k2():+e)+(null==n?0:+n),!this._next&&f_!==this&&(f_?f_._next=this:w2=this,f_=this),this._call=t,this._time=e,zO()},stop:function(){this._call&&(this._call=null,this._time=1/0,zO())}};var Nje=sG("start","end","cancel","interrupt"),Fje=[],AG=0,MG=1,GO=2,T2=3,OG=4,WO=5,E2=6;function A2(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function Pje(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==MG)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===T2)return EG(s);f.state===OG?(f.state=E2,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uAG)throw new Error("too late; already scheduled");return e}function Jh(t,n){var e=zu(t,n);if(e.state>T2)throw new Error("too late; already running");return e}function zu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function YO(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>GO&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Uu(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Uu(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Uu(c,d)},{i:m-2,x:Uu(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?qO:Jh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function Jje(t,n){var e=v2(t),i="transform"===e?$je:RG;return this.attrTween(t,"function"==typeof n?(e.local?Xje:Yje)(e,i,KO(this,"attr."+t,n)):null==n?(e.local?Gje:zje)(e):(e.local?qje:Wje)(e,i,n))},attrTween:function tLe(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=v2(t);return this.tween(e,(i.local?Zje:eLe)(i,n))},style:function kLe(t,n,e){var i="transform"==(t+="")?Bje:RG;return null==n?this.styleTween(t,function xLe(t,n){var e,i,r;return function(){var o=Rv(this,t),s=(this.style.removeProperty(t),Rv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,jG(t)):"function"==typeof n?this.styleTween(t,function CLe(t,n,e){var i,r,o;return function(){var s=Rv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=Rv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,KO(this,"style."+t,n))).each(function SLe(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Jh(this,t),c=l.on,u=null==l.value[o]?a||(a=jG(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function wLe(t,n,e){var i,o,r=e+"";return function(){var s=Rv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function ELe(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function TLe(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function DLe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function OLe(t){return this.tween("text","function"==typeof t?function MLe(t){return function(){var n=t(this);this.textContent=n??""}}(KO(this,"text",t)):function ALe(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function FLe(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function NLe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function ILe(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function gLe(){return this.on("end.remove",function mLe(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function Uje(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=zu(this.node(),e).tween,r=0,o=i.length;r0&&(j=U-N),C<0?pe=A-F:C>0&&(X=oe-F),y=tI,$.attr("cursor",Qh.selection),Re());break;default:return}eI()},!0).on("keyup.brush",function Ct(){switch(Ur.keyCode){case 16:V&&(ce=ve=V=!1,Re());break;case 18:y===Vv&&(b<0?W=J:b>0&&(j=U),C<0?pe=A:C>0&&(X=oe),y=$v,Re());break;case 32:y===tI&&(Ur.altKey?(b&&(W=J-N*b,j=U+N*b),C&&(pe=A-F*C,X=oe+F*C),y=Vv):(b<0?W=J:b>0&&(j=U),C<0?pe=A:C>0&&(X=oe),y=$v),$.attr("cursor",Qh[v]),Re());break;default:return}eI()},!0),function oje(t){var n=t.document.documentElement,e=Sa(t).on("dragstart.drag",jO,!0);"onselectstart"in n?e.on("selectstart.drag",jO,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Ur.view)}BG(),YO(g),c.call(g),We.start()}function le(){var Ot=je(g);V&&!ce&&!ve&&(Math.abs(Ot[0]-et[0])>Math.abs(Ot[1]-et[1])?ve=!0:ce=!0),et=Ot,q=!0,eI(),Re()}function Re(){var Ot;switch(N=et[0]-Te[0],F=et[1]-Te[1],y){case tI:case $G:b&&(N=Math.max(z-j,Math.min(P-W,N)),U=j+N,J=W+N),C&&(F=Math.max(G-X,Math.min(H-pe,F)),oe=X+F,A=pe+F);break;case $v:b<0?(N=Math.max(z-j,Math.min(P-j,N)),U=j+N,J=W):b>0&&(N=Math.max(z-W,Math.min(P-W,N)),U=j,J=W+N),C<0?(F=Math.max(G-X,Math.min(H-X,F)),oe=X+F,A=pe):C>0&&(F=Math.max(G-pe,Math.min(H-pe,F)),oe=X,A=pe+F);break;case Vv:b&&(U=Math.max(z,Math.min(P,j-N*b)),J=Math.max(z,Math.min(P,W+N*b))),C&&(oe=Math.max(G,Math.min(H,X-F*C)),A=Math.max(G,Math.min(H,pe+F*C)))}Jn?1:t>=n?0:NaN}function sI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function ZLe(t){return(n,e)=>oI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var aI=Math.sqrt(50),lI=Math.sqrt(10),cI=Math.sqrt(2);function zG(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=aI?10:o>=lI?5:o>=cI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=aI?10:o>=lI?5:o>=cI?2:1)}function uI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=aI?r*=10:o>=lI?r*=5:o>=cI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return fI.setTime(+o),pI.setTime(+s),t(fI),t(pI),Math.floor(e(fI,pI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var N2=ka(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});N2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ka(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):N2:null};const t5e=N2;var WG=ka(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Zh)},function(t,n){return(n-t)/Zh},function(t){return t.getUTCSeconds()});const v_=WG;var qG=ka(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zh)},function(t,n){t.setTime(+t+n*Zc)},function(t,n){return(n-t)/Zc},function(t){return t.getMinutes()});const YG=qG;var XG=ka(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zh-t.getMinutes()*Zc)},function(t,n){t.setTime(+t+n*ef)},function(t,n){return(n-t)/ef},function(t){return t.getHours()});const JG=XG;var KG=ka(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zc)/Tm,t=>t.getDate()-1);const QG=KG;function Em(t){return ka(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Zc)/dI})}var mI=Em(0),ZG=(Em(1),Em(2),Em(3),Em(4),Em(5),Em(6),ka(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const eW=ZG;var gI=ka(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});gI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ka(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const tW=gI;var nW=ka(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Zc)},function(t,n){return(n-t)/Zc},function(t){return t.getUTCMinutes()});const l5e=nW;var iW=ka(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*ef)},function(t,n){return(n-t)/ef},function(t){return t.getUTCHours()});const c5e=iW;var rW=ka(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Tm},function(t){return t.getUTCDate()-1});const u5e=rW;function Am(t){return ka(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/dI})}var oW=Am(0),sW=(Am(1),Am(2),Am(3),Am(4),Am(5),Am(6),ka(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const v5e=sW;var vI=ka(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});vI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ka(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const y5e=vI;function aW(t,n,e,i,r,o){const s=[[v_,1,Zh],[v_,5,5*Zh],[v_,15,15*Zh],[v_,30,30*Zh],[o,1,Zc],[o,5,5*Zc],[o,15,15*Zc],[o,30,30*Zc],[r,1,ef],[r,3,3*ef],[r,6,6*ef],[r,12,12*ef],[i,1,Tm],[i,2,2*Tm],[e,1,dI],[n,1,GG],[n,3,3*GG],[t,1,hI]];function l(c,u,d){const h=Math.abs(u-c)/d,f=sI(([,,g])=>g).right(s,h);if(f===s.length)return t.every(uI(c/hI,u/hI,d));if(0===f)return t5e.every(Math.max(uI(c,u,d),1));const[p,m]=s[h/s[f-1][2]0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return yI.setTime(+o),_I.setTime(+s),t(yI),t(_I),Math.floor(e(yI,_I))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var lW=6e4,uW=6048e5;function Mm(t){return tf(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/uW})}var dW=Mm(0),F2=Mm(1),Hv=(Mm(2),Mm(3),Mm(4)),hW=(Mm(5),Mm(6),tf(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const fW=hW;function Om(t){return tf(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*lW)/uW})}var pW=Om(0),P2=Om(1),Uv=(Om(2),Om(3),Om(4)),mW=(Om(5),Om(6),tf(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*lW)/864e5},function(t){return t.getDate()-1}));const gW=mW;var bI=tf(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});bI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tf(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const y_=bI;var xI=tf(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});xI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tf(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const __=xI;function wI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function CI(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function b_(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var zv,OW,vW={"-":"",_:" ",0:"0"},Da=/^\s*\d+/,M5e=/^%/,O5e=/[\\^$*+?|[\]().{}]/g;function Yr(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function L5e(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function B5e(t,n,e){var i=Da.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function $5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function bW(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function V5e(t,n,e){var i=Da.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function xW(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function H5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function U5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function z5e(t,n,e){var i=Da.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function G5e(t,n,e){var i=Da.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function W5e(t,n,e){var i=M5e.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function q5e(t,n,e){var i=Da.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Y5e(t,n,e){var i=Da.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function wW(t,n){return Yr(t.getDate(),n,2)}function X5e(t,n){return Yr(t.getHours(),n,2)}function J5e(t,n){return Yr(t.getHours()%12||12,n,2)}function K5e(t,n){return Yr(1+gW.count(y_(t),t),n,3)}function CW(t,n){return Yr(t.getMilliseconds(),n,3)}function Q5e(t,n){return CW(t,n)+"000"}function Z5e(t,n){return Yr(t.getMonth()+1,n,2)}function e8e(t,n){return Yr(t.getMinutes(),n,2)}function t8e(t,n){return Yr(t.getSeconds(),n,2)}function n8e(t){var n=t.getDay();return 0===n?7:n}function i8e(t,n){return Yr(pW.count(y_(t)-1,t),n,2)}function SW(t){var n=t.getDay();return n>=4||0===n?Uv(t):Uv.ceil(t)}function r8e(t,n){return t=SW(t),Yr(Uv.count(y_(t),t)+(4===y_(t).getDay()),n,2)}function o8e(t){return t.getDay()}function s8e(t,n){return Yr(P2.count(y_(t)-1,t),n,2)}function a8e(t,n){return Yr(t.getFullYear()%100,n,2)}function l8e(t,n){return Yr((t=SW(t)).getFullYear()%100,n,2)}function c8e(t,n){return Yr(t.getFullYear()%1e4,n,4)}function u8e(t,n){var e=t.getDay();return Yr((t=e>=4||0===e?Uv(t):Uv.ceil(t)).getFullYear()%1e4,n,4)}function d8e(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Yr(n/60|0,"0",2)+Yr(n%60,"0",2)}function kW(t,n){return Yr(t.getUTCDate(),n,2)}function h8e(t,n){return Yr(t.getUTCHours(),n,2)}function f8e(t,n){return Yr(t.getUTCHours()%12||12,n,2)}function p8e(t,n){return Yr(1+fW.count(__(t),t),n,3)}function DW(t,n){return Yr(t.getUTCMilliseconds(),n,3)}function m8e(t,n){return DW(t,n)+"000"}function g8e(t,n){return Yr(t.getUTCMonth()+1,n,2)}function v8e(t,n){return Yr(t.getUTCMinutes(),n,2)}function y8e(t,n){return Yr(t.getUTCSeconds(),n,2)}function _8e(t){var n=t.getUTCDay();return 0===n?7:n}function b8e(t,n){return Yr(dW.count(__(t)-1,t),n,2)}function TW(t){var n=t.getUTCDay();return n>=4||0===n?Hv(t):Hv.ceil(t)}function x8e(t,n){return t=TW(t),Yr(Hv.count(__(t),t)+(4===__(t).getUTCDay()),n,2)}function w8e(t){return t.getUTCDay()}function C8e(t,n){return Yr(F2.count(__(t)-1,t),n,2)}function S8e(t,n){return Yr(t.getUTCFullYear()%100,n,2)}function k8e(t,n){return Yr((t=TW(t)).getUTCFullYear()%100,n,2)}function D8e(t,n){return Yr(t.getUTCFullYear()%1e4,n,4)}function T8e(t,n){var e=t.getUTCDay();return Yr((t=e>=4||0===e?Hv(t):Hv.ceil(t)).getUTCFullYear()%1e4,n,4)}function E8e(){return"+0000"}function EW(){return"%"}function AW(t){return+t}function MW(t){return Math.floor(+t/1e3)}function IW(t){return null===t?NaN:+t}!function I8e(t){zv=function A5e(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=x_(r),u=w_(r),d=x_(o),h=w_(o),f=x_(s),p=w_(s),m=x_(a),g=w_(a),v=x_(l),y=w_(l),b={a:function H(We){return s[We.getDay()]},A:function pe(We){return o[We.getDay()]},b:function A(We){return l[We.getMonth()]},B:function N(We){return a[We.getMonth()]},c:null,d:wW,e:wW,f:Q5e,g:l8e,G:u8e,H:X5e,I:J5e,j:K5e,L:CW,m:Z5e,M:e8e,p:function F(We){return r[+(We.getHours()>=12)]},q:function q(We){return 1+~~(We.getMonth()/3)},Q:AW,s:MW,S:t8e,u:n8e,U:i8e,V:r8e,w:o8e,W:s8e,x:null,X:null,y:a8e,Y:c8e,Z:d8e,"%":EW},C={a:function V(We){return s[We.getUTCDay()]},A:function ce(We){return o[We.getUTCDay()]},b:function ve(We){return l[We.getUTCMonth()]},B:function je(We){return a[We.getUTCMonth()]},c:null,d:kW,e:kW,f:m8e,g:k8e,G:T8e,H:h8e,I:f8e,j:p8e,L:DW,m:g8e,M:v8e,p:function Te(We){return r[+(We.getUTCHours()>=12)]},q:function et(We){return 1+~~(We.getUTCMonth()/3)},Q:AW,s:MW,S:y8e,u:_8e,U:b8e,V:x8e,w:w8e,W:C8e,x:null,X:null,y:S8e,Y:D8e,Z:E8e,"%":EW},D={a:function U(We,st,$){var ae=f.exec(st.slice($));return ae?(We.w=p[ae[0].toLowerCase()],$+ae[0].length):-1},A:function G(We,st,$){var ae=d.exec(st.slice($));return ae?(We.w=h[ae[0].toLowerCase()],$+ae[0].length):-1},b:function X(We,st,$){var ae=v.exec(st.slice($));return ae?(We.m=y[ae[0].toLowerCase()],$+ae[0].length):-1},B:function oe(We,st,$){var ae=m.exec(st.slice($));return ae?(We.m=g[ae[0].toLowerCase()],$+ae[0].length):-1},c:function P(We,st,$){return z(We,n,st,$)},d:bW,e:bW,f:G5e,g:_W,G:yW,H:xW,I:xW,j:V5e,L:z5e,m:$5e,M:H5e,p:function j(We,st,$){var ae=c.exec(st.slice($));return ae?(We.p=u[ae[0].toLowerCase()],$+ae[0].length):-1},q:B5e,Q:q5e,s:Y5e,S:U5e,u:F5e,U:P5e,V:R5e,w:N5e,W:j5e,x:function W(We,st,$){return z(We,e,st,$)},X:function J(We,st,$){return z(We,i,st,$)},y:_W,Y:yW,Z:L5e,"%":W5e};function E(We,st){return function($){var Ve,Ct,Ot,ae=[],le=-1,Re=0,Ze=We.length;for($ instanceof Date||($=new Date(+$));++le53)return null;"w"in ae||(ae.w=1),"Z"in ae?(Ze=(Re=CI(b_(ae.y,0,1))).getUTCDay(),Re=Ze>4||0===Ze?F2.ceil(Re):F2(Re),Re=fW.offset(Re,7*(ae.V-1)),ae.y=Re.getUTCFullYear(),ae.m=Re.getUTCMonth(),ae.d=Re.getUTCDate()+(ae.w+6)%7):(Ze=(Re=wI(b_(ae.y,0,1))).getDay(),Re=Ze>4||0===Ze?P2.ceil(Re):P2(Re),Re=gW.offset(Re,7*(ae.V-1)),ae.y=Re.getFullYear(),ae.m=Re.getMonth(),ae.d=Re.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),Ze="Z"in ae?CI(b_(ae.y,0,1)).getUTCDay():wI(b_(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+7*ae.W-(Ze+5)%7:ae.w+7*ae.U-(Ze+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,CI(ae)):wI(ae)}}function z(We,st,$,ae){for(var Ve,Ct,le=0,Re=st.length,Ze=$.length;le=Ze)return-1;if(37===(Ve=st.charCodeAt(le++))){if(Ve=st.charAt(le++),!(Ct=D[Ve in vW?st.charAt(le++):Ve])||(ae=Ct(We,$,ae))<0)return-1}else if(Ve!=$.charCodeAt(ae++))return-1}return ae}return b.x=E(e,b),b.X=E(i,b),b.c=E(n,b),C.x=E(e,C),C.X=E(i,C),C.c=E(n,C),{format:function(We){var st=E(We+="",b);return st.toString=function(){return We},st},parse:function(We){var st=B(We+="",!1);return st.toString=function(){return We},st},utcFormat:function(We){var st=E(We+="",C);return st.toString=function(){return We},st},utcParse:function(We){var st=B(We+="",!0);return st.toString=function(){return We},st}}}(t),OW=zv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const N8e=sI(oI).right,FW=(sI(IW),N8e);function F8e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function R8e(t){return+t}var PW=[0,1];function Gv(t){return t}function SI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function P8e(t){return function(){return t}}(isNaN(n)?NaN:.5)}function L8e(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?B8e:L8e,l=c=null,d}function d(h){return null==h||isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Uu)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,R8e),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=F8e,u()},d.clamp=function(h){return arguments.length?(s=!!h||Gv,u()):s!==Gv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Gv,Gv)}function C_(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function H8e(t){return new Date(t)}function U8e(t){return t instanceof Date?+t:+new Date(+t)}function LW(t,n,e,i,r,o,s,a,l,c){var u=jW(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),C=c("%Y");function D(E){return(l(E)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function R2(t){if(!(n=z8e.exec(t)))throw new Error("invalid format: "+t);var n;return new kI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function kI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function j2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function Wv(t){return(t=j2(Math.abs(t)))?t[1]:NaN}function $W(t,n){var e=j2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}R2.prototype=kI.prototype,kI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const VW={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function G8e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return $W(100*t,n)},r:$W,s:function J8e(t,n){var e=j2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(BW=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+j2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function HW(t){return t}var L2,DI,GW,UW=Array.prototype.map,zW=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function n6e(t){var n=t.domain;return t.ticks=function(e){var i=n();return function e5e(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0){let l=Math.round(t/a),c=Math.round(n/a);for(l*an&&--c,s=new Array(o=c-l+1);++rn&&--c,s=new Array(o=c-l+1);++r0;){if((c=zG(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function Co(){var t=jW();return t.copy=function(){return RW(t,Co())},C_.apply(t,arguments),n6e(t)}function WW(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(UW.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?HW:function Y8e(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(UW.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=R2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,b=d.precision,C=d.trim,D=d.type;"n"===D?(y=!0,D="g"):VW[D]||(void 0===b&&(b=12),C=!0,D="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var E="$"===m?e:"#"===m&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",B="$"===m?i:/[%p]/.test(D)?s:"",z=VW[D],j=/[defgprs%]/.test(D);function U(G){var P,W,J,X=E,oe=B;if("c"===D)oe=z(G)+oe,G="";else{var H=(G=+G)<0||1/G<0;if(G=isNaN(G)?l:z(Math.abs(G),b),C&&(G=function X8e(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(G)),H&&0==+G&&"+"!==p&&(H=!1),X=(H?"("===p?p:a:"-"===p||"("===p?"":p)+X,oe=("s"===D?zW[8+BW/3]:"")+oe+(H&&"("===p?")":""),j)for(P=-1,W=G.length;++P(J=G.charCodeAt(P))||J>57){oe=(46===J?r+G.slice(P+1):G.slice(P))+oe,G=G.slice(0,P);break}}y&&!g&&(G=n(G,1/0));var pe=X.length+G.length+oe.length,A=pe>1)+X+G+oe+A.slice(pe);break;default:G=A+X+G+oe}return o(G)}return b=void 0===b?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),U.toString=function(){return d+""},U}return{format:c,formatPrefix:function u(d,h){var f=c(((d=R2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(Wv(h)/3))),m=Math.pow(10,-p),g=zW[8+p/3];return function(v){return f(m*v)+g}}}}(t),DI=L2.format,GW=L2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const qW=Symbol("implicit");function TI(){var t=new Map,n=[],e=[],i=qW;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==qW)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return TI(n,e).unknown(i)},C_.apply(r,arguments),r}function Ua(){var o,s,t=TI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function XW(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],aPm)if(Math.abs(u*a-l*c)>Pm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((EI-Math.acos((p+d-m)/(2*g*v)))/2),b=y/v,C=y/g;Math.abs(b-1)>Pm&&(this._+="L"+(t+b*c)+","+(n+b*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+C*a)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Pm||Math.abs(this._y1-c)>Pm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%AI+AI),d>r6e?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Pm&&(this._+="A"+e+","+e+",0,"+ +(d>=EI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const OI=KW;function _o(t){return function(){return t}}function QW(t){return t[0]}function ZW(t){return t[1]}function B2(){var t=QW,n=ZW,e=_o(!0),i=null,r=Fm,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=OI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],b[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),b[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):b[d]))}if(v)return a=null,v+""||null}function c(){return B2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:_o(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:_o(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:_o(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:_o(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:_o(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:_o(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:_o(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function eq(){}function II(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function tq(t,n){this._context=t,this._k=(1-n)/6}function nq(t,n){this._context=t,this._k=(1-n)/6}function iq(t){this._curve=t}function w6e(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function lq(t,n){var r,s,a,l,c,e=new T_(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=H6e);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new T_(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(cq)}function H6e(t){return t.children}function U6e(t){t.data=t.data.data}function cq(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function T_(t){this.data=t,this.depth=this.height=0,this.parent=null}tq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:II(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:II(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new tq(i,n)}return e.tension=function(i){return t(+i)},e}(0),nq.prototype={areaStart:eq,areaEnd:eq,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:II(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new nq(i,n)}return e.tension=function(i){return t(+i)},e}(0),function rq(t){function n(e){return new iq(t(e))}return n._curve=t,n}(Fm),iq.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function k6e(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,b,C,D,E,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),E=g*g*D,(b=Math.max(y/E,E/v))>C){g-=c;break}C=b}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),T_.prototype=lq.prototype={constructor:T_,count:function A6e(){return this.eachAfter(E6e)},each:function M6e(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function N6e(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function F6e(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function P6e(t){for(var n=this,e=function R6e(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function j6e(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function L6e(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function B6e(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function $6e(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function V6e(){return lq(this).eachBefore(U6e)}};const Y6e=["caretElm"];function X6e(t,n){}const J6e=function(t){return{model:t}};function K6e(t,n){if(1&t&&(_(0,"span"),te(1,X6e,0,0,"ng-template",5),x()),2&t){const e=L();w(1),S("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Zi(2,J6e,e.context))}}function Q6e(t,n){1&t&&xe(0,"span",6),2&t&&S("innerHTML",L().title,Yx)}function Z6e(t,n){if(1&t&&(lt(),qp(),xe(0,"ngx-charts-scale-legend",4)),2&t){const e=L();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function eBe(t,n){if(1&t){const e=_t();lt(),qp(),_(0,"ngx-charts-legend",5),ke("labelClick",function(r){return ze(e),Ge(L().legendLabelClick.emit(r))})("labelActivate",function(r){return ze(e),Ge(L().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return ze(e),Ge(L().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=L();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const hq=["*"],tBe=["ngx-charts-axis-label",""],fq=["ticksel"],nBe=["ngx-charts-x-axis-ticks",""];function iBe(t,n){if(1&t&&(lt(),_(0,"g",3)(1,"title"),O(2),x(),_(3,"text",4),O(4),x()()),2&t){const e=n.$implicit,i=L();ft("transform",i.tickTransform(e)),w(2),wt(i.tickFormat(e)),w(1),cr("font-size","12px"),ft("text-anchor",i.textAnchor)("transform",i.textTransform),w(1),bn(" ",i.tickTrim(i.tickFormat(e))," ")}}function rBe(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"line",6),x()),2&t){const e=L(2);ft("transform",e.gridLineTransform()),w(1),ft("y1",-e.gridLineHeight)}}function oBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,rBe,2,2,"g",5),x()),2&t){const e=n.$implicit,i=L();ft("transform",i.tickTransform(e)),w(1),S("ngIf",i.showGridLines)}}const sBe=["ngx-charts-x-axis",""];function aBe(t,n){if(1&t){const e=_t();lt(),_(0,"g",2),ke("dimensionsChanged",function(r){return ze(e),Ge(L().emitTicksHeight(r))}),x()}if(2&t){const e=L();S("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function lBe(t,n){if(1&t&&(lt(),xe(0,"g",3)),2&t){const e=L();S("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const cBe=["ngx-charts-y-axis-ticks",""];function uBe(t,n){if(1&t&&(lt(),_(0,"g",4)(1,"title"),O(2),x(),_(3,"text",5),O(4),x()()),2&t){const e=n.$implicit,i=L();ft("transform",i.transform(e)),w(2),wt(i.tickFormat(e)),w(1),cr("font-size","12px"),ft("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),w(1),bn(" ",i.tickTrim(i.tickFormat(e))," ")}}function dBe(t,n){if(1&t&&(lt(),xe(0,"path",6)),2&t){const e=L();ft("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function hBe(t,n){1&t&&(lt(),xe(0,"line",9)),2&t&&ft("x2",L(3).gridLineWidth)}function fBe(t,n){1&t&&(lt(),xe(0,"line",9)),2&t&&ft("x2",-L(3).gridLineWidth)}function pBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,hBe,1,1,"line",8),te(2,fBe,1,1,"line",8),x()),2&t){const e=L(2);ft("transform",e.gridLineTransform()),w(1),S("ngIf","left"===e.orient),w(1),S("ngIf","right"===e.orient)}}function mBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,pBe,3,3,"g",7),x()),2&t){const e=n.$implicit,i=L();ft("transform",i.transform(e)),w(1),S("ngIf",i.showGridLines)}}function gBe(t,n){if(1&t&&(lt(),_(0,"g")(1,"title"),O(2),x(),_(3,"text",11),O(4),x()()),2&t){const e=L(2).$implicit,i=L();w(2),wt(i.tickTrim(i.tickFormat(e.value))),w(1),ft("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),w(1),bn(" ",e.name," ")}}function vBe(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"line",10),te(2,gBe,5,6,"g",7),x()),2&t){const e=L().$implicit,i=L();ft("transform",i.transform(e.value)),w(1),ft("x2",i.gridLineWidth)("transform",i.gridLineTransform()),w(1),S("ngIf",i.showRefLabels)}}function yBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,vBe,3,4,"g",7),x()),2&t){const e=L();w(1),S("ngIf",e.showRefLines)}}const _Be=["ngx-charts-y-axis",""];function bBe(t,n){if(1&t){const e=_t();lt(),_(0,"g",2),ke("dimensionsChanged",function(r){return ze(e),Ge(L().emitTicksWidth(r))}),x()}if(2&t){const e=L();S("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function xBe(t,n){if(1&t&&(lt(),xe(0,"g",3)),2&t){const e=L();S("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const wBe=["ngx-charts-circle-series",""];function CBe(t,n){if(1&t&&(lt(),xe(0,"rect",4)),2&t){const e=L(2);S("@animationState","active"),ft("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const SBe=function(t){return{name:t}};function kBe(t,n){if(1&t){const e=_t();lt(),_(0,"g")(1,"defs"),xe(2,"g",1),x(),te(3,CBe,1,6,"rect",2),_(4,"g",3),ke("select",function(){ze(e);const r=L();return Ge(r.onClick(r.circle.data))})("activate",function(){return ze(e),Ge(L().activateCircle())})("deactivate",function(){return ze(e),Ge(L().deactivateCircle())}),x()()}if(2&t){const e=L();w(2),S("name",e.gradientId)("stops",e.circle.gradientStops),w(1),S("ngIf",e.barVisible&&"standard"===e.type),w(1),Vn("active",e.isActive(Zi(18,SBe,e.circle.seriesName))),S("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const DBe=["ngx-charts-circle",""],MBe=["ngx-charts-svg-linear-gradient",""];function OBe(t,n){if(1&t&&(lt(),xe(0,"stop")),2&t){const e=n.$implicit;cr("stop-color",e.color)("stop-opacity",e.opacity),ft("offset",e.offset+"%")}}const FBe=["ngx-charts-area",""];function PBe(t,n){if(1&t&&(lt(),_(0,"defs"),xe(1,"g",2),x()),2&t){const e=L();w(1),S("name",e.gradientId)("stops",e.gradientStops)}}const jBe=["tooltipAnchor"],LBe=["ngx-charts-tooltip-area",""];function BBe(t,n){if(1&t&&(_(0,"div",6),xe(1,"span",7),O(2),x()),2&t){const e=n.$implicit,i=L(2);w(1),cr("background-color",e.color),w(1),bn(" ",i.getToolTipText(e)," ")}}function $Be(t,n){if(1&t&&(lt(),qp(),_(0,"div",4),te(1,BBe,3,3,"div",5),x()),2&t){const e=n.model;w(1),S("ngForOf",e)}}const VBe=["ngx-charts-timeline",""];function HBe(t,n){if(1&t&&(_(0,"header",4)(1,"span",5),O(2),x()()),2&t){const e=L();w(2),wt(e.title)}}function UBe(t,n){if(1&t){const e=_t();_(0,"li",6)(1,"ngx-charts-legend-entry",7),ke("select",function(r){return ze(e),Ge(L().labelClick.emit(r))})("activate",function(r){return ze(e),Ge(L().activate(r))})("deactivate",function(r){return ze(e),Ge(L().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=L();w(1),S("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Ws=["tooltipTemplate"],z2=["seriesTooltipTemplate"],Ao=function(t,n){return[t,n]},d7e=["ngx-charts-line",""];function h7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",7),ke("dimensionsChanged",function(r){return ze(e),Ge(L().updateXAxisHeight(r))}),x()}if(2&t){const e=L();S("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function f7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",8),ke("dimensionsChanged",function(r){return ze(e),Ge(L().updateYAxisWidth(r))}),x()}if(2&t){const e=L();S("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function p7e(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"g",9),x()),2&t){const e=n.$implicit,i=L();S("@animationState","active"),w(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function m7e(t,n){if(1&t){const e=_t();lt(),_(0,"g")(1,"g",13),ke("select",function(r){return ze(e),Ge(L(2).onClick(r))})("activate",function(r){return ze(e),Ge(L(2).onActivate(r))})("deactivate",function(r){return ze(e),Ge(L(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=L(2);w(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function g7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",10),ke("mouseleave",function(){return ze(e),Ge(L().hideCircles())}),_(1,"g",11),ke("hover",function(r){return ze(e),Ge(L().updateHoveredVertical(r))}),x(),te(2,m7e,2,9,"g",12),x()}if(2&t){const e=L();w(1),S("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),w(1),S("ngForOf",e.results)}}function v7e(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"g",15),x()),2&t){const e=n.$implicit,i=L(2);w(1),S("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function y7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",14),ke("onDomainChange",function(r){return ze(e),Ge(L().updateDomain(r))}),te(1,v7e,2,8,"g",4),x()}if(2&t){const e=L();S("results",e.results)("view",Rr(10,Ao,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ft("transform",e.timelineTransform),w(1),S("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const _7e=["ngx-charts-line-series",""];function b7e(t,n){if(1&t&&(lt(),xe(0,"g",4)),2&t){const e=L();S("name",e.gradientId)("stops",e.gradientStops)}}function x7e(t,n){if(1&t&&(lt(),xe(0,"g",5)),2&t){const e=L();Vn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),S("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let vq=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function g9e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new l4e(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Bz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(xt(jh),xt(zg),xt(Ca))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function v9e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function y9e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:v9e(o.value,t,n)}),this[r]}}}}var qs=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(qs||(qs={})),qs))();const Qf=7;function yq(t,n,e){return"top"===e?t.top-Qf:"bottom"===e?t.top+t.height-n.height+Qf:"center"===e?t.top+t.height/2-n.height/2:void 0}function _q(t,n,e){return"left"===e?t.left-Qf:"right"===e?t.left+t.width-n.width+Qf:"center"===e?t.left+t.width/2-n.width/2:void 0}class Tc{static calculateVerticalAlignment(n,e,i){let r=yq(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Qf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Qf),"center"===r&&(o=e.height/2-i.height/2);const s=yq(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=_q(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Qf),"right"===r&&(o=e.width-n.width/2-i.width/2-Qf),"center"===r&&(o=e.width/2-i.width/2);const s=_q(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===qs.right?(a=-7,s=Tc.calculateVerticalCaret(i,e,r,o)):n===qs.left?(a=e.width,s=Tc.calculateVerticalCaret(i,e,r,o)):n===qs.top?(s=e.height,a=Tc.calculateHorizontalCaret(i,e,r,o)):n===qs.bottom&&(s=-7,a=Tc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===qs.right?(a=i.left+i.width+r,s=Tc.calculateVerticalAlignment(i,e,o)):n===qs.left?(a=i.left-e.width-r,s=Tc.calculateVerticalAlignment(i,e,o)):n===qs.top?(s=i.top-e.height-r,a=Tc.calculateHorizontalAlignment(i,e,o)):n===qs.bottom&&(s=i.top+i.height+r,a=Tc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(Tc.shouldFlip(i,e,n,r)){if(n===qs.right)return qs.left;if(n===qs.left)return qs.right;if(n===qs.top)return qs.bottom;if(n===qs.bottom)return qs.top}return n}}let _9e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=Tc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=Tc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=Tc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&wo(Y6e,5),2&e){let r;Tn(r=En())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ke("resize",function(){return i.onWindowResize()},0,m8),2&e&&Au(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(_(0,"div"),xe(1,"span",0,1),_(3,"div",2),te(4,K6e,2,4,"span",3),te(5,Q6e,1,1,"span",4),x()()),2&e&&(w(1),function U6(t,n,e){Ou(pc,Rd,Qg(Xt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),S("hidden",!i.showCaret),w(3),S("ngIf",!i.title),w(1),S("ngIf",i.title))},dependencies:[xn,Fu],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function $z(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o}([y9e(100)],t.prototype,"onWindowResize",null),t})();class b9e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let PI=(()=>{class t extends b9e{constructor(e){super(e),this.type=_9e}}return t.\u0275fac=function(e){return new(e||t)(xt(vq))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),rs=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new ot,this.legendLabelActivate=new ot,this.legendLabelDeactivate=new ot}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[oo([PI]),ei],ngContentSelectors:hq,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Df(),_(0,"div",0),lt(),_(1,"svg",1),Tf(2),x(),te(3,Z6e,1,5,"ngx-charts-scale-legend",2),te(4,eBe,1,7,"ngx-charts-legend",3),x()),2&e&&(cr("width",i.view[0],"px"),S("@animationState","active")("@.disabled",!i.animations),w(1),ft("width",i.chartWidth)("height",i.view[1]),w(2),S("ngIf",i.showLegend&&"scaleLegend"===i.legendType),w(1),S("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[xn,Oq,Nq]},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({opacity:0}),Ra("500ms 100ms",Or({opacity:1}))])])]},changeDetection:0}),t})(),x9e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new ot,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur))},t.\u0275dir=un({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),os=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new ot}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new x9e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new N4e(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[ei],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"div")},encapsulation:2}),t})(),RI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[ei],attrs:tBe,decls:2,vars:6,template:function(e,i){1&e&&(lt(),_(0,"text"),O(1),x()),2&e&&(ft("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),w(1),bn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Zf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function bq(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new ot,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=bq(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Zf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&wo(fq,5),2&e){let r;Tn(r=En())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:nBe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(lt(),_(0,"g",null,0),te(2,iBe,5,7,"g",1),x(),te(3,oBe,2,2,"g",2)),2&e&&(w(2),S("ngForOf",i.ticks),w(1),S("ngForOf",i.ticks))},dependencies:[Un,xn],encapsulation:2,changeDetection:0}),t})(),Zl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new ot,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&wo(xq,5),2&e){let r;Tn(r=En())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:sBe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(lt(),_(0,"g"),te(1,aBe,1,12,"g",0),te(2,lBe,1,5,"g",1),x()),2&e&&(ft("class",i.xAxisClassName)("transform",i.transform),w(1),S("ngIf",i.xScale),w(1),S("ngIf",i.showLabel))},dependencies:[xn,RI,xq],encapsulation:2,changeDetection:0}),t})();let wq=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new ot,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function nf(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=bq(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Zf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&wo(fq,5),2&e){let r;Tn(r=En())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:cBe,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(lt(),_(0,"g",null,0),te(2,uBe,5,9,"g",1),x(),te(3,dBe,1,2,"path",2),te(4,mBe,2,2,"g",3),te(5,yBe,2,1,"g",3)),2&e&&(w(2),S("ngForOf",i.ticks),w(1),S("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),w(1),S("ngForOf",i.ticks),w(1),S("ngForOf",i.referenceLines))},dependencies:[Un,xn],encapsulation:2,changeDetection:0}),t})(),El=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new ot,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&wo(wq,5),2&e){let r;Tn(r=En())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:_Be,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(lt(),_(0,"g"),te(1,bBe,1,14,"g",0),te(2,xBe,1,5,"g",1),x()),2&e&&(ft("class",i.yAxisClassName)("transform",i.transform),w(1),S("ngIf",i.yScale),w(1),S("ngIf",i.showLabel))},dependencies:[xn,RI,wq],encapsulation:2,changeDetection:0}),t})(),Cq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[If]}),t})();var G2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(G2||(G2={})),G2))(),W2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(W2||(W2={})),W2))(),ep=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(ep||(ep={})),ep))();let Gu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=qs.top,this.tooltipAlignment=W2.center,this.tooltipType=G2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ep.all,this.tooltipImmediateExit=!1,this.show=new ot,this.hide=new ot}get listensForFocus(){return this.tooltipShowEvent===ep.all||this.tooltipShowEvent===ep.focus}get listensForHover(){return this.tooltipShowEvent===ep.all||this.tooltipShowEvent===ep.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(ge(PI),ge(Yl),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&ke("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),Sq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[vq,PI],imports:[If]}),t})();function za(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function ga(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const kq={};function Al(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,kq[t]?Al():(kq[t]=!0,t)}let $I,E_=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new ot,this.activate=new ot,this.deactivate=new ot,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=za(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${ga(r)} \u2022 ${ga(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:wBe,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&te(0,kBe,5,20,"g",0),2&e&&S("ngIf",i.circle)},dependencies:function(){return[xn,Gu,q2,jm]},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({opacity:0}),Ra(250,Or({opacity:1}))])])]},changeDetection:0}),t})(),q2=(()=>{class t{constructor(){this.select=new ot,this.activate=new ot,this.deactivate=new ot}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&ke("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:DBe,decls:1,vars:8,template:function(e,i){1&e&&(lt(),xe(0,"circle")),2&e&&ft("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),jm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[ei],attrs:MBe,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(lt(),_(0,"linearGradient",0),te(1,OBe,1,5,"stop",1),x()),2&e&&(S("id",i.name),ft("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),w(1),S("ngForOf",i.stops))},dependencies:[Un],encapsulation:2,changeDetection:0}),t})(),BI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new ot,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=Sa(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[ei],attrs:FBe,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(te(0,PBe,2,2,"defs",0),lt(),xe(1,"path",1)),2&e&&(S("ngIf",i.gradient),w(1),cr("opacity",i.opacity),ft("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[xn,jm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?$I=window:typeof global<"u"&&($I=global);const Mq=$I.MouseEvent;function VI(t,n=!1,e=!0){if("function"==typeof Mq)return new Mq(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let A_=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new ot}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=VI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=VI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=VI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&wo(jBe,5),2&e){let r;Tn(r=En())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:LBe,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","'auto'",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(lt(),_(0,"g")(1,"rect",0),ke("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),te(2,$Be,2,1,"ng-template",null,1,Xo),xe(4,"rect",2,3),x()),2&e){const r=sa(3);w(1),ft("x",0)("width",i.dims.width)("height",i.dims.height),w(3),cr("opacity",i.anchorOpacity)("pointer-events","none"),S("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ft("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[Un,Gu],encapsulation:2,data:{animation:[ul("animationState",[ja("inactive => active",[Or({opacity:0}),Ra(250,Or({opacity:.7}))]),ja("active => inactive",[Or({opacity:.7}),Ra(250,Or({opacity:0}))])])]},changeDetection:0}),t})(),M_=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new ot,this.onDomainChange=new ot,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Al().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=Im().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=Co().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=Nm().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function QLe(){return rI(O2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Ur.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),Sa(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),Sa(this.element).select(".brush").call(this.brush),Sa(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[ei],attrs:VBe,ngContentSelectors:hq,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Df(),lt(),_(0,"g",0)(1,"filter"),xe(2,"feColorMatrix",1),x(),_(3,"g",2),Tf(4),x(),xe(5,"rect",3)(6,"g",4),x()),2&e&&(ft("transform",i.transform),w(1),ft("id",i.filterId),w(4),ft("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Oq=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new ot,this.labelActivate=new ot,this.labelDeactivate=new ot,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=za(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[ei],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(_(0,"div"),te(1,HBe,3,1,"header",0),_(2,"div",1)(3,"ul",2),te(4,UBe,2,4,"li",3),x()()()),2&e&&(cr("width",i.width,"px"),w(1),S("ngIf",(null==i.title?null:i.title.length)>0),w(2),cr("max-height",i.height-45,"px"),Vn("horizontal-legend",i.horizontal),w(1),S("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[Un,xn,Iq]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class t{constructor(){this.isActive=!1,this.select=new ot,this.activate=new ot,this.deactivate=new ot,this.toggle=new ot}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&ke("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(_(0,"span",0),ke("click",function(){return i.select.emit(i.formattedLabel)}),_(1,"span",1),ke("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),_(2,"span",2),O(3),x()()),2&e&&(Vn("active",i.isActive),S("title",i.formattedLabel),w(1),cr("background-color",i.color),w(2),bn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Nq=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(ge(wM))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[ei],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(_(0,"div",0)(1,"div",1)(2,"span"),O(3),x()(),xe(4,"div",2),_(5,"div",1)(6,"span"),O(7),x()()()),2&e&&(cr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Vn("horizontal-legend",i.horizontal),w(3),wt(i.valueRange[1].toLocaleString()),w(1),cr("background",i.gradient),w(3),wt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[If,Cq,Sq,If,Cq,Sq]}),t})();let Pq=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class ys{constructor(n,e,i,r){"string"==typeof n&&(n=Pq.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=Pq.find(o=>o.name===n)),"quantile"===e)r=XW().range(n.domain).domain(i);else if("ordinal"===e)r=TI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=WW(0,1,1/o.length);r=Co().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Co().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=Co().domain(this.domain).range([0,1]),r=Ua().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let w9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),jq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),S9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),T9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),$q=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new ot,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=Sa(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[ei],attrs:d7e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(lt(),xe(0,"path",0)),2&e&&(S("@animationState","active"),ft("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({strokeDasharray:2e3,strokeDashoffset:2e3}),Ra(1e3,Or({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),E9e=(()=>{class t extends os{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=Fm,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new ot,this.deactivate=new ot,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function vs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Al().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function X2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function tp(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=Im().range([0,i]).domain(e):"linear"===this.scaleType?(r=Co().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=Nm().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=Co().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new ys(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Ws,5),Ti(r,z2,5)),2&e){let o;Tn(o=En())&&(i.tooltipTemplate=o.first),Tn(o=En())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&ke("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[wi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(_(0,"ngx-charts-chart",0),ke("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),lt(),_(1,"defs")(2,"clipPath"),xe(3,"rect"),x()(),_(4,"g",1),te(5,h7e,1,10,"g",2),te(6,f7e,1,12,"g",3),_(7,"g"),te(8,p7e,2,11,"g",4),te(9,g7e,3,9,"g",5),x()(),te(10,y7e,2,13,"g",6),x()),2&e&&(S("view",Rr(17,Ao,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),w(2),ft("id",i.clipPathId),w(1),ft("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),w(1),ft("transform",i.transform),w(1),S("ngIf",i.xAxis),w(1),S("ngIf",i.yAxis),w(1),ft("clip-path",i.clipPath),w(1),S("ngForOf",i.results)("ngForTrackBy",i.trackBy),w(1),S("ngIf",!i.tooltipDisabled),w(1),S("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[Un,xn,Zl,El,A_,rs,E_,M_,A9e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[ul("animationState",[ja(":leave",[Or({opacity:1}),Ra(500,Or({opacity:0}))])])]},changeDetection:0}),t})(),A9e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return B2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return qv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return qv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function HI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function zI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function UI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Al().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[ei],attrs:_7e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(lt(),_(0,"g")(1,"defs"),te(2,b7e,1,2,"g",0),x(),xe(3,"g",1)(4,"g",2),te(5,x7e,1,9,"g",3),x()),2&e&&(w(2),S("ngIf",i.hasGradient),w(1),Vn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),w(1),Vn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),w(1),S("ngIf",i.hasRange))},dependencies:[xn,BI,jm,$q],encapsulation:2,changeDetection:0}),t})(),Vq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})();Math;let YI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),F9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,YI,Vq]}),t})(),L9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),V9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),z9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,YI,jq]}),t})(),W9e=(()=>{class t{constructor(){!function G9e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,w9e,jq,S9e,T9e,Vq,F9e,L9e,YI,V9e,z9e]}),t})();function q9e(t,n){if(1&t&&(_(0,"ngb-alert",19),xe(1,"img",20),_(2,"h6",21),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Y9e(t,n){1&t&&xe(0,"img",31)}function X9e(t,n){1&t&&xe(0,"img",32)}function J9e(t,n){1&t&&xe(0,"img",33)}function K9e(t,n){1&t&&xe(0,"img",34)}function Q9e(t,n){if(1&t&&(_(0,"tr",24)(1,"td"),Cl(2,25),te(3,Y9e,1,0,"img",26),te(4,X9e,1,0,"img",27),te(5,J9e,1,0,"img",28),te(6,K9e,1,0,"img",29),Sl(),_(7,"span"),O(8),x()(),_(9,"td"),O(10),_(11,"span",30),O(12),x()(),_(13,"td"),O(14),_(15,"span",30),O(16),x()(),_(17,"td"),O(18),_(19,"span",30),O(20),x()(),_(21,"td"),O(22),_(23,"span",30),O(24),x()()()),2&t){const e=n.$implicit,i=L(2);w(2),S("ngSwitch",e.health),w(1),S("ngSwitchCase",0),w(1),S("ngSwitchCase",1),w(1),S("ngSwitchCase",2),w(1),S("ngSwitchCase",3),w(2),wt(e.name),w(2),bn("",e.session_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxSessionCount()-e.session_count," delta)"),w(2),bn("",e.presence_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),w(2),bn("",e.match_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxMatchCount()-e.match_count," delta)"),w(2),bn("",e.goroutine_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function Z9e(t,n){if(1&t&&(_(0,"tbody"),te(1,Q9e,25,18,"tr",22),_(2,"tr",3),xe(3,"td",23),_(4,"th",3),O(5),x(),_(6,"th",3),O(7),x(),_(8,"th",3),O(9),x(),_(10,"th",3),O(11),x()()()),2&t){const e=L();w(1),S("ngForOf",e.statusData.nodes),w(4),wt(e.getTotalSessionCount()),w(2),wt(e.getMaxPresenceCount()),w(2),wt(e.getTotalMatchCount()),w(2),wt(e.getTotalGorountineCount())}}function eVe(t,n){if(1&t&&(_(0,"option",35),O(1),x()),2&t){const e=n.$implicit,i=L();Ph("value",e),w(1),wt(i.ranges[e])}}const Q2=function(t){return{"background-color":t}};function tVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function nVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,tVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function iVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",37),te(2,nVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function rVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function oVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,rVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function sVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",43),te(2,oVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function aVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function lVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,aVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function cVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",44),te(2,lVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function uVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function dVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,uVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function hVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",45),te(2,dVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let fVe=(()=>{class t{route;consoleService;formBuilder;error="";showDelta=!1;statusData;rateGraphData=[];latencyGraphData=[];inputGraphData=[];outputGraphData=[];rangeForm;ranges={1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"};rangesKeys=Object.keys(this.ranges).map(e=>+e);colorScheme={domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]};samples=60;refreshTimer;$refreshTimer;constructor(e,i,r){this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=Gy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=Gy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Status"),x(),te(2,q9e,4,2,"ngb-alert",1),_(3,"table",2),ke("mouseover",function(){return r.showDelta=!0})("mouseout",function(){return r.showDelta=!1}),_(4,"thead",3)(5,"tr")(6,"th",4),O(7,"Node name"),x(),_(8,"th",4),O(9,"Sessions"),x(),_(10,"th",4),O(11,"Presences"),x(),_(12,"th",4),O(13,"Authoritative Matches"),x(),_(14,"th",4),O(15,"Goroutines"),x()()(),te(16,Z9e,12,5,"tbody",5),x(),_(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),O(21,"View:"),x(),_(22,"div",9)(23,"select",10),ke("change",function(s){return r.setRange(s)}),te(24,eVe,2,2,"option",11),_A(25,"sortNumbers"),x()()()()(),_(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),O(30,"Processing Latency"),x(),_(31,"small"),O(32," (ms)"),x()()(),_(33,"div",13)(34,"div",14)(35,"h5",15),O(36,"Rate"),x(),_(37,"small"),O(38," (rpc/s)"),x()()()(),_(39,"div",12)(40,"div",16),te(41,iVe,4,12,"div",17),x(),_(42,"div",16),te(43,sVe,4,12,"div",17),x()(),_(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),O(48,"Input"),x(),_(49,"small"),O(50," (kb/s)"),x()()(),_(51,"div",13)(52,"div",14)(53,"h5",15),O(54,"Output"),x(),_(55,"small"),O(56," (kb/s)"),x()()()(),_(57,"div",12)(58,"div",16),te(59,cVe,4,12,"div",17),x(),_(60,"div",16),te(61,hVe,4,12,"div",17),x()()),2&i&&(w(2),S("ngIf",r.error),w(14),S("ngIf",r.statusData),w(1),S("formGroup",r.rangeForm),w(7),S("ngForOf",bA(25,8,r.rangesKeys)),w(17),S("ngIf",r.latencyGraphData.length>0),w(2),S("ngIf",r.rateGraphData.length>0),w(16),S("ngIf",r.inputGraphData.length>0),w(2),S("ngIf",r.outputGraphData.length>0))},dependencies:function(){return[Un,xn,f7,Fw,d7,yo,Hu,HPe,E9e,fa,HC,UC,kv,da,ha,Ts,zs,mVe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})}return t})(),pVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(it(r=>Hn(r.nodes.map(o=>o.name)))).pipe(Jl(r=>(e.data={...e.data,error:r},Hn([]))))}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mVe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=_l({name:"sortNumbers",type:t,pure:!1})}return t})();var gVe=ue(1870),XI=ue(4327);function vVe(t,n){if(1&t&&(_(0,"div",13)(1,"p")(2,"b"),O(3),x(),xe(4,"input",14),x()()),2&t){const e=L(2);w(3),wt(e.confirmDeleteForm.controls.numberValueControl.value.title),w(1),Ph("formControlName",e.confirmDeleteForm.controls.numberValueControl.value.id)}}const yVe=function(t){return{"is-invalid":t}};function _Ve(t,n){if(1&t&&xe(0,"input",15),2&t){const e=L(2);S("ngClass",Zi(1,yVe,e.f.delete.touched&&e.f.delete.invalid))}}function bVe(t,n){if(1&t&&(_(0,"div",9)(1,"form",10),te(2,vVe,5,2,"div",11),te(3,_Ve,1,3,"input",12),x()()),2&t){const e=L();w(1),S("formGroup",e.confirmDeleteForm),w(1),S("ngIf",e.confirmDeleteForm.controls.numberValueControl),w(1),S("ngIf",e.confirmDeleteForm.controls.delete)}}let xVe=(()=>{class t{confirmed=new ot;canceled=new ot;title="Delete Confirmation";message="Are you sure you want to delete this item?";confirmDeleteForm;closeModal(){this.canceled.emit()}cancel(){this.canceled.emit()}confirm(){(!this.confirmDeleteForm||this.confirmDeleteForm.valid)&&this.confirmed.emit()}get f(){return this.confirmDeleteForm.controls}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Vt({type:t,selectors:[["app-delete-confirm-dialog"]],inputs:{confirmDeleteForm:"confirmDeleteForm"},outputs:{confirmed:"confirmed",canceled:"canceled"},decls:14,vars:3,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","Close","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","d-flex flex-column justify-content-center",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"click"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],["class","mt-2",4,"ngIf"],["type","text","class","form-control","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",3,"ngClass",4,"ngIf"],[1,"mt-2"],["type","number","value","30","min","0",2,"width","80px",3,"formControlName"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"h4",1),O(2),x(),_(3,"button",2),ke("click",function(){return r.closeModal()}),_(4,"span",3),O(5,"\xd7"),x()()(),_(6,"div",4),O(7),te(8,bVe,4,3,"div",5),x(),_(9,"div",6)(10,"button",7),ke("click",function(){return r.cancel()}),O(11,"Cancel"),x(),_(12,"button",8),ke("click",function(){return r.confirm()}),O(13,"Delete"),x()()),2&i&&(w(2),wt(r.title),w(5),bn(" ",r.message," "),w(1),S("ngIf",r.confirmDeleteForm))},dependencies:[Of,xn,fa,Us,L3,da,ha,z3,Ts,zs]})}return t})(),Ml=(()=>{class t{modalService;required=!1;constructor(e){this.modalService=e}openDeleteConfirmModal(e,i=null,r="",o=""){const a=this.modalService.open(xVe,{backdrop:!1,centered:!0});i&&(a.componentInstance.confirmDeleteForm=i),r&&(a.componentInstance.title=r),o&&(a.componentInstance.message=o),a.componentInstance.confirmed.subscribe(()=>{e(i?.value),a.close()}),a.componentInstance.canceled.subscribe(()=>{a.close()})}static \u0275fac=function(i){return new(i||t)(xt(m2))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wVe=["fileSelector"];function CVe(t,n){if(1&t&&(_(0,"div",8),O(1),x()),2&t){const e=L(2);w(1),wt(e.dropZoneLabel)}}function SVe(t,n){if(1&t){const e=_t();_(0,"div")(1,"input",9),ke("click",function(r){return ze(e),Ge(L(2).openFileSelector(r))}),x()()}if(2&t){const e=L(2);w(1),Ph("value",e.browseBtnLabel),S("className",e.browseBtnClassName)}}function kVe(t,n){if(1&t&&(te(0,CVe,2,1,"div",6),te(1,SVe,2,2,"div",7)),2&t){const e=L();S("ngIf",e.dropZoneLabel),w(1),S("ngIf",e.showBrowseBtn)}}function DVe(t,n){}const TVe=function(t){return{openFileSelector:t}};class Z2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let Yq=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),Xq=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new ot,this.onFileOver=new ot,this.onFileLeave=new ot,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new Z2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=Gy(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new Z2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new Z2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(ge(ur),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Yq,5,fo),2&e){let o;Tn(o=En())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&wo(wVe,7),2&e){let r;Tn(r=En())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(_(0,"div",0),ke("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),_(1,"div",1)(2,"input",2,3),ke("change",function(o){return i.uploadFiles(o)}),x(),te(4,kVe,2,2,"ng-template",null,4,Xo),te(6,DVe,0,0,"ng-template",5),x()()),2&e){const r=sa(5);Vn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),S("className",i.dropZoneClassName),w(1),S("className",i.contentClassName),w(1),S("accept",i.accept)("multiple",i.multiple),ft("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),w(4),S("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",Zi(13,TVe,i.openFileSelector))}},dependencies:[xn,Fu],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),EVe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t,bootstrap:function(){return[Xq]}}),t.\u0275inj=Di({imports:[If]}),t})();function AVe(t,n){1&t&&(_(0,"ngb-alert",21),xe(1,"img",22),_(2,"h6",23),O(3,"Failed to retrieve configuration."),x()()),2&t&&S("dismissible",!1)}function MVe(t,n){if(1&t&&(_(0,"span",32),O(1),x()),2&t){const e=L(2).$implicit;S("id",e.name),w(1),wt(e.value)}}function OVe(t,n){1&t&&(_(0,"span",33),O(1,"(empty)"),x()),2&t&&S("id",L(2).$implicit.name)}function IVe(t,n){if(1&t&&(_(0,"div",34)(1,"b"),O(2),x(),_(3,"label",26)(4,"a",27),xe(5,"img",10),x()()()),2&t){const e=L(2).index,i=L();w(2),wt(i.flatConfig[e+1].name),w(1),S("for",i.flatConfig[e+1].name),w(1),em("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",i.flatConfig[e+1].name,"",B1)}}function NVe(t,n){if(1&t&&(_(0,"span",32),O(1),x()),2&t){const e=L(3).index,i=L();S("id",i.flatConfig[e+1].name),w(1),wt(i.flatConfig[e+1].value)}}function FVe(t,n){if(1&t&&(_(0,"span",33),O(1,"(empty)"),x()),2&t){const e=L(3).index;S("id",L().flatConfig[e+1].name)}}function PVe(t,n){if(1&t&&(_(0,"div",35),te(1,NVe,2,2,"span",28),te(2,FVe,2,1,"span",29),x()),2&t){const e=L(2).index,i=L();w(1),S("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),w(1),S("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function RVe(t,n){if(1&t&&(_(0,"div",25)(1,"div",7)(2,"b"),O(3),x(),_(4,"label",26)(5,"a",27),xe(6,"img",10),x()()(),_(7,"div",7),te(8,MVe,2,2,"span",28),te(9,OVe,2,1,"span",29),x(),te(10,IVe,6,3,"div",30),te(11,PVe,3,2,"div",31),x()),2&t){const e=L(),i=e.index,r=e.$implicit,o=L();Vn("border-top-0",i>0),w(3),wt(r.name),w(1),S("for",r.name),w(1),em("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",r.value.name,"",B1),w(3),S("ngIf",!o.isEmpty(r.value)),w(1),S("ngIf",o.isEmpty(r.value)),w(1),S("ngIf",i{class t{config;route;httpClient;modalService;consoleService;formBuilder;deleteConfirmService;configError="";uploadError="";deleteError="";jsonConfig;flatConfig;nakamaVersion;file;uploading=!1;uploadSuccess=!1;deleteSuccess=!1;deleting=!1;confirmDeleteForm;apiConfig;constructor(e,i,r,o,s,a,l){this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.deleteConfirmService=l,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",qr.compose([qr.required,qr.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,gVe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});XI.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteConfirmService.openDeleteConfirmModal(()=>{this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(eO(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})},this.confirmDeleteForm,"Delete All Data","Are you sure you want to delete all the database data?")}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(ge(XC),ge(Vr),ge(YC),ge(m2),ge(Ai),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:41,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height","16"],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){1&i&&(te(0,AVe,4,1,"ngb-alert",0),_(1,"h2",1),O(2,"Server Configuration"),x(),_(3,"div",2)(4,"h5")(5,"b"),O(6,"Server version:"),x(),O(7),x(),_(8,"button",3),ke("click",function(){return r.exportYaml()}),O(9,"Export Configuration"),x()(),_(10,"div",4),te(11,jVe,2,1,"ng-container",5),_(12,"div",6)(13,"div",7)(14,"b"),O(15,"runtime.env"),x(),_(16,"label",8)(17,"a",9),xe(18,"img",10),x()()(),_(19,"div",11),te(20,BVe,2,1,"div",12),te(21,$Ve,3,0,"div",12),x()()(),_(22,"h5",13),O(23,"Import storage data"),x(),_(24,"p"),O(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),te(26,VVe,6,2,"ngb-alert",0),te(27,HVe,4,1,"ngb-alert",14),_(28,"ngx-file-drop",15),ke("onFileDrop",function(s){return r.dropped(s)}),te(29,UVe,2,0,"ng-template",16),x(),_(30,"h5",13),O(31,"Delete all data"),x(),te(32,zVe,6,2,"ngb-alert",0),te(33,GVe,4,1,"ngb-alert",14),_(34,"div",17)(35,"div"),xe(36,"img",18),_(37,"small",19),O(38,"Warning - this operation is not reversible!"),x()(),_(39,"button",20),ke("click",function(){return r.deleteData()}),O(40,"Delete all"),x()()),2&i&&(S("ngIf",r.configError),w(7),bn(" ",r.nakamaVersion,""),w(4),S("ngForOf",r.flatConfig),w(9),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&r.jsonConfig.runtime.env.length>0),w(1),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&0===r.jsonConfig.runtime.env.length),w(5),S("ngIf",r.uploadError),w(1),S("ngIf",r.uploadSuccess),w(1),S("disabled",r.uploading),w(4),S("ngIf",r.deleteError),w(1),S("ngIf",r.deleteSuccess),w(6),S("disabled",r.deleting))},dependencies:[Xq,Yq,Un,xn,yo],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})}return t})(),qVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YVe(t,n){if(1&t&&(_(0,"ngb-alert",51),xe(1,"img",52),_(2,"h6",53),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function XVe(t,n){if(1&t&&(_(0,"ngb-alert",54),xe(1,"img",55),_(2,"h6",53),O(3),x()()),2&t){const e=L();S("dismissible",!0),w(3),wt(e.successMessage)}}function JVe(t,n){1&t&&(_(0,"tr")(1,"td",56),O(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(w(1),S("colSpan",5))}function KVe(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td"),O(2),x(),_(3,"td"),O(4),x(),_(5,"td")(6,"span",37),O(7,"Administrator"),x(),_(8,"span",37),O(9,"Developer"),x(),_(10,"span",37),O(11,"Maintainer"),x(),_(12,"span",37),O(13,"View Only"),x()(),_(14,"td"),O(15),x(),_(16,"td",57)(17,"div",35)(18,"button",58),ke("click",function(){const o=ze(e).$implicit;return Ge(L().resetUserMfa(o.username))}),O(19,"Reset MFA"),x(),_(20,"button",59),ke("click",function(){const o=ze(e).$implicit;return Ge(L().deleteUser(o.username))}),O(21,"Delete"),x()()()()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.username),w(2),wt(e.email),w(2),S("hidden",e.role!==i.adminRole),w(2),S("hidden",e.role!==i.developerRole),w(2),S("hidden",e.role!==i.maintainerRole),w(2),S("hidden",e.role!==i.readonlyRole),w(3),wt(e.mfa_enabled),w(3),S("disabled",!e.mfa_enabled)}}function QVe(t,n){if(1&t&&(_(0,"ngb-alert",51),xe(1,"img",52),_(2,"h6",53),O(3,"An error occurred:"),x(),_(4,"p",60),O(5),x()()),2&t){const e=L();S("dismissible",!1),w(5),wt(e.userCreateError)}}const JI=function(t){return{"is-invalid":t}};let ZVe=(()=>{class t{route;consoleService;formBuilder;deleteConfirmService;error="";userCreateError="";successMessage="";users=[];createUserForm;adminRole=ri.USER_ROLE_ADMIN;developerRole=ri.USER_ROLE_DEVELOPER;maintainerRole=ri.USER_ROLE_MAINTAINER;readonlyRole=ri.USER_ROLE_READONLY;constructor(e,i,r,o){this.route=e,this.consoleService=i,this.formBuilder=r,this.deleteConfirmService=o}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",qr.required],email:["",[qr.required,qr.email]],password:["",qr.compose([qr.required,qr.minLength(8)])],role:[+this.readonlyRole,qr.required],mfa:[!0,qr.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}resetUserMfa(e){this.error="",this.consoleService.resetUserMfa("",e).subscribe(()=>{this.error="",this.successMessage=`User ${e} Multi-factor authentication was reset successfully`,setTimeout(()=>{this.successMessage=""},5e3)},i=>{this.error=i})}deleteUser(e){this.error="",this.deleteConfirmService.openDeleteConfirmModal(()=>{this.consoleService.deleteUser("",e).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=ri.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=ri.USER_ROLE_ADMIN;break;case 2:e=ri.USER_ROLE_DEVELOPER;break;case 3:e=ri.USER_ROLE_MAINTAINER;break;case 4:e=ri.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value,mfa_required:this.f.mfa.value}).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e,mfa:!0}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["app-users"]],decls:133,vars:26,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type","dismissible"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","mfa","formControlName","mfa",1,"custom-control-input","mr-2","my-2"],["for","mfa",1,"form-check-label","custom-control-label"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"text-muted",3,"colSpan"],[2,"width","200px"],["type","button",1,"btn","btn-warning","btn-outline-dark",3,"disabled","click"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Management"),x(),te(2,YVe,4,2,"ngb-alert",1),te(3,XVe,4,2,"ngb-alert",2),_(4,"table",3)(5,"thead",4)(6,"tr")(7,"th",5),O(8,"Username"),x(),_(9,"th"),O(10,"Email"),x(),_(11,"th",6),O(12,"Role"),x(),_(13,"th"),O(14,"MFA Enabled"),x(),_(15,"th",7),O(16,"Action"),x()()(),_(17,"tbody"),te(18,JVe,3,1,"tr",8),te(19,KVe,22,8,"tr",9),x()(),_(20,"h5",10),O(21,"Add new user"),x(),_(22,"ngb-alert",11)(23,"h6",12),O(24,"User roles"),x(),_(25,"div",13)(26,"div",14)(27,"div",15),xe(28,"img",16),_(29,"h6",17),O(30,"Administrator"),x()(),_(31,"small"),O(32," Owners have complete control over the server, its users and resources. "),x()(),_(33,"div",14)(34,"div",15),xe(35,"img",18),_(36,"h6",17),O(37,"Developer"),x()(),_(38,"small"),O(39," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),_(40,"div",14)(41,"div",15),xe(42,"img",19),_(43,"h6",17),O(44,"Maintainer"),x()(),_(45,"small"),O(46," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),_(47,"div",14)(48,"div",15),xe(49,"img",20),_(50,"h6",17),O(51,"View Only"),x()(),_(52,"small"),O(53," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),te(54,QVe,6,2,"ngb-alert",1),_(55,"div",21)(56,"form",22),ke("ngSubmit",function(){return r.addUser()}),_(57,"div",23)(58,"div",24)(59,"div",25)(60,"label",26),O(61,"Email"),x()(),_(62,"div",27),xe(63,"input",28),_(64,"div",29),O(65,"Email is required"),x()()()(),_(66,"div",23)(67,"div",24)(68,"div",25)(69,"label",30),O(70,"Username"),x()(),_(71,"div",27),xe(72,"input",31),_(73,"div",29),O(74,"Username is required"),x()()()(),_(75,"div",23)(76,"div",24)(77,"div",25)(78,"label",32),O(79,"Password"),x()(),_(80,"div",27),xe(81,"input",33),_(82,"div",29),O(83,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),_(84,"div",23)(85,"div",24)(86,"div",25)(87,"label",34),O(88,"Role"),x()(),_(89,"div",27)(90,"div",35)(91,"button",36)(92,"span",37),O(93,"Administrator"),x(),_(94,"span",37),O(95,"Developer"),x(),_(96,"span",37),O(97,"Maintainer"),x(),_(98,"span",37),O(99,"View Only"),x()(),_(100,"div",38),xe(101,"button",39),_(102,"div",40)(103,"button",41),ke("click",function(){return r.f.role.setValue(+r.adminRole)}),O(104,"Administrator"),x(),_(105,"button",41),ke("click",function(){return r.f.role.setValue(+r.developerRole)}),O(106,"Developer"),x(),_(107,"button",41),ke("click",function(){return r.f.role.setValue(+r.maintainerRole)}),O(108,"Maintainer"),x(),_(109,"button",41),ke("click",function(){return r.f.role.setValue(+r.readonlyRole)}),O(110,"View Only"),x()()()(),_(111,"div",29),O(112,"Role is required"),x()()()(),_(113,"div",23)(114,"div",42)(115,"div",25)(116,"label",34),O(117,"Require Multi-factor Authentication"),x()(),_(118,"div",27)(119,"div",43),xe(120,"input",44)(121,"label",45),x()()()(),_(122,"div",46)(123,"div",42),xe(124,"div",25),_(125,"div",27)(126,"div",43),xe(127,"input",47),_(128,"label",48),O(129,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),_(130,"div",49)(131,"button",50),O(132,"Save"),x()()()()),2&i&&(w(2),S("ngIf",r.error),w(1),S("ngIf",r.successMessage),w(15),S("ngIf",0===r.users.length),w(1),S("ngForOf",r.users),w(3),S("type","secondary")("dismissible",!1),w(32),S("ngIf",r.userCreateError),w(2),S("formGroup",r.createUserForm),w(7),S("ngClass",Zi(20,JI,r.f.email.dirty&&r.f.email.errors)),w(1),S("hidden",r.f.email.disabled||r.f.email.valid||r.f.email.pristine),w(8),S("ngClass",Zi(22,JI,r.f.username.dirty&&r.f.username.errors)),w(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),w(8),S("ngClass",Zi(24,JI,r.f.password.dirty&&r.f.password.errors)),w(1),S("hidden",r.f.password.disabled||r.f.password.valid||r.f.password.pristine),w(10),S("hidden",r.f.role.value!==+r.adminRole),w(2),S("hidden",r.f.role.value!==+r.developerRole),w(2),S("hidden",r.f.role.value!==+r.maintainerRole),w(2),S("hidden",r.f.role.value!==+r.readonlyRole),w(13),S("hidden",r.f.role.disabled||r.f.role.valid||r.f.role.pristine),w(20),S("disabled",r.createUserForm.invalid))},dependencies:[Of,Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,OC,da,ha,qh,Ts,zs],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})}return t})(),eHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tHe(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Failed to retrieve runtime information: ",e.error,"")}}function nHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),wt(e.path),w(2),wt(e.mod_time)}}function iHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No Go modules were found."),x(),xe(3,"td"),x())}function rHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),wt(e.path),w(2),wt(e.mod_time)}}function oHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No Lua modules were found."),x(),xe(3,"td"),x())}function sHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),wt(e.path),w(2),wt(e.mod_time)}}function aHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No JavaScript modules were found."),x(),xe(3,"td"),x())}const KI=function(){return["/apiexplorer"]},QI=function(t){return{endpoint:t}};function lHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),wt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function cHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No Go RPC functions were found."),x()())}function uHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),wt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function dHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No Lua RPC functions were found."),x()())}function hHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),wt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function fHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No JavaScript RPC functions were found."),x()())}let pHe=(()=>{class t{route;consoleService;error="";runtimeInfo;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Runtime Modules"),x(),te(2,tHe,4,2,"ngb-alert",1),_(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),O(7,"Go Modules"),x(),_(8,"th",4),O(9,"Last Modified"),x()()(),_(10,"tbody"),te(11,nHe,5,2,"tr",5),te(12,iHe,4,0,"tr",6),x(),_(13,"thead",3)(14,"tr")(15,"th",7),O(16,"Lua Modules"),x()()(),_(17,"tbody"),te(18,rHe,5,2,"tr",5),te(19,oHe,4,0,"tr",6),x(),_(20,"thead",3)(21,"tr")(22,"th",7),O(23,"JavaScript Modules"),x()()(),_(24,"tbody"),te(25,sHe,5,2,"tr",5),te(26,aHe,4,0,"tr",6),x()(),_(27,"h4",8),O(28,"Registered RPC Functions"),x(),_(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),O(33,"Go RPC Functions"),x()()(),_(34,"tbody"),te(35,lHe,7,6,"tr",5),te(36,cHe,3,0,"tr",6),x(),_(37,"thead",3)(38,"tr")(39,"th",7),O(40,"Lua RPC Functions"),x()()(),_(41,"tbody"),te(42,uHe,7,6,"tr",5),te(43,dHe,3,0,"tr",6),x(),_(44,"thead",3)(45,"tr")(46,"th",7),O(47,"JavaScript RPC Functions"),x()()(),_(48,"tbody"),te(49,hHe,7,6,"tr",5),te(50,fHe,3,0,"tr",6),x()()),2&i&&(w(2),S("ngIf",r.error),w(9),S("ngForOf",r.runtimeInfo.go_modules),w(1),S("ngIf",0===r.runtimeInfo.go_modules.length),w(6),S("ngForOf",r.runtimeInfo.lua_modules),w(1),S("ngIf",0===r.runtimeInfo.lua_modules.length),w(6),S("ngForOf",r.runtimeInfo.js_modules),w(1),S("ngIf",0===r.runtimeInfo.js_modules.length),w(9),S("ngForOf",r.runtimeInfo.go_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.go_rpc_functions.length),w(6),S("ngForOf",r.runtimeInfo.lua_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.lua_rpc_functions.length),w(6),S("ngForOf",r.runtimeInfo.js_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.js_rpc_functions.length))},dependencies:[Ru,Un,xn,yo],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})}return t})(),mHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gHe(t,n){1&t&&(_(0,"span"),O(1,"Filter by collection"),x())}function vHe(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),wt(e.f.collection.value)}}function yHe(t,n){if(1&t){const e=_t();_(0,"button",34),ke("click",function(){const o=ze(e).$implicit;return Ge(L().f.collection.setValue(o))}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function _He(t,n){if(1&t&&(_(0,"ngb-alert",35),xe(1,"img",36),_(2,"h6",37),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying storage objects: ",e.error,"")}}function bHe(t,n){1&t&&(_(0,"th",38),O(1,"Remove"),x())}function xHe(t,n){1&t&&(_(0,"tr")(1,"td",39),O(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function wHe(t,n){if(1&t){const e=_t();_(0,"td",42)(1,"button",43),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteObject(r,s,a))}),O(2,"Delete"),x()()}}function CHe(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(2),x(),_(3,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(4),x(),_(5,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(6),x(),_(7,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(8),x(),te(9,wHe,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.collection),w(2),wt(e.key),w(2),wt(e.user_id),w(2),wt(e.update_time),w(1),S("ngIf",i.deleteAllowed())}}let SHe=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";collections=[];objects=[];objectCount=0;nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Storage Objects"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),te(12,gHe,2,0,"span",10),te(13,vHe,2,1,"span",10),x(),_(14,"div",11)(15,"button",12),ke("click",function(){return r.f.collection.reset()}),O(16,"\u2718 Deselect collection"),x(),xe(17,"div",13),te(18,yHe,2,1,"button",14),x()()(),xe(19,"input",15)(20,"input",16),_(21,"div",17)(22,"span",18),ke("click",function(){return r.f.user_id.setValue(r.systemUserId)}),xe(23,"img",19),x()(),_(24,"div",17)(25,"button",20),ke("click",function(){return r.search(0)}),O(26,"Search"),x()()()()(),_(27,"div",21)(28,"div",22)(29,"button",23),ke("click",function(){return r.search(0)}),xe(30,"img",24),x(),_(31,"button",23),ke("click",function(){return r.search(1)}),xe(32,"img",25),x()()()()(),te(33,_He,4,2,"ngb-alert",26),_(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),O(39,"Collection Name"),x(),_(40,"th"),O(41,"Key Name"),x(),_(42,"th",30),O(43,"User ID"),x(),_(44,"th",31),O(45,"Last Update"),x(),te(46,bHe,2,0,"th",32),x()(),_(47,"tbody"),te(48,xHe,3,0,"tr",10),te(49,CHe,10,5,"tr",33),x()()()),2&i&&(w(3),bn("",r.objectCount," objects found."),w(4),S("formGroup",r.searchForm),w(4),S("disabled",0===r.collections.length),w(1),S("ngIf",!r.f.collection.value||""===r.f.collection.value),w(1),S("ngIf",r.f.collection.value&&""!==r.f.collection.value),w(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),w(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),w(1),S("ngForOf",r.collections),w(7),S("disabled",r.disableSearch()),w(4),S("disabled",0===r.objects.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.objects.length),w(1),S("ngForOf",r.objects))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),kHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ZI,Jq,Kq,Qq,Zq,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,_Y,bY,xY,wY,CY,SY,kY,DY,TY,EY,AY,MY,OY,IY,NY,FY,PY,RY,jY,LY,BY,$Y,VY,HY,UY,zY,GY,WY,qY,YY,XY,JY,KY,QY,ZY,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,_X,bX,xX,wX,CX,SX,kX,DX,TX,EX,AX,MX,OX,IX,NX,FX,PX,RX,jX,LX,BX,$X,VX,HX,UX,zX,GX,WX,qX,YX,XX,JX,KX,QX,ZX,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,_J,bJ,xJ,wJ,CJ,SJ,kJ,DJ,TJ,EJ,AJ,MJ,OJ,IJ,NJ,FJ,PJ,RJ,jJ,LJ,BJ,$J,VJ,HJ,UJ,zJ,GJ,WJ,qJ,YJ,XJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,_K,bK,xK,wK,CK,SK,kK,DK,TK,EK,AK,MK,OK,IK,NK,FK,PK,RK,jK,LK,BK,$K,VK,HK,UK,zK,GK,WK,qK,YK,XK,JK,KK,QK,ZK,eQ,tQ,nQ,iQ,rQ,oQ,sQ,aQ,lQ,cQ,uQ,dQ,hQ,fQ,pQ,mQ,gQ,vQ,yQ,_Q,bQ,xQ,wQ,CQ,SQ,kQ,DQ,TQ,EQ,AQ,MQ,OQ,IQ,NQ,FQ,PQ,RQ,jQ,LQ,BQ,$Q,VQ,HQ,UQ,zQ,GQ,WQ,qQ,YQ,XQ,JQ,KQ,QQ,ZQ,eZ,tZ,nZ,iZ,rZ,oZ,sZ,aZ,THe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],EHe=["mainAxis","crossAxis","limiter"];function O_(t){var n="function"==typeof Map?new Map:void 0;return O_=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return eN(e,arguments,er(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),I_(r,e)},O_(t)}function eN(t,n,e){return(eN=fZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&I_(a,o.prototype),a}).apply(null,arguments)}function Pe(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function lZ(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function He(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=eS(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},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 o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function _n(){_n=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(X,oe,P){X[oe]=P.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(X,oe,P){return Object.defineProperty(X,oe,{value:P,enumerable:!0,configurable:!0,writable:!0}),X[oe]}try{l({},"")}catch{l=function(oe,P,W){return oe[P]=W}}function c(X,oe,P,W){var H=Object.create((oe&&oe.prototype instanceof h?oe:h).prototype),pe=new j(W||[]);return i(H,"_invoke",{value:D(X,P,pe)}),H}function u(X,oe,P){try{return{type:"normal",arg:X.call(oe,P)}}catch(W){return{type:"throw",arg:W}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(U([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function b(X){["next","throw","return"].forEach(function(oe){l(X,oe,function(P){return this._invoke(oe,P)})})}function C(X,oe){function P(J,H,pe,A){var N=u(X[J],X,H);if("throw"!==N.type){var F=N.arg,q=F.value;return q&&"object"==wn(q)&&e.call(q,"__await")?oe.resolve(q.__await).then(function(V){P("next",V,pe,A)},function(V){P("throw",V,pe,A)}):oe.resolve(q).then(function(V){F.value=V,pe(F)},function(V){return P("throw",V,pe,A)})}A(N.arg)}var W;i(this,"_invoke",{value:function(J,H){function pe(){return new oe(function(A,N){P(J,H,A,N)})}return W=W?W.then(pe,pe):pe()}})}function D(X,oe,P){var W="suspendedStart";return function(J,H){if("executing"===W)throw new Error("Generator is already running");if("completed"===W){if("throw"===J)throw H;return{value:void 0,done:!0}}for(P.method=J,P.arg=H;;){var pe=P.delegate;if(pe){var A=E(pe,P);if(A){if(A===d)continue;return A}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if("suspendedStart"===W)throw W="completed",P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);W="executing";var N=u(X,oe,P);if("normal"===N.type){if(W=P.done?"completed":"suspendedYield",N.arg===d)continue;return{value:N.arg,done:P.done}}"throw"===N.type&&(W="completed",P.method="throw",P.arg=N.arg)}}}function E(X,oe){var P=oe.method,W=X.iterator[P];if(void 0===W)return oe.delegate=null,"throw"===P&&X.iterator.return&&(oe.method="return",oe.arg=void 0,E(X,oe),"throw"===oe.method)||"return"!==P&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var J=u(W,X.iterator,oe.arg);if("throw"===J.type)return oe.method="throw",oe.arg=J.arg,oe.delegate=null,d;var H=J.arg;return H?H.done?(oe[X.resultName]=H.value,oe.next=X.nextLoc,"return"!==oe.method&&(oe.method="next",oe.arg=void 0),oe.delegate=null,d):H:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,d)}function B(X){var oe={tryLoc:X[0]};1 in X&&(oe.catchLoc=X[1]),2 in X&&(oe.finallyLoc=X[2],oe.afterLoc=X[3]),this.tryEntries.push(oe)}function z(X){var oe=X.completion||{};oe.type="normal",delete oe.arg,X.completion=oe}function j(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(B,this),this.reset(!0)}function U(X){if(X){var oe=X[o];if(oe)return oe.call(X);if("function"==typeof X.next)return X;if(!isNaN(X.length)){var P=-1,W=function J(){for(;++P=0;--W){var J=this.tryEntries[W],H=J.completion;if("root"===J.tryLoc)return P("end");if(J.tryLoc<=this.prev){var pe=e.call(J,"catchLoc"),A=e.call(J,"finallyLoc");if(pe&&A){if(this.prev=0;--P){var W=this.tryEntries[P];if(W.tryLoc<=this.prev&&e.call(W,"finallyLoc")&&this.prev=0;--oe){var P=this.tryEntries[oe];if(P.finallyLoc===X)return this.complete(P.completion,P.afterLoc),z(P),d}},catch:function(X){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var P=this.tryEntries[oe];if(P.tryLoc===X){var W=P.completion;if("throw"===W.type){var J=W.arg;z(P)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(X,oe,P){return this.delegate={iterator:U(X),resultName:oe,nextLoc:P},"next"===this.method&&(this.arg=void 0),d}},t}function cZ(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function or(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){cZ(o,i,r,s,a,"next",l)}function a(l){cZ(o,i,r,s,a,"throw",l)}s(void 0)})}}function Jn(t,n){return dZ(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||eS(t,n)||uZ()}function uZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dZ(t){if(Array.isArray(t))return t}function hZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function nt(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function er(t){return(er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function Oe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function pZ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function Xd(t,n){return new t(n)}var F_,nS=new Map,rN=0;function TZ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function FHe(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=iN(t),m=nS.get(p)||function PHe(t,n){var e={stylesheet:IHe(n),rules:{}};return nS.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),rN+=1,f}function P_(t){F_=t}function Xv(){if(!F_)throw new Error("Function called outside component initialization");return F_}function eu(t){Xv().$$.on_mount.push(t)}function qu(t){Xv().$$.on_destroy.push(t)}function EZ(){var t=Xv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=DZ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function AZ(t,n){return Xv().$$.context.set(t,n),n}function Aa(t){return Xv().$$.context.get(t)}function iS(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Jv=[],Xi=[],rS=[],oN=[],MZ=Promise.resolve(),sN=!1;function OZ(){sN||(sN=!0,MZ.then(IZ))}function tc(){return OZ(),MZ}function Lm(t){rS.push(t)}function Yu(t){oN.push(t)}var oS,aN=new Set,Kv=0;function IZ(){if(0===Kv){var t=F_;do{try{for(;Kvl.start&&(a=d(l,b),l=null,lN(t,a.b,"start"),z&&(u(),c=TZ(t,s,a.b,a.duration,0,D,o.css))),a&&(U>=a.end?(B(s=a.b,1-s),lN(t,a.b,"end"),l||(a.b?u():--a.group.r||po(a.group.c)),a=null):U>=a.start&&(s=a.a+a.d*D((U-a.start)/a.duration),B(s,1-s))),!(!a&&!l)},0===N_.size&&nN(wZ),new Promise(function(U){N_.add({c:p,f:U})}))}return{run:function(f){Ta(o)?(oS||(oS=Promise.resolve()).then(function(){oS=null}),oS).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var cN=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function BHe(t,n){t.d(1),n.delete(t.key)}function uN(t,n){fe(t,1,1,function(){n.delete(t.key)})}function lS(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var b=d(r,o,p),C=e(b),D=s.get(C);D?i&&D.p(b,n):(D=c(C,b)).c(),v.set(C,g[p]=D),C in m&&y.set(C,Math.abs(p-m[C]))}var E=new Set,B=new Set;function z(P){Q(P,1),P.m(a,u),s.set(P.key,P),u=P.first,f--}for(;h&&f;){var j=g[f-1],U=t[h-1],G=j.key,X=U.key;j===U?(u=j.first,h--,f--):v.has(X)?!s.has(G)||E.has(G)?z(j):B.has(X)?h--:y.get(G)>y.get(X)?(B.add(G),z(j)):(E.add(X),h--):(l(U,s),h--)}for(;h--;){var oe=t[h];v.has(oe.key)||l(oe,s)}for(;f;)z(g[f-1]);return g}function Bm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function cS(t){return"object"===wn(t)&&null!==t?t:{}}function Xu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function gt(t){t&&t.c()}function pt(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||Lm(function(){var a,l=t.$$.on_mount.map(yZ).filter(Ta);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,ui(l)):po(l),t.$$.on_mount=[]}),s.forEach(Lm)}function mt(t,n){var e=t.$$;null!==e.fragment&&(po(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ln(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=F_;P_(t);var c=t.$$={fragment:null,ctx:[],props:o,update:Bt,not_equal:r,bound:_Z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:_Z(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function $He(t,n){-1===t.$$.dirty[0]&&(Jv.push(t),OZ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function UHe(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function zHe(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?vZ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var WHe=cN.window;function qHe(t){_i(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function FZ(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=t[1].closeButton&&PZ(t),C=t[2];return C&&(s=Xd(C,{})),{c:function(){n=De("div"),e=De("div"),i=De("div"),b&&b.c(),r=rt(),o=De("div"),s&>(s.$$.fragment),R(o,"class",a=Mo(t[1].classContent)+" svelte-n7cvum"),R(o,"style",t[9]),Nt(o,"content",!t[0]),R(i,"class",l=Mo(t[1].classWindow)+" svelte-n7cvum"),R(i,"role","dialog"),R(i,"aria-modal","true"),R(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),R(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),R(i,"style",t[8]),Nt(i,"window",!t[0]),R(e,"class",h=Mo(t[1].classWindowWrap)+" svelte-n7cvum"),R(e,"style",t[7]),Nt(e,"wrap",!t[0]),R(n,"id",f=t[1].id),R(n,"class",p=Mo(t[1].classBg)+" svelte-n7cvum"),R(n,"style",t[6]),Nt(n,"bg",!t[0])},m:function(D,E){$e(D,n,E),me(n,e),me(e,i),b&&b.m(i,null),me(i,r),me(i,o),s&&pt(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[Rt(i,"introstart",function(){Ta(t[13])&&t[13].apply(this,arguments)}),Rt(i,"outrostart",function(){Ta(t[14])&&t[14].apply(this,arguments)}),Rt(i,"introend",function(){Ta(t[15])&&t[15].apply(this,arguments)}),Rt(i,"outroend",function(){Ta(t[16])&&t[16].apply(this,arguments)}),Rt(n,"mousedown",t[20]),Rt(n,"mouseup",t[21])],v=!0)},p:function(D,E){if((t=D)[1].closeButton?b?(b.p(t,E),2&E[0]&&Q(b,1)):((b=PZ(t)).c(),Q(b,1),b.m(i,r)):b&&(Ht(),fe(b,1,1,function(){b=null}),Ut()),C!==(C=t[2])){if(s){Ht();var B=s;fe(B.$$.fragment,1,0,function(){mt(B,1)}),Ut()}C?(gt((s=Xd(C,{})).$$.fragment),Q(s.$$.fragment,1),pt(s,o,null)):s=null}(!g||2&E[0]&&a!==(a=Mo(t[1].classContent)+" svelte-n7cvum"))&&R(o,"class",a),(!g||512&E[0])&&R(o,"style",t[9]),(!g||3&E[0])&&Nt(o,"content",!t[0]),(!g||2&E[0]&&l!==(l=Mo(t[1].classWindow)+" svelte-n7cvum"))&&R(i,"class",l),(!g||2&E[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&R(i,"aria-label",c),(!g||2&E[0]&&u!==(u=t[1].ariaLabelledBy||null))&&R(i,"aria-labelledby",u),(!g||256&E[0])&&R(i,"style",t[8]),(!g||3&E[0])&&Nt(i,"window",!t[0]),(!g||2&E[0]&&h!==(h=Mo(t[1].classWindowWrap)+" svelte-n7cvum"))&&R(e,"class",h),(!g||128&E[0])&&R(e,"style",t[7]),(!g||3&E[0])&&Nt(e,"wrap",!t[0]),(!g||2&E[0]&&f!==(f=t[1].id))&&R(n,"id",f),(!g||2&E[0]&&p!==(p=Mo(t[1].classBg)+" svelte-n7cvum"))&&R(n,"class",p),(!g||64&E[0])&&R(n,"style",t[6]),(!g||3&E[0])&&Nt(n,"bg",!t[0])},i:function(D){g||(Q(b),s&&Q(s.$$.fragment,D),Lm(function(){d||(d=aS(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),Lm(function(){m||(m=aS(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(D){fe(b),s&&fe(s.$$.fragment,D),d||(d=aS(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=aS(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(D){D&&Be(n),b&&b.d(),s&&mt(s),t[50](null),D&&d&&d.end(),t[51](null),t[52](null),D&&m&&m.end(),v=!1,po(y)}}}function PZ(t){var n,e,i,r,o,s=[XHe,YHe],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Dr()},m:function(c,u){a[e].m(c,u),$e(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Ht(),fe(a[d],1,1,function(){a[d]=null}),Ut(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){fe(i),o=!1},d:function(c){a[e].d(c),c&&Be(r)}}}function YHe(t){var n,e,i,r;return{c:function(){R(n=De("button"),"class",e=Mo(t[1].classCloseButton)+" svelte-n7cvum"),R(n,"aria-label","Close modal"),R(n,"style",t[10]),R(n,"type","button"),Nt(n,"close",!t[0])},m:function(o,s){$e(o,n,s),i||(r=Rt(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Mo(o[1].classCloseButton)+" svelte-n7cvum")&&R(n,"class",e),1024&s[0]&&R(n,"style",o[10]),3&s[0]&&Nt(n,"close",!o[0])},i:Bt,o:Bt,d:function(o){o&&Be(n),i=!1,r()}}}function XHe(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=Xd(r,o(t))),{c:function(){n&>(n.$$.fragment),e=Dr()},m:function(s,a){n&&pt(n,s,a),$e(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){Ht();var l=n;fe(l.$$.fragment,1,0,function(){mt(l,1)}),Ut()}r?(gt((n=Xd(r,o(s))).$$.fragment),Q(n.$$.fragment,1),pt(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&Q(n.$$.fragment,s),i=!0)},o:function(s){n&&fe(n.$$.fragment,s),i=!1},d:function(s){s&&Be(e),n&&mt(n,s)}}}function JHe(t){var n,e,i,r,o=t[2]&&FZ(t),s=t[49].default,a=Ms(s,t,t[48],null);return{c:function(){o&&o.c(),n=rt(),a&&a.c()},m:function(l,c){o&&o.m(l,c),$e(l,n,c),a&&a.m(l,c),e=!0,i||(r=Rt(WHe,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&Q(o,1)):((o=FZ(l)).c(),Q(o,1),o.m(n.parentNode,n)):o&&(Ht(),fe(o,1,1,function(){o=null}),Ut()),a&&a.p&&(!e||131072&c[1])&&Is(a,s,l,l[48],e?Os(s,l[48],c,null):Ns(l[48]),null)},i:function(l){e||(Q(o),Q(a,l),e=!0)},o:function(l){fe(o),fe(a,l),e=!1},d:function(l){o&&o.d(l),l&&Be(n),a&&a.d(l),i=!1,r()}}}function RZ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(nt(nt({},e),{},{props:nt(nt({},n),e.props)}))}}function KHe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,b=void 0===y?{}:y,C=n.$$scope,D=EZ(),B=n.isTabbable,z=void 0===B?function(Ye){return Ye.tabIndex>=0&&!Ye.hidden&&!Ye.disabled&&"none"!==Ye.style.display&&"hidden"!==Ye.type&&Boolean(Ye.offsetWidth||Ye.offsetHeight||Ye.getClientRects().length)}:B,j=n.show,U=void 0===j?null:j,G=n.id,X=void 0===G?null:G,oe=n.key,P=void 0===oe?"simple-modal":oe,W=n.ariaLabel,J=void 0===W?null:W,H=n.ariaLabelledBy,pe=void 0===H?null:H,A=n.closeButton,N=void 0===A||A,F=n.closeOnEsc,q=void 0===F||F,V=n.closeOnOuterClick,ce=void 0===V||V,ve=n.styleBg,je=void 0===ve?{}:ve,Te=n.styleWindowWrap,et=void 0===Te?{}:Te,We=n.styleWindow,st=void 0===We?{}:We,$=n.styleContent,ae=void 0===$?{}:$,le=n.styleCloseButton,Re=void 0===le?{}:le,Ze=n.classBg,Ve=void 0===Ze?null:Ze,Ct=n.classWindowWrap,Ot=void 0===Ct?null:Ct,yn=n.classWindow,Xn=void 0===yn?null:yn,on=n.classContent,Ri=void 0===on?null:on,hn=n.classCloseButton,vr=void 0===hn?null:hn,Er=n.unstyled,fr=void 0!==Er&&Er,wr=n.setContext,Si=void 0===wr?AZ:wr,Xr=n.transitionBg,Ro=void 0===Xr?GHe:Xr,Rn=n.transitionBgProps,kt=void 0===Rn?{duration:250}:Rn,pi=n.transitionWindow,Bi=void 0===pi?Ro:pi,Ar=n.transitionWindowProps,ko=void 0===Ar?kt:Ar,Qo=n.disableFocusTrap,vt=void 0!==Qo&&Qo,jn={id:X,ariaLabel:J,ariaLabelledBy:pe,closeButton:N,closeOnEsc:q,closeOnOuterClick:ce,styleBg:je,styleWindowWrap:et,styleWindow:st,styleContent:ae,styleCloseButton:Re,classBg:Ve,classWindowWrap:Ot,classWindow:Xn,classContent:Ri,classCloseButton:vr,transitionBg:Ro,transitionBgProps:kt,transitionWindow:Bi,transitionWindowProps:ko,disableFocusTrap:vt,isTabbable:z,unstyled:fr},di=nt({},jn),ki=null,Nr=function(Ye){return Ye?Object.keys(Ye).reduce(function(In,li){return"".concat(In,"; ").concat((vi=li,vi.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ye[li]);var vi},""):""},Jr=function(Ye){return!!(Ye&&Ye.constructor&&Ye.call&&Ye.apply)},co=function(){e(6,a=Nr(Object.assign({},{width:window.innerWidth,height:window.innerHeight},di.styleBg))),e(7,l=Nr(di.styleWindowWrap)),e(8,c=Nr(di.styleWindow)),e(9,u=Nr(di.styleContent)),e(10,d=Nr(di.styleCloseButton)),e(11,h=di.transitionBg),e(12,f=di.transitionWindow)},Ks=function(){},Cr=Ks,Qs=Ks,Za=Ks,el=Ks,$c=function(Ye){var li=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},vi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,ki=RZ(Ye,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,di=nt(nt({},jn),li)),co(),qe(),e(13,Cr=function(gi){vi.onOpen&&vi.onOpen(gi),D("open"),D("opening")}),e(14,Qs=function(gi){vi.onClose&&vi.onClose(gi),D("close"),D("closing")}),e(15,Za=function(gi){vi.onOpened&&vi.onOpened(gi),D("opened")}),e(16,el=function(gi){vi.onClosed&&vi.onClosed(gi),D("closed")})},Ee=function(){var Ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ki&&(e(14,Qs=Ye.onClose||Qs),e(16,el=Ye.onClosed||el),e(2,ki=null),Ke())},qe=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},Ke=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};Si(P,{open:$c,close:Ee});var dt=!1;return qu(function(){dt&&Ee()}),eu(function(){e(47,dt=!0)}),t.$$set=function(Ye){"isTabbable"in Ye&&e(22,z=Ye.isTabbable),"show"in Ye&&e(23,U=Ye.show),"id"in Ye&&e(24,X=Ye.id),"key"in Ye&&e(25,P=Ye.key),"ariaLabel"in Ye&&e(26,J=Ye.ariaLabel),"ariaLabelledBy"in Ye&&e(27,pe=Ye.ariaLabelledBy),"closeButton"in Ye&&e(28,N=Ye.closeButton),"closeOnEsc"in Ye&&e(29,q=Ye.closeOnEsc),"closeOnOuterClick"in Ye&&e(30,ce=Ye.closeOnOuterClick),"styleBg"in Ye&&e(31,je=Ye.styleBg),"styleWindowWrap"in Ye&&e(32,et=Ye.styleWindowWrap),"styleWindow"in Ye&&e(33,st=Ye.styleWindow),"styleContent"in Ye&&e(34,ae=Ye.styleContent),"styleCloseButton"in Ye&&e(35,Re=Ye.styleCloseButton),"classBg"in Ye&&e(36,Ve=Ye.classBg),"classWindowWrap"in Ye&&e(37,Ot=Ye.classWindowWrap),"classWindow"in Ye&&e(38,Xn=Ye.classWindow),"classContent"in Ye&&e(39,Ri=Ye.classContent),"classCloseButton"in Ye&&e(40,vr=Ye.classCloseButton),"unstyled"in Ye&&e(0,fr=Ye.unstyled),"setContext"in Ye&&e(41,Si=Ye.setContext),"transitionBg"in Ye&&e(42,Ro=Ye.transitionBg),"transitionBgProps"in Ye&&e(43,kt=Ye.transitionBgProps),"transitionWindow"in Ye&&e(44,Bi=Ye.transitionWindow),"transitionWindowProps"in Ye&&e(45,ko=Ye.transitionWindowProps),"disableFocusTrap"in Ye&&e(46,vt=Ye.disableFocusTrap),"$$scope"in Ye&&e(48,C=Ye.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&dt&&(Jr(U)?$c(U):Ee())},[fr,di,ki,i,r,o,a,l,c,u,d,h,f,Cr,Qs,Za,el,Jr,Ee,function(Ye){if(di.closeOnEsc&&ki&&"Escape"===Ye.key&&(Ye.preventDefault(),Ee()),ki&&"Tab"===Ye.key&&!di.disableFocusTrap){var In=o.querySelectorAll("*"),li=Array.from(In).filter(di.isTabbable).sort(function(gi,Mr){return gi.tabIndex-Mr.tabIndex}),vi=li.indexOf(document.activeElement);-1===vi&&Ye.shiftKey&&(vi=0),vi+=li.length+(Ye.shiftKey?-1:1),li[vi%=li.length].focus(),Ye.preventDefault()}},function(Ye){!di.closeOnOuterClick||Ye.target!==i&&Ye.target!==r||(v=Ye.target)},function(Ye){di.closeOnOuterClick&&Ye.target===v&&(Ye.preventDefault(),Ee())},z,U,X,P,J,pe,N,q,ce,je,et,st,ae,Re,Ve,Ot,Xn,Ri,vr,Si,Ro,kt,Bi,ko,vt,dt,C,b,function(Ye){Xi[Ye?"unshift":"push"](function(){e(5,o=Ye)})},function(Ye){Xi[Ye?"unshift":"push"](function(){e(4,r=Ye)})},function(Ye){Xi[Ye?"unshift":"push"](function(){e(3,i=Ye)})}]}var Uo,so,Ju,Jd,Ku,tu,jZ=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,KHe,JHe,_s,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},qHe,[-1,-1,-1]),r}return Ie(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Uo||(Uo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(so||(so={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Ju||(Ju={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Jd||(Jd={})),function(t){t.key="key",t.value="value"}(Ku||(Ku={})),function(t){t.asc="asc",t.desc="desc"}(tu||(tu={}));var $m=[{start:0,end:100}],Vm={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},QHe=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),ZHe=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),LZ=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),dN="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",hN="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",eUe="NO",fN="SELF",pN="NEXT_INSIDE",tUe=(ec(ZI={},tu.asc,"ascending"),ec(ZI,tu.desc,"descending"),ZI),nUe=0;function R_(){return++nUe}function op(t){return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function ao(t){return Array.isArray(t)}function Oo(t){return null!==t&&"object"===op(t)&&t.constructor===Object}function BZ(t){return!(!t||"object"!==op(t))&&"add"===t.op}function $Z(t){return!(!t||"object"!==op(t))&&"remove"===t.op}function mN(t){return!(!t||"object"!==op(t))&&"replace"===t.op}function gN(t){return!(!t||"object"!==op(t))&&"copy"===t.op}function Qv(t){return!(!t||"object"!==op(t))&&"move"===t.op}function vN(t){return(vN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function iUe(t,n){return t===n}function VZ(t){return t.slice(0,t.length-1)}function HZ(t){return"object"===vN(t)&&null!==t}function j_(t){return(j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function UZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function rUe(t,n,e){return r=function(o,s){if("object"!==j_(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==j_(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===j_(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function yN(t){if(ao(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Oo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=Qu(t?t[r]:void 0,n.slice(1),e,i);if(Oo(t)||ao(t))return _N(t,r,o);if(i){var s=oUe.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var oUe=/^\d+$/;function zZ(t,n,e){if(0===n.length)return e(t);if(!HZ(t))throw new Error("Path doesn't exist");var i=n[0];return _N(t,i,zZ(t[i],n.slice(1),e))}function bN(t,n){if(0===n.length)return t;if(!HZ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=yN(t);return ao(i)&&i.splice(parseInt(e),1),Oo(i)&&delete i[e],i}return t}var r=n[0];return _N(t,r,bN(t[r],n.slice(1)))}function xN(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return zZ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=yN(o);return s.splice(parseInt(r),0,e),s})}function nu(t,n){return void 0!==t&&(0===n.length||null!==t&&nu(t[n[0]],n.slice(1)))}function Zu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function dn(t){return t.map(GZ).join("")}function GZ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function wN(t,n){return t+GZ(n)}function Zv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function ed(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:iUe;if(p.length=0?z=function(){var U="",G=!0;"-"==t[s]&&(U+=h()),U+="0"==t[s]?h():m(),"."==t[s]&&(U+=h()+m(),G=!1),"e"!=t[s]&&"E"!=t[s]||(U+=h(),"+"!=t[s]&&"-"!=t[s]||(U+=h()),U+=m(),G=!1);var X=+U;return a&&G&&(X>Number.MAX_SAFE_INTEGER||X="a"&&z<="f"?B+=z.charCodeAt()-mUe+10:z>="0"&&z<="9"?B+=+z:C()}return String.fromCharCode(B)}function m(){for(var E="";t[s]>="0"&&t[s]<="9";)E+=h();if(E.length)return E;D(),b()}function g(E,B){v(E,B,y())}function v(E,B,z){i[E]=i[E]||{},i[E][B]=z}function y(){return{line:r,column:o,pos:s}}function b(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function C(){f(),b()}function D(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},uS.stringify=function(t,n,e){if(dS(t)){var i,r,o=0,s="object"==wn(e)?e.space:e;switch(wn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var vUe=/"|\\/g,yUe=/[\b]/g,_Ue=/\f/g,bUe=/\n/g,xUe=/\r/g,wUe=/\t/g;function hS(t){return'"'+(t=t.replace(vUe,"\\$&").replace(_Ue,"\\f").replace(yUe,"\\b").replace(bUe,"\\n").replace(xUe,"\\r").replace(wUe,"\\t"))+'"'}var CUe=/~/g,SUe=/\//g;function kN(t){return t.replace(CUe,"~0").replace(SUe,"~1")}function DN(t){return(DN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function TN(t){var n="function"==typeof Map?new Map:void 0;return TN=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return EN(e,arguments,$_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),B_(r,e)},TN(t)}function EN(t,n,e){return(EN=QZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&B_(a,o.prototype),a}).apply(null,arguments)}function QZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B_(t,n){return(B_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function $_(t){return($_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var sp=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&B_(l,c)}(a,TN(Error));var n,e,i,s=(n=a,e=QZ(),function(){var l,c=$_(n);if(e){var u=$_(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function kUe(t,n){if(n&&("object"===DN(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function fS(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function pS(t){return t>=48&&t<=57}function DUe(t){return t>=32&&t<=1114111}var TUe=/^[,:[\]{}()\n]$/;function ZZ(t){return EUe.test(t)||t&&gS(t.charCodeAt(0))}var EUe=/^[[{\w-]$/;function AUe(t){return 10===t||13===t||9===t||8===t||12===t}function mS(t){return 32===t||10===t||9===t||13===t}function MUe(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function gS(t){return eee(t)||AN(t)}function eee(t){return 34===t||8220===t||8221===t}function AN(t){return 39===t||8216===t||8217===t||96===t||180===t}function V_(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function Hm(t,n){var e=t.length;if(!mS(t.charCodeAt(e-1)))return t+n;for(;mS(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function OUe(t,n,e){return t.substring(0,n)+t.substring(n+e)}var IUe={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},NUe={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Kd(t){var n=0,e="";r()||function(){throw new sp("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),ZZ(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=Hm(e,",")),function(){for(var b=!0,C=!0;C;)b?b=!1:l(44)||(e=Hm(e,",")),C=r();C||(e=V_(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=V_(e,",")),n>=t.length)return e;function r(){o();var b=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var C=!0;n=49&&D<=57)for(n++;pS(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(C);pS(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(C);pS(t.charCodeAt(n));)n++;return n>C&&(e+=t.slice(C,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),b}function o(){var b=n,C=s();do{(C=a())&&(C=s())}while(C);return n>b}function s(){for(var b,C="";(b=mS(t.charCodeAt(n)))||MUe(t.charCodeAt(n));)C+=b?t[n]:" ",n++;return C.length>0&&(e+=C,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nC){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;mS(t.charCodeAt(n-1))&&n>0;)n--;var D=t.slice(C,n);return e+=JSON.stringify(D),!0}}function f(b){if(!pS(t.charCodeAt(n))){var C=t.slice(b,n);throw new sp("Invalid number '".concat(C,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(b){throw new sp("Invalid character "+JSON.stringify(b),n)}function m(){throw new sp("Object key expected",n)}function g(){throw new sp("Object value expected",n)}function v(){throw new sp("Colon expected",n)}function y(b){for(var C=b+2;/\w/.test(t[C]);)C++;var D=t.slice(b,C);throw new sp('Invalid unicode character "'.concat(D,'"'),n)}!function(){throw new sp("Unexpected character "+JSON.stringify(t[n]),n)}()}function FUe(t,n){return"*"===t[n]&&"/"===t[n+1]}function Ys(t){return parseInt(t,10)}function MN(t){return PUe.test(t)}var PUe=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Io(t){return"object"===wn(t)&&null!==t&&t.constructor===Object}function zo(t){return"object"===wn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function ON(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return ON(Number(t));try{var n=t&&t.valueOf();if(n!==t)return ON(n)}catch{return!1}return!1}function tee(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function IN(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return wn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Io(t))return"object";var e=n.stringify(t);return e&&MN(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var RUe=/^https?:\/\/\S+$/;function vS(t){return"string"==typeof t&&RUe.test(t)}function e0(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&(MN(e)?n.parse(e):t)}var jUe=/^-?[0-9]+$/,iee="object"==(typeof global>"u"?"undefined":wn(global))&&global&&global.Object===Object&&global,LUe="object"==(typeof self>"u"?"undefined":wn(self))&&self&&self.Object===Object&&self,Oa=iee||LUe||Function("return this")(),hl=Oa.Symbol,ree=Object.prototype,BUe=ree.hasOwnProperty,$Ue=ree.toString,H_=hl?hl.toStringTag:void 0,VUe=Object.prototype.toString,oee=hl?hl.toStringTag:void 0;function Ol(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":oee&&oee in Object(t)?function(n){var e=BUe.call(n,H_),i=n[H_];try{n[H_]=void 0;var r=!0}catch{}var o=$Ue.call(n);return r&&(e?n[H_]=i:delete n[H_]),o}(t):VUe.call(t)}function as(t){return null!=t&&"object"==wn(t)}function nc(t){return"symbol"==wn(t)||as(t)&&"[object Symbol]"==Ol(t)}function see(t){return"number"==typeof t?t:nc(t)?NaN:+t}function Ko(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var wee=xee(gee),uze=/\{\n\/\* \[wrapped with (.+)\] \*/,dze=/,? & /,hze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function CS(t){return function(){return t}}var fze=function(){try{var t=zm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),SS=fze,pze=SS?function(t,n){return SS(t,"toString",{configurable:!0,enumerable:!1,value:CS(n),writable:!0})}:fl,PN=xee(pze);function ru(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var mze=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function See(t,n,e){var o,i=n+"";return PN(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(hze,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return ru(mze,function(s){var a="_."+s[0];o&s[1]&&!DS(r,a)&&r.push(a)}),r.sort()}((o=i.match(uze))?o[1].split(dze):[],e)))}function kee(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return FN(t)&&wee(h,d),h.placeholder=i,See(h,t,n)}function o0(t){return t.placeholder}var gze=/^(?:0|[1-9]\d*)$/;function lf(t,n){var e=wn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&gze.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Il(t){return null!=t&&W_(t.length)&&!Zd(t)}function Nl(t,n,e){if(!Go(e))return!1;var i=wn(n);return!!("number"==i?Il(e)&&lf(n,e.length):"string"==i&&n in e)&&ou(e[n],t)}function s0(t){return mr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&Nl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,Iee=Oee&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,Nee=Iee&&Iee.exports===Oee?Oa.Buffer:void 0,df=(Nee?Nee.isBuffer:void 0)||ES,Wo={};function Ic(t){return function(n){return t(n)}}Wo["[object Float32Array]"]=Wo["[object Float64Array]"]=Wo["[object Int8Array]"]=Wo["[object Int16Array]"]=Wo["[object Int32Array]"]=Wo["[object Uint8Array]"]=Wo["[object Uint8ClampedArray]"]=Wo["[object Uint16Array]"]=Wo["[object Uint32Array]"]=!0,Wo["[object Arguments]"]=Wo["[object Array]"]=Wo["[object ArrayBuffer]"]=Wo["[object Boolean]"]=Wo["[object DataView]"]=Wo["[object Date]"]=Wo["[object Error]"]=Wo["[object Function]"]=Wo["[object Map]"]=Wo["[object Number]"]=Wo["[object Object]"]=Wo["[object RegExp]"]=Wo["[object Set]"]=Wo["[object String]"]=Wo["[object WeakMap]"]=!1;var Fee="object"==(typeof exports>"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,Y_=Fee&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,LN=Y_&&Y_.exports===Fee&&iee.process,su=function(){try{return Y_&&Y_.require&&Y_.require("util").types||LN&&LN.binding&&LN.binding("util")}catch{}}(),Pee=su&&su.isTypedArray,Gm=Pee?Ic(Pee):function(t){return as(t)&&W_(t.length)&&!!Wo[Ol(t)]},kze=Object.prototype.hasOwnProperty;function Ree(t,n){var e=Ui(t),i=!e&&lp(t),r=!e&&!i&&df(t),o=!e&&!i&&!r&&Gm(t),s=e||i||r||o,a=s?jN(t.length,String):[],l=a.length;for(var c in t)!n&&!kze.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||lf(c,l))||a.push(c);return a}function jee(t,n){return function(e){return t(n(e))}}var Dze=jee(Object.keys,Object),Tze=Object.prototype.hasOwnProperty;function BN(t){if(!q_(t))return Dze(t);var n=[];for(var e in Object(t))Tze.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Xs(t){return Il(t)?Ree(t):BN(t)}var Eze=Object.prototype.hasOwnProperty,Aze=s0(function(t,n){if(q_(n)||Il(n))eh(n,Xs(n),t);else for(var e in n)Eze.call(n,e)&&G_(t,e,n[e])}),Lee=Aze,Mze=Object.prototype.hasOwnProperty;function Fl(t){return Il(t)?Ree(t,!0):function Oze(t){if(!Go(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=q_(t),e=[];for(var i in t)("constructor"!=i||!n&&Mze.call(t,i))&&e.push(i);return e}(t)}var Ize=s0(function(t,n){eh(n,Fl(n),t)}),AS=Ize,Nze=s0(function(t,n,e,i){eh(n,Fl(n),t,i)}),a0=Nze,Fze=s0(function(t,n,e,i){eh(n,Xs(n),t,i)}),Bee=Fze,Pze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rze=/^\w*$/;function $N(t,n){if(Ui(t))return!1;var e=wn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!nc(t))||Rze.test(t)||!Pze.test(t)||null!=n&&t in Object(n)}var X_=zm(Object,"create"),jze=Object.prototype.hasOwnProperty,Lze=Object.prototype.hasOwnProperty;function Wm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},hf.prototype.set=function(t,n){var e=this.__data__,i=MS(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var J_=zm(Oa,"Map");function OS(t,n){var i,r,e=t.__data__;return("string"==(r=wn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function ff(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?Ga(a,n-1,e,i,r):up(r,a):i||(r[r.length]=a)}return r}function HN(t){return null!=t&&t.length?Ga(t,1):[]}function pf(t){return PN(Eee(t,void 0,HN),t+"")}var Hee=pf(VN),NS=jee(Object.getPrototypeOf,Object),Uee=Function.prototype.toString,Wze=Object.prototype.hasOwnProperty,qze=Uee.call(Object);function c0(t){if(!as(t)||"[object Object]"!=Ol(t))return!1;var n=NS(t);if(null===n)return!0;var e=Wze.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Uee.call(e)==qze}function FS(t){if(!as(t))return!1;var n=Ol(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!c0(t)}var Yze=mr(function(t,n){try{return Oc(t,void 0,n)}catch(e){return FS(e)?e:new Error(e)}}),UN=Yze;function zN(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Qi(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var GN=mr(function(t,n,e){var i=1;if(e.length){var r=ap(e,o0(GN));i|=32}return cf(t,i,n,e,r)});GN.placeholder={};var WN=GN,Xze=pf(function(t,n){return ru(n,function(e){e=th(e),uf(t,e,WN(t[e],t))}),t}),zee=Xze,qN=mr(function(t,n,e){var i=3;if(e.length){var r=ap(e,o0(qN));i|=32}return cf(n,i,t,e,r)});qN.placeholder={};var Gee=qN;function au(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:au(t,n,e)}var Jze=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function u0(t){return Jze.test(t)}var YN="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",XN="\\ud83c[\\udffb-\\udfff]",Wee="[^\\ud800-\\udfff]",qee="(?:\\ud83c[\\udde6-\\uddff]){2}",Yee="[\\ud800-\\udbff][\\udc00-\\udfff]",Xee="(?:"+YN+"|"+XN+")?",Qze="[\\ufe0e\\ufe0f]?"+Xee+"(?:\\u200d(?:"+[Wee,qee,Yee].join("|")+")[\\ufe0e\\ufe0f]?"+Xee+")*",Zze="(?:"+[Wee+YN+"?",YN,qee,Yee,"[\\ud800-\\udfff]"].join("|")+")",eGe=RegExp(XN+"(?="+XN+")|"+Zze+Qze,"g");function nd(t){return u0(t)?function(n){return n.match(eGe)||[]}(t):function(n){return n.split("")}(t)}function Jee(t){return function(n){var e=u0(n=Zr(n))?nd(n):void 0,i=e?e[0]:n.charAt(0),r=e?dp(e,1).join(""):n.slice(1);return i[t]()+r}}var PS=Jee("toUpperCase");function JN(t){return PS(Zr(t).toLowerCase())}function KN(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function ute(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=Mc(e))==e?e:0),void 0!==n&&(n=(n=Mc(n))==n?n:0),Ym(Mc(t),n,e)}function id(t){var n=this.__data__=new hf(t);this.size=n.size}function dte(t,n){return t&&eh(n,Xs(n),t)}id.prototype.clear=function(){this.__data__=new hf,this.size=0},id.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},id.prototype.get=function(t){return this.__data__.get(t)},id.prototype.has=function(t){return this.__data__.has(t)},id.prototype.set=function(t,n){var e=this.__data__;if(e instanceof hf){var i=e.__data__;if(!J_||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new ff(i)}return e.set(t,n),this.size=e.size,this};var hte="object"==(typeof exports>"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,fte=hte&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,pte=fte&&fte.exports===hte?Oa.Buffer:void 0,mte=pte?pte.allocUnsafe:void 0;function gte(t,n){if(n)return t.slice();var e=t.length,i=mte?mte(e):new t.constructor(e);return t.copy(i),i}function hp(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Jm:void 0;for(o.set(t,n),o.set(n,t);++d=n||C<0||d&&b-c>=o}function g(){var C,D,b=Z_();if(m(b))return v(b);a=setTimeout(g,(D=n-((C=b)-l),d?RGe(D,o-(C-c)):D))}function v(b){return a=void 0,h&&i?f(b):(i=r=void 0,s)}function y(){var b=Z_(),C=m(b);if(i=arguments,r=this,l=b,C){if(void 0===a)return function p(b){return c=b,a=setTimeout(g,n),u?f(b):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=Mc(n)||0,Go(e)&&(u=!!e.leading,o=(d="maxWait"in e)?PGe(Mc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Z_())},y}function qte(t,n){return null==t||t!=t?n:t}var Yte=Object.prototype,jGe=Yte.hasOwnProperty,LGe=mr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&Nl(n[0],n[1],r)&&(i=1);++e=200&&(o=K_,s=!1,n=new Jm(n));e:for(;++r=0&&t.slice(e,r)==n}function hne(t){return function(n){var i,r,o,e=nh(n);return"[object Map]"==e?pF(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return Ko(r,function(o){return[o,i[o]]})}(n,t(n))}}var qS=hne(Xs),YS=hne(Fl),WGe=QN({"&":"&","<":"<",">":">",'"':""","'":"'"}),fne=/[&<>"']/g,qGe=RegExp(fne.source);function TF(t){return(t=Zr(t))&&qGe.test(t)?t.replace(fne,WGe):t}var pne=/[\\^$.*+?()[\]{}|]/g,YGe=RegExp(pne.source);function mne(t){return(t=Zr(t))&&YGe.test(t)?t.replace(pne,"\\$&"):t}function gne(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Qi(l))<0&&(l+=c),l=a>l?0:EF(l);a-1?r[o?n[s]:s]:void 0}}var JGe=Math.max;function AF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Qi(e);return r<0&&(r=JGe(i+r,0)),kS(t,zi(n),r)}var wne=xne(AF);function Cne(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function Sne(t,n){return Cne(t,zi(n),ih)}var KGe=Math.max,QGe=Math.min;function MF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Qi(e),r=e<0?KGe(i+r,0):QGe(r,i-1)),kS(t,zi(n),r,!0)}var kne=xne(MF);function Dne(t,n){return Cne(t,zi(n),DF)}function va(t){return t&&t.length?t[0]:void 0}function Tne(t,n){var e=-1,i=Il(t)?Array(t.length):[];return fp(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function m0(t,n){return(Ui(t)?Ko:Tne)(t,zi(n))}function Ene(t,n){return Ga(m0(t,n),1)}function Ane(t,n){return Ga(m0(t,n),1/0)}function Mne(t,n,e){return e=void 0===e?1:Qi(e),Ga(m0(t,n),e)}function One(t){return null!=t&&t.length?Ga(t,1/0):[]}function Ine(t,n){return null!=t&&t.length?Ga(t,n=void 0===n?1:Qi(n)):[]}function Nne(t){return cf(t,512)}var Fne=tF("floor");function Pne(t){return pf(function(n){var e=n.length,i=e,r=iu.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==wS(o))var s=new iu([],!0)}for(i=s?i:e;++in}function JS(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=Mc(n),e=Mc(e)),t(n,e)}}var Gne=JS(OF),Wne=JS(function(t,n){return t>=n}),tWe=Object.prototype.hasOwnProperty;function nWe(t,n){return null!=t&&tWe.call(t,n)}function qne(t,n){return null!=t&&jte(t,n,nWe)}var iWe=Math.max,rWe=Math.min;function Yne(t,n,e){return n=Qd(n),void 0===e?(e=n,n=0):e=Qd(e),(i=t=Mc(t))>=rWe(r=n,o=e)&&i-1:!!r&&r0(t,n,e)>-1}var sWe=Math.max;function Jne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Qi(e);return r<0&&(r=sWe(i+r,0)),r0(t,n,r)}function tr(t){return null!=t&&t.length?au(t,0,-1):[]}var aWe=Math.min;function NF(t,n,e){for(var i=e?kF:DS,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=Ko(u,Ic(n))),l=aWe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Jm(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function Cie(t){return void 0===t}function Sie(t){return as(t)&&"[object WeakMap]"==nh(t)}function kie(t){return as(t)&&"[object WeakSet]"==Ol(t)}function Die(t){return zi("function"==typeof t?t:lu(t,1))}var yWe=Array.prototype.join;function Tie(t,n){return null==t?"":yWe.call(t,n)}var _We=h0(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),Eie=_We,bWe=VS(function(t,n,e){uf(t,e,n)}),Aie=bWe,xWe=Math.max,wWe=Math.min;function Mie(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Qi(e))<0?xWe(i+r,0):wWe(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):kS(t,Cee,r,!0)}var CWe=h0(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Oie=CWe,Iie=Jee("toLowerCase");function jF(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function Yie(t,n){var e=t.length;if(e)return lf(n+=n<0?e:0,e)?t[n]:void 0}function Xie(t,n){return t&&t.length?Yie(t,Qi(n)):void 0}function Jie(t){return t=Qi(t),mr(function(n){return Yie(n,t)})}function zF(t,n){return null==(t=rie(t,n=cp(n,t)))||delete t[th(Bn(n))]}function TWe(t){return c0(t)?void 0:t}var EWe=pf(function(t,n){var e={};if(null==t)return e;var i=!1;n=Ko(n,function(o){return o=cp(o,t),i||(i=o.length>1),o}),eh(t,oF(t),e),i&&(e=lu(e,7,TWe));for(var r=n.length;r--;)zF(e,n[r]);return e}),Kie=EWe;function rb(t,n,e,i){if(!Go(t))return t;for(var r=-1,o=(n=cp(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(Tne(t,function(o,s,a){return{criteria:Ko(n,function(c){return c(o)}),index:++i,value:o}}))}function ire(t,n,e,i){return null==t?[]:(Ui(n)||(n=null==n?[]:[n]),Ui(e=i?void 0:e)||(e=null==e?[]:[e]),nre(t,n,e))}function WF(t){return pf(function(n){return n=Ko(n,Ic(zi)),mr(function(e){var i=this;return t(n,function(r){return Oc(r,i,e)})})})}var rre=WF(Ko),MWe=Math.min,OWe=mr(function(t,n){var e=(n=1==n.length&&Ui(n[0])?Ko(n[0],Ic(zi)):Ko(Ga(n,1),Ic(zi))).length;return mr(function(i){for(var r=-1,o=MWe(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=IWe(n/2))&&(t+=t)}while(n);return e}var NWe=yF("length"),YF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",XF="\\ud83c[\\udffb-\\udfff]",lre="[^\\ud800-\\udfff]",cre="(?:\\ud83c[\\udde6-\\uddff]){2}",ure="[\\ud800-\\udbff][\\udc00-\\udfff]",dre="(?:"+YF+"|"+XF+")?",PWe="[\\ufe0e\\ufe0f]?"+dre+"(?:\\u200d(?:"+[lre,cre,ure].join("|")+")[\\ufe0e\\ufe0f]?"+dre+")*",RWe="(?:"+[lre+YF+"?",YF,cre,ure,"[\\ud800-\\udfff]"].join("|")+")",hre=RegExp(XF+"(?="+XF+")|"+RWe+PWe,"g");function _0(t){return u0(t)?function(n){for(var e=hre.lastIndex=0;hre.test(n);)++e;return e}(t):NWe(t)}var jWe=Math.ceil;function ZS(t,n){var e=(n=void 0===n?" ":Ac(n)).length;if(e<2)return e?qF(n,t):n;var i=qF(n,jWe(t/_0(n)));return u0(n)?dp(nd(i),0,t).join(""):i.slice(0,t)}var LWe=Math.ceil,BWe=Math.floor;function fre(t,n,e){t=Zr(t);var i=(n=Qi(n))?_0(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return ZS(BWe(r),e)+t+ZS(LWe(r),e)}function pre(t,n,e){t=Zr(t);var i=(n=Qi(n))?_0(t):0;return n&&i-1;)a!==t&&bre.call(a,l,1),bre.call(t,l,1);return t}function nP(t,n){return t&&t.length&&n&&n.length?tP(t,n):t}var xre=mr(nP);function wre(t,n,e){return t&&t.length&&n&&n.length?tP(t,n,zi(e)):t}function Cre(t,n,e){return t&&t.length&&n&&n.length?tP(t,n,void 0,e):t}var GWe=Array.prototype.splice;function Sre(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;lf(r)?GWe.call(t,r,1):zF(t,r)}}return t}var WWe=pf(function(t,n){var e=null==t?0:t.length,i=VN(t,n);return Sre(t,Ko(n,function(r){return lf(r,e)?+r:r}).sort(tre)),i}),kre=WWe,qWe=Math.floor,YWe=Math.random;function iP(t,n){return t+qWe(YWe()*(n-t+1))}var XWe=parseFloat,JWe=Math.min,KWe=Math.random;function Dre(t,n,e){if(e&&"boolean"!=typeof e&&Nl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Qd(t),void 0===n?(n=t,t=0):n=Qd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=KWe();return JWe(t+r*(n-t+XWe("1e-"+((r+"").length-1))),n)}return iP(t,n)}var QWe=Math.ceil,ZWe=Math.max;function Tre(t){return function(n,e,i){return i&&"number"!=typeof i&&Nl(n,e,i)&&(e=i=void 0),n=Qd(n),void 0===e?(e=n,n=0):e=Qd(e),function(r,o,s,a){for(var l=-1,c=ZWe(QWe((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&Nl(t,n[0],n[1])?n=[]:e>2&&Nl(n[0],n[1],n[2])&&(n=[n[0]]),nre(t,Ga(n,1),[])}),oP=uqe,dqe=Math.floor,hqe=Math.min;function sP(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=nc(n),c=void 0===n;r>>1,s=t[o];null!==s&&!nc(s)&&(e?s<=n:s>>0)?(t=Zr(t))&&("string"==typeof n||null!=n&&!KS(n))&&!(n=Ac(n))&&u0(t)?dp(nd(t),0,e):t.split(n,e):[]}var fqe=Math.max;function soe(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:fqe(Qi(n),0),mr(function(e){var i=e[n],r=dp(e,0,n);return i&&up(r,i),Oc(t,this,r)})}var pqe=h0(function(t,n,e){return t+(e?" ":"")+PS(n)}),aoe=pqe;function loe(t,n,e){return t=Zr(t),e=null==e?0:Ym(Qi(e),0,t.length),n=Ac(n),t.slice(e,e+n.length)==n}function coe(){return{}}function uoe(){return""}function doe(){return!0}var hoe=yS(function(t,n){return t-n},0);function foe(t){return t&&t.length?BF(t,fl):0}function poe(t,n){return t&&t.length?BF(t,zi(n)):0}function moe(t){var n=null==t?0:t.length;return n?au(t,1,n):[]}function goe(t,n,e){return t&&t.length?au(t,0,(n=e||void 0===n?1:Qi(n))<0?0:n):[]}function voe(t,n,e){var i=null==t?0:t.length;return i?au(t,(n=i-(n=e||void 0===n?1:Qi(n)))<0?0:n,i):[]}function yoe(t,n){return t&&t.length?GS(t,zi(n),!1,!0):[]}function _oe(t,n){return t&&t.length?GS(t,zi(n)):[]}function boe(t,n){return n(t),t}var xoe=Object.prototype,mqe=xoe.hasOwnProperty;function woe(t,n,e,i){return void 0===t||ou(t,xoe[e])&&!mqe.call(i,e)?n:t}var gqe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function vqe(t){return"\\"+gqe[t]}var Coe=/<%=([\s\S]+?)%>/g,ik={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Coe,variable:"",imports:{_:{escape:TF}}},yqe=/\b__p \+= '';/g,_qe=/\b(__p \+=) '' \+/g,bqe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xqe=/[()=,{}\[\]\/\s]/,wqe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rk=/($^)/,Cqe=/['\n\r\u2028\u2029\\]/g,Soe=Object.prototype.hasOwnProperty;function koe(t,n,e){var i=ik.imports._.templateSettings||ik;e&&Nl(t,n,e)&&(n=void 0),t=Zr(t),n=a0({},n,i,woe);var r,o,s=a0({},n.imports,i.imports,woe),a=Xs(s),l=IF(s,a),c=0,u=n.interpolate||rk,d="__p += '",h=RegExp((n.escape||rk).source+"|"+u.source+"|"+(u===Coe?wqe:rk).source+"|"+(n.evaluate||rk).source+"|$","g"),f=Soe.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,b,C,D){return y||(y=b),d+=t.slice(c,D).replace(Cqe,vqe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),C&&(o=!0,d+="';\n"+C+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=D+g.length,g}),d+="';\n";var p=Soe.call(n,"variable")&&n.variable;if(p){if(xqe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(yqe,""):d).replace(_qe,"$1").replace(bqe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=UN(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,FS(m))throw m;return m}function aP(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Go(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),p0(t,n,{leading:i,maxWait:n,trailing:r})}function b0(t,n){return n(t)}var Sqe=Math.min;function lP(t,n){if((t=Qi(t))<1||t>9007199254740991)return[];var e=4294967295,i=Sqe(t,4294967295);t-=4294967295;for(var r=jN(i,n=rh(n));++e-1;);return e}function Noe(t,n){for(var e=-1,i=t.length;++e-1;);return e}function Foe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return dee(t);if(!t||!(n=Ac(n)))return t;var i=nd(t),r=nd(n);return dp(i,Noe(i,r),Ioe(i,r)+1).join("")}function Poe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return t.slice(0,uee(t)+1);if(!t||!(n=Ac(n)))return t;var i=nd(t);return dp(i,0,Ioe(i,nd(n))+1).join("")}var kqe=/^\s+/;function Roe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return t.replace(kqe,"");if(!t||!(n=Ac(n)))return t;var i=nd(t);return dp(i,Noe(i,nd(n))).join("")}var Dqe=/\w*$/;function joe(t,n){var e=30,i="...";if(Go(n)){var r="separator"in n?n.separator:r;e="length"in n?Qi(n.length):e,i="omission"in n?Ac(n.omission):i}var o=(t=Zr(t)).length;if(u0(t)){var s=nd(t);o=s.length}if(e>=o)return t;var a=e-_0(i);if(a<1)return i;var l=s?dp(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),KS(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Zr(Dqe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(Ac(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function Loe(t){return RN(t,1)}var Tqe=QN({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Boe=/&(?:amp|lt|gt|quot|#39);/g,Eqe=RegExp(Boe.source);function $oe(t){return(t=Zr(t))&&Eqe.test(t)?t.replace(Boe,Tqe):t}var Aqe=f0&&1/LS(new f0([,-0]))[1]==1/0?function(t){return new f0(t)}:bo,Mqe=Aqe;function pp(t,n,e){var i=-1,r=DS,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=kF;else if(o>=200){var c=n?null:Mqe(t);if(c)return LS(c);s=!1,r=K_,l=new Jm}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Ir&&lf(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:b0,args:[r],thisArg:void 0}),new iu(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),tse=Rqe;function nse(){return nF(this)}function ise(){var t=this.__wrapped__;if(t instanceof Ir){var n=t;return this.__actions__.length&&(n=new Ir(this)),(n=n.reverse()).__actions__.push({func:b0,args:[ek],thisArg:void 0}),new iu(n,this.__chain__)}return this.thru(ek)}function dP(t,n,e){var i=t.length;if(i<2)return i?pp(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,uP(t,e)}),dse=Lqe,Kn={chunk:cte,compact:Ate,concat:Mte,difference:tne,differenceBy:nne,differenceWith:ine,drop:one,dropRight:sne,dropRightWhile:ane,dropWhile:lne,fill:yne,findIndex:AF,findLastIndex:MF,first:va,flatten:HN,flattenDeep:One,flattenDepth:Ine,fromPairs:Hne,head:va,indexOf:Jne,initial:tr,intersection:Kne,intersectionBy:Qne,intersectionWith:Zne,join:Tie,last:Bn,lastIndexOf:Mie,nth:Xie,pull:xre,pullAll:nP,pullAllBy:wre,pullAllWith:Cre,pullAt:kre,remove:Fre,reverse:ek,slice:qre,sortedIndex:Jre,sortedIndexBy:Kre,sortedIndexOf:Qre,sortedLastIndex:Zre,sortedLastIndexBy:eoe,sortedLastIndexOf:toe,sortedUniq:ioe,sortedUniqBy:roe,tail:moe,take:goe,takeRight:voe,takeRightWhile:yoe,takeWhile:_oe,union:Voe,unionBy:Hoe,unionWith:Uoe,uniq:zoe,uniqBy:Goe,uniqWith:Woe,unzip:ok,unzipWith:uP,without:Zoe,xor:rse,xorBy:ose,xorWith:sse,zip:ase,zipObject:cse,zipObjectDeep:use,zipWith:dse},xo={countBy:Gte,each:WS,eachRight:tb,every:vne,filter:bne,find:wne,findLast:kne,flatMap:Ene,flatMapDeep:Ane,flatMapDepth:Mne,forEach:WS,forEachRight:tb,groupBy:g0,includes:Xne,invokeMap:sie,keyBy:Aie,map:m0,orderBy:ire,partition:ZF,reduce:Ore,reduceRight:Ire,reject:Nre,sample:Vre,sampleSize:Hre,shuffle:Gre,size:Wre,some:Xre,sortBy:oP},Bqe={now:Z_},xs={after:hee,ary:RN,before:zN,bind:WN,bindKey:Gee,curry:HS,curryRight:US,debounce:p0,defer:Zte,delay:ene,flip:Nne,memoize:l0,negate:y0,once:ere,overArgs:ore,partial:KF,partialRight:vre,rearg:Are,rest:jre,spread:soe,throttle:aP,unary:Loe,wrap:ese},bi={castArray:ate,clone:Dte,cloneDeep:Tte,cloneDeepWith:dF,cloneWith:Ete,conformsTo:Hte,eq:ou,gt:Gne,gte:Wne,isArguments:lp,isArray:Ui,isArrayBuffer:lie,isArrayLike:Il,isArrayLikeObject:bs,isBoolean:cie,isBuffer:df,isDate:die,isElement:hie,isEmpty:Ji,isEqual:dr,isEqualWith:fie,isError:FS,isFinite:pie,isFunction:Zd,isInteger:PF,isLength:W_,isMap:cF,isMatch:mie,isMatchWith:gie,isNaN:vie,isNative:yie,isNil:_ie,isNull:bie,isNumber:RF,isObject:Go,isObjectLike:as,isPlainObject:c0,isRegExp:KS,isSafeInteger:wie,isSet:uF,isString:nb,isSymbol:nc,isTypedArray:Gm,isUndefined:Cie,isWeakMap:Sie,isWeakSet:kie,lt:Nie,lte:Fie,toArray:HF,toFinite:Qd,toInteger:Qi,toLength:EF,toNumber:Mc,toPlainObject:CF,toSafeInteger:Aoe,toString:Zr},Pl={add:cee,ceil:lte,divide:rne,floor:Fne,max:Lie,maxBy:Bie,mean:Vie,meanBy:Hie,min:Wie,minBy:v0,multiply:qie,round:Bre,subtract:hoe,sum:foe,sumBy:poe},$qe=ute,Vqe=Yne,Hqe=Dre,Li={assign:Lee,assignIn:AS,assignInWith:a0,assignWith:Bee,at:Hee,create:Wte,defaults:Xte,defaultsDeep:Kte,entries:qS,entriesIn:YS,extend:AS,extendWith:a0,findKey:Sne,findLastKey:Dne,forIn:Lne,forInRight:Bne,forOwn:$ne,forOwnRight:Vne,functions:Une,functionsIn:zne,get:IS,has:qne,hasIn:$S,invert:tie,invertBy:iie,invoke:oie,keys:Xs,keysIn:Fl,mapKeys:Pie,mapValues:LF,merge:Uie,mergeWith:SF,omit:Kie,omitBy:Zie,pick:yre,pickBy:GF,result:Lre,set:Ure,setWith:zre,toPairs:qS,toPairsIn:YS,transform:Ooe,unset:qoe,update:Xoe,updateWith:Joe,values:Km,valuesIn:Qoe},oh={at:tse,chain:nF,commit:hF,lodash:Ce,next:UF,plant:eP,reverse:ise,tap:boe,thru:b0,toIterator:cP,toJSON:Qm,value:Qm,valueOf:Qm,wrapperChain:nse},eo={camelCase:ste,capitalize:JN,deburr:ZN,endsWith:dne,escape:TF,escapeRegExp:mne,kebabCase:Eie,lowerCase:Oie,lowerFirst:Iie,pad:fre,padEnd:pre,padStart:mre,parseInt:gre,repeat:Pre,replace:Rre,snakeCase:Yre,split:ooe,startCase:aoe,startsWith:loe,template:koe,templateSettings:ik,toLower:Toe,toUpper:Moe,trim:Foe,trimEnd:Poe,trimStart:Roe,truncate:joe,unescape:$oe,upperCase:Koe,upperFirst:PS,words:eF},lo={attempt:UN,bindAll:zee,cond:Bte,conforms:Vte,constant:CS,defaultTo:qte,flow:Rne,flowRight:jne,identity:fl,iteratee:Die,matches:Rie,matchesProperty:jie,method:zie,methodOf:Gie,mixin:$F,noop:bo,nthArg:Jie,over:rre,overEvery:sre,overSome:are,property:_F,propertyOf:_re,range:rP,rangeRight:Ere,stubArray:RS,stubFalse:ES,stubObject:coe,stubString:uoe,stubTrue:doe,times:lP,toPath:Eoe,uniqueId:mp},Uqe=Math.max,zqe=Math.min,Gqe=Math.min,Wqe=Array.prototype,hse=Object.prototype.hasOwnProperty,fse=hl?hl.iterator:void 0,qqe=Math.max,pse=Math.min,fP=function(t){return function(n,e,i){if(null==i){var r=Go(e),o=r&&Xs(e),s=o&&o.length&&XS(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}($F);Ce.after=xs.after,Ce.ary=xs.ary,Ce.assign=Li.assign,Ce.assignIn=Li.assignIn,Ce.assignInWith=Li.assignInWith,Ce.assignWith=Li.assignWith,Ce.at=Li.at,Ce.before=xs.before,Ce.bind=xs.bind,Ce.bindAll=lo.bindAll,Ce.bindKey=xs.bindKey,Ce.castArray=bi.castArray,Ce.chain=oh.chain,Ce.chunk=Kn.chunk,Ce.compact=Kn.compact,Ce.concat=Kn.concat,Ce.cond=lo.cond,Ce.conforms=lo.conforms,Ce.constant=lo.constant,Ce.countBy=xo.countBy,Ce.create=Li.create,Ce.curry=xs.curry,Ce.curryRight=xs.curryRight,Ce.debounce=xs.debounce,Ce.defaults=Li.defaults,Ce.defaultsDeep=Li.defaultsDeep,Ce.defer=xs.defer,Ce.delay=xs.delay,Ce.difference=Kn.difference,Ce.differenceBy=Kn.differenceBy,Ce.differenceWith=Kn.differenceWith,Ce.drop=Kn.drop,Ce.dropRight=Kn.dropRight,Ce.dropRightWhile=Kn.dropRightWhile,Ce.dropWhile=Kn.dropWhile,Ce.fill=Kn.fill,Ce.filter=xo.filter,Ce.flatMap=xo.flatMap,Ce.flatMapDeep=xo.flatMapDeep,Ce.flatMapDepth=xo.flatMapDepth,Ce.flatten=Kn.flatten,Ce.flattenDeep=Kn.flattenDeep,Ce.flattenDepth=Kn.flattenDepth,Ce.flip=xs.flip,Ce.flow=lo.flow,Ce.flowRight=lo.flowRight,Ce.fromPairs=Kn.fromPairs,Ce.functions=Li.functions,Ce.functionsIn=Li.functionsIn,Ce.groupBy=xo.groupBy,Ce.initial=Kn.initial,Ce.intersection=Kn.intersection,Ce.intersectionBy=Kn.intersectionBy,Ce.intersectionWith=Kn.intersectionWith,Ce.invert=Li.invert,Ce.invertBy=Li.invertBy,Ce.invokeMap=xo.invokeMap,Ce.iteratee=lo.iteratee,Ce.keyBy=xo.keyBy,Ce.keys=Xs,Ce.keysIn=Li.keysIn,Ce.map=xo.map,Ce.mapKeys=Li.mapKeys,Ce.mapValues=Li.mapValues,Ce.matches=lo.matches,Ce.matchesProperty=lo.matchesProperty,Ce.memoize=xs.memoize,Ce.merge=Li.merge,Ce.mergeWith=Li.mergeWith,Ce.method=lo.method,Ce.methodOf=lo.methodOf,Ce.mixin=fP,Ce.negate=y0,Ce.nthArg=lo.nthArg,Ce.omit=Li.omit,Ce.omitBy=Li.omitBy,Ce.once=xs.once,Ce.orderBy=xo.orderBy,Ce.over=lo.over,Ce.overArgs=xs.overArgs,Ce.overEvery=lo.overEvery,Ce.overSome=lo.overSome,Ce.partial=xs.partial,Ce.partialRight=xs.partialRight,Ce.partition=xo.partition,Ce.pick=Li.pick,Ce.pickBy=Li.pickBy,Ce.property=lo.property,Ce.propertyOf=lo.propertyOf,Ce.pull=Kn.pull,Ce.pullAll=Kn.pullAll,Ce.pullAllBy=Kn.pullAllBy,Ce.pullAllWith=Kn.pullAllWith,Ce.pullAt=Kn.pullAt,Ce.range=lo.range,Ce.rangeRight=lo.rangeRight,Ce.rearg=xs.rearg,Ce.reject=xo.reject,Ce.remove=Kn.remove,Ce.rest=xs.rest,Ce.reverse=Kn.reverse,Ce.sampleSize=xo.sampleSize,Ce.set=Li.set,Ce.setWith=Li.setWith,Ce.shuffle=xo.shuffle,Ce.slice=Kn.slice,Ce.sortBy=xo.sortBy,Ce.sortedUniq=Kn.sortedUniq,Ce.sortedUniqBy=Kn.sortedUniqBy,Ce.split=eo.split,Ce.spread=xs.spread,Ce.tail=Kn.tail,Ce.take=Kn.take,Ce.takeRight=Kn.takeRight,Ce.takeRightWhile=Kn.takeRightWhile,Ce.takeWhile=Kn.takeWhile,Ce.tap=oh.tap,Ce.throttle=xs.throttle,Ce.thru=b0,Ce.toArray=bi.toArray,Ce.toPairs=Li.toPairs,Ce.toPairsIn=Li.toPairsIn,Ce.toPath=lo.toPath,Ce.toPlainObject=bi.toPlainObject,Ce.transform=Li.transform,Ce.unary=xs.unary,Ce.union=Kn.union,Ce.unionBy=Kn.unionBy,Ce.unionWith=Kn.unionWith,Ce.uniq=Kn.uniq,Ce.uniqBy=Kn.uniqBy,Ce.uniqWith=Kn.uniqWith,Ce.unset=Li.unset,Ce.unzip=Kn.unzip,Ce.unzipWith=Kn.unzipWith,Ce.update=Li.update,Ce.updateWith=Li.updateWith,Ce.values=Li.values,Ce.valuesIn=Li.valuesIn,Ce.without=Kn.without,Ce.words=eo.words,Ce.wrap=xs.wrap,Ce.xor=Kn.xor,Ce.xorBy=Kn.xorBy,Ce.xorWith=Kn.xorWith,Ce.zip=Kn.zip,Ce.zipObject=Kn.zipObject,Ce.zipObjectDeep=Kn.zipObjectDeep,Ce.zipWith=Kn.zipWith,Ce.entries=Li.toPairs,Ce.entriesIn=Li.toPairsIn,Ce.extend=Li.assignIn,Ce.extendWith=Li.assignInWith,fP(Ce,Ce),Ce.add=Pl.add,Ce.attempt=lo.attempt,Ce.camelCase=eo.camelCase,Ce.capitalize=eo.capitalize,Ce.ceil=Pl.ceil,Ce.clamp=$qe,Ce.clone=bi.clone,Ce.cloneDeep=bi.cloneDeep,Ce.cloneDeepWith=bi.cloneDeepWith,Ce.cloneWith=bi.cloneWith,Ce.conformsTo=bi.conformsTo,Ce.deburr=eo.deburr,Ce.defaultTo=lo.defaultTo,Ce.divide=Pl.divide,Ce.endsWith=eo.endsWith,Ce.eq=bi.eq,Ce.escape=eo.escape,Ce.escapeRegExp=eo.escapeRegExp,Ce.every=xo.every,Ce.find=xo.find,Ce.findIndex=Kn.findIndex,Ce.findKey=Li.findKey,Ce.findLast=xo.findLast,Ce.findLastIndex=Kn.findLastIndex,Ce.findLastKey=Li.findLastKey,Ce.floor=Pl.floor,Ce.forEach=xo.forEach,Ce.forEachRight=xo.forEachRight,Ce.forIn=Li.forIn,Ce.forInRight=Li.forInRight,Ce.forOwn=Li.forOwn,Ce.forOwnRight=Li.forOwnRight,Ce.get=Li.get,Ce.gt=bi.gt,Ce.gte=bi.gte,Ce.has=Li.has,Ce.hasIn=Li.hasIn,Ce.head=Kn.head,Ce.identity=fl,Ce.includes=xo.includes,Ce.indexOf=Kn.indexOf,Ce.inRange=Vqe,Ce.invoke=Li.invoke,Ce.isArguments=bi.isArguments,Ce.isArray=Ui,Ce.isArrayBuffer=bi.isArrayBuffer,Ce.isArrayLike=bi.isArrayLike,Ce.isArrayLikeObject=bi.isArrayLikeObject,Ce.isBoolean=bi.isBoolean,Ce.isBuffer=bi.isBuffer,Ce.isDate=bi.isDate,Ce.isElement=bi.isElement,Ce.isEmpty=bi.isEmpty,Ce.isEqual=bi.isEqual,Ce.isEqualWith=bi.isEqualWith,Ce.isError=bi.isError,Ce.isFinite=bi.isFinite,Ce.isFunction=bi.isFunction,Ce.isInteger=bi.isInteger,Ce.isLength=bi.isLength,Ce.isMap=bi.isMap,Ce.isMatch=bi.isMatch,Ce.isMatchWith=bi.isMatchWith,Ce.isNaN=bi.isNaN,Ce.isNative=bi.isNative,Ce.isNil=bi.isNil,Ce.isNull=bi.isNull,Ce.isNumber=bi.isNumber,Ce.isObject=Go,Ce.isObjectLike=bi.isObjectLike,Ce.isPlainObject=bi.isPlainObject,Ce.isRegExp=bi.isRegExp,Ce.isSafeInteger=bi.isSafeInteger,Ce.isSet=bi.isSet,Ce.isString=bi.isString,Ce.isSymbol=bi.isSymbol,Ce.isTypedArray=bi.isTypedArray,Ce.isUndefined=bi.isUndefined,Ce.isWeakMap=bi.isWeakMap,Ce.isWeakSet=bi.isWeakSet,Ce.join=Kn.join,Ce.kebabCase=eo.kebabCase,Ce.last=Bn,Ce.lastIndexOf=Kn.lastIndexOf,Ce.lowerCase=eo.lowerCase,Ce.lowerFirst=eo.lowerFirst,Ce.lt=bi.lt,Ce.lte=bi.lte,Ce.max=Pl.max,Ce.maxBy=Pl.maxBy,Ce.mean=Pl.mean,Ce.meanBy=Pl.meanBy,Ce.min=Pl.min,Ce.minBy=Pl.minBy,Ce.stubArray=lo.stubArray,Ce.stubFalse=lo.stubFalse,Ce.stubObject=lo.stubObject,Ce.stubString=lo.stubString,Ce.stubTrue=lo.stubTrue,Ce.multiply=Pl.multiply,Ce.nth=Kn.nth,Ce.noop=lo.noop,Ce.now=Bqe.now,Ce.pad=eo.pad,Ce.padEnd=eo.padEnd,Ce.padStart=eo.padStart,Ce.parseInt=eo.parseInt,Ce.random=Hqe,Ce.reduce=xo.reduce,Ce.reduceRight=xo.reduceRight,Ce.repeat=eo.repeat,Ce.replace=eo.replace,Ce.result=Li.result,Ce.round=Pl.round,Ce.sample=xo.sample,Ce.size=xo.size,Ce.snakeCase=eo.snakeCase,Ce.some=xo.some,Ce.sortedIndex=Kn.sortedIndex,Ce.sortedIndexBy=Kn.sortedIndexBy,Ce.sortedIndexOf=Kn.sortedIndexOf,Ce.sortedLastIndex=Kn.sortedLastIndex,Ce.sortedLastIndexBy=Kn.sortedLastIndexBy,Ce.sortedLastIndexOf=Kn.sortedLastIndexOf,Ce.startCase=eo.startCase,Ce.startsWith=eo.startsWith,Ce.subtract=Pl.subtract,Ce.sum=Pl.sum,Ce.sumBy=Pl.sumBy,Ce.template=eo.template,Ce.times=lo.times,Ce.toFinite=bi.toFinite,Ce.toInteger=Qi,Ce.toLength=bi.toLength,Ce.toLower=eo.toLower,Ce.toNumber=bi.toNumber,Ce.toSafeInteger=bi.toSafeInteger,Ce.toString=bi.toString,Ce.toUpper=eo.toUpper,Ce.trim=eo.trim,Ce.trimEnd=eo.trimEnd,Ce.trimStart=eo.trimStart,Ce.truncate=eo.truncate,Ce.unescape=eo.unescape,Ce.uniqueId=lo.uniqueId,Ce.upperCase=eo.upperCase,Ce.upperFirst=eo.upperFirst,Ce.each=xo.forEach,Ce.eachRight=xo.forEachRight,Ce.first=Kn.head,fP(Ce,(hP={},ih(Ce,function(t,n){hse.call(Ce.prototype,n)||(hP[n]=t)}),hP),{chain:!1}),Ce.VERSION="4.17.21",(Ce.templateSettings=eo.templateSettings).imports._=Ce,ru(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Ce[t].placeholder=Ce}),ru(["drop","take"],function(t,n){Ir.prototype[t]=function(e){e=void 0===e?1:qqe(Qi(e),0);var i=this.__filtered__&&!n?new Ir(this):this.clone();return i.__filtered__?i.__takeCount__=pse(e,i.__takeCount__):i.__views__.push({size:pse(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Ir.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ru(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Ir.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:zi(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),ru(["head","last"],function(t,n){var e="take"+(n?"Right":"");Ir.prototype[t]=function(){return this[e](1).value()[0]}}),ru(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Ir.prototype[t]=function(){return this.__filtered__?new Ir(this):this[e](1)}}),Ir.prototype.compact=function(){return this.filter(fl)},Ir.prototype.find=function(t){return this.filter(t).head()},Ir.prototype.findLast=function(t){return this.reverse().find(t)},Ir.prototype.invokeMap=mr(function(t,n){return"function"==typeof t?new Ir(this):this.map(function(e){return ib(e,t,n)})}),Ir.prototype.reject=function(t){return this.filter(y0(zi(t)))},Ir.prototype.slice=function(t,n){t=Qi(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Ir(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Qi(n))<0?e.dropRight(-n):e.take(n-t)),e)},Ir.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ir.prototype.toArray=function(){return this.take(4294967295)},ih(Ir.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=Ce[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(Ce.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Ir,c=a[0],u=l||Ui(s),d=function(v){var y=r.apply(Ce,up([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Ir(this);var g=t.apply(s,a);return g.__actions__.push({func:b0,args:[d],thisArg:void 0}),new iu(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),ru(["pop","push","shift","sort","splice","unshift"],function(t){var n=Wqe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Ce.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(Ui(o)?o:[],r)}return this[e](function(s){return n.apply(Ui(s)?s:[],r)})}}),ih(Ir.prototype,function(t,n){var e=Ce[n];if(e){var i=e.name+"";hse.call(n0,i)||(n0[i]=[]),n0[i].push({name:n,func:e})}}),n0[TS(void 0,2).name]=[{name:"wrapper",func:void 0}],Ir.prototype.clone=function(){var t=new Ir(this.__wrapped__);return t.__actions__=ic(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ic(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ic(this.__views__),t},Ir.prototype.reverse=function(){if(this.__filtered__){var t=new Ir(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ir.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Ui(t),i=n<0,r=e?t.length:0,o=function(D,E,B){for(var z=-1,j=B.length;++z1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Io(l)||n&&c.length>0)&&(e[dn(c)]=!0),Io(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function gse(t){return nt({},t)}function vse(t){return Object.values(t)}function yse(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(ui(o))),r}function mP(t,n){try{return n.parse(t)}catch{return n.parse(Kd(t))}}function _se(t,n){try{return mP(t,n)}catch{return}}function ak(t,n){t=t.replace(xse,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function bse(t){t=t.replace(xse,"");try{return Kd(t)}catch{}try{var n=Kd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Kd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var xse=/,\s*$/;function lk(t,n){var e=Sse.exec(n);if(e){var i=Ys(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return x0(t)?t:{text:e.stringify(t.json,null,n)}}function wse(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return vP(t)?t:{json:n.parse(t.text)}}function ck(t,n,e){return Zm(t,n,e).text}function Cse(t,n){return function Kqe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(x0(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Io(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var Sse=/(position|char) (\d+)/,Qqe=/line (\d+)/,Zqe=/column (\d+)/;function Dse(t){return eYe.test(t)&&t.length>2}var eYe=/^[[{]\S/;function yP(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?tYe:nYe:e?iYe:rYe}var tYe={escapeValue:function(t){return Tse(Mse(String(t)))},unescapeValue:function(t){return Ose(Ese(t))}},nYe={escapeValue:function(t){return Mse(String(t))},unescapeValue:function(t){return Ose(t)}},iYe={escapeValue:function(t){return Tse(String(t))},unescapeValue:function(t){return Ese(t)}},rYe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function Tse(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function Ese(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return Ase[e]||e}catch{return n}})}var Ase={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},oYe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Mse(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return Ase[n]||n})}function Ose(t){return t.replace(/\\["bfnrt\\]/g,function(n){return oYe[n]||n})}function eg(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function Ise(t,n){return ob(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function tg(t,n,e){return ob(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function ob(t,n){return!!_P(t,n)}function _P(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function Nse(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function uk(t,n,e){var i=w0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,Nse(r))}}function w0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function dk(t){var e=w0(t)?.document.activeElement;return!!e&&ob(e,function(i){return i===t})}function Fse(t,n){return _P(t,function(e){return e.nodeName===n})}function bP(t){return tg(t,"data-type","selectable-key")?so.key:tg(t,"data-type","selectable-value")?so.value:tg(t,"data-type","insert-selection-area-inside")?so.inside:tg(t,"data-type","insert-selection-area-after")?so.after:so.multi}function C0(t){return encodeURIComponent(dn(t))}function Pse(t){var e=_P(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Zu(decodeURIComponent(e)):null}function gp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in aYe||e.push(i),e.join(n)}var aYe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},xP=cN.window;function lYe(t){_i(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function Rse(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&C>h,z="left"===v||b+u>window.innerWidth&&b>u;return{left:z?y.right-g:b+g,top:B?C-p:y.bottom+p,positionAbove:B,positionLeft:z}}if("number"==typeof n.left&&"number"==typeof n.top){var j=n.left,U=n.top,G=n.width,X=void 0===G?0:G,oe=n.height,P=void 0===oe?0:oe;return{left:j,top:U,positionAbove:U+P>window.innerHeight&&U>P,positionLeft:j+X>window.innerWidth&&j>X}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function dYe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!ob(l.target,function(c){return c===i})&&s(o.id)}return eu(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===gp(l)&&s(o.id)},function(l){a(l)},s,function(l){Xi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Xi[l?"unshift":"push"](function(){e(1,i=l)})}]}var hYe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dYe,cYe,_s,{popup:0,closeAbsolutePopup:6},lYe),r}return Ie(e)}();function Lse(t,n,e){var i=t.slice();return i[6]=n[e],i}function Bse(t){var n,e;return n=new hYe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function fYe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(gYe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var gYe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function sb(t){return{value:t,label:Ji(t)?"(whole item)":cu(rc(t))}}function sh(t){return t.map(function(n){return CP.test(n)?"?.[".concat(n,"]"):wP.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var wP=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,CP=/^\d+$/;function ab(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function ah(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var vYe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(sh(e.path)),a=function SP(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function nee(t){return jUe.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(sh(i.path),"\n")+" const valueB = b".concat(sh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(sh(i.path),"\n")+" const valueB = b".concat(sh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(sh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(sh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},yYe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},lb={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},cb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},_Ye={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function bYe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var qYe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,WYe,GYe,Pi,{path:4,value:0,readOnly:1,onPatch:5,focus:6},zYe),r}return Ie(e)}();function Jse(t){for(var n=oP(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=pk(n,u);DP(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Io(l)&&i(o)){r[dn(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=He(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),nt(nt({},n),{},{expandedMap:r})}function Kse(t,n){var e=S0(t.expandedMap,n),i=S0(t.enforceStringMap,n),r=S0(t.visibleSectionsMap,n);return nt(nt({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Qse(t,n,e){if(e){var i=nt({},t.enforceStringMap);return i[n]=e,nt(nt({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=nt({},t.enforceStringMap);return delete r[n],nt(nt({},t),{},{enforceStringMap:r})}return t}function Zse(t,n,e){var i=ed(t,e),r=e.reduce(function(o,s){return BZ(s)?eae(i,o,s):$Z(s)?tae(i,o,s):mN(s)?(u=(c=s).path,d=OP(a=i,(l=o).expandedMap),h=OP(a,l.enforceStringMap),f=OP(a,l.visibleSectionsMap),Oo(c.value)||ao(c.value)||delete d[u],ao(c.value)||delete f[u],(Oo(c.value)||ao(c.value))&&delete h[u],nt(nt({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):gN(s)||Qv(s)?function(a,l,c){if(Qv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=MP(EP(l.expandedMap,c.from),u),h=MP(EP(l.enforceStringMap,c.from),u),f=MP(EP(l.visibleSectionsMap,c.from),u),p=l;Qv(c)&&(p=tae(a,p,{op:"remove",path:c.from}));var m=AP((p=eae(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=AP(p.enforceStringMap,h),v=AP(p.visibleSectionsMap,f);return nt(nt({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function eae(t,n,e){var i=td(t,e.path),r=tr(i),o=dn(r);if(ao(Mn(t,r))){var s=Ys(Bn(i)),a=k0(n.expandedMap,r,s,1),l=k0(n.enforceStringMap,r,s,1),c=k0(n.visibleSectionsMap,r,s,1);return c=nae(c,o,function(u){return iae(u,s,1)}),nt(nt({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function tae(t,n,e){var i=td(t,e.path),r=tr(i),o=dn(r),s=Mn(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=S0(a,i),l=S0(l,i),c=S0(c,i),ao(s)){var u=Ys(Bn(i));a=k0(a,r,u,-1),l=k0(l,r,u,-1),c=nae(c=k0(c,r,u,-1),o,function(d){return iae(d,u,-1)})}return nt(nt({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function S0(t,n){var e={},i=dn(n);return Object.keys(t).forEach(function(r){Zv(r,i)||(e[r]=t[r])}),e}function EP(t,n){var e={};return Object.keys(t).forEach(function(i){Zv(i,n)&&(e[i]=t[i])}),e}function AP(t,n){return nt(nt({},t),n)}function MP(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function k0(t,n,e,i){for(var r=n.length,o=dn(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:dn(u),value:t[c]}))}}if(0===s.length)return t;var h=nt({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function OP(t,n){var e={};return Object.keys(n).filter(function(i){return nu(t,td(t,i))}).forEach(function(i){e[i]=n[i]}),e}function nae(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!dr(i,r)){var o=nt({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function iae(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function mf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof e0(o,i)}function ub(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function IP(t,n){var e=[];return function i(r,o){e.push(o);var s=dn(o);if(r&&!0===n.expandedMap[s]){if(ao(r)){var a=pk(n,s);DP(r,a,function(l){i(r[l],o.concat(String(l)))})}Oo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function rae(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Ju.value});var a=dn(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Ju.inside}),ao(o)){var l=pk(n,a);DP(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Ju.after})})}Oo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Ju.key}),r(o[c],u),e&&i.push({path:u,type:Ju.after})})}}(t,[]),i}function NP(t,n,e){var i=IP(t,n),r=i.map(dn).indexOf(dn(e));return-1!==r&&r0;){if(!0===t.pointersMap[dn(i)])return!0;i.pop()}return ws(t)?e===so.key&&dr(t.focusPath,n):!(!nr(t)||!(e===so.value&&dr(t.focusPath,n)||A0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===so.key||e===so.value||e===so.multi)))}function aae(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Lr(r)?r.focusPath:va(r.paths),s=function JYe(t,n,e){var i=IP(t,n),r=i.map(dn),o=dn(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return rd(r)||Js(r)?Fs(t,r.anchorPath,r.anchorPath):Fs(t,r.anchorPath,l);if(ws(r)){var u=Mn(t,tr(s));return Array.isArray(u)||Ji(s)?br(s,!1):du(s,!1)}return nr(r)?br(s,!1):rd(r)||Js(r)?Fs(t,o,o):Fs(t,a,l)}function lae(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=rae(t,n,e),o=r.findIndex(function(s){return dr(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Mn(t,tr(r)))?br(r,!1):du(r,!1)}function E0(t,n){if(1===n.length){var e=va(n);if("replace"===e.op||"move"===e.op)return br(td(t,e.path),!1)}if(!Ji(n)&&n.every(function(s){return"move"===s.op})){var i=va(n),r=n.slice(1);if((gN(i)||Qv(i))&&i.from!==i.path&&r.every(function(s){return(gN(s)||Qv(s))&&s.from===s.path}))return du(td(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return td(t,s.path)});if(!Ji(o))return{type:so.multi,paths:o,anchorPath:va(o),focusPath:Bn(o),pointersMap:cae(o)}}function cae(t){var n={};return t.forEach(function(e){n[dn(e)]=!0}),n}function gk(t){return ec({},dn(t),!0)}function hb(t){return void 0!==t&&(ws(t)||nr(t)||Lr(t)&&1===t.paths.length)}function uae(t,n){return hb(n)&&zo(Mn(t,n.focusPath))?n.focusPath:tr(n.focusPath)}function A0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return nt(nt({},r),{},{active:o===n})});return nt(nt({},t),{},{items:i,itemsMap:g0(i,function(r){return dn(r.path)}),activeItem:e,activeIndex:n})}function oXe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return nt(nt({},r),{},{active:o===n})});return nt(nt({},t),{},{items:i,itemsMap:g0(i,function(r){return dn(r.path)}),activeItem:e,activeIndex:n})}function xae(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Oo(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else wae(String(c),l,r,Ku.value,o)}(t.toLowerCase(),n),i}function wae(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function jP(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function Cae(t,n,e){var i=t;return tb(e,function(r){i=jP(i,n,r.start,r.end)}),i}function sXe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Ku.key){var c=tr(s),u=Mn(t,c),d=Bn(s),h=pb(c,Object.keys(u),d,jP(d,e,a,l));return{newSelection:E0(t,h),operations:h}}if(o===Ku.value){var f=Mn(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(dn(s)));var p="string"==typeof f?f:String(f),m=dn(s),g=mf(f,n.enforceStringMap,m,r),v=jP(p,e,a,l),y=[{op:"replace",path:dn(s),value:g?v:e0(v,r)}];return{newSelection:E0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function aXe(t,n,e,i,r){for(var o=xae(e,t,1/0),s=[],a=0;an.floating[o]&&(s=Sk(s)),{main:s,cross:Sk(s)}}var qXe={start:"end",end:"start"};function GP(t){return t.replace(/start|end/g,function(n){return qXe[n]})}var YXe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,pe,A,N,F,q,V,ce;return _n().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,b=void 0===(y=u.fallbackAxisSideDirection)?"none":y,D=void 0===(C=u.flipAlignment)||C,E=lZ(u,THe),B=og(r),z=og(a)===a,ve.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return j=ve.sent,U=m||(z||!D?[Sk(a)]:(void 0,Te=Sk(je=a),[GP(je),Te,GP(Te)])),m||"none"===b||U.push.apply(U,ui(function(je,Te,et,We){var st=wk(je),$=function(ae,le,Re){var Ze=["left","right"],Ve=["right","left"];switch(ae){case"top":case"bottom":return Re?le?Ve:Ze:le?Ze:Ve;case"left":case"right":return le?["top","bottom"]:["bottom","top"];default:return[]}}(og(je),"start"===et,We);return st&&($=$.map(function(ae){return ae+"-"+st}),Te&&($=$.concat($.map(GP)))),$}(a,D,b,j))),G=[a].concat(ui(U)),ve.next=29,Bae(n,E);case 29:if(X=ve.sent,oe=[],P=(null==(i=o.flip)?void 0:i.overflows)||[],h&&oe.push(X[B]),p&&(W=WXe(r,s,j),oe.push(X[W.main],X[W.cross])),P=[].concat(ui(P),[{placement:r,overflows:oe}]),oe.every(function(je){return je<=0})){ve.next=48;break}if(N=((null==(pe=o.flip)?void 0:pe.index)||0)+1,!(F=G[N])){ve.next=37;break}return ve.abrupt("return",{data:{index:N,overflows:P},reset:{placement:F}});case 37:if(q=null==(A=P.filter(function(je){return je.overflows[0]<=0}).sort(function(je,Te){return je.overflows[1]-Te.overflows[1]})[0])?void 0:A.placement,q){ve.next=46;break}ve.t0=v,ve.next="bestFit"===ve.t0?42:"initialPlacement"===ve.t0?45:46;break;case 42:return ce=null==(V=P.map(function(je){return[je.placement,je.overflows.filter(function(Te){return Te>0}).reduce(function(Te,et){return Te+et},0)]}).sort(function(je,Te){return je[1]-Te[1]})[0])?void 0:V[0],ce&&(q=ce),ve.abrupt("break",46);case 45:q=a;case 46:if(r===q){ve.next=48;break}return ve.abrupt("return",{reset:{placement:q}});case 48:return ve.abrupt("return",{});case 49:case"end":return ve.stop()}var je,Te},e)}))()}}},XXe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o;return _n().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=or(_n().mark(function l(c,u){var d,h,f,p,m,g,v,y,b,C,D,E,B,z;return _n().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return d=c.placement,h=c.platform,f=c.elements,j.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=j.sent,m=og(d),g=wk(d),v="x"===Ck(d),y=["left","top"].includes(m)?-1:1,b=p&&v?-1:1,C="function"==typeof u?u(c):u,D="number"==typeof C?{mainAxis:C,crossAxis:0,alignmentAxis:null}:nt({mainAxis:0,crossAxis:0,alignmentAxis:null},C),E=D.mainAxis,B=D.crossAxis,z=D.alignmentAxis,j.abrupt("return",(g&&"number"==typeof z&&(B="end"===g?-1*z:z),v?{x:B*b,y:E*y}:{x:E*y,y:B*b}));case 14:case"end":return j.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function JXe(t){return"x"===t?"y":"x"}var KXe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,B;return _n().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(j){return{x:j.x,y:j.y}}}:h,p=lZ(a,EHe),m={x:r,y:o},z.next=14,Bae(n,p);case 14:return g=z.sent,v=Ck(og(s)),y=JXe(v),b=m[v],C=m[y],c&&(b=$ae(b+g["y"===v?"top":"left"],b,b-g["y"===v?"bottom":"right"])),d&&(C=$ae(C+g["y"===y?"top":"left"],C,C-g["y"===y?"bottom":"right"])),B=f.fn(nt(nt({},n),{},(ec(i={},v,b),ec(i,y,C),i))),z.abrupt("return",nt(nt({},B),{},{data:{x:B.x-r,y:B.y-o}}));case 22:case"end":return z.stop()}},e)}))()}}};function Nc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function uh(t){return Nc(t).getComputedStyle(t)}var WP,Vae=Math.min,gb=Math.max,kk=Math.round;function Hae(t){var n=uh(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=kk(e)!==r||kk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function wp(t){return zae(t)?(t.nodeName||"").toLowerCase():""}function Uae(){if(WP)return WP;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?WP=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function dh(t){return t instanceof Nc(t).HTMLElement}function sd(t){return t instanceof Nc(t).Element}function zae(t){return t instanceof Nc(t).Node}function Gae(t){return typeof ShadowRoot<"u"&&(t instanceof Nc(t).ShadowRoot||t instanceof ShadowRoot)}function Dk(t){var n=uh(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function QXe(t){return["table","td","th"].includes(wp(t))}function qP(t){var n=/firefox/i.test(Uae()),e=uh(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function YP(){return/^((?!chrome|android).)*safari/i.test(Uae())}function XP(t){return["html","body","#document"].includes(wp(t))}function Wae(t){return sd(t)?t:t.contextElement}var qae={x:1,y:1};function R0(t){var n=Wae(t);if(!dh(n))return qae;var e=n.getBoundingClientRect(),i=Hae(n),r=i.width,o=i.height,s=i.fallback,a=(s?kk(e.width):e.width)/r,l=(s?kk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function sg(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Wae(t),l=qae;n&&(i?sd(i)&&(l=R0(i)):l=R0(t));var c=a?Nc(a):window,u=YP()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=Nc(a),g=i&&sd(i)?Nc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=R0(v),b=v.getBoundingClientRect(),C=getComputedStyle(v);b.x+=(v.clientLeft+parseFloat(C.paddingLeft))*y.x,b.y+=(v.clientTop+parseFloat(C.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=b.x,h+=b.y,v=Nc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function Cp(t){return((zae(t)?t.ownerDocument:t.document)||window.document).documentElement}function Tk(t){return sd(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yae(t){return sg(Cp(t)).left+Tk(t).scrollLeft}function vb(t){if("html"===wp(t))return t;var n=t.assignedSlot||t.parentNode||Gae(t)&&t.host||Cp(t);return Gae(n)?n.host:n}function Xae(t){var n=vb(t);return XP(n)?n.ownerDocument.body:dh(n)&&Dk(n)?n:Xae(n)}function yb(t,n){var e;void 0===n&&(n=[]);var i=Xae(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Nc(i);return r?n.concat(o,o.visualViewport||[],Dk(i)?i:[]):n.concat(i,yb(i))}function Jae(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=Nc(l),d=Cp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=YP();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=Cp(t),c=Cp(l),u=Tk(l),h=gb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=gb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Yae(l),m=-u.scrollTop,"rtl"===uh(d).direction&&(p+=gb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(sd(n))i=function(l,c){var u=sg(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=dh(l)?R0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=nt({},n);if(YP()){var o,s,a=Nc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return UP(i)}function Kae(t,n){return dh(t)&&"fixed"!==uh(t).position?n?n(t):t.offsetParent:null}function Qae(t,n){for(var e=Nc(t),i=Kae(t,n);i&&QXe(i)&&"static"===uh(i).position;)i=Kae(i,n);return i&&("html"===wp(i)||"body"===wp(i)&&"static"===uh(i).position&&!qP(i))?e:i||function(r){for(var o=vb(r);dh(o)&&!XP(o);){if(qP(o))return o;o=vb(o)}return null}(t)||e}function ZXe(t,n,e){var i=dh(n),r=Cp(n),o=sg(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==wp(n)||Dk(r))&&(s=Tk(n)),dh(n)){var l=sg(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Yae(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var eJe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=yb(c).filter(function(y){return sd(y)&&"body"!==wp(y)}),f=null,p="fixed"===uh(c).position,m=p?vb(c):c;sd(m)&&!XP(m);){var g=uh(m),v=qP(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=vb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(ui(o),[i]),l=s.reduce(function(c,u){var d=Jae(n,u,r);return c.top=gb(d.top,c.top),c.right=Vae(d.right,c.right),c.bottom=Vae(d.bottom,c.bottom),c.left=gb(d.left,c.left),c},Jae(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=dh(e),o=Cp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==wp(e)||Dk(o))&&(s=Tk(e)),dh(e))){var c=sg(e);a=R0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:sd,getDimensions:function(t){return dh(t)?Hae(t):t.getBoundingClientRect()},getOffsetParent:Qae,getDocumentElement:Cp,getScale:R0,getElementRects:function(t){var n=this;return or(_n().mark(function e(){var i,r,o,s,a;return _n().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Qae,a=n.getDimensions,l.t0=ZXe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=nt,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===uh(t).direction}};function iJe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==wn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function rJe(t){return JP.apply(this,arguments)}function JP(){return JP=or(_n().mark(function t(n){var e,i,r,o,s;return _n().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==wn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),JP.apply(this,arguments)}function oJe(t){_i(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function sJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("path"),"fill","currentColor"),R(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),R(n,"width","100%"),R(n,"height","100%"),R(n,"viewBox","0 0 20 20"),R(n,"focusable","false"),R(n,"aria-hidden","true"),R(n,"class","svelte-qbd276")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var aJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,sJe,_s,{},oJe),r}return Ie(e)}();function lJe(t){_i(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function cJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("path"),"fill","currentColor"),R(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),R(n,"width","100%"),R(n,"height","100%"),R(n,"viewBox","-2 -2 50 50"),R(n,"focusable","false"),R(n,"aria-hidden","true"),R(n,"role","presentation"),R(n,"class","svelte-whdbu1")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var Ek=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,cJe,_s,{},lJe),r}return Ie(e)}();function uJe(t){_i(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function dJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("circle"),"class","circle_path svelte-1p3nqvd"),R(e,"cx","50"),R(e,"cy","50"),R(e,"r","20"),R(e,"fill","none"),R(e,"stroke","currentColor"),R(e,"stroke-width","5"),R(e,"stroke-miterlimit","10"),R(n,"class","loading svelte-1p3nqvd"),R(n,"viewBox","25 25 50 50")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var hJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,dJe,_s,{},uJe),r}return Ie(e)}();function fJe(t){_i(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var pJe=function(t){return{value:8&t[0]}},Zae=function(t){return{value:t[3]}},mJe=function(t){return{listOpen:64&t[0]}},ele=function(t){return{listOpen:t[6]}},gJe=function(t){return{}},tle=function(t){return{}},vJe=function(t){return{}},nle=function(t){return{}},yJe=function(t){return{selection:8&t[0]}},ile=function(t){return{selection:t[3]}};function rle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var _Je=function(t){return{}},ole=function(t){return{}},bJe=function(t){return{selection:8&t[0]}},sle=function(t){return{selection:t[127],index:t[129]}},xJe=function(t){return{}},ale=function(t){return{}},wJe=function(t){return{}},lle=function(t){return{}};function cle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var CJe=function(t){return{item:16777216&t[0]}},ule=function(t){return{item:t[127],index:t[129]}},SJe=function(t){return{filteredItems:16777216&t[0]}},dle=function(t){return{filteredItems:t[24]}};function hle(t){var n,e,i,r,o,s,a=[TJe,DJe,kJe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=De("div"),i&&i.c(),R(n,"class","svelte-select-list svelte-tyxmms"),Nt(n,"prefloat",t[28])},m:function(u,d){$e(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[Ea(t[49].call(null,n)),Rt(n,"scroll",t[41]),Rt(n,"pointerdown",rf(t[50])),Rt(n,"pointerup",sf(rf(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&(Ht(),fe(l[h],1,1,function(){l[h]=null}),Ut()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),Q(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&Nt(n,"prefloat",u[28])},i:function(u){r||(Q(i),r=!0)},o:function(u){fe(i),r=!1},d:function(u){u&&Be(n),~e&&l[e].d(),t[91](null),o=!1,po(s)}}}function kJe(t){var n,e,i=t[83].empty,r=Ms(i,t,t[82],lle),o=r||{c:function(){(e=De("div")).textContent="No options",R(e,"class","empty svelte-tyxmms")},m:function(s,a){$e(s,e,a)},p:Bt,d:function(s){s&&Be(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Is(r,i,s,s[82],n?Os(i,s[82],a,wJe):Ns(s[82]),lle)},i:function(s){n||(Q(o,s),n=!0)},o:function(s){fe(o,s),n=!1},d:function(s){o&&o.d(s)}}}function DJe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(tt,ii)}:In,vi=n.debounceWait,gi=void 0===vi?300:vi,Mr=n.hideEmptyState,to=void 0!==Mr&&Mr,xi=n.inputAttributes,Sr=void 0===xi?{}:xi,Fe=n.listAutoWidth,At=void 0===Fe||Fe,Gt=n.showChevron,ln=void 0!==Gt&&Gt,mn=n.listOffset,ci=void 0===mn?5:mn,$i=n.hoverItemIndex,zn=void 0===$i?0:$i,ai=n.floatingConfig,ni=void 0===ai?{}:ai,kr=n.class,Fr=void 0===kr?"":kr;function jo(tt){var ii=[],sr={};tt.forEach(function(Td){var Hr=Er(Td);ii.includes(Hr)||(ii.push(Hr),sr[Hr]=[],Hr&&sr[Hr].push(Object.assign(Ks(Hr,Td),{id:Hr,groupHeader:!0,selectable:Xr}))),sr[Hr].push(Object.assign({groupItem:!!Hr},Td))});var Zs=[];return wr(ii).forEach(function(Td){sr[Td]&&Zs.push.apply(Zs,ui(sr[Td]))}),Zs}function ba(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ii=arguments.length>1?arguments[1]:void 0;e(7,zn=tt<0?0:tt),!ii&&Er&&c[zn]&&!c[zn].selectable&&Do(1)}function bd(){var tt=!0;if($){var ii=[],sr=[];$.forEach(function(Zs){ii.includes(Zs[Rn])?tt=!1:(ii.push(Zs[Rn]),sr.push(Zs))}),tt||e(3,$=sr)}return tt}function bu(tt){var ii=tt?tt[Rn]:$[Rn];return yn.find(function(sr){return sr[Rn]===ii})}function xa(tt){return Bl.apply(this,arguments)}function Bl(){return(Bl=or(_n().mark(function tt(ii){var sr;return _n().wrap(function(Zs){for(;;)switch(Zs.prev=Zs.next){case 0:sr=$[ii],e(3,$=1===$.length?void 0:$.filter(function(Td){return Td!==sr})),B("clear",sr);case 3:case"end":return Zs.stop()}},tt)}))).apply(this,arguments)}function xd(tt){var ii;We&&F===(null===(ii=document)||void 0===ii?void 0:ii.activeElement)||(tt&&B("focus",tt),F.focus(),e(2,We=!0))}function Rs(tt){return wd.apply(this,arguments)}function wd(){return(wd=or(_n().mark(function tt(ii){return _n().wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:if(!yi&&!hx){sr.next=2;break}return sr.abrupt("return");case 2:(Ye||We)&&(B("blur",ii),Cd(),e(2,We=!1),e(26,f=void 0),F.blur());case 3:case"end":return sr.stop()}},tt)}))).apply(this,arguments)}function Cd(){e(4,le=""),e(6,Ye=!1)}y=or(_n().mark(function tt(){return _n().wrap(function(ii){for(;;)switch(ii.prev=ii.next){case 0:e(78,p=$),e(79,m=le),e(80,g=V);case 3:case"end":return ii.stop()}},tt)})),Xv().$$.before_update.push(y),eu(function(){Ye&&e(2,We=!0),We&&F&&F.focus()});var cn,TT=n.ariaValues,Me=void 0===TT?function(tt){return"Option ".concat(tt,", selected.")}:TT,ct=n.ariaListOpen,Ft=void 0===ct?function(tt,ii){return"You are currently focused on option ".concat(tt,". There are ").concat(ii," results available.")}:ct,en=n.ariaFocused,an=void 0===en?function(){return"Select is focused, type to refine list, press down to open the menu."}:en,Gn=null;function hi(){clearTimeout(cn),cn=setTimeout(function(){yi=!1},100)}qu(function(){var tt;null===(tt=Gn)||void 0===tt||tt.remove()});var yi=!1;function Lo(tt){tt&&!1!==tt.selectable&&function(ii){if(ii){e(4,le="");var sr=Object.assign({},ii);if(sr.groupHeader&&!sr.selectable)return;e(3,$=V?$?$.concat([sr]):[sr]:e(3,$=sr)),setTimeout(function(){Jr&&Cd(),e(26,f=void 0),B("change",$),B("select",ii)})}}(tt)}function js(tt){yi||e(7,zn=tt)}function Zo(tt){var Zs,ii=tt.item,sr=tt.i;if(!1!==ii?.selectable){if($&&!V&&$[Rn]===ii[Rn])return Cd();((Zs=ii).groupHeader&&Zs.selectable||Zs.selectable||!Zs.hasOwnProperty("selectable"))&&(e(7,zn=sr),Lo(ii)),hx=!1}}function Do(tt){if(0===c.filter(function(sr){return!Object.hasOwn(sr,"selectable")||!0===sr.selectable}).length)return e(7,zn=0);e(7,tt>0&&zn===c.length-1?zn=0:tt<0&&0===zn?zn=c.length-1:zn+=tt);var ii=c[zn];ii&&!1===ii.selectable&&(1!==tt&&-1!==tt||Do(tt))}var $l=Sd,Sh=Sd;function Sd(tt){return{update:function(ii){ii.scroll&&(hi(),tt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Pr={strategy:"absolute",placement:"bottom-start",middleware:[XXe(ci),YXe(),KXe()],autoUpdate:!1},lc=Jn(function nJe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return nt(nt(nt({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=nt({platform:eJe},d),p=nt(nt({},f.platform),{},{_c:h}),VXe(c,u,nt(nt({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){qu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function tJe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(ui(sd(t)?yb(t):t.contextElement?yb(t.contextElement):[]),ui(yb(n))):[];p.forEach(function(b){f&&b.addEventListener("scroll",e,{passive:!0}),l&&b.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),sd(t)&&!h&&g.observe(t),sd(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?sg(t):null;return h&&function b(){var C=sg(t);!y||C.x===y.x&&C.y===y.y&&C.width===y.width&&C.height===y.height||e(),y=C,m=requestAnimationFrame(b)}(),e(),function(){var b;p.forEach(function(C){f&&C.removeEventListener("scroll",e),l&&C.removeEventListener("resize",e)}),null==(b=g)||b.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Pr),3),xu=lc[0],kd=lc[1],kh=lc[2],Dd=!0,hx=!1;return t.$$set=function(tt){"justValue"in tt&&e(53,j=tt.justValue),"filter"in tt&&e(54,G=tt.filter),"getItems"in tt&&e(55,oe=tt.getItems),"id"in tt&&e(56,W=tt.id),"name"in tt&&e(8,H=tt.name),"container"in tt&&e(0,A=tt.container),"input"in tt&&e(1,F=tt.input),"multiple"in tt&&e(9,V=tt.multiple),"multiFullItemClearable"in tt&&e(10,ve=tt.multiFullItemClearable),"disabled"in tt&&e(11,Te=tt.disabled),"focused"in tt&&e(2,We=tt.focused),"value"in tt&&e(3,$=tt.value),"filterText"in tt&&e(4,le=tt.filterText),"placeholder"in tt&&e(57,Ze=tt.placeholder),"placeholderAlwaysShow"in tt&&e(58,Ct=tt.placeholderAlwaysShow),"items"in tt&&e(52,yn=tt.items),"label"in tt&&e(12,on=tt.label),"itemFilter"in tt&&e(59,hn=tt.itemFilter),"groupBy"in tt&&e(60,Er=tt.groupBy),"groupFilter"in tt&&e(61,wr=tt.groupFilter),"groupHeaderSelectable"in tt&&e(62,Xr=tt.groupHeaderSelectable),"itemId"in tt&&e(13,Rn=tt.itemId),"loadOptions"in tt&&e(63,pi=tt.loadOptions),"containerStyles"in tt&&e(14,Ar=tt.containerStyles),"hasError"in tt&&e(15,Qo=tt.hasError),"filterSelectedItems"in tt&&e(64,jn=tt.filterSelectedItems),"required"in tt&&e(16,ki=tt.required),"closeListOnChange"in tt&&e(65,Jr=tt.closeListOnChange),"createGroupHeaderItem"in tt&&e(66,Ks=tt.createGroupHeaderItem),"searchable"in tt&&e(17,Qs=tt.searchable),"inputStyles"in tt&&e(18,el=tt.inputStyles),"clearable"in tt&&e(68,Ee=tt.clearable),"loading"in tt&&e(5,Ke=tt.loading),"listOpen"in tt&&e(6,Ye=tt.listOpen),"debounce"in tt&&e(69,li=tt.debounce),"debounceWait"in tt&&e(70,gi=tt.debounceWait),"hideEmptyState"in tt&&e(19,to=tt.hideEmptyState),"inputAttributes"in tt&&e(71,Sr=tt.inputAttributes),"listAutoWidth"in tt&&e(72,At=tt.listAutoWidth),"showChevron"in tt&&e(20,ln=tt.showChevron),"listOffset"in tt&&e(73,ci=tt.listOffset),"hoverItemIndex"in tt&&e(7,zn=tt.hoverItemIndex),"floatingConfig"in tt&&e(74,ni=tt.floatingConfig),"class"in tt&&e(21,Fr=tt.class),"ariaValues"in tt&&e(75,Me=tt.ariaValues),"ariaListOpen"in tt&&e(76,Ft=tt.ariaListOpen),"ariaFocused"in tt&&e(77,an=tt.ariaFocused),"$$scope"in tt&&e(82,D=tt.$$scope)},t.$$.update=function(){var tt,ii,sr,Zs,Td,Hr;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&$&&function(){if("string"==typeof $){var Hr,ea=(yn||[]).find(function(wu){return wu[Rn]===$});e(3,$=ea||(ec(Hr={},Rn,$),ec(Hr,"label",$),Hr))}else V&&Array.isArray($)&&$.length>0&&e(3,$=$.map(function(wu){return"string"==typeof wu?{value:wu,label:wu}:wu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!Sr&&Qs||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},Sr)),W&&e(27,v.id=W,v),Qs||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&$&&(Array.isArray($)?e(3,$=ui($)):e(3,$=[$])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&$&&e(3,$=null),520&t.$$.dirty[0]&&V&&$&&$.length>1&&bd(),8&t.$$.dirty[0]&&$&&(V?JSON.stringify($)!==JSON.stringify(p)&&bd()&&B("input",$):p&&JSON.stringify($[Rn])===JSON.stringify(p[Rn])||B("input",$)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!$&&V&&p&&B("input",$),6&t.$$.dirty[0]&&!We&&F&&Cd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&le!==m&&(pi||0!==le.length)&&(pi?li(or(_n().mark(function Hr(){var ea;return _n().wrap(function(wu){for(;;)switch(wu.prev=wu.next){case 0:return e(5,Ke=!0),wu.next=3,oe({dispatch:B,loadOptions:pi,convertStringItemsToObjects:wle,filterText:le});case 3:(ea=wu.sent)?(e(5,Ke=ea.loading),e(6,Ye=Ye?ea.listOpen:le.length>0),e(2,We=Ye&&ea.focused),e(52,yn=Er?jo(ea.filteredItems):ea.filteredItems)):(e(5,Ke=!1),e(2,We=!0),e(6,Ye=!0));case 5:case"end":return wu.stop()}},Hr)})),gi):(e(6,Ye=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=G({loadOptions:pi,filterText:le,items:yn,multiple:V,value:$,itemId:Rn,groupBy:Er,label:on,filterSelectedItems:jn,itemFilter:hn,convertStringItemsToObjects:wle,filterGroupedItems:jo})),16777800&t.$$.dirty[0]&&!V&&Ye&&$&&c&&(tt=c.findIndex(function(Hr){return Hr[Rn]===$[Rn]}),ba(tt,!0)),576&t.$$.dirty[0]&&Ye&&V&&e(7,zn=0),16&t.$$.dirty[0]&&le&&e(7,zn=0),128&t.$$.dirty[0]&&B("hoverItem",zn),520&t.$$.dirty[0]&&e(25,i=V?$&&$.length>0:$),33554448&t.$$.dirty[0]&&e(35,r=i&&le.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&Ee&&!Te&&!Ke),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=Ct&&V||V&&0===(null===(ii=$)||void 0===ii?void 0:ii.length)?Ze:$?"":Ze),520&t.$$.dirty[0]&&e(32,a=$?(sr=V&&$.length>0?$.map(function(Hr){return Hr[on]}).join(", "):$[on],Me(sr)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var Hr=c[zn];return Ye&&Hr?Ft(Hr[on],c?c.length:0):an()}()),2097152&t.$$.dirty[1]&&(Hr=yn)&&0!==Hr.length&&!Hr.some(function(ea){return"object"!==wn(ea)})&&$&&(V?!$.some(function(ea){return!ea||!ea[Rn]}):$[Rn])&&(Array.isArray($)?e(3,$=$.map(function(ea){return bu(ea)||ea})):e(3,$=bu()||$)),8712&t.$$.dirty[0]&&e(53,j=V?$?$.map(function(Hr){return Hr[Rn]}):null:$&&$[Rn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||$||B("input",$)),16777800&t.$$.dirty[0]&&Ye&&c&&!V&&!$&&ba(),16777216&t.$$.dirty[0]&&function(Hr){Ye&&B("filter",Hr)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&A&&void 0===(null===(Zs=ni)||void 0===Zs?void 0:Zs.autoUpdate)&&e(81,Pr.autoUpdate=!0,Pr),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&A&&ni&&kh(Object.assign(Pr,ni)),8388608&t.$$.dirty[0]&&e(30,u=!!Gn),8388672&t.$$.dirty[0]&&function(Hr,ea){if(!Hr||!ea)return e(28,Dd=!0);setTimeout(function(){e(28,Dd=!1)},0)}(Gn,Ye),8388673&t.$$.dirty[0]&&Ye&&A&&Gn&&(Td=A.getBoundingClientRect().width,e(23,Gn.style.width=At?Td+"px":"auto",Gn)),128&t.$$.dirty[0]&&e(29,d=zn),70&t.$$.dirty[0]&&F&&Ye&&!We&&xd()},[A,F,We,$,le,Ke,Ye,zn,H,V,ve,Te,on,Rn,Ar,Qo,ki,Qs,el,to,ln,Fr,function(){B("clear",$),e(3,$=void 0),Cd(),xd()},Gn,c,i,f,v,Dd,d,u,l,a,s,o,r,xa,function(tt){if(We)switch(tt.stopPropagation(),tt.key){case"Escape":tt.preventDefault(),Cd();break;case"Enter":if(tt.preventDefault(),Ye){if(0===c.length)break;if($&&!V&&$[Rn]===c[zn][Rn]){Cd();break}Lo(c[zn])}break;case"ArrowDown":tt.preventDefault(),Ye?Do(1):(e(6,Ye=!0),e(26,f=void 0));break;case"ArrowUp":tt.preventDefault(),Ye?Do(-1):(e(6,Ye=!0),e(26,f=void 0));break;case"Tab":if(Ye&&We){if(0===c.length||$&&$[Rn]===c[zn][Rn])return Cd();tt.preventDefault(),Lo(c[zn]),Cd()}break;case"Backspace":if(!V||le.length>0)return;if(V&&$&&$.length>0){if(xa(void 0!==f?f:$.length-1),0===f||void 0===f)break;e(26,f=$.length>f?f-1:void 0)}break;case"ArrowLeft":if(!$||!V||le.length>0)return;void 0===f?e(26,f=$.length-1):$.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!$||!V||le.length>0||void 0===f)return;f===$.length-1?e(26,f=void 0):f<$.length-1&&e(26,f+=1)}},xd,Rs,function(){Te||e(6,Ye=!Ye)},hi,function(tt){var ii;Ye||We||!A||A.contains(tt.target)||null!==(ii=Gn)&&void 0!==ii&&ii.contains(tt.target)||Rs()},js,Zo,function(tt,ii,sr){if(!V)return ii&&ii[sr]===tt[sr]},$l,Sh,xu,kd,function(){hx=!0},E,yn,j,G,oe,W,Ze,Ct,hn,Er,wr,Xr,pi,jn,Jr,Ks,function(){return c},Ee,li,gi,Sr,At,ci,ni,Me,Ft,an,p,m,g,Pr,D,C,function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){return js(tt)},function(tt){return js(tt)},function(tt,ii){return Zo({item:tt,i:ii})},function(tt){Xi[tt?"unshift":"push"](function(){e(23,Gn=tt)})},function(tt){return xa(tt)},function(tt){return ve?xa(tt):{}},function(tt){Xi[tt?"unshift":"push"](function(){e(1,F=tt)})},function(){e(4,le=this.value)},function(tt){Xi[tt?"unshift":"push"](function(){e(0,A=tt)})}]}var ag=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,OJe,MJe,_s,{justValue:53,filter:54,getItems:55,id:56,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:57,placeholderAlwaysShow:58,items:52,label:12,itemFilter:59,groupBy:60,groupFilter:61,groupHeaderSelectable:62,itemId:13,loadOptions:63,containerStyles:14,hasError:15,filterSelectedItems:64,required:16,closeListOnChange:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},fJe,[-1,-1,-1,-1,-1]),r}return Ie(e,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}]),e}();function IJe(t){_i(t,"svelte-1kiph99","table.jse-transform-wizard.svelte-1kiph99.svelte-1kiph99{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-1kiph99 input.svelte-1kiph99{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-1kiph99 tr th.svelte-1kiph99{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99{flex:4;padding:4px 8px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);outline:none;background:var(--jse-input-background);color:inherit}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99:focus{border:var(--jse-input-border-focus)}")}function NJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J,H,pe,A;function N(st){t[16](st)}var F={class:"jse-filter-path",showChevron:!0,items:t[7]};function q(st){t[17](st)}void 0!==t[0]&&(F.value=t[0]),a=new ag({props:F}),Xi.push(function(){return Xu(a,"value",N)});var V={class:"jse-filter-relation",showChevron:!0,items:t[8]};function ce(st){t[19](st)}void 0!==t[1]&&(V.value=t[1]),u=new ag({props:V}),Xi.push(function(){return Xu(u,"value",q)});var ve={class:"jse-sort-path",showChevron:!0,items:t[7]};function je(st){t[20](st)}void 0!==t[3]&&(ve.value=t[3]),C=new ag({props:ve}),Xi.push(function(){return Xu(C,"value",ce)});var Te={class:"jse-sort-direction",showChevron:!0,items:t[9]};function et(st){t[21](st)}void 0!==t[4]&&(Te.value=t[4]),B=new ag({props:Te}),Xi.push(function(){return Xu(B,"value",je)});var We={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:t[6]};return void 0!==t[5]&&(We.value=t[5]),W=new ag({props:We}),Xi.push(function(){return Xu(W,"value",et)}),{c:function(){n=De("table"),e=De("tr"),(i=De("th")).textContent="Filter",r=rt(),o=De("td"),s=De("div"),gt(a.$$.fragment),c=rt(),gt(u.$$.fragment),h=rt(),f=De("input"),p=rt(),m=De("tr"),(g=De("th")).textContent="Sort",v=rt(),y=De("td"),b=De("div"),gt(C.$$.fragment),E=rt(),gt(B.$$.fragment),j=rt(),U=De("tr"),(G=De("th")).textContent="Pick",X=rt(),oe=De("td"),P=De("div"),gt(W.$$.fragment),R(i,"class","svelte-1kiph99"),R(f,"class","jse-filter-value svelte-1kiph99"),R(s,"class","jse-horizontal svelte-1kiph99"),R(g,"class","svelte-1kiph99"),R(b,"class","jse-horizontal svelte-1kiph99"),R(G,"class","svelte-1kiph99"),R(P,"class","jse-horizontal svelte-1kiph99"),R(n,"class","jse-transform-wizard svelte-1kiph99")},m:function(st,$){$e(st,n,$),me(n,e),me(e,i),me(e,r),me(e,o),me(o,s),pt(a,s,null),me(s,c),pt(u,s,null),me(s,h),me(s,f),ip(f,t[2]),me(n,p),me(n,m),me(m,g),me(m,v),me(m,y),me(y,b),pt(C,b,null),me(b,E),pt(B,b,null),me(n,j),me(n,U),me(U,G),me(U,X),me(U,oe),me(oe,P),pt(W,P,null),H=!0,pe||(A=Rt(f,"input",t[18]),pe=!0)},p:function(st,$){var ae=Jn($,1)[0],le={};128&ae&&(le.items=st[7]),!l&&1&ae&&(l=!0,le.value=st[0],Yu(function(){return l=!1})),a.$set(le);var Re={};!d&&2&ae&&(d=!0,Re.value=st[1],Yu(function(){return d=!1})),u.$set(Re),4&ae&&f.value!==st[2]&&ip(f,st[2]);var Ze={};128&ae&&(Ze.items=st[7]),!D&&8&ae&&(D=!0,Ze.value=st[3],Yu(function(){return D=!1})),C.$set(Ze);var Ve={};!z&&16&ae&&(z=!0,Ve.value=st[4],Yu(function(){return z=!1})),B.$set(Ve);var Ct={};64&ae&&(Ct.items=st[6]),!J&&32&ae&&(J=!0,Ct.value=st[5],Yu(function(){return J=!1})),W.$set(Ct)},i:function(st){H||(Q(a.$$.fragment,st),Q(u.$$.fragment,st),Q(C.$$.fragment,st),Q(B.$$.fragment,st),Q(W.$$.fragment,st),H=!0)},o:function(st){fe(a.$$.fragment,st),fe(u.$$.fragment,st),fe(C.$$.fragment,st),fe(B.$$.fragment,st),fe(W.$$.fragment,st),H=!1},d:function(st){st&&Be(n),mt(a),mt(u),mt(C),mt(B),mt(W),pe=!1,A()}}}function FJe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=Ma("jsoneditor:TransformWizard"),C=n.json,D=n.queryOptions,E=void 0===D?{}:D,B=n.onChange,z=["==","!=","<","<=",">",">="].map(function(W){return{value:W,label:W}}),j=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],U=null!==(i=E)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?sb(E.filter.path):null,G=null!==(o=E)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?z.find(function(W){var J;return W.value===(null===(J=E.filter)||void 0===J?void 0:J.relation)}):null,X=(null===(a=E)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",oe=null!==(c=E)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?sb(E.sort.path):null,P=null!==(d=E)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?j.find(function(W){var J;return W.value===(null===(J=E.sort)||void 0===J?void 0:J.direction)}):null;return t.$$set=function(W){"json"in W&&e(11,C=W.json),"queryOptions"in W&&e(10,E=W.queryOptions),"onChange"in W&&e(12,B=W.onChange)},t.$$.update=function(){var W,J,H,pe,A,N,F,q,V,ce,ve,je,Te,et,We,st,$,ae,le,Re,Ze;2048&t.$$.dirty&&e(15,f=Array.isArray(C)),34816&t.$$.dirty&&e(14,p=f?pP(C):[]),34816&t.$$.dirty&&e(13,m=f?pP(C,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(sb)),8192&t.$$.dirty&&e(6,v=m?m.map(sb):[]),1088&t.$$.dirty&&e(5,y=null!==(W=E)&&void 0!==W&&null!==(J=W.projection)&&void 0!==J&&J.paths&&v?E.projection.paths.map(function(le){return v.find(function(Re){return dr(Re.value,le)})}).filter(function(le){return!!le}):null),1&t.$$.dirty&&(pe=(null===(H=U)||void 0===H?void 0:H.value)||null,dr(null===(A=E)||void 0===A||null===(N=A.filter)||void 0===N?void 0:N.path,pe)||(b("changeFilterPath",pe),e(10,E=Qu(E,["filter","path"],pe,!0)),B(E))),2&t.$$.dirty&&(q=(null===(F=G)||void 0===F?void 0:F.value)||null,dr(null===(V=E)||void 0===V||null===(ce=V.filter)||void 0===ce?void 0:ce.relation,q)||(b("changeFilterRelation",q),e(10,E=Qu(E,["filter","relation"],q,!0)),B(E))),4&t.$$.dirty&&(dr(null===(je=E)||void 0===je||null===(Te=je.filter)||void 0===Te?void 0:Te.value,ve=X||null)||(b("changeFilterValue",ve),e(10,E=Qu(E,["filter","value"],ve,!0)),B(E))),8&t.$$.dirty&&(le=(null===(et=oe)||void 0===et?void 0:et.value)||null,dr(null===(Re=E)||void 0===Re||null===(Ze=Re.sort)||void 0===Ze?void 0:Ze.path,le)||(b("changeSortPath",le),e(10,E=Qu(E,["sort","path"],le,!0)),B(E))),16&t.$$.dirty&&(st=(null===(We=P)||void 0===We?void 0:We.value)||null,dr(null===($=E)||void 0===$||null===(ae=$.sort)||void 0===ae?void 0:ae.direction,st)||(b("changeSortDirection",st),e(10,E=Qu(E,["sort","direction"],st,!0)),B(E))),32&t.$$.dirty&&function(le){var Re,Ze;dr(null===(Re=E)||void 0===Re||null===(Ze=Re.projection)||void 0===Ze?void 0:Ze.paths,le)||(b("changeProjectionPaths",le),e(10,E=Qu(E,["projection","paths"],le,!0)),B(E))}(y?y.map(function(le){return le.value}):null)},[U,G,X,oe,P,y,v,g,z,j,E,C,B,m,p,f,function(W){e(0,U=W)},function(W){e(1,G=W)},function(){e(2,X=this.value)},function(W){e(3,oe=W)},function(W){e(4,P=W)},function(W){e(5,y=W),e(10,E),e(6,v),e(13,m),e(15,f),e(11,C)}]}var PJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,FJe,NJe,Pi,{json:11,queryOptions:10,onChange:12},IJe),r}return Ie(e)}();function RJe(t){_i(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function Cle(t,n,e){var i=t.slice();return i[5]=n[e],i}function jJe(t){var n,e;return n=new hr({props:{data:cb}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function LJe(t){var n,e;return n=new hr({props:{data:lb}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Sle(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[LJe,jJe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=De("button"),i.c(),r=rt(),o=sn(d),s=rt(),R(n,"type","button"),R(n,"class","jse-query-language svelte-19cxesy"),R(n,"title",a="Select ".concat(t[5].name," as query language")),Nt(n,"selected",t[5].id===t[0])},m:function(g,v){$e(g,n,v),f[e].m(n,null),me(n,r),me(n,o),me(n,s),l=!0,c||(u=Rt(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):(Ht(),fe(f[y],1,1,function(){f[y]=null}),Ut(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),Q(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&ti(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&R(n,"title",a),(!l||3&v)&&Nt(n,"selected",t[5].id===t[0])},i:function(g){l||(Q(i),l=!0)},o:function(g){fe(i),l=!1},d:function(g){g&&Be(n),f[e].d(),c=!1,u()}}}function BJe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&kle(t);return s=new hr({props:{data:P0}}),{c:function(){n=De("div"),(e=De("div")).textContent="Transform",i=rt(),u&&u.c(),r=rt(),o=De("button"),gt(s.$$.fragment),R(e,"class","jse-title svelte-d01h2s"),R(o,"type","button"),R(o,"class","jse-close svelte-d01h2s"),R(n,"class","jse-header svelte-d01h2s")},m:function(d,h){$e(d,n,h),me(n,e),me(n,i),u&&u.m(n,null),me(n,r),me(n,o),pt(s,o,null),a=!0,l||(c=Rt(o,"click",t[2]),l=!0)},p:function(d,h){var f=Jn(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&Q(u,1)):((u=kle(d)).c(),Q(u,1),u.m(n,r)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut())},i:function(d){a||(Q(u),Q(s.$$.fragment,d),a=!0)},o:function(d){fe(u),fe(s.$$.fragment,d),a=!1},d:function(d){d&&Be(n),u&&u.d(),mt(s),l=!1,c()}}}function zJe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=Aa("simple-modal").close,c=Aa("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(VJe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Xi[h?"unshift":"push"](function(){e(1,i=h)})}]}var GJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,zJe,UJe,Pi,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},HJe),r}return Ie(e)}(),KP=Ma("jsoneditor:AutoScrollHandler"),WJe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},Dle=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||WJe,s=y.a11y||!1,wn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),wn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,wn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},Ak=Ma("jsoneditor:History");function Tle(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){Ak("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){Ak("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,Ak("undo",h),a(),h}},redo:function d(){if(o())return Ak("redo",e[i-=1]),a(),e[i]}}}function j0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var L0=Ma("validation");function Ele(t,n,e,i){return L0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function qJe(t,n,e,i){if(L0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Jd.info}]};if(0===t.length)return null;try{var r=j0(function(){return e.parse(t)},function(l){return L0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:j0(function(){return i.parse(t)},function(l){return L0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=j0(function(){return n(o)},function(l){return L0("validate: validated json in ".concat(l," ms"))});return Ji(s)?null:{validationErrors:s}}catch(l){var a=j0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Kd(c)),!0}catch{return!1}}(t,e)},function(c){return L0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:lk(t,l.message||l.toString()),isRepairable:a}}}var Mk=Ma("jsoneditor:FocusTracker");function QP(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(Mk("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){Mk("blur"),l=!1,a()}))}(0,t.onMount)(function(){Mk("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){Mk("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function YJe(t){_i(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function Ale(t,n,e){var i=t.slice();return i[8]=n[e],i}function Mle(t){var n,e;return n=new hr({props:{data:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Ole(t){var n,e;return n=new hr({props:{data:t[8].icon}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Ile(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&Ole(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=De("button"),d&&d.c(),e=rt(),i=sn(u),r=rt(),R(n,"type","button"),R(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),R(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){$e(p,n,m),d&&d.m(n,null),me(n,e),me(n,i),me(n,r),a=!0,l||(c=[Rt(n,"click",h),Rt(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&Q(d,1)):((d=Ole(t)).c(),Q(d,1),d.m(n,e)):d&&(Ht(),fe(d,1,1,function(){d=null}),Ut()),(!a||8&m)&&u!==(u=t[8].text+"")&&ti(i,u),(!a||8&m&&o!==(o=t[8].title))&&R(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(Q(d),a=!0)},o:function(p){fe(d),a=!1},d:function(p){p&&Be(n),d&&d.d(),l=!1,po(c)}}}function XJe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&Mle(t),f=t[3],p=[],m=0;m100&&jle(t);return{c:function(){n=De("table"),e=De("tbody");for(var u=0;u100?c?c.p(u,d):((c=jle(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&Ple(t);function y(){return t[6](t[7])}return{c:function(){n=De("tr"),e=De("td"),gt(i.$$.fragment),r=rt(),o=De("td"),s=sn(m),a=rt(),l=De("td"),c=sn(g),u=rt(),d=De("td"),v&&v.c(),R(e,"class","jse-validation-error-icon svelte-1oe8e8r"),R(o,"class","svelte-1oe8e8r"),R(l,"class","svelte-1oe8e8r"),R(d,"class","jse-validation-error-action svelte-1oe8e8r"),R(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(b,C){$e(b,n,C),me(n,e),pt(i,e,null),me(n,r),me(n,o),me(o,s),me(n,a),me(n,l),me(l,c),me(n,u),me(n,d),v&&v.m(d,null),h=!0,f||(p=Rt(n,"click",y),f=!0)},p:function(b,C){t=b,(!h||1&C)&&m!==(m=cu(rc(t[7].path))+"")&&ti(s,m),(!h||1&C)&&g!==(g=t[7].message+"")&&ti(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,C),1&C&&Q(v,1)):((v=Ple(t)).c(),Q(v,1),v.m(d,null)):v&&(Ht(),fe(v,1,1,function(){v=null}),Ut())},i:function(b){h||(Q(i.$$.fragment,b),Q(v),h=!0)},o:function(b){fe(i.$$.fragment,b),fe(v),h=!1},d:function(b){b&&Be(n),mt(i),v&&v.d(),f=!1,p()}}}function jle(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=De("tr"),e=De("td"),i=rt(),r=De("td"),o=rt(),s=De("td"),a=sn("(and "),l=sn(h),c=sn(" more errors)"),u=rt(),d=De("td"),R(e,"class","svelte-1oe8e8r"),R(r,"class","svelte-1oe8e8r"),R(s,"class","svelte-1oe8e8r"),R(d,"class","svelte-1oe8e8r"),R(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){$e(f,n,p),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),me(s,a),me(s,l),me(s,c),me(n,u),me(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&ti(l,h)},d:function(f){f&&Be(n)}}}function eKe(t){var n,e,i=!Ji(t[0]),r=i&&Fle(t);return{c:function(){r&&r.c(),n=Dr()},m:function(o,s){r&&r.m(o,s),$e(o,n,s),e=!0},p:function(o,s){var a=Jn(s,1)[0];1&a&&(i=!Ji(o[0])),i?r?(r.p(o,a),1&a&&Q(r,1)):((r=Fle(o)).c(),Q(r,1),r.m(n.parentNode,n)):r&&(Ht(),fe(r,1,1,function(){r=null}),Ut())},i:function(o){e||(Q(r),e=!0)},o:function(o){fe(r),e=!1},d:function(o){r&&r.d(o),o&&Be(n)}}}function tKe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var ZP=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,tKe,eKe,Pi,{validationErrors:0,selectError:1},KJe),r}return Ie(e)}(),nKe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function iKe(t){_i(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function rKe(t){var n,e,i,r,o,s,a,l,c;return s=new hr({props:{data:P0}}),{c:function(){n=De("div"),e=De("div"),i=sn(t[0]),r=rt(),o=De("button"),gt(s.$$.fragment),R(e,"class","jse-title svelte-d01h2s"),R(o,"type","button"),R(o,"class","jse-close svelte-d01h2s"),R(n,"class","jse-header svelte-d01h2s")},m:function(u,d){$e(u,n,d),me(n,e),me(e,i),me(n,r),me(n,o),pt(s,o,null),a=!0,l||(c=Rt(o,"click",t[3]),l=!0)},p:function(u,d){var h=Jn(d,1)[0];(!a||1&h)&&ti(i,u[0])},i:function(u){a||(Q(s.$$.fragment,u),a=!0)},o:function(u){fe(s.$$.fragment,u),a=!1},d:function(u){u&&Be(n),mt(s),l=!1,c()}}}function oKe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=Aa("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var e4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,oKe,rKe,Pi,{title:0,onClose:1},iKe),r}return Ie(e)}();function sKe(t){_i(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function aKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z;return e=new e4({props:{title:"Copying and pasting"}}),{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),(o=De("div")).textContent="These actions are unavailable via the menu. Please use:",s=rt(),a=De("div"),l=De("div"),(c=De("div")).textContent="".concat(t[1],"+C"),u=sn("\n for copy"),d=rt(),h=De("div"),(f=De("div")).textContent="".concat(t[1],"+X"),p=sn("\n for cut"),m=rt(),g=De("div"),(v=De("div")).textContent="".concat(t[1],"+V"),y=sn("\n for paste"),b=rt(),C=De("div"),(D=De("button")).textContent="Close",R(c,"class","jse-key svelte-1olothd"),R(l,"class","jse-shortcut"),R(f,"class","jse-key svelte-1olothd"),R(h,"class","jse-shortcut"),R(v,"class","jse-key svelte-1olothd"),R(g,"class","jse-shortcut"),R(a,"class","jse-shortcuts svelte-1olothd"),R(D,"type","button"),R(D,"class","jse-primary svelte-1olothd"),R(C,"class","jse-actions svelte-1olothd"),R(r,"class","jse-modal-contents svelte-1olothd"),R(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(j,U){$e(j,n,U),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(r,s),me(r,a),me(a,l),me(l,c),me(l,u),me(a,d),me(a,h),me(h,f),me(h,p),me(a,m),me(a,g),me(g,v),me(g,y),me(r,b),me(r,C),me(C,D),E=!0,B||(z=Rt(D,"click",t[0]),B=!0)},p:Bt,i:function(j){E||(Q(e.$$.fragment,j),E=!0)},o:function(j){fe(e.$$.fragment,j),E=!1},d:function(j){j&&Be(n),mt(e),B=!1,z()}}}function lKe(t){return[Aa("simple-modal").close,nKe?"\u2318":"Ctrl"]}var Lle=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,lKe,aKe,Pi,{},sKe),r}return Ie(e)}();function Ble(t){return!!t&&("space"===t.type||!0===t.space)}function Ok(t){return!!t&&("separator"===t.type||!0===t.separator)}function _b(t){return!!t&&"function"==typeof t.onClick}function t4(t){return!!t&&"dropdown-button"===t.type&&_b(t.main)&&Array.isArray(t.items)}function $le(t){return Io(t)&&Io(t.parseError)}function uKe(t){_i(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var dKe=function(t){return{}},Vle=function(t){return{}};function Hle(t,n,e){var i=t.slice();return i[3]=n[e],i}var hKe=function(t){return{}},Ule=function(t){return{}};function fKe(t){var n,e=qle(t[3])+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){1&r&&e!==(e=qle(i[3])+"")&&ti(n,e)},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function pKe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&zle(t),u=t[3].text&&Gle(t);return{c:function(){n=De("button"),c&&c.c(),e=rt(),u&&u.c(),R(n,"type","button"),R(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),R(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){$e(d,n,h),c&&c.m(n,null),me(n,e),u&&u.m(n,null),s=!0,a||(l=Rt(n,"click",function(){Ta(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&Q(c,1)):((c=zle(t)).c(),Q(c,1),c.m(n,e)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()),t[3].text?u?u.p(t,h):((u=Gle(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&R(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&R(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(Q(c),s=!0)},o:function(d){fe(c),s=!1},d:function(d){d&&Be(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function mKe(t){var n;return{c:function(){R(n=De("div"),"class","jse-space svelte-497ud4")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function gKe(t){var n;return{c:function(){R(n=De("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function zle(t){var n,e;return n=new hr({props:{data:t[3].icon}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Gle(t){var n,e=t[3].text+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&ti(n,e)},d:function(i){i&&Be(n)}}}function Wle(t){var n,e,i,r,o,s,a,l=[gKe,mKe,pKe,fKe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!Ok(d[3])),n?0:(null==e&&(e=!!Ble(d[3])),e?1:(null==i&&(i=!!_b(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=Dr()},m:function(d,h){c[r].m(d,h),$e(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):(Ht(),fe(c[f],1,1,function(){c[f]=null}),Ut(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(d){a||(Q(o),a=!0)},o:function(d){fe(o),a=!1},d:function(d){c[r].d(d),d&&Be(s)}}}function vKe(t){for(var n,e,i,r,o=t[2].left,s=Ms(o,t,t[1],Ule),a=t[0],l=[],c=0;c0&&b.height>0}),u),c=u(e);function u(y){var b=y.getBoundingClientRect();return{x:b.left+b.width/2,y:b.top+b.height/2,rect:b,element:y}}function d(y,b){var D=y.x-b.x,E=(y.y-b.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(D*D+E*E)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(v0(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(v0(g.filter(function(y){return o(y.element)}),h)||v0(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Xi[a?"unshift":"push"](function(){e(2,i=a)})}]}var uce=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,rQe,iQe,Pi,{items:0,tip:1},VKe),r}return Ie(e)}();function oQe(t){var n,e;return n=new uce({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function sQe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B=n.json,z=n.documentState,j=n.parser,U=n.showTip,G=n.onCloseContextMenu,X=n.onEditKey,oe=n.onEditValue,P=n.onToggleEnforceString,W=n.onCut,J=n.onCopy,H=n.onPaste,pe=n.onRemove,A=n.onDuplicate,N=n.onExtract,F=n.onInsertBefore,q=n.onInsert,V=n.onConvert,ce=n.onInsertAfter,ve=n.onSort,je=n.onTransform;function Te(){G(),X()}function et(){G(),oe()}function We(){G(),P()}function st(){G(),W(!0)}function $(){G(),W(!1)}function ae(){G(),J(!0)}function le(){G(),J(!1)}function Re(){G(),H()}function Ze(){G(),pe()}function Ve(){G(),A()}function Ct(){G(),N()}function Ot(hn){G(),c?V(hn):q(hn)}function yn(){G(),ve()}function Xn(){G(),je()}function on(){G(),F()}function Ri(){G(),ce()}return t.$$set=function(hn){"json"in hn&&e(2,B=hn.json),"documentState"in hn&&e(3,z=hn.documentState),"parser"in hn&&e(4,j=hn.parser),"showTip"in hn&&e(0,U=hn.showTip),"onCloseContextMenu"in hn&&e(5,G=hn.onCloseContextMenu),"onEditKey"in hn&&e(6,X=hn.onEditKey),"onEditValue"in hn&&e(7,oe=hn.onEditValue),"onToggleEnforceString"in hn&&e(8,P=hn.onToggleEnforceString),"onCut"in hn&&e(9,W=hn.onCut),"onCopy"in hn&&e(10,J=hn.onCopy),"onPaste"in hn&&e(11,H=hn.onPaste),"onRemove"in hn&&e(12,pe=hn.onRemove),"onDuplicate"in hn&&e(13,A=hn.onDuplicate),"onExtract"in hn&&e(14,N=hn.onExtract),"onInsertBefore"in hn&&e(15,F=hn.onInsertBefore),"onInsert"in hn&&e(16,q=hn.onInsert),"onConvert"in hn&&e(17,V=hn.onConvert),"onInsertAfter"in hn&&e(18,ce=hn.onInsertAfter),"onSort"in hn&&e(19,ve=hn.onSort),"onTransform"in hn&&e(20,je=hn.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=z.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==B),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Ji(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Mn(B,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Io(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Lr(i)||ws(i)||nr(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Lr(i)||nr(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&hb(i)&&!s&&!Array.isArray(Mn(B,tr(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&hb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!zo(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?ng(i)&&!Io(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,b=m?ng(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,C=m?ng(i)&&zo(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,D=null!=i&&mf(a,z.enforceStringMap,dn(i.focusPath),j)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,E=[{type:"row",items:[{type:"button",onClick:Te,icon:N0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:et,icon:N0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:N0,text:l,title:"Edit the value (Double-click on the value)",onClick:et,disabled:!f},{type:"button",icon:D?lb:cb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:We,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:st,icon:I0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:I0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:st,disabled:!c},{type:"button",icon:I0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:$,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ae,icon:xp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:xp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ae,disabled:!c},{type:"button",icon:xp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:le,disabled:!c}]},{type:"button",onClick:Re,icon:Aae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:Ve,icon:Rae,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:Ct,icon:PXe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:yn,icon:xk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:Xn,icon:yk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ze,icon:BP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return Ot("structure")},icon:m?bk:F0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return Ot("object")},icon:m?bk:F0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return Ot("array")},icon:m?bk:F0,text:"Array",title:g+" array",disabled:!b},{type:"button",onClick:function(){return Ot("value")},icon:m?bk:F0,text:"Value",title:g+" value",disabled:!C}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:on,icon:NXe,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Ri,icon:MXe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[U,E,B,z,j,G,X,oe,P,W,J,H,pe,A,N,F,q,V,ce,ve,je,s,c,C,g,m,b,y,v,d,u,o,p,D,f,l,h,i,a,r]}var aQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,sQe,oQe,Pi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Ie(e)}();function lQe(t){_i(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function dce(t,n,e){var i=t.slice();return i[13]=n[e],i}function hce(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=De("button"),e=sn("show "),i=sn(c),r=sn("-"),o=sn(u),s=rt(),R(n,"type","button"),R(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){$e(h,n,f),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),a||(l=Rt(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&ti(i,c),16&f&&u!==(u=t[13].end+"")&&ti(o,u)},d:function(h){h&&Be(n),a=!1,l()}}}function cQe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&b.end<=E.start)&&B.push(b),E.start>=(z?b.end:v.end)&&B.push(E),a=B))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var hQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dQe,cQe,Pi,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},lQe),r}return Ie(e)}();function fQe(t){_i(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function pQe(t){var n,e,i,r,o;return e=new hr({props:{data:hu}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-context-menu-pointer svelte-1yzl4st"),R(n,"title",hN),Nt(n,"jse-selected",t[0])},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Rt(n,"click",t[1]),r=!0)},p:function(s,a){var l=Jn(a,1)[0];(!i||1&l)&&Nt(n,"jse-selected",s[0])},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function mQe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var Sp=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,mQe,pQe,Pi,{selected:0,onContextMenu:2},fQe),r}return Ie(e)}();function gQe(t){_i(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function vQe(t){var n,e,i,r,o,s,a,l=[bQe,_Qe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=De("div"),i.c(),R(n,"data-type","selectable-key"),R(n,"class",r=Mo(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){$e(d,n,h),c[e].m(n,null),o=!0,s||(a=Rt(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):(Ht(),fe(c[f],1,1,function(){c[f]=null}),Ut(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),Q(i,1),i.m(n,null)),(!o||1&h&&r!==(r=Mo(d[6](d[0]))+" svelte-24a1b2"))&&R(n,"class",r)},i:function(d){o||(Q(i),o=!0)},o:function(d){fe(i),o=!1},d:function(d){d&&Be(n),c[e].d(),s=!1,a()}}}function yQe(t){var n,e;return n=new mae({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function _Qe(t){var n,e=eg(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){5&r&&e!==(e=eg(i[2].normalization.escapeValue(i[0]))+"")&&ti(n,e)},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function bQe(t){var n,e;return n=new Eae({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function pce(t){var n,e;return n=new Sp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function xQe(t){var n,e,i,r,o,s=[yQe,vQe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&pce(t);return{c:function(){e.c(),i=rt(),c&&c.c(),r=Dr()},m:function(u,d){a[n].m(u,d),$e(u,i,d),c&&c.m(u,d),$e(u,r,d),o=!0},p:function(u,d){var h=Jn(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):(Ht(),fe(a[f],1,1,function(){a[f]=null}),Ut(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),Q(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()):c?(c.p(u,h),28&h&&Q(c,1)):((c=pce(u)).c(),Q(c,1),c.m(r.parentNode,r))},i:function(u){o||(Q(e),Q(c),o=!0)},o:function(u){fe(e),fe(c),o=!1},d:function(u){a[n].d(u),u&&Be(i),c&&c.d(u),u&&Be(r)}}}function wQe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&ws(l):void 0),2056&t.$$.dirty&&e(4,r=i&&yp(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(du(o,!0)))},function(h){return ch("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=tr(o).concat(p);d.onSelect(f===pN?br(m,!1):du(m,!1)),f!==fN&&d.focus()},function(){d.onSelect(du(o,!1)),d.focus()},o,s,l,u]}var CQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wQe,xQe,Pi,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},gQe),r}return Ie(e)}();function mce(t,n,e){var i=t.slice();return i[8]=n[e],i}function gce(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=mk(u.selection),v=f.findIndex(function(U){return dr(U.path,g)}),y=0,b=v,C=function(){var U;return null===(U=f[b+1])||void 0===U?void 0:U.height};void 0!==C()&&Math.abs(m)>y+C()/2;)y+=C(),b+=1;var E=Mn(h,tr(g)),B=Array.isArray(E),z=null===(d=f[B?b:b+1])||void 0===d?void 0:d.path,j=b-v;return z?{beforePath:z,offset:j}:{append:!0,offset:j}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,b,C,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=tr(d.focusPath),g=Mn(u,m);if(!(p||f&&A0(f,m)&&f.length>m.length))return[];var v=D0(d),y=mk(d),b=Bn(v),C=Bn(y),D=f?f[m.length]:void 0;if(!Oo(g)){if(ao(g)){var E=Ys(b),B=Ys(C),z=void 0!==D?Ys(D):g.length;return lP(B-E+1,zU?[].concat(ui(j.slice(U,G+1)),ui(j.slice(X,j.length))).map(function(oe){return ig(m,oe)}):[].concat(ui(j.slice(X,U)),ui(j.slice(G+1,j.length))).map(function(oe){return ig(m,oe)}):[]}(n,o,s),l=Mn(n,tr(D0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=D0(m=u.selection),y=mk(m),b=f.findIndex(function(B){return dr(B.path,v)}),C=f.findIndex(function(B){return dr(B.path,y)}),Fs(p,null===(d=f[b+g])||void 0===d?void 0:d.path,null===(h=f[C+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function hh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Zv(e,n)})}function EQe(t){_i(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function AQe(t){var n,e,i,r,o,s;return e=new hr({props:{data:rg}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){$e(a,n,l),pt(e,n,null),r=!0,o||(s=[Rt(n,"click",function(){Ta(t[0])&&t[0].apply(this,arguments)}),Ea(i=LP.call(null,n,nt({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Jn(l,1)[0];t=a,i&&Ta(i.update)&&2&c&&i.update.call(null,nt({text:t[1]},t[2]))},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){fe(e.$$.fragment,a),r=!1},d:function(a){a&&Be(n),mt(e),o=!1,po(s)}}}function MQe(t,n,e){var i,r=Aa("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var V0=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,MQe,AQe,_s,{validationError:3,onExpand:0},EQe),r}return Ie(e)}();function OQe(t){_i(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var IQe=function(t){return{}},vce=function(t){return{}};function yce(t,n,e){var i=t.slice();return i[53]=n[e],i}var NQe=function(t){return{}},_ce=function(t){return{}};function bce(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function xce(t,n,e){var i=t.slice();return i[50]=n[e],i}var FQe=function(t){return{}},wce=function(t){return{}};function PQe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),d=t[34].identifier,h=Ms(d,t,t[35],vce),f=!t[17]&&Cce();o=new TQe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:kae(t[6],t[9]),context:t[8]}});var p=u&&Sce(t),m=t[15]&&kce(t),g=!t[17]&&Dce(t);return{c:function(){n=De("div"),e=De("div"),h&&h.c(),i=rt(),f&&f.c(),r=rt(),gt(o.$$.fragment),s=rt(),p&&p.c(),a=rt(),m&&m.c(),l=rt(),g&&g.c(),R(e,"class","jse-contents svelte-1wlxti1"),R(n,"class","jse-contents-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(v,y){$e(v,n,y),me(n,e),h&&h.m(e,null),me(e,i),f&&f.m(e,null),me(e,r),pt(o,e,null),me(e,s),p&&p.m(e,null),me(n,a),m&&m.m(n,null),me(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Is(h,d,v,v[35],c?Os(d,v[35],y,IQe):Ns(v[35]),vce),v[17]?f&&(f.d(1),f=null):f||((f=Cce()).c(),f.m(e,r));var b={};2&y[0]&&(b.path=v[1]),1&y[0]&&(b.value=v[0]),8192&y[0]&&(b.enforceString=v[13]),65664&y[0]&&(b.selection=v[16]?v[7]:void 0),576&y[0]&&(b.searchResultItems=kae(v[6],v[9])),256&y[0]&&(b.context=v[8]),o.$set(b),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(nr(v[7])||Lr(v[7]))&&!v[7].edit&&dr(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&Q(p,1)):((p=Sce(v)).c(),Q(p,1),p.m(e,null)):p&&(Ht(),fe(p,1,1,function(){p=null}),Ut()),v[15]?m?(m.p(v,y),32768&y[0]&&Q(m,1)):((m=kce(v)).c(),Q(m,1),m.m(n,l)):m&&(Ht(),fe(m,1,1,function(){m=null}),Ut()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=Dce(v)).c(),g.m(n,null)),(!c||262144&y[0])&&R(n,"style",v[18])},i:function(v){c||(Q(h,v),Q(o.$$.fragment,v),Q(p),Q(m),c=!0)},o:function(v){fe(h,v),fe(o.$$.fragment,v),fe(p),fe(m),c=!1},d:function(v){v&&Be(n),h&&h.d(v),f&&f.d(),mt(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function RQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),C=[BQe,LQe],D=[];function E(A,N){return A[12]?0:1}r=E(t),o=D[r]=C[r](t);var B=t[34].identifier,z=Ms(B,t,t[35],_ce),j=!t[17]&&Tce();function U(A,N){return A[12]?VQe:$Qe}var G=U(t),X=G(t),oe=b&&Ece(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Ace(t);function W(A,N){return A[12]?UQe:A[17]?void 0:HQe}var J=W(t),H=J&&J(t),pe=t[12]&&Mce(t);return{c:function(){n=De("div"),e=De("div"),i=De("button"),o.c(),s=rt(),z&&z.c(),a=rt(),j&&j.c(),l=rt(),c=De("div"),u=De("div"),X.c(),d=rt(),oe&&oe.c(),h=rt(),P&&P.c(),f=rt(),H&&H.c(),p=rt(),pe&&pe.c(),m=Dr(),R(i,"type","button"),R(i,"class","jse-expand svelte-1wlxti1"),R(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),R(u,"class","jse-meta-inner svelte-1wlxti1"),R(c,"class","jse-meta svelte-1wlxti1"),R(c,"data-type","selectable-value"),R(e,"class","jse-header svelte-1wlxti1"),R(n,"class","jse-header-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(A,N){$e(A,n,N),me(n,e),me(e,i),D[r].m(i,null),me(e,s),z&&z.m(e,null),me(e,a),j&&j.m(e,null),me(e,l),me(e,c),me(c,u),X.m(u,null),me(e,d),oe&&oe.m(e,null),me(n,h),P&&P.m(n,null),me(n,f),H&&H.m(n,null),$e(A,p,N),pe&&pe.m(A,N),$e(A,m,N),g=!0,v||(y=Rt(i,"click",t[21]),v=!0)},p:function(A,N){var F=r;(r=E(A))===F?D[r].p(A,N):(Ht(),fe(D[F],1,1,function(){D[F]=null}),Ut(),(o=D[r])?o.p(A,N):(o=D[r]=C[r](A)).c(),Q(o,1),o.m(i,null)),z&&z.p&&(!g||16&N[1])&&Is(z,B,A,A[35],g?Os(B,A[35],N,NQe):Ns(A[35]),_ce),A[17]?j&&(j.d(1),j=null):j||((j=Tce()).c(),j.m(e,l)),G===(G=U(A))&&X?X.p(A,N):(X.d(1),(X=G(A))&&(X.c(),X.m(u,null))),65922&N[0]&&(b=!A[8].readOnly&&A[16]&&A[7]&&(nr(A[7])||Lr(A[7]))&&!A[7].edit&&dr(A[7].focusPath,A[1])),b?oe?(oe.p(A,N),65922&N[0]&&Q(oe,1)):((oe=Ece(A)).c(),Q(oe,1),oe.m(e,null)):oe&&(Ht(),fe(oe,1,1,function(){oe=null}),Ut()),!A[15]||A[12]&&A[15].isChildError?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),36864&N[0]&&Q(P,1)):((P=Ace(A)).c(),Q(P,1),P.m(n,f)),J===(J=W(A))&&H?H.p(A,N):(H&&H.d(1),(H=J&&J(A))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&R(n,"style",A[18]),A[12]?pe?(pe.p(A,N),4096&N[0]&&Q(pe,1)):((pe=Mce(A)).c(),Q(pe,1),pe.m(m.parentNode,m)):pe&&(Ht(),fe(pe,1,1,function(){pe=null}),Ut())},i:function(A){g||(Q(o),Q(z,A),Q(oe),Q(P),Q(pe),g=!0)},o:function(A){fe(o),fe(z,A),fe(oe),fe(P),fe(pe),g=!1},d:function(A){A&&Be(n),D[r].d(),z&&z.d(A),j&&j.d(),X.d(),oe&&oe.d(),P&&P.d(),H&&H.d(),A&&Be(p),pe&&pe.d(A),A&&Be(m),v=!1,y()}}}function jQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),C=[WQe,GQe],D=[];function E(A,N){return A[12]?0:1}r=E(t),o=D[r]=C[r](t);var B=t[34].identifier,z=Ms(B,t,t[35],wce),j=!t[17]&&Fce();function U(A,N){return A[12]?YQe:qQe}var G=U(t),X=G(t),oe=b&&Pce(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Rce(t);function W(A,N){return A[12]?JQe:XQe}var J=W(t),H=J(t),pe=t[12]&&jce(t);return{c:function(){n=De("div"),e=De("div"),i=De("button"),o.c(),s=rt(),z&&z.c(),a=rt(),j&&j.c(),l=rt(),c=De("div"),u=De("div"),X.c(),d=rt(),oe&&oe.c(),h=rt(),P&&P.c(),f=rt(),H.c(),p=rt(),pe&&pe.c(),m=Dr(),R(i,"type","button"),R(i,"class","jse-expand svelte-1wlxti1"),R(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),R(u,"class","jse-meta-inner svelte-1wlxti1"),R(u,"data-type","selectable-value"),R(c,"class","jse-meta svelte-1wlxti1"),R(e,"class","jse-header svelte-1wlxti1"),R(n,"class","jse-header-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(A,N){$e(A,n,N),me(n,e),me(e,i),D[r].m(i,null),me(e,s),z&&z.m(e,null),me(e,a),j&&j.m(e,null),me(e,l),me(e,c),me(c,u),X.m(u,null),me(e,d),oe&&oe.m(e,null),me(n,h),P&&P.m(n,null),me(n,f),H.m(n,null),$e(A,p,N),pe&&pe.m(A,N),$e(A,m,N),g=!0,v||(y=Rt(i,"click",t[21]),v=!0)},p:function(A,N){var F=r;(r=E(A))===F?D[r].p(A,N):(Ht(),fe(D[F],1,1,function(){D[F]=null}),Ut(),(o=D[r])?o.p(A,N):(o=D[r]=C[r](A)).c(),Q(o,1),o.m(i,null)),z&&z.p&&(!g||16&N[1])&&Is(z,B,A,A[35],g?Os(B,A[35],N,FQe):Ns(A[35]),wce),A[17]?j&&(j.d(1),j=null):j||((j=Fce()).c(),j.m(e,l)),G===(G=U(A))&&X?X.p(A,N):(X.d(1),(X=G(A))&&(X.c(),X.m(u,null))),65922&N[0]&&(b=!A[8].readOnly&&A[16]&&A[7]&&(nr(A[7])||Lr(A[7]))&&!A[7].edit&&dr(A[7].focusPath,A[1])),b?oe?(oe.p(A,N),65922&N[0]&&Q(oe,1)):((oe=Pce(A)).c(),Q(oe,1),oe.m(e,null)):oe&&(Ht(),fe(oe,1,1,function(){oe=null}),Ut()),!A[15]||A[12]&&A[15].isChildError?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),36864&N[0]&&Q(P,1)):((P=Rce(A)).c(),Q(P,1),P.m(n,f)),J===(J=W(A))&&H?H.p(A,N):(H.d(1),(H=J(A))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&R(n,"style",A[18]),A[12]?pe?(pe.p(A,N),4096&N[0]&&Q(pe,1)):((pe=jce(A)).c(),Q(pe,1),pe.m(m.parentNode,m)):pe&&(Ht(),fe(pe,1,1,function(){pe=null}),Ut())},i:function(A){g||(Q(o),Q(z,A),Q(oe),Q(P),Q(pe),g=!0)},o:function(A){fe(o),fe(z,A),fe(oe),fe(P),fe(pe),g=!1},d:function(A){A&&Be(n),D[r].d(),z&&z.d(A),j&&j.d(),X.d(),oe&&oe.d(),P&&P.d(),H.d(),A&&Be(p),pe&&pe.d(A),A&&Be(m),v=!1,y()}}}function Cce(t){var n;return{c:function(){(n=De("div")).textContent=":",R(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function Sce(t){var n,e,i;return e=new Sp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){$e(r,n,o),pt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){fe(e.$$.fragment,r),i=!1},d:function(r){r&&Be(n),mt(e)}}}function kce(t){var n,e;return n=new V0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Dce(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),R(n,"data-type","insert-selection-area-after")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[30]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function LQe(t){var n,e;return n=new hr({props:{data:_p}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function BQe(t){var n,e;return n=new hr({props:{data:hu}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Tce(t){var n;return{c:function(){(n=De("div")).textContent=":",R(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function $Qe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=De("div")).textContent="{",e=rt(),i=De("button"),r=sn(d),o=rt(),s=sn(h),a=rt(),(l=De("div")).textContent="}",R(n,"class","jse-bracket svelte-1wlxti1"),R(i,"type","button"),R(i,"class","jse-tag svelte-1wlxti1"),R(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){$e(f,n,p),$e(f,e,p),$e(f,i,p),me(i,r),me(i,o),me(i,s),$e(f,a,p),$e(f,l,p),c||(u=Rt(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&ti(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&ti(s,h)},d:function(f){f&&Be(n),f&&Be(e),f&&Be(i),f&&Be(a),f&&Be(l),c=!1,u()}}}function VQe(t){var n;return{c:function(){(n=De("div")).textContent="{",R(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},p:Bt,d:function(e){e&&Be(n)}}}function Ece(t){var n,e,i;return e=new Sp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){$e(r,n,o),pt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){fe(e.$$.fragment,r),i=!1},d:function(r){r&&Be(n),mt(e)}}}function Ace(t){var n,e;return n=new V0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function HQe(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),R(n,"data-type","insert-selection-area-after")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[30]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function UQe(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),R(n,"data-type","insert-selection-area-inside")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[29]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function Mce(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Js(t[7])),c=l&&Oce(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=rt(),p&&p.c(),R(n,"class","jse-props svelte-1wlxti1"),R(o,"data-type","selectable-value"),R(o,"class","jse-footer svelte-1wlxti1"),R(r,"class","jse-footer-outer svelte-1wlxti1"),R(r,"style",t[18])},m:function(m,g){$e(m,n,g),c&&c.m(n,null),me(n,e);for(var v=0;v]',s=rt(),v&&v.c(),R(n,"class","jse-items svelte-1wlxti1"),R(o,"data-type","selectable-value"),R(o,"class","jse-footer svelte-1wlxti1"),R(r,"class","jse-footer-outer svelte-1wlxti1"),R(r,"style",t[18])},m:function(y,b){$e(y,n,b),d&&d.m(n,null),me(n,e);for(var C=0;C=Ve.start&&ae<=Ve.end});if(!le)return null;mse(le.start,Math.min(p.length,le.end),function(Ve){return et(String(Ve))})}else Object.keys(p).forEach(et);return Te}(D,l||$m);if(z("dragSelectionStart",{selection:D,items:F}),F){var q=D0(D),V=F.findIndex(function(ve){return dr(ve.path,q)}),ce=r4({json:E.getJson(),documentState:E.getDocumentState(),deltaY:0,items:F}).offset;e(11,G={initialTarget:A.target,initialClientY:A.clientY,initialContentTop:W(),selectionStartIndex:V,selectionItemsCount:hae(D).length,items:F,offset:ce,didMoveItems:!1}),ya.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",pe)}else z("Cannot drag the current selection (probably spread over multiple sections)")}else B(A)}},function(A){ya.selecting||ya.dragging||(A.stopPropagation(),tg(A.target,"data-type","selectable-value")?e(10,j="hover-collection"):tg(A.target,"data-type","insert-selection-area-inside")?e(10,j="hover-insert-inside"):tg(A.target,"data-type","insert-selection-area-after")&&e(10,j="hover-insert-after"),clearTimeout(U))},function(A){A.stopPropagation(),U=setTimeout(function(){return e(10,j=void 0)})},function(A){A.shiftKey||(A.stopPropagation(),A.preventDefault(),E.onSelect(gf(m)))},function(A){A.shiftKey||(A.stopPropagation(),A.preventDefault(),E.onSelect(vf(m)))},function(A){E.onSelect(gf(m)),E.onContextMenu(A)},function(A){E.onSelect(vf(m)),E.onContextMenu(A)},B,h,f]}var o4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ZQe,QQe,Pi,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},OQe,[-1,-1]),r}return Ie(e)}(),eZe=o4,tZe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},nZe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},s4={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},iZe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function rZe(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function oZe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,b=n.onRedo,C=n.onSort,D=n.onTransform,E=n.onContextMenu,B=n.onCopy,z=n.onRenderMenu;function j(){e(1,p=!p)}return t.$$set=function(U){"json"in U&&e(2,u=U.json),"selection"in U&&e(3,d=U.selection),"readOnly"in U&&e(4,h=U.readOnly),"showSearch"in U&&e(1,p=U.showSearch),"historyState"in U&&e(5,m=U.historyState),"onExpandAll"in U&&e(6,g=U.onExpandAll),"onCollapseAll"in U&&e(7,v=U.onCollapseAll),"onUndo"in U&&e(8,y=U.onUndo),"onRedo"in U&&e(9,b=U.onRedo),"onSort"in U&&e(10,C=U.onSort),"onTransform"in U&&e(11,D=U.onTransform),"onContextMenu"in U&&e(12,E=U.onContextMenu),"onCopy"in U&&e(13,B=U.onCopy),"onRenderMenu"in U&&e(14,z=U.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Lr(d)||ws(d)||nr(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:tZe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!zo(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:nZe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!zo(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:HP,title:"Search (Ctrl+F)",className:"jse-search",onClick:j,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:xp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:B,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:C,disabled:h||void 0===u},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:D,disabled:h||void 0===u},l,{type:"button",icon:Nae,title:hN,className:"jse-contextmenu",onClick:E},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:b,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=z(c)||c)},[o,p,u,d,h,m,g,v,y,b,C,D,E,B,z,s,a,l,c,r,i]}var sZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,oZe,rZe,Pi,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Ie(e)}();function aZe(t){_i(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function zce(t){var n;return{c:function(){(n=De("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',R(n,"class","svelte-1q2qkk2")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function lZe(t){var n,e,i,r,o,s,a,l=!t[0]&&zce();return{c:function(){n=De("div"),e=De("div"),i=rt(),r=De("div"),o=sn("Empty document\n "),l&&l.c(),s=rt(),a=De("div"),R(e,"class","jse-space jse-before svelte-1q2qkk2"),R(r,"class","jse-contents svelte-1q2qkk2"),R(a,"class","jse-space jse-after svelte-1q2qkk2"),R(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){$e(c,n,u),me(n,e),me(n,i),me(n,r),me(r,o),l&&l.m(r,null),me(n,s),me(n,a)},p:function(c,u){Jn(u,1),c[0]?l&&(l.d(1),l=null):l||((l=zce()).c(),l.m(r,null))},i:Bt,o:Bt,d:function(c){c&&Be(n),l&&l.d()}}}function cZe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var uZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,cZe,lZe,Pi,{readOnly:0},aZe),r}return Ie(e)}(),a4={},dZe={get exports(){return a4},set exports(t){a4=t}},Gce=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(ao(Mn(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function fZe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function pZe(t,n){return function(e,i){var r=Mn(e,t),o=Mn(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Mn(t,n);return[{op:"replace",path:dn(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Io(t))return function hZe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Mn(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*l4(u,d)});for(var s=[],a=0;axb&&Xce();return{c:function(){n=De("div");for(var d=0;dxb?u?u.p(d,f):((u=Xce()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:Bt,o:Bt,d:function(d){d&&Be(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=Mn(l,g);if(Array.isArray(v))return rP(0,v.length).map(String);if(Io(v)){var y=Object.keys(v).slice(0);return y.sort(l4),y}return[]},function(g){return nu(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Xi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Xi[g?"unshift":"push"](function(){e(4,o=g)})}]}var OZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,MZe,AZe,Pi,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},DZe),r}return Ie(e)}();function IZe(t){_i(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function rue(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",P=!t[4]&&oue(t),W=[FZe,NZe],J=[];function H(A,N){return A[2]?0:1}a=H(t),l=J[a]=W[a](t),y=new hr({props:{data:BXe}}),D=new hr({props:{data:IXe}}),z=new hr({props:{data:P0}});var pe=t[0]&&!t[4]&&sue(t);return{c:function(){n=De("div"),e=De("form"),P&&P.c(),i=rt(),r=De("div"),o=De("div"),s=De("div"),l.c(),c=rt(),u=De("label"),d=De("input"),h=rt(),f=De("div"),p=sn(oe),m=sn(t[10]),g=rt(),v=De("button"),gt(y.$$.fragment),b=rt(),C=De("button"),gt(D.$$.fragment),E=rt(),B=De("button"),gt(z.$$.fragment),j=rt(),pe&&pe.c(),R(s,"class","jse-search-icon svelte-3lbrbf"),R(d,"class","jse-search-input svelte-3lbrbf"),R(d,"title","Enter text to search"),R(d,"type","text"),R(d,"placeholder","Find"),R(u,"class","jse-search-input-label svelte-3lbrbf"),R(u,"about","jse-search input"),R(f,"class","jse-search-count svelte-3lbrbf"),Nt(f,"jse-visible",""!==t[8]),R(v,"type","button"),R(v,"class","jse-search-next svelte-3lbrbf"),R(v,"title","Go to next search result (Enter)"),R(C,"type","button"),R(C,"class","jse-search-previous svelte-3lbrbf"),R(C,"title","Go to previous search result (Shift+Enter)"),R(B,"type","button"),R(B,"class","jse-search-clear svelte-3lbrbf"),R(B,"title","Close search box (Esc)"),R(o,"class","jse-search-section svelte-3lbrbf"),R(r,"class","jse-search-contents svelte-3lbrbf"),R(e,"class","jse-search-form svelte-3lbrbf"),R(n,"class","jse-search-box svelte-3lbrbf")},m:function(A,N){$e(A,n,N),me(n,e),P&&P.m(e,null),me(e,i),me(e,r),me(r,o),me(o,s),J[a].m(s,null),me(o,c),me(o,u),me(u,d),ip(d,t[8]),me(o,h),me(o,f),me(f,p),me(f,m),me(o,g),me(o,v),pt(y,v,null),me(o,b),me(o,C),pt(D,C,null),me(o,E),me(o,B),pt(z,B,null),me(r,j),pe&&pe.m(r,null),U=!0,G||(X=[Rt(d,"input",t[21]),Ea(RZe.call(null,d)),Rt(v,"click",t[22]),Rt(C,"click",t[23]),Rt(B,"click",t[24]),Rt(e,"submit",t[12]),Rt(e,"keydown",t[13])],G=!0)},p:function(A,N){A[4]?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),16&N&&Q(P,1)):((P=oue(A)).c(),Q(P,1),P.m(e,i));var F=a;(a=H(A))===F?J[a].p(A,N):(Ht(),fe(J[F],1,1,function(){J[F]=null}),Ut(),(l=J[a])?l.p(A,N):(l=J[a]=W[a](A)).c(),Q(l,1),l.m(s,null)),256&N&&d.value!==A[8]&&ip(d,A[8]),(!U||8&N)&&oe!==(oe=(-1!==A[3]?"".concat(A[3]+1,"/"):"")+"")&&ti(p,oe),(!U||1024&N)&&ti(m,A[10]),(!U||256&N)&&Nt(f,"jse-visible",""!==A[8]),A[0]&&!A[4]?pe?pe.p(A,N):((pe=sue(A)).c(),pe.m(r,null)):pe&&(pe.d(1),pe=null)},i:function(A){U||(Q(P),Q(l),Q(y.$$.fragment,A),Q(D.$$.fragment,A),Q(z.$$.fragment,A),U=!0)},o:function(A){fe(P),fe(l),fe(y.$$.fragment,A),fe(D.$$.fragment,A),fe(z.$$.fragment,A),U=!1},d:function(A){A&&Be(n),P&&P.d(),J[a].d(),mt(y),mt(D),mt(z),pe&&pe.d(),G=!1,po(X)}}}function oue(t){var n,e,i,r,o;return e=new hr({props:{data:t[0]?hu:_p}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-replace-toggle svelte-3lbrbf"),R(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Rt(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?hu:_p),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function NZe(t){var n,e;return n=new hr({props:{data:HP}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function FZe(t){var n,e;return n=new hr({props:{data:AXe,spin:!0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function sue(t){var n,e,i,r,o,s,a,l;return{c:function(){n=De("div"),e=De("input"),i=rt(),(r=De("button")).textContent="Replace",o=rt(),(s=De("button")).textContent="All",R(e,"class","jse-replace-input svelte-3lbrbf"),R(e,"title","Enter replacement text"),R(e,"type","text"),R(e,"placeholder","Replace"),R(r,"type","button"),R(r,"title","Replace current occurrence (Ctrl+Enter)"),R(r,"class","svelte-3lbrbf"),R(s,"type","button"),R(s,"title","Replace all occurrences"),R(s,"class","svelte-3lbrbf"),R(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){$e(c,n,u),me(n,e),ip(e,t[9]),me(n,i),me(n,r),me(n,o),me(n,s),a||(l=[Rt(e,"input",t[25]),Rt(r,"click",t[14]),Rt(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&ip(e,c[9])},d:function(c){c&&Be(n),a=!1,po(l)}}}function PZe(t){var n,e,i=t[1]&&rue(t);return{c:function(){i&&i.c(),n=Dr()},m:function(r,o){i&&i.m(r,o),$e(r,n,o),e=!0},p:function(r,o){var s=Jn(o,1)[0];r[1]?i?(i.p(r,s),2&s&&Q(i,1)):((i=rue(r)).c(),Q(i,1),i.m(n.parentNode,n)):i&&(Ht(),fe(i,1,1,function(){i=null}),Ut())},i:function(r){e||(Q(i),e=!0)},o:function(r){fe(i),e=!1},d:function(r){i&&i.d(r),r&&Be(n)}}}function RZe(t){t.select()}function jZe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?bo:g,y=n.onPrevious,b=void 0===y?bo:y,C=n.onNext,D=void 0===C?bo:C,E=n.onReplace,B=void 0===E?bo:E,z=n.onReplaceAll,j=void 0===z?bo:z,U=n.onClose,G=void 0===U?bo:U,X="",oe="",P="";function W(){e(0,f=!f&&!m)}function J(){m||B(X,P)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,b=H.onPrevious),"onNext"in H&&e(6,D=H.onNext),"onReplace"in H&&e(18,B=H.onReplace),"onReplaceAll"in H&&e(19,j=H.onReplaceAll),"onClose"in H&&e(7,G=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=p0(v,300)),1048832&t.$$.dirty&&r(X),2&t.$$.dirty&&s&&""!==X&&v(X)},[f,s,a,d,m,b,D,G,X,P,i,W,function(H){H.preventDefault(),X!==oe?(oe=X,r.cancel(),v(X)):D()},function(H){H.stopPropagation();var pe=gp(H);"Enter"===pe&&(H.preventDefault(),D()),"Shift+Enter"===pe&&(H.preventDefault(),b()),"Ctrl+Enter"===pe&&(H.preventDefault(),f?J():D()),"Ctrl+H"===pe&&(H.preventDefault(),W()),"Escape"===pe&&(H.preventDefault(),G())},J,function(){m||j(X,P)},c,v,B,j,r,function(){e(8,X=this.value)},function(){return D()},function(){return b()},function(){return G()},function(){e(9,P=this.value)}]}var LZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,jZe,PZe,Pi,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},IZe),r}return Ie(e)}(),aue=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function BZe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',R(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function tet(t){var n,e,i,r,o,s,a,l,c,u=[iet,net],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=De("label"),e=De("input"),i=rt(),o.c(),s=Dr(),R(e,"type","text"),e.readOnly="readonly",R(e,"tabindex","-1"),R(e,"class","jse-hidden-input svelte-qojdc1"),R(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){$e(f,n,p),me(n,e),t[76](e),$e(f,i,p),d[r].m(f,p),$e(f,s,p),a=!0,l||(c=Rt(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Ht(),fe(d[m],1,1,function(){d[m]=null}),Ut(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){fe(o),a=!1},d:function(f){f&&Be(n),t[76](null),f&&Be(i),d[r].d(f),f&&Be(s),l=!1,c()}}}function net(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new LZe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new eZe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:bo}});var m=t[18]&&yue(t),g=t[23]&&_ue(t);return f=new ZP({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=De("div"),gt(s.$$.fragment),a=rt(),l=De("div"),gt(c.$$.fragment),u=rt(),m&&m.c(),d=rt(),g&&g.c(),h=rt(),gt(f.$$.fragment),R(o,"class","jse-search-box-container svelte-qojdc1"),R(l,"class","jse-contents svelte-qojdc1"),R(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){$e(v,o,y),pt(s,o,null),$e(v,a,y),$e(v,l,y),pt(c,l,null),t[77](l),$e(v,u,y),m&&m.m(v,y),$e(v,d,y),g&&g.m(v,y),$e(v,h,y),pt(f,v,y),p=!0},p:function(v,y){var b,C,D,E,B={};524288&y[0]&&(B.show=v[19]),131072&y[0]&&(B.resultCount=(null===(b=v[17])||void 0===b||null===(C=b.items)||void 0===C?void 0:C.length)||0),131072&y[0]&&(B.activeIndex=(null===(D=v[17])||void 0===D?void 0:D.activeIndex)||0),1048576&y[0]&&(B.showReplace=v[20]),2097152&y[0]&&(B.searching=v[21]),1&y[0]&&(B.readOnly=v[0]),s.$set(B);var z={};1024&y[0]&&(z.value=v[10]),65536&y[0]&&(z.expandedMap=v[16].expandedMap),65536&y[0]&&(z.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(z.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(z.validationErrorsMap=v[24]),131072&y[0]&&(z.searchResultItemsMap=null===(E=v[17])||void 0===E?void 0:E.itemsMap),65536&y[0]&&(z.selection=v[16].selection),8192&y[0]&&(z.context=v[13]),c.$set(z),v[18]?m?(m.p(v,y),262144&y[0]&&Q(m,1)):((m=yue(v)).c(),Q(m,1),m.m(d.parentNode,d)):m&&(Ht(),fe(m,1,1,function(){m=null}),Ut()),v[23]?g?(g.p(v,y),8388608&y[0]&&Q(g,1)):((g=_ue(v)).c(),Q(g,1),g.m(h.parentNode,h)):g&&(Ht(),fe(g,1,1,function(){g=null}),Ut());var j={};4096&y[0]&&(j.validationErrors=v[12]),f.$set(j)},i:function(v){p||(Q(s.$$.fragment,v),Q(c.$$.fragment,v),Q(m),Q(g),Q(f.$$.fragment,v),p=!0)},o:function(v){fe(s.$$.fragment,v),fe(c.$$.fragment,v),fe(m),fe(g),fe(f.$$.fragment,v),p=!1},d:function(v){v&&Be(o),mt(s),v&&Be(a),v&&Be(l),mt(c),t[77](null),v&&Be(u),m&&m.d(v),v&&Be(d),g&&g.d(v),v&&Be(h),mt(f,v)}}}function iet(t){var n,e,i,r,o=[oet,ret],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=Dr()},m:function(l,c){s[n].m(l,c),$e(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(Ht(),fe(s[u],1,1,function(){s[u]=null}),Ut(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),Q(e,1),e.m(i.parentNode,i))},i:function(l){r||(Q(e),r=!0)},o:function(l){fe(e),r=!1},d:function(l){s[n].d(l),l&&Be(i)}}}function yue(t){var n,e;return n=new ad({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:_k,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function _ue(t){var n,e;return n=new ad({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:mb,text:"Ok",onClick:t[8]},{icon:bp,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:mb,text:"Ok",onClick:i[8]},{icon:bp,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function ret(t){var n,e,i,r;return n=new ad({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:bp,text:"Repair manually",onClick:t[47]}]}}),i=new mue({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){gt(n.$$.fragment),e=rt(),gt(i.$$.fragment)},m:function(o,s){pt(n,o,s),$e(o,e,s),pt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:bp,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){fe(n.$$.fragment,o),fe(i.$$.fragment,o),r=!1},d:function(o){mt(n,o),o&&Be(e),mt(i,o)}}}function oet(t){var n,e;return n=new uZe({props:{readOnly:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function set(t){var n,e,i,r,o,s,a,l,c=t[1]&&gue(t),u=t[2]&&vue(t),h=[];return o=h[r=t[25]?1:0]=[tet,eet][r](t),{c:function(){n=De("div"),c&&c.c(),e=rt(),u&&u.c(),i=rt(),o.c(),R(n,"class","jse-tree-mode svelte-qojdc1"),Nt(n,"no-main-menu",!t[1])},m:function(f,p){$e(f,n,p),c&&c.m(n,null),me(n,e),u&&u.m(n,null),me(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[Rt(QZe,"mousedown",t[49]),Rt(n,"keydown",t[41]),Rt(n,"mousedown",t[42]),Rt(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&Q(c,1)):((c=gue(f)).c(),Q(c,1),c.m(n,e)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()),f[2]?u?(u.p(f,p),4&p[0]&&Q(u,1)):((u=vue(f)).c(),Q(u,1),u.m(n,i)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut()),o.p(f,p),(!s||2&p[0])&&Nt(n,"no-main-menu",!f[1])},i:function(f){s||(Q(c),Q(u),Q(o),s=!0)},o:function(f){fe(c),fe(u),fe(o),s=!1},d:function(f){f&&Be(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,po(l)}}}function aet(t,n,e){var i,r=Ma("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=Aa("simple-modal").open,h=mp(),f=mp(),p=Aa("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=Dle(),b=n.readOnly,C=n.externalContent,D=n.mainMenuBar,E=n.navigationBar,B=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,j=n.parser,U=n.parseMemoizeOne,G=n.validator,X=n.validationParser,oe=n.pathParser,P=n.indentation,W=n.onError,J=n.onChange,H=n.onChangeMode,pe=n.onRenderValue,A=n.onRenderMenu,N=n.onClassName,F=n.onFocus,q=n.onBlur,V=n.onSortModal,ce=n.onTransformModal,ve=n.onJSONEditorModal,je=!1;QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(l)},hasFocus:function(){return je&&document.hasFocus()||dk(l)},onFocus:function(){v=!0,F&&F()},onBlur:function(){v=!1,q&&q()}});var Te=void 0;function et(Me){r("updateSelection",Me);var ct="function"==typeof Me?Me(le.selection):Me;dr(ct,le.selection)||e(16,le=nt(nt({},le),{},{selection:ct}))}var We,st,$,ae=!1,le=fk(),Re=!1,Ze=!1,Ve=!1,Ct="";function Ot(Me){return yn.apply(this,arguments)}function yn(){return(yn=or(_n().mark(function Me(ct){return _n().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return r("search text updated",ct),e(74,Ct=ct),Ft.next=4,tc();case 4:return Ft.next=6,vr();case 6:case"end":return Ft.stop()}},Me)}))).apply(this,arguments)}function Xn(){return(Xn=or(_n().mark(function Me(){return _n().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return e(17,We=We?rXe(We):void 0),ct.next=3,vr();case 3:case"end":return ct.stop()}},Me)}))).apply(this,arguments)}function on(){return(on=or(_n().mark(function Me(){return _n().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return e(17,We=We?oXe(We):void 0),ct.next=3,vr();case 3:case"end":return ct.stop()}},Me)}))).apply(this,arguments)}function Ri(){return(Ri=or(_n().mark(function Me(ct,Ft){var en,an,cn,hi;return _n().wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:if(an=null===(en=We)||void 0===en?void 0:en.activeItem,r("handleReplace",{replacementText:Ft,activeItem:an}),an){yi.next=4;break}return yi.abrupt("return");case 4:return cn=sXe(c,le,Ft,an,j),hi=cn.newSelection,ni(cn.operations,function(Lo,js){return{state:nt(nt({},js),{},{selection:hi})}}),yi.next=8,tc();case 8:return yi.next=10,vr();case 10:case"end":return yi.stop()}},Me)}))).apply(this,arguments)}function hn(){return(hn=or(_n().mark(function Me(ct,Ft){var en,cn;return _n().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return r("handleReplaceAll",{text:ct,replacementText:Ft}),en=aXe(c,le,ct,Ft,j),cn=en.newSelection,ni(en.operations,function(hi,yi){return{state:nt(nt({},yi),{},{selection:cn})}}),Gn.next=5,tc();case 5:return Gn.next=7,vr();case 7:case"end":return Gn.stop()}},Me)}))).apply(this,arguments)}function vr(){return Er.apply(this,arguments)}function Er(){return(Er=or(_n().mark(function Me(){var ct,Ft,en;return _n().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(Ft=null===(ct=We)||void 0===ct?void 0:ct.activeItem,r("focusActiveSearchResult",We),!Ft){an.next=9;break}return e(16,le=nt(nt({},TP(c,le,en=Ft.path)),{},{selection:void 0})),an.next=7,tc();case 7:return an.next=9,mn(en);case 9:case"end":return an.stop()}},Me)}))).apply(this,arguments)}var Si,Xr,fr=Tle({onChange:function(Me){e(22,wr=Me)}}),wr=fr.getState(),Ro=aP(function(Me,ct){if(""===Me)return r("clearing search result"),void(void 0!==We&&e(17,We=void 0));e(21,Ve=!0),setTimeout(function(){r("searching...",Me);var an,cn,Gn,hi,yi,Lo,js,Ft=xae(Me,ct,1e3);e(17,(an=Ft,Gn=null!=(cn=We)&&cn.activeItem?Sae(cn.activeItem):void 0,hi=an.findIndex(function(Zo){return dr(Gn,Sae(Zo))}),yi=-1!==hi?hi:void 0!==cn?.activeIndex&&cn?.activeIndex0?0:-1,js=(Lo=an.map(function(Zo,Do){return nt(nt({},Zo),{},{active:Do===yi})}))[yi],We={items:Lo,itemsMap:g0(Lo,function(Zo){return dn(Zo.path)}),activeItem:js,activeIndex:yi})),e(21,Ve=!1)})},300),Rn=!1,kt=[],pi=wb(Ele);function Bi(Me,ct,Ft,en){j0(function(){var an;try{an=pi(Me,ct,Ft,en)}catch(cn){an=[{path:[],message:"Failed to validate: "+cn.message,severity:Jd.warning}]}dr(an,kt)||(r("validationErrors changed:",an),e(12,kt=an))},function(an){return r("validationErrors updated in ".concat(an," ms"))})}function Ar(){return r("validate"),Te?{parseError:Te,isRepairable:!1}:(Bi(c,G,j,X),Ji(kt)?null:{validationErrors:kt})}function ko(){return c}function Qo(){return le}function jn(Me){ae||(ae=!0,e(16,le=uu(Me,le,[],Cse({json:Me},10240)?lh:db)))}function di(Me){void 0!==le.selection&&(le.selection&&nu(Me,le.selection.anchorPath)&&nu(Me,le.selection.focusPath)||(r("clearing selection: path does not exist anymore",le.selection),e(16,le=nt(nt({},le),{},{selection:T0(Me,le)}))))}function ki(Me){var ct=Me.previousJson,Ft=Me.previousState,en=Me.previousText,an=Me.previousTextIsRepaired;void 0===ct&&void 0===en||(void 0!==c?fr.add(void 0!==ct?{undo:{patch:[{op:"replace",path:"",value:ct}],state:pl(Ft),json:void 0,text:en,textIsRepaired:an},redo:{patch:[{op:"replace",path:"",value:c}],state:pl(le),json:void 0,text:u,textIsRepaired:Rn}}:{undo:{patch:void 0,json:void 0,text:en,state:pl(Ft),textIsRepaired:an},redo:{patch:void 0,json:c,state:pl(le),text:u,textIsRepaired:Rn}}):void 0!==ct&&fr.add({undo:{patch:void 0,json:ct,state:pl(Ft),text:en,textIsRepaired:an},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Rn,state:pl(le)}}))}function Nr(Me,ct){if(r("patch",Me,ct),void 0===c)throw new Error("Cannot apply patch: no JSON");var Ft={json:c,text:u},en=c,an=le,cn=u,Gn=Rn,hi=_ae(c,Me),yi=Zse(c,le,Me),Lo=E0(c,Me),js=function(Sh,Sd){return void 0!==Sd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?nt(nt({},Sh),{},{selection:Sd}):Sh}(yi.documentState,Lo,!1);r("patch updatedSelection",Lo);var Zo="function"==typeof ct?ct(yi.json,js):void 0;e(10,c=Zo&&void 0!==Zo.json?Zo.json:yi.json);var Do=Zo&&void 0!==Zo.state?Zo.state:js;e(16,le=Do),e(11,u=void 0),e(23,Rn=!1),e(18,$=void 0),di(c),fr.add({undo:{patch:hi,json:void 0,text:cn,state:pl(an),textIsRepaired:Gn},redo:{patch:Me,json:void 0,state:pl(Do),text:u,textIsRepaired:Rn}});var $l={json:c,previousJson:en,undo:hi,redo:Me};return ai(Ft,$l),$l}function Jr(){!b&&le.selection&&et(du(le.selection.focusPath,!0))}function co(){if(!b&&le.selection){var Me=le.selection.focusPath,ct=Mn(c,Me);zo(ct)?(r("openJSONEditorModal",{path:Ft=Me,value:en=ct}),je=!0,ve({content:{json:en},path:Ft,onPatch:Xr.onPatch,onClose:function(){je=!1,Rs()}})):et(br(Me,!0))}var Ft,en}function Ks(){if(!b&&nr(le.selection)){var Me=le.selection.focusPath,ct=dn(Me),Ft=Mn(c,Me),en=!mf(Ft,le.enforceStringMap,ct,j),an=en?String(Ft):e0(String(Ft),j);r("handleToggleEnforceString",{enforceString:en,value:Ft,updatedValue:an}),ni([{op:"replace",path:ct,value:an}],function(cn,Gn){return{state:Qse(Gn,ct,en)}})}}function Cr(){return Qs.apply(this,arguments)}function Qs(){return Qs=or(_n().mark(function Me(){var ct,Ft=arguments;return _n().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return ct=!(Ft.length>0&&void 0!==Ft[0])||Ft[0],en.next=3,uue({json:c,documentState:le,indentation:ct?P:void 0,readOnly:b,parser:j,onPatch:ni});case 3:case"end":return en.stop()}},Me)})),Qs.apply(this,arguments)}function Za(){return el.apply(this,arguments)}function el(){return el=or(_n().mark(function Me(){var ct,Ft=arguments;return _n().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(ct=!(Ft.length>0&&void 0!==Ft[0])||Ft[0],void 0!==c){en.next=3;break}return en.abrupt("return");case 3:return en.next=5,due({json:c,documentState:le,indentation:ct?P:void 0,parser:j});case 5:case"end":return en.stop()}},Me)})),el.apply(this,arguments)}function $c(){d(Lle,{},nt(nt({},Vm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Rs()}})}function Ee(Me,ct){d(Xle,{text:Me,onParse:ak,onRepair:bse,onApply:ct},nt(nt({},Vm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Rs()}})}function qe(){fue({json:c,text:u,documentState:le,keepSelection:!1,readOnly:b,onChange:J,onPatch:ni})}function Ke(){!b&&void 0!==c&&le.selection&&M0(le.selection)&&!Ji(le.selection.focusPath)&&(r("duplicate",{selection:le.selection}),ni(gae(c,hae(le.selection))))}function dt(){b||!le.selection||!Lr(le.selection)&&!nr(le.selection)||Ji(le.selection.focusPath)||(r("extract",{selection:le.selection}),ni(function(ct,Ft){if(nr(Ft))return[{op:"move",from:dn(Ft.focusPath),path:""}];if(!Lr(Ft))throw new Error("Cannot create extract operations: parent must be an Object or Array");var en=Mn(ct,tr(Ft.focusPath));if(ao(en))return[{op:"replace",path:"",value:Ft.paths.map(function(cn){var Gn=Ys(Bn(cn));return en[Gn]})}];if(Oo(en)){var an={};return Ft.paths.forEach(function(cn){var Gn=String(Bn(cn));an[Gn]=en[Gn]}),[{op:"replace",path:"",value:an}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Ft))}(c,le.selection),function(ct,Ft){if(zo(ct))return{state:vp(ct,Ft,[])}}))}function Ye(Me){void 0!==c&&Fk({insertType:Me,selectInside:!0,refJsonEditor:l,json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onReplaceJson:kr})}function In(Me){ws(le.selection)&&et(br(le.selection.focusPath,!1)),Ye(Me)}function li(Me){if(!b&&le.selection)if(ng(le.selection))try{var ct=le.selection.anchorPath,Ft=Mn(c,ct),en=function(cn,Gn,hi){if("array"===Gn){if(Array.isArray(cn))return cn;if(Io(cn))return vse(cn);if("string"==typeof cn)try{var yi=hi.parse(cn);if(Array.isArray(yi))return yi;if(Io(yi))return vse(yi)}catch{return[cn]}return[cn]}if("object"===Gn){if(Array.isArray(cn))return gse(cn);if(Io(cn))return cn;if("string"==typeof cn)try{var Lo=hi.parse(cn);if(Io(Lo))return Lo;if(Array.isArray(Lo))return gse(Lo)}catch{return{value:cn}}return{value:cn}}if("value"===Gn)return zo(cn)?hi.stringify(cn):cn;throw new Error("Cannot convert ".concat(IN(cn,hi)," to ").concat(Gn))}(Ft,Me,j);if(en===Ft)return;var an=[{op:"replace",path:dn(ct),value:en}];r("handleConvert",{selection:le.selection,path:ct,type:Me,operations:an}),ni(an,function(cn,Gn){return{state:vp(cn,Gn,le.selection.focusPath)}})}catch(cn){W(cn)}else W(new Error("Cannot convert current selection to ".concat(Me)))}function vi(){var Me=aae(c,le,!1),ct=tr(le.selection.focusPath);!Ji(Me.focusPath)&&dr(ct,tr(Me.focusPath))?et(vf(Me.focusPath)):et(gf(ct)),r("insert before",{selection:le.selection,selectionBefore:Me,parentPath:ct}),tc().then(Bl)}function gi(){var Me=Lr(le.selection)?Bn(le.selection.paths):le.selection.focusPath;r("insert after",Me),et(vf(Me)),tc().then(Bl)}function Mr(Me){return to.apply(this,arguments)}function to(){return(to=or(_n().mark(function Me(ct){return _n().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,pue({char:ct,selectInside:!0,refJsonEditor:l,json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onReplaceJson:kr,onSelect:et});case 2:case"end":return Ft.stop()}},Me)}))).apply(this,arguments)}function xi(){if(!b&&fr.getState().canUndo){var Me=fr.undo();if(Me){var ct={json:c,text:u};e(10,c=Me.undo.patch?ed(c,Me.undo.patch):Me.undo.json),e(16,le=Me.undo.state),e(11,u=Me.undo.text),e(23,Rn=Me.undo.textIsRepaired),r("undo",{item:Me,json:c,documentState:le}),ai(ct,{json:c,previousJson:ct.json,redo:Me.undo.patch,undo:Me.redo.patch}),Rs(),le.selection&&mn(le.selection.focusPath,!1)}}}function Sr(){if(!b&&fr.getState().canRedo){var Me=fr.redo();if(Me){var ct={json:c,text:u};e(10,c=Me.redo.patch?ed(c,Me.redo.patch):Me.redo.json),e(16,le=Me.redo.state),e(11,u=Me.redo.text),e(23,Rn=Me.redo.textIsRepaired),r("redo",{item:Me,json:c,documentState:le}),ai(ct,{json:c,previousJson:ct.json,redo:Me.redo.patch,undo:Me.undo.patch}),Rs(),le.selection&&mn(le.selection.focusPath,!1)}}}function Fe(Me){var ct;b||void 0===c||(je=!0,V({id:h,json:c,rootPath:Me,onSort:(ct=or(_n().mark(function Ft(en){var an;return _n().wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:r("onSort",Me,an=en.operations),ni(an,function(Gn,hi){return{state:nt(nt({},vp(Gn,hi,Me)),{},{selection:br(Me,!1)})}});case 3:case"end":return cn.stop()}},Ft)})),function(Ft){return ct.apply(this,arguments)}),onClose:function(){je=!1,Rs()}}))}function At(){le.selection&&Fe(uae(c,le.selection))}function Gt(Me){var Ft=Me.rootPath,en=Me.onTransform,an=Me.onClose;void 0!==c&&Ft&&(je=!0,ce({id:Me.id||f,json:c,rootPath:Ft,onTransform:en?function(cn){en({operations:cn,json:c,transformedJson:ed(c,cn)})}:function(cn){r("onTransform",Ft,cn),ni(cn,function(Gn,hi){return{state:nt(nt({},vp(Gn,hi,Ft)),{},{selection:br(Ft,!1)})}})},onClose:function(){je=!1,Rs(),an&&an()}}))}function ln(){le.selection&&Gt({rootPath:uae(c,le.selection)})}function mn(Me){return ci.apply(this,arguments)}function ci(){return ci=or(_n().mark(function Me(ct){var Ft,en,an,cn,hi=arguments;return _n().wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:return Ft=!(hi.length>1&&void 0!==hi[1])||hi[1],e(16,le=TP(c,le,tr(ct))),yi.next=4,tc();case 4:if(!(en=$i(ct))){yi.next=14;break}if(r("scrollTo",{path:ct,elem:en,refContents:s}),an=s.getBoundingClientRect(),cn=en.getBoundingClientRect(),Ft){yi.next=12;break}if(!(cn.bottom>an.top&&cn.topFt.bottom-20&&y(ct,{container:s,offset:-(Ft.height-an-20),duration:0})}}function ai(Me,ct){(void 0!==Me.json||void 0!==Me?.text)&&(void 0!==u?J({text:u,json:void 0},Me,{contentErrors:Ar(),patchResult:ct}):void 0!==c&&J({text:void 0,json:c},Me,{contentErrors:Ar(),patchResult:ct}))}function ni(Me,ct){if(!b)return r("handlePatch",Me,ct),Nr(Me,ct)}function kr(Me,ct){var Ft=le,en=c,an=u,cn={json:c,text:u},Gn=Rn,hi=uu(c,le,[],lh),yi="function"==typeof ct?ct(Me,hi):void 0;e(10,c=yi&&void 0!==yi.json?yi.json:Me),e(16,le=yi&&void 0!==yi.state?yi.state:hi),e(11,u=void 0),e(23,Rn=!1),di(c),ki({previousJson:en,previousState:Ft,previousText:an,previousTextIsRepaired:Gn}),ai(cn,null)}function Fr(Me,ct){r("handleChangeText");var Ft=le,en=c,an=u,cn={json:c,text:u},Gn=Rn;try{e(10,c=U(Me)),e(16,le=uu(c,le,[],lh)),e(11,u=void 0),e(23,Rn=!1)}catch{try{e(10,c=U(Kd(Me))),e(16,le=uu(c,le,[],lh)),e(11,u=Me),e(23,Rn=!0)}catch{e(10,c=void 0),e(16,le=fk({json:c,expand:lh})),e(11,u=Me),e(23,Rn=!1)}}if("function"==typeof ct){var hi=ct(c,le);e(10,c=hi&&hi.json?hi.json:c),e(16,le=hi&&hi.state?hi.state:le)}di(c),ki({previousJson:en,previousState:Ft,previousText:an,previousTextIsRepaired:Gn}),ai(cn,null)}function jo(Me,ct){var Ft=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Me,expanded:ct,recursive:Ft}),e(16,le=ct?Ft?uu(c,le,Me,db):function XYe(t,n){return nt(nt({},t),{},{expandedMap:nt(nt({},t.expandedMap),{},ec({},dn(n),!0))})}(le,Me):Kse(le,Me)),le.selection&&!ct&&function KYe(t,n){return A0(t.focusPath,n)&&(t.focusPath.length>n.length||Js(t))}(le.selection,Me)&&et(void 0),setTimeout(function(){dk(l)||Rs()})}function ba(Me){r("openFind",{findAndReplace:Me}),e(19,Re=!1),e(20,Ze=!1),tc().then(function(){e(19,Re=!0),e(20,Ze=Me)})}function bd(Me,ct){r("handleExpandSection",Me,ct);var an,cn,Gn,Ft=dn(Me);e(16,(cn=Ft,Gn=ct,le=nt(nt({},an=le),{},{visibleSectionsMap:nt(nt({},an.visibleSectionsMap),{},ec({},cn,Jse(pk(an,cn).concat(Gn))))})))}function bu(Me){r("pasted json as text",Me),e(18,$=Me)}function xa(Me){je=!0;var Lo=m(aQe,{json:c,documentState:le,parser:j,showTip:Me.showTip,onEditKey:Jr,onEditValue:co,onToggleEnforceString:Ks,onCut:Cr,onCopy:Za,onPaste:$c,onRemove:qe,onDuplicate:Ke,onExtract:dt,onInsertBefore:vi,onInsert:In,onConvert:li,onInsertAfter:gi,onSort:At,onTransform:ln,onCloseContextMenu:function(){g(Lo),Rs()}},{left:Me.left,top:Me.top,offsetTop:Me.offsetTop,offsetLeft:Me.offsetLeft,width:Me.width,height:Me.height,anchor:Me.anchor,closeOnOuterClick:!0,onClose:function(){je=!1,Rs()}})}function Bl(Me){if(!b&&!yp(le.selection)){if(Me&&(Me.stopPropagation(),Me.preventDefault()),Me&&"contextmenu"===Me.type&&Me.target!==a)xa({left:Me.clientX,top:Me.clientY,width:260,height:336,showTip:!1});else{var ct,Ft=null===(ct=s)||void 0===ct?void 0:ct.querySelector(".jse-context-menu-pointer.jse-selected");if(Ft)xa({anchor:Ft,offsetTop:2,width:260,height:336,showTip:!1});else{var en,an=null===(en=s)||void 0===en?void 0:en.getBoundingClientRect();an&&xa({top:an.top+2,left:an.left+2,width:260,height:336,showTip:!1})}}return!1}}function xd(){return(xd=or(_n().mark(function Me(){var ct,Ft,en;return _n().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return r("apply pasted json",$),Ft=(ct=$).path,en=ct.contents,et(br(Ft,!1)),an.next=5,tc();case 5:ni([{op:"replace",path:dn(Ft),value:en}],function(cn,Gn){return{state:vp(cn,Gn,Ft)}});case 7:case"end":return an.stop()}},Me)}))).apply(this,arguments)}function Rs(){r("focus"),a&&(a.focus(),a.select())}function wd(Me){return ct=c,Ft=le,an=tr(en=Me),cn=[Bn(en)],(hi=(Gn=Mn(ct,an))?NP(Gn,Ft,cn):void 0)?br(an.concat(hi),!1):vf(en);var ct,Ft,en,an,cn,Gn,hi}function Cd(Me){i&&i.onDrag(Me)}function TT(){i&&i.onDragEnd()}return t.$$set=function(Me){"readOnly"in Me&&e(0,b=Me.readOnly),"externalContent"in Me&&e(50,C=Me.externalContent),"mainMenuBar"in Me&&e(1,D=Me.mainMenuBar),"navigationBar"in Me&&e(2,E=Me.navigationBar),"escapeControlCharacters"in Me&&e(51,B=Me.escapeControlCharacters),"escapeUnicodeCharacters"in Me&&e(52,z=Me.escapeUnicodeCharacters),"parser"in Me&&e(3,j=Me.parser),"parseMemoizeOne"in Me&&e(53,U=Me.parseMemoizeOne),"validator"in Me&&e(54,G=Me.validator),"validationParser"in Me&&e(55,X=Me.validationParser),"pathParser"in Me&&e(4,oe=Me.pathParser),"indentation"in Me&&e(5,P=Me.indentation),"onError"in Me&&e(6,W=Me.onError),"onChange"in Me&&e(56,J=Me.onChange),"onChangeMode"in Me&&e(57,H=Me.onChangeMode),"onRenderValue"in Me&&e(58,pe=Me.onRenderValue),"onRenderMenu"in Me&&e(7,A=Me.onRenderMenu),"onClassName"in Me&&e(59,N=Me.onClassName),"onFocus"in Me&&e(60,F=Me.onFocus),"onBlur"in Me&&e(61,q=Me.onBlur),"onSortModal"in Me&&e(62,V=Me.onSortModal),"onTransformModal"in Me&&e(63,ce=Me.onTransformModal),"onJSONEditorModal"in Me&&e(64,ve=Me.onJSONEditorModal)},t.$$.update=function(){var Me,ct;3145728&t.$$.dirty[1]&&e(73,st=yP({escapeControlCharacters:B,escapeUnicodeCharacters:z})),524288&t.$$.dirty[1]&&function vt(Me){void 0!==Me.json&&function(ct){if(void 0!==ct){var Ft=!dr(c,ct);if(r("update external json",{isChanged:Ft,currentlyText:void 0===c}),Ft){var en={json:c,text:u},an=le,cn=c,Gn=u,hi=Rn;e(10,c=ct),jn(c),e(11,u=void 0),e(23,Rn=!1),di(c),ki({previousJson:cn,previousState:an,previousText:Gn,previousTextIsRepaired:hi}),ai(en,null)}}}(Me.json),void 0!==Me.text&&function(ct){if(void 0!==ct&&void 0===C.json){var Ft=ct!==u;if(r("update external text",{isChanged:Ft}),Ft){var en={json:c,text:u},an=c,cn=le,Gn=u,hi=Rn;try{e(10,c=U(ct)),jn(c),e(11,u=ct),e(23,Rn=!1),Te=void 0}catch(yi){try{e(10,c=U(Kd(ct))),jn(c),e(11,u=ct),e(23,Rn=!0),Te=void 0,di(c)}catch{e(10,c=void 0),e(11,u=C.text),e(23,Rn=!1),Te=lk(u,yi.message||yi.toString())}}di(c),ki({previousJson:an,previousState:cn,previousText:Gn,previousTextIsRepaired:hi}),ai(en,null)}}}(Me.text)}(C),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&Ro(Ct,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Bi(c,G,j,X),4096&t.$$.dirty[0]&&e(24,(ct={},(Me=kt).forEach(function(Ft){ct[dn(Ft.path)]=Ft}),Me.forEach(function(Ft){for(var en=Ft.path;en.length>0;){var an=dn(en=tr(en));an in ct||(ct[an]={isChildError:!0,path:en,message:"Contains invalid data",severity:Jd.warning})}}),Si=ct)),512&t.$$.dirty[0]&&(i=s?function(Me){var ct,Ft;function en(hi){return hi<20?200:hi<50?400:1200}function an(){Me&&(Me.scrollTop+=.05*(ct||0))}function cn(hi){Ft&&hi===ct||(Gn(),KP("startAutoScroll",hi),ct=hi,Ft=setInterval(an,50))}function Gn(){Ft&&(KP("stopAutoScroll"),clearInterval(Ft),Ft=void 0,ct=void 0)}return KP("createAutoScrollHandler",Me),{onDrag:function(hi){if(Me){var yi=hi.clientY,Lo=Me.getBoundingClientRect(),js=Lo.top,Zo=Lo.bottom;yiZo?cn(en(yi-Zo)):Gn()}},onDragEnd:function(){Gn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Xr={readOnly:b,parser:j,normalization:st,getJson:ko,getDocumentState:Qo,findElement:$i,findNextInside:wd,focus:Rs,onPatch:ni,onInsert:Ye,onExpand:jo,onSelect:et,onFind:ba,onExpandSection:bd,onPasteJson:bu,onRenderValue:pe,onContextMenu:xa,onClassName:N||function(){},onDrag:Cd,onDragEnd:TT}),8192&t.$$.dirty[0]&&r("context changed",Xr)},[b,D,E,j,oe,P,W,A,function(){return Rn&&void 0!==c&&kr(c),{json:c,text:u}},s,c,u,kt,Xr,a,l,le,We,$,Re,Ze,Ve,wr,Rn,Si,o,Ot,function(){return Xn.apply(this,arguments)},function(){return on.apply(this,arguments)},function(Me,ct){return Ri.apply(this,arguments)},function(Me,ct){return hn.apply(this,arguments)},function(){e(19,Re=!1),e(20,Ze=!1),Ot(""),Rs()},function(Me){r("select validation error",Me),et(br(Me.path,!1)),mn(Me.path)},Za,function(Me){Me.preventDefault(),hue({clipboardText:Me.clipboardData.getData("text/plain"),json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onChangeText:Fr,openRepairModal:Ee})},xi,Sr,function(){Fe([])},function(){Gt({rootPath:[]})},function(){jo([],!0,!0)},function(){jo([],!1,!0)},function(Me){var ct=gp(Me),Ft=Me.shiftKey;if(r("keydown",{combo:ct,key:Me.key}),"Ctrl+X"===ct&&(Me.preventDefault(),Cr(!0)),"Ctrl+Shift+X"===ct&&(Me.preventDefault(),Cr(!1)),"Ctrl+C"===ct&&(Me.preventDefault(),Za(!0)),"Ctrl+Shift+C"===ct&&(Me.preventDefault(),Za(!1)),"Ctrl+D"===ct&&(Me.preventDefault(),Ke()),"Delete"!==ct&&"Backspace"!==ct||(Me.preventDefault(),qe()),"Insert"===ct&&(Me.preventDefault(),Ye("structure")),"Ctrl+A"===ct&&(Me.preventDefault(),et(br([],!1))),"Ctrl+Q"===ct&&Bl(Me),"ArrowUp"===ct||"Shift+ArrowUp"===ct){Me.preventDefault();var en=le.selection?aae(c,le,Ft,!0)||le.selection:T0(c,le);et(en),zn(en.focusPath)}if("ArrowDown"===ct||"Shift+ArrowDown"===ct){Me.preventDefault();var an=le.selection?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Lr(Pr)?Pr.focusPath:Bn(Pr.paths),xu=NP(Do,$l,lc),kd=xu,kh=xu;if(null===xu||null==kd||null==kh)return null;if(Sh){var Dd=NP(Do,zo(Mn(Do,lc))?Kse($l,lc):$l,lc);return null===Dd?null:rd(Pr)?Fs(Do,Dd,Dd):Js(Pr)?Fs(Do,kd,kh):Fs(Do,Pr.anchorPath,Dd)}if(ws(Pr)){var hx=Mn(Do,tr(xu));return Array.isArray(hx)?br(kh,!1):du(kh,!1)}return nr(Pr)?br(kh,!1):Js(Pr)?Fs(Do,kd,kh):Fs(Do,xu,xu)}(c,le,Ft,!0)||le.selection:T0(c,le);et(an),zn(an.focusPath)}if("ArrowLeft"===ct||"Shift+ArrowLeft"===ct){Me.preventDefault();var cn=le.selection?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=lae(Do,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),xu=lc.caret,kd=lc.previous;if(Sh)return Lr(Pr)?null:Fs(Do,Pr.anchorPath,Pr.focusPath);if(xu&&kd)return FP(kd);var Dd=Mn(Do,tr(Pr.focusPath));return nr(Pr)&&Array.isArray(Dd)?Fs(Do,Pr.focusPath,Pr.focusPath):Lr(Pr)&&!Array.isArray(Dd)?du(Pr.focusPath,!1):null}(c,le,Ft,!b)||le.selection:T0(c,le);et(cn),zn(cn.focusPath)}if("ArrowRight"===ct||"Shift+ArrowRight"===ct){Me.preventDefault();var Gn=le.selection&&void 0!==c?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=lae(Do,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),xu=lc.caret,kd=lc.next;return Sh?Lr(Pr)?null:Fs(Do,Pr.anchorPath,Pr.focusPath):xu&&kd?FP(kd):Lr(Pr)?br(Pr.focusPath,!1):null}(c,le,Ft,!b)||le.selection:T0(c,le);et(Gn),zn(Gn.focusPath)}if("Enter"===ct&&le.selection){if(!b&&Lr(le.selection)&&1===le.selection.paths.length){var hi=le.selection.focusPath,yi=Mn(c,tr(hi));Array.isArray(yi)&&et(br(hi,!1))}!b&&ws(le.selection)&&(Me.preventDefault(),et(nt(nt({},le.selection),{},{edit:!0}))),nr(le.selection)&&(Me.preventDefault(),zo(Mn(c,le.selection.focusPath))?jo(le.selection.focusPath,!0):b||et(nt(nt({},le.selection),{},{edit:!0})))}if(1===ct.replace(/^Shift\+/,"").length&&le.selection)return Me.preventDefault(),void Mr(Me.key);if("Enter"===ct&&(rd(le.selection)||Js(le.selection)))return Me.preventDefault(),void Mr("");if("Ctrl+Enter"===ct&&nr(le.selection)){var Lo=Mn(c,le.selection.focusPath);vS(Lo)&&window.open(String(Lo),"_blank")}if("Escape"===ct&&le.selection&&(Me.preventDefault(),et(void 0)),"Ctrl+F"===ct&&(Me.preventDefault(),ba(!1)),"Ctrl+H"===ct&&(Me.preventDefault(),ba(!0)),"Ctrl+Z"===ct){Me.preventDefault();var js=document.activeElement;js&&js.blur&&js.focus?(js.blur(),setTimeout(function(){xi(),setTimeout(function(){return js.select()})})):xi()}if("Ctrl+Shift+Z"===ct){Me.preventDefault();var Zo=document.activeElement;Zo&&Zo.blur&&Zo.focus?(Zo.blur(),setTimeout(function(){Sr(),setTimeout(function(){return Zo.select()})})):Sr()}},function(Me){r("handleMouseDown",Me),setTimeout(function(){setTimeout(function(){v||Ise(Me.target,"BUTTON")||(Rs(),le.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,le=nt(nt({},le),{},{selection:Fs(c||{},[],[])}))))})})},Bl,function(Me){b||xa({anchor:Fse(Me.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return xd.apply(this,arguments)},function(){r("clear pasted json"),e(18,$=void 0)},function(){H(Uo.text)},function(Me){et(Me),Rs(),mn(Me.focusPath)},function(Me){!ob(Me.target,function(Ft){return Ft===l})&&yp(le.selection)&&(r("click outside the editor, stop edit mode"),et(function(Ft){return ws(Ft)||nr(Ft)?nt(nt({},Ft),{},{edit:!1}):Ft}),v&&a&&(a.focus(),a.blur()),tc().then(function(){setTimeout(function(){a&&a.blur()})}))},C,B,z,U,G,X,J,H,pe,N,F,q,V,ce,ve,function(){var Me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:db;r("expand");var ct=nt(nt({},le),{},{expandedMap:{},visibleSectionsMap:{}});e(16,le=uu(c,ct,[],Me))},Ar,ko,Nr,Gt,mn,$i,Rs,st,Ct,function(Me){e(19,Re=Me)},function(Me){Xi[Me?"unshift":"push"](function(){e(14,a=Me)})},function(Me){Xi[Me?"unshift":"push"](function(){e(9,s=Me)})},function(Me){Xi[Me?"unshift":"push"](function(){e(15,l=Me)})}]}var m4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,aet,set,Pi,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},ZZe,[-1,-1,-1,-1,-1]),r}return Ie(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function cet(t){_i(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function bue(t){var n,e,i,r,o,s=[det,uet],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Dr()},m:function(c,u){a[e].m(c,u),$e(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Ht(),fe(a[d],1,1,function(){a[d]=null}),Ut(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){fe(i),o=!1},d:function(c){a[e].d(c),c&&Be(r)}}}function uet(t){var n;return{c:function(){n=sn("(Only available for arrays, not for objects)")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function det(t){var n,e;return n=new PJe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function xue(t){var n,e;return n=new m4({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:bo,onError:console.error,onChange:bo,onChangeMode:bo,onFocus:bo,onBlur:bo,onSortModal:bo,onTransformModal:bo,onJSONEditorModal:bo,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function het(t){var n,e;return{c:function(){n=De("div"),e=sn(t[17]),R(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){$e(i,n,r),me(n,e)},p:function(i,r){131072&r[0]&&ti(e,i[17])},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function fet(t){var n,e;return n=new m4({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:bo,onError:console.error,onChange:bo,onChangeMode:bo,onFocus:bo,onBlur:bo,onSortModal:bo,onTransformModal:bo,onJSONEditorModal:bo,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function pet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J,H,pe,A,N,F,q,V,ce,ve,je,Te,et,We,st,$,ae=t[21](t[0]).description+"";n=new GJe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new hr({props:{data:t[15]?hu:_p}});var le=t[15]&&bue(t);W=new hr({props:{data:t[16]?hu:_p}});var Re=t[16]&&xue(t),Ze=[fet,het],Ve=[];function Ct(Ot,yn){return Ot[17]?1:0}return q=Ct(t),V=Ve[q]=Ze[q](t),{c:function(){gt(n.$$.fragment),e=rt(),i=De("div"),r=De("div"),o=De("div"),(s=De("div")).innerHTML='
    Language
    ',a=rt(),l=De("div"),c=rt(),(u=De("div")).innerHTML='
    Path
    ',d=rt(),h=De("input"),p=rt(),m=De("div"),g=De("div"),v=De("button"),gt(y.$$.fragment),b=sn("\n Wizard"),C=rt(),le&&le.c(),D=rt(),(E=De("div")).innerHTML='
    Query
    ',B=rt(),z=De("textarea"),j=rt(),U=De("div"),G=De("div"),X=De("div"),oe=De("div"),P=De("button"),gt(W.$$.fragment),J=sn("\n Original"),H=rt(),Re&&Re.c(),pe=rt(),A=De("div"),(N=De("div")).innerHTML='
    Preview
    ',F=rt(),V.c(),ce=rt(),ve=De("div"),je=De("button"),Te=sn("Transform"),R(s,"class","jse-label svelte-107mggt"),R(l,"class","jse-description svelte-107mggt"),R(u,"class","jse-label svelte-107mggt"),R(h,"class","jse-path svelte-107mggt"),R(h,"type","text"),h.readOnly=!0,R(h,"title","Selected path"),h.value=f=Ji(t[1])?"(whole document)":cu(rc(t[1])),R(v,"type","button"),R(v,"class","svelte-107mggt"),R(g,"class","jse-label-inner svelte-107mggt"),R(m,"class","jse-label svelte-107mggt"),R(E,"class","jse-label svelte-107mggt"),R(z,"class","jse-query svelte-107mggt"),R(z,"spellcheck","false"),z.value=t[13],R(o,"class","jse-query-contents svelte-107mggt"),R(P,"type","button"),R(P,"class","svelte-107mggt"),R(oe,"class","jse-label-inner svelte-107mggt"),R(X,"class","jse-label svelte-107mggt"),R(G,"class","jse-original-data svelte-107mggt"),Nt(G,"jse-hide",!t[16]),R(N,"class","jse-label svelte-107mggt"),R(A,"class","jse-preview-data svelte-107mggt"),R(U,"class","jse-data-contents svelte-107mggt"),Nt(U,"jse-hide-original-data",!t[16]),R(r,"class","jse-main-contents svelte-107mggt"),R(je,"type","button"),R(je,"class","jse-primary svelte-107mggt"),je.disabled=et=!!t[17],R(ve,"class","jse-actions svelte-107mggt"),R(i,"class","jse-modal-contents svelte-107mggt")},m:function(Ot,yn){pt(n,Ot,yn),$e(Ot,e,yn),$e(Ot,i,yn),me(i,r),me(r,o),me(o,s),me(o,a),me(o,l),l.innerHTML=ae,me(o,c),me(o,u),me(o,d),me(o,h),me(o,p),me(o,m),me(m,g),me(g,v),pt(y,v,null),me(v,b),me(o,C),le&&le.m(o,null),me(o,D),me(o,E),me(o,B),me(o,z),me(r,j),me(r,U),me(U,G),me(G,X),me(X,oe),me(oe,P),pt(W,P,null),me(P,J),me(G,H),Re&&Re.m(G,null),me(U,pe),me(U,A),me(A,N),me(A,F),Ve[q].m(A,null),me(i,ce),me(i,ve),me(ve,je),me(je,Te),We=!0,st||($=[Rt(v,"click",t[25]),Rt(z,"input",t[23]),Rt(P,"click",t[26]),Rt(je,"click",t[24]),Ea(get.call(null,je))],st=!0)},p:function(Ot,yn){var Xn={};512&yn[0]&&(Xn.queryLanguages=Ot[9]),1&yn[0]&&(Xn.queryLanguageId=Ot[0]),n.$set(Xn),(!We||1&yn[0])&&ae!==(ae=Ot[21](Ot[0]).description+"")&&(l.innerHTML=ae),(!We||2&yn[0]&&f!==(f=Ji(Ot[1])?"(whole document)":cu(rc(Ot[1])))&&h.value!==f)&&(h.value=f);var on={};32768&yn[0]&&(on.data=Ot[15]?hu:_p),y.$set(on),Ot[15]?le?(le.p(Ot,yn),32768&yn[0]&&Q(le,1)):((le=bue(Ot)).c(),Q(le,1),le.m(o,D)):le&&(Ht(),fe(le,1,1,function(){le=null}),Ut()),(!We||8192&yn[0])&&(z.value=Ot[13]);var Ri={};65536&yn[0]&&(Ri.data=Ot[16]?hu:_p),W.$set(Ri),Ot[16]?Re?(Re.p(Ot,yn),65536&yn[0]&&Q(Re,1)):((Re=xue(Ot)).c(),Q(Re,1),Re.m(G,null)):Re&&(Ht(),fe(Re,1,1,function(){Re=null}),Ut()),(!We||65536&yn[0])&&Nt(G,"jse-hide",!Ot[16]);var hn=q;(q=Ct(Ot))===hn?Ve[q].p(Ot,yn):(Ht(),fe(Ve[hn],1,1,function(){Ve[hn]=null}),Ut(),(V=Ve[q])?V.p(Ot,yn):(V=Ve[q]=Ze[q](Ot)).c(),Q(V,1),V.m(A,null)),(!We||65536&yn[0])&&Nt(U,"jse-hide-original-data",!Ot[16]),(!We||131072&yn[0]&&et!==(et=!!Ot[17]))&&(je.disabled=et)},i:function(Ot){We||(Q(n.$$.fragment,Ot),Q(y.$$.fragment,Ot),Q(le),Q(W.$$.fragment,Ot),Q(Re),Q(V),We=!0)},o:function(Ot){fe(n.$$.fragment,Ot),fe(y.$$.fragment,Ot),fe(le),fe(W.$$.fragment,Ot),fe(Re),fe(V),We=!1},d:function(Ot){mt(n,Ot),Ot&&Be(e),Ot&&Be(i),mt(y),le&&le.d(),mt(W),Re&&Re.d(),Ve[q].d(),st=!1,po($)}}}function met(t){var n,e,i,r,o;return e=new $se({props:{$$slots:{default:[pet]},$$scope:{ctx:t}}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Ea(Nk.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function get(t){t.focus()}function vet(t,n,e){var i,r,o=Ma("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+R_():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,b=n.queryLanguageId,C=n.onChangeQueryLanguage,D=n.onRenderValue,E=n.onClassName,B=n.onTransform,z=Aa("simple-modal").close,j="".concat(a,":").concat(dn(u)),U=od[j]||{},G=!1!==od.showWizard,X=!1!==od.showOriginal,oe=U.queryOptions||{},P=b===U.queryLanguageId&&U.query?U.query:pe(b).createQuery(l,U.queryOptions||{}),W=U.isManual||!1,J=void 0,H={text:""};function pe(N){return y.find(function(F){return F.id===N})||y[0]}var A=p0(function(N,F){try{o("previewTransform",{query:F});var q=pe(b).executeQuery(N,F,p);e(18,H={json:q}),e(17,J=void 0)}catch(V){e(18,H={text:""}),e(17,J=V.toString())}},300);return t.$$set=function(N){"id"in N&&e(28,a=N.id),"json"in N&&e(29,l=N.json),"rootPath"in N&&e(1,u=N.rootPath),"indentation"in N&&e(2,d=N.indentation),"escapeControlCharacters"in N&&e(3,h=N.escapeControlCharacters),"escapeUnicodeCharacters"in N&&e(4,f=N.escapeUnicodeCharacters),"parser"in N&&e(5,p=N.parser),"parseMemoizeOne"in N&&e(6,m=N.parseMemoizeOne),"validationParser"in N&&e(7,g=N.validationParser),"pathParser"in N&&e(8,v=N.pathParser),"queryLanguages"in N&&e(9,y=N.queryLanguages),"queryLanguageId"in N&&e(0,b=N.queryLanguageId),"onChangeQueryLanguage"in N&&e(30,C=N.onChangeQueryLanguage),"onRenderValue"in N&&e(10,D=N.onRenderValue),"onClassName"in N&&e(11,E=N.onClassName),"onTransform"in N&&e(31,B=N.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Mn(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&A(i,P),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,od[j]={queryOptions:oe,query:P,queryLanguageId:b,isManual:W},od),o("store state in memory",j,od[j]))},[b,u,d,h,f,p,m,g,v,y,D,E,oe,P,i,G,X,J,H,r,z,pe,function(N){e(12,oe=N),e(13,P=pe(b).createQuery(l,N)),e(33,W=!1),o("updateQueryByWizard",{queryOptions:oe,query:P,isManual:W})},function(N){e(13,P=N.target.value),e(33,W=!0),o("handleChangeQuery",{query:P,isManual:W})},function(){try{o("handleTransform",{query:P});var N=pe(b).executeQuery(i,P,p);B([{op:"replace",path:dn(u),value:N}]),z()}catch(F){console.error(F),e(18,H={text:""}),e(17,J=F.toString())}},function(){e(15,G=!G),e(32,od.showWizard=G,od)},function(){e(16,X=!X),e(32,od.showOriginal=X,od)},function(N){o("handleChangeQueryLanguage",N),e(0,b=N),C(N);var F=pe(b);e(13,P=F.createQuery(l,oe)),e(33,W=!1)},a,l,C,B,od,W]}var yet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,vet,met,Pi,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},cet,[-1,-1]),r}return Ie(e)}(),kp={};function _et(t){_i(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function wue(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new ag({props:c}),Xi.push(function(){return Xu(o,"value",l)}),{c:function(){n=De("tr"),(e=De("th")).textContent="Property",i=rt(),r=De("td"),gt(o.$$.fragment),R(e,"class","svelte-1y818v2"),R(r,"class","svelte-1y818v2")},m:function(u,d){$e(u,n,d),me(n,e),me(n,i),me(n,r),pt(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],Yu(function(){return s=!1})),o.$set(h)},i:function(u){a||(Q(o.$$.fragment,u),a=!0)},o:function(u){fe(o.$$.fragment,u),a=!1},d:function(u){u&&Be(n),mt(o)}}}function Cue(t){var n,e;return{c:function(){n=De("div"),e=sn(t[5]),R(n,"class","jse-error svelte-1y818v2")},m:function(i,r){$e(i,n,r),me(n,e)},p:function(i,r){32&r&&ti(e,i[5])},d:function(i){i&&Be(n)}}}function bet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J;e=new e4({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&wue(t);function pe(F){t[15](F)}var A={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(A.value=t[2]),D=new ag({props:A}),Xi.push(function(){return Xu(D,"value",pe)});var N=t[5]&&Cue(t);return{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),o=De("table"),(s=De("colgroup")).innerHTML=' \n ',a=rt(),l=De("tbody"),c=De("tr"),(u=De("th")).textContent="Path",d=rt(),h=De("td"),f=De("input"),m=rt(),H&&H.c(),g=rt(),v=De("tr"),(y=De("th")).textContent="Direction",b=rt(),C=De("td"),gt(D.$$.fragment),B=rt(),z=De("div"),N&&N.c(),j=rt(),U=De("div"),G=De("button"),X=sn("Sort"),R(u,"class","svelte-1y818v2"),R(f,"class","jse-path svelte-1y818v2"),R(f,"type","text"),f.readOnly=!0,R(f,"title","Selected path"),f.value=p=Ji(t[0])?"(whole document)":cu(rc(t[0])),R(h,"class","svelte-1y818v2"),R(y,"class","svelte-1y818v2"),R(C,"class","svelte-1y818v2"),R(o,"class","svelte-1y818v2"),R(z,"class","jse-space svelte-1y818v2"),R(G,"type","button"),R(G,"class","jse-primary svelte-1y818v2"),G.disabled=oe=!!t[4]&&!t[1],R(U,"class","jse-actions svelte-1y818v2"),R(r,"class","jse-modal-contents svelte-1y818v2"),R(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(F,q){$e(F,n,q),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(o,s),me(o,a),me(o,l),me(l,c),me(c,u),me(c,d),me(c,h),me(h,f),me(l,m),H&&H.m(l,null),me(l,g),me(l,v),me(v,y),me(v,b),me(v,C),pt(D,C,null),me(r,B),me(r,z),N&&N.m(z,null),me(r,j),me(r,U),me(U,G),me(G,X),P=!0,W||(J=[Rt(G,"click",t[8]),Ea(xet.call(null,G)),Ea(Nk.call(null,n,t[6]))],W=!0)},p:function(F,q){var V=Jn(q,1)[0],ce={};16&V&&(ce.title=F[4]?"Sort array items":"Sort object keys"),e.$set(ce),(!P||1&V&&p!==(p=Ji(F[0])?"(whole document)":cu(rc(F[0])))&&f.value!==p)&&(f.value=p),F[4]&&(F[3].length>1||void 0===F[1])?H?(H.p(F,V),26&V&&Q(H,1)):((H=wue(F)).c(),Q(H,1),H.m(l,g)):H&&(Ht(),fe(H,1,1,function(){H=null}),Ut());var ve={};!E&&4&V&&(E=!0,ve.value=F[2],Yu(function(){return E=!1})),D.$set(ve),F[5]?N?N.p(F,V):((N=Cue(F)).c(),N.m(z,null)):N&&(N.d(1),N=null),(!P||18&V&&oe!==(oe=!!F[4]&&!F[1]))&&(G.disabled=oe)},i:function(F){P||(Q(e.$$.fragment,F),Q(H),Q(D.$$.fragment,F),P=!0)},o:function(F){fe(e.$$.fragment,F),fe(H),fe(D.$$.fragment,F),P=!1},d:function(F){F&&Be(n),mt(e),H&&H.d(),mt(D),N&&N.d(),W=!1,po(J)}}}function xet(t){t.focus()}function wet(t,n,e){var i,r,o,s=Ma("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=Aa("simple-modal").close,h="".concat(a,":").concat(dn(c)),f=Mn(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=kp[h]&&kp[h].selectedProperty||void 0,v=kp[h]&&kp[h].selectedDirection||p,y=void 0;return t.$$set=function(b){"id"in b&&e(9,a=b.id),"json"in b&&e(10,l=b.json),"rootPath"in b&&e(0,c=b.rootPath),"onSort"in b&&e(11,u=b.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?pP(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(sb):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,kp[h]={selectedProperty:g,selectedDirection:v},kp),s("store state in memory",h,kp[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var b,C;e(5,y=void 0);var D=null===(b=g)||void 0===b?void 0:b.value,E=null===(C=v)||void 0===C?void 0:C.value,B=Wce(l,c,D,E);u({operations:B,rootPath:c,itemPath:D,direction:E}),d()}catch(z){e(5,y=z.toString())}},a,l,u,kp,r,function(b){e(1,g=b),e(3,o),e(13,r),e(4,i)},function(b){e(2,v=b)}]}var Cet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wet,bet,Pi,{id:9,json:10,rootPath:0,onSort:11},_et),r}return Ie(e)}();function fh(){}function Rk(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function ket(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Det(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,b=n.canTransform,C=n.onRenderMenu;return t.$$set=function(D){"readOnly"in D&&e(1,s=D.readOnly),"onFormat"in D&&e(2,a=D.onFormat),"onCompact"in D&&e(3,l=D.onCompact),"onSort"in D&&e(4,c=D.onSort),"onTransform"in D&&e(5,u=D.onTransform),"onToggleSearch"in D&&e(6,d=D.onToggleSearch),"onUndo"in D&&e(7,h=D.onUndo),"onRedo"in D&&e(8,f=D.onRedo),"canUndo"in D&&e(9,p=D.canUndo),"canRedo"in D&&e(10,m=D.canRedo),"canFormat"in D&&e(11,g=D.canFormat),"canCompact"in D&&e(12,v=D.canCompact),"canSort"in D&&e(13,y=D.canSort),"canTransform"in D&&e(14,b=D.canTransform),"onRenderMenu"in D&&e(15,C=D.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:s4,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:iZe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!b},{type:"button",icon:HP,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=C(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,r]}var Tet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Det,ket,Pi,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Ie(e)}(),mo=function(){function t(){Oe(this,t)}return Ie(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),jk.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),jk.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new Sb(this),o=new Sb(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new Sb(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new kue(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Due(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new ld(n):jk.from(ld.split(n,[])):t.empty}}]),t}(),ld=function(t){Dt(e,mo);var n=Tt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function Eet(t){var n,e=-1,i=He(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return Oe(this,e),(r=n.call(this)).text=i,r.length=o,r}return Ie(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new Aet(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(Sue(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=Lk(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return _r(er(e.prototype),"replace",this).call(this,i,r,o);var s=Lk(this.text,Lk(o.text,Sue(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):jk.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=He(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=He(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),jk=function(t){Dt(e,mo);var n=Tt(e);function e(i,r){var o;Oe(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=He(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Ie(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return _r(er(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return _r(er(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=He(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Jn(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(j,U){return j+U.length+1},-1),s=0,a=He(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(j){a.e(j)}finally{a.f()}if(s<32){var c,u=[],d=He(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(j){d.e(j)}finally{d.f()}return new ld(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,b=[];function C(j){var U;if(j.lines>p&&j instanceof e){var G,X=He(j.children);try{for(X.s();!(G=X.n()).done;)C(G.value)}catch(oe){X.e(oe)}finally{X.f()}}else j.lines>m&&(v>m||!v)?(D(),g.push(j)):j instanceof ld&&v&&(U=b[b.length-1])instanceof ld&&j.lines+U.lines<=32?(v+=j.lines,y+=j.length+1,b[b.length-1]=new ld(U.text.concat(j.text),U.length+1+j.length)):(v+j.lines>f&&D(),v+=j.lines,y+=j.length+1,b.push(j))}function D(){0!=v&&(g.push(1==b.length?b[0]:e.from(b,y)),y=-1,v=b.length=0)}var E,B=He(i);try{for(B.s();!(E=B.n()).done;)C(E.value)}catch(j){B.e(j)}finally{B.f()}return D(),1==g.length?g[0]:new e(g,o)}}]),e}();function Lk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;Oe(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof ld?n.text.length:n.children.length)<<1]}return Ie(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof ld?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof ld){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof ld?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),kue=function(){function t(n,e,i){Oe(this,t),this.value="",this.done=!1,this.cursor=new Sb(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Ie(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),Due=function(){function t(n){Oe(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Ie(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(mo.prototype[Symbol.iterator]=function(){return this.iter()},Sb.prototype[Symbol.iterator]=kue.prototype[Symbol.iterator]=Due.prototype[Symbol.iterator]=function(){return this});for(var Aet=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Ie(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),U0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),Bk=1;Bkt)return U0[n-1]<=t;return!1}function Tue(t){return t>=127462&&t<=127487}function jl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?Oet:Eue)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function Eue(t,n,e){if(n==t.length)return n;n&&Aue(t.charCodeAt(n))&&Mue(t.charCodeAt(n-1))&&n--;var i=Wa(t,n);for(n+=Fc(i);n=0&&Tue(Wa(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function Oet(t,n,e){for(;n>0;){var i=Eue(t,n-2,e);if(i=56320&&t<57344}function Mue(t){return t>=55296&&t<56320}function Wa(t,n){var e=t.charCodeAt(n);if(!Mue(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return Aue(i)?i-56320+(e-55296<<10)+65536:e}function g4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Fc(t){return t<65536?1:2}var v4=/\r\n?|\n/,Ll=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ll||(Ll={})),z0=function(){function t(n){Oe(this,t),this.sections=n}return Ie(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ll.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Ll.Simple&&c>=n&&(i==Ll.TrackDel&&rn||i==Ll.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),cd=function(t){Dt(e,z0);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this,i)).inserted=r,o}return Ie(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return y4(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return _4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){y4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return z0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new kb(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&Dp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var b=y?"string"==typeof y?mo.of(y.split(o||v4)):y:mo.empty,C=b.length;if(m==v&&0==C)return;ml&&ml(s,m-l,-1),ml(s,v-m,C),Dp(a,s,b),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function Dp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function _4(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new kb(t),a=new kb(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);ml(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?cd.createSet(r,o):z0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new kb(t),s=new kb(n),a=!1;;){if(o.done&&s.done)return r?cd.createSet(i,r):z0.create(i);if(0==o.ins)ml(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;ml(i,l,u,a),r&&u&&Dp(r,i,s.text)}else-1==s.ins?(ml(i,o.off?0:o.len,l,a),r&&Dp(r,i,o.textBit(l))):(ml(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&Dp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else ml(i,0,s.ins,a),r&&Dp(r,i,s.text),s.next()}}var kb=function(){function t(n){Oe(this,t),this.set=n,this.i=0,this.next()}return Ie(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?mo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?mo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),$k=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.flags=i}return Ie(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return rn.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return rn.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return rn.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),rn=function(){function t(n,e){Oe(this,t),this.ranges=n,this.mainIndex=e}return Ie(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return $k.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return $k.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function Iue(t,n){var e,i=He(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var b4=0,oi=function(){function t(n,e,i,r,o){Oe(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=b4++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Ie(t,[{key:"of",value:function(n){return new Vk([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:x4),!!n.static,n.enables)}}]),t}();function x4(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var Vk=function(){function t(n,e,i,r){Oe(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=b4++}return Ie(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=He(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||w4(m,h)){var v=o(m);if(c?!Nue(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var b=Hk(g,y);if(r.dependencies.every(function(C){return C instanceof oi?g.facet(C)===m.facet(C):!(C instanceof qa)||g.field(C,!1)==m.field(C,!1)})||(c?Nue(v=o(m),b,s):s(v=o(m),b)))return m.values[l]=b,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function Nue(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,Fue.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(b4++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function Db(t){return function(n){return new Pue(n,t)}}var G0={highest:Db(0),high:Db(1),default:Db(2),low:Db(3),lowest:Db(4)},Pue=Ie(function t(n,e){Oe(this,t),this.inner=n,this.prec=e}),Tp=function(){function t(){Oe(this,t)}return Ie(t,[{key:"of",value:function(n){return new S4(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),S4=Ie(function t(n,e){Oe(this,t),this.compartment=n,this.inner=e}),Rue=function(){function t(n,e,i,r,o,s){for(Oe(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,C,D,E,B,z,o=[],s=Object.create(null),a=new Map,l=He((C=n,D=e,E=a,B=[[],[],[],[],[]],z=new Map,function j(U,G){var X=z.get(U);if(null!=X){if(X<=G)return;var oe=B[X].indexOf(U);oe>-1&&B[X].splice(oe,1),U instanceof S4&&E.delete(U.compartment)}if(z.set(U,G),Array.isArray(U)){var P,W=He(U);try{for(W.s();!(P=W.n()).done;)j(P.value,G)}catch(pe){W.e(pe)}finally{W.f()}}else if(U instanceof S4){if(E.has(U.compartment))throw new RangeError("Duplicate use of compartment in extensions");var J=D.get(U.compartment)||U.inner;E.set(U.compartment,J),j(J,G)}else if(U instanceof Pue)j(U.inner,U.prec);else if(U instanceof qa)B[G].push(U),U.provides&&j(U.provides,G);else if(U instanceof Vk)B[G].push(U),U.facet.extensions&&j(U.facet.extensions,2);else{var H=U.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(U,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));j(H,G)}}(C,2),B.reduce(function(U,G){return U.concat(G)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof qa?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(C){l.e(C)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var C=m[p];u[C.id]=h.length<<1,h.push(function(D){return C.slot(D)})},p=0,m=o;p>1;function N(F){for(var q=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function Hk(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var jue=oi.define(),Lue=oi.define({combine:function(t){return t.some(function(n){return n})},static:!0}),Bue=oi.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),$ue=oi.define(),Vue=oi.define(),Hue=oi.define(),Uue=oi.define({combine:function(t){return!!t.length&&t[0]}}),Ep=function(){function t(n,e){Oe(this,t),this.type=n,this.value=e}return Ie(t,null,[{key:"define",value:function(){return new Pet}}]),t}(),Pet=function(){function t(){Oe(this,t)}return Ie(t,[{key:"of",value:function(n){return new Ep(this,n)}}]),t}(),Ret=function(){function t(n){Oe(this,t),this.map=n}return Ie(t,[{key:"of",value:function(n){return new gr(this,n)}}]),t}(),gr=function(){function t(n,e){Oe(this,t),this.type=n,this.value=e}return Ie(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new Ret((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=He(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();gr.reconfigure=gr.define(),gr.appendConfig=gr.define();var oc=function(){function t(n,e,i,r,o,s){Oe(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&Iue(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Ie(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=He(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function jet(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=zue(u,k4(l,h,a.changes.newLength),!0))}return u==a?a:oc.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=He(c.facet($ue));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:jet(u,h))}}catch(b){d.e(b)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=cd.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=oc.create(c,f,a.selection&&a.selection.map(p),gr.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Vue),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof oc?y:Array.isArray(y)&&1==y.length&&y[0]instanceof oc?y[0]:Gue(c,W0(y),!1)}return a}(s):s)}oc.time=Ep.define(),oc.userEvent=Ep.define(),oc.addToHistory=Ep.define(),oc.remote=Ep.define();var Let=[];function W0(t){return null==t?Let:Array.isArray(t)?t:[t]}var D4,ls=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(ls||(ls={})),Bet=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{D4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Fo=function(){function t(n,e,i,r,o,s){Oe(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return Tb(this,i),Hk(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof cd?n:cd.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return mo.of(n.split(this.facet(t.lineSeparator)||v4))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(Tb(this,e),Hk(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof qa&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Uue)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=He(this.facet(jue));try{for(s.s();!(i=s.n()).done;){var a,c=He((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function $et(t){return function(n){if(!/\S/.test(n))return ls.Space;if(function(i){if(D4)return D4.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||Bet.test(o)))return!0}return!1}(n))return ls.Word;for(var e=0;e-1)return ls.Word;return ls.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=jl(i,a,!1);if(s(i.slice(c,a))!=ls.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:rn.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Rue.resolve(n.extensions||[],new Map),i=n.doc instanceof mo?n.doc:mo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||v4)),r=n.selection?n.selection instanceof rn?n.selection:rn.single(n.selection.anchor,n.selection.head):rn.single(0);return Iue(r,i.length),e.staticFacet(Lue)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function pu(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=He(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();cg.prototype.startSide=cg.prototype.endSide=0,cg.prototype.point=!1,cg.prototype.mapMode=Ll.TrackDel;var T4=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.value=i}return Ie(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function E4(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var Vet=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Ie(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),qo=function(){function t(n,e,i,r){Oe(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Ie(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=He(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(E4)),this.isEmpty)return i.length?t.of(i):this;for(var d=new que(this,null,-1).goto(0),h=0,f=[],p=new ug;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return A4.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return A4.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Wue(s,a,i),c=new Eb(s,l,o),u=new Eb(a,l,o);i.iterGaps(function(d,h,f){return Yue(c,d,u,h,f,r)}),i.empty&&0==i.length&&Yue(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Wue(o,s),l=new Eb(o,a,0).goto(i),c=new Eb(s,a,0).goto(i);;){if(l.to!=c.to||!O4(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new Eb(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new ug,o=He(n instanceof T4?[n]:i?function Het(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(E4);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();qo.empty=new qo([],[],null,-1),qo.empty.nextLayer=qo.empty;var ug=function(){function t(){Oe(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Ie(t,[{key:"finishChunk",value:function(n){this.chunks.push(new Vet(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(qo.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=qo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Wue(t,n,e){var i,r=new Map,o=He(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Ie(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=He(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)M4(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=He(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)M4(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),M4(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new que(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function M4(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var Eb=function(){function t(n,e,i){Oe(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=A4.from(n,e,i)}return Ie(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){Uk(this.active,n),Uk(this.activeTo,n),Uk(this.activeRank,n),this.minActive=Xue(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&Uk(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Yue(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&O4(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!O4(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function O4(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function Xue(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=jl(t,r)}return!0===i?-1:t.length}for(var Jue=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),N4=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Kue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Ap=function(){function t(n,e){Oe(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==wn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Ie(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Kue[Jue]||1;return Kue[Jue]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[N4]||new Uet(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),Gk=null,Uet=function(){function t(n){if(Oe(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(Gk)return n.adoptedStyleSheets=[Gk.sheet].concat(n.adoptedStyleSheets),n[N4]=Gk;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),Gk=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[N4]=this}return Ie(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Que=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),zet=typeof navigator<"u"&&/Mac/.test(navigator.platform),Get=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Wet=zet||Que&&+Que[1]<57,Ya=0;Ya<10;Ya++)Mp[48+Ya]=Mp[96+Ya]=String(Ya);for(Ya=1;Ya<=24;Ya++)Mp[Ya+111]="F"+Ya;for(Ya=65;Ya<=90;Ya++)Mp[Ya]=String.fromCharCode(Ya+32),Mb[Ya]=String.fromCharCode(Ya);for(var F4 in Mp)Mb.hasOwnProperty(F4)||(Mb[F4]=Mp[F4]);function Wk(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function q0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function qk(t,n){if(!n.anchorNode)return!1;try{return q0(t,n.anchorNode)}catch{return!1}}function Ob(t){return 3==t.nodeType?X0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function Yk(t,n,e,i){return!!e&&(Zue(t,n,e,i,-1)||Zue(t,n,e,i,1))}function Xk(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function Zue(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:Ib(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=Xk(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?Ib(t):0}}}function Ib(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var ede={left:0,right:0,top:0,bottom:0};function P4(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function qet(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var tde,Yet=function(){function t(){Oe(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Ie(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),Y0=null;function nde(t){if(t.setActive)return t.setActive();if(Y0)return t.focus(Y0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==Y0?{get preventScroll(){return Y0={preventScroll:!0},!0}}:void 0),!Y0){Y0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=tde||(tde=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function J0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function ide(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Pc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Oe(this,t),this.node=n,this.offset=e,this.precise=i}return Ie(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,Xk(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,Xk(n)+1,e)}}]),t}(),R4=[],Cs=function(){function t(){Oe(this,t),this.parent=null,this.dom=null,this.dirty=2}return Ie(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=He(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=He(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=rde(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=rde(i)}else if(1&this.dirty){var u,d=He(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==Ib(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R4;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function rde(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}Cs.prototype.breakAfter=0;var ode=function(){function t(n,e,i){Oe(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Ie(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function sde(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),si={mac:hde||/Mac/.test(Rc.platform),windows:/Win/.test(Rc.platform),linux:/Linux|X11/.test(Rc.platform),ie:Jk,ie_version:lde?j4.documentMode||6:B4?+B4[1]:L4?+L4[1]:0,gecko:cde,gecko_version:cde?+(/Firefox\/(\d+)/.exec(Rc.userAgent)||[0,0])[1]:0,chrome:!!$4,chrome_version:$4?+$4[1]:0,ios:hde,android:/Android\b/.test(Rc.userAgent),webkit:ude,safari:dde,webkit_version:ude?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=j4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},Nb=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).text=i,r}return Ie(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Pc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return V4(this.dom,i,r)}}]),e}(),dg=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Oe(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=He(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(Fn(r))}catch(u){l.e(u)}finally{l.f()}return r}return Ie(e,[{key:"setAttrs",value:function(i){if(ide(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),_r(er(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return mde(this,i)}},{key:"coordsAt",value:function(i,r){return vde(this,i,r)}}]),e}();function V4(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?si.chrome||si.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return si.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?P4(l,s<0):l||null}var H4=function(t){Dt(e,Cs);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Ie(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:P4(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){_r(er(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),fde=function(t){Dt(e,H4);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?U4(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Pc(s,Math.min(a,s.nodeValue.length))}):new Pc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?pde(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?U4(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return V4(a,l,c)}):V4(a,i,r)}},{key:"destroy",value:function(){var i;_r(er(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function U4(t,n,e,i,r,o){if(e instanceof dg){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=Cs.get(s);if(!a)return o(t,n);var l=q0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return mo.empty}}]),e}();function mde(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof dg&&r.length&&(i=r[r.length-1])instanceof dg&&i.mark.eq(n.mark)?gde(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function vde(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new yde(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new Fb(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=_de(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new Fb(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new Y4(i)}},{key:"set",value:function(i){return qo.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();Ci.none=qo.empty;var yde=function(t){Dt(e,Ci);var n=Tt(e);function e(i){var r;Oe(this,e);var o=_de(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Ie(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&W4(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();yde.prototype.point=!1;var Y4=function(t){Dt(e,Ci);var n=Tt(e);function e(i){return Oe(this,e),n.call(this,-2e8,-2e8,null,i)}return Ie(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&W4(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();Y4.prototype.mapMode=Ll.TrackBefore,Y4.prototype.point=!0;var Fb=function(t){Dt(e,Ci);var n=Tt(e);function e(i,r,o,s,a,l){var c;return Oe(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Ll.TrackBefore:Ll.TrackAfter:Ll.TrackDel,c}return Ie(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();function _de(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function X4(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}Fb.prototype.point=!0;var ud=function(t){Dt(e,Cs);var n=Tt(e);function e(){var i;return Oe(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Ie(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),ade(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){W4(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){gde(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=G4(r,this.attrs||{})),o&&(this.attrs=G4({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return mde(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(ide(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(q4(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),_r(er(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&Cs.get(s)instanceof dg;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=Cs.get(s))||void 0===o?void 0:o.isEditable)||si.ios&&this.children.some(function(l){return l instanceof Nb})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=He(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof Nb)||/[^ -~]/.test(s.text))return null;var a=Ob(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return vde(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return So.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),J4=function(t){Dt(e,Cs);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Ie(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(Kk(new z4(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(Kk(new Nb(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof Fb){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof Fb)if(i.block){var l=i.type;l!=So.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new J4(i.widget||new bde("div"),a,l))}else{var c=H4.create(i.widget||new bde("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(Kk(new z4(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(Kk(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=qo.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function Kk(t,n){var e,i=He(n);try{for(i.s();!(e=i.n()).done;)t=new dg(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var bde=function(t){Dt(e,Op);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).tag=i,r}return Ie(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),xde=oi.define(),wde=oi.define(),Cde=oi.define(),Sde=oi.define(),K4=oi.define(),kde=oi.define(),Dde=oi.define(),Tde=oi.define({combine:function(t){return t.some(function(n){return n})}}),Ede=oi.define({combine:function(t){return t.some(function(n){return n})}}),Ade=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;Oe(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Ie(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),Mde=gr.define({map:function(t,n){return t.map(n)}});function jc(t,n,e){var i=t.facet(Sde);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var Qk=oi.define({combine:function(t){return!t.length||t[0]}}),Ket=0,Pb=oi.define(),Ia=function(){function t(n,e,i,r){Oe(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Ie(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(Ket++,n,i.eventHandlers,function(a){var l=[Pb.of(a)];return s&&l.push(Rb.of(function(c){var u=c.plugin(a);return u?s(u):Ci.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),Q4=function(){function t(n){Oe(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Ie(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(jc(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){jc(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){jc(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),Ode=oi.define(),Z4=oi.define(),Rb=oi.define(),Ide=oi.define(),Nde=oi.define(),jb=oi.define(),K0=function(){function t(n,e,i,r){Oe(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Ie(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),Fde=function(){function t(n,e,i){Oe(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=cd.empty(this.startState.doc.length);var r,o=He(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new K0(l,c,u,d))}),this.changedRanges=a}return Ie(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),cs=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(cs||(cs={})),eR=cs.LTR,Qet=cs.RTL;function Pde(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),us=[];function $de(t){return[new Q0(0,t,0)]}var Vde="";function itt(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=Q0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=jl(t.text,s,u);if(Vde=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return rn.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=He(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=Cs.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=He(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=He(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Ude(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var zde=Ie(function t(n,e){Oe(this,t),this.node=n,this.offset=e,this.pos=-1}),Gde=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).view=i,r.compositionDeco=Ci.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new ud],r.children[0].setParent(Fn(r)),r.updateDeco(),r.updateInner([new K0(0,0,0,i.state.doc.length)],0),r}return Ie(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Ci.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=qde(a);if(!c)return Ci.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new Hde([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=Jet.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,b=v.off,C=o.findPos(l,-1);sde(this,C.i,C.off,y,b,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(si.gecko&&a.empty&&function rtt(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Pc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&Yk(l.node,l.offset,d.anchorNode,d.anchorOffset)&&Yk(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){si.android&&si.chrome&&i.dom.contains(d.focusNode)&&function ltt(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=Wk(i.view.root);if(h)if(a.empty){if(si.gecko){var f=function stt(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Pc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Pc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=Wk(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=ud.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||qk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=Cs.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=So.WidgetBefore&&a.type!=So.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==So.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==cs.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?Ob(g):[];if(v.length){var y=v[v.length-1],b=u?y.right-m.left:m.right-y.left;b>c&&(c=b,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?cs.RTL:cs.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=He(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof ud){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=Ob(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new ode(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(Ci.replace({widget:new Wde(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return Ci.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(Rb).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=He(this.view.state.facet(Nde).map(function(C){return C(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(C){f.e(C)}finally{f.f()}!function(C,D,E,B,z,j,U,G){for(var X=C.ownerDocument,oe=X.defaultView||window,P=C;P;)if(1==P.nodeType){var W=void 0,J=P==X.body;if(J)W=qet(oe);else{if(P.scrollHeight<=P.clientHeight&&P.scrollWidth<=P.clientWidth){P=P.assignedSlot||P.parentNode;continue}var H=P.getBoundingClientRect();W={left:H.left,right:H.left+P.clientWidth,top:H.top,bottom:H.top+P.clientHeight}}var pe=0,A=0;if("nearest"==z)D.top0&&D.bottom>W.bottom+A&&(A=D.bottom-W.bottom+A+U)):D.bottom>W.bottom&&(A=D.bottom-W.bottom+U,E<0&&D.top-A0&&D.right>W.right+pe&&(pe=D.right-W.right+pe+j)):D.right>W.right&&(pe=D.right-W.right+j,E<0&&D.left0&&e<=0)n=Ib(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var att=function(){function t(){Oe(this,t),this.changes=[]}return Ie(t,[{key:"compareRange",value:function(n,e){X4(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){X4(n,e,this.changes)}}]),t}();function ctt(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function utt(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function iR(t,n){return t.topn.top+1}function Xde(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function rR(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=Ob(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&iR(c,m)?c=Jde(c,m.bottom):u&&iR(u,m)&&(u=Xde(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var b=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Kde(i,b,e):d&&"false"!=i.contentEditable?rR(i,b,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Kde(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((si.chrome||si.gecko)&&X0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Qde(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=So.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:Zde(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,b=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var C=m.caretPositionFromPoint(c,u);C&&(y=C.offsetNode,b=C.offset)}else if(m.caretRangeFromPoint){var D=m.caretRangeFromPoint(c,u);D&&(b=D.startOffset,(!t.contentDOM.contains(y=D.startContainer)||si.safari&&function dtt(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return X0(t,i-1,i).getBoundingClientRect().left>e}(y,b,c)||si.chrome&&function htt(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():X0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,b,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var E=ud.find(t.docView,p);if(!E)return d>r.top+r.height/2?r.to:r.from;var B=rR(E.dom,c,u);y=B.node,b=B.offset}var z=t.docView.nearest(y);if(!z)return null;if(z.isWidget){var j=z.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+I4(s,o,t.state.tabSize)}function ehe(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=itt(r,o,s,a,e),u=Vde;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=rn.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function oR(t,n,e){for(var i=t.state.facet(Ide).map(function(a){return a(t)});;){var r,o=!1,s=He(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?rn.cursor(a,1):rn.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var ptt=function(){function t(n){var e=this;Oe(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=_a[s];n.contentDOM.addEventListener(s,function(l){ihe(n,l)&&i(a,l)},sR[s]),e.registeredEvents.push(s)};for(var o in _a)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(_a.mousedown,s)}),si.chrome&&102==si.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,si.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Ie(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=He(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){ihe(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=He(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){jc(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=He(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){jc(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,J0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(si.safari&&!si.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),the=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],mtt="dthko",nhe=[16,17,18,20,91,92,224,225];function Zk(t){return.7*t+8}var gtt=function(){function t(n,e,i,r){Oe(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Fo.allowMultipleSelections)&&(a=e,(l=n.state.facet(xde)).length?l[0](a):si.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(wde);return l.length?l[0](a):si.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=Wk(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=fhe(e))&&null}return Ie(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-Zk(o.left-n.clientX):n.clientX>=o.right&&(i=Zk(n.clientX-o.right)),n.clientY<=o.top?r=-Zk(o.top-n.clientY):n.clientY>=o.bottom&&(r=Zk(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function ihe(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=Cs.get(i))&&e.ignoreEvent(n))return!1;return!0}var _a=Object.create(null),sR=Object.create(null),rhe=si.ie&&si.ie_version<15||si.ios&&si.webkit_version<604;function ohe(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=aR&&i.selection.ranges.every(function(c){return c.empty})&&aR==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:rn.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:rn.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function she(t,n,e,i){if(1==i)return rn.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return rn.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=jl(h.text,f,!1):m=jl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=jl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=He(t.state.facet(Cde));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=che(s=t,a=n),c=fhe(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=che(s,d),m=she(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=she(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(b){return b.eq(m)})?function(b,C){for(var D=0;;D++)if(b.ranges[D].eq(C))return rn.create(b.ranges.slice(0,D).concat(b.ranges.slice(D+1)),b.mainIndex==D?0:b.mainIndex-(b.mainIndex>D?1:0))}(u,m):f?u.addRange(m):rn.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new gtt(t,n,i,o)),o&&t.observer.ignore(function(){return nde(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var ahe=function(t,n){return t>=n.top&&t<=n.bottom},lhe=function(t,n,e){return ahe(n,e)&&t>=e.left&&t<=e.right};function vtt(t,n,e,i){var r=ud.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&lhe(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&lhe(e,i,a)?1:s&&ahe(i,s)?-1:1}function che(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:vtt(t,e,n.clientX,n.clientY)}}var ytt=si.ie&&si.ie_version<=11,uhe=null,dhe=0,hhe=0;function fhe(t){if(!ytt)return t.detail;var n=uhe,e=hhe;return uhe=t,hhe=Date.now(),dhe=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(dhe+1)%3:1}function phe(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}_a.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},_a.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&phe(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(b){g.e(b)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){aR=o?i:null;var s=rhe?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var mhe=Ep.define();function ghe(t,n){var e,i=[],r=He(t.facet(Dde));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:mhe.of(!0)}):null}function vhe(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=ghe(t.state,n);e?t.dispatch(e):t.update([])}},10)}_a.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),vhe(t)},_a.blur=function(t){t.observer.clearSelectionRange(),vhe(t)},_a.compositionstart=_a.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},_a.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,si.chrome&&si.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},_a.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},_a.beforeinput=function(t,n){var e,i;if(si.chrome&&si.android&&(i=the.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var yhe=["pre-wrap","normal","pre-line","break-spaces"],_tt=function(){function t(n){Oe(this,t),this.lineWrapping=n,this.doc=mo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Ie(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return yhe.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;Oe(this,t),this.length=n,this.height=e,this.flags=i}return Ie(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Yo.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Yo.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),mh=function(t){Dt(e,_he);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this,i,r,So.Text)).collapsed=0,o.widgetHeight=0,o}return Ie(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof Z0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof Z0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):dd.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),Z0=function(t){Dt(e,dd);var n=Tt(e);function e(i){return Oe(this,e),n.call(this,i,0)}return Ie(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new hg(f.from,f.length,m,p,So.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new hg(v.from,v.length,o+u*g,u,So.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Yo.ByHeight)return this.blockAt(i,o,s,a);if(r==Yo.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new hg(c,l.to-c,0,0,So.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new hg(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,So.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new hg(m.from,m.length,p,v,So.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return dd.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new mh(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=dd.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),xtt=function(t){Dt(e,dd);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Ie(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Yo.ByPosNoHeight?Yo.ByPosNoHeight:Yo.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Yo.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=He(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&bhe(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?dd.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function bhe(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof Z0&&(i=t[n+1])instanceof Z0&&t.splice(n-1,3,new Z0(e.length+1+i.length))}var wtt=function(){function t(n,e){Oe(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Ie(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof mh?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new mh(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new mh(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new Z0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof mh)return n;var e=new mh(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=So.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=So.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof mh||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function Dtt(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var lR=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.size=i}return Ie(t,[{key:"draw",value:function(n){return Ci.replace({widget:new Ttt(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new eD(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?whe:new Att(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:Lb(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(Rb).filter(function(c){return"function"!=typeof c});var o=K0.extendWithRanges(n.changedRanges,function Ctt(t,n,e){var i=new Stt;return qo.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:cd.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(Ede)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?cs.RTL:cs.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?Dtt:ktt)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var b=n.docView.measureTextSize(),C=b.lineHeight,D=b.charWidth;(s=C>0&&r.refresh(o,C,D,v/D,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var E,B=He(this.viewports);try{for(B.s();!(E=B.n()).done;){var z=E.value,j=z.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(z);this.heightMap=(s?dd.empty().applyChanges(this.stateDeco,mo.empty,this.heightOracle,[new K0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new btt(z.from,j))}}catch(G){B.e(G)}finally{B.f()}r.heightChanged&&(c|=2)}var U=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return U&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||U)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new eD(r.lineAt(this.visibleTop-1e3*i,Yo.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Yo.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Yo.ByPos,o,0,0);l=new eD(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Yo.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Yo.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=cs.LTR&&!r)return[];var l,c=[],u=function X(oe,P,W,J){if(!(P-oeoe&&F=W.from&&ce.to<=W.to&&Math.abs(ce.from-oe)ve})});if(!q){if(P=P})){var V=e.moveToLineBoundary(rn.cursor(P),!1,!0).head;V>oe&&(P=V)}q=new lR(oe,P,i.gapSize(W,oe,P,J))}c.push(q)}},d=He(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||Lb(this.heightMap.lineAt(n,Yo.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return Lb(this.heightMap.lineAt(this.scaler.fromDOM(n),Yo.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return Lb(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),eD=Ie(function t(n,e){Oe(this,t),this.from=n,this.to=e});function Ett(t,n,e){var i=[],r=t,o=0;return qo.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function nD(t,n){var e,i=0,r=He(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var whe={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},Att=function(){function t(n,e,i){Oe(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Yo.ByPos,n,0,0).top,p=e.lineAt(h,Yo.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=He(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Ie(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),uR=Ap.newName(),Che=Ap.newName(),She=Ap.newName(),khe={"&light":"."+Che,"&dark":"."+She};function dR(t,n,e){return new Ap(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var Mtt=dR("."+uR,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},khe),Ott=Ie(function t(n,e,i,r){Oe(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,b=m.focusOffset;return g&&(p.push(new zde(g,v)),y==g&&b==v||p.push(new zde(y,b))),p}(n),c=new Hde(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?rn.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!q0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!q0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=rn.single(h,d)}});function Dhe(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||si.android&&n.text.length0&&J>0&&j.charCodeAt(W-1)==U.charCodeAt(J-1);)W--,J--;return"end"==X&&(G-=W+Math.max(0,P-Math.min(W,J))-P),W=W?P-G:0)+(J-W),W=P):J=J?P-G:0)+(W-J),J=P),{from:P,toA:W,toB:J}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(si.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:mo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(Qk)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(si.mac||si.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=rn.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:mo.of([" "])}):si.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=rn.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:mo.of([" "])}),e){var d=t.state;if(si.ios&&t.inputState.flushIOSKey(t)||si.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&J0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&J0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&J0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(kde).some(function(j){return j(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),b=qde(t)||t.state.doc.lineAt(r.head),C=r.to-e.to,D=r.to-r.from;h=d.changeByRange(function(j){if(j.from==r.from&&j.to==r.to)return{changes:g,range:v||j.map(g)};var U=j.to-C,G=U-y.length;if(j.to-j.from!=D||t.state.sliceDoc(G,U)!=y||b&&j.to>=b.from&&j.from<=b.to)return{range:j};var X=d.changes({from:G,to:U,insert:e.insert}),oe=j.to-r.to;return{changes:X,range:v?rn.range(Math.max(0,v.anchor+oe),Math.max(0,v.head+oe)):j.map(X)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var E="input.type";return t.composing&&(E+=".compose",t.inputState.compositionFirstChange&&(E+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:E}),!0}if(i&&!i.main.eq(r)){var B=!1,z="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(B=!0),z=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:B,userEvent:z}),!0}return!1}var Itt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},hR=si.ie&&si.ie_version<=11,Ntt=function(){function t(n){var e=this;Oe(this,t),this.view=n,this.active=!1,this.selectionRange=new Yet,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=He(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(si.ie&&si.ie_version<=11||si.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),hR&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Ie(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=He(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(Qk)?i.root.activeElement==this.dom:qk(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(si.ie&&si.ie_version<=11||si.android&&si.chrome)&&!i.state.selection.main.empty&&r.focusNode&&Yk(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=si.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(Yk(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||Wk(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=qk(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=He(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=He(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&qk(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new Ott(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=Dhe(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=The(e,n.previousSibling||n.target.previousSibling,-1),r=The(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=He(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function The(t,n,e){for(;n;){var i=Cs.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Qn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function Xet(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new xhe(e.state||Fo.create(e)),this.plugins=this.state.facet(Pb).map(function(s){return new Q4(s)});var i,r=He(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new Ntt(this),this.inputState=new ptt(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Gde(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Ie(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof oc?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=He(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(j){l.e(j)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(j){return j.annotation(mhe)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=ghe(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Fo.phrases)!=this.state.facet(Fo.phrases))return this.setState(a);(i=Fde.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=He(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var b=y.state.selection.main;m=new Ade(b.empty?b:rn.cursor(b.head,b.head>b.anchor?-1:1))}var C,D=He(y.effects);try{for(D.s();!(C=D.n()).done;){var E=C.value;E.is(Mde)&&(m=E.value)}}catch(j){D.e(j)}finally{D.f()}}}catch(j){v.e(j)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=Ahe.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(jb)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(j){return j.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(iD)!=i.state.facet(iD)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var B,z=He(this.state.facet(K4));try{for(z.s();!(B=z.n()).done;)(0,B.value)(i)}catch(j){z.e(j)}finally{z.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!Dhe(e,p)&&f.force&&J0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=He(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new xhe(n),this.plugins=n.facet(Pb).map(function(a){return new Q4(a)}),this.pluginMap.clear();var o,s=He(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Gde(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(Pb),i=n.state.facet(Pb);if(e!=i){var r,o=[],s=He(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new Q4(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=He(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=He(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(j){try{return j.read(n)}catch(U){return jc(n.state,U),Ehe}}),g=Fde.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var b=0;b1||D<-1)&&(this.scrollDOM.scrollTop+=D,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var E,B=He(this.state.facet(K4));try{for(B.s();!(E=B.n()).done;)(0,E.value)(i)}catch(j){B.e(j)}finally{B.f()}}}}},{key:"themeClasses",get:function(){return uR+" "+(this.state.facet(cR)?She:Che)+" "+this.state.facet(iD)}},{key:"updateAttrs",value:function(){var n=this,e=Mhe(this,Ode,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Qk)?"true":"false",class:"cm-content",style:"".concat(si.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),Mhe(this,Z4,i);var r=this.observer.ignore(function(){var o=q4(n.contentDOM,n.contentAttrs,i),s=q4(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=He(n);try{for(r.s();!(e=r.n()).done;){var o,s=He(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(jb),Ap.mount(this.root,this.styleModules.concat(Mtt).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==cs.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return rn.cursor(l,e?-1:1)}var c=ud.find(t.docView,n.head);return rn.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return oR(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return rn.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var b=u+(v+y)*c,C=Qde(r,{x:g,y:b},!1,c);if(bh.bottom||(c<0?Cl))return rn.cursor(C,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Qde(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return P4(i,o[Q0.find(o,n-r.from,-1,e)].dir==cs.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(Tde)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>Ftt)return $de(n.length);var e,i=this.textDirectionAt(n.from),r=He(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==eR?1:2,d=l==eR?2:1;if(!a||1==u&&!ntt.test(a))return $de(c);for(var h=0,f=u,p=u;h=0;oe-=3)if(ph[oe+1]==-z){var P=ph[oe+2],W=2&P?u:4&P?1&P?d:u:0;W&&(us[U]=us[ph[oe]]=W),G=oe;break}}else{if(189==ph.length)break;ph[G++]=U,ph[G++]=B,ph[G++]=X}else if(2==(j=us[U])||1==j){var J=j==u;X=J?0:1;for(var H=G-3;H>=0;H-=3){var pe=ph[H+2];if(2&pe)break;if(J)ph[H+2]|=2;else{if(4&pe)break;ph[H+2]|=4}}}for(var A=0;Aje;){for(var We=et,st=2!=us[--et];et>je&&st==(2!=us[et-1]);)et--;ce.push(new Q0(et,We,st?2:1))}else ce.push(new Q0(je,ve,0))}else for(var $=0;$Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){nde(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=He(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Mde.of(new Ade("number"==typeof n?rn.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return Ia.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=Ap.newName(),r=[iD.of(i),jb.of(dR(".".concat(i),n))];return e&&e.dark&&r.push(cR.of(!0)),r}},{key:"baseTheme",value:function(n){return G0.lowest(jb.of(dR("."+uR,n,khe)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&Cs.get(i)||Cs.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Qn.styleModule=jb,Qn.inputHandler=kde,Qn.focusChangeEffect=Dde,Qn.perLineTextDirection=Tde,Qn.exceptionSink=Sde,Qn.updateListener=K4,Qn.editable=Qk,Qn.mouseSelectionStyle=Cde,Qn.dragMovesSelection=wde,Qn.clickAddsSelectionRange=xde,Qn.decorations=Rb,Qn.atomicRanges=Ide,Qn.scrollMargins=Nde,Qn.darkTheme=cR,Qn.contentAttributes=Z4,Qn.editorAttributes=Ode,Qn.lineWrapping=Qn.contentAttributes.of({class:"cm-lineWrapping"}),Qn.announce=gr.define();var Ftt=4096,Ehe={},Ahe=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Ie(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:cs.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&G4(s,e)}return e}var Ptt=si.mac?"mac":si.windows?"win":si.linux?"linux":"key";function rD(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var jtt=G0.default(Qn.domEventHandlers({keydown:function(t,n){return Nhe(Ihe(n.state),t,n,"editor")}})),oD=oi.define({enables:jtt}),Ohe=new WeakMap;function Ihe(t){var n=t.facet(oD),e=Ohe.get(n);return e||Ohe.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ptt,s=Object.create(null),a=Object.create(null),l=function(E,B){var z=a[E];if(null==z)a[E]=B;else if(z!=B)throw new Error("Key binding "+E+" is used both as a regular binding and as a multi-stroke prefix")},c=function(E,B,z,j){for(var U,G,X=s[E]||(s[E]=Object.create(null)),oe=B.split(/ (?!$)/).map(function(pe){return function Rtt(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==cs.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=Fhe(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=Rhe(t,i),f=Rhe(t,r),p=h.type==So.Text?h:null,m=f.type==So.Text?f:null;if(t.lineWrapping&&(p&&(p=Phe(t,i,p)),m&&(m=Phe(t,r,m))),p&&m&&p.from==m.from)return C(D(e.from,e.to,p));var g=p?D(e.from,null,p):E(h,!1),v=m?D(null,e.to,m):E(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(b(u,g.bottom,d,v.top)):g.bottomW&&pe.from=N)break;je>A&&oe(Math.max(ve,A),null==B&&ve<=W,Math.min(je,N),null==z&&je>=J,ce.dir)}}catch(Te){V.e(Te)}finally{V.f()}if((A=q.to+1)>=N)break}}}catch(Te){H.e(Te)}finally{H.f()}return 0==X.length&&oe(W,null==B,J,null==z,t.textDirection),{top:U,bottom:G,horizontal:X}}function E(B,z){var j=a.top+(z?B.top:B.bottom);return{top:j,bottom:j,horizontal:[]}}}(n,e,i)}}]),t}();function Fhe(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==cs.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function Phe(t,n,e){var i=rn.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:So.Text}}function Rhe(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=He(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==So.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var Btt=function(){function t(n,e){Oe(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Ie(t,[{key:"update",value:function(n){n.startState.facet(sD)!=n.state.facet(sD)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(sD);e0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,Htt,Utt,Ede.of(!0)]}function Bhe(t){return t.startState.facet(Bb)!=t.state.facet(Bb)}var Vtt=jhe({above:!0,markers:function(t){var n,e=t.state,i=e.facet(Bb),r=[],o=He(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||Lhe:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:rn.cursor(s.head,s.head>s.anchor?-1:1),d=He(fR.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=Bhe(t);return e&&$he(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){$he(n.state,t)},class:"cm-cursorLayer"});function $he(t,n){n.style.animationDuration=t.facet(Bb).cursorBlinkRate+"ms"}var Htt=jhe({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:fR.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||Bhe(t)},class:"cm-selectionLayer"}),Vhe={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Lhe&&(Vhe[".cm-line"].caretColor="transparent !important");var Utt=G0.highest(Qn.theme(Vhe)),Hhe=gr.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),$b=qa.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Hhe)?i.value:e},t)}}),ztt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Ie(t,[{key:"update",value:function(n){var e,i=n.state.field($b);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field($b)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field($b),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field($b)!=n&&this.view.dispatch({effects:Hhe.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Uhe(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var Gtt=function(){function t(n){Oe(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Ie(t,[{key:"createDeco",value:function(n){var e,i=this,r=new ug,o=r.add.bind(r),s=He(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=He(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(b){m.e(b)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Uhe(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=He(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),pR=null!=/x/.unicode?"gu":"g",Wtt=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",pR),qtt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},mR=null,aD=oi.define({combine:function(t){var n=pu(t,{render:null,specialChars:Wtt,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==mR&&typeof document<"u"&&document.body){var i=document.body.style;mR=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return mR||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,pR)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,pR)),n}});function Ytt(){return[aD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),zhe||(zhe=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.decorations=Ci.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(aD)),this.decorations=this.decorator.createDeco(n)}return Ie(t,[{key:"makeDecorator",value:function(n){var e=this;return new Gtt({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Wa(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=Ab(l.text,c,o-l.from);return Ci.replace({widget:new Ktt((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=Ci.replace({widget:new Jtt(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(aD);n.startState.facet(aD)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var zhe=null,Jtt=function(t){Dt(e,Op);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this)).options=i,o.code=r,o}return Ie(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(qtt[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Ktt=function(t){Dt(e,Op);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).width=i,r}return Ie(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Qtt=Ci.line({class:"cm-activeLine"}),Ztt=Ia.fromClass(function(){function t(n){Oe(this,t),this.decorations=this.getDeco(n)}return Ie(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=He(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(Qtt.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return Ci.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ghe(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):Ab(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function tnt(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Qn.mouseSelectionStyle.of(function(e,i){return n(i)?function ent(t,n){var e=Ghe(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ghe(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(rn.range(y.from+m,y.to+g))}else for(var b=Math.min(u.col,d.col),C=Math.max(u.col,d.col),D=h;D<=f;D++){var E=c.doc.line(D),B=I4(E.text,b,c.tabSize,!0);if(B<0)p.push(rn.cursor(E.to));else{var z=I4(E.text,C,c.tabSize);p.push(rn.range(E.from+B,E.from+z))}}return p}(t.state,e,a);return l.length?rn.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var nnt={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},int={style:"cursor: crosshair"};function rnt(){var n=Jn(nnt[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=Ia.fromClass(function(){function o(s){Oe(this,o),this.view=s,this.isDown=!1}return Ie(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Qn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?int:null})]}var Whe=function(){function t(n,e,i){Oe(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Ie(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=He(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Ie(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=He(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(gR);if(r.position!=this.position){this.position=r.position;var o,s=He(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=He(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=He(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(gR).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=qhe.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||ant,v=this.view.textDirection==cs.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),b=!!a.above;!a.strictSide&&(b?u.top-(d.bottom-d.top)-g.yr.bottom)&&b==r.bottom-u.bottom>u.top-r.top&&(b=!b);var C=(b?u.top-r.top:r.bottom-u.bottom)-f;if(Cy&&j.topD&&(D=b?j.top-m-2-f:j.bottom+f+2)}}catch(U){z.e(U)}finally{z.f()}}"absolute"==this.position?(c.style.top=D-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=D+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:D,right:E,bottom:D+m}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=He(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),snt=Qn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ant={x:0,y:0},lD=oi.define({enables:[Yhe,snt]}),cD=oi.define(),lnt=function(){function t(n){var e=this;Oe(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Whe(n,cD,function(i){return e.createHostedView(i)})}return Ie(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=He(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=He(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),cnt=lD.compute([cD],function(t){var n=t.facet(cD).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,ui(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,ui(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:lnt.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),unt=function(){function t(n,e,i,r,o){Oe(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Ie(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==cs.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=gr.define(),i=qa.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Ll.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=He(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(fnt)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return cD.from(r)}});return[i,Ia.define(function(r){return new unt(r,t,i,e,n.hoverTime||300)}),cnt]}var fnt=gr.define(),Jhe=oi.define({combine:function(t){var n,e,i,r=He(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function Vb(t,n){var e=t.plugin(Khe),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Khe=Ia.fromClass(function(){function t(n){Oe(this,t),this.input=n.state.facet(Hb),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Jhe);this.top=new uD(n,!0,e.topContainer),this.bottom=new uD(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=He(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Ie(t,[{key:"update",value:function(n){var e=n.state.facet(Jhe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new uD(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new uD(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(Hb);if(i!=this.input){var r,o=i.filter(function(C){return C}),s=[],a=[],l=[],c=[],u=He(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(C){u.e(C)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),ife=function(){function t(n,e){var i=this;Oe(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=tfe(e.markers(n)),e.initialSpacer&&(this.spacer=new rfe(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Ie(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=tfe(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!qo.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=He(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),rfe=function(){function t(n,e,i,r){Oe(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Ie(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),efe(),ynt]}function ofe(t){for(var n=9;ni&&(i=s,e.push(bnt.range(s)))}}catch(a){r.e(a)}finally{r.f()}return qo.of(e)}),wnt=0,bR=Ie(function t(n,e){Oe(this,t),this.from=n,this.to=e}),xr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,t),this.id=wnt++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Ie(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=mu.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();xr.closedBy=new xr({deserialize:function(t){return t.split(" ")}}),xr.openedBy=new xr({deserialize:function(t){return t.split(" ")}}),xr.group=new xr({deserialize:function(t){return t.split(" ")}}),xr.contextHash=new xr({perNode:!0}),xr.lookAhead=new xr({perNode:!0}),xr.mounted=new xr({perNode:!0});var Cnt=Object.create(null),mu=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Ie(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(xr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):Cnt,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=He(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=He(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(xr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();mu.none=new mu("",Object.create(null),0,8);var Xa,Snt=function(){function t(n){Oe(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=hD.get(this)||this.topNode,r=new mD(i);return r.moveTo(n,e),hD.set(this,r._tree),r}},{key:"topNode",get:function(){return new Gb(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t1(hD.get(this)||this.topNode,n,e,!1);return hD.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t1(sfe.get(this)||this.topNode,n,e,!0);return sfe.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|Xa.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:CR(mu.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(mu.none,i,r,o)})}}],[{key:"build",value:function(n){return function Tnt(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new knt(e,e.length):e,d=i.types,h=0,f=0;function p(D,E,B,z,j){for(var U=u.id,G=u.start,X=u.end,oe=u.size,P=f;oe<0;){if(u.next(),-1==oe)return B.push(a[U]),void z.push(G-D);if(-3==oe)return void(h=U);if(-4==oe)return void(f=U);throw new RangeError("Unrecognized record size: ".concat(oe))}var J,H,st,pe=d[U],A=G-D;if(X-G<=o&&(H=function(st,$){var ae=u.fork(),le=0,Re=0,Ze=0,Ve=ae.end-o,Ct={size:0,start:0,skip:0};e:for(var Ot=ae.pos-st;ae.pos>Ot;){var yn=ae.size;if(ae.id==$&&yn>=0)Ct.size=le,Ct.start=Re,Ct.skip=Ze,Ze+=4,le+=4,ae.next();else{var Xn=ae.pos-yn;if(yn<0||Xn=c?4:0,Ri=ae.start;for(ae.next();ae.pos>Xn;){if(ae.size<0){if(-3!=ae.size)break e;on+=4}else ae.id>=c&&(on+=4);ae.next()}Re=Ri,le+=yn,Ze+=on}}return($<0||le==st)&&(Ct.size=le,Ct.start=Re,Ct.skip=Ze),Ct.size>4?Ct:void 0}(u.pos-E,j))){for(var N=new Uint16Array(H.size-H.skip),F=u.pos-H.size,q=N.length;u.pos>F;)q=v(H.start,N,q);J=new zb(N,X-H.start,i),A=H.start-D}else{var V=u.pos-oe;u.next();for(var ce=[],ve=[],je=U>=c?U:-1,Te=0,et=X;u.pos>V;)je>=0&&u.id==je&&u.size>=0?(u.end<=et-o&&(m(ce,ve,G,Te,u.end,et,je,P),Te=ce.length,et=u.end),u.next()):p(G,V,ce,ve,je);if(je>=0&&Te>0&&Te-1&&Te>0){var We=(st=pe,function($,ae,le){var Re,Ze,Ve=0,Ct=$.length-1;if(Ct>=0&&(Re=$[Ct])instanceof Ja){if(!Ct&&Re.type==st&&Re.length==le)return Re;(Ze=Re.prop(xr.lookAhead))&&(Ve=ae[Ct]+Re.length+Ze)}return g(st,$,ae,le,Ve)});J=CR(pe,ce,ve,0,ce.length,0,X-G,We,We)}else J=g(pe,ce,ve,X-G,P-X)}B.push(J),z.push(A)}function m(D,E,B,z,j,U,G,X){for(var oe=[],P=[];D.length>z;)oe.push(D.pop()),P.push(E.pop()+B-j);D.push(g(i.types[G],oe,P,U-j,X-U)),E.push(j-B)}function g(D,E,B,z){var j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,U=arguments.length>5?arguments[5]:void 0;if(h){var G=[xr.contextHash,h];U=U?[G].concat(U):[G]}if(j>25){var X=[xr.lookAhead,j];U=U?[X].concat(U):[X]}return new Ja(D,E,B,z,U)}function v(D,E,B){var z=u.id,j=u.start,U=u.end,G=u.size;if(u.next(),G>=0&&z4)for(var oe=u.pos-(G-4);u.pos>oe;)B=v(D,E,B);E[--B]=X,E[--B]=U-D,E[--B]=j-D,E[--B]=z}else-3==G?h=z:-4==G&&(f=z);return B}for(var y=[],b=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,b,-1);var C=null!==(n=t.length)&&void 0!==n?n:y.length?b[0]+y[0].length:0;return new Ja(d[t.topID],y.reverse(),b.reverse(),C)}(n)}}]),t}();Ja.empty=new Ja(mu.none,[],[],0);var knt=function(){function t(n,e){Oe(this,t),this.buffer=n,this.index=e}return Ie(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),zb=function(){function t(n,e,i){Oe(this,t),this.buffer=n,this.length=e,this.set=i}return Ie(t,[{key:"type",get:function(){return mu.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function lfe(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function t1(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(afe(r,i,h,h+d.length))if(d instanceof zb){if(o&Xa.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new xR(new Dnt(s,d,n,h),null,f)}else if(o&Xa.IncludeAnonymous||!d.type.isAnonymous||wR(d)){var p=void 0;if(!(o&Xa.IgnoreMounts)&&d.props&&(p=d.prop(xr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&Xa.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&Xa.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&Xa.IgnoreOverlays)&&(i=this._tree.prop(xr.mounted))&&i.overlay){var o,s=n-this.from,a=He(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new mD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return lfe(this,n)}},{key:"getChild",value:function(n){var r=fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return pD(this,n)}}]),t}();function fD(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function pD(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var Dnt=Ie(function t(n,e,i,r){Oe(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),xR=function(){function t(n,e,i){Oe(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Ie(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&Xa.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new mD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new Ja(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return lfe(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return pD(this,n)}}]),t}(),mD=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Oe(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof Gb)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Ie(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof Gb?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&Xa.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&Xa.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&Xa.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&Xa.IncludeAnonymous||u instanceof zb||!u.type.isAnonymous||wR(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return pD(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function wR(t){return t.children.some(function(n){return n instanceof zb||!n.type.isAnonymous||wR(n)})}var cfe=new WeakMap;function gD(t,n){if(!t.isAnonymous||n instanceof zb||n.type!=t)return 1;var e=cfe.get(n);if(null==e){e=1;var i,r=He(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof Ja)){e=1;break}e+=gD(t,o)}}catch(s){r.e(s)}finally{r.f()}cfe.set(n,e)}return e}function CR(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;B+=z}if(C==D+1){if(B>d){var j=m[D];p(j.children,j.positions,0,j.children.length,g[D]+b);continue}h.push(m[D])}else h.push(CR(t,m,g,D,C,E,g[C-1]+m[C-1].length-E,null,l));f.push(E+b-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var vD=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Oe(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Ie(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=He(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:dfe.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),Mnt=0,dfe=function(){function t(){Oe(this,t),this.instances=[],this.id=Mnt++}return Ie(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,b){return y==v[b]});var g,v});if(i)return i;var r,o=[],s=new Np(o,n,e),a=He(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=hfe(e),u=He(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=He(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function hfe(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new Ont(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return pfe.add(n)}var pfe=new xr,Ont=function(){function t(n,e,i,r){Oe(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Ie(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new Fnt(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var SR,Fnt=function(){function t(n,e,i){Oe(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Ie(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function(B){return!B.scope||B.scope(s)}));for(var c=r,u=s.prop(pfe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=Int(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(xr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function(B){return!B.scope||B.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var b=v=C)&&n.nextSibling()););if(!b||C>i)break;(y=b.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,b.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),Dn=Np.define,yD=Dn(),Fp=Dn(),gfe=Dn(Fp),vfe=Dn(Fp),Pp=Dn(),_D=Dn(Pp),kR=Dn(Pp),vh=Dn(),fg=Dn(vh),yh=Dn(),_h=Dn(),DR=Dn(),Wb=Dn(DR),bD=Dn(),gn={comment:yD,lineComment:Dn(yD),blockComment:Dn(yD),docComment:Dn(yD),name:Fp,variableName:Dn(Fp),typeName:gfe,tagName:Dn(gfe),propertyName:vfe,attributeName:Dn(vfe),className:Dn(Fp),labelName:Dn(Fp),namespace:Dn(Fp),macroName:Dn(Fp),literal:Pp,string:_D,docString:Dn(_D),character:Dn(_D),attributeValue:Dn(_D),number:kR,integer:Dn(kR),float:Dn(kR),bool:Dn(Pp),regexp:Dn(Pp),escape:Dn(Pp),color:Dn(Pp),url:Dn(Pp),keyword:yh,self:Dn(yh),null:Dn(yh),atom:Dn(yh),unit:Dn(yh),modifier:Dn(yh),operatorKeyword:Dn(yh),controlKeyword:Dn(yh),definitionKeyword:Dn(yh),moduleKeyword:Dn(yh),operator:_h,derefOperator:Dn(_h),arithmeticOperator:Dn(_h),logicOperator:Dn(_h),bitwiseOperator:Dn(_h),compareOperator:Dn(_h),updateOperator:Dn(_h),definitionOperator:Dn(_h),typeOperator:Dn(_h),controlOperator:Dn(_h),punctuation:DR,separator:Dn(DR),bracket:Wb,angleBracket:Dn(Wb),squareBracket:Dn(Wb),paren:Dn(Wb),brace:Dn(Wb),content:vh,heading:fg,heading1:Dn(fg),heading2:Dn(fg),heading3:Dn(fg),heading4:Dn(fg),heading5:Dn(fg),heading6:Dn(fg),contentSeparator:Dn(vh),list:Dn(vh),quote:Dn(vh),emphasis:Dn(vh),strong:Dn(vh),link:Dn(vh),monospace:Dn(vh),strikethrough:Dn(vh),inserted:Dn(),deleted:Dn(),changed:Dn(),invalid:Dn(),meta:bD,documentMeta:Dn(bD),annotation:Dn(bD),processingInstruction:Dn(bD),definition:Np.defineModifier(),constant:Np.defineModifier(),function:Np.defineModifier(),standard:Np.defineModifier(),local:Np.defineModifier(),special:Np.defineModifier()};mfe([{tag:gn.link,class:"tok-link"},{tag:gn.heading,class:"tok-heading"},{tag:gn.emphasis,class:"tok-emphasis"},{tag:gn.strong,class:"tok-strong"},{tag:gn.keyword,class:"tok-keyword"},{tag:gn.atom,class:"tok-atom"},{tag:gn.bool,class:"tok-bool"},{tag:gn.url,class:"tok-url"},{tag:gn.labelName,class:"tok-labelName"},{tag:gn.inserted,class:"tok-inserted"},{tag:gn.deleted,class:"tok-deleted"},{tag:gn.literal,class:"tok-literal"},{tag:gn.string,class:"tok-string"},{tag:gn.number,class:"tok-number"},{tag:[gn.regexp,gn.escape,gn.special(gn.string)],class:"tok-string2"},{tag:gn.variableName,class:"tok-variableName"},{tag:gn.local(gn.variableName),class:"tok-variableName tok-local"},{tag:gn.definition(gn.variableName),class:"tok-variableName tok-definition"},{tag:gn.special(gn.variableName),class:"tok-variableName2"},{tag:gn.definition(gn.propertyName),class:"tok-propertyName tok-definition"},{tag:gn.typeName,class:"tok-typeName"},{tag:gn.namespace,class:"tok-namespace"},{tag:gn.className,class:"tok-className"},{tag:gn.macroName,class:"tok-macroName"},{tag:gn.propertyName,class:"tok-propertyName"},{tag:gn.operator,class:"tok-operator"},{tag:gn.comment,class:"tok-comment"},{tag:gn.meta,class:"tok-meta"},{tag:gn.invalid,class:"tok-invalid"},{tag:gn.punctuation,class:"tok-punctuation"}]);var n1=new xr,Pnt=new xr,hd=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Oe(this,t),this.data=n,this.name=r,Fo.prototype.hasOwnProperty("tree")||Object.defineProperty(Fo.prototype,"tree",{get:function(){return gl(this)}}),this.parser=e,this.extension=[Rp.of(this),Fo.languageData.of(function(o,s,a){var l=yfe(o,s,a),c=l.type.prop(n1);if(!c)return[];var u=o.facet(c),d=l.type.prop(Pnt);if(d){var h,f=l.resolve(s-l.from,a),p=He(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Ie(t,[{key:"isActiveAt",value:function(n,e){return yfe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(n1)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(Rp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(n1)!=e.data){var l=s.prop(xr.mounted);if(l){if(l.tree.prop(n1)==e.data){if(l.overlay){var c,u=He(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),qb=null,Lnt=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;Oe(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Ie(t,[{key:"startParse",value:function(){return this.parser.startParse(new jnt(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ja.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(vD.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=qb;qb=this;try{return n()}finally{qb=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=_fe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=vD.applyChanges(i,l),r=Ja.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=He(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=_fe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],Ja.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){Dt(r,ufe);var i=Tt(r);function r(){return Oe(this,r),i.apply(this,arguments)}return Ie(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=qb;if(u){var d,h=He(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new Ja(mu.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return qb}}]),t}();function _fe(t,n,e){return vD.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var TR=function(){function t(n){Oe(this,t),this.context=n,this.tree=n.tree}return Ie(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=Lnt.create(n.facet(Rp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();hd.state=qa.define({create:TR.init,update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(hd.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(Rp)!=n.state.facet(Rp)?TR.init(n.state):t.apply(n)}});var bfe=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(bfe=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var ER=typeof navigator<"u"&&null!==(SR=navigator.scheduling)&&void 0!==SR&&SR.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,Bnt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Ie(t,[{key:"update",value:function(n){var e=this.view.state.field(hd.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(hd.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=bfe(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return ER&&ER()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:hd.setState.of(new TR(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return jc(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),Rp=oi.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[hd.state,Bnt,Qn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),$nt=Ie(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Oe(this,t),this.language=n,this.support=e,this.extension=[n,e]}),Vnt=oi.define(),xD=oi.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function i1(t){var n=t.facet(xD);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function Yb(t,n){var e="",i=t.tabSize,r=t.facet(xD)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};Oe(this,t),this.state=n,this.options=e,this.unit=i1(n)}return Ie(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return Ab(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),xfe=new xr;function Hnt(t){var n=t.type.prop(xfe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(xr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),b=v.lastChild;if(!y)return null;for(var C=g.options.simulateBreak,D=g.state.doc.lineAt(y.from),E=null==C||C<=D.from?D.to:Math.min(D.to,C),B=y.to;;){var z=v.childAfter(B);if(!z||z==b)return null;if(!z.type.isSkipped)return z.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var Wnt=oi.define(),Sfe=new xr;function CD(t,n,e){var i,r=He(t.facet(Wnt));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=gl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function kfe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var SD=gr.define({map:kfe}),Xb=gr.define({map:kfe});function Dfe(t){var n,e=[],i=He(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var pg=qa.define({create:function(){return Ci.none},update:function(t,n){t=t.map(n.changes);var e,i=He(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(SD)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[Ofe.range(a.value.from,a.value.to)]}):a.is(Xb)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Qn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function Tfe(t,n){return t.field(pg,!1)?n:n.concat(gr.appendConfig.of(Mfe()))}function Efe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Qn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var qnt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=He(Dfe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=CD(t.state,i.from,i.to);if(r)return t.dispatch({effects:Tfe(t.state,[SD.of(r),Efe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(pg,!1))return!1;var n,e=[],i=He(Dfe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=kD(t.state,r.from,r.to);o&&e.push(Xb.of(o),Efe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},Xnt),t),e=new MR(n,!0),i=new MR(n,!1),r=Ia.fromClass(function(){function s(a){Oe(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Ie(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(Rp)!=a.state.facet(Rp)||a.startState.field(pg,!1)!=a.state.field(pg,!1)||gl(a.startState)!=gl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new ug,u=He(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=kD(a.state,d.from,d.to)?i:CD(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,Zhe({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||qo.empty},initialSpacer:function(){return new MR(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=kD(s.state,a.from,a.to);if(c)return s.dispatch({effects:Xb.of(c)}),!0;var u=CD(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:SD.of(u)}),!0)}})}),Mfe()]}var Knt=Qn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),OR=function(){function t(n,e){var i;function r(a){var l=Ap.newName();return(i||(i=Object.create(null)))["."+l]=a,l}Oe(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof hd?function(a){return a.prop(n1)==s.data}:s?function(a){return a==s}:void 0,this.style=mfe(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new Ap(i):null,this.themeType=e.themeType}return Ie(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),IR=oi.define(),Ife=oi.define({combine:function(t){return t.length?[t[0]]:null}});function NR(t){var n=t.facet(IR);return n.length?n:t.facet(Ife)}function Nfe(t,n){var e,i=[Znt];return t instanceof OR&&(t.module&&i.push(Qn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?Ife.of(t):e?IR.computeN([Qn.darkTheme],function(r){return r.facet(Qn.darkTheme)==("dark"==e)?[t]:[]}):IR.of(t)),i}var Qnt=function(){function t(n){Oe(this,t),this.markCache=Object.create(null),this.tree=gl(n.state),this.decorations=this.buildDeco(n,NR(n.state))}return Ie(t,[{key:"update",value:function(n){var e=gl(n.state),i=NR(n.state),r=i!=NR(n.startState);e.length0&&bh(n.state,s.head-1,1,r)||r.afterCursor&&(bh(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),sit]}var lit=new xr;function FR(t,n,e){var i=t.prop(n<0?xr.openedBy:xr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function PR(t){var n=t.type.prop(lit);return n?n(t.node):t}function bh(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=gl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=FR(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return cit(0,0,e,l,u,c,o)}}return function uit(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function cit(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(Rfe.push(t),console.warn(n))}function mit(t,n){var e,i=null,r=He(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||gn[o];s?"function"==typeof s?i?i=s(i):jR(o,"Modifier ".concat(o," used at start of tag")):i?jR(o,"Tag ".concat(o," used as modifier")):i=s:jR(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=mu.define({id:Pfe.length,name:a,props:[ffe(ec({},a,i))]});return Pfe.push(l),l.id}function LR(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var git=LR(function bit(t,n){var e,r=[],o=-1,s=He(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=BR(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var oe,P=[],W=He(r);try{for(W.s();!(oe=W.n()).done;){var J=oe.value,H=J.line,pe=J.comment;if(pe>=0){var N=H.from+pe,F=N+J.token.length;" "==H.text[F-H.from]&&F++,P.push({from:N,to:F})}}}catch(q){W.e(q)}finally{W.f()}return{changes:P}}return null},0),vit=LR(Bfe,0),yit=LR(function(t,n){return Bfe(t,n,function(e){var i,r=[],o=He(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function BR(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function Bfe(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return BR(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function _it(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Qn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?HR:"historyRedo"==n.inputType?TD:null;return!!i&&(n.preventDefault(),i(e))}})]}function DD(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(VR,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var HR=DD(0,!1),TD=DD(1,!1),Sit=DD(0,!0),kit=DD(1,!0);function Vfe(t){return function(n){var e=n.field(VR,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var Dit=Vfe(0),Tit=Vfe(1),yf=function(){function t(n,e,i,r,o){Oe(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Ie(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&cd.fromJSON(n.changes),[],n.mapped&&z0.fromJSON(n.mapped),n.startSelection&&rn.fromJSON(n.startSelection),n.selectionsAfter.map(rn.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=gu,o=He(n.startState.facet(wit));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,gu)}},{key:"selection",value:function(n){return new t(void 0,gu,void 0,void 0,n)}}]),t}();function ED(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Hfe(t,n){return t.length?n.length?t.concat(n):t:n}var gu=[];function Ufe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),ED(t,t.length-1,1e9,e.setSelAfter(i)))}return[yf.selection([n])]}function Eit(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function UR(t,n){if(!t.length)return t;for(var e=t.length,i=gu;e;){var r=Ait(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[yf.selection(i)]:gu}function Ait(t,n,e){var i=Hfe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):gu,e);if(!t.changes)return yf.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new yf(r,gr.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var Mit=/^(input\.type|delete)($|\.)/,Jb=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;Oe(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Ie(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||Mit.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?ED(s,s.length-1,r.minDepth,new yf(n.changes.compose(a.changes),Hfe(n.effects,a.effects),a.mapped,a.startSelection,gu)):ED(s,s.length,r.minDepth,n),gu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:gu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function MD(t,n,e){for(var i=gl(t).resolveInner(n.head),r=e?xr.closedBy:xr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;Iit(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?bh(t,i.from,1):bh(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,rn.cursor(l,e?-1:1)}function Yfe(t,n){return fd(t,function(e){if(!e.empty)return AD(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var Xfe=function(t){return Yfe(t,!1)},Jfe=function(t){return Yfe(t,!0)};function Kfe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=ID(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=ID(t,s,!1),a=ID(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:rn.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Qn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ID(t,n,e){if(t instanceof Qn){var i,r=He(t.state.facet(Qn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var ppe=function(t,n){return OD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function _pe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=He(ND(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=He(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(rn.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=He(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(rn.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:rn.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function bpe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=He(ND(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var Nit=xpe(!1),Fit=xpe(!0);function xpe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=gl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(xr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new wD(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=AR(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:rn.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var wpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(WR(n,function(i,r){r.push({from:i.from,insert:n.facet(xD)})}),{userEvent:"input.indent"})),!0)},Cpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(WR(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=Ab(o,n.tabSize),a=0,l=Yb(n,Math.max(0,s-i1(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:ype}].concat(Pit.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),jit=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return fd(t,function(n){return MD(t.state,n,!vl(t))})},shift:function(t){return vu(t,function(n){return MD(t.state,n,!vl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return fd(t,function(n){return MD(t.state,n,vl(t))})},shift:function(t){return vu(t,function(n){return MD(t.state,n,vl(t))})}},{key:"Alt-ArrowUp",run:function(t){return _pe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return bpe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return _pe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return bpe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=rn.create([i.main]):i.main.empty||(r=rn.create([rn.cursor(i.main.head)])),!!r&&(e(xh(n,r)),!0)}},{key:"Mod-Enter",run:Fit},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=ND(n).map(function(r){return rn.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:rn.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=r1(n.selection,function(r){for(var o,s=gl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return rn.range(s.to,s.from)});return e(xh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:Cpe},{key:"Mod-]",run:wpe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new wD(n,{overrideIndentation:function(s){return i[s]??-1}}),o=WR(n,function(s,a,l){var c=AR(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=Yb(n,c);(u!=d||l.from0?o--:s0&&bh(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;Oe(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(kpe(a))}:kpe,this.query=this.normalize(e)}return Ie(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Wa(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=g4(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Fc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(Oe(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=Dpe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new Ape(n,e,i,r,o);this.re=new RegExp(e,qR+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=FD(n,r),this.getLine(this.curLineStart)}return Ie(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=FD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return YR.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=FD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Epe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function FD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function XR(t){var n=Po("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Jn(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:PD.of(!1),selection:rn.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Po("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:PD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Po("label",t.state.phrase("Go to line"),": ",n)," ",Po("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(Tpe.prototype[Symbol.iterator]=Ape.prototype[Symbol.iterator]=function(){return this});var PD=gr.define(),Mpe=qa.define({create:function(){return!0},update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(PD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Hb.from(t,function(n){return n?XR:null})}}),Bit=Qn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),$it={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ope=oi.define({combine:function(t){return pu(t,$it,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Vit=Ci.mark({class:"cm-selectionMatch"}),Hit=Ci.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ipe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==ls.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==ls.Word)}var Uit=Ia.fromClass(function(){function t(n){Oe(this,t),this.decorations=this.getDeco(n)}return Ie(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(Ope),i=n.state,r=i.selection;if(r.ranges.length>1)return Ci.none;var o,y,b,C,D,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return Ci.none;var l=i.wordAt(s.head);if(!l)return Ci.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return Ci.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!Ipe(a=i.charCategorizer(s.head),i,s.from,s.to)||(D=s.to,(y=a)((b=i).sliceDoc(C=s.from,C+1))!=ls.Word||y(b.sliceDoc(D-1,D))!=ls.Word))return Ci.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return Ci.none}var u,d=[],h=He(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new o1(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||Ipe(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Hit.range(g,v)):(g>=s.to||v<=s.from)&&d.push(Vit.range(g,v)),d.length>e.maxMatches))return Ci.none}}catch(y){h.e(y)}finally{h.f()}return Ci.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),zit=Qn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),RD=oi.define({combine:function(t){return pu(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new ert(n)}})}});function Git(t){return t?[RD.of(t),ij]:ij}var Npe=function(){function t(n){Oe(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,qR),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Ie(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new qit(this):new Wit(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Fo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?a1(this,r,e,i):s1(this,r,e,i)}}]),t}(),Fpe=Ie(function t(n){Oe(this,t),this.spec=n});function s1(t,n,e,i){return new o1(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=s1(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function a1(t,n,e,i){return new Tpe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(jD(a.input,a.index))!=ls.Word||r(LD(a.input,a.index))!=ls.Word)&&(r(LD(a.input,a.index+a[0].length))!=ls.Word||r(jD(a.input,a.index+a[0].length))!=ls.Word)}):void 0},e,i);var r}function jD(t,n){return t.slice(jl(t,n,!1),n)}function LD(t,n){return t.slice(n,jl(t,n))}var qit=function(t){Dt(e,Fpe);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e,[{key:"nextMatch",value:function(i,r,o){var s=a1(this.spec,i,o,i.doc.length).next();return s.done&&(s=a1(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=a1(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=a1(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),Kb=gr.define(),JR=gr.define(),Lp=qa.define({create:function(t){return new KR(ZR(t).create(),null)},update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(Kb)?t=new KR(r.value.create(),t.panel):r.is(JR)&&(t=new KR(t.query,r.value?QR:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Hb.from(t,function(n){return n.panel})}}),KR=Ie(function t(n,e){Oe(this,t),this.query=n,this.panel=e}),Yit=Ci.mark({class:"cm-searchMatch"}),Xit=Ci.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Jit=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Lp))}return Ie(t,[{key:"update",value:function(n){var e=n.state.field(Lp);(e!=n.startState.field(Lp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return Ci.none;for(var i=this.view,r=new ug,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Xit:Yit)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function Qb(t){return function(n){var e=n.state.field(Lp,!1);return e&&e.query.spec.valid?t(n,e):ej(n)}}var BD=Qb(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:nj(t,r),userEvent:"select.search"}),!0)}),$D=Qb(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:nj(t,o),userEvent:"select.search"}),!0)}),Kit=Qb(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:rn.create(e.map(function(i){return rn.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),Ppe=Qb(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Qn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(nj(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),Qit=Qb(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Qn.announce.of(r),userEvent:"input.replace.all"}),!0});function QR(t){return t.state.facet(RD).createPanel(t)}function ZR(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(RD);return new Npe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var ej=function(t){var n=t.state.field(Lp,!1);if(n&&n.panel){var e=Vb(t,QR);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=ZR(t.state,n.query.spec);r.valid&&t.dispatch({effects:Kb.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[JR.of(!0),n?Kb.of(ZR(t.state,n.query.spec)):gr.appendConfig.of(ij)]});return!0},tj=function(t){var n=t.state.field(Lp,!1);if(!n||!n.panel)return!1;var e=Vb(t,QR);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:JR.of(!1)}),!0},Zit=[{key:"Mod-f",run:ej,scope:"editor search-panel"},{key:"F3",run:BD,shift:$D,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:BD,shift:$D,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:tj,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new o1(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(rn.range(c.value.from,c.value.to))}return e(n.update({selection:rn.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=Vb(t,XR);if(!n){var e=[PD.of(!0)];null==t.state.field(Mpe,!1)&&e.push(gr.appendConfig.of([Mpe,Bit])),t.dispatch({effects:e}),n=Vb(t,XR)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=rn.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||rn.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(C){return C.from==y.value.from}))return m=y,p=v,"continue";if(h){var b=s.wordAt(y.value.from);if(!b||b.from!=y.value.from||b.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new o1(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new o1(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===wn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(rn.range(o.from,o.to),!1),effects:Qn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],ert=function(){function t(n){var e=this;Oe(this,t),this.view=n;var i=this.query=n.state.field(Lp).query.spec;function r(o,s,a){return Po("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Po("input",{value:i.search,placeholder:Lc(n,"Find"),"aria-label":Lc(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Po("input",{value:i.replace,placeholder:Lc(n,"Replace"),"aria-label":Lc(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Po("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Po("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Po("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Po("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return BD(n)},[Lc(n,"next")]),r("prev",function(){return $D(n)},[Lc(n,"previous")]),r("select",function(){return Kit(n)},[Lc(n,"all")]),Po("label",null,[this.caseField,Lc(n,"match case")]),Po("label",null,[this.reField,Lc(n,"regexp")]),Po("label",null,[this.wordField,Lc(n,"by word")])].concat(ui(n.state.readOnly?[]:[Po("br"),this.replaceField,r("replace",function(){return Ppe(n)},[Lc(n,"replace")]),r("replaceAll",function(){return Qit(n)},[Lc(n,"replace all")])]),[Po("button",{name:"close",onclick:function(){return tj(n)},"aria-label":Lc(n,"close"),type:"button"},["\xd7"])]))}return Ie(t,[{key:"commit",value:function(){var n=new Npe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:Kb.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return Nhe(Ihe(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?$D:BD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),Ppe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=He(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=He(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(Kb)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(RD).top}}]),t}();function Lc(t,n){return t.state.phrase(n)}var VD=/[\s\.,:;?!]/;function nj(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!VD.test(l[c+1])&&VD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!VD.test(l[u-1])&&VD.test(l[u])){l=l.slice(0,u);break}return Qn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var trt=Qn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ij=[Lp,G0.lowest(Jit),trt],Rpe=function(){function t(n,e,i){Oe(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Ie(t,[{key:"tokenBefore",value:function(n){for(var e=gl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(Bpe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function jpe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var Lpe=Ie(function t(n,e,i){Oe(this,t),this.completion=n,this.source=e,this.match=i});function Bp(t){return t.selection.main.head}function Bpe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function $pe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:rn.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:rn.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Vpe=new WeakMap;function irt(t){if(!Array.isArray(t))return t;var n=Vpe.get(t);return n||Vpe.set(t,n=function nrt(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Jn(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=He(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&j<=57||j>=97&&j<=122?2:j>=65&&j<=90?1:0:(U=g4(j))!=U.toLowerCase()?1:U!=U.toUpperCase()?2:0;(!E||1==G&&C||0==z&&0!=G)&&(e[m]==j||i[m]==j&&(g=!0)?s[m++]=E:s.length&&(D=!1)),z=G,E+=Fc(j)}return m==c&&0==s[0]&&D?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,b]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,b]:m==c?this.result((g?-200:0)-100-700+(D?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=He(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Fc(Wa(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),wh=oi.define({combine:function(t){return pu(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Hpe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var ort=function(){function t(n,e){var i=this;Oe(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(wh);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,ui(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var C=p.appendChild(document.createElement("span"));C.appendChild(document.createTextNode(m.slice(y,b))),C.className="cm-completionMatchedText",g=b}return g=this.range.to)&&(this.range=Hpe(i.options.length,i.selected,this.view.state.facet(wh).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return jc(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,zpe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=He(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,b=v.result.getMatch,C=He(v.result.options);try{for(C.s();!(y=C.n()).done;){var D=y.value,E=[1e9-m++];if(b){var B,z=He(b(D));try{for(z.s();!(B=z.n()).done;)E.push(B.value)}catch(F){z.e(F)}finally{z.f()}}p.push(new Lpe(D,v,E))}}catch(F){C.e(F)}finally{C.f()}}else{var U,G=new rrt(h.sliceDoc(v.from,v.to)),X=void 0,oe=He(v.result.options);try{for(oe.s();!(U=oe.n()).done;){var P=U.value;(X=G.match(P.label))&&(null!=P.boost&&(X[0]+=P.boost),p.push(new Lpe(P,v,X)))}}catch(F){oe.e(F)}finally{oe.f()}}}}catch(F){g.e(F)}finally{g.f()}var W,J=[],H=null,pe=h.facet(wh).compareCompletions,A=He(p.sort(function(F,q){return q.match[0]-F.match[0]||pe(F.completion,q.completion)}));try{for(A.s();!(W=A.n()).done;){var N=W.value;!H||H.label!=N.completion.label||H.detail!=N.completion.detail||null!=H.type&&null!=N.completion.type&&H.type!=N.completion.type||H.apply!=N.completion.apply?J.push(N):Upe(N.completion)>Upe(H)&&(J[J.length-1]=N),H=N.completion}}catch(F){A.e(F)}finally{A.f()}return J}(n,e);if(!s.length)return null;var a,l=e.facet(wh).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var crt=[];function rj(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var mg=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;Oe(this,t),this.source=n,this.state=e,this.explicitPos=i}return Ie(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=rj(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=He(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(oj))r=new t(r.source,1,a.value?Bp(n.state):-1);else if(a.is(HD))r=new t(r.source,0);else if(a.is(Gpe)){var l,c=He(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(Bp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),urt=function(t){Dt(e,mg);var n=Tt(e);function e(i,r,o,s,a){var l;return Oe(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Ie(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=Bp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&Bp(i.startState)==this.from)return new mg(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):Bpe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new Rpe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:Bp(i.state)):new mg(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new mg(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),oj=gr.define(),HD=gr.define(),Gpe=gr.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Wpe=gr.define(),yu=qa.define({create:function(){return art.start()},update:function(t,n){return t.update(n)},provide:function(t){return[lD.from(t,function(n){return n.tooltip}),Qn.contentAttributes.from(t,function(n){return n.attrs})]}});function UD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(yu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function hnt(t,n){var e=t.plugin(Yhe);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Wpe.of(a)}),!0}}var drt=Ie(function t(n,e){Oe(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),hrt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=He(n.state.field(yu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Ie(t,[{key:"update",value:function(n){var e=this,i=n.state.field(yu);if(n.selectionSet||n.docChanged||n.startState.field(yu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!rj(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=He(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){jc(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,ui(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=He(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==rj(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=He(this.view.state.field(yu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=Bp(i),o=new Rpe(i,r,n.explicitPos==r),s=new drt(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:HD.of(null)}),jc(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(wh),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new urt(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:Bp(l.updates.length?l.updates[0].startState:e.view.state)),d=He(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(yu).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new mg(l.active.source,0),g=He(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),zD={brackets:["(","[","{","'",'"'],before:")]}:;>"},gg=gr.define({map:function(t,n){return n.mapPos(t,-1,Ll.TrackAfter)??void 0}}),sj=gr.define({map:function(t,n){return n.mapPos(t)}}),aj=new(function(t){Dt(e,cg);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e)}());aj.startSide=1,aj.endSide=-1;var qpe=qa.define({create:function(){return qo.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=qo.empty)}t=t.map(n.changes);var r,o=He(n.effects);try{var s=function(){var a=r.value;a.is(gg)?t=t.update({add:[aj.range(a.value,a.value+1)]}):a.is(sj)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ype(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return g4(t<128?t:t+1)}function Xpe(t,n){return t.languageDataAt("closeBrackets",n)[0]||zD}var prt="object"==(typeof navigator>"u"?"undefined":wn(navigator))&&/Android\b/.test(navigator.userAgent),mrt=Qn.inputHandler.of(function(t,n,e,i){if((prt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Fc(Wa(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=Xpe(s,s.selection.main.head),u=c.brackets||zD.brackets,d=He(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Ype(Wa(h,0));if(a==h)return f==h?_rt(s,h,u.indexOf(h+h+h)>-1):vrt(s,h,f,c.before||zD.before);if(a==f&&Jpe(s,s.selection.main.from))return yrt(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),grt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Xpe(n,n.selection.main.head).brackets||zD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Fc(Wa(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=He(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&GD(n.doc,s.head)==Ype(Wa(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:rn.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Jpe(t,n){var e=!1;return t.field(qpe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function GD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Fc(Wa(e,0)))}function vrt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:gg.of(s.to+n.length),range:rn.range(s.anchor+n.length,s.head+n.length)};var a=GD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:gg.of(s.head+n.length),range:rn.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function yrt(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&GD(t.doc,o.head)==e?rn.cursor(o.head+e.length):i=o});return i?null:t.update({selection:rn.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return sj.of(o.from)})})}function _rt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:gg.of(o.to+n.length),range:rn.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=GD(t.doc,s);if(a==n){if(Kpe(t,s))return{changes:{insert:n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)};if(Jpe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:rn.cursor(s+n.length*(l?3:1)),effects:sj.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Kpe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=ls.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=ls.Word&&!function(u,d,h){for(var f=gl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Kpe(t,n){var e=gl(t).resolveInner(n+1);return e.parent&&e.from==n}function brt(){return[yu,wh.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),hrt,xrt,frt]}var Qpe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(yu,!1)&&(t.dispatch({effects:oj.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(yu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:HD.of(null)}),0))}},{key:"ArrowDown",run:UD(!0)},{key:"ArrowUp",run:UD(!1)},{key:"PageDown",run:UD(!0,"page")},{key:"PageUp",run:UD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(yu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||($pe(t,n.open.options[n.open.selected]),0))}}],xrt=G0.highest(oD.computeN([wh],function(t){return t.facet(wh).defaultKeymap?[Qpe]:[]})),wrt=Ie(function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.diagnostic=i}),Zb=function(){function t(n,e,i){Oe(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Ie(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(vg).markerFilter;o&&(r=o(r));var s=Ci.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?Ci.widget({widget:new Trt(a),diagnostic:a}).range(a.from):Ci.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,l1(s))}}]),t}();function l1(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new wrt(r,o,a.diagnostic),!1}),i}function Zpe(t,n){return!(!t.effects.some(function(e){return e.is(WD)})&&!t.changes.touchesRange(n.pos))}function eme(t,n){return t.field(Bc,!1)?n:n.concat(gr.appendConfig.of([Bc,Qn.decorations.compute([Bc],function(e){var i=e.field(Bc),r=i.selected;return r&&i.panel&&r.from!=r.to?Ci.set([Crt.range(r.from,r.to)]):Ci.none}),dnt(Srt,{hideOn:Zpe}),Ert]))}var WD=gr.define(),lj=gr.define(),tme=gr.define(),Bc=qa.define({create:function(){return new Zb(Ci.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=l1(e,t.selected.diagnostic,r)||l1(e,null,r)}t=new Zb(e,t.panel,i)}var o,s=He(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(WD)?t=Zb.init(a.value,t.panel,n.state):a.is(lj)?t=new Zb(t.diagnostics,a.value?ame.open:null,t.selected):a.is(tme)&&(t=new Zb(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[Hb.from(t,function(n){return n.panel}),Qn.decorations.from(t,function(n){return n.diagnostics})]}}),Crt=Ci.mark({class:"cm-lintRange cm-lintRange-active"});function Srt(t,n,e){var i=t.state.field(Bc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=rme(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=He(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=l1(this.view.state.field(Bc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:tme.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function qD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function cj(t){return qD(''),'width="6" height="3"')}var Ert=Qn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:cj("#d11")},".cm-lintRange-warning":{backgroundImage:cj("orange")},".cm-lintRange-info":{backgroundImage:cj("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Art=function(t){Dt(e,gh);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Ie(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(YD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:uj.of({pos:f.from,above:!1,create:function(){return{dom:nme(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var b=m.getBoundingClientRect();if(!(y.clientX>b.left-10&&y.clientXb.top-10&&y.clientY')},".cm-lint-marker-warning":{content:qD('')},".cm-lint-marker-error":{content:qD('')}}),YD=oi.define({combine:function(t){return pu(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Nrt(){return[YD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lme,Ort,Irt,cme]}var ume,Frt=function(){return[_nt(),xnt,Ytt(),Cit(),Jnt(),$tt(),[$b,ztt],Fo.allowMultipleSelections.of(!0),Fo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=He(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=AR(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=Yb(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),Nfe(eit,{fallback:!0}),ait(),[mrt,qpe],brt(),tnt(),rnt(),Ztt,(n=[zit,Uit],n),oD.of([].concat(grt,ui(jit),Zit,Oit,qnt,Qpe,krt))];var n}(),Prt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;Oe(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Ie(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Rrt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new dme(r,r.start):null,0,null)}}]),t}(),dme=Ie(function t(n,e){Oe(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(ume||(ume={}));var Rrt=function(){function t(n){Oe(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Ie(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),jrt=function(){function t(n,e,i){Oe(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Ie(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),XD=Ie(function t(){Oe(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),hme=new XD,Lrt=function(){function t(n,e){Oe(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=hme,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Ie(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=hme,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=He(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),JD=function(){function t(n,e){Oe(this,t),this.data=n,this.id=e}return Ie(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function KD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}JD.prototype.contextual=JD.prototype.fallback=JD.prototype.extend=!1;var fme,pd=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),dj=null;function pme(t,n,e){var i=t.cursor(Xa.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(fme||(fme={}));var mme,Brt=function(){function t(n,e){Oe(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Ie(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?pme(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?pme(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof Ja){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),$rt=function(){function t(n,e){Oe(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new XD})}return Ie(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new XD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new XD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Brt(i,n.nodeSet):null}return Ie(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,b=null,C=He(v);try{for(C.s();!(y=C.n()).done;){var D=y.value,E=D.p.stoppedAt;(D.pos==D.p.stream.end||null!=E&&D.pos>E)&&D.p.parser.stateFlag(D.state,2)&&(!b||b.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(xr.contextHash)||0)==l))return n.useNode(c,u),pd&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof Ja)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof Ja&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),pd&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(b):i.push(b)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return gme(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),pd&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(pd&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)pd&&(h=this.stackID(d)+" -> ");var p,m=He(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;pd&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),pd&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),gme(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],b=-v;b>0;b--)d(p[g++],m,y);g++}}}}catch(E){f.e(E)}finally{f.f()}}o.nodeSet=new Snt(s.map(function(E,B){return mu.define({name:B>=o.minRepeatTerm?void 0:E,id:B,props:c[B],top:l.indexOf(B)>-1,error:0==B,skipped:i.skippedNodes&&i.skippedNodes.indexOf(B)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,ui(i.propSources))),o.strict=!1,o.bufferLength=1024;var C=KD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var D=0;D2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=_f(this.data,o+2)}if(r==_f(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=_f(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=vme(this.data,this.tokenPrecTable,r);return o<0||vme(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=He(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&xme(t);return{c:function(){n=De("div"),r&&r.c(),e=rt(),o&&o.c(),i=rt(),s&&s.c(),R(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){$e(a,n,l),r&&r.m(n,null),me(n,e),o&&o.m(n,null),me(n,i),s&&s.m(n,null)},p:function(a,l){var c=Jn(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=_me(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=bme(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=xme(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:Bt,o:Bt,d:function(a){a&&Be(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Xrt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Jrt=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Xrt,Yrt,_s,{editorState:3},qrt),r}return Ie(e)}(),hj=OR.define([{tag:gn.propertyName,color:"var(--jse-key-color)"},{tag:gn.number,color:"var(--jse-value-color-number)"},{tag:gn.bool,color:"var(--jse-value-color-boolean)"},{tag:gn.string,color:"var(--jse-value-color-string)"},{tag:gn.keyword,color:"var(--jse-value-color-null)"}]),Krt=Nfe(hj),Qrt=hj.style;function fj(t){return t.doc.lineAt(t.selection.main.head)}function wme(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=wme(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=wme(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=fj(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=He(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,b=g.from;b<=y;){var C=f.doc.lineAt(b);p.has(C)||p.add(C),b=C.to+1}}catch(D){m.e(D)}finally{m.f()}return p}(this.view,n),o=new Zrt(r,n,this.unitWidth),s=n.facet(QD).hideFirstIndent,a=He(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=tot(c,this.unitWidth,s);i.add(l.from,l.from,Ci.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function iot(){return[QD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),eot,Ia.fromClass(not,{decorations:function(n){return n.decorations}})]}function rot(t){_i(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function pj(t){var n=t.slice();return n[93]=0===n[10].length,n}function Cme(t){var n,e;return n=new Tet({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function oot(t){var n;return{c:function(){(n=De("div")).innerHTML='
    \n
    loading...
    ',R(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function sot(t){var n,e,i,r,o,s=t[92]&&Sme(t),a=!t[92]&&kme(t);return{c:function(){n=De("div"),e=rt(),s&&s.c(),i=rt(),a&&a.c(),r=Dr(),R(n,"class","jse-contents svelte-1yqirn0"),Nt(n,"jse-hidden",t[92])},m:function(l,c){$e(l,n,c),t[50](n),$e(l,e,c),s&&s.m(l,c),$e(l,i,c),a&&a.m(l,c),$e(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&Nt(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&Q(s,1)):((s=Sme(l)).c(),Q(s,1),s.m(i.parentNode,i)):s&&(Ht(),fe(s,1,1,function(){s=null}),Ut()),l[92]?a&&(Ht(),fe(a,1,1,function(){a=null}),Ut()):a?(a.p(l,c),1152&c[0]&&Q(a,1)):((a=kme(l)).c(),Q(a,1),a.m(r.parentNode,r))},i:function(l){o||(Q(s),Q(a),o=!0)},o:function(l){fe(s),fe(a),o=!1},d:function(l){l&&Be(n),t[50](null),l&&Be(e),s&&s.d(l),l&&Be(i),a&&a.d(l),l&&Be(r)}}}function Sme(t){var n,e,i,r,o,s=ah(t[10]||"",2e4)+"";return n=new ad({props:{icon:rg,type:"error",message:"The JSON document is larger than ".concat(Rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Rk(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){gt(n.$$.fragment),e=rt(),i=De("div"),r=sn(s),R(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){pt(n,a,l),$e(a,e,l),$e(a,i,l),me(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(Rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Rk(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=ah(a[10]||"",2e4)+"")&&ti(r,s)},i:function(a){o||(Q(n.$$.fragment,a),o=!0)},o:function(a){fe(n.$$.fragment,a),o=!1},d:function(a){mt(n,a),a&&Be(e),a&&Be(i)}}}function kme(t){var n,e,i,r,o,s=!t[13]&&t[8]&&Dse(t[10]),a=t[2]&&Dme(t),l=t[13]&&Tme(t),c=s&&Eme(t);return r=new ZP({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=rt(),l&&l.c(),e=rt(),c&&c.c(),i=rt(),gt(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),$e(u,n,d),l&&l.m(u,d),$e(u,e,d),c&&c.m(u,d),$e(u,i,d),pt(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&Q(a,1)):((a=Dme(u)).c(),Q(a,1),a.m(n.parentNode,n)):a&&(Ht(),fe(a,1,1,function(){a=null}),Ut()),u[13]?l?(l.p(u,d),8192&d[0]&&Q(l,1)):((l=Tme(u)).c(),Q(l,1),l.m(e.parentNode,e)):l&&(Ht(),fe(l,1,1,function(){l=null}),Ut()),9472&d[0]&&(s=!u[13]&&u[8]&&Dse(u[10])),s?c?(c.p(u,d),9472&d[0]&&Q(c,1)):((c=Eme(u)).c(),Q(c,1),c.m(i.parentNode,i)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(Q(a),Q(l),Q(c),Q(r.$$.fragment,u),o=!0)},o:function(u){fe(a),fe(l),fe(c),fe(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&Be(n),l&&l.d(u),u&&Be(e),c&&c.d(u),u&&Be(i),mt(r,u)}}}function Dme(t){var n,e;return n=new Jrt({props:{editorState:t[6]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Tme(t){var n,e;return n=new ad({props:{type:"error",icon:rg,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Eme(t){var n,e;return n=new ad({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:s4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:P0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:s4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:P0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function aot(t){var n,e,i,r,o,s=t[1]&&Cme(pj(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[sot,oot][i](c(t,i)),{c:function(){n=De("div"),s&&s.c(),e=rt(),r.c(),R(n,"class","jse-text-mode svelte-1yqirn0"),Nt(n,"no-main-menu",!t[1])},m:function(u,d){$e(u,n,d),s&&s.m(n,null),me(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(pj(u),d),2&d[0]&&Q(s,1)):((s=Cme(pj(u))).c(),Q(s,1),s.m(n,e)):s&&(Ht(),fe(s,1,1,function(){s=null}),Ut()),r.p(c(u,i),d),(!o||2&d[0])&&Nt(n,"no-main-menu",!u[1])},i:function(u){o||(Q(s),Q(r),o=!0)},o:function(u){fe(s),fe(r),o=!1},d:function(u){u&&Be(n),s&&s.d(),l[i].d(),t[52](null)}}}function Ame(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function lot(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,b=n.onChange,C=n.onChangeMode,D=n.onError,E=n.onFocus,B=n.onBlur,z=n.onRenderMenu,j=n.onSortModal,U=n.onTransformModal,G=Ma("jsoneditor:TextMode"),X={key:"Mod-i",run:le,shift:Re,preventDefault:!0},oe=typeof window>"u";G("isSSR:",oe);var P=!1,W=!0,J=[],H=new Tp,pe=new Tp,A=new Tp,N=new Tp,F=new Tp,q=new Tp,V=h,ce=ck(V,f,g),ve=m;eu(or(_n().mark(function vt(){return _n().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!oe){jn.next=2;break}return jn.abrupt("return");case 2:try{s=Xn({target:o,initialText:Ro(ce,P)?"":i.escapeValue(ce),readOnly:c,indentation:f})}catch(di){console.error(di)}case 3:case"end":return jn.stop()}},vt)}))),qu(function(){s&&(G("Destroy CodeMirror editor"),s.destroy())});var je=!1,Te=!1,et=mp(),We=mp();function st(){s&&(G("focus"),s.focus())}var $=!1;function ae(vt){G("patch",vt);var jn=g.parse(ce),di=ed(jn,vt),ki=WZ(jn,vt);return vr({text:g.stringify(di,null,f)}),{json:di,previousJson:jn,undo:ki,redo:vt}}function le(){if(G("format"),c)return!1;try{var vt=g.parse(ce);return vr({text:g.stringify(vt,null,f)}),e(8,W=!0),!0}catch(jn){D(jn)}return!1}function Re(){if(G("compact"),c)return!1;try{var vt=g.parse(ce);return vr({text:g.stringify(vt)}),e(8,W=!1),!0}catch(jn){D(jn)}return!1}function Ze(){if(G("repair"),!c)try{vr({text:Kd(ce)}),e(49,Rn="valid"),e(13,kt=null)}catch(vt){D(vt)}}function Ve(vt){var jn=vt.id,di=vt.rootPath,ki=vt.onTransform,Nr=vt.onClose;try{var Jr=g.parse(ce);$=!0,U({id:jn||We,json:Jr,rootPath:di||[],onTransform:function(co){ki?ki({operations:co,json:Jr,transformedJson:ed(Jr,co)}):(G("onTransform",co),ae(co))},onClose:function(){$=!1,st(),Nr&&Nr()}})}catch(co){D(co)}}function Ct(vt,jn){G("setSelection",{anchor:vt,head:jn}),s&&s.dispatch(s.state.update({selection:{anchor:vt,head:jn},scrollIntoView:!0}))}function Ot(vt,jn){if(1===jn.state.selection.ranges.length){var di=jn.state.selection.ranges[0],ki=ce.slice(di.from,di.to);if("{"===ki||"["===ki){var Nr=uS.parse(ce),Jr=Object.keys(Nr.pointers).find(function(Ks){var Cr;return(null===(Cr=Nr.pointers[Ks].value)||void 0===Cr?void 0:Cr.pos)===di.from}),co=Nr.pointers[Jr];Jr&&co&&co.value&&co.valueEnd&&(G("pointer found, selecting inner contents of path:",Jr,co),Ct(co.value.pos+1,co.valueEnd.pos-1))}}}function yn(){return function(vt){return vg.of({source:vt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(pi,{delay:300})}function Xn(vt){var jn=vt.target,di=vt.initialText,ki=vt.readOnly,Nr=vt.indentation;G("Create CodeMirror editor",{readOnly:ki,indentation:Nr});var Jr=Fo.create({doc:di,extensions:[oD.of([Lit,X]),H.of(yn()),Nrt(),Frt,Krt,iot({hideFirstIndent:!0}),Qn.domEventHandlers({dblclick:Ot}),Qn.updateListener.of(function(co){e(6,l=co.state),co.docChanged&&Si()}),new $nt(Wrt),Git({top:!0}),A.of(Fo.readOnly.of(ki)),pe.of(Qn.editable.of(!ki)),F.of(Fo.tabSize.of(p)),N.of(fr(Nr)),q.of(Qn.theme({},{dark:on()})),Qn.lineWrapping]});return s=new Qn({state:Jr,parent:jn})}function on(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ri(vt){var jn=vt.path,di=vt.message,ki=function(Nr,Jr){try{var co=uS.parse(Nr),Ks=dn(Jr),Cr=co.pointers[Ks];if(Cr)return{path:Jr,line:Cr.key?Cr.key.line:Cr.value?Cr.value.line:0,column:Cr.key?Cr.key.column:Cr.value?Cr.value.column:0,from:Cr.key?Cr.key.pos:Cr.value?Cr.value.pos:0,to:Cr.keyEnd?Cr.keyEnd.pos:Cr.valueEnd?Cr.valueEnd.pos:0}}catch(Qs){console.error(Qs)}return null}(i.escapeValue(ce),jn);return{path:jn,line:ki.line,column:ki.column,from:ki.from,to:ki.to,message:di,severity:Jd.warning,actions:[]}}function hn(vt,jn){var Nr=vt.position;return{path:[],line:vt.line,column:vt.column,from:Nr,to:Nr,severity:Jd.error,message:vt.message,actions:jn&&!c?[{name:"Auto repair",apply:function(){return Ze()}}]:null}}function vr(vt){var jn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],di=ck(vt,f,g),ki=!dr(vt,V),Nr=V;V=vt,e(10,ce=di),G("setCodeMirrorContent",{isChanged:ki,forceUpdate:jn}),s&&(ki||jn)&&(Ro(ce,P)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(ce)}}),wr(),ki&&Xr(V,Nr))}function Er(){if(s){var vt=s?i.unescapeValue(s.state.doc.toString()):"",jn=vt!==ce;if(G("onChangeCodeMirrorValue",{isChanged:jn}),jn){var di=V;e(10,ce=vt),V={text:ce},wr(),Xr(V,di)}}}function fr(vt){return xD.of("number"==typeof vt?" ".repeat(vt):vt)}function wr(){e(11,je=Dit(s.state)>0),e(12,Te=Tit(s.state)>0),G({canUndo:je,canRedo:Te})}QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(a)},hasFocus:function(){return $&&document.hasFocus()||dk(a)},onFocus:E,onBlur:B});var Si=p0(Er,300);function Xr(vt,jn){b&&b(vt,jn,{contentErrors:Bi(),patchResult:null})}function Ro(vt,jn){return!!vt&&vt.length>10485760&&!jn}var Rn="valid",kt=null;function pi(){if(Ro(ce,P))return[];var vt=Bi();return $le(vt)?[Ame(hn(vt.parseError,vt.isRepairable))]:function cKe(t){return Io(t)&&Array.isArray(t.validationErrors)}(vt)?vt.validationErrors.map(Ri).map(Ame):[]}function Bi(){G("validate:start"),Si.flush();var vt=Ar(i.escapeValue(ce),v,g,y);return $le(vt)?(e(49,Rn=vt.isRepairable?"repairable":"invalid"),e(13,kt=vt.parseError),e(9,J=[])):(e(49,Rn="valid"),e(13,kt=null),e(9,J=vt?.validationErrors||[])),G("validate:end"),vt}var Ar=wb(qJe);function ko(){kt&&function(vt){G("select parse error",vt);var jn=hn(vt,!1);Ct(jn.from,jn.to),st()}(kt)}var Qo={icon:FXe,text:"Show me",title:"Move to the parse error location",onClick:ko};return t.$$set=function(vt){"readOnly"in vt&&e(0,c=vt.readOnly),"mainMenuBar"in vt&&e(1,u=vt.mainMenuBar),"statusBar"in vt&&e(2,d=vt.statusBar),"externalContent"in vt&&e(29,h=vt.externalContent),"indentation"in vt&&e(30,f=vt.indentation),"tabSize"in vt&&e(31,p=vt.tabSize),"escapeUnicodeCharacters"in vt&&e(32,m=vt.escapeUnicodeCharacters),"parser"in vt&&e(33,g=vt.parser),"validator"in vt&&e(34,v=vt.validator),"validationParser"in vt&&e(35,y=vt.validationParser),"onChange"in vt&&e(36,b=vt.onChange),"onChangeMode"in vt&&e(37,C=vt.onChangeMode),"onError"in vt&&e(38,D=vt.onError),"onFocus"in vt&&e(39,E=vt.onFocus),"onBlur"in vt&&e(40,B=vt.onBlur),"onRenderMenu"in vt&&e(3,z=vt.onRenderMenu),"onSortModal"in vt&&e(41,j=vt.onSortModal),"onTransformModal"in vt&&e(42,U=vt.onTransformModal)},t.$$.update=function(){var vt;2&t.$$.dirty[1]&&(i=yP({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&vr(h),8&t.$$.dirty[1]&&(G("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(yn())})),1073741824&t.$$.dirty[0]&&(vt=f,s&&(G("updateIndentation",vt),s.dispatch({effects:N.reconfigure(fr(vt))}))),1&t.$$.dirty[1]&&function(vt){s&&(G("updateTabSize",vt),s.dispatch({effects:F.reconfigure(Fo.tabSize.of(vt))}))}(p),1&t.$$.dirty[0]&&function(vt){s&&(G("updateReadOnly",vt),s.dispatch({effects:[A.reconfigure(Fo.readOnly.of(vt)),pe.reconfigure(Qn.editable.of(!vt))]}))}(c),131074&t.$$.dirty[1]&&ve!==m&&(e(48,ve=m),G("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(ce)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Rn||c?[Qo]:[{icon:_k,text:"Auto repair",title:"Automatically repair JSON",onClick:Ze},Qo])},[c,u,d,z,o,a,l,P,W,J,ce,je,Te,kt,r,oe,le,Re,function(){var vt;if(!c)try{var jn=g.parse(ce);$=!0,j({id:et,json:jn,rootPath:[],onSort:(vt=or(_n().mark(function di(ki){var Nr;return _n().wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:G("onSort",Nr=ki.operations),ae(Nr);case 3:case"end":return Jr.stop()}},di)})),function(di){return vt.apply(this,arguments)}),onClose:function(){$=!1,st()}})}catch(di){D(di)}},function(){c||Ve({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?tj(s):ej(s))},function(){c||s&&(HR(s),st())},function(){c||s&&(TD(s),st())},function(){e(7,P=!0),vr(h,!0)},function(){C(Uo.tree)},function(){Er()},function(vt){G("select validation error",vt);var jn=Ri(vt);Ct(jn.from,jn.to),st()},Ro,ko,h,f,p,m,g,v,y,b,C,D,E,B,j,U,st,ae,Ve,function(){G("refresh"),tc().then(function(){if(s){var vt=on();G("updateTheme",{dark:vt}),s.dispatch({effects:[q.reconfigure(Qn.theme({},{dark:vt}))]})}})},Bi,ve,Rn,function(vt){Xi[vt?"unshift":"push"](function(){e(4,o=vt)})},function(){return e(8,W=!1)},function(vt){Xi[vt?"unshift":"push"](function(){e(5,a=vt)})}]}var cot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,lot,aot,Pi,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},rot,[-1,-1,-1,-1]),r}return Ie(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function uot(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function dot(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:Nae,title:hN,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var hot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dot,uot,Pi,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Ie(e)}();function Mme(t,n,e){var i=t.slice();return i[9]=n[e],i}function Ome(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],b=tr(v);b.length>0&&!nu(m,b);)y.unshift({op:"add",path:dn(b),value:{}}),b=tr(b);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&nr(c)&&yp(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var mot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,pot,fot,Pi,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Ie(e)}();function got(t){_i(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function vot(t){var n,e,i,r,o=ah(t[2].stringify(t[1]),50)+"";return{c:function(){n=De("button"),e=sn(o),R(n,"type","button"),R(n,"class","jse-inline-value svelte-l28mqd"),Nt(n,"jse-selected",t[3])},m:function(s,a){$e(s,n,a),me(n,e),i||(r=Rt(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Jn(a,1)[0];6&l&&o!==(o=ah(s[2].stringify(s[1]),50)+"")&&ti(e,o),8&l&&Nt(n,"jse-selected",s[3])},i:Bt,o:Bt,d:function(s){s&&Be(n),i=!1,r()}}}function yot(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=ao(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var _ot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,yot,vot,Pi,{path:0,value:1,parser:2,isSelected:3,onEdit:4},got),r}return Ie(e)}();function bot(t){_i(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function Ime(t){var n,e,i,r;return e=new hr({props:{data:t[1]===tu.asc?hu:Iae}}),{c:function(){n=De("span"),gt(e.$$.fragment),R(n,"class","jse-column-sort-icon svelte-h4fort"),R(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){$e(o,n,s),pt(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===tu.asc?hu:Iae),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&R(n,"title",i)},i:function(o){r||(Q(e.$$.fragment,o),r=!0)},o:function(o){fe(e.$$.fragment,o),r=!1},d:function(o){o&&Be(n),mt(e)}}}function xot(t){var n,e,i,r,o,s,a,l,c=ah(t[3],50)+"",u=void 0!==t[1]&&Ime(t);return{c:function(){n=De("button"),e=De("span"),i=sn(c),r=rt(),u&&u.c(),R(e,"class","jse-column-name"),R(n,"type","button"),R(n,"class","jse-column-header svelte-h4fort"),R(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),Nt(n,"jse-readonly",t[0])},m:function(d,h){$e(d,n,h),me(n,e),me(e,i),me(n,r),u&&u.m(n,null),s=!0,a||(l=Rt(n,"click",t[4]),a=!0)},p:function(d,h){var f=Jn(h,1)[0];(!s||8&f)&&c!==(c=ah(d[3],50)+"")&&ti(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&Q(u,1)):((u=Ime(d)).c(),Q(u,1),u.m(n,null)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&R(n,"title",o),(!s||1&f)&&Nt(n,"jse-readonly",d[0])},i:function(d){s||(Q(u),s=!0)},o:function(d){fe(u),s=!1},d:function(d){d&&Be(n),u&&u.d(),a=!1,l()}}}function wot(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Ji(s)?"values":cu(rc(s))),96&t.$$.dirty&&e(1,r=dr(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=tUe[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===tu.asc?tu.desc:tu.asc})},s,a,c]}var ZD,eT,Cot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wot,xot,Pi,{path:5,sortedColumn:6,readOnly:0,onSort:7},bot),r}return Ie(e)}();function Nme(t,n){return ZD||(eT=new WeakMap,ZD=new ResizeObserver(function(e){var i,r=He(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=eT.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),eT.set(t,n),ZD.observe(t),{destroy:function(){eT.delete(t),ZD.unobserve(t)}}}function Sot(t){var n,e;return n=new uce({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function kot(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,b=n.onEditValue,C=n.onEditRow,D=n.onToggleEnforceString,E=n.onCut,B=n.onCopy,z=n.onPaste,j=n.onRemove,U=n.onDuplicateRow,G=n.onInsertBeforeRow,X=n.onInsertAfterRow,oe=n.onRemoveRow;function P(){y(),b()}function W(){y(),C()}function J(){y(),D()}function H(){y(),E(!0)}function pe(){y(),E(!1)}function A(){y(),B(!0)}function N(){y(),B(!1)}function F(){y(),z()}function q(){y(),j()}function V(){y(),U()}function ce(){y(),G()}function ve(){y(),X()}function je(){y(),oe()}return t.$$set=function(Te){"json"in Te&&e(2,p=Te.json),"documentState"in Te&&e(3,m=Te.documentState),"parser"in Te&&e(4,g=Te.parser),"showTip"in Te&&e(0,v=Te.showTip),"onCloseContextMenu"in Te&&e(5,y=Te.onCloseContextMenu),"onEditValue"in Te&&e(6,b=Te.onEditValue),"onEditRow"in Te&&e(7,C=Te.onEditRow),"onToggleEnforceString"in Te&&e(8,D=Te.onToggleEnforceString),"onCut"in Te&&e(9,E=Te.onCut),"onCopy"in Te&&e(10,B=Te.onCopy),"onPaste"in Te&&e(11,z=Te.onPaste),"onRemove"in Te&&e(12,j=Te.onRemove),"onDuplicateRow"in Te&&e(13,U=Te.onDuplicateRow),"onInsertBeforeRow"in Te&&e(14,G=Te.onInsertBeforeRow),"onInsertAfterRow"in Te&&e(15,X=Te.onInsertAfterRow),"onRemoveRow"in Te&&e(16,oe=Te.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Ji(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Mn(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Lr(i)||ws(i)||nr(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Lr(i)||nr(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&hb(i)&&!s&&Array.isArray(Mn(p,tr(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&hb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!zo(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&ng(i)&&Io(a),29491200&t.$$.dirty[0]&&d&&ng(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&ng(i)&&zo(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&mf(a,m.enforceStringMap,dn(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:P,icon:N0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:N0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:P,disabled:!c},{type:"button",icon:h?lb:cb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:J,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:I0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:I0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:I0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:pe,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:A,icon:xp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:xp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:A,disabled:!l},{type:"button",icon:xp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:N,disabled:!l}]},{type:"button",onClick:F,icon:Aae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:q,icon:BP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:W,icon:N0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:Rae,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:ce,icon:F0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:ve,icon:F0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:je,icon:BP,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,b,C,D,E,B,z,j,U,G,X,oe,o,l,u,h,c,i,a,d,r,s]}var Dot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,kot,Sot,Pi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Ie(e)}();function Tot(t){_i(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function Fme(t,n,e){var i=t.slice();i[12]=n[e];var r=Mn(i[0],i[12]).length;return i[13]=r,i}function Eot(t){var n,e;return{c:function(){n=sn(t[5]),e=sn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){$e(i,n,r),$e(i,e,r)},p:function(i,r){32&r&&ti(n,i[5])},d:function(i){i&&Be(n),i&&Be(e)}}}function Aot(t){var n;return{c:function(){n=sn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){$e(e,n,i)},p:Bt,d:function(e){e&&Be(n)}}}function Pme(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=cu(rc(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=De("button"),e=sn(t[6]),i=sn(' "'),r=sn(p),o=sn('"\n '),s=De("span"),a=sn("("),l=sn(m),c=rt(),u=sn(g),d=sn(")"),R(s,"class","jse-nested-array-count svelte-1te5h1h"),R(n,"type","button"),R(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,b){$e(y,n,b),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),me(s,a),me(s,l),me(s,c),me(s,u),me(s,d),h||(f=Rt(n,"click",v),h=!0)},p:function(y,b){t=y,64&b&&ti(e,t[6]),8&b&&p!==(p=cu(rc(t[12]))+"")&&ti(r,p),9&b&&m!==(m=t[13]+"")&&ti(l,m),9&b&&g!==(g=1!==t[13]?"items":"item")&&ti(u,g)},d:function(y){y&&Be(n),h=!1,f()}}}function Mot(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(z,j){return z[4]?Aot:Eot}for(var b=y(t),C=b(t),D=t[3],E=[],B=0;B1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){Oo(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Ji(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Oo(l)?"An object":ao(l)?"An empty array":"A ".concat(IN(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Uo.tree)}]}var Iot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Oot,Mot,Pi,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},Tot),r}return Ie(e)}();function Not(t){_i(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function Fot(t){var n,e,i,r,o,s;return e=new hr({props:{data:$Xe}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-column-header svelte-h4fort"),R(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){$e(a,n,l),pt(e,n,null),r=!0,o||(s=Rt(n,"click",t[3]),o=!0)},p:function(a,l){var c=Jn(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&R(n,"title",i)},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){fe(e.$$.fragment,a),r=!1},d:function(a){a&&Be(n),mt(e),o=!1,s()}}}function Pot(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Rot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Pot,Fot,Pi,{count:0,maxSampleCount:1,onRefresh:2},Not),r}return Ie(e)}();function jot(t){_i(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function Rme(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function jme(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Mn(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function Lme(t,n,e){var i=t.slice();return i[125]=n[e],i}function Bme(t){var n,e;return n=new hot({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Lot(t){var n;return{c:function(){(n=De("div")).innerHTML='
    \n
    loading...
    ',R(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function Bot(t){var n,e,i,r,o,s,a,l,c,u=[Hot,Vot,$ot],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=De("label"),e=De("input"),i=rt(),o.c(),s=Dr(),R(e,"type","text"),e.readOnly="readonly",R(e,"tabindex","-1"),R(e,"class","jse-hidden-input svelte-hs49xj"),R(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){$e(f,n,p),me(n,e),t[71](e),$e(f,i,p),d[r].m(f,p),$e(f,s,p),a=!0,l||(c=Rt(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Ht(),fe(d[m],1,1,function(){d[m]=null}),Ut(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){fe(o),a=!1},d:function(f){f&&Be(n),t[71](null),f&&Be(i),d[r].d(f),f&&Be(s),l=!1,c()}}}function $ot(t){var n,e;return n=new Iot({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Vot(t){var n,e,i,r;return n=new ad({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:bp,text:"Repair manually",onClick:t[35]}]}}),i=new mue({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){gt(n.$$.fragment),e=rt(),gt(i.$$.fragment)},m:function(o,s){pt(n,o,s),$e(o,e,s),pt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:bp,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){fe(n.$$.fragment,o),fe(i.$$.fragment,o),r=!1},d:function(o){mt(n,o),o&&Be(e),mt(i,o)}}}function Hot(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j=!Ji(null===(n=t[21])||void 0===n?void 0:n.root),U=j&&$me(t),G=t[9],X=[],oe=0;oe"u";a("isSSR:",m);var g,v,y,b,C,D,E=n.readOnly,B=n.externalContent,z=n.mainMenuBar,j=n.escapeControlCharacters,U=n.escapeUnicodeCharacters,G=n.flattenColumns,X=n.parser,oe=n.parseMemoizeOne,P=n.validator,W=n.validationParser,J=n.indentation,H=n.onChange,pe=n.onChangeMode,A=n.onRenderValue,N=n.onRenderMenu,F=n.onFocus,q=n.onBlur,V=n.onSortModal,ce=n.onTransformModal,ve=n.onJSONEditorModal;QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(v)},hasFocus:function(){return st&&document.hasFocus()||dk(v)},onFocus:function(){F&&F()},onBlur:function(){q&&q()}});var je,Te=void 0,et=1e4,We=[],st=!1,$={},ae=600,le=0;function Re(Fe){a("updateSelection",Fe);var At="function"==typeof Fe?Fe(Ve.selection):Fe;dr(At,Ve.selection)||e(10,Ve=nt(nt({},Ve),{},{selection:At}))}function Ze(Fe){void 0!==Ve.selection&&void 0!==Fe&&(Ve.selection&&nu(Fe,Ve.selection.anchorPath)&&nu(Fe,Ve.selection.focusPath)||(a("clearing selection: path does not exist anymore",Ve.selection),e(10,Ve=nt(nt({},Ve),{},{selection:T0(Fe,Ve)}))))}var Ot,Ve=fk(),Ct=!1,yn=Tle({onChange:function(Fe){e(19,Xn=Fe)}}),Xn=yn.getState();function Ri(Fe){var At=Fe.previousJson,Gt=Fe.previousState,ln=Fe.previousText,mn=Fe.previousTextIsRepaired;void 0===At&&void 0===ln||(void 0!==C?yn.add(void 0!==At?{undo:{patch:[{op:"replace",path:"",value:At}],state:pl(Gt),json:void 0,text:ln,textIsRepaired:mn},redo:{patch:[{op:"replace",path:"",value:C}],state:pl(Ve),json:void 0,text:D,textIsRepaired:Ct}}:{undo:{patch:void 0,json:void 0,text:ln,state:pl(Gt),textIsRepaired:mn},redo:{patch:void 0,json:C,state:pl(Ve),text:D,textIsRepaired:Ct}}):void 0!==At&&yn.add({undo:{patch:void 0,json:At,state:pl(Gt),text:ln,textIsRepaired:mn},redo:{patch:void 0,json:void 0,text:D,textIsRepaired:Ct,state:pl(Ve)}}))}var hn=[],vr=wb(Ele);function Er(Fe,At,Gt,ln){j0(function(){var mn;try{mn=vr(Fe,At,Gt,ln)}catch(ci){mn=[{path:[],message:"Failed to validate: "+ci.message,severity:Jd.warning}]}dr(mn,hn)||(a("validationErrors changed:",mn),e(11,hn=mn))},function(mn){return a("validationErrors updated in ".concat(mn," ms"))})}function fr(){return a("validate"),Te?{parseError:Te,isRepairable:!1}:(Er(C,P,X,W),Ji(hn)?null:{validationErrors:hn})}function wr(Fe,At){if(a("patch",Fe,At),void 0===C)throw new Error("Cannot apply patch: no JSON");var Gt={json:C},ln=C,mn=Ve,ci=Ct,$i=_ae(C,Fe),zn=Zse(C,Ve,Fe).json,ai=function UZe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=fu(Zu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return dr(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?nt(nt({},t),{},{sortedColumn:void 0}):t}(Ve,Fe,We),ni="function"==typeof At?At(zn,ai):void 0;e(7,C=ni&&void 0!==ni.json?ni.json:zn);var kr=ni&&void 0!==ni.state?ni.state:ai;e(10,Ve=kr),e(15,D=void 0),e(18,Ct=!1),e(17,je=void 0),yn.add({undo:{patch:$i,json:void 0,text:void 0,state:pl(mn),textIsRepaired:ci},redo:{patch:Fe,json:void 0,state:pl(kr),text:void 0,textIsRepaired:Ct}});var Fr={json:C,previousJson:ln,undo:$i,redo:Fe};return Xr(Gt,Fr),Fr}function Si(Fe,At){if(!E)return wr(Fe,At)}function Xr(Fe,At){(void 0!==Fe.json||void 0!==Fe?.text)&&(void 0!==D?H({text:D,json:void 0},Fe,{contentErrors:fr(),patchResult:At}):void 0!==C&&H({text:void 0,json:C},Fe,{contentErrors:fr(),patchResult:At}))}function Ro(Fe){a("handleFind",Fe)}function Rn(Fe){a("pasted json as text",Fe),e(17,je=Fe)}function kt(Fe){var At=parseInt(Fe[0]),Gt=[String(At+1)].concat(ui(Fe.slice(1)));return nu(C,Gt)?br(Gt,!1):br(Fe,!1)}function pi(){b&&(b.focus(),b.select())}function Bi(){Ve.selection||Re(function(){if(ao(C)&&!Ji(C)&&!Ji(We))return br(["0"].concat(ui(We[0])),!1)}())}function Ar(Fe){var At=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Gt=u4(Fe,We,$,18),ln=Gt-le,mn=vt(Fe);a("scrollTo",{path:Fe,top:Gt,scrollTop:le,elem:mn});var ci=y.getBoundingClientRect();if(mn&&!At){var $i=mn.getBoundingClientRect();if($i.bottom>ci.top&&$i.topGt.right&&e(13,y.scrollLeft+=ln.right-Gt.right,y),ln.left(zn=le+ci.height-18)&&e(13,y.scrollTop+=mn-zn,y),ln<$i&&e(13,y.scrollTop-=$i-ln,y),ko(Fe)}function vt(Fe){return y?y.querySelector('td[data-path="'.concat(C0(Fe),'"]')):null}function jn(Fe){st=!0;var ni=u(Dot,{json:C,documentState:Ve,parser:X,showTip:Fe.showTip,onEditValue:ki,onEditRow:Nr,onToggleEnforceString:Jr,onCut:Cr,onCopy:Za,onPaste:Ks,onRemove:$c,onDuplicateRow:Ee,onInsertBeforeRow:qe,onInsertAfterRow:Ke,onRemoveRow:dt,onCloseContextMenu:function(){d(ni),pi()}},{left:Fe.left,top:Fe.top,offsetTop:Fe.offsetTop,offsetLeft:Fe.offsetLeft,width:Fe.width,height:Fe.height,anchor:Fe.anchor,closeOnOuterClick:!0,onClose:function(){st=!1,pi()}})}function di(Fe){if(!E&&!yp(Ve.selection)){if(Fe&&(Fe.stopPropagation(),Fe.preventDefault()),Fe&&"contextmenu"===Fe.type&&Fe.target!==b)jn({left:Fe.clientX,top:Fe.clientY,width:260,height:336,showTip:!1});else{var At,Gt=null===(At=y)||void 0===At?void 0:At.querySelector(".jse-table-cell.jse-selected-value");if(Gt)jn({anchor:Gt,offsetTop:2,width:260,height:336,showTip:!1});else{var ln,mn=null===(ln=y)||void 0===ln?void 0:ln.getBoundingClientRect();mn&&jn({top:mn.top+2,left:mn.left+2,width:260,height:336,showTip:!1})}}return!1}}function ki(){if(!E&&Ve.selection){var Fe=Ve.selection.focusPath;zo(Mn(C,Fe))?gi(Fe):Re(br(Fe,!0))}}function Nr(){!E&&Ve.selection&&gi(Ve.selection.focusPath.slice(0,1))}function Jr(){if(!E&&nr(Ve.selection)){var Fe=Ve.selection.focusPath,At=dn(Fe),Gt=Mn(C,Fe),ln=!mf(Gt,Ve.enforceStringMap,At,X),mn=ln?String(Gt):e0(String(Gt),X);a("handleToggleEnforceString",{enforceString:ln,value:Gt,updatedValue:mn}),Si([{op:"replace",path:At,value:mn}],function(ci,$i){return{state:Qse($i,At,ln)}})}}function co(){return(co=or(_n().mark(function Fe(){var At,Gt,ln;return _n().wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return a("apply pasted json",je),Gt=(At=je).path,ln=At.contents,Re(br(Gt,!1)),mn.next=5,tc();case 5:Si([{op:"replace",path:dn(Gt),value:ln}]);case 7:case"end":return mn.stop()}},Fe)}))).apply(this,arguments)}function Ks(){l(Lle,{},nt(nt({},Vm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return pi()}})}function Cr(Fe){return Qs.apply(this,arguments)}function Qs(){return(Qs=or(_n().mark(function Fe(At){return _n().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,uue({json:C,documentState:Ve,indentation:At?J:void 0,readOnly:E,parser:X,onPatch:Si});case 2:case"end":return Gt.stop()}},Fe)}))).apply(this,arguments)}function Za(){return el.apply(this,arguments)}function el(){return el=or(_n().mark(function Fe(){var At,Gt=arguments;return _n().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(At=!(Gt.length>0&&void 0!==Gt[0])||Gt[0],void 0!==C){ln.next=3;break}return ln.abrupt("return");case 3:return ln.next=5,due({json:C,documentState:Ve,indentation:At?J:void 0,parser:X});case 5:case"end":return ln.stop()}},Fe)})),el.apply(this,arguments)}function $c(){fue({json:C,text:D,documentState:Ve,keepSelection:!0,readOnly:E,onChange:H,onPatch:Si})}function Ee(){!function zZe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&M0(e.selection)){var s=fu(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;Rl("duplicate row",{rowIndex:a});var c=[String(a)];o(gae(n,[c]),function(u,d){var h=br(lg({rowIndex:a0?a-1:void 0,h=void 0!==d?br(lg({rowIndex:d,columnIndex:l},i),!1):void 0;return Rl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:nt(nt({},u),{},{selection:h})}})}}({json:C,documentState:Ve,columns:We,readOnly:E,onPatch:Si})}function Ye(){return(Ye=or(_n().mark(function Fe(At){return _n().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,pue({char:At,selectInside:!1,refJsonEditor:v,json:C,documentState:Ve,readOnly:E,parser:X,onPatch:Si,onReplaceJson:In,onSelect:Re});case 2:case"end":return Gt.stop()}},Fe)}))).apply(this,arguments)}function In(Fe,At){var Gt=Ve,ln=C,mn=D,ci={json:C,text:D},$i=Ct,zn=uu(C,Ve,[],lh),ai="function"==typeof At?At(Fe,zn):void 0;e(7,C=ai&&void 0!==ai.json?ai.json:Fe),e(10,Ve=ai&&void 0!==ai.state?ai.state:zn),e(15,D=void 0),e(18,Ct=!1),Ze(C),Ri({previousJson:ln,previousState:Gt,previousText:mn,previousTextIsRepaired:$i}),Xr(ci,null)}function li(Fe,At){a("handleChangeText");var Gt=Ve,ln=C,mn=D,ci={json:C,text:D},$i=Ct;try{e(7,C=oe(Fe)),e(10,Ve=uu(C,Ve,[],lh)),e(15,D=void 0),e(18,Ct=!1)}catch{try{e(7,C=oe(Kd(Fe))),e(10,Ve=uu(C,Ve,[],lh)),e(15,D=Fe),e(18,Ct=!0)}catch{e(7,C=void 0),e(10,Ve=fk({json:C,expand:lh})),e(15,D=Fe),e(18,Ct=!1)}}if("function"==typeof At){var zn=At(C,Ve);e(7,C=zn&&zn.json?zn.json:C),e(10,Ve=zn&&zn.state?zn.state:Ve)}Ze(C),Ri({previousJson:ln,previousState:Gt,previousText:mn,previousTextIsRepaired:$i}),Xr(ci,null)}function vi(Fe){var Gt=Fe.rootPath,ln=Fe.onTransform,mn=Fe.onClose;E||void 0===C||(st=!0,ce({id:Fe.id||p,json:C,rootPath:Gt||[],onTransform:ln?function(ci){ln({operations:ci,json:C,transformedJson:ed(C,ci)})}:function(ci){a("onTransform",Gt,ci),Si(ci)},onClose:function(){st=!1,pi(),mn&&mn()}}))}function gi(Fe){a("openJSONEditorModal",{path:Fe}),st=!0,ve({content:{json:Mn(C,Fe)},path:Fe,onPatch:Ot.onPatch,onClose:function(){st=!1,pi()}})}function Mr(Fe,At){l(Xle,{text:Fe,onParse:ak,onRepair:bse,onApply:At},nt(nt({},Vm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return pi()}})}function to(){if(!E&&yn.getState().canUndo){var Fe=yn.undo();if(Fe){var At={json:C,text:D};e(7,C=Fe.undo.patch?ed(C,Fe.undo.patch):Fe.undo.json),e(10,Ve=Fe.undo.state),e(15,D=Fe.undo.text),e(18,Ct=Fe.undo.textIsRepaired),a("undo",{item:Fe,json:C}),Xr(At,{json:C,previousJson:At.json,redo:Fe.undo.patch,undo:Fe.redo.patch}),pi(),Ve.selection&&Ar(Ve.selection.focusPath,!1)}}}function xi(){if(!E&&yn.getState().canRedo){var Fe=yn.redo();if(Fe){var At={json:C,text:D};e(7,C=Fe.redo.patch?ed(C,Fe.redo.patch):Fe.redo.json),e(10,Ve=Fe.redo.state),e(15,D=Fe.redo.text),e(18,Ct=Fe.redo.textIsRepaired),a("redo",{item:Fe,json:C}),Xr(At,{json:C,previousJson:At.json,redo:Fe.redo.patch,undo:Fe.undo.patch}),pi(),Ve.selection&&Ar(Ve.selection.focusPath,!1)}}}function Sr(Fe,At){e(68,$[At]=Fe.getBoundingClientRect().height,$)}return t.$$set=function(Fe){"readOnly"in Fe&&e(0,E=Fe.readOnly),"externalContent"in Fe&&e(47,B=Fe.externalContent),"mainMenuBar"in Fe&&e(1,z=Fe.mainMenuBar),"escapeControlCharacters"in Fe&&e(48,j=Fe.escapeControlCharacters),"escapeUnicodeCharacters"in Fe&&e(49,U=Fe.escapeUnicodeCharacters),"flattenColumns"in Fe&&e(50,G=Fe.flattenColumns),"parser"in Fe&&e(2,X=Fe.parser),"parseMemoizeOne"in Fe&&e(51,oe=Fe.parseMemoizeOne),"validator"in Fe&&e(52,P=Fe.validator),"validationParser"in Fe&&e(53,W=Fe.validationParser),"indentation"in Fe&&e(3,J=Fe.indentation),"onChange"in Fe&&e(54,H=Fe.onChange),"onChangeMode"in Fe&&e(4,pe=Fe.onChangeMode),"onRenderValue"in Fe&&e(55,A=Fe.onRenderValue),"onRenderMenu"in Fe&&e(5,N=Fe.onRenderMenu),"onFocus"in Fe&&e(56,F=Fe.onFocus),"onBlur"in Fe&&e(57,q=Fe.onBlur),"onSortModal"in Fe&&e(58,V=Fe.onSortModal),"onTransformModal"in Fe&&e(59,ce=Fe.onTransformModal),"onJSONEditorModal"in Fe&&e(60,ve=Fe.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=yP({escapeControlCharacters:j,escapeUnicodeCharacters:U})),65536&t.$$.dirty[1]&&function on(Fe){var At=C,Gt=x0(Fe)?Fe.text!==D:!dr(At,Fe.json);if(a("update external content",{isChanged:Gt}),Gt){var ln={json:C,text:D},mn=C,ci=Ve,$i=D,zn=Ct;if(x0(Fe))try{e(7,C=oe(Fe.text)),e(15,D=Fe.text),e(18,Ct=!1),e(16,Te=void 0)}catch(ai){try{e(7,C=oe(Kd(Fe.text))),e(15,D=Fe.text),e(18,Ct=!0),e(16,Te=void 0)}catch{e(7,C=void 0),e(15,D=B.text),e(18,Ct=!1),e(16,Te=lk(D,ai.message||ai.toString()))}}else e(7,C=Fe.json),e(15,D=void 0),e(18,Ct=!1),e(16,Te=void 0);Ze(C),Ve.sortedColumn&&e(10,Ve=nt(nt({},Ve),{},{sortedColumn:void 0})),Ri({previousJson:mn,previousState:ci,previousText:$i,previousTextIsRepaired:zn}),Xr(ln,null)}}(B),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,We=ao(C)?function(Fe,At){var Gt,ln=new Set(At.map(dn)),mn=new Set(Fe.map(dn)),ci=He(ln);try{for(ci.s();!(Gt=ci.n()).done;){var $i=Gt.value;mn.has($i)||ln.delete($i)}}catch(kr){ci.e(kr)}finally{ci.f()}var zn,ai=He(mn);try{for(ai.s();!(zn=ai.n()).done;){var ni=zn.value;ln.has(ni)||ln.add(ni)}}catch(kr){ai.e(kr)}finally{ai.f()}return ui(ln).map(Zu)}(function(Fe,At){var Gt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,ln={};Array.isArray(Fe)&&function Jqe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;ret),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Fe,At,Gt,ln,mn){for(var ci=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,$i=ao(Gt)?Gt.length:0,zn=function $Ze(t,n){var e=Object.values(t);return Ji(e)?n:e.reduce(function(r,o){return r+o})/e.length}(ln,mn),ai=Fe-ci,ni=At+2*ci,kr=function(xd){return ln[xd]||mn},Fr=0,jo=0;jo0&&(jo-=kr(--Fr));for(var ba=Fr,bd=0;bd0?br(lg({rowIndex:kr.rowIndex,columnIndex:jo-1},ai),!1):ni;Re(Gt),Qo(Gt.focusPath)}if("ArrowRight"===At&&(Fe.preventDefault(),Bi(),Ve.selection)){var ln=function(ai,ni){var kr=fu(ni.focusPath,ai),jo=kr.columnIndex;return jo0?br(lg({rowIndex:Fr-1,columnIndex:kr.columnIndex},ai),!1):ni}(We,Ve.selection);Re(mn),Qo(mn.focusPath)}if("ArrowDown"===At&&(Fe.preventDefault(),Bi(),Ve.selection)){var ci=function(ai,ni,kr){var Fr=fu(kr.focusPath,ni),jo=Fr.rowIndex;return jo1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Qme({props:{mode:Bn(t[18]).mode,content:Bn(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:fh,onBlur:fh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var C=t[19]&&Zme(t),D=t[18].length>1&&ege(t);function E(j,U){return j[0]?est:tst}var B=E(t),z=B(t);return{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),(o=De("div")).innerHTML='
    Path
    ',s=rt(),a=De("input"),l=rt(),(c=De("div")).innerHTML='
    Contents
    ',u=rt(),d=De("div"),gt(h.$$.fragment),f=rt(),p=De("div"),C&&C.c(),m=rt(),D&&D.c(),g=rt(),z.c(),R(o,"class","jse-label svelte-1hibiw3"),R(a,"class","jse-path svelte-1hibiw3"),R(a,"type","text"),a.readOnly=!0,R(a,"title","Selected path"),a.value=t[21],R(c,"class","jse-label svelte-1hibiw3"),R(d,"class","jse-modal-inline-editor svelte-1hibiw3"),R(p,"class","jse-actions svelte-1hibiw3"),R(r,"class","jse-modal-contents svelte-1hibiw3"),R(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(j,U){$e(j,n,U),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(r,s),me(r,a),me(r,l),me(r,c),me(r,u),me(r,d),pt(h,d,null),me(r,f),me(r,p),C&&C.m(p,null),me(p,m),D&&D.m(p,null),me(p,g),z.m(p,null),v=!0,y||(b=Ea(Nk.call(null,n,t[23])),y=!0)},p:function(j,U){var G={};262144&U[0]&&(G.title="Edit nested content "+(j[18].length>1?" (".concat(j[18].length,")"):"")),e.$set(G),(!v||2097152&U[0]&&a.value!==j[21])&&(a.value=j[21]);var X={};262144&U[0]&&(X.mode=Bn(j[18]).mode),262144&U[0]&&(X.content=Bn(j[18]).content),1&U[0]&&(X.readOnly=j[0]),2&U[0]&&(X.indentation=j[1]),4&U[0]&&(X.tabSize=j[2]),32&U[0]&&(X.statusBar=j[5]),8&U[0]&&(X.mainMenuBar=j[3]),16&U[0]&&(X.navigationBar=j[4]),64&U[0]&&(X.escapeControlCharacters=j[6]),128&U[0]&&(X.escapeUnicodeCharacters=j[7]),256&U[0]&&(X.flattenColumns=j[8]),512&U[0]&&(X.parser=j[9]),1048576&U[0]&&(X.parseMemoizeOne=j[20]),1024&U[0]&&(X.validator=j[10]),2048&U[0]&&(X.validationParser=j[11]),4096&U[0]&&(X.pathParser=j[12]),8192&U[0]&&(X.onRenderValue=j[13]),16384&U[0]&&(X.onClassName=j[14]),32768&U[0]&&(X.onRenderMenu=j[15]),65536&U[0]&&(X.onSortModal=j[16]),131072&U[0]&&(X.onTransformModal=j[17]),h.$set(X),j[19]?C?C.p(j,U):((C=Zme(j)).c(),C.m(p,m)):C&&(C.d(1),C=null),j[18].length>1?D?(D.p(j,U),262144&U[0]&&Q(D,1)):((D=ege(j)).c(),Q(D,1),D.m(p,g)):D&&(Ht(),fe(D,1,1,function(){D=null}),Ut()),B===(B=E(j))&&z?z.p(j,U):(z.d(1),(z=B(j))&&(z.c(),z.m(p,null)))},i:function(j){v||(Q(e.$$.fragment,j),Q(h.$$.fragment,j),Q(D),v=!0)},o:function(j){fe(e.$$.fragment,j),fe(h.$$.fragment,j),fe(D),v=!1},d:function(j){j&&Be(n),mt(e),mt(h),C&&C.d(),D&&D.d(),z.d(),y=!1,b()}}}function tge(t){t.focus()}function ist(t,n,e){var i,r,o,s=Ma("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,b=n.parser,C=n.validator,D=n.validationParser,E=n.pathParser,B=n.onRenderValue,z=n.onClassName,j=n.onRenderMenu,U=n.onSortModal,G=n.onTransformModal,X=Aa("simple-modal").close,oe=[{mode:W(a),content:a,relativePath:l}],P=void 0;function W(H){return vP(H)&&ao(H.json)?Uo.table:Uo.tree}function J(H){s("handleChange",H);var pe=nt(nt({},Bn(oe)),{},{content:H});e(18,oe=[].concat(ui(tr(oe)),[pe]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,b=H.parser),"validator"in H&&e(10,C=H.validator),"validationParser"in H&&e(11,D=H.validationParser),"pathParser"in H&&e(12,E=H.pathParser),"onRenderValue"in H&&e(13,B=H.onRenderValue),"onClassName"in H&&e(14,z=H.onClassName),"onRenderMenu"in H&&e(15,j=H.onRenderMenu),"onSortModal"in H&&e(16,U=H.onSortModal),"onTransformModal"in H&&e(17,G=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=oe.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Ji(i)?"(whole document)":cu(rc(i))),512&t.$$.dirty[0]&&e(20,o=wb(b.parse))},[u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,oe,P,o,r,function(){if(s("handleApply"),!u)try{e(19,P=void 0);var H=[{op:"replace",path:dn(Bn(oe).relativePath),value:wse(Bn(oe).content,b).json}];if(oe.length>1){var pe={json:ed(wse(oe[oe.length-2].content,b).json,H)};e(18,oe=tr(oe)),J(pe)}else c(H),X()}catch(A){e(19,P=A.toString())}},function(){s("handleClose"),oe.length>1?(e(18,oe=tr(oe)),e(19,P=void 0)):X()},J,function(H){s("handleChangeMode",H);var pe=nt(nt({},Bn(oe)),{},{mode:H});e(18,oe=[].concat(ui(tr(oe)),[pe]))},function(H){e(19,P=H.toString()),console.error(H)},function(H){var pe=H.content,A=H.path;s("handleJSONEditorModal",{content:pe,path:A});var N={mode:W(pe),content:pe,relativePath:A};e(18,oe=[].concat(ui(oe),[N]))},a,l,c,i]}var rst=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ist,nst,Pi,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Zot,[-1,-1]),r}return Ie(e)}();function ost(t,n,e){var i=Aa("simple-modal");return[i.open,i.close]}var sst=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ost,null,Pi,{open:0,close:1}),r}return Ie(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function ast(t){_i(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function nge(t){var n,e;return n=new Qme({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){gt(n.$$.fragment)},m:function(r,o){pt(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(Q(n.$$.fragment,r),e=!0)},o:function(r){fe(n.$$.fragment,r),e=!1},d:function(r){t[56](null),mt(n,r)}}}function lst(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new sst({props:l}),Xi.push(function(){return Xu(n,"open",a)});var c=nge(t);return{c:function(){gt(n.$$.fragment),i=rt(),r=De("div"),c.c(),R(r,"class","jse-main svelte-sxaskb"),Nt(r,"jse-focus",t[20])},m:function(u,d){pt(n,u,d),$e(u,i,d),$e(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],Yu(function(){return e=!1})),n.$set(h),524288&d[0]&&Pi(s,s=u[19])?(Ht(),fe(c,1,1,Bt),Ut(),(c=nge(u)).c(),Q(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&Nt(r,"jse-focus",u[20])},i:function(u){o||(Q(n.$$.fragment,u),Q(c),o=!0)},o:function(u){fe(n.$$.fragment,u),fe(c),o=!1},d:function(u){mt(n,u),u&&Be(i),u&&Be(r),c.d(u)}}}function cst(t){var n,e;return n=new jZ({props:{closeOnEsc:!1,$$slots:{default:[lst]},$$scope:{ctx:t}}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function ust(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},LZ,{closeOnEsc:!1}],o={$$slots:{default:[cst]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;Oe(this,l),this._names={},this._prefixes=u,this._parent=d}return Ie(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){Dt(u,l);var c=Tt(u);function u(d,h){var f;return Oe(this,u),(f=c.call(this,h)).prefix=d,f}return Ie(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(Qq||(Qq=Pe([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)(Zq||(Zq=Pe(["\n"],["\\n"]))),a=function(l){Dt(u,l);var c=Tt(u);function u(d){var h;return Oe(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=nt(nt({},d),{},{_n:d.lines?s:e.nil}),h}return Ie(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var b=this._scope[m]||(this._scope[m]=[]),C=b.length;return b[C]=h.ref,p.setValue(h,{property:m,itemIndex:C}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(eY||(eY=Pe(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(b){var C=d[b];if(!C)return"continue";var D=p[b]=p[b]||new Map;C.forEach(function(E){if(!D.has(E)){D.set(E,n.Started);var B=h(E);if(B){var z=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(tY||(tY=Pe(["",""," "," = ",";",""])),g,z,E,B,f.opts._n)}else{if(!(B=m?.(E)))throw new i(E);g=(0,e._)(nY||(nY=Pe(["","","",""])),g,B,f.opts._n)}D.set(E,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(pge)),pge}function Tr(){return fge||(fge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=nT(),e=mge(),i=nT();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=mge();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function F(){Oe(this,F)}return Ie(F,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(q,V){return this}}]),F}(),s=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).varKind=ce,Te.name=ve,Te.rhs=je,Te}return Ie(V,[{key:"render",value:function(ce){var je=ce._n,Te=ce.es5?e.varKinds.var:this.varKind,et=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(Te," ").concat(this.name).concat(et,";")+je}},{key:"optimizeNames",value:function(ce,ve){if(ce[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,ce,ve)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).lhs=ce,Te.rhs=ve,Te.sideEffects=je,Te}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+ve}},{key:"optimizeNames",value:function(ce,ve){if(!(this.lhs instanceof n.Name)||ce[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,ce,ve),this}},{key:"names",get:function(){return oe(this.lhs instanceof n.Name?{}:nt({},this.lhs.names),this.rhs)}}]),V}(o),l=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this,ce,je,Te)).op=ve,et}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+ve}}]),V}(a),c=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).label=ce,ve.names={},ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.label,":")+ve}}]),V}(o),u=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).label=ce,ve.names={},ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n,je=this.label?" ".concat(this.label):"";return"break".concat(je,";")+ve}}]),V}(o),d=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).error=ce,ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"throw ".concat(this.error,";")+ve}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).code=ce,ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.code,";")+ve}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(ce,ve){return this.code=P(this.code,ce,ve),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(F){Dt(V,F);var q=Tt(V);function V(){var ce,ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Oe(this,V),(ce=q.call(this)).nodes=ve,ce}return Ie(V,[{key:"render",value:function(ce){return this.nodes.reduce(function(ve,je){return ve+je.render(ce)},"")}},{key:"optimizeNodes",value:function(){for(var ce=this.nodes,ve=ce.length;ve--;){var je=ce[ve].optimizeNodes();Array.isArray(je)?ce.splice.apply(ce,[ve,1].concat(ui(je))):je?ce[ve]=je:ce.splice(ve,1)}return ce.length>0?this:void 0}},{key:"optimizeNames",value:function(ce,ve){for(var je=this.nodes,Te=je.length;Te--;){var et=je[Te];et.optimizeNames(ce,ve)||(W(ce,et.names),je.splice(Te,1))}return je.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(ce,ve){return X(ce,ve.names)},{})}}]),V}(o),p=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"{"+ce._n+_r(er(V.prototype),"render",this).call(this,ce)+"}"+ce._n}}]),V}(f),m=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(f),g=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(p);g.kind="else";var v=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve){var je;return Oe(this,V),(je=q.call(this,ve)).condition=ce,je}return Ie(V,[{key:"render",value:function(ce){var ve="if(".concat(this.condition,")")+_r(er(V.prototype),"render",this).call(this,ce);return this.else&&(ve+="else "+this.else.render(ce)),ve}},{key:"optimizeNodes",value:function(){_r(er(V.prototype),"optimizeNodes",this).call(this);var ce=this.condition;if(!0===ce)return this.nodes;var ve=this.else;if(ve){var je=ve.optimizeNodes();ve=this.else=Array.isArray(je)?new g(je):je}return ve?!1===ce?ve instanceof V?ve:ve.nodes:this.nodes.length?this:new V(J(ce),ve instanceof V?[ve]:ve.nodes):!1!==ce&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(ce,ve){var je;if(this.else=null===(je=this.else)||void 0===je?void 0:je.optimizeNames(ce,ve),_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve)||this.else)return this.condition=P(this.condition,ce,ve),this}},{key:"names",get:function(){var ce=_r(er(V.prototype),"names",this);return oe(ce,this.condition),this.else&&X(ce,this.else.names),ce}}]),V}(p);v.kind="if";var y=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(p);y.kind="for";var b=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).iteration=ce,ve}return Ie(V,[{key:"render",value:function(ce){return"for(".concat(this.iteration,")")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"optimizeNames",value:function(ce,ve){if(_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve))return this.iteration=P(this.iteration,ce,ve),this}},{key:"names",get:function(){return X(_r(er(V.prototype),"names",this),this.iteration.names)}}]),V}(y),C=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this)).varKind=ce,et.name=ve,et.from=je,et.to=Te,et}return Ie(V,[{key:"render",value:function(ce){var je=this.name,Te=this.from,et=this.to;return"for(".concat(ce.es5?e.varKinds.var:this.varKind," ").concat(je,"=").concat(Te,"; ").concat(je,"<").concat(et,"; ").concat(je,"++)")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"names",get:function(){var ce=oe(_r(er(V.prototype),"names",this),this.from);return oe(ce,this.to)}}]),V}(y),D=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this)).loop=ce,et.varKind=ve,et.name=je,et.iterable=Te,et}return Ie(V,[{key:"render",value:function(ce){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"optimizeNames",value:function(ce,ve){if(_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve))return this.iterable=P(this.iterable,ce,ve),this}},{key:"names",get:function(){return X(_r(er(V.prototype),"names",this),this.iterable.names)}}]),V}(y),E=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).name=ce,Te.args=ve,Te.async=je,Te}return Ie(V,[{key:"render",value:function(ce){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);E.kind="func";var B=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"return "+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(f);B.kind="return";var z=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){var ve="try"+_r(er(V.prototype),"render",this).call(this,ce);return this.catch&&(ve+=this.catch.render(ce)),this.finally&&(ve+=this.finally.render(ce)),ve}},{key:"optimizeNodes",value:function(){var ce,ve;return _r(er(V.prototype),"optimizeNodes",this).call(this),null===(ce=this.catch)||void 0===ce||ce.optimizeNodes(),null===(ve=this.finally)||void 0===ve||ve.optimizeNodes(),this}},{key:"optimizeNames",value:function(ce,ve){var je,Te;return _r(er(V.prototype),"optimizeNames",this).call(this,ce,ve),null===(je=this.catch)||void 0===je||je.optimizeNames(ce,ve),null===(Te=this.finally)||void 0===Te||Te.optimizeNames(ce,ve),this}},{key:"names",get:function(){var ce=_r(er(V.prototype),"names",this);return this.catch&&X(ce,this.catch.names),this.finally&&X(ce,this.finally.names),ce}}]),V}(p),j=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).error=ce,ve}return Ie(V,[{key:"render",value:function(ce){return"catch(".concat(this.error,")")+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);j.kind="catch";var U=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"finally"+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);U.kind="finally";var G=function(){function F(q){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oe(this,F),this._values={},this._blockStarts=[],this._constants={},this.opts=nt(nt({},V),{},{_n:V.lines?"\n":""}),this._extScope=q,this._scope=new e.Scope({parent:q}),this._nodes=[new m]}return Ie(F,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(q){return this._scope.name(q)}},{key:"scopeName",value:function(q){return this._extScope.name(q)}},{key:"scopeValue",value:function(q,V){var ce=this._extScope.value(q,V);return(this._values[ce.prefix]||(this._values[ce.prefix]=new Set)).add(ce),ce}},{key:"getScopeValue",value:function(q,V){return this._extScope.getValue(q,V)}},{key:"scopeRefs",value:function(q){return this._extScope.scopeRefs(q,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(q,V,ce,ve){var je=this._scope.toName(V);return void 0!==ce&&ve&&(this._constants[je.str]=ce),this._leafNode(new s(q,je,ce)),je}},{key:"const",value:function(q,V,ce){return this._def(e.varKinds.const,q,V,ce)}},{key:"let",value:function(q,V,ce){return this._def(e.varKinds.let,q,V,ce)}},{key:"var",value:function(q,V,ce){return this._def(e.varKinds.var,q,V,ce)}},{key:"assign",value:function(q,V,ce){return this._leafNode(new a(q,V,ce))}},{key:"add",value:function(q,V){return this._leafNode(new l(q,t.operators.ADD,V))}},{key:"code",value:function(q){return"function"==typeof q?q():q!==n.nil&&this._leafNode(new h(q)),this}},{key:"object",value:function(){for(var q=["{"],V=arguments.length,ce=new Array(V),ve=0;ve1&&q.push(","),q.push(We),(We!==st||this.opts.es5)&&(q.push(":"),(0,n.addCodeArg)(q,st))}return q.push("}"),new n._Code(q)}},{key:"if",value:function(q,V,ce){if(this._blockNode(new v(q)),V&&ce)this.code(V).else().code(ce).endIf();else if(V)this.code(V).endIf();else if(ce)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(q){return this._elseNode(new v(q))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(q,V){return this._blockNode(q),V&&this.code(V).endFor(),this}},{key:"for",value:function(q,V){return this._for(new b(q),V)}},{key:"forRange",value:function(q,V,ce,ve){var je=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,Te=this._scope.toName(q);return this._for(new C(je,Te,V,ce),function(){return ve(Te)})}},{key:"forOf",value:function(q,V,ce){var ve=this,je=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,Te=this._scope.toName(q);if(this.opts.es5){var et=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(iY||(iY=Pe(["",".length"])),et),function(We){ve.var(Te,(0,n._)(rY||(rY=Pe(["","[","]"])),et,We)),ce(Te)})}return this._for(new D("of",je,Te,V),function(){return ce(Te)})}},{key:"forIn",value:function(q,V,ce){var ve=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(q,(0,n._)(oY||(oY=Pe(["Object.keys(",")"])),V),ce);var je=this._scope.toName(q);return this._for(new D("in",ve,je,V),function(){return ce(je)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(q){return this._leafNode(new c(q))}},{key:"break",value:function(q){return this._leafNode(new u(q))}},{key:"return",value:function(q){var V=new B;if(this._blockNode(V),this.code(q),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(B)}},{key:"try",value:function(q,V,ce){if(!V&&!ce)throw new Error('CodeGen: "try" without "catch" and "finally"');var ve=new z;if(this._blockNode(ve),this.code(q),V){var je=this.name("e");this._currNode=ve.catch=new j(je),V(je)}return ce&&(this._currNode=ve.finally=new U,this.code(ce)),this._endBlockNode(j,U)}},{key:"throw",value:function(q){return this._leafNode(new d(q))}},{key:"block",value:function(q,V){return this._blockStarts.push(this._nodes.length),q&&this.code(q).endBlock(V),this}},{key:"endBlock",value:function(q){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var ce=this._nodes.length-V;if(ce<0||void 0!==q&&ce!==q)throw new Error("CodeGen: wrong number of nodes: ".concat(ce," vs ").concat(q," expected"));return this._nodes.length=V,this}},{key:"func",value:function(q){var ve=arguments.length>3?arguments[3]:void 0;return this._blockNode(new E(q,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),ve&&this.code(ve).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(E)}},{key:"optimize",value:function(){for(var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;q-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(q){return this._currNode.nodes.push(q),this}},{key:"_blockNode",value:function(q){this._currNode.nodes.push(q),this._nodes.push(q)}},{key:"_endBlockNode",value:function(q,V){var ce=this._currNode;if(ce instanceof q||V&&ce instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(q.kind,"/").concat(V.kind):q.kind,'"'))}},{key:"_elseNode",value:function(q){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=q,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var q=this._nodes;return q[q.length-1]},set:function(q){var V=this._nodes;V[V.length-1]=q}}]),F}();function X(F,q){for(var V in q)F[V]=(F[V]||0)+(q[V]||0);return F}function oe(F,q){return q instanceof n._CodeOrName?X(F,q.names):F}function P(F,q,V){return F instanceof n.Name?ce(F):(ve=F)instanceof n._Code&&ve._items.some(function(je){return je instanceof n.Name&&1===q[je.str]&&void 0!==V[je.str]})?new n._Code(F._items.reduce(function(ve,je){return je instanceof n.Name&&(je=ce(je)),je instanceof n._Code?ve.push.apply(ve,ui(je._items)):ve.push(je),ve},[])):F;var ve;function ce(ve){var je=V[ve.str];return void 0===je||1!==q[ve.str]?ve:(delete q[ve.str],je)}}function W(F,q){for(var V in q)F[V]=(F[V]||0)-(q[V]||0)}function J(F){return"boolean"==typeof F||"number"==typeof F||null===F?!F:(0,n._)(sY||(sY=Pe(["!",""])),N(F))}t.CodeGen=G,t.not=J;var H=A(t.operators.AND);t.and=function(){for(var F=arguments.length,q=new Array(F),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,b,C,D){var E=void 0===C?b:C instanceof n.Name?(b instanceof n.Name?p(y,b,C):m(y,b,C),C):b instanceof n.Name?(m(y,C,b),b):g(b,C);return D!==n.Name||E instanceof n.Name?E:v(y,E)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(xY||(xY=Pe(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(wY||(wY=Pe(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=He(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(cY||(cY=Pe(["",""])),p)}return(0,n._)(uY||(uY=Pe(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=He(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(dY||(dY=Pe([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(hY||(hY=Pe([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(fY||(fY=Pe([""," || {}"])),m)).code((0,n._)(pY||(pY=Pe(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(mY||(mY=Pe([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(gY||(gY=Pe([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||nt(nt({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(vY||(vY=Pe([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(yY||(yY=Pe([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(_Y||(_Y=Pe([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(bY||(bY=Pe([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?CY||(CY=Pe(['"[" + ',' + "]"'])):SY||(SY=Pe(['"[\'" + ',' + "\']"'])):g?kY||(kY=Pe(['"/" + ',""])):DY||(DY=Pe(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(zr);var gge,vge,yge,iT={};function Vp(){if(gge)return iT;gge=1,Object.defineProperty(iT,"__esModule",{value:!0});var t=Tr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return iT.default=n,iT}function rT(){return vge||(vge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=Tr(),e=zr,i=Vp();function r(d,h){var f=d.const("err",h);d.if((0,n._)($Y||($Y=Pe([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(VY||(VY=Pe(["[","]"])),f))},(0,n._)(HY||(HY=Pe(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(UY||(UY=Pe(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(zY||(zY=Pe(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(GY||(GY=Pe(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(TY||(TY=Pe(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(EY||(EY=Pe(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(AY||(AY=Pe(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,b=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,b):o(m,(0,n._)(MY||(MY=Pe(["[","]"])),b))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(OY||(OY=Pe([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(IY||(IY=Pe(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(b){h.const(y,(0,n._)(NY||(NY=Pe(["","[","]"])),i.default.vErrors,b)),h.if((0,n._)(FY||(FY=Pe(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(PY||(PY=Pe(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(RY||(RY=Pe(["",".schemaPath"])),y),(0,n.str)(jY||(jY=Pe(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(LY||(LY=Pe(["",".schema"])),y),p),h.assign((0,n._)(BY||(BY=Pe(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(WY||(WY=Pe(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,b=d.it,C=b.opts,D=b.propertyName,E=b.topSchemaRef,B=b.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(JY||(JY=Pe(["{}"])))]),C.messages&&f.push([s.message,"function"==typeof m?m(d):m]),C.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(KY||(KY=Pe(["","",""])),E,B)],[i.default.data,v]),D&&f.push([s.propertyName,D])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(qY||(qY=Pe(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(YY||(YY=Pe(["","/",""])),p,f);return m&&(g=(0,n.str)(XY||(XY=Pe(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(cge)),cge}var ex={},_g={};Object.defineProperty(_g,"__esModule",{value:!0}),_g.getRules=_g.isJSONType=void 0;var bst=new Set(["string","number","integer","boolean","null","object","array"]);_g.isJSONType=function(t){return"string"==typeof t&&bst.has(t)},_g.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:nt(nt({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var _ge,xf={};function bge(){if(_ge)return xf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return _ge=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.shouldUseRule=xf.shouldUseGroup=xf.schemaHasRulesForType=void 0,xf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},xf.shouldUseGroup=t,xf.shouldUseRule=n,xf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=_g,i=bge(),r=rT(),o=Tr(),s=zr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var E,m=f.gen,g=f.data,v=f.opts,y=(E=v.coerceTypes)?p.filter(function(B){return l.has(B)||"array"===E&&"array"===B}):[],b=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(b){var C=u(p,g,v.strictNumbers,n.Wrong);m.if(C,function(){y.length?function(D,E,B){var z=D.gen,j=D.data,U=D.opts,G=z.let("dataType",(0,o._)(ZY||(ZY=Pe(["typeof ",""])),j)),X=z.let("coerced",(0,o._)(eX||(eX=Pe(["undefined"]))));"array"===U.coerceTypes&&z.if((0,o._)(tX||(tX=Pe([""," == 'object' && Array.isArray(",") && ",".length == 1"])),G,j,j),function(){return z.assign(j,(0,o._)(nX||(nX=Pe(["","[0]"])),j)).assign(G,(0,o._)(iX||(iX=Pe(["typeof ",""])),j)).if(u(E,j,U.strictNumbers),function(){return z.assign(X,j)})}),z.if((0,o._)(rX||(rX=Pe([""," !== undefined"])),X));var oe,P=He(B);try{for(P.s();!(oe=P.n()).done;){var W=oe.value;(l.has(W)||"array"===W&&"array"===U.coerceTypes)&&J(W)}}catch(H){P.e(H)}finally{P.f()}function J(H){switch(H){case"string":return void z.elseIf((0,o._)(sX||(sX=Pe(["",' == "number" || ',' == "boolean"'])),G,G)).assign(X,(0,o._)(aX||(aX=Pe(['"" + ',""])),j)).elseIf((0,o._)(lX||(lX=Pe([""," === null"])),j)).assign(X,(0,o._)(cX||(cX=Pe(['""']))));case"number":return void z.elseIf((0,o._)(uX||(uX=Pe(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),G,j,G,j,j,j)).assign(X,(0,o._)(dX||(dX=Pe(["+",""])),j));case"integer":return void z.elseIf((0,o._)(hX||(hX=Pe(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),G,j,G,j,j,j,j)).assign(X,(0,o._)(fX||(fX=Pe(["+",""])),j));case"boolean":return void z.elseIf((0,o._)(pX||(pX=Pe(["",' === "false" || '," === 0 || "," === null"])),j,j,j)).assign(X,!1).elseIf((0,o._)(mX||(mX=Pe(["",' === "true" || '," === 1"])),j,j)).assign(X,!0);case"null":return z.elseIf((0,o._)(gX||(gX=Pe(["",' === "" || '," === 0 || "," === false"])),j,j,j)),void z.assign(X,null);case"array":z.elseIf((0,o._)(vX||(vX=Pe(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),G,G,G,j)).assign(X,(0,o._)(yX||(yX=Pe(["[","]"])),j))}}z.else(),h(D),z.endIf(),z.if((0,o._)(oX||(oX=Pe([""," !== undefined"])),X),function(){var H,pe,A,N,F;z.assign(j,X),pe=X,N=(H=D).parentData,F=H.parentDataProperty,(A=H.gen).if((0,o._)(_X||(_X=Pe([""," !== undefined"])),N),function(){return A.assign((0,o._)(bX||(bX=Pe(["","[","]"])),N,F),pe)})})}(f,p,y):h(f)})}return b};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(xX||(xX=Pe([""," "," null"])),p,y);case"array":g=(0,o._)(wX||(wX=Pe(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(CX||(CX=Pe([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=b((0,o._)(SX||(SX=Pe(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=b();break;default:return(0,o._)(kX||(kX=Pe(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function b(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(DX||(DX=Pe(["typeof ",' == "number"'])),p),C,m?(0,o._)(TX||(TX=Pe(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var b=(0,o._)(EX||(EX=Pe(["typeof ",' != "object"'])),p);v=y.null?b:(0,o._)(AX||(AX=Pe(["!"," || ",""])),p,b),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var C in y.number&&delete y.integer,y)v=(0,o.and)(v,c(C,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(MX||(MX=Pe(["{type: ","}"])),p):(0,o._)(OX||(OX=Pe(["{type: ","}"])),m)}};function h(f){var m,g,v,y,b,p=(g=(m=f).gen,v=m.data,b=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:b,schemaValue:b,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(ex);var xge,wge,Cge,tx={},md={},go={};function gd(){if(wge)return go;wge=1,Object.defineProperty(go,"__esModule",{value:!0}),go.validateUnion=go.validateArray=go.usePattern=go.callValidateCode=go.schemaProperties=go.allSchemaProperties=go.noPropertyInData=go.propertyInData=go.isOwnProperty=go.hasPropFunc=go.reportMissingProp=go.checkMissingProp=go.checkReportMissingProp=void 0;var t=Tr(),n=zr,e=Vp(),i=zr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(LX||(LX=Pe(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(BX||(BX=Pe(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)(HX||(HX=Pe(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}go.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(RX||(RX=Pe(["",""])),u)},!0),c.error()})},go.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,ui(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(jX||(jX=Pe([""," = ",""])),d,m))})))},go.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},go.hasPropFunc=r,go.isOwnProperty=o,go.propertyInData=function(c,u,d,h){var f=(0,t._)($X||($X=Pe(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(VX||(VX=Pe([""," && ",""])),f,o(c,u,d)):f},go.noPropertyInData=s,go.allSchemaProperties=a,go.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},go.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,b=m.errorPath,C=c.it,D=h?(0,t._)(UX||(UX=Pe(["",", ",", ","",""])),f,p,v,y):p,E=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,b)],[e.default.parentData,C.parentData],[e.default.parentDataProperty,C.parentDataProperty],[e.default.rootData,e.default.rootData]];C.opts.dynamicRef&&E.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var B=(0,t._)(zX||(zX=Pe(["",", ",""])),D,g.object.apply(g,E));return d!==t.nil?(0,t._)(GX||(GX=Pe(["",".call(",", ",")"])),u,d,B):(0,t._)(WX||(WX=Pe(["","(",")"])),u,B)};var l=(0,t._)(qX||(qX=Pe(["new RegExp"])));return go.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(YX||(YX=Pe(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},go.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(XX||(XX=Pe(["",".length"])),d));u.forRange("i",0,y,function(b){c.subschema({keyword:h,dataProp:b,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},go.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(JX||(JX=Pe([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},go}var Sge,wf={},Ka={},kge=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==wn(n)&&"object"==wn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},mj={},wst={get exports(){return mj},set exports(t){mj=t}},Hp=wst.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),oT(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function oT(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==wn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Hp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!gj(t):!!n&&Dge(t)<=n)};var Tst=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function gj(t){for(var n in t){if(Tst.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(gj)||"object"==wn(e)&&gj(e))return!0}return!1}function Dge(t){var n=0;for(var e in t)if("$ref"===e||(n++,!Dst.has(e)&&("object"==wn(t[e])&&(0,Cst.eachItem)(t[e],function(i){return n+=Dge(i)}),n===1/0)))return 1/0;return n}function Tge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=u1(n));var i=t.parse(n);return Ege(t,i)}function Ege(t,n){return t.serialize(n).split("#")[0]+"#"}Ka.getFullPath=Tge,Ka._getFullPath=Ege;var Est=/#\/?$/;function u1(t){return t?t.replace(Est,""):""}Ka.normalizeId=u1,Ka.resolveUrl=function(t,n,e){return e=u1(e),t.resolve(n,e)};var Age,Ast=/^[a-z_][-a-z0-9._]*$/i;function sT(){if(Age)return bf;Age=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.getData=bf.KeywordCxt=bf.validateFunctionCode=void 0;var t=function(){if(yge)return yg;yge=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.boolOrEmptySchema=yg.topBoolOrEmptySchema=void 0;var P=rT(),W=Tr(),J=Vp(),H={message:"boolean schema is false"};function pe(A,N){(0,P.reportError)({gen:A.gen,keyword:"false schema",data:A.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:A},H,void 0,N)}return yg.topBoolOrEmptySchema=function(A){var N=A.gen,F=A.schema,q=A.validateName;!1===F?pe(A,!1):"object"==wn(F)&&!0===F.$async?N.return(J.default.data):(N.assign((0,W._)(QY||(QY=Pe(["",".errors"])),q),null),N.return(!0))},yg.boolOrEmptySchema=function(A,N){var F=A.gen;!1===A.schema?(F.var(N,!1),pe(A)):F.var(N,!0)},yg}(),n=ex,e=bge(),i=ex,r=function(){if(xge)return tx;xge=1,Object.defineProperty(tx,"__esModule",{value:!0}),tx.assignDefaults=void 0;var P=Tr(),W=zr;function J(H,pe,A){var N=H.gen,F=H.compositeRule,q=H.data,V=H.opts;if(void 0!==A){var ce=(0,P._)(IX||(IX=Pe(["","",""])),q,(0,P.getProperty)(pe));if(F)(0,W.checkStrictMode)(H,"default is ignored for: ".concat(ce));else{var ve=(0,P._)(NX||(NX=Pe([""," === undefined"])),ce);"empty"===V.useDefaults&&(ve=(0,P._)(FX||(FX=Pe([""," || "," === null || ",' === ""'])),ve,ce,ce)),N.if(ve,(0,P._)(PX||(PX=Pe([""," = ",""])),ce,(0,P.stringify)(A)))}}}return tx.assignDefaults=function(H,pe){var A=H.schema,N=A.properties,F=A.items;if("object"===pe&&N)for(var q in N)J(H,q,N[q].default);else"array"===pe&&Array.isArray(F)&&F.forEach(function(V,ce){return J(H,ce,V.default)})},tx}(),o=function xst(){if(Cge)return md;Cge=1,Object.defineProperty(md,"__esModule",{value:!0}),md.validateKeywordUsage=md.validSchemaType=md.funcKeywordCode=md.macroKeywordCode=void 0;var t=Tr(),n=Vp(),e=gd(),i=rT();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(iJ||(iJ=Pe(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return md.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},md.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(C,D){if(D.async&&!C.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(tJ||(tJ=Pe(["await "]))):t.nil,D=p.opts.passContext?n.default.this:n.default.self,E=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(nJ||(nJ=Pe(["","",""])),C,(0,e.callValidateCode)(s,g,D,E)),a.modifying)}function b(C){var D;c.if((0,t.not)(null!==(D=a.valid)&&void 0!==D?D:v),C)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),b(function(){return s.error()});else{var C=a.async?(E=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(KX||(KX=Pe(["await "]))))},function(B){return c.assign(v,!1).if((0,t._)(QX||(QX=Pe([""," instanceof ",""])),B,p.ValidationError),function(){return c.assign(E,(0,t._)(ZX||(ZX=Pe(["",".errors"])),B))},function(){return c.throw(B)})}),E):(D=(0,t._)(eJ||(eJ=Pe(["",".errors"])),g),c.assign(D,null),y(t.nil),D);a.modifying&&r(s),b(function(){return function(E,B){var z=E.gen;z.if((0,t._)(rJ||(rJ=Pe(["Array.isArray(",")"])),B),function(){z.assign(n.default.vErrors,(0,t._)(oJ||(oJ=Pe([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,B,n.default.vErrors,B)).assign(n.default.errors,(0,t._)(sJ||(sJ=Pe(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(E)},function(){return E.error()})}(s,C)})}var E,D}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},md.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==wn(s)&&!Array.isArray(s):wn(s)==c||l&&void 0===s})},md.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},md}(),s=function(){if(Sge)return wf;Sge=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.extendSubschemaMode=wf.extendSubschemaData=wf.getSubschema=void 0;var P=Tr(),W=zr;return wf.getSubschema=function(J,H){var pe=H.keyword,A=H.schemaProp,N=H.schema,F=H.schemaPath,q=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==pe&&void 0!==N)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==pe){var ce=J.schema[pe];return void 0===A?{schema:ce,schemaPath:(0,P._)(aJ||(aJ=Pe(["","",""])),J.schemaPath,(0,P.getProperty)(pe)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(pe)}:{schema:ce[A],schemaPath:(0,P._)(lJ||(lJ=Pe(["","","",""])),J.schemaPath,(0,P.getProperty)(pe),(0,P.getProperty)(A)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(pe,"/").concat((0,W.escapeFragment)(A))}}if(void 0!==N){if(void 0===F||void 0===q||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:N,schemaPath:F,topSchemaRef:V,errSchemaPath:q}}throw new Error('either "keyword" or "schema" must be passed')},wf.extendSubschemaData=function(J,H,pe){var A=pe.dataProp,N=pe.dataPropType,F=pe.data,q=pe.dataTypes,V=pe.propertyName;if(void 0!==F&&void 0!==A)throw new Error('both "data" and "dataProp" passed, only one allowed');var ce=H.gen;if(void 0!==A){var ve=H.errorPath,je=H.dataPathArr,Te=H.opts;et(ce.let("data",(0,P._)(cJ||(cJ=Pe(["","",""])),H.data,(0,P.getProperty)(A)),!0)),J.errorPath=(0,P.str)(uJ||(uJ=Pe(["","",""])),ve,(0,W.getErrorPath)(A,N,Te.jsPropertySyntax)),J.parentDataProperty=(0,P._)(dJ||(dJ=Pe(["",""])),A),J.dataPathArr=[].concat(ui(je),[J.parentDataProperty])}function et(We){J.data=We,J.dataLevel=H.dataLevel+1,J.dataTypes=[],H.definedProperties=new Set,J.parentData=H.data,J.dataNames=[].concat(ui(H.dataNames),[We])}void 0!==F&&(et(F instanceof P.Name?F:ce.let("data",F,!0)),void 0!==V&&(J.propertyName=V)),q&&(J.dataTypes=q)},wf.extendSubschemaMode=function(J,H){var pe=H.jtdDiscriminator,A=H.jtdMetadata,N=H.compositeRule,F=H.createErrors,q=H.allErrors;void 0!==N&&(J.compositeRule=N),void 0!==F&&(J.createErrors=F),void 0!==q&&(J.allErrors=q),J.jtdDiscriminator=pe,J.jtdMetadata=A},wf}(),a=Tr(),l=Vp(),c=Ka,u=zr,d=rT();function h(P,W){var F,J=P.gen,H=P.validateName,pe=P.schema,A=P.schemaEnv,N=P.opts;N.code.es5?J.func(H,(0,a._)(hJ||(hJ=Pe(["",", ",""])),l.default.data,l.default.valCxt),A.$async,function(){var F,q;J.code((0,a._)(fJ||(fJ=Pe(['"use strict"; ',""])),f(pe,N))),q=N,(F=J).if(l.default.valCxt,function(){F.var(l.default.instancePath,(0,a._)(vJ||(vJ=Pe(["",".",""])),l.default.valCxt,l.default.instancePath)),F.var(l.default.parentData,(0,a._)(yJ||(yJ=Pe(["",".",""])),l.default.valCxt,l.default.parentData)),F.var(l.default.parentDataProperty,(0,a._)(_J||(_J=Pe(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),F.var(l.default.rootData,(0,a._)(bJ||(bJ=Pe(["",".",""])),l.default.valCxt,l.default.rootData)),q.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(xJ||(xJ=Pe(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){F.var(l.default.instancePath,(0,a._)(wJ||(wJ=Pe(['""'])))),F.var(l.default.parentData,(0,a._)(CJ||(CJ=Pe(["undefined"])))),F.var(l.default.parentDataProperty,(0,a._)(SJ||(SJ=Pe(["undefined"])))),F.var(l.default.rootData,l.default.data),q.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(kJ||(kJ=Pe(["{}"]))))}),J.code(W)}):J.func(H,(0,a._)(pJ||(pJ=Pe(["",", ",""])),l.default.data,(F=N,(0,a._)(mJ||(mJ=Pe(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,F.dynamicRef?(0,a._)(gJ||(gJ=Pe([", ","={}"])),l.default.dynamicAnchors):a.nil))),A.$async,function(){return J.code(f(pe,N)).code(W)})}function f(P,W){var J="object"==wn(P)&&P[W.schemaId];return J&&(W.code.source||W.code.process)?(0,a._)(NJ||(NJ=Pe(["/*# sourceURL="," */"])),J):a.nil}function m(P){var W=P.schema,J=P.self;if("boolean"==typeof W)return!W;for(var H in W)if(J.RULES.all[H])return!0;return!1}function g(P){return"boolean"!=typeof P.schema}function v(P){var W,J,H,A;(0,u.checkUnknownRules)(P),H=(W=P).errSchemaPath,A=W.self,(J=W.schema).$ref&&W.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(J,A.RULES)&&A.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(P,W){if(P.opts.jtd)return C(P,[],!1,W);var J=(0,n.getSchemaTypes)(P.schema);C(P,J,!(0,n.coerceAndCheckDataType)(P,J),W)}function b(P){var W=P.gen,J=P.schemaEnv,pe=P.errSchemaPath,A=P.opts,N=P.schema.$comment;if(!0===A.$comment)W.code((0,a._)(PJ||(PJ=Pe(["",".logger.log(",")"])),l.default.self,N));else if("function"==typeof A.$comment){var F=(0,a.str)(RJ||(RJ=Pe(["","/$comment"])),pe),q=W.scopeValue("root",{ref:J.root});W.code((0,a._)(jJ||(jJ=Pe(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,N,F,q))}}function C(P,W,J,H){var ve,je,Te,et,pe=P.gen,A=P.schema,N=P.data,F=P.allErrors,q=P.opts,V=P.self.RULES;function ce(ve){(0,e.shouldUseGroup)(A,ve)&&(ve.type?(pe.if((0,i.checkDataType)(ve.type,N,q.strictNumbers)),D(P,ve),1===W.length&&W[0]===ve.type&&J&&(pe.else(),(0,i.reportTypeError)(P)),pe.endIf()):D(P,ve),F||pe.if((0,a._)(zJ||(zJ=Pe([""," === ",""])),l.default.errors,H||0)))}!A.$ref||!q.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(A,V)?(q.jtd||(je=W,(ve=P).schemaEnv.meta||!ve.opts.strictTypes||(function(Te,et){if(et.length){if(!Te.dataTypes.length)return void(Te.dataTypes=et);et.forEach(function(We){B(Te.dataTypes,We)||z(Te,'type "'.concat(We,'" not allowed by context "').concat(Te.dataTypes.join(","),'"'))}),function(We,st){var $,ae=[],le=He(We.dataTypes);try{for(le.s();!($=le.n()).done;){var Re=$.value;B(st,Re)?ae.push(Re):st.includes("integer")&&"number"===Re&&ae.push("integer")}}catch(Ze){le.e(Ze)}finally{le.f()}We.dataTypes=ae}(Te,et)}}(ve,je),ve.opts.allowUnionTypes||(Te=ve,(et=je).length>1&&(2!==et.length||!et.includes("null"))&&z(Te,"use allowUnionTypes to allow union type keyword")),function(Te,et){var We=Te.self.RULES.all;for(var st in We){var $=We[st];if("object"==wn($)&&(0,e.shouldUseRule)(Te.schema,$)){var ae=$.definition.type;ae.length&&!ae.some(function(le){return E(et,le)})&&z(Te,'missing type "'.concat(ae.join(","),'" for keyword "').concat(st,'"'))}}}(ve,ve.dataTypes))),pe.block(function(){var ve,je=He(V.rules);try{for(je.s();!(ve=je.n()).done;)ce(ve.value)}catch(Te){je.e(Te)}finally{je.f()}ce(V.post)})):pe.block(function(){return U(P,"$ref",V.all.$ref.definition)})}function D(P,W){var J=P.gen,H=P.schema;P.opts.useDefaults&&(0,r.assignDefaults)(P,W.type),J.block(function(){var pe,A=He(W.rules);try{for(A.s();!(pe=A.n()).done;){var N=pe.value;(0,e.shouldUseRule)(H,N)&&U(P,N.keyword,N.definition,W.type)}}catch(F){A.e(F)}finally{A.f()}})}function E(P,W){return P.includes(W)||"number"===W&&P.includes("integer")}function B(P,W){return P.includes(W)||"integer"===W&&P.includes("number")}function z(P,W){W+=' at "'.concat(P.schemaEnv.baseId+P.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(P,W,P.opts.strictTypes)}bf.validateFunctionCode=function(P){var W,J,H,pe;g(P)&&(v(P),m(P))?(J=(W=P).schema,H=W.opts,pe=W.gen,h(W,function(){var A,F;H.$comment&&J.$comment&&b(W),F=(A=W).opts,void 0!==A.schema.default&&F.useDefaults&&F.strictSchema&&(0,u.checkStrictMode)(A,"default is ignored in the schema root"),pe.let(l.default.vErrors,null),pe.let(l.default.errors,0),H.unevaluated&&function(A){var N=A.gen,F=A.validateName;A.evaluated=N.const("evaluated",(0,a._)(DJ||(DJ=Pe(["",".evaluated"])),F)),N.if((0,a._)(TJ||(TJ=Pe(["",".dynamicProps"])),A.evaluated),function(){return N.assign((0,a._)(EJ||(EJ=Pe(["",".props"])),A.evaluated),(0,a._)(AJ||(AJ=Pe(["undefined"]))))}),N.if((0,a._)(MJ||(MJ=Pe(["",".dynamicItems"])),A.evaluated),function(){return N.assign((0,a._)(OJ||(OJ=Pe(["",".items"])),A.evaluated),(0,a._)(IJ||(IJ=Pe(["undefined"]))))})}(W),y(W),function(A){var ve,je,Te,et,We,N=A.gen,q=A.validateName,V=A.ValidationError,ce=A.opts;A.schemaEnv.$async?N.if((0,a._)(LJ||(LJ=Pe([""," === 0"])),l.default.errors),function(){return N.return(l.default.data)},function(){return N.throw((0,a._)(BJ||(BJ=Pe(["new ","(",")"])),V,l.default.vErrors))}):(N.assign((0,a._)($J||($J=Pe(["",".errors"])),q),l.default.vErrors),ce.unevaluated&&(je=(ve=A).gen,Te=ve.evaluated,We=ve.items,(et=ve.props)instanceof a.Name&&je.assign((0,a._)(HJ||(HJ=Pe(["",".props"])),Te),et),We instanceof a.Name&&je.assign((0,a._)(UJ||(UJ=Pe(["",".items"])),Te),We)),N.return((0,a._)(VJ||(VJ=Pe([""," === 0"])),l.default.errors)))}(W)})):h(P,function(){return(0,t.topBoolOrEmptySchema)(P)})};var j=function(){function P(W,J,H){if(Oe(this,P),(0,o.validateKeywordUsage)(W,J,H),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=H,this.data=W.data,this.schema=W.schema[H],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(W,this.schema,H,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",oe(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(J.schemaType)));("code"in J?J.trackErrors:!1!==J.errors)&&(this.errsCount=W.gen.const("_errs",l.default.errors))}return Ie(P,[{key:"result",value:function(W,J,H){this.failResult((0,a.not)(W),J,H)}},{key:"failResult",value:function(W,J,H){this.gen.if(W),H?H():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(W,J){this.failResult((0,a.not)(W),void 0,J)}},{key:"fail",value:function(W){if(void 0===W)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(W){if(!this.$data)return this.fail(W);var J=this.schemaCode;this.fail((0,a._)(GJ||(GJ=Pe([""," !== undefined && (",")"])),J,(0,a.or)(this.invalid$data(),W)))}},{key:"error",value:function(W,J,H){if(J)return this.setParams(J),this._error(W,H),void this.setParams({});this._error(W,H)}},{key:"_error",value:function(W,J){(W?d.reportExtraError:d.reportError)(this,this.def.error,J)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(W){this.allErrors||this.gen.if(W)}},{key:"setParams",value:function(W,J){J?Object.assign(this.params,W):this.params=W}},{key:"block$data",value:function(W,J){var H=this,pe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(W,pe),J()})}},{key:"check$data",value:function(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,pe=this.schemaCode,A=this.schemaType,N=this.def;H.if((0,a.or)((0,a._)(WJ||(WJ=Pe([""," === undefined"])),pe),J)),W!==a.nil&&H.assign(W,!0),(A.length||N.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),W!==a.nil&&H.assign(W,!1)),H.else()}}},{key:"invalid$data",value:function(){var W=this.gen,J=this.schemaCode,H=this.schemaType,pe=this.def,A=this.it;return(0,a.or)(function(){if(H.length){if(!(J instanceof a.Name))throw new Error("ajv implementation error");var N=Array.isArray(H)?H:[H];return(0,a._)(qJ||(qJ=Pe(["",""])),(0,i.checkDataTypes)(N,J,A.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(pe.validateSchema){var N=W.scopeValue("validate$data",{ref:pe.validateSchema});return(0,a._)(YJ||(YJ=Pe(["!","(",")"])),N,J)}return a.nil}())}},{key:"subschema",value:function(W,J){var H=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(H,this.it,W),(0,s.extendSubschemaMode)(H,W);var pe=nt(nt(nt({},this.it),H),{},{items:void 0,props:void 0});return function p(P,W){g(P)&&(v(P),m(P))?function(J,H){var F,q,A=J.gen;J.opts.$comment&&J.schema.$comment&&b(J),(q=(F=J).schema[F.opts.schemaId])&&(F.baseId=(0,c.resolveUrl)(F.opts.uriResolver,F.baseId,q)),function(F){if(F.schema.$async&&!F.schemaEnv.$async)throw new Error("async schema in sync schema")}(J);var N=A.const("_errs",l.default.errors);y(J,N),A.var(H,(0,a._)(FJ||(FJ=Pe([""," === ",""])),N,l.default.errors))}(P,W):(0,t.boolOrEmptySchema)(P,W)}(pe,J),pe}},{key:"mergeEvaluated",value:function(W,J){var H=this.it,pe=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==W.props&&(H.props=u.mergeEvaluated.props(pe,W.props,H.props,J)),!0!==H.items&&void 0!==W.items&&(H.items=u.mergeEvaluated.items(pe,W.items,H.items,J)))}},{key:"mergeValidEvaluated",value:function(W,J){var H=this,pe=this.it;if(pe.opts.unevaluated&&(!0!==pe.props||!0!==pe.items))return this.gen.if(J,function(){return H.mergeEvaluated(W,a.Name)}),!0}}]),P}();function U(P,W,J,H){var pe=new j(P,J,W);"code"in J?J.code(pe,H):pe.$data&&J.validate?(0,o.funcKeywordCode)(pe,J):"macro"in J?(0,o.macroKeywordCode)(pe,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(pe,J)}bf.KeywordCxt=j;var G=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oe(P,W){var J,H,pe=W.dataLevel,A=W.dataNames,N=W.dataPathArr;if(""===P)return l.default.rootData;if("/"===P[0]){if(!G.test(P))throw new Error("Invalid JSON-pointer: ".concat(P));J=P,H=l.default.rootData}else{var F=X.exec(P);if(!F)throw new Error("Invalid JSON-pointer: ".concat(P));var q=+F[1];if("#"===(J=F[2])){if(q>=pe)throw new Error(Te("property/index",q));return N[pe-q]}if(q>pe)throw new Error(Te("data",q));if(H=A[pe-q],!J)return H}var V,ce=H,ve=He(J.split("/"));try{for(ve.s();!(V=ve.n()).done;){var je=V.value;je&&(H=(0,a._)(XJ||(XJ=Pe(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(je))),ce=(0,a._)(JJ||(JJ=Pe([""," && ",""])),ce,H))}}catch(et){ve.e(et)}finally{ve.f()}return ce;function Te(et,We){return"Cannot access ".concat(et," ").concat(We," levels up, current level is ").concat(pe)}}return bf.getData=oe,bf}Ka.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=u1(t[r]||n),a={"":s},l=Tge(o,s,!1),c={},u=new Set;return kst(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=b.call(e,f[r])),C.call(e,f.$anchor),C.call(e,f.$dynamicAnchor),a[p]=y}function b(D){if(D=u1(y?(0,this.opts.uriResolver.resolve)(y,D):D),u.has(D))throw h(D);u.add(D);var B=this.refs[D];return"string"==typeof B&&(B=this.refs[B]),"object"==wn(B)?d(f,B.schema,D):D!==u1(v)&&("#"===D[0]?(d(f,c[D],D),c[D]=f):this.refs[D]=v),D}function C(D){if("string"==typeof D){if(!Ast.test(D))throw new Error('invalid anchor "'.concat(D,'"'));b.call(this,"#".concat(D))}}}),c;function d(f,p,m){if(void 0!==p&&!Sst(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var Mge,aT={};function vj(){if(Mge)return aT;Mge=1,Object.defineProperty(aT,"__esModule",{value:!0});var t=function(n){Dt(i,O_(Error));var e=Tt(i);function i(r){var o;return Oe(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Ie(i)}();return aT.default=t,aT}var Oge,lT={};function yj(){if(Oge)return lT;Oge=1,Object.defineProperty(lT,"__esModule",{value:!0});var t=Ka,n=function(e){Dt(r,O_(Error));var i=Tt(r);function r(o,s,a,l){var c;return Oe(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Ie(r)}();return lT.default=n,lT}var sc={};Object.defineProperty(sc,"__esModule",{value:!0}),sc.resolveSchema=sc.getCompilingSchema=sc.resolveRef=sc.compileSchema=sc.SchemaEnv=void 0;var vd=Tr(),Mst=vj(),bg=Vp(),yd=Ka,Ige=zr,Ost=sT(),cT=Ie(function t(n){var e,i;Oe(this,t),this.refs={},this.dynamicAnchors={},"object"==wn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,yd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function _j(t){var n=Nge.call(this,t);if(n)return n;var e,i=(0,yd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new vd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:Mst.default,code:(0,vd._)(KJ||(KJ=Pe(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:bg.default.data,parentData:bg.default.parentData,parentDataProperty:bg.default.parentDataProperty,dataNames:[bg.default.data],dataPathArr:[vd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,vd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:vd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vd._)(QJ||(QJ=Pe(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,Ost.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(bg.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(bg.default.self),"".concat(bg.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof vd.Name?void 0:p,items:m instanceof vd.Name?void 0:m,dynamicProps:p instanceof vd.Name,dynamicItems:m instanceof vd.Name},f.source&&(f.source.evaluated=(0,vd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function Ist(t){return(0,yd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:_j.call(this,t)}function Nge(t){var n,e,i,r=He(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function Nst(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||uT.call(this,t,n)}function uT(t,n){var e=this.opts.uriResolver.parse(n),i=(0,yd._getFullPath)(this.opts.uriResolver,e),r=(0,yd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return bj.call(this,e,t);var o=(0,yd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=uT.call(this,t,s);return"object"!==wn(a?.schema)?void 0:bj.call(this,e,a)}if("object"===wn(s?.schema)){if(s.validate||_j.call(this,s),o===(0,yd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,yd.resolveUrl)(this.opts.uriResolver,r,u)),new cT({schema:l,schemaId:c,root:t,baseId:r})}return bj.call(this,e,s)}}sc.SchemaEnv=cT,sc.compileSchema=_j,sc.resolveRef=function(t,n,e){var i;e=(0,yd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=Nst.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new cT({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=Ist.call(this,o):void 0},sc.getCompilingSchema=Nge,sc.resolveSchema=uT;var Fst=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function bj(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=He(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,Ige.unescapeFragment)(c)];if(void 0===u)return;var d="object"===wn(r=u)&&r[this.opts.schemaId];!Fst.has(c)&&d&&(i=(0,yd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,Ige.schemaHasRulesButRef)(r,this.RULES)){var h=(0,yd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=uT.call(this,o,h)}return(a=a||new cT({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var Pst={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},xj={},Fge={};(function(t){function n(){for(var Ee=arguments.length,qe=Array(Ee),Ke=0;Ke1){qe[0]=qe[0].slice(0,-1);for(var dt=qe.length-1,Ye=1;Ye= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=Math.floor,G=String.fromCharCode;function X(Ee){throw new RangeError(z[Ee])}function P(Ee,qe){var Ke=Ee.split("@"),dt="";return Ke.length>1&&(dt=Ke[0]+"@",Ee=Ke[1]),dt+function oe(Ee,qe){for(var Ke=[],dt=Ee.length;dt--;)Ke[dt]=qe(Ee[dt]);return Ke}((Ee=Ee.replace(B,".")).split("."),qe).join(".")}function W(Ee){for(var qe=[],Ke=0,dt=Ee.length;Ke=55296&&Ye<=56319&&Ke>1,Ee+=U(Ee/qe);Ee>455;dt+=f)Ee=U(Ee/35);return U(dt+36*Ee/(Ee+38))},N=function(Ee){var qe=[],Ke=Ee.length,dt=0,Ye=128,In=72,li=Ee.lastIndexOf("-");li<0&&(li=0);for(var vi=0;vi=128&&X("not-basic"),qe.push(Ee.charCodeAt(vi));for(var gi=li>0?li+1:0;gi=Ke&&X("invalid-input");var Sr=H(Ee.charCodeAt(gi++));(Sr>=f||Sr>U((h-dt)/to))&&X("overflow"),dt+=Sr*to;var Fe=xi<=In?1:xi>=In+26?26:xi-In;if(SrU(h/At)&&X("overflow"),to*=At}var Gt=qe.length+1;In=A(dt-Mr,Gt,0==Mr),U(dt/Gt)>h-Ye&&X("overflow"),Ye+=U(dt/Gt),dt%=Gt,qe.splice(dt++,0,Ye)}return String.fromCodePoint.apply(String,qe)},F=function(Ee){var qe=[],Ke=(Ee=W(Ee)).length,dt=128,Ye=0,In=72,li=!0,vi=!1,gi=void 0;try{for(var Mr,to=Ee[Symbol.iterator]();!(li=(Mr=to.next()).done);li=!0){var xi=Mr.value;xi<128&&qe.push(G(xi))}}catch(wd){vi=!0,gi=wd}finally{try{!li&&to.return&&to.return()}finally{if(vi)throw gi}}var Sr=qe.length,Fe=Sr;for(Sr&&qe.push("-");Fe=dt&&znU((h-Ye)/ai)&&X("overflow"),Ye+=(At-dt)*ai,dt=At;var ni=!0,kr=!1,Fr=void 0;try{for(var jo,ba=Ee[Symbol.iterator]();!(ni=(jo=ba.next()).done);ni=!0){var bd=jo.value;if(bdh&&X("overflow"),bd==dt){for(var bu=Ye,xa=f;;xa+=f){var Bl=xa<=In?1:xa>=In+26?26:xa-In;if(bu>6|192).toString(16).toUpperCase()+"%"+(63&qe|128).toString(16).toUpperCase():"%"+(qe>>12|224).toString(16).toUpperCase()+"%"+(qe>>6&63|128).toString(16).toUpperCase()+"%"+(63&qe|128).toString(16).toUpperCase()}function Te(Ee){for(var qe="",Ke=0,dt=Ee.length;Ke=194&&Ye<224){if(dt-Ke>=6){var In=parseInt(Ee.substr(Ke+4,2),16);qe+=String.fromCharCode((31&Ye)<<6|63&In)}else qe+=Ee.substr(Ke,6);Ke+=6}else if(Ye>=224){if(dt-Ke>=9){var li=parseInt(Ee.substr(Ke+4,2),16),vi=parseInt(Ee.substr(Ke+7,2),16);qe+=String.fromCharCode((15&Ye)<<12|(63&li)<<6|63&vi)}else qe+=Ee.substr(Ke,9);Ke+=9}else qe+=Ee.substr(Ke,3),Ke+=3}return qe}function et(Ee,qe){function Ke(dt){var Ye=Te(dt);return Ye.match(qe.UNRESERVED)?Ye:dt}return Ee.scheme&&(Ee.scheme=String(Ee.scheme).replace(qe.PCT_ENCODED,Ke).toLowerCase().replace(qe.NOT_SCHEME,"")),void 0!==Ee.userinfo&&(Ee.userinfo=String(Ee.userinfo).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_USERINFO,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.host&&(Ee.host=String(Ee.host).replace(qe.PCT_ENCODED,Ke).toLowerCase().replace(qe.NOT_HOST,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.path&&(Ee.path=String(Ee.path).replace(qe.PCT_ENCODED,Ke).replace(Ee.scheme?qe.NOT_PATH:qe.NOT_PATH_NOSCHEME,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.query&&(Ee.query=String(Ee.query).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_QUERY,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.fragment&&(Ee.fragment=String(Ee.fragment).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_FRAGMENT,je).replace(qe.PCT_ENCODED,r)),Ee}function We(Ee){return Ee.replace(/^0*(.*)/,"$1")||"0"}function st(Ee,qe){var Ke=Ee.match(qe.IPV4ADDRESS)||[],dt=u(Ke,2)[1];return dt?dt.split(".").map(We).join("."):Ee}function $(Ee,qe){var Ke=Ee.match(qe.IPV6ADDRESS)||[],dt=u(Ke,3),Ye=dt[1],In=dt[2];if(Ye){for(var li=Ye.toLowerCase().split("::").reverse(),vi=u(li,2),gi=vi[0],Mr=vi[1],to=Mr?Mr.split(":").map(We):[],xi=gi.split(":").map(We),Sr=qe.IPV4ADDRESS.test(xi[xi.length-1]),Fe=Sr?7:8,At=xi.length-Fe,Gt=Array(Fe),ln=0;ln1){var $i=Gt.slice(0,mn.index),zn=Gt.slice(mn.index+mn.length);ci=$i.join(":")+"::"+zn.join(":")}else ci=Gt.join(":");return In&&(ci+="%"+In),ci}return Ee}var ae=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,le=void 0==="".match(/(){0}/)[1];function Re(Ee){var qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke={},dt=!1!==qe.iri?c:l;"suffix"===qe.reference&&(Ee=(qe.scheme?qe.scheme+":":"")+"//"+Ee);var Ye=Ee.match(ae);if(Ye){le?(Ke.scheme=Ye[1],Ke.userinfo=Ye[3],Ke.host=Ye[4],Ke.port=parseInt(Ye[5],10),Ke.path=Ye[6]||"",Ke.query=Ye[7],Ke.fragment=Ye[8],isNaN(Ke.port)&&(Ke.port=Ye[5])):(Ke.scheme=Ye[1]||void 0,Ke.userinfo=-1!==Ee.indexOf("@")?Ye[3]:void 0,Ke.host=-1!==Ee.indexOf("//")?Ye[4]:void 0,Ke.port=parseInt(Ye[5],10),Ke.path=Ye[6]||"",Ke.query=-1!==Ee.indexOf("?")?Ye[7]:void 0,Ke.fragment=-1!==Ee.indexOf("#")?Ye[8]:void 0,isNaN(Ke.port)&&(Ke.port=Ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ye[4]:void 0)),Ke.host&&(Ke.host=$(st(Ke.host,dt),dt)),Ke.reference=void 0!==Ke.scheme||void 0!==Ke.userinfo||void 0!==Ke.host||void 0!==Ke.port||Ke.path||void 0!==Ke.query?void 0===Ke.scheme?"relative":void 0===Ke.fragment?"absolute":"uri":"same-document",qe.reference&&"suffix"!==qe.reference&&qe.reference!==Ke.reference&&(Ke.error=Ke.error||"URI is not a "+qe.reference+" reference.");var In=ve[(qe.scheme||Ke.scheme||"").toLowerCase()];if(qe.unicodeSupport||In&&In.unicodeSupport)et(Ke,dt);else{if(Ke.host&&(qe.domainHost||In&&In.domainHost))try{Ke.host=ce.toASCII(Ke.host.replace(dt.PCT_ENCODED,Te).toLowerCase())}catch(li){Ke.error=Ke.error||"Host's domain name can not be converted to ASCII via punycode: "+li}et(Ke,l)}In&&In.parse&&In.parse(Ke,qe)}else Ke.error=Ke.error||"URI can not be parsed.";return Ke}var Ve=/^\.\.?\//,Ct=/^\/\.(\/|$)/,Ot=/^\/\.\.(\/|$)/,yn=/^\/?(?:.|\n)*?(?=\/|$)/;function Xn(Ee){for(var qe=[];Ee.length;)if(Ee.match(Ve))Ee=Ee.replace(Ve,"");else if(Ee.match(Ct))Ee=Ee.replace(Ct,"/");else if(Ee.match(Ot))Ee=Ee.replace(Ot,"/"),qe.pop();else if("."===Ee||".."===Ee)Ee="";else{var Ke=Ee.match(yn);if(!Ke)throw new Error("Unexpected dot segment condition");var dt=Ke[0];Ee=Ee.slice(dt.length),qe.push(dt)}return qe.join("")}function on(Ee){var qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=qe.iri?c:l,dt=[],Ye=ve[(qe.scheme||Ee.scheme||"").toLowerCase()];if(Ye&&Ye.serialize&&Ye.serialize(Ee,qe),Ee.host&&!Ke.IPV6ADDRESS.test(Ee.host)&&(qe.domainHost||Ye&&Ye.domainHost))try{Ee.host=qe.iri?ce.toUnicode(Ee.host):ce.toASCII(Ee.host.replace(Ke.PCT_ENCODED,Te).toLowerCase())}catch(vi){Ee.error=Ee.error||"Host's domain name can not be converted to "+(qe.iri?"Unicode":"ASCII")+" via punycode: "+vi}et(Ee,Ke),"suffix"!==qe.reference&&Ee.scheme&&(dt.push(Ee.scheme),dt.push(":"));var In=function Ze(Ee,qe){var Ke=!1!==qe.iri?c:l,dt=[];return void 0!==Ee.userinfo&&(dt.push(Ee.userinfo),dt.push("@")),void 0!==Ee.host&&dt.push($(st(String(Ee.host),Ke),Ke).replace(Ke.IPV6ADDRESS,function(Ye,In,li){return"["+In+(li?"%25"+li:"")+"]"})),"number"!=typeof Ee.port&&"string"!=typeof Ee.port||(dt.push(":"),dt.push(String(Ee.port))),dt.length?dt.join(""):void 0}(Ee,qe);if(void 0!==In&&("suffix"!==qe.reference&&dt.push("//"),dt.push(In),Ee.path&&"/"!==Ee.path.charAt(0)&&dt.push("/")),void 0!==Ee.path){var li=Ee.path;qe.absolutePath||Ye&&Ye.absolutePath||(li=Xn(li)),void 0===In&&(li=li.replace(/^\/\//,"/%2F")),dt.push(li)}return void 0!==Ee.query&&(dt.push("?"),dt.push(Ee.query)),void 0!==Ee.fragment&&(dt.push("#"),dt.push(Ee.fragment)),dt.join("")}function Ri(Ee,qe){var Ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},dt={};return arguments[3]||(Ee=Re(on(Ee,Ke),Ke),qe=Re(on(qe,Ke),Ke)),!(Ke=Ke||{}).tolerant&&qe.scheme?(dt.scheme=qe.scheme,dt.userinfo=qe.userinfo,dt.host=qe.host,dt.port=qe.port,dt.path=Xn(qe.path||""),dt.query=qe.query):(void 0!==qe.userinfo||void 0!==qe.host||void 0!==qe.port?(dt.userinfo=qe.userinfo,dt.host=qe.host,dt.port=qe.port,dt.path=Xn(qe.path||""),dt.query=qe.query):(qe.path?("/"===qe.path.charAt(0)?dt.path=Xn(qe.path):(dt.path=void 0===Ee.userinfo&&void 0===Ee.host&&void 0===Ee.port||Ee.path?Ee.path?Ee.path.slice(0,Ee.path.lastIndexOf("/")+1)+qe.path:qe.path:"/"+qe.path,dt.path=Xn(dt.path)),dt.query=qe.query):(dt.path=Ee.path,dt.query=void 0!==qe.query?qe.query:Ee.query),dt.userinfo=Ee.userinfo,dt.host=Ee.host,dt.port=Ee.port),dt.scheme=Ee.scheme),dt.fragment=qe.fragment,dt}function wr(Ee,qe){return Ee&&Ee.toString().replace(qe&&qe.iri?c.PCT_ENCODED:l.PCT_ENCODED,Te)}var Si={scheme:"http",domainHost:!0,parse:function(Ee,qe){return Ee.host||(Ee.error=Ee.error||"HTTP URIs must have a host."),Ee},serialize:function(Ee,qe){var Ke="https"===String(Ee.scheme).toLowerCase();return Ee.port!==(Ke?443:80)&&""!==Ee.port||(Ee.port=void 0),Ee.path||(Ee.path="/"),Ee}},Xr={scheme:"https",domainHost:Si.domainHost,parse:Si.parse,serialize:Si.serialize};function Ro(Ee){return"boolean"==typeof Ee.secure?Ee.secure:"wss"===String(Ee.scheme).toLowerCase()}var Rn={scheme:"ws",domainHost:!0,parse:function(Ee,qe){var Ke=Ee;return Ke.secure=Ro(Ke),Ke.resourceName=(Ke.path||"/")+(Ke.query?"?"+Ke.query:""),Ke.path=void 0,Ke.query=void 0,Ke},serialize:function(Ee,qe){if(Ee.port!==(Ro(Ee)?443:80)&&""!==Ee.port||(Ee.port=void 0),"boolean"==typeof Ee.secure&&(Ee.scheme=Ee.secure?"wss":"ws",Ee.secure=void 0),Ee.resourceName){var Ke=Ee.resourceName.split("?"),dt=u(Ke,2),Ye=dt[0],In=dt[1];Ee.path=Ye&&"/"!==Ye?Ye:void 0,Ee.query=In,Ee.resourceName=void 0}return Ee.fragment=void 0,Ee}},kt={scheme:"wss",domainHost:Rn.domainHost,parse:Rn.parse,serialize:Rn.serialize},pi={},Bi="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ar="[0-9A-Fa-f]",ko=e(e("%[EFef]"+Ar+"%"+Ar+Ar+"%"+Ar+Ar)+"|"+e("%[89A-Fa-f]"+Ar+"%"+Ar+Ar)+"|"+e("%"+Ar+Ar)),vt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),di=new RegExp(Bi,"g"),ki=new RegExp(ko,"g"),Nr=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',vt),"g"),Jr=new RegExp(n("[^]",Bi,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),co=Jr;function Ks(Ee){var qe=Te(Ee);return qe.match(di)?qe:Ee}var Cr={scheme:"mailto",parse:function(Ee,qe){var Ke=Ee,dt=Ke.to=Ke.path?Ke.path.split(","):[];if(Ke.path=void 0,Ke.query){for(var Ye=!1,In={},li=Ke.query.split("&"),vi=0,gi=li.length;vi string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=function(){function A(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,A),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts=nt(nt({},N),function y(A){var N,F,q,V,ce,ve,je,Te,et,We,st,$,ae,le,Re,Ze,Ve,Ct,Ot,yn,Xn,on,Ri,hn,vr,Er=A.strict,fr=null===(N=A.code)||void 0===N?void 0:N.optimize,wr=!0===fr||void 0===fr?1:fr||0,Si=null!==(q=null===(F=A.code)||void 0===F?void 0:F.regExp)&&void 0!==q?q:f,Xr=null!==(V=A.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(ve=null!==(ce=A.strictSchema)&&void 0!==ce?ce:Er)||void 0===ve||ve,strictNumbers:null===(Te=null!==(je=A.strictNumbers)&&void 0!==je?je:Er)||void 0===Te||Te,strictTypes:null!==(We=null!==(et=A.strictTypes)&&void 0!==et?et:Er)&&void 0!==We?We:"log",strictTuples:null!==($=null!==(st=A.strictTuples)&&void 0!==st?st:Er)&&void 0!==$?$:"log",strictRequired:null!==(le=null!==(ae=A.strictRequired)&&void 0!==ae?ae:Er)&&void 0!==le&&le,code:A.code?nt(nt({},A.code),{},{optimize:wr,regExp:Si}):{optimize:wr,regExp:Si},loopRequired:null!==(Re=A.loopRequired)&&void 0!==Re?Re:200,loopEnum:null!==(Ze=A.loopEnum)&&void 0!==Ze?Ze:200,meta:null===(Ve=A.meta)||void 0===Ve||Ve,messages:null===(Ct=A.messages)||void 0===Ct||Ct,inlineRefs:null===(Ot=A.inlineRefs)||void 0===Ot||Ot,schemaId:null!==(yn=A.schemaId)&&void 0!==yn?yn:"$id",addUsedSchema:null===(Xn=A.addUsedSchema)||void 0===Xn||Xn,validateSchema:null===(on=A.validateSchema)||void 0===on||on,validateFormats:null===(Ri=A.validateFormats)||void 0===Ri||Ri,unicodeRegExp:null===(hn=A.unicodeRegExp)||void 0===hn||hn,int32range:null===(vr=A.int32range)||void 0===vr||vr,uriResolver:Xr}}(N));var F=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:F.es5,lines:F.lines}),this.logger=function G(A){if(!1===A)return U;if(void 0===A)return console;if(A.log&&A.warn&&A.error)return A;throw new Error("logger must implement log, warn and error methods")}(N.logger);var ce=N.validateFormats;N.validateFormats=!1,this.RULES=(0,o.getRules)(),C.call(this,g,N,"NOT SUPPORTED"),C.call(this,v,N,"DEPRECATED","warn"),this._metaOpts=j.call(this),N.formats&&B.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&z.call(this,N.keywords),"object"==wn(N.meta)&&this.addMetaSchema(N.meta),E.call(this),N.validateFormats=ce}return Ie(A,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var N=this.opts,F=N.$data,q=N.meta,V=N.schemaId,ce=d;"id"===V&&((ce=nt({},d)).id=ce.$id,delete ce.$id),q&&F&&this.addMetaSchema(ce,ce[V],!1)}},{key:"defaultMeta",value:function(){var N=this.opts,F=N.meta,q=N.schemaId;return this.opts.defaultMeta="object"==wn(F)?F[q]||F:void 0}},{key:"validate",value:function(N,F){var q;if("string"==typeof N){if(!(q=this.getSchema(N)))throw new Error('no schema with key or ref "'.concat(N,'"'))}else q=this.compile(N);var V=q(F);return"$async"in q||(this.errors=q.errors),V}},{key:"compile",value:function(N,F){var q=this._addSchema(N,F);return q.validate||this._compileSchemaEnv(q)}},{key:"compileAsync",value:function(N,F){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var q=this.opts.loadSchema;return V.call(this,N,F);function V(Re,Ze){return ce.apply(this,arguments)}function ce(){return(ce=or(_n().mark(function Re(Ze,Ve){var Ct;return _n().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,ve.call(this,Ze.$schema);case 2:return Ct=this._addSchema(Ze,Ve),Ot.abrupt("return",Ct.validate||Te.call(this,Ct));case 4:case"end":return Ot.stop()}},Re,this)}))).apply(this,arguments)}function ve(Re){return je.apply(this,arguments)}function je(){return(je=or(_n().mark(function Re(Ze){return _n().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!Ze||this.getSchema(Ze)){Ve.next=3;break}return Ve.next=3,V.call(this,{$ref:Ze},!0);case 3:case"end":return Ve.stop()}},Re,this)}))).apply(this,arguments)}function Te(Re){return et.apply(this,arguments)}function et(){return(et=or(_n().mark(function Re(Ze){return _n().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.prev=0,Ve.abrupt("return",this._compileSchemaEnv(Ze));case 4:if(Ve.prev=4,Ve.t0=Ve.catch(0),Ve.t0 instanceof r.default){Ve.next=8;break}throw Ve.t0;case 8:return We.call(this,Ve.t0),Ve.next=11,st.call(this,Ve.t0.missingSchema);case 11:return Ve.abrupt("return",Te.call(this,Ze));case 12:case"end":return Ve.stop()}},Re,this,[[0,4]])}))).apply(this,arguments)}function We(Re){var Ze=Re.missingSchema,Ve=Re.missingRef;if(this.refs[Ze])throw new Error("AnySchema ".concat(Ze," is loaded but ").concat(Ve," cannot be resolved"))}function st(Re){return $.apply(this,arguments)}function $(){return($=or(_n().mark(function Re(Ze){var Ve;return _n().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,ae.call(this,Ze);case 2:if(Ve=Ct.sent,this.refs[Ze]){Ct.next=6;break}return Ct.next=6,ve.call(this,Ve.$schema);case 6:this.refs[Ze]||this.addSchema(Ve,Ze,F);case 7:case"end":return Ct.stop()}},Re,this)}))).apply(this,arguments)}function ae(Re){return le.apply(this,arguments)}function le(){return(le=or(_n().mark(function Re(Ze){var Ve;return _n().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!(Ve=this._loading[Ze])){Ct.next=3;break}return Ct.abrupt("return",Ve);case 3:return Ct.prev=3,Ct.next=6,this._loading[Ze]=q(Ze);case 6:return Ct.abrupt("return",Ct.sent);case 7:return Ct.prev=7,delete this._loading[Ze],Ct.finish(7);case 10:case"end":return Ct.stop()}},Re,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(N,F,q){var V,ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(N)){var ve,je=He(N);try{for(je.s();!(ve=je.n()).done;)this.addSchema(ve.value,void 0,q,ce)}catch(We){je.e(We)}finally{je.f()}return this}if("object"===wn(N)){var et=this.opts.schemaId;if(void 0!==(V=N[et])&&"string"!=typeof V)throw new Error("schema ".concat(et," must be string"))}return F=(0,l.normalizeId)(F||V),this._checkUnique(F),this.schemas[F]=this._addSchema(N,q,F,ce,!0),this}},{key:"addMetaSchema",value:function(N,F){return this.addSchema(N,F,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(N,F){if("boolean"==typeof N)return!0;var q;if(void 0!==(q=N.$schema)&&"string"!=typeof q)throw new Error("$schema must be a string");if(!(q=q||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(q,N);if(!V&&F){var ce="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(ce);this.logger.error(ce)}return V}},{key:"getSchema",value:function(N){for(var F;"string"==typeof(F=D.call(this,N));)N=F;if(void 0===F){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(F=s.resolveSchema.call(this,V,N)))return;this.refs[N]=F}return F.validate||this._compileSchemaEnv(F)}},{key:"removeSchema",value:function(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(wn(N)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var F=D.call(this,N);return"object"==wn(F)&&this._cache.delete(F.schema),delete this.schemas[N],delete this.refs[N],this;case"object":this._cache.delete(N);var V=N[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(N){var F,q=He(N);try{for(q.s();!(F=q.n()).done;)this.addKeyword(F.value)}catch(ce){q.e(ce)}finally{q.f()}return this}},{key:"addKeyword",value:function(N,F){var q,V=this;if("string"==typeof N)q=N,"object"==wn(F)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=q);else{if("object"!=wn(N)||void 0!==F)throw new Error("invalid addKeywords parameters");if(q=(F=N).keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(oe.call(this,q,F),!F)return(0,u.eachItem)(q,function(ve){return P.call(V,ve)}),this;J.call(this,F);var ce=nt(nt({},F),{},{type:(0,c.getJSONTypes)(F.type),schemaType:(0,c.getJSONTypes)(F.schemaType)});return(0,u.eachItem)(q,0===ce.type.length?function(ve){return P.call(V,ve,ce)}:function(ve){return ce.type.forEach(function(je){return P.call(V,ve,ce,je)})}),this}},{key:"getKeyword",value:function(N){var F=this.RULES.all[N];return"object"==wn(F)?F.definition:!!F}},{key:"removeKeyword",value:function(N){var F=this.RULES;delete F.keywords[N],delete F.all[N];var q,V=He(F.rules);try{for(V.s();!(q=V.n()).done;){var ce=q.value,ve=ce.rules.findIndex(function(je){return je.keyword===N});ve>=0&&ce.rules.splice(ve,1)}}catch(je){V.e(je)}finally{V.f()}return this}},{key:"addFormat",value:function(N,F){return"string"==typeof F&&(F=new RegExp(F)),this.formats[N]=F,this}},{key:"errorsText",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=F.separator,V=void 0===q?", ":q,ce=F.dataVar,ve=void 0===ce?"data":ce;return N&&0!==N.length?N.map(function(je){return"".concat(ve).concat(je.instancePath," ").concat(je.message)}).reduce(function(je,Te){return je+V+Te}):"No errors"}},{key:"$dataMetaSchema",value:function(N,F){var q=this.RULES.all;N=JSON.parse(JSON.stringify(N));var V,ce=He(F);try{for(ce.s();!(V=ce.n()).done;){var ve,je=V.value.split("/").slice(1),Te=N,et=He(je);try{for(et.s();!(ve=et.n()).done;)Te=Te[ve.value]}catch(le){et.e(le)}finally{et.f()}for(var We in q){var st=q[We];if("object"==wn(st)){var ae=Te[We];st.definition.$data&&ae&&(Te[We]=pe(ae))}}}}catch(le){ce.e(le)}finally{ce.f()}return N}},{key:"_removeAllSchemas",value:function(N,F){for(var q in N){var V=N[q];F&&!F.test(q)||("string"==typeof V?delete N[q]:V&&!V.meta&&(this._cache.delete(V.schema),delete N[q]))}}},{key:"_addSchema",value:function(N,F,q){var V,ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,ve=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,je=this.opts.schemaId;if("object"==wn(N))V=N[je];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof N)throw new Error("schema must be object or boolean")}var Te=this._cache.get(N);if(void 0!==Te)return Te;q=(0,l.normalizeId)(V||q);var et=l.getSchemaRefs.call(this,N,q);return Te=new s.SchemaEnv({schema:N,schemaId:je,meta:F,baseId:q,localRefs:et}),this._cache.set(Te.schema,Te),ve&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=Te),ce&&this.validateSchema(N,!0),Te}},{key:"_checkUnique",value:function(N){if(this.schemas[N]||this.refs[N])throw new Error('schema with key or id "'.concat(N,'" already exists'))}},{key:"_compileSchemaEnv",value:function(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}},{key:"_compileMetaSchema",value:function(N){var F=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=F}}}]),A}();function C(A,N,F){var q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in A){var ce=V;ce in N&&this.logger[q]("".concat(F,": option ").concat(V,". ").concat(A[ce]))}}function D(A){return A=(0,l.normalizeId)(A),this.schemas[A]||this.refs[A]}function E(){var A=this.opts.schemas;if(A)if(Array.isArray(A))this.addSchema(A);else for(var N in A)this.addSchema(A[N],N)}function B(){for(var A in this.opts.formats){var N=this.opts.formats[A];N&&this.addFormat(A,N)}}function z(A){if(Array.isArray(A))this.addVocabulary(A);else for(var N in this.logger.warn("keywords option as map is deprecated, pass array"),A){var F=A[N];F.keyword||(F.keyword=N),this.addKeyword(F)}}function j(){var A,N=nt({},this.opts),F=He(p);try{for(F.s();!(A=F.n()).done;)delete N[A.value]}catch(q){F.e(q)}finally{F.f()}return N}t.default=b,b.ValidationError=i.default,b.MissingRefError=r.default;var U={log:function(){},warn:function(){},error:function(){}},X=/^[a-z_$][a-z0-9_$:-]*$/i;function oe(A,N){var F=this.RULES;if((0,u.eachItem)(A,function(q){if(F.keywords[q])throw new Error("Keyword ".concat(q," is already defined"));if(!X.test(q))throw new Error("Keyword ".concat(q," has invalid name"))}),N&&N.$data&&!("code"in N)&&!("validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function P(A,N,F){var q,V=this,ce=N?.post;if(F&&ce)throw new Error('keyword with "post" flag cannot have "type"');var ve=this.RULES,je=ce?ve.post:ve.rules.find(function(et){return et.type===F});if(je||ve.rules.push(je={type:F,rules:[]}),ve.keywords[A]=!0,N){var Te={keyword:A,definition:nt(nt({},N),{},{type:(0,c.getJSONTypes)(N.type),schemaType:(0,c.getJSONTypes)(N.schemaType)})};N.before?W.call(this,je,Te,N.before):je.rules.push(Te),ve.all[A]=Te,null===(q=N.implements)||void 0===q||q.forEach(function(et){return V.addKeyword(et)})}}function W(A,N,F){var q=A.rules.findIndex(function(V){return V.keyword===F});q>=0?A.rules.splice(q,0,N):(A.rules.push(N),this.logger.warn("rule ".concat(F," is not defined")))}function J(A){var N=A.metaSchema;void 0!==N&&(A.$data&&this.opts.$data&&(N=pe(N)),A.validateSchema=this.compile(N,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function pe(A){return{anyOf:[A,H]}}}(lge);var wj={},Cj={},Sj={};Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.callRef=xg.getValidate=void 0;var jst=yj(),Rge=gd(),ac=Tr(),d1=Vp(),jge=sc,dT=zr,Lst={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return hT(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return hT(t,(0,ac._)(ZJ||(ZJ=Pe(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=jge.resolveRef.call(l,c,r,e);if(void 0===p)throw new jst.default(i.opts.uriResolver,r,e);return p instanceof jge.SchemaEnv?(g=Lge(t,m=p),void hT(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,ac.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:ac.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function Lge(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,ac._)(eK||(eK=Pe(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function hT(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?d1.default.this:ac.nil;function c(d){var h=(0,ac._)(iK||(iK=Pe(["",".errors"])),d);r.assign(d1.default.vErrors,(0,ac._)(rK||(rK=Pe([""," === null ? "," : ",".concat(",")"])),d1.default.vErrors,h,d1.default.vErrors,h)),r.assign(d1.default.errors,(0,ac._)(oK||(oK=Pe(["",".length"])),d1.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=dT.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,ac._)(sK||(sK=Pe(["",".evaluated.props"])),d));o.props=dT.mergeEvaluated.props(r,p,o.props,ac.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=dT.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,ac._)(aK||(aK=Pe(["",".evaluated.items"])),d));o.items=dT.mergeEvaluated.items(r,m,o.items,ac.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,ac._)(tK||(tK=Pe(["await ",""])),(0,Rge.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,ac._)(nK||(nK=Pe(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,Rge.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}xg.getValidate=Lge,xg.callRef=hT,xg.default=Lst,Object.defineProperty(Cj,"__esModule",{value:!0}),Cj.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Sj.default,xg.default];var kj={},Dj={};Object.defineProperty(Dj,"__esModule",{value:!0});var fT=Tr(),Up=fT.operators,pT={maximum:{okStr:"<=",ok:Up.LTE,fail:Up.GT},minimum:{okStr:">=",ok:Up.GTE,fail:Up.LT},exclusiveMaximum:{okStr:"<",ok:Up.LT,fail:Up.GTE},exclusiveMinimum:{okStr:">",ok:Up.GT,fail:Up.LTE}},Vst={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,fT.str)(lK||(lK=Pe(["must be "," ",""])),pT[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,fT._)(cK||(cK=Pe(["{comparison: ",", limit: ","}"])),pT[n].okStr,e)}},Hst={keyword:Object.keys(pT),type:"number",schemaType:"number",$data:!0,error:Vst,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,fT._)(uK||(uK=Pe([""," "," "," || isNaN(",")"])),e,pT[n].fail,i,e))}};Dj.default=Hst;var Tj={};Object.defineProperty(Tj,"__esModule",{value:!0});var nx=Tr(),Ust={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,nx.str)(dK||(dK=Pe(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,nx._)(hK||(hK=Pe(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,nx._)(fK||(fK=Pe(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,nx._)(pK||(pK=Pe([""," !== parseInt(",")"])),o,o);t.fail$data((0,nx._)(mK||(mK=Pe(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};Tj.default=Ust;var Ej={},Aj={};function Bge(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(ox.nil,g);else{var v,y=He(e);try{for(y.s();!(v=y.n()).done;)(0,rx.checkReportMissingProp)(t,v.value)}catch(C){y.e(C)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return C=y,t.setParams({missingProperty:b=v}),void n.forOf(b,i,function(){n.assign(C,(0,rx.propertyInData)(n,r,b,a.ownProperties)),n.if((0,ox.not)(C),function(){t.error(),n.break()})},ox.nil);var b,C}),t.ok(y)}else n.if((0,rx.checkMissingProp)(t,e,v)),(0,rx.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=He(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,Qst.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,rx.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};Ij.default=Zst;var Nj={};Object.defineProperty(Nj,"__esModule",{value:!0});var sx=Tr(),eat={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,sx.str)(MK||(MK=Pe(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,sx._)(OK||(OK=Pe(["{limit: ","}"])),n)}},tat={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:eat,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?sx.operators.GT:sx.operators.LT;t.fail$data((0,sx._)(IK||(IK=Pe(["",".length "," ",""])),e,r,i))}};Nj.default=tat;var Fj={},ax={};Object.defineProperty(ax,"__esModule",{value:!0});var $ge=kge;$ge.code='require("ajv/dist/runtime/equal").default',ax.default=$ge,Object.defineProperty(Fj,"__esModule",{value:!0});var Pj=ex,Qa=Tr(),nat=zr,iat=ax,rat={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Qa.str)(NK||(NK=Pe(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Qa._)(FK||(FK=Pe(["{i: ",", j: ","}"])),e,i)}},oat={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:rat,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,Pj.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Qa._)(RK||(RK=Pe(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Qa._)(jK||(jK=Pe([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Qa._)(PK||(PK=Pe([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,Pj.checkDataTypes)(c,p,a.opts.strictNumbers,Pj.DataType.Wrong),g=n.const("indices",(0,Qa._)(LK||(LK=Pe(["{}"]))));n.for((0,Qa._)(BK||(BK=Pe([";","--;"])),h),function(){n.let(p,(0,Qa._)($K||($K=Pe(["","[","]"])),e,h)),n.if(m,(0,Qa._)(VK||(VK=Pe(["continue"])))),c.length>1&&n.if((0,Qa._)(HK||(HK=Pe(["typeof ",' == "string"'])),p),(0,Qa._)(UK||(UK=Pe(["",' += "_"'])),p)),n.if((0,Qa._)(zK||(zK=Pe(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Qa._)(GK||(GK=Pe(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Qa._)(WK||(WK=Pe(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,nat.useFunc)(n,iat.default),m=n.name("outer");n.label(m).for((0,Qa._)(qK||(qK=Pe([";","--;"])),h),function(){return n.for((0,Qa._)(YK||(YK=Pe([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Qa._)(XK||(XK=Pe(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};Fj.default=oat;var Rj={};Object.defineProperty(Rj,"__esModule",{value:!0});var jj=Tr(),sat=zr,aat=ax,lat={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,jj._)(JK||(JK=Pe(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==wn(o)?t.fail$data((0,jj._)(KK||(KK=Pe(["!","(",", ",")"])),(0,sat.useFunc)(n,aat.default),e,r)):t.fail((0,jj._)(QK||(QK=Pe([""," !== ",""])),o,e))}};Rj.default=lat;var Lj={};Object.defineProperty(Lj,"__esModule",{value:!0});var lx=Tr(),cat=zr,uat=ax,dat={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,lx._)(ZK||(ZK=Pe(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,cat.useFunc)(n,uat.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,lx._)(eQ||(eQ=Pe(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=lx.or.apply(void 0,ui(r.map(function(h,f){return p=d,"object"===wn(g=r[m=f])&&null!==g?(0,lx._)(tQ||(tQ=Pe(["","(",", ","[","])"])),u(),e,p,m):(0,lx._)(nQ||(nQ=Pe([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};Lj.default=dat,Object.defineProperty(kj,"__esModule",{value:!0}),kj.default=[Dj.default,Tj.default,Ej.default,Mj.default,Oj.default,Ij.default,Nj.default,Fj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Rj.default,Lj.default];var Bj={},h1={};Object.defineProperty(h1,"__esModule",{value:!0}),h1.validateAdditionalItems=void 0;var Cg=Tr(),$j=zr,wat={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Cg.str)(iQ||(iQ=Pe(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Cg._)(rQ||(rQ=Pe(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Vge(t,i):(0,$j.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Vge(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,Cg._)(oQ||(oQ=Pe(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,Cg._)(sQ||(sQ=Pe([""," <= ",""])),a,n.length));else if("object"==wn(i)&&!(0,$j.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,Cg._)(aQ||(aQ=Pe([""," <= ",""])),a,n.length));e.if((0,Cg.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:$j.Type.Num},c),s.allErrors||e.if((0,Cg.not)(c),function(){return e.break()})});var c}),t.ok(l)}}h1.validateAdditionalItems=Vge,h1.default=wat;var Vj={},f1={};Object.defineProperty(f1,"__esModule",{value:!0}),f1.validateTuple=void 0;var Hge=Tr(),gT=zr,Cat=gd(),Sat={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Uge(t,"additionalItems",n);e.items=!0,(0,gT.alwaysValidSchema)(e,n)||t.ok((0,Cat.validateArray)(t))}};function Uge(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,gT.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=gT.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Hge._)(lQ||(lQ=Pe(["",".length"])),o));e.forEach(function(d,h){(0,gT.alwaysValidSchema)(a,d)||(i.if((0,Hge._)(cQ||(cQ=Pe([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}f1.validateTuple=Uge,f1.default=Sat,Object.defineProperty(Vj,"__esModule",{value:!0});var kat=f1,Dat={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,kat.validateTuple)(t,"items")}};Vj.default=Dat;var Hj={};Object.defineProperty(Hj,"__esModule",{value:!0});var zge=Tr(),Tat=zr,Eat=gd(),Aat=h1,Mat={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,zge.str)(uQ||(uQ=Pe(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,zge._)(dQ||(dQ=Pe(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,Tat.alwaysValidSchema)(i,n)||(r?(0,Aat.validateAdditionalItems)(t,r):t.ok((0,Eat.validateArray)(t)))}};Hj.default=Mat;var Uj={};Object.defineProperty(Uj,"__esModule",{value:!0});var _u=Tr(),vT=zr,Oat={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,_u.str)(hQ||(hQ=Pe(["must contain at least "," valid item(s)"])),e):(0,_u.str)(fQ||(fQ=Pe(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,_u._)(pQ||(pQ=Pe(["{minContains: ","}"])),e):(0,_u._)(mQ||(mQ=Pe(["{minContains: ",", maxContains: ","}"])),e,i)}},Iat={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Oat,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,_u._)(gQ||(gQ=Pe(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,vT.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,vT.alwaysValidSchema)(a,r)){var d=(0,_u._)(vQ||(vQ=Pe([""," >= ",""])),u,n);return void 0!==e&&(d=(0,_u._)(yQ||(yQ=Pe([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,_u._)(_Q||(_Q=Pe(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,vT.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,_u._)(bQ||(bQ=Pe(["","++"])),v)),void(void 0===e?i.if((0,_u._)(xQ||(xQ=Pe([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,_u._)(wQ||(wQ=Pe([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,_u._)(CQ||(CQ=Pe([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:vT.Type.Num,compositeRule:!0},m),g()})}}};Uj.default=Iat;var Gge={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=Tr(),e=zr,i=gd();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(SQ||(SQ=Pe(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(kQ||(kQ=Pe(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Jn(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,b=He(g);try{for(b.s();!(y=b.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(D){b.e(D)}finally{b.f()}}):(c.if((0,n._)(DQ||(DQ=Pe([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Gge);var zj={};Object.defineProperty(zj,"__esModule",{value:!0});var Wge=Tr(),Nat=zr,Fat={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Wge._)(TQ||(TQ=Pe(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,Nat.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Wge.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};zj.default=Fat;var yT={};Object.defineProperty(yT,"__esModule",{value:!0});var _T=gd(),_d=Tr(),Pat=Vp(),bT=zr,Rat={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,_d._)(EQ||(EQ=Pe(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,bT.alwaysValidSchema)(s,e)){var c=(0,_T.allSchemaProperties)(i.properties),u=(0,_T.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,bT.schemaRefOrVal)(s,i.properties,"properties");g=(0,_T.isOwnProperty)(n,v,m)}else g=c.length?_d.or.apply(void 0,ui(c.map(function(y){return(0,_d._)(MQ||(MQ=Pe([""," === ",""])),m,y)}))):_d.nil;return u.length&&(g=_d.or.apply(void 0,[g].concat(ui(u.map(function(y){return(0,_d._)(OQ||(OQ=Pe(["",".test(",")"])),(0,_T.usePattern)(t,y),m)}))))),(0,_d.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,_d._)(AQ||(AQ=Pe([""," === ",""])),o,Pat.default.errors))}function d(p){n.code((0,_d._)(IQ||(IQ=Pe(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==wn(e)&&!(0,bT.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,_d.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,_d.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:bT.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};yT.default=Rat;var Gj={};Object.defineProperty(Gj,"__esModule",{value:!0});var jat=sT(),qge=gd(),Wj=zr,Yge=yT,Lat={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Yge.default.code(new jat.KeywordCxt(o,Yge.default,"additionalProperties"));var s,a=(0,qge.allSchemaProperties)(e),l=He(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=Wj.mergeEvaluated.props(n,(0,Wj.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,Wj.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=He(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,qge.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};Gj.default=Lat;var qj={};Object.defineProperty(qj,"__esModule",{value:!0});var Xge=gd(),xT=Tr(),Jge=zr,Kge=zr,Bat={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,Xge.allSchemaProperties)(e),l=a.filter(function(p){return(0,Jge.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof xT.Name||(o.props=(0,Kge.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=He(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,Jge.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,xT._)(NQ||(NQ=Pe(["",".test(",")"])),(0,Xge.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Kge.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,xT._)(FQ||(FQ=Pe(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,xT.not)(u),function(){return n.break()})})})}}};qj.default=Bat;var Yj={};Object.defineProperty(Yj,"__esModule",{value:!0});var $at=zr,Vat={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,$at.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};Yj.default=Vat;var Xj={};Object.defineProperty(Xj,"__esModule",{value:!0});var Hat={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:gd().validateUnion,error:{message:"must match a schema in anyOf"}};Xj.default=Hat;var Jj={};Object.defineProperty(Jj,"__esModule",{value:!0});var wT=Tr(),Uat=zr,zat={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,wT._)(PQ||(PQ=Pe(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Uat.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,wT._)(RQ||(RQ=Pe([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,wT._)(jQ||(jQ=Pe(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,wT.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};Jj.default=zat;var Kj={};Object.defineProperty(Kj,"__esModule",{value:!0});var Gat=zr,Wat={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Gat.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};Kj.default=Wat;var Qj={};Object.defineProperty(Qj,"__esModule",{value:!0});var CT=Tr(),Qge=zr,qat={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,CT.str)(LQ||(LQ=Pe(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,CT._)(BQ||(BQ=Pe(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Qge.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=Zge(i,"then"),o=Zge(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,CT.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,CT._)($Q||($Q=Pe(["",""])),d)):t.setParams({ifClause:d})}}}};function Zge(t,n){var e=t.schema[n];return void 0!==e&&!(0,Qge.alwaysValidSchema)(t,e)}Qj.default=qat;var Zj={};Object.defineProperty(Zj,"__esModule",{value:!0});var Yat=zr,Xat={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,Yat.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};Zj.default=Xat,Object.defineProperty(Bj,"__esModule",{value:!0});var Jat=h1,Kat=Vj,Qat=f1,Zat=Hj,elt=Uj,tlt=Gge,nlt=zj,ilt=yT,rlt=Gj,olt=qj,slt=Yj,alt=Xj,llt=Jj,clt=Kj,ult=Qj,dlt=Zj;Bj.default=function(){var n=[slt.default,alt.default,llt.default,clt.default,ult.default,dlt.default,nlt.default,ilt.default,tlt.default,rlt.default,olt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Kat.default,Zat.default):n.push(Jat.default,Qat.default),n.push(elt.default),n};var eL={},tL={};Object.defineProperty(tL,"__esModule",{value:!0});var Ps=Tr(),hlt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,Ps.str)(VQ||(VQ=Pe(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,Ps._)(HQ||(HQ=Pe(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,Ps._)(UQ||(UQ=Pe(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,Ps._)(zQ||(zQ=Pe(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,Ps._)(GQ||(GQ=Pe(["",'.type || "string"'])),f)).assign(m,(0,Ps._)(WQ||(WQ=Pe(["",".validate"])),f))},function(){return e.assign(p,(0,Ps._)(qQ||(qQ=Pe(['"string"'])))).assign(m,f)}),t.fail$data((0,Ps.or)(!1===l.strictSchema?Ps.nil:(0,Ps._)(YQ||(YQ=Pe([""," && !",""])),s,m),(g=u.$async?(0,Ps._)(XQ||(XQ=Pe(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,Ps._)(JQ||(JQ=Pe(["","(",")"])),m,i),v=(0,Ps._)(KQ||(KQ=Pe(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,Ps._)(QQ||(QQ=Pe([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Jn(function(v){var y=v instanceof RegExp?(0,Ps.regexpCode)(v):l.code.formats?(0,Ps._)(ZQ||(ZQ=Pe(["","",""])),l.code.formats,(0,Ps.getProperty)(o)):void 0,b=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=wn(v)||v instanceof RegExp?["string",v,b]:[v.type||"string",v.validate,(0,Ps._)(eZ||(eZ=Pe(["",".validate"])),b)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==wn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ps._)(tZ||(tZ=Pe(["await ","(",")"])),g,i)}return(0,Ps._)("function"==typeof m?nZ||(nZ=Pe(["","(",")"])):iZ||(iZ=Pe(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};tL.default=hlt,Object.defineProperty(eL,"__esModule",{value:!0}),eL.default=[tL.default];var p1={};Object.defineProperty(p1,"__esModule",{value:!0}),p1.contentVocabulary=p1.metadataVocabulary=void 0,p1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],p1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(wj,"__esModule",{value:!0});var glt=eL,eve=p1,vlt=[Cj.default,kj.default,(0,Bj.default)(),glt.default,eve.metadataVocabulary,eve.contentVocabulary];wj.default=vlt;var nL={},tve={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(tve),Object.defineProperty(nL,"__esModule",{value:!0});var m1=Tr(),iL=tve,nve=sc,ylt=zr,_lt={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===iL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,m1._)(rZ||(rZ=Pe(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,m1._)(oZ||(oZ=Pe(["","",""])),e,(0,m1.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,m1.Name),h}n.if((0,m1._)(sZ||(sZ=Pe(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=C(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",b="Expref",C="Pipe",B="EQ",z="GT",j="LT",U="GTE",G="LTE",X="NE",oe="Flatten",P="Star",W="Filter",J="Dot",pe="Lbrace",A="Lbracket",N="Lparen",F="Literal",q={".":J,"*":P,",":p,":":m,"{":pe,"}":g,"]":h,"(":N,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},ce={" ":!0,"\t":!0,"\n":!0};function ve($){return $>="0"&&$<="9"||"-"===$}function je(){}je.prototype={tokenize:function($){var ae,le,Re,Ze,Ve=[];for(this._current=0;this._current<$.length;)if((Ze=$[this._current])>="a"&&Ze<="z"||Ze>="A"&&Ze<="Z"||"_"===Ze)ae=this._current,le=this._consumeUnquotedIdentifier($),Ve.push({type:u,value:le,start:ae});else if(void 0!==q[$[this._current]])Ve.push({type:q[$[this._current]],value:$[this._current],start:this._current}),this._current++;else if(ve($[this._current]))Re=this._consumeNumber($),Ve.push(Re);else if("["===$[this._current])Re=this._consumeLBracket($),Ve.push(Re);else if('"'===$[this._current])ae=this._current,le=this._consumeQuotedIdentifier($),Ve.push({type:d,value:le,start:ae});else if("'"===$[this._current])ae=this._current,le=this._consumeRawStringLiteral($),Ve.push({type:F,value:le,start:ae});else if("`"===$[this._current]){ae=this._current;var Ct=this._consumeLiteral($);Ve.push({type:F,value:Ct,start:ae})}else if(void 0!==V[$[this._current]])Ve.push(this._consumeOperator($));else if(void 0!==ce[$[this._current]])this._current++;else if("&"===$[this._current])ae=this._current,this._current++,"&"===$[this._current]?(this._current++,Ve.push({type:"And",value:"&&",start:ae})):Ve.push({type:b,value:"&",start:ae});else{if("|"!==$[this._current]){var Ot=new Error("Unknown character:"+$[this._current]);throw Ot.name="LexerError",Ot}ae=this._current,this._current++,"|"===$[this._current]?(this._current++,Ve.push({type:"Or",value:"||",start:ae})):Ve.push({type:C,value:"|",start:ae})}return Ve},_consumeUnquotedIdentifier:function($){var ae,le=this._current;for(this._current++;this._current<$.length&&((ae=$[this._current])>="a"&&ae<="z"||ae>="A"&&ae<="Z"||ae>="0"&&ae<="9"||"_"===ae);)this._current++;return $.slice(le,this._current)},_consumeQuotedIdentifier:function($){var ae=this._current;this._current++;for(var le=$.length;'"'!==$[this._current]&&this._current"===le?"="===$[this._current]?(this._current++,{type:U,value:">=",start:ae}):{type:z,value:">",start:ae}:"="===le&&"="===$[this._current]?(this._current++,{type:B,value:"==",start:ae}):void 0},_consumeLiteral:function($){this._current++;for(var ae,le=this._current,Re=$.length;"`"!==$[this._current]&&this._current=0||["true","false","null"].indexOf($)>=0)return!0;if(!("-0123456789".indexOf($[0])>=0))return!1;try{return JSON.parse($),!0}catch{return!1}}};var Te={};function et(){}function We($){this.runtime=$}function st($){this._interpreter=$,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}Te.EOF=0,Te.UnquotedIdentifier=0,Te.QuotedIdentifier=0,Te.Rbracket=0,Te.Rparen=0,Te.Comma=0,Te.Rbrace=0,Te.Number=0,Te.Current=0,Te.Expref=0,Te.Pipe=1,Te.Or=2,Te.And=3,Te.EQ=5,Te.GT=5,Te.LT=5,Te.GTE=5,Te.LTE=5,Te.NE=5,Te.Flatten=9,Te.Star=20,Te.Filter=21,Te.Dot=40,Te.Not=45,Te.Lbrace=50,Te.Lbracket=55,Te.Lparen=60,et.prototype={parse:function($){this._loadTokens($),this.index=0;var ae=this.expression(0);if("EOF"!==this._lookahead(0)){var le=this._lookaheadToken(0),Re=new Error("Unexpected token type: "+le.type+", value: "+le.value);throw Re.name="ParserError",Re}return ae},_loadTokens:function($){var ae=(new je).tokenize($);ae.push({type:"EOF",value:"",start:$.length}),this.tokens=ae},expression:function($){var ae=this._lookaheadToken(0);this._advance();for(var le=this.nud(ae),Re=this._lookahead(0);$=0?this.expression($):ae===A?(this._match(A),this._parseMultiselectList()):ae===pe?(this._match(pe),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function($){var ae;if(Te[this._lookahead(0)]<10)ae={type:"Identity"};else if(this._lookahead(0)===A)ae=this.expression($);else if(this._lookahead(0)===W)ae=this.expression($);else{if(this._lookahead(0)!==J){var le=this._lookaheadToken(0),Re=new Error("Sytanx error, unexpected token: "+le.value+"("+le.type+")");throw Re.name="ParserError",Re}this._match(J),ae=this._parseDotRHS($)}return ae},_parseMultiselectList:function(){for(var $=[];this._lookahead(0)!==h;){var ae=this.expression(0);if($.push(ae),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:$}},_parseMultiselectHash:function(){for(var $,ae,le,Re=[],Ze=[u,d];;){if($=this._lookaheadToken(0),Ze.indexOf($.type)<0)throw new Error("Expecting an identifier token, got: "+$.type);if(ae=$.value,this._advance(),this._match(m),le={type:"KeyValuePair",name:ae,value:this.expression(0)},Re.push(le),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Re}}},We.prototype={search:function($,ae){return this.visit($,ae)},visit:function($,ae){var le,Re,Ze,Ve,Ct,Ot,yn,Xn,on;switch($.type){case"Field":return null!==ae&&e(ae)?void 0===(Ot=ae[$.name])?null:Ot:null;case"Subexpression":for(Ze=this.visit($.children[0],ae),on=1;on<$.children.length;on++)if(null===(Ze=this.visit($.children[1],Ze)))return null;return Ze;case"IndexExpression":return yn=this.visit($.children[0],ae),this.visit($.children[1],yn);case"Index":if(!n(ae))return null;var Ri=$.value;return Ri<0&&(Ri=ae.length+Ri),void 0===(Ze=ae[Ri])&&(Ze=null),Ze;case"Slice":if(!n(ae))return null;var hn=$.children.slice(0),vr=this.computeSliceParams(ae.length,hn),Er=vr[0],fr=vr[1],wr=vr[2];if(Ze=[],wr>0)for(on=Er;onfr;on+=wr)Ze.push(ae[on]);return Ze;case"Projection":var Si=this.visit($.children[0],ae);if(!n(Si))return null;for(Xn=[],on=0;onCt;break;case U:Ze=Ve>=Ct;break;case j:Ze=Ve=$&&(ae=le<0?$-1:$),ae}},st.prototype={callFunction:function($,ae){var le=this.functionTable[$];if(void 0===le)throw new Error("Unknown function: "+$+"()");return this._validateArgs($,ae,le._signature),le._func.call(this,ae)},_validateArgs:function($,ae,le){var Re,Ze,Ve,Ct;if(le[le.length-1].variadic){if(ae.length=0;Re--)le+=ae[Re];return le}var Ze=$[0].slice(0);return Ze.reverse(),Ze},_functionAbs:function($){return Math.abs($[0])},_functionCeil:function($){return Math.ceil($[0])},_functionAvg:function($){for(var ae=0,le=$[0],Re=0;Re=0},_functionFloor:function($){return Math.floor($[0])},_functionLength:function($){return e($[0])?Object.keys($[0]).length:$[0].length},_functionMap:function($){for(var ae=[],le=this._interpreter,Re=$[0],Ze=$[1],Ve=0;Ve0){if(this._getTypeName($[0][0])===s)return Math.max.apply(Math,$[0]);for(var ae=$[0],le=ae[0],Re=1;Re0){if(this._getTypeName($[0][0])===s)return Math.min.apply(Math,$[0]);for(var ae=$[0],le=ae[0],Re=1;Rehn?1:RiCt&&(Ct=le,ae=Ze[Ot]);return ae},_functionMinBy:function($){for(var ae,le,Ze=$[0],Ve=this.createKeyFunction($[1],[s,a]),Ct=1/0,Ot=0;Ot1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var Slt=function(){function t(n,e,i,r){rL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=ST(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=ST(p,4),b=m[3];void 0===b&&(b=1),o.rgba=[m[0],m[1],m[2],b]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return oL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return ove(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return ove(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=Clt[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=ST(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),klt=function(){function t(){rL(this,t),this._events=[]}return oL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function sL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function Ch(t,n){return(n||document).querySelector(t)}function sve(t){t.preventDefault(),t.stopPropagation()}function aL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&sve(o),i(o))})}var ave=function(){function t(n){rL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new klt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return oL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),aL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(sve(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new Slt(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=Ch(".picker_hue",o),this._domSL=Ch(".picker_sl",o),this._domA=Ch(".picker_alpha",o),this._domEdit=Ch(".picker_editor input",o),this._domSample=Ch(".picker_sample",o),this._domOkay=Ch(".picker_done button",o),this._domCancel=Ch(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),sL(r,this._domH,function(l,c){return e._setHSLA(l)}),sL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&sL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),aL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),aL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=Ch(".picker_selector",this._domH),d=Ch(".picker_selector",l),h=Ch(".picker_selector",c);b(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,b(0,d,i[1]),C(0,d,1-i[2]),l.style.color=o,C(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function b(D,E,B){E.style.left=100*B+"%"}function C(D,E,B){E.style.top=100*B+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),lL=document.createElement("style");lL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(lL),ave.StyleElement=lL;var Dlt=Object.freeze({__proto__:null,default:ave});const Tlt=["editor"];function Elt(t,n){if(1&t&&(_(0,"ngb-alert",38),xe(1,"img",39),_(2,"h6",40),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while modifying storage object: ",e.error,"")}}function Alt(t,n){1&t&&(_(0,"ngb-alert",41),xe(1,"img",42),_(2,"h6",40),O(3,"Storage object was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Mlt(t,n){1&t&&(_(0,"span"),O(1,"Save as a copy"),x())}function Olt(t,n){1&t&&O(0,"Save")}function Ilt(t,n){if(1&t&&(_(0,"button",43),te(1,Mlt,2,0,"span",44),te(2,Olt,1,0,"ng-template",null,45,Xo),x()),2&t){const e=sa(3),i=L();S("disabled",i.updating),w(1),S("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const cL=function(){return["/storage"]},Nlt=function(t){return{collection:t}},Flt=function(t,n){return{collection:t,key:n}},Plt=function(t,n,e){return{collection:t,key:n,user_id:e}},uL=function(t){return{"is-invalid":t}},ux=function(t){return{active:t}};let Rlt=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;editor;jsonEditor;error="";object;objectForm;updating=!1;updated=!1;ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",qr.required],keyname:["",qr.required],user_id:["",qr.required],permission_read:[{value:0,disabled:!1},qr.required],permission_write:[{value:0,disabled:!1},qr.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Tlt,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:88,vars:60,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["id","permission_read","name","permission_read",1,"btn-group","btn-group-toggle"],[1,"btn","btn-outline-secondary",3,"ngClass"],["formControlName","permission_read","type","radio",3,"value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["id","permission_write","name","permission_write",1,"btn-group","btn-group-toggle"],["formControlName","permission_write","type","radio",3,"value"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Storage Object"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),O(6,"Storage"),x(),_(7,"li",4)(8,"a",5),O(9),x()(),_(10,"li",4)(11,"a",5),O(12),x()(),_(13,"li",4)(14,"a",5),O(15),x()()()()(),te(16,Elt,4,2,"ngb-alert",6),te(17,Alt,4,1,"ngb-alert",7),_(18,"form",8),ke("ngSubmit",function(){return r.updateObject()}),_(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),O(23,"Collection"),x()(),xe(24,"input",13),_(25,"div",14),O(26,"Collection is required"),x()(),_(27,"div",10)(28,"div",11)(29,"label",15),O(30,"Key"),x()(),xe(31,"input",16),_(32,"div",14),O(33,"Key is required"),x()()(),_(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),O(38,"User ID"),x()(),xe(39,"input",18),_(40,"div",14),O(41,"User ID is required"),x()(),_(42,"div",19)(43,"div",11)(44,"label",20),O(45,"Read Permission"),x()(),_(46,"div",21)(47,"label",22),xe(48,"input",23),O(49," No Read "),x(),_(50,"label",22),xe(51,"input",23),O(52," Owner Read "),x(),_(53,"label",22),xe(54,"input",23),O(55," Public Read "),x()()()(),_(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),O(60,"Version"),x()(),xe(61,"input",25),x(),_(62,"div",19)(63,"div",11)(64,"label",26),O(65,"Write Permission"),x()(),_(66,"div",27)(67,"label",22),xe(68,"input",28),O(69," No Write "),x(),_(70,"label",22),xe(71,"input",28),O(72," Owner Write "),x()()()(),_(73,"div",29)(74,"div",10)(75,"div",11)(76,"label",30),O(77,"Create Time"),x()(),xe(78,"input",31),x(),_(79,"div",10)(80,"div",11)(81,"label",32),O(82,"Update Time"),x()(),xe(83,"input",33),x()(),_(84,"div",34),xe(85,"div",35,36),x(),te(87,Ilt,4,3,"button",37),x()),2&i&&(w(8),S("routerLink",cl(32,cL))("queryParams",Zi(33,Nlt,r.object.collection)),w(1),wt(r.object.collection),w(2),S("routerLink",cl(35,cL))("queryParams",Rr(36,Flt,r.object.collection,r.object.key)),w(1),wt(r.object.key),w(2),S("routerLink",cl(39,cL))("queryParams",ty(40,Plt,r.object.collection,r.object.key,r.object.user_id)),w(1),wt(r.object.user_id),w(1),S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.objectForm),w(6),S("ngClass",Zi(44,uL,r.f.collection.dirty&&r.f.collection.errors)),w(1),S("hidden",r.f.collection.disabled||r.f.collection.valid||r.f.collection.pristine),w(6),S("ngClass",Zi(46,uL,r.f.keyname.dirty&&r.f.keyname.errors)),w(1),S("hidden",r.f.keyname.disabled||r.f.keyname.valid||r.f.keyname.pristine),w(7),S("ngClass",Zi(48,uL,r.f.user_id.dirty&&r.f.user_id.errors)),w(1),S("hidden",r.f.user_id.disabled||r.f.user_id.valid||r.f.user_id.pristine),w(7),S("ngClass",Zi(50,ux,0==r.f.permission_read.value)),w(1),S("value",0),w(2),S("ngClass",Zi(52,ux,1==r.f.permission_read.value)),w(1),S("value",1),w(2),S("ngClass",Zi(54,ux,2==r.f.permission_read.value)),w(1),S("value",2),w(7),S("value",r.object.version),w(6),S("ngClass",Zi(56,ux,0==r.f.permission_write.value)),w(1),S("value",0),w(2),S("ngClass",Zi(58,ux,1==r.f.permission_write.value)),w(1),S("value",1),w(7),S("value",r.object.create_time),w(5),S("value",r.object.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Ru,Of,xn,yo,fa,Us,B3,da,ha,qh,Ts,zs],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),jlt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Llt(t,n){if(1&t&&(_(0,"ngb-alert",18),xe(1,"img",19),_(2,"h6",20),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Blt(t,n){1&t&&(_(0,"th",21),O(1,"Remove"),x())}function $lt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"Yes"),x()}}function Vlt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"No"),x()}}function Hlt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"Yes"),x()}}function Ult(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"No"),x()}}function zlt(t,n){if(1&t){const e=_t();_(0,"td",26)(1,"button",27),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteLeaderboard(r,s,a))}),O(2,"Delete"),x()()}}function Glt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(2),x(),_(3,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(4),x(),_(5,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(6),x(),_(7,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(8),x(),te(9,$lt,2,0,"td",23),te(10,Vlt,2,0,"td",23),te(11,Hlt,2,0,"td",23),te(12,Ult,2,0,"td",23),te(13,zlt,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.id),w(2),wt(i.orderString[e.sort_order]),w(2),wt(i.operatorString[e.operator]),w(2),wt(""===e.reset_schedule?"-":e.reset_schedule),w(1),S("ngIf",e.authoritative),w(1),S("ngIf",!e.authoritative),w(1),S("ngIf",e.tournament),w(1),S("ngIf",!e.tournament),w(1),S("ngIf",i.deleteAllowed())}}function Wlt(t,n){1&t&&(_(0,"tr")(1,"td",28),O(2,"No leaderboards were found."),x()())}let qlt=(()=>{class t{route;router;authService;consoleService;deleteConfirmService;error="";leaderboards=[];nextCursor="";leaderboardsCount=0;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};constructor(e,i,r,o,s){this.route=e,this.router=i,this.authService=r,this.consoleService=o,this.deleteConfirmService=s}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ho),ge(Ai),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),O(4,"Leaderboards"),x(),_(5,"h6",4),O(6),x()(),_(7,"div",5)(8,"div",6)(9,"button",7),ke("click",function(){return r.search(0)}),xe(10,"img",8),x(),_(11,"button",7),ke("click",function(){return r.search(1)}),xe(12,"img",9),x()()()()(),te(13,Llt,4,2,"ngb-alert",10),_(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),O(18,"Leaderboard ID"),x(),_(19,"th",13),O(20,"Sort Order"),x(),_(21,"th",13),O(22,"Operator"),x(),_(23,"th",13),O(24,"Reset Schedule"),x(),_(25,"th",14),O(26,"Authoritative"),x(),_(27,"th",14),O(28,"Tournament"),x(),te(29,Blt,2,0,"th",15),x()(),_(30,"tbody"),te(31,Glt,14,9,"tr",16),te(32,Wlt,3,0,"tr",17),x()()),2&i&&(w(6),bn("",r.leaderboardsCount," leaderboards found."),w(3),S("disabled",0===r.leaderboards.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(16),S("ngIf",r.deleteAllowed()),w(2),S("ngForOf",r.leaderboards),w(1),S("ngIf",0===r.leaderboards.length))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Ylt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xlt(t,n){if(1&t&&(_(0,"ngb-alert",31),xe(1,"img",32),_(2,"h6",33),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying accounts: ",e.error,"")}}function Jlt(t,n){if(1&t){const e=_t();_(0,"ngb-alert",31),xe(1,"img",32),_(2,"h6",33),O(3,"Query ongoing..."),x(),_(4,"button",34),ke("click",function(){return ze(e),Ge(L().cancelQuery())}),O(5,"Cancel!"),x()()}2&t&&S("dismissible",!1)}function Klt(t,n){1&t&&(_(0,"th",35),O(1,"Remove"),x())}function Qlt(t,n){1&t&&(_(0,"tr")(1,"td",36),O(2,"No users found - change the filter criteria or add new user accounts."),x()())}function Zlt(t,n){1&t&&xe(0,"td")}function ect(t,n){if(1&t){const e=_t();_(0,"td",39)(1,"button",40),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteAccount(r,s,a))}),O(2,"Delete"),x()()}}function tct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(6),x(),_(7,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(8),x(),te(9,Zlt,1,0,"td",29),te(10,ect,3,0,"td",38),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.id),w(2),wt(e.username),w(2),wt(e.display_name),w(2),wt(e.update_time),w(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let nct=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";accountsCount=0;accounts=[];nextCursor="";prevCursor="";searchForm;querySubject;ongoingQuery=!1;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.querySubject=new fn,this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}ngOnDestroy(){this.querySubject.next(),this.querySubject.complete()}search(e){this.ongoingQuery&&this.querySubject.next(),this.ongoingQuery=!0;let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).pipe(ns(this.querySubject)).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"}),this.ongoingQuery=!1},o=>{this.error=o,this.ongoingQuery=!1})}cancelQuery(){this.querySubject.next(),this.ongoingQuery=!1}deleteAccount(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:46,vars:10,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button",1,"btn","btn-danger",3,"click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Accounts"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6),xe(9,"input",7),_(10,"div",8)(11,"span",9),ke("click",function(){return r.f.filter.setValue(r.systemUserId)}),xe(12,"img",10),x()(),_(13,"div",8)(14,"div",11)(15,"button",12),ke("click",function(){return r.f.filter_type.setValue(0),r.search(0)}),O(16,"Search"),x(),_(17,"div",13),xe(18,"button",14),_(19,"div",15)(20,"button",16),ke("click",function(){return r.f.filter_type.setValue(1),r.search(0)}),O(21,"Tombstones"),x()()()()()()()(),_(22,"div",17)(23,"div",18)(24,"button",19),ke("click",function(){return r.search(0)}),xe(25,"img",20),x(),_(26,"button",19),ke("click",function(){return r.search(1)}),xe(27,"img",21),x()()()()(),te(28,Xlt,4,2,"ngb-alert",22),te(29,Jlt,6,1,"ngb-alert",22),_(30,"div",23)(31,"table",24)(32,"thead",25)(33,"tr")(34,"th",26),O(35,"User ID"),x(),_(36,"th"),O(37,"Username"),x(),_(38,"th"),O(39,"Display Name"),x(),_(40,"th",27),O(41,"Last Update"),x(),te(42,Klt,2,0,"th",28),x()(),_(43,"tbody"),te(44,Qlt,3,0,"tr",29),te(45,tct,11,6,"tr",30),x()()()),2&i&&(w(3),bn("",r.accountsCount," accounts found."),w(4),S("formGroup",r.searchForm),w(11),S("disabled",!r.f.filter.value||""===r.f.filter.value),w(6),S("disabled",0===r.accounts.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(1),S("ngIf",r.ongoingQuery),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.accounts.length),w(1),S("ngForOf",r.accounts))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),ict=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rct(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().exportAccount(r))}),xe(1,"img",16),O(2,"Export"),x()}}function oct(t,n){1&t&&(_(0,"span"),O(1,"Unban"),x())}function sct(t,n){1&t&&(_(0,"span"),O(1,"Ban"),x())}function act(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().banUnbanAccount(r))}),xe(1,"img",17),te(2,oct,2,0,"span",18),te(3,sct,2,0,"span",18),x()}if(2&t){const e=L();w(2),S("ngIf",e.account.disable_time),w(1),S("ngIf",!e.account.disable_time)}}function lct(t,n){if(1&t){const e=_t();_(0,"button",19),ke("click",function(r){return ze(e),Ge(L().deleteAccount(r,!1))}),xe(1,"img",20),O(2,"Delete"),x()}}function cct(t,n){if(1&t){const e=_t();_(0,"button",19),ke("click",function(r){return ze(e),Ge(L().deleteAccount(r,!0))}),xe(1,"img",21),O(2,"Recorded delete"),x()}}function uct(t,n){if(1&t&&(_(0,"ngb-alert",22),xe(1,"img",23),_(2,"h6",24),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const dct=function(t,n){return["/accounts",t,n]};function hct(t,n){if(1&t&&(_(0,"div"),Cl(1,25),_(2,"a",26),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,dct,i.account.user.id,e.path)),w(1),wt(e.label)}}const fct=function(){return["/accounts"]},pct=function(){return["/storage"]},mct=function(t){return{user_id:t}};let gct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;account;error="";views=[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,XI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Account"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Account"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,rct,3,0,"button",7),te(12,act,4,2,"button",7),te(13,lct,3,0,"button",8),te(14,cct,3,0,"button",8),x()(),te(15,uct,4,2,"ngb-alert",9),_(16,"nav",10,11),te(18,hct,4,6,"div",12),_(19,"div"),Cl(20,13),_(21,"a",14),O(22," Storage "),x(),Sl(),x()(),xe(23,"router-outlet")),2&i&&(w(6),S("routerLink",cl(10,fct)),w(3),wt(r.account.user.id),w(2),S("ngIf",r.exportAllowed()),w(1),S("ngIf",r.banAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views),w(3),S("routerLink",cl(11,pct))("queryParams",Zi(12,mct,r.account.user.id)))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),vct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const yct=["editor"];function _ct(t,n){if(1&t&&(_(0,"ngb-alert",29),xe(1,"img",30),_(2,"h6",31),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function bct(t,n){1&t&&(_(0,"ngb-alert",32),xe(1,"img",33),_(2,"h6",31),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function xct(t,n){1&t&&(_(0,"button",34),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}const wct=function(t){return{"is-invalid":t}};let Cct=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",qr.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(yct,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,_ct,4,2,"ngb-alert",0),te(1,bct,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateAccount()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"User ID"),x()(),xe(8,"input",7),x(),_(9,"div",4)(10,"div",5)(11,"label",8),O(12,"Username"),x()(),xe(13,"input",9),_(14,"div",10),O(15,"Username is required"),x()()(),_(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),O(20,"Display Name"),x()(),xe(21,"input",12),x(),_(22,"div",13)(23,"div",5)(24,"label",14),O(25,"Avatar URL"),x()(),xe(26,"input",15),x()(),_(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),O(31,"Location"),x()(),xe(32,"input",17),x(),_(33,"div",13)(34,"div",5)(35,"label",18),O(36,"Timezone"),x()(),xe(37,"input",19),x()(),_(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),O(42,"Create Time"),x()(),xe(43,"input",22),x(),_(44,"div",4)(45,"div",5)(46,"label",23),O(47,"Update Time"),x()(),xe(48,"input",24),x()(),_(49,"div",25),xe(50,"div",26,27),x(),te(52,xct,2,1,"button",28),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.accountForm),w(6),S("value",r.account.user.id),w(5),S("ngClass",Zi(9,wct,r.f.username.dirty&&r.f.username.errors)),w(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),w(29),S("value",r.account.user.create_time),w(5),S("value",r.account.user.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Of,xn,yo,fa,Us,da,ha,qh,Ts,zs]})}return t})();function Sct(t,n){if(1&t&&(_(0,"ngb-alert",36),xe(1,"img",37),_(2,"h6",38),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function kct(t,n){1&t&&(_(0,"ngb-alert",39),xe(1,"img",40),_(2,"h6",38),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Dct(t,n){if(1&t&&(_(0,"option",41),O(1),x()),2&t){const e=n.$implicit,i=n.index;Ph("value",i),S("selected",0===i),w(1),wt(e.id)}}function Tct(t,n){1&t&&(_(0,"button",42),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}let Ect=(()=>{class t{route;router;consoleService;authService;formBuilder;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,Sct,4,2,"ngb-alert",0),te(1,kct,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateAccount()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"Device IDs"),x()(),_(8,"div",7)(9,"button",8),ke("click",function(){return r.copyDeviceIdToClipboard(r.f.selected_device_id_index.value)}),xe(10,"img",9),O(11," Copy "),x(),_(12,"select",10),te(13,Dct,2,3,"option",11),x(),_(14,"div",12)(15,"button",13),ke("click",function(s){return r.unlinkDeviceId(s)}),O(16,"Unlink"),x()()()(),_(17,"div",4)(18,"div",5)(19,"label",14),O(20,"Custom ID"),x()(),_(21,"div",7),xe(22,"input",15),_(23,"div",12)(24,"button",13),ke("click",function(s){return r.unlinkCustomID(s)}),O(25,"Unlink"),x()()()()(),_(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),O(30,"Facebook ID"),x()(),_(31,"div",7),xe(32,"input",17),_(33,"div",12)(34,"button",13),ke("click",function(s){return r.unlinkFacebook(s)}),O(35,"Unlink"),x()()()(),_(36,"div",18)(37,"div",5)(38,"label",19),O(39,"FB Instant Game ID"),x()(),_(40,"div",7),xe(41,"input",20),_(42,"div",12)(43,"button",13),ke("click",function(s){return r.unlinkFacebookInstantGames(s)}),O(44,"Unlink"),x()()()()(),_(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),O(49,"Apple ID"),x()(),_(50,"div",7),xe(51,"input",22),_(52,"div",12)(53,"button",13),ke("click",function(s){return r.unlinkApple(s)}),O(54,"Unlink"),x()()()(),_(55,"div",18)(56,"div",5)(57,"label",23),O(58,"GameCenter ID"),x()(),_(59,"div",7),xe(60,"input",24),_(61,"div",12)(62,"button",13),ke("click",function(s){return r.unlinkGameCenter(s)}),O(63,"Unlink"),x()()()()(),_(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),O(68,"Google ID"),x()(),_(69,"div",7),xe(70,"input",26),_(71,"div",12)(72,"button",13),ke("click",function(s){return r.unlinkGoogle(s)}),O(73,"Unlink"),x()()()(),_(74,"div",4)(75,"div",5)(76,"label",27),O(77,"Steam ID"),x()(),_(78,"div",7),xe(79,"input",28),_(80,"div",12)(81,"button",13),ke("click",function(s){return r.unlinkSteam(s)}),O(82,"Unlink"),x()()()()(),_(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),O(87,"Email"),x(),xe(88,"br"),x(),xe(89,"input",30),x(),_(90,"div",4)(91,"div",5)(92,"label",31),O(93,"Password"),x()(),xe(94,"input",32),x()(),_(95,"div",33)(96,"div",4),xe(97,"div",5),_(98,"span",34),O(99),x()(),xe(100,"div",4),x(),te(101,Tct,2,1,"button",35),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.accountForm),w(11),S("ngForOf",r.account.devices),w(2),S("disabled",!r.updateAllowed()||0===r.account.devices.length),w(7),S("value",r.account.custom_id),w(2),S("disabled",!r.updateAllowed()||!r.account.custom_id||""===r.account.custom_id),w(8),S("value",r.account.user.facebook_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_id||""===r.account.user.facebook_id),w(7),S("value",r.account.user.facebook_instant_game_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_instant_game_id||""===r.account.user.facebook_instant_game_id),w(8),S("value",r.account.user.apple_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.apple_id||""===r.account.user.apple_id),w(7),S("value",r.account.user.gamecenter_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.gamecenter_id||""===r.account.user.gamecenter_id),w(8),S("value",r.account.user.google_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.google_id||""===r.account.user.google_id),w(7),S("value",r.account.user.steam_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.steam_id||""===r.account.user.steam_id),w(18),bn("Verification Status: ",null===r.account.verify_time?"Not Verified":"Verified",""),w(2),S("ngIf",r.updateAllowed()))},dependencies:[Un,xn,yo,fa,HC,UC,Us,kv,da,ha,Ts,zs],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})}return t})();const Act=["editor"];function Mct(t,n){if(1&t&&(_(0,"ngb-alert",24),xe(1,"img",25),_(2,"h6",26),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Oct(t,n){1&t&&(_(0,"ngb-alert",27),xe(1,"img",28),_(2,"h6",26),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Ict(t,n){if(1&t){const e=_t();_(0,"button",29),ke("click",function(){return ze(e),Ge(L().updateWallet())}),O(1,"Save"),x()}2&t&&S("disabled",L().updating)}function Nct(t,n){1&t&&(_(0,"th",30),O(1,"Remove"),x())}function Fct(t,n){1&t&&(_(0,"tr")(1,"td",31),O(2,"No wallet ledger items found."),x()())}function Pct(t,n){1&t&&xe(0,"div",37)}function Rct(t,n){1&t&&xe(0,"div",38)}function jct(t,n){if(1&t){const e=_t();_(0,"td")(1,"button",39),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteLedgerItem(r,s,a))}),O(2,"Delete"),x()()}}function Lct(t,n){if(1&t&&(_(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),O(4),x()()()()),2&t){const e=L().$implicit;w(4),wt(e.metadata)}}function Bct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",32),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),te(3,Pct,1,0,"div",33),te(4,Rct,1,0,"div",34),x(),O(5),x(),_(6,"td",35)(7,"pre",36),O(8),x()(),_(9,"td"),O(10),x(),te(11,jct,3,0,"td",22),x(),te(12,Lct,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.walletLedgerMetadataOpen[e]),w(1),S("ngIf",r.walletLedgerMetadataOpen[e]),w(1),bn(" ",i.id," "),w(3),wt(i.changeset),w(2),wt(i.update_time),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.walletLedgerMetadataOpen[e])}}let $ct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;editor;jsonEditor;error="";account;walletLedger=[];walletLedgerMetadataOpen=[];updating=!1;updated=!1;nextCursor="";prevCursor="";limit=100;userID;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Act,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(te(0,Mct,4,2,"ngb-alert",0),te(1,Oct,4,1,"ngb-alert",1),_(2,"div",2),xe(3,"div",3,4),x(),te(5,Ict,2,1,"button",5),xe(6,"hr",6),_(7,"div",7)(8,"div",8),xe(9,"div",9),_(10,"div",10)(11,"div",11)(12,"button",12),ke("click",function(){return r.loadData("")}),xe(13,"img",13),x(),_(14,"button",12),ke("click",function(){return r.loadData(r.prevCursor)}),xe(15,"img",14),x(),_(16,"button",12),ke("click",function(){return r.loadData(r.nextCursor)}),xe(17,"img",15),x()()()()(),_(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),O(23,"ID"),x(),_(24,"th"),O(25,"Changeset"),x(),_(26,"th",20),O(27,"Update Time"),x(),te(28,Nct,2,0,"th",21),x()(),_(29,"tbody"),te(30,Fct,3,0,"tr",22),te(31,Bct,13,7,"ng-template",23),x()()()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(4),S("ngIf",r.updateAllowed()),w(7),S("disabled",0===r.walletLedger.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(12),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.walletLedger.length),w(1),S("ngForOf",r.walletLedger))},dependencies:[Un,xn,yo],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})}return t})(),Vct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hct(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Uct(t,n){1&t&&(_(0,"th",13),O(1,"Remove"),x())}function zct(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No friends found."),x()())}function Gct(t,n){1&t&&(_(0,"span"),O(1,"Friend (0)"),x())}function Wct(t,n){1&t&&(_(0,"span"),O(1,"Invite Sent (1)"),x())}function qct(t,n){1&t&&(_(0,"span"),O(1,"Invite Received (2)"),x())}function Yct(t,n){1&t&&(_(0,"span"),O(1,"Blocked (3)"),x())}function Xct(t,n){if(1&t){const e=_t();_(0,"td",17)(1,"button",18),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteFriend(r,s,a))}),O(2,"Delete"),x()()}}function Jct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),O(2),x(),_(3,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),O(4),x(),_(5,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),te(6,Gct,2,0,"span",8),te(7,Wct,2,0,"span",8),te(8,qct,2,0,"span",8),te(9,Yct,2,0,"span",8),x(),_(10,"td"),O(11),x(),te(12,Xct,3,0,"td",16),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.user.id),w(2),wt(e.user.username),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(2),wt(e.update_time),w(1),S("ngIf",i.deleteAllowed())}}let Kct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;error="";account;friends=[];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})})}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,Hct,4,2,"ngb-alert",0),_(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),O(6,"User ID"),x(),_(7,"th"),O(8,"Username"),x(),_(9,"th",5),O(10,"State"),x(),_(11,"th",6),O(12,"Update Time"),x(),te(13,Uct,2,0,"th",7),x()(),_(14,"tbody"),te(15,zct,3,0,"tr",8),te(16,Jct,13,8,"tr",9),x()()()),2&i&&(S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.friends.length),w(1),S("ngForOf",r.friends))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Qct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zct(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function eut(t,n){1&t&&(_(0,"th",13),O(1,"Remove"),x())}function tut(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No group membership found."),x()())}function nut(t,n){1&t&&(_(0,"span"),O(1,"Superadmin (0)"),x())}function iut(t,n){1&t&&(_(0,"span"),O(1,"Admin (1)"),x())}function rut(t,n){1&t&&(_(0,"span"),O(1,"Member (2)"),x())}function out(t,n){1&t&&(_(0,"span"),O(1,"Join Request (3)"),x())}function sut(t,n){1&t&&(_(0,"span"),O(1,"Banned (4)"),x())}function aut(t,n){if(1&t){const e=_t();_(0,"td")(1,"button",16),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroupUser(r,s,a))}),O(2,"Delete"),x()()}}function lut(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),te(6,nut,2,0,"span",8),te(7,iut,2,0,"span",8),te(8,rut,2,0,"span",8),te(9,out,2,0,"span",8),te(10,sut,2,0,"span",8),x(),_(11,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(12),x(),te(13,aut,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.group.id),w(2),wt(e.group.name),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(1),S("ngIf",4===e.state),w(2),wt(e.group.update_time),w(1),S("ngIf",i.deleteAllowed())}}let cut=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;error="";account;groups=[];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,Zct,4,2,"ngb-alert",0),_(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),O(6,"Group ID"),x(),_(7,"th"),O(8,"Name"),x(),_(9,"th",5),O(10,"State"),x(),_(11,"th",6),O(12,"Update Time"),x(),te(13,eut,2,0,"th",7),x()(),_(14,"tbody"),te(15,tut,3,0,"tr",8),te(16,lut,14,9,"tr",9),x()()()),2&i&&(S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.groups.length),w(1),S("ngForOf",r.groups))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),uut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dut=["editor"];function hut(t,n){if(1&t&&(_(0,"ngb-alert",34),xe(1,"img",35),_(2,"h6",36),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function fut(t,n){1&t&&(_(0,"ngb-alert",37),xe(1,"img",38),_(2,"h6",36),O(3,"Group was modified successfully."),x()()),2&t&&S("dismissible",!1)}function put(t,n){1&t&&(_(0,"button",39),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}const mut=function(t){return["/accounts",t]},gut=function(t){return{"is-invalid":t}};let vut=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";group;groupForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",qr.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(dut,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,hut,4,2,"ngb-alert",0),te(1,fut,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateGroup()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"Group ID"),x()(),xe(8,"input",7),x(),_(9,"div",4)(10,"div",5)(11,"label",8),O(12,"Creator ID"),x()(),_(13,"a",9),xe(14,"input",10),x()()(),_(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),O(19,"Name"),x()(),xe(20,"input",12),_(21,"div",13),O(22,"Name is required"),x()(),_(23,"div",4)(24,"div",5)(25,"label",14),O(26,"Description"),x()(),xe(27,"input",15),x()(),_(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),O(32,"Avatar URL"),x()(),xe(33,"input",18),x(),_(34,"div",4)(35,"div",5)(36,"label",19),O(37,"Language"),x()(),xe(38,"input",20),x()(),_(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),O(43,"Members"),x()(),xe(44,"input",21),x(),_(45,"div",16)(46,"div",5)(47,"label",22),O(48,"Max Count"),x()(),xe(49,"input",23),x()(),_(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),O(54,"Open"),x()(),xe(55,"input",24),x()(),_(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),O(60,"Create Time"),x()(),xe(61,"input",27),x(),_(62,"div",4)(63,"div",5)(64,"label",28),O(65,"Update Time"),x()(),xe(66,"input",29),x()(),_(67,"div",30),xe(68,"div",31,32),x(),te(70,put,2,1,"button",33),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.groupForm),w(6),S("value",r.group.id),w(5),S("routerLink",Zi(12,mut,r.group.creator_id)),w(1),S("value",r.group.creator_id),w(6),S("ngClass",Zi(14,gut,r.f.name.dirty&&r.f.name.errors)),w(1),S("hidden",r.f.name.disabled||r.f.name.valid||r.f.name.pristine),w(23),S("value",r.group.edge_count),w(17),S("value",r.group.create_time),w(5),S("value",r.group.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Ru,Of,xn,yo,fa,Us,OC,da,ha,qh,Ts,zs]})}return t})();function yut(t,n){if(1&t&&(_(0,"ngb-alert",13),xe(1,"img",14),_(2,"h6",15),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function _ut(t,n){1&t&&(_(0,"span"),O(1,"Add by membership state"),x())}function but(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L(2);w(1),wt(e.activeState)}}function xut(t,n){if(1&t){const e=_t();_(0,"button",20),ke("click",function(){const o=ze(e).$implicit;return Ge(L(2).activeState=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function wut(t,n){if(1&t&&(_(0,"div",16)(1,"button",17),te(2,_ut,2,0,"span",11),te(3,but,2,1,"span",11),x(),_(4,"div",18),te(5,xut,2,1,"button",19),x()()),2&t){const e=L();w(2),S("ngIf",!e.activeState||""===e.activeState),w(1),S("ngIf",e.activeState&&""!==e.activeState),w(2),S("ngForOf",e.states)}}function Cut(t,n){if(1&t){const e=_t();_(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),xe(5,"input",26),_(6,"div",27)(7,"div",28)(8,"button",29),ke("click",function(){return ze(e),Ge(L().add())}),O(9,"Add"),x()()()()()()()()}if(2&t){const e=L();w(3),S("formGroup",e.addForm)}}function Sut(t,n){1&t&&(_(0,"th",30),O(1,"Demote"),x())}function kut(t,n){1&t&&(_(0,"th",30),O(1,"Promote"),x())}function Dut(t,n){1&t&&(_(0,"th",31),O(1,"Remove"),x())}function Tut(t,n){1&t&&(_(0,"tr")(1,"td",32),O(2,"No group membership found."),x()())}function Eut(t,n){1&t&&(_(0,"span"),O(1,"Superadmin (0)"),x())}function Aut(t,n){1&t&&(_(0,"span"),O(1,"Admin (1)"),x())}function Mut(t,n){1&t&&(_(0,"span"),O(1,"Member (2)"),x())}function Out(t,n){1&t&&(_(0,"span"),O(1,"Join Request (3)"),x())}function Iut(t,n){1&t&&(_(0,"span"),O(1,"Banned (4)"),x())}function Nut(t,n){if(1&t){const e=_t();_(0,"td",36)(1,"button",37),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().demoteGroupUser(r,s,a))}),lt(),_(2,"svg",38),xe(3,"path",39),x()()()}}function Fut(t,n){if(1&t){const e=_t();_(0,"td",36)(1,"button",37),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().promoteGroupUser(r,s,a))}),lt(),_(2,"svg",40),xe(3,"path",41),x()()()}}function Put(t,n){if(1&t){const e=_t();_(0,"td",42)(1,"button",43),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroupUser(r,s,a))}),O(2,"Delete"),x()()}}function Rut(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),te(6,Eut,2,0,"span",11),te(7,Aut,2,0,"span",11),te(8,Mut,2,0,"span",11),te(9,Out,2,0,"span",11),te(10,Iut,2,0,"span",11),x(),_(11,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(12),x(),te(13,Nut,4,0,"td",34),te(14,Fut,4,0,"td",34),te(15,Put,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.user.id),w(2),wt(e.user.username),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(1),S("ngIf",4===e.state),w(2),wt(e.user.update_time),w(1),S("ngIf",i.editionAllowed()),w(1),S("ngIf",i.editionAllowed()),w(1),S("ngIf",i.editionAllowed())}}let jut=(()=>{class t{route;router;consoleService;formBuilder;authService;error="";group;members=[];activeState="Add Member";states=["Add Member","Join"];addForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge($a),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,yut,4,2,"ngb-alert",0),te(1,wut,6,3,"div",1),te(2,Cut,10,1,"div",2),_(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),O(8,"User ID"),x(),_(9,"th"),O(10,"Name"),x(),_(11,"th",7),O(12,"State"),x(),_(13,"th",8),O(14,"Update Time"),x(),te(15,Sut,2,0,"th",9),te(16,kut,2,0,"th",9),te(17,Dut,2,0,"th",10),x()(),_(18,"tbody"),te(19,Tut,3,0,"tr",11),te(20,Rut,16,11,"tr",12),x()()()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",!r.group.open&&r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(13),S("ngIf",r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(2),S("ngIf",0===r.members.length),w(1),S("ngForOf",r.members))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),Lut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function But(t,n){if(1&t&&(_(0,"ngb-alert",28),xe(1,"img",29),_(2,"h6",30),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function $ut(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),wt(e.activeType)}}function Vut(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeType=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function Hut(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),wt(e.activeNode)}}function Uut(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeNode=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function zut(t,n){1&t&&(_(0,"tr")(1,"td",32),O(2,"No realtime matches were found."),x()())}function Gut(t,n){1&t&&xe(0,"div",40)}function Wut(t,n){1&t&&xe(0,"div",41)}function qut(t,n){if(1&t){const e=_t();_(0,"div",37),ke("click",function(){ze(e);const r=L(),o=r.index,s=r.$implicit,a=L();return a.getMatchState(o,s),Ge(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),te(1,Gut,1,0,"div",38),te(2,Wut,1,0,"div",39),x()}if(2&t){const e=L().index,i=L();w(1),S("ngIf",!i.matchStatesOpen[e]),w(1),S("ngIf",i.matchStatesOpen[e])}}function Yut(t,n){1&t&&xe(0,"div",42)}function Xut(t,n){1&t&&(_(0,"span"),O(1,"Yes"),x())}function Jut(t,n){1&t&&(_(0,"span"),O(1,"No"),x())}function Kut(t,n){1&t&&xe(0,"img",51)}function Qut(t,n){if(1&t&&(_(0,"div")(1,"small")(2,"b"),O(3,"Current Tick"),x()(),_(4,"pre",47)(5,"small"),O(6),x()(),_(7,"small")(8,"b"),O(9,"Match State"),x()(),_(10,"pre",47)(11,"small"),O(12),x()()()),2&t){const e=L(2).index,i=L();w(6),wt(i.matchStates[e].tick),w(6),wt(i.matchStates[e].state)}}function Zut(t,n){1&t&&xe(0,"img",51)}function edt(t,n){if(1&t&&(_(0,"pre",47)(1,"small"),O(2),x()()),2&t){const e=L(2).index,i=L();w(2),wt(i.getMatchPresencesString(i.matchStates[e].presences))}}function tdt(t,n){if(1&t&&(_(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),O(6,"Match Label"),x()(),_(7,"pre",47)(8,"small"),O(9),x()()(),_(10,"div",48),te(11,Kut,1,0,"img",49),te(12,Qut,13,2,"div",7),x(),_(13,"div",48)(14,"small")(15,"b"),O(16,"Match Presences"),x()(),te(17,Zut,1,0,"img",49),te(18,edt,3,1,"pre",50),x()()()()),2&t){const e=L(),i=e.$implicit,r=e.index,o=L();w(9),wt(i.api_match.label),w(2),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),S("ngIf",null!==o.matchStates[r]),w(5),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),S("ngIf",null!==o.matchStates[r])}}function ndt(t,n){if(1&t&&(_(0,"tr")(1,"td"),te(2,qut,3,2,"div",33),te(3,Yut,1,0,"div",34),O(4),x(),_(5,"td"),O(6),x(),_(7,"td",35),te(8,Xut,2,0,"span",7),te(9,Jut,2,0,"span",7),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x()(),te(16,tdt,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=L();w(2),S("ngIf",i.api_match.authoritative),w(1),S("ngIf",!i.api_match.authoritative),w(1),bn(" ",i.api_match.match_id," "),w(2),wt(i.api_match.size),w(2),S("ngIf",i.api_match.authoritative),w(1),S("ngIf",!i.api_match.authoritative),w(2),wt(i.node),w(2),wt(i.api_match.handler_name),w(2),wt(i.api_match.authoritative?i.api_match.tick_rate:"-"),w(1),S("ngIf",r.matchStatesOpen[e])}}let idt=(()=>{class t{route;router;formBuilder;consoleService;error="";matches=[];matchStates=[];matchStatesOpen=[];updated=!1;searchForm1;searchForm2;searchForm3;type;activeType="All";types=["All","Authoritative","Relayed"];activeNode="All Nodes";nodes=["All Nodes"];constructor(e,i,r,o){this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));const i=e.get("type");this.type=Number(i);const r=e.get("node");if(this.route.data.subscribe(o=>{o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1===this.type||2===this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,lve(this.consoleService,e,0===e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge($a),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Active Matches"),x(),_(2,"h6",1),O(3),x(),te(4,But,4,2,"ngb-alert",2),_(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),te(9,$ut,2,1,"span",7),x(),_(10,"div",8),te(11,Vut,2,1,"button",9),x()()(),_(12,"div",10)(13,"button",11),ke("click",function(){return r.search()}),O(14,"Search"),x()()(),_(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),ke("ngSubmit",function(){return r.search()}),_(19,"div",16),xe(20,"input",17),x()(),_(21,"form",15),ke("ngSubmit",function(){return r.search()}),_(22,"div",16),xe(23,"input",17),x()(),_(24,"form",15),ke("ngSubmit",function(){return r.search()}),_(25,"div",16),xe(26,"input",18),_(27,"div",10)(28,"div",5)(29,"button",19),te(30,Hut,2,1,"span",7),x(),_(31,"div",8),te(32,Uut,2,1,"button",9),x()()()()()()()(),_(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),O(39,"Match ID"),x()(),_(40,"th",23),O(41,"Presence Count"),x(),_(42,"th",24),O(43,"Authoritative"),x(),_(44,"th",24),O(45,"Node"),x(),_(46,"th",25),O(47,"Handler Name"),x(),_(48,"th",26),O(49,"Tick Rate"),x()()(),_(50,"tbody"),te(51,zut,3,0,"tr",7),te(52,ndt,17,10,"ng-template",27),x()()()),2&i&&(w(3),bn("",r.matches.length," running matches found."),w(1),S("ngIf",r.error),w(5),S("ngIf",r.activeType&&""!==r.activeType),w(2),S("ngForOf",r.types),w(7),S("hidden","All"!==r.activeType)("formGroup",r.searchForm1),w(3),S("hidden","Relayed"!==r.activeType)("formGroup",r.searchForm2),w(3),S("hidden","Authoritative"!==r.activeType)("formGroup",r.searchForm3),w(6),S("ngIf",r.activeNode&&""!==r.activeNode),w(2),S("ngForOf",r.nodes),w(6),Vn("pl-3",r.matches.length>0),w(13),S("ngIf",0===r.matches.length),w(1),S("ngForOf",r.matches))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),rdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));return lve(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))))}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lve(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return Hn(null)}let odt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(it(r=>Hn(r.nodes.map(o=>o.name)))).pipe(Jl(r=>(e.data={...e.data,error:r},Hn([]))))}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sdt(t,n){if(1&t&&(_(0,"ngb-alert",25),xe(1,"img",26),_(2,"h6",27),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying groups: ",e.error,"")}}function adt(t,n){1&t&&(_(0,"th",28),O(1,"Remove"),x())}function ldt(t,n){1&t&&(_(0,"tr")(1,"td",29),O(2,"No groups found - change the filter criteria or add new user groups."),x()())}function cdt(t,n){1&t&&xe(0,"td")}function udt(t,n){if(1&t){const e=_t();_(0,"td",32)(1,"button",33),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroup(r,s,a))}),O(2,"Delete"),x()()}}function ddt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(2),x(),_(3,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(4),x(),_(5,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(6),x(),te(7,cdt,1,0,"td",23),te(8,udt,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.id),w(2),wt(e.name),w(2),wt(e.update_time),w(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let hdt=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";groupsCount=0;groups=[];nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Groups"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6),xe(9,"input",7),_(10,"div",8)(11,"div",9)(12,"button",10),ke("click",function(){return r.search(0)}),O(13,"Search"),x()()()()()(),_(14,"div",11)(15,"div",12)(16,"button",13),ke("click",function(){return r.search(0)}),xe(17,"img",14),x(),_(18,"button",13),ke("click",function(){return r.search(1)}),xe(19,"img",15),x()()()()(),te(20,sdt,4,2,"ngb-alert",16),_(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),O(26,"Group ID"),x(),_(27,"th"),O(28,"Name"),x(),_(29,"th",21),O(30,"Last Update"),x(),te(31,adt,2,0,"th",22),x()(),_(32,"tbody"),te(33,ldt,3,0,"tr",23),te(34,ddt,9,5,"tr",24),x()()()),2&i&&(w(3),bn("",r.groupsCount," groups found."),w(4),S("formGroup",r.searchForm),w(9),S("disabled",0===r.groups.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(11),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.groups.length),w(1),S("ngForOf",r.groups))},dependencies:[Un,xn,yo,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),fdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pdt(t,n){if(1&t){const e=_t();_(0,"button",13),ke("click",function(r){return ze(e),Ge(L().exportGroup(r))}),xe(1,"img",14),O(2,"Export"),x()}}function mdt(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().deleteGroup(r,!1))}),xe(1,"img",16),O(2,"Delete"),x()}}function gdt(t,n){if(1&t&&(_(0,"ngb-alert",17),xe(1,"img",18),_(2,"h6",19),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const vdt=function(t,n){return["/groups",t,n]};function ydt(t,n){if(1&t&&(_(0,"div"),Cl(1,20),_(2,"a",21),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,vdt,i.group.id,e.path)),w(1),wt(e.label)}}const _dt=function(){return["/groups"]};let bdt=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;group;error="";views=[{label:"Details",path:"details"},{label:"Members",path:"members"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,XI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Group"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Group"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,pdt,3,0,"button",7),te(12,mdt,3,0,"button",8),x()(),te(13,gdt,4,2,"ngb-alert",9),_(14,"nav",10,11),te(16,ydt,4,6,"div",12),x(),xe(17,"router-outlet")),2&i&&(w(6),S("routerLink",cl(6,_dt)),w(3),wt(r.group.id),w(2),S("ngIf",r.exportAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),xdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wdt(t,n){if(1&t){const e=_t();_(0,"button",12),ke("click",function(r){return ze(e),Ge(L().deleteLeaderboard(r))}),xe(1,"img",13),O(2,"Delete Leaderboard"),x()}}function Cdt(t,n){if(1&t&&(_(0,"ngb-alert",14),xe(1,"img",15),_(2,"h6",16),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const Sdt=function(t,n){return["/leaderboards",t,n]};function kdt(t,n){if(1&t&&(_(0,"div"),Cl(1,17),_(2,"a",18),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,Sdt,i.leaderboard.id,e.path)),w(1),wt(e.label)}}const Ddt=function(){return["/leaderboards"]};let Tdt=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;leaderboard;error="";views=[{label:"Details",path:"details"},{label:"Records",path:"records"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Leaderboard"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Leaderboards"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,wdt,3,0,"button",7),x()(),te(12,Cdt,4,2,"ngb-alert",8),_(13,"nav",9,10),te(15,kdt,4,6,"div",11),x(),xe(16,"router-outlet")),2&i&&(w(6),S("routerLink",cl(5,Ddt)),w(3),wt(r.leaderboard.id),w(2),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),Edt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Adt=["editor"];function Mdt(t,n){if(1&t&&(_(0,"ngb-alert",24),xe(1,"img",25),_(2,"h6",26),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Odt(t,n){if(1&t&&(_(0,"div",27)(1,"h6"),O(2,"Tournament"),x(),xe(3,"hr",28),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),O(8,"Title"),x()(),xe(9,"input",30),x(),_(10,"div",3)(11,"div",4)(12,"label",31),O(13,"Description"),x()(),xe(14,"input",32),x()(),_(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),O(19,"Category"),x()(),xe(20,"input",34),x(),_(21,"div",3)(22,"div",4)(23,"label",35),O(24,"Max Num Score"),x()(),xe(25,"input",36),x()(),_(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),O(30,"Size"),x()(),xe(31,"input",38),x(),_(32,"div",3)(33,"div",4)(34,"label",39),O(35,"Max Size"),x()(),xe(36,"input",40),x()(),_(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),O(41,"Duration"),x()(),xe(42,"input",42),x(),_(43,"div",3)(44,"div",4)(45,"label",43),O(46,"Join Required"),x()(),xe(47,"input",44),x()(),_(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),O(52,"Start Time"),x()(),xe(53,"input",46),x(),_(54,"div",3)(55,"div",4)(56,"label",47),O(57,"End Time"),x()(),xe(58,"input",48),x()(),_(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),O(63,"Start Active"),x()(),xe(64,"input",50),x(),_(65,"div",3)(66,"div",4)(67,"label",51),O(68,"End Active"),x()(),xe(69,"input",52),x()()()),2&t){const e=L();w(9),S("value",e.leaderboard.title),w(5),S("value",e.leaderboard.description),w(6),S("value",e.leaderboard.category),w(5),S("value",e.leaderboard.max_num_score),w(6),S("value",e.leaderboard.size),w(5),S("value",e.leaderboard.max_size),w(6),S("value",e.leaderboard.duration),w(5),S("value",e.leaderboard.join_required),w(6),S("value",e.leaderboard.start_time),w(5),S("value",e.leaderboard.end_time),w(6),S("value",e.leaderboard.start_active),w(5),S("value",e.leaderboard.end_active)}}let Idt=(()=>{class t{route;editor;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};jsonEditor;leaderboard;error="";constructor(e){this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}static \u0275fac=function(i){return new(i||t)(ge(Vr))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Adt,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(i,r){1&i&&(te(0,Mdt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),O(6,"ID"),x()(),xe(7,"input",6),x(),_(8,"div",3)(9,"div",4)(10,"label",7),O(11,"Authoritative"),x()(),xe(12,"input",8),x()(),_(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),O(17,"Sort Order"),x()(),xe(18,"input",10),x(),_(19,"div",3)(20,"div",4)(21,"label",11),O(22,"Operator"),x()(),xe(23,"input",12),x()(),_(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),O(28,"Reset Schedule"),x()(),xe(29,"input",14),x(),_(30,"div",3)(31,"div",4)(32,"label",15),O(33,"Create Time"),x()(),xe(34,"input",16),x()(),_(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),O(39,"Prev Reset"),x()(),xe(40,"input",18),x(),_(41,"div",3)(42,"div",4)(43,"label",15),O(44,"Next Reset"),x()(),xe(45,"input",19),x()()(),te(46,Odt,70,12,"div",20),_(47,"div",21),xe(48,"div",22,23),x()),2&i&&(S("ngIf",r.error),w(7),S("value",r.leaderboard.id),w(5),S("value",r.leaderboard.authoritative),w(6),S("value",r.orderString[r.leaderboard.sort_order]),w(5),S("value",r.operatorString[r.leaderboard.operator]),w(6),S("value",r.leaderboard.reset_schedule),w(5),S("value",r.leaderboard.create_time),w(6),S("value",r.leaderboard.prev_reset),w(5),S("value",r.leaderboard.next_reset),w(1),S("ngIf",r.leaderboard.tournament))},dependencies:[xn,yo],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})();function Ndt(t,n){if(1&t&&(_(0,"ngb-alert",19),xe(1,"img",20),_(2,"h6",21),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Fdt(t,n){1&t&&(_(0,"th",22),O(1,"Remove"),x())}function Pdt(t,n){1&t&&(_(0,"tr")(1,"td",23),O(2,"No records found."),x()())}function Rdt(t,n){1&t&&xe(0,"div",28)}function jdt(t,n){1&t&&xe(0,"div",29)}function Ldt(t,n){if(1&t){const e=_t();_(0,"td",30)(1,"button",31),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteRecord(r,s,a))}),O(2,"Delete"),x()()}}function Bdt(t,n){if(1&t&&(_(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),O(4),x()()()()),2&t){const e=L().$implicit;w(4),wt(e.metadata)}}function $dt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",24),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),te(3,Rdt,1,0,"div",25),te(4,jdt,1,0,"div",26),x(),O(5),x(),_(6,"td"),O(7),x(),_(8,"td"),O(9),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x(),te(18,Ldt,3,0,"td",27),x(),te(19,Bdt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.recordsMetadataOpen[e]),w(1),S("ngIf",r.recordsMetadataOpen[e]),w(1),bn(" ",i.owner_id," "),w(2),wt(i.username),w(2),wt(i.score),w(2),wt(i.subscore),w(2),wt(i.rank),w(2),wt(i.num_score),w(2),wt(i.expiry_time?i.expiry_time:"-"),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.recordsMetadataOpen[e])}}let Vdt=(()=>{class t{route;consoleService;authService;deleteConfirmService;error="";leaderboard;records=[];recordsMetadataOpen=[];nextCursor="";prevCursor="";constructor(e,i,r,o){this.route=e,this.consoleService=i,this.authService=r,this.deleteConfirmService=o}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(te(0,Ndt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadRecords(0)}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadRecords(-1)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadRecords(1)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),O(17,"Owner ID"),x(),_(18,"th"),O(19,"Username"),x(),_(20,"th",14),O(21,"Score"),x(),_(22,"th",14),O(23,"Subscore"),x(),_(24,"th",14),O(25,"Rank"),x(),_(26,"th",14),O(27,"No. of scores"),x(),_(28,"th",15),O(29,"Expiry Time"),x(),te(30,Fdt,2,0,"th",16),x()(),_(31,"tbody"),te(32,Pdt,3,0,"tr",17),te(33,$dt,20,11,"ng-template",18),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.records.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(20),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.records.length),w(1),S("ngForOf",r.records))},dependencies:[Un,xn,yo]})}return t})(),Hdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Udt=["editorReq"],zdt=["editorVars"],Gdt=["editorRes"];function Wdt(t,n){if(1&t&&(_(0,"ngb-alert",27),xe(1,"img",28),_(2,"h6",29),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error invoking RPC call: ",e.error,"")}}function qdt(t,n){if(1&t&&(_(0,"option",30),O(1),x()),2&t){const e=n.$implicit;Ph("value",e.method),w(1),wt(e.method)}}function Ydt(t,n){if(1&t&&(_(0,"option",30),O(1),x()),2&t){const e=n.$implicit;Ph("value",e.method),w(1),wt(e.method)}}function Xdt(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){return ze(e),Ge(L().addSessionVars())}),O(1,"Add Session Variables"),x()}}let Jdt=(()=>{class t{route;router;consoleService;formBuilder;editorReq;editorVars;editorRes;jsonEditorReq;jsonEditorVars;jsonEditorRes;error="";rpcEndpoints=[];endpoints=[];endpointCallForm;addVars=!1;constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",qr.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditorReq=new $p({target:this.editorReq.nativeElement,props:{mode:Uo.text,readOnly:!0}}),this.jsonEditorVars=new $p({target:this.editorVars.nativeElement,props:{mode:Uo.text}}),this.jsonEditorRes=new $p({target:this.editorRes.nativeElement,props:{mode:Uo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=Zm(this.jsonEditorReq.get()).text}catch(s){return void(this.error=s)}let i={};try{const s=Zm(this.jsonEditorVars.get()).text;if(""!==s){const a=JSON.parse(s);Object.keys(a).forEach(l=>{if("string"!=typeof l)throw new Error(`Invalid session variables: ${l} must be a string`);if("string"!=typeof a[l])throw new Error(`Invalid session variables: ${a[l]} must be a string`)}),i=a}}catch(s){return void(this.error=s)}const r={user_id:this.f.user_id.value,body:e,session_vars:i};let o=null;o=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,r):this.consoleService.callApiEndpoint("",this.f.method.value,r),o.subscribe(s=>{if(s.error_message&&""!==s.error_message)this.jsonEditorRes.set({json:s.error_message});else{e="";try{e=""===s.body?s.body:JSON.stringify(JSON.parse(s.body),null,2)}catch(a){return void(this.error=a)}this.jsonEditorRes.set({text:e})}},s=>{this.jsonEditorRes.set({text:""}),this.error=s})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditorReq){if(!e||""===e)return this.jsonEditorReq.set({text:""}),void this.jsonEditorReq.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditorReq.set({text:i}),this.jsonEditorReq.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}addSessionVars(){this.addVars=!0,this.jsonEditorVars.set({json:{"":"","":""}})}get f(){return this.endpointCallForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&(wo(Udt,5),wo(zdt,5),wo(Gdt,5)),2&i){let o;Tn(o=En())&&(r.editorReq=o.first),Tn(o=En())&&(r.editorVars=o.first),Tn(o=En())&&(r.editorRes=o.first)}},decls:43,vars:8,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],[1,"row","mb-3",3,"hidden"],[1,"col-md-6","py-3"],[1,"text-muted","pt-2"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","200px"],["editorVars",""],[1,"row","mb-3"],[1,"col-lg-6","py-3"],[2,"height","500px"],["editorReq",""],["editorRes",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"API Explorer"),x(),te(2,Wdt,4,2,"ngb-alert",1),_(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),ke("ngSubmit",function(){return r.sendRequest()}),_(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),O(11,"Select Endpoint"),x(),te(12,qdt,2,2,"option",10),_(13,"option",11),O(14,"----"),x(),te(15,Ydt,2,2,"option",10),x()(),xe(16,"input",12),_(17,"div",13)(18,"button",14),O(19,"Send Request"),x()()()()()()(),te(20,Xdt,2,0,"button",15),_(21,"div",16)(22,"div",17)(23,"h5"),O(24,"Session Vars"),x(),_(25,"div",18),O(26,"Add variables as object of string to string key-value pairs."),x(),_(27,"div",19),xe(28,"div",20,21),x()()(),_(30,"div",22)(31,"div",23)(32,"h5"),O(33,"Request Body"),x(),_(34,"div",19),xe(35,"div",24,25),x()(),_(37,"div",23)(38,"h5"),O(39,"Response"),x(),_(40,"div",19),xe(41,"div",24,26),x()()()),2&i&&(w(2),S("ngIf",r.error),w(4),S("formGroup",r.endpointCallForm),w(4),S("value",""),w(2),S("ngForOf",r.rpcEndpoints),w(3),S("ngForOf",r.endpoints),w(3),S("disabled",r.f.method.invalid),w(2),S("ngIf",!r.addVars),w(1),S("hidden",!r.addVars))},dependencies:[Un,xn,yo,fa,HC,UC,Us,kv,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})}return t})(),Kdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qdt(t,n){if(1&t&&(_(0,"ngb-alert",16),xe(1,"img",17),_(2,"h6",18),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Zdt(t,n){1&t&&(_(0,"th"),O(1,"User ID"),x())}function eht(t,n){1&t&&xe(0,"div",23)}function tht(t,n){1&t&&xe(0,"div",24)}function nht(t,n){if(1&t&&(_(0,"td"),O(1),x()),2&t){const e=L().$implicit;w(1),wt(e.user_id)}}function iht(t,n){if(1&t&&(_(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),O(6,"Provider Response"),x()()(),_(7,"div")(8,"pre",28)(9,"small"),O(10),x()()()()()()),2&t){const e=L().$implicit;w(10),wt(e.provider_response)}}function rht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",19),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),te(3,eht,1,0,"div",20),te(4,tht,1,0,"div",21),x(),O(5),x(),te(6,nht,2,1,"td",13),_(7,"td"),O(8),x(),_(9,"td"),O(10),x(),_(11,"td"),O(12),x(),_(13,"td"),O(14),x(),_(15,"td"),O(16),x()(),te(17,iht,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.purchasesRowsOpen[e]),w(1),S("ngIf",r.purchasesRowsOpen[e]),w(1),bn(" ",i.transaction_id," "),w(1),S("ngIf",!r.userId),w(2),wt(i.product_id),w(2),wt(r.getStoreText(i.store)),w(2),wt(i.purchase_time),w(2),wt(i.create_time),w(2),wt(r.getRefundText(i.refund_time)),w(1),S("ngIf",r.purchasesRowsOpen[e])}}function oht(t,n){1&t&&(_(0,"tr")(1,"td",29),O(2,"No purchases were found."),x()())}let cve=(()=>{class t{route;consoleService;purchases=[];purchasesRowsOpen=[];error="";nextCursor="";prevCursor="";userId;limit=100;transactionId;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){const e=this.route?.parent?.snapshot?.paramMap?.get("id")??"";e&&(this.userId=e),this.route.data.subscribe(i=>{this.purchases=i[0].validated_purchases,this.nextCursor=i[0].cursor,this.prevCursor=i[0].prev_cursor})}ngOnChanges(e){e.transactionId.firstChange||(this.transactionId?(this.transactionId=this.transactionId.trim(),this.consoleService.getPurchase("",this.transactionId).subscribe(i=>{this.purchases=[i]},i=>{this.error=i})):""===this.transactionId&&this.loadData(""))}loadData(e){this.error="",this.consoleService.listPurchases("",this.userId,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(zy[e])}getRefundText(e){return"1970-01-01T00:00:00Z"===e?"":e}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["app-purchases"]],inputs:{transactionId:["transaction_id","transactionId"]},features:[ei],decls:32,vars:7,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[4,"ngIf"],[2,"width","180px"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","6"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","6",1,"text-muted"]],template:function(i,r){1&i&&(te(0,Qdt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadData("")}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadData(r.prevCursor)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadData(r.nextCursor)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),O(17,"Transaction ID"),x(),te(18,Zdt,2,0,"th",13),_(19,"th"),O(20,"Product ID"),x(),_(21,"th"),O(22,"Store"),x(),_(23,"th",14),O(24,"Purchase Time"),x(),_(25,"th",14),O(26,"Create Time"),x(),_(27,"th",14),O(28,"Refund Time"),x()()(),_(29,"tbody"),te(30,rht,18,10,"ng-template",15),te(31,oht,3,0,"tr",13),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.purchases.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(8),S("ngIf",!r.userId),w(12),S("ngForOf",r.purchases),w(1),S("ngIf",0===r.purchases.length))},dependencies:[Un,xn,yo]})}return t})(),uve=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent?.paramMap?.get("id")??"";return this.consoleService.listPurchases("",r,100,"")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sht(t,n){1&t&&(_(0,"span"),O(1,"Filter by type"),x())}function aht(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),wt(e.activeFilter)}}function lht(t,n){if(1&t){const e=_t();_(0,"button",39),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeFilter=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function cht(t,n){if(1&t&&(_(0,"h6"),O(1),x()),2&t){const e=L();w(1),bn("Showing results for chat room label: ",e.f1.label.value,"")}}const uht=function(t){return["/groups",t]};function dht(t,n){if(1&t&&(_(0,"h6"),O(1,"Showing results for group ID: "),_(2,"a",40),O(3),x()()),2&t){const e=L();w(2),S("routerLink",Zi(2,uht,e.route.snapshot.queryParamMap.get("group_id"))),w(1),wt(e.f2.group_id.value)}}const dve=function(t){return["/accounts",t]};function hht(t,n){if(1&t&&(_(0,"h6"),O(1,"Showing results for user IDs: "),_(2,"a",40),O(3),x(),O(4,", "),_(5,"a",40),O(6),x()()),2&t){const e=L();w(2),S("routerLink",Zi(4,dve,e.route.snapshot.queryParamMap.get("user_id_one"))),w(1),wt(e.f3.user_id_one.value),w(2),S("routerLink",Zi(6,dve,e.route.snapshot.queryParamMap.get("user_id_two"))),w(1),wt(e.f3.user_id_two.value)}}function fht(t,n){if(1&t&&(_(0,"ngb-alert",41),xe(1,"img",42),_(2,"h6",43),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying messages: ",e.error,"")}}function pht(t,n){1&t&&(_(0,"th",44),O(1,"Remove"),x())}function mht(t,n){if(1&t&&(_(0,"tr")(1,"td",45),O(2,"No messages found."),x()()),2&t){const e=L();w(1),ft("colspan",e.deleteAllowed()?6:5)}}function ght(t,n){1&t&&xe(0,"div",54)}function vht(t,n){1&t&&xe(0,"div",55)}function yht(t,n){1&t&&xe(0,"td")}function _ht(t,n){if(1&t){const e=_t();_(0,"td",56)(1,"button",57),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteMessage(r,s,a))}),O(2,"Delete"),x()()}}function bht(t,n){if(1&t&&(_(0,"tr",58)(1,"td"),O(2),x()()),2&t){const e=L().$implicit,i=L();w(1),ft("colspan",i.deleteAllowed()?6:5),w(1),bn(" ",e.content," ")}}function xht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td"),O(2),x(),_(3,"td",46),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",47),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(6),x(),_(7,"td",48)(8,"div",49),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),te(9,ght,1,0,"div",50),te(10,vht,1,0,"div",51),x(),O(11),x(),_(12,"td"),O(13),x(),te(14,yht,1,0,"td",3),te(15,_ht,3,0,"td",52),x(),te(16,bht,3,2,"tr",53)}if(2&t){const e=n.$implicit,i=n.index,r=L();w(2),wt(e.code),w(2),wt(e.sender_id),w(2),wt(e.username),w(3),S("ngIf",!r.messageStatesOpen[i]),w(1),S("ngIf",r.messageStatesOpen[i]),w(1),bn(" ",e.content," "),w(2),wt(e.create_time),w(1),S("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),w(1),S("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),w(1),S("ngIf",r.messageStatesOpen[i])}}function wht(t,n){if(1&t&&(_(0,"ngb-alert",59),xe(1,"img",42),_(2,"h6",43),O(3,"Failed to delete data."),x(),_(4,"p",60),O(5),x()()),2&t){const e=L();S("dismissible",!1),w(5),wt(e.deleteError)}}function Cht(t,n){if(1&t){const e=_t();_(0,"ngb-alert",61),ke("close",function(){return ze(e),Ge(L().deleteSuccess=!1)}),xe(1,"img",62),_(2,"h6",43),O(3),x()()}if(2&t){const e=L();S("dismissible",!0),w(3),Af("",e.totalDeleted," messages ",e.totalDeleted>0?"successfully":""," deleted.")}}function Sht(t,n){if(1&t){const e=_t();_(0,"button",63),ke("click",function(){return ze(e),Ge(L().deleteData())}),O(1,"Delete messages"),x()}2&t&&S("disabled",L().deleting)}let kht=(()=>{class t{route;router;consoleService;authService;formBuilder;modalService;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";messages=[];nextCursor="";searchForm1;searchForm2;searchForm3;type;confirmDeleteForm;deleteError="";deleteSuccess=!1;deleting=!1;totalDeleted=0;activeFilter="";filters=["Chat Room","Group Chat","Direct Chat"];messageStatesOpen=[];constructor(e,i,r,o,s,a,l){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.deleteConfirmService=l,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",qr.compose([qr.required,qr.pattern("DELETE")])],numberValueControl:{title:"Choose how many days to retain:",id:"days"},days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");const i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2===this.type||3===this.type||4===this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}deleteData(){this.deleteConfirmService.openDeleteConfirmModal(e=>{this.deleteError="",this.deleting=!0;const i=new Date,r=Number(e.days);i.setDate(i.getDate()-r),this.consoleService.deleteChannelMessages("",i.toISOString(),null).subscribe(o=>{this.totalDeleted=Number(o.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const s=this.route.snapshot.queryParamMap,a=s.get("type");let l=s.get("label");l||(l="0");const c=s.get("group_id"),u=s.get("user_id_one"),d=s.get("user_id_two");let h=s.get("cursor");h||(h=""),a&&this.updateMessages(Number(a),l,c,u,d,h)},o=>{this.deleting=!1,this.deleteError=o})},this.confirmDeleteForm,"Delete messages","Are you sure you want to delete all messages before retain days?")}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(m2),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:68,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Chat Messages"),x(),_(2,"div",1)(3,"button",2),te(4,sht,2,0,"span",3),te(5,aht,2,1,"span",3),x(),_(6,"div",4),te(7,lht,2,1,"button",5),x()(),_(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),xe(13,"input",11),_(14,"div",12)(15,"div",13)(16,"button",14),ke("click",function(){return r.type=2,r.search(0)}),O(17,"Search"),x()()()()(),_(18,"form",9)(19,"div",10),xe(20,"input",15),_(21,"div",12)(22,"div",13)(23,"button",14),ke("click",function(){return r.type=3,r.search(0)}),O(24,"Search "),x()()()()(),_(25,"form",9)(26,"div",10),xe(27,"input",16),_(28,"div",12)(29,"span",17),ke("click",function(){return r.f3.user_id_one.setValue(r.systemUserId)}),xe(30,"img",18),x()(),xe(31,"input",19),_(32,"div",12)(33,"div",13)(34,"button",14),ke("click",function(){return r.type=4,r.search(0)}),O(35,"Search "),x()()()()()(),_(36,"div",20)(37,"div",21)(38,"button",22),ke("click",function(){return r.search(0)}),xe(39,"img",23),x(),_(40,"button",22),ke("click",function(){return r.search(1)}),xe(41,"img",24),x()()()()(),te(42,cht,2,1,"h6",3),te(43,dht,4,4,"h6",3),te(44,hht,7,8,"h6",3),te(45,fht,4,2,"ngb-alert",25),_(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),O(51,"Code"),x(),_(52,"th",30),O(53,"Sender ID"),x(),_(54,"th",31),O(55,"Username"),x(),_(56,"th"),O(57,"Content"),x(),_(58,"th",32),O(59,"Create Time"),x(),te(60,pht,2,0,"th",33),x()(),_(61,"tbody"),te(62,mht,3,1,"tr",3),te(63,xht,17,10,"ng-template",34),x()()(),te(64,wht,6,2,"ngb-alert",35),te(65,Cht,4,3,"ngb-alert",36),_(66,"div",37),te(67,Sht,2,1,"button",38),x()),2&i&&(w(4),S("ngIf",!r.activeFilter||""===r.activeFilter),w(1),S("ngIf",r.activeFilter&&""!==r.activeFilter),w(2),S("ngForOf",r.filters),w(4),S("hidden","Chat Room"!==r.activeFilter)("formGroup",r.searchForm1),w(7),S("hidden","Group Chat"!==r.activeFilter)("formGroup",r.searchForm2),w(7),S("hidden","Direct Chat"!==r.activeFilter)("formGroup",r.searchForm3),w(13),S("disabled",0===r.messages.length),w(2),S("disabled",""===r.nextCursor||null===r.nextCursor),w(2),S("ngIf",0!=r.messages.length&&""===r.error&&2==r.type),w(1),S("ngIf",0!=r.messages.length&&""===r.error&&3==r.type),w(1),S("ngIf",0!=r.messages.length&&""===r.error&&4==r.type),w(1),S("ngIf",r.error),w(15),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.messages.length),w(1),S("ngForOf",r.messages),w(1),S("ngIf",r.deleteError),w(1),S("ngIf",r.deleteSuccess),w(2),S("ngIf",r.deleteMessagesAllowed()))},dependencies:[Ru,Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})}return t})(),Dht=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));default:return Hn(null)}}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tht(t,n){if(1&t&&(_(0,"ngb-alert",16),xe(1,"img",17),_(2,"h6",18),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Eht(t,n){1&t&&xe(0,"div",23)}function Aht(t,n){1&t&&xe(0,"div",24)}function Mht(t,n){if(1&t&&(_(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),O(6,"Provider Response"),x()()(),_(7,"div")(8,"pre",28)(9,"small"),O(10),x()()(),_(11,"div",29)(12,"small")(13,"b"),O(14,"Provider Notification"),x()()(),_(15,"div")(16,"pre",28)(17,"small"),O(18),x()()()()()()),2&t){const e=L().$implicit;w(10),wt(e.provider_response),w(8),wt(e.provider_notification)}}function Oht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",19),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.subscriptionsRowOpen[o]=!s.subscriptionsRowOpen[o])}),te(3,Eht,1,0,"div",20),te(4,Aht,1,0,"div",21),x(),O(5),x(),_(6,"td"),O(7),x(),_(8,"td"),O(9),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x()(),te(18,Mht,19,2,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.subscriptionsRowOpen[e]),w(1),S("ngIf",r.subscriptionsRowOpen[e]),w(1),bn(" ",i.product_id," "),w(2),wt(i.original_transaction_id),w(2),wt(r.getStoreText(i.store)),w(2),wt(i.purchase_time),w(2),wt(i.expiry_time),w(2),wt(i.create_time),w(2),wt(r.getRefundText(i.refund_time)),w(1),S("ngIf",r.subscriptionsRowOpen[e])}}function Iht(t,n){1&t&&(_(0,"tr")(1,"td",30),O(2,"No subscriptions were found."),x()())}let hve=(()=>{class t{route;consoleService;subscriptions=[];subscriptionsRowOpen=[];error="";nextCursor="";prevCursor="";userId;limit=100;originalTransactionId;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){const e=this.route?.parent?.snapshot?.paramMap?.get("id")??"";e&&(this.userId=e),this.userId=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(i=>{this.subscriptions=i[0].validated_subscriptions,this.nextCursor=i[0].cursor,this.prevCursor=i[0].prev_cursor})}ngOnChanges(e){e.originalTransactionId.firstChange||(this.originalTransactionId?(this.originalTransactionId=this.originalTransactionId.trim(),this.consoleService.getSubscription("",this.originalTransactionId).subscribe(i=>{this.subscriptions=[i]},i=>{this.error=i})):""===this.originalTransactionId&&this.loadData(""))}loadData(e){this.error="",this.consoleService.listSubscriptions("",this.userId,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.subscriptionsRowOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(zy[e])}getRefundText(e){return"1970-01-01T00:00:00Z"===e?"":e}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["app-subscriptions"]],inputs:{originalTransactionId:["original_transaction_id","originalTransactionId"]},features:[ei],decls:33,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],[1,"pt-2"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(te(0,Tht,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadData("")}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadData(r.prevCursor)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadData(r.nextCursor)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),O(17,"Product ID"),x(),_(18,"th"),O(19,"Original Transaction ID"),x(),_(20,"th"),O(21,"Store"),x(),_(22,"th",13),O(23,"Purchase Time"),x(),_(24,"th",13),O(25,"Expiry Time"),x(),_(26,"th",13),O(27,"Create Time"),x(),_(28,"th",13),O(29,"Refund Time"),x()()(),_(30,"tbody"),te(31,Oht,19,10,"ng-template",14),te(32,Iht,3,0,"tr",15),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.subscriptions.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(21),S("ngForOf",r.subscriptions),w(1),S("ngIf",0===r.subscriptions.length))},dependencies:[Un,xn,yo]})}return t})(),fve=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent?.paramMap?.get("id")??"";return this.consoleService.listSubscriptions("",r,100,"")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nht=(()=>{class t{formBuilder;transactionId;searchForm;constructor(e){this.formBuilder=e}ngOnInit(){this.searchForm=this.formBuilder.group({transaction_id:[""]})}search(){this.transactionId=this.f.transaction_id.value}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:12,vars:2,consts:[[1,"pb-1"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","transaction_id","placeholder","Search by transaction_id (purchaseToken for Play Store purchases)",1,"form-control","border-right-0"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[3,"transaction_id"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Purchases"),x(),_(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4),ke("ngSubmit",function(){return r.search()}),_(6,"div",5),xe(7,"input",6),_(8,"div",7)(9,"button",8),ke("click",function(){return r.search()}),O(10,"Search"),x()()()()()()(),xe(11,"app-purchases",9)),2&i&&(w(5),S("formGroup",r.searchForm),w(6),S("transaction_id",r.transactionId))},dependencies:[fa,Us,da,ha,Ts,zs,cve],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Fht=(()=>{class t{formBuilder;originalTransactionId;searchForm;constructor(e){this.formBuilder=e}ngOnInit(){this.searchForm=this.formBuilder.group({original_transaction_id:[""]})}search(){this.originalTransactionId=this.f.original_transaction_id.value}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:13,vars:2,consts:[[1,"pb-1"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","original_transaction_id","placeholder","Search by original_transaction_id (purchaseToken for Play Store purchases)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[3,"original_transaction_id"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Subscriptions"),x(),_(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4),ke("ngSubmit",function(){return r.search()}),_(6,"div",5),xe(7,"input",6),_(8,"div",7)(9,"div",8)(10,"button",9),ke("click",function(){return r.search()}),O(11,"Search"),x()()()()()()()(),xe(12,"app-subscriptions",10)),2&i&&(w(5),S("formGroup",r.searchForm),w(7),S("original_transaction_id",r.originalTransactionId))},dependencies:[fa,Us,da,ha,Ts,zs,hve],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})();function pve(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function mve(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){pve(o,i,r,s,a,"next",l)}function a(l){pve(o,i,r,s,a,"throw",l)}s(void 0)})}}var dL=ue(3259);const Pht=["qrcElement"];let Rht=(()=>{class t{constructor(e,i){this.renderer=e,this.sanitizer=i,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new ot,this.context=null}ngOnChanges(){var e=this;return mve(function*(){yield e.createQRCode()})()}isValidQrCodeText(e){return!1===this.allowEmptyString?!(typeof e>"u"||""===e||"null"===e||null===e):!(typeof e>"u")}toDataURL(e){return new Promise((i,r)=>{(0,dL.hz)(this.qrdata,e,(o,s)=>{o?r(o):i(s)})})}toCanvas(e,i){return new Promise((r,o)=>{(0,dL.rT)(e,this.qrdata,i,s=>{s?o(s):r("success")})})}toSVG(e){return new Promise((i,r)=>{(0,dL.toString)(this.qrdata,e,(o,s)=>{o?r(o):i(s)})})}renderElement(e){for(const i of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,i);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){var e=this;return mve(function*(){e.version&&e.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),e.version=40):e.version&&e.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),e.version=1):void 0!==e.version&&isNaN(e.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),e.version=void 0);try{if(!e.isValidQrCodeText(e.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");e.isValidQrCodeText(e.qrdata)&&""===e.qrdata&&(e.qrdata=" ");const i={color:{dark:e.colorDark,light:e.colorLight},errorCorrectionLevel:e.errorCorrectionLevel,margin:e.margin,scale:e.scale,version:e.version,width:e.width},r=e.imageSrc,o=e.imageHeight||40,s=e.imageWidth||40;switch(e.elementType){case"canvas":const a=e.renderer.createElement("canvas");e.context=a.getContext("2d"),e.toCanvas(a,i).then(()=>{if(e.ariaLabel&&e.renderer.setAttribute(a,"aria-label",`${e.ariaLabel}`),e.title&&e.renderer.setAttribute(a,"title",`${e.title}`),r&&e.context){e.centerImage=new Image(s,o),r!==e.centerImage.src&&(e.centerImage.src=r),o!==e.centerImage.height&&(e.centerImage.height=o),s!==e.centerImage.width&&(e.centerImage.width=s);const u=e.centerImage;u&&(u.onload=()=>{e.context?.drawImage(u,a.width/2-s/2,a.height/2-o/2,s,o)})}e.renderElement(a),e.emitQRCodeURL(a)}).catch(u=>{console.error("[angularx-qrcode] canvas error:",u)});break;case"svg":const l=e.renderer.createElement("div");e.toSVG(i).then(u=>{e.renderer.setProperty(l,"innerHTML",u);const d=l.firstChild;e.renderer.setAttribute(d,"height",`${e.width}`),e.renderer.setAttribute(d,"width",`${e.width}`),e.renderElement(d),e.emitQRCodeURL(d)}).catch(u=>{console.error("[angularx-qrcode] svg error:",u)});break;default:const c=e.renderer.createElement("img");e.toDataURL(i).then(u=>{e.alt&&c.setAttribute("alt",e.alt),e.ariaLabel&&c.setAttribute("aria-label",e.ariaLabel),c.setAttribute("src",u),e.title&&c.setAttribute("title",e.title),e.renderElement(c),e.emitQRCodeURL(c)}).catch(u=>{console.error("[angularx-qrcode] img/url error:",u)})}}catch(i){console.error("[angularx-qrcode] Error generating QR Code:",i.message)}})()}emitQRCodeURL(e){const i=e.constructor.name;if(i===SVGSVGElement.name){const s=new Blob([e.outerHTML],{type:"image/svg+xml"}),a=URL.createObjectURL(s),l=this.sanitizer.bypassSecurityTrustUrl(a);return void this.qrCodeURL.emit(l)}let r="";i===HTMLCanvasElement.name&&(r=e.toDataURL("image/png")),i===HTMLImageElement.name&&(r=e.src),fetch(r).then(o=>o.blob()).then(o=>URL.createObjectURL(o)).then(o=>this.sanitizer.bypassSecurityTrustUrl(o)).then(o=>{this.qrCodeURL.emit(o)}).catch(o=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+o)})}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(wM))},t.\u0275cmp=Vt({type:t,selectors:[["qrcode"]],viewQuery:function(e,i){if(1&e&&wo(Pht,7),2&e){let r;Tn(r=En())&&(i.qrcElement=r.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[ei],decls:2,vars:2,consts:[["qrcElement",""]],template:function(e,i){1&e&&xe(0,"div",null,0),2&e&&Au(i.cssClass)},encapsulation:2,changeDetection:0}),t})(),jht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();function Lht(t,n){if(1&t&&(_(0,"ngb-alert",6)(1,"h6",7),O(2),x()()),2&t){const e=L();S("dismissible",!1),w(2),wt(e.error)}}const Bht=function(t){return{"was-validated":t}},$ht=function(t){return{"is-invalid":t}};function Vht(t,n){if(1&t){const e=_t();Cl(0),_(1,"div")(2,"h5",8),O(3,"Instructions"),x(),_(4,"form",9),ke("ngSubmit",function(){return ze(e),Ge(L().onSubmit())}),_(5,"ol")(6,"div",10)(7,"li"),O(8,"Install an Authenticator app and use it to scan the QR code. "),_(9,"div"),O(10," e.g. "),_(11,"a",11),O(12,"Google Authenticator"),x(),O(13," or "),_(14,"a",12),O(15,"Authy"),x(),O(16,". "),x()()(),_(17,"div",10)(18,"li"),O(19,"Scan the QR code with your authenticator app. "),xe(20,"qrcode",13),x()(),_(21,"div",10)(22,"li")(23,"label",14),O(24,"Insert 6-digit code from your authenticator app."),x(),xe(25,"input",15),x()(),_(26,"button",16),O(27,"Verify"),x()()()(),Sl()}if(2&t){const e=L();w(4),S("formGroup",e.codeForm)("ngClass",Zi(7,Bht,e.submitted)),w(16),S("qrdata",e.mfaUrl())("width",256)("errorCorrectionLevel","M"),w(5),S("ngClass",Zi(9,$ht,e.f.code.dirty&&e.f.code.errors)),w(1),S("disabled",!e.codeForm.valid||e.submitted)}}function Hht(t,n){1&t&&(_(0,"div",20),O(1," Multi-factor authentication has been successfully set up. Please download the recovery codes and keep them in a safe place. "),x())}function Uht(t,n){if(1&t){const e=_t();_(0,"div"),te(1,Hht,2,0,"div",17),_(2,"button",18),ke("click",function(){return ze(e),Ge(L().downloadRecoveryCodes())}),O(3,"Download Recovery Codes"),x(),_(4,"button",19),ke("click",function(){return ze(e),Ge(L().router.navigateByUrl("/"))}),O(5,"Continue to Dashboard"),x()()}if(2&t){const e=L();w(1),S("ngIf",!e.error&&e.recoveryCodes),w(3),S("disabled",!e.downloadClicked)}}let gve=(()=>{class t{formBuilder;consoleService;authService;router;required;codeForm;mfaCode;submitted=!1;downloadClicked=!1;recoveryCodes;error="";constructor(e,i,r,o){this.formBuilder=e,this.consoleService=i,this.authService=r,this.router=o}ngOnInit(){this.codeForm=this.formBuilder.group({code:["",qr.required]}),this.mfaCode=this.authService.mfa}onSubmit(){this.submitted=!0,this.error="",!this.codeForm.invalid&&this.authService.mfaSet(this.f.code.value).subscribe(e=>{this.codeForm.reset(),this.submitted=!1,this.recoveryCodes=e.recovery_codes},e=>{this.error=e,this.submitted=!1})}mfaUrl(){return decodeURIComponent(this.mfaCode.mfa_url)}get f(){return this.codeForm.controls}downloadRecoveryCodes(){const e=this.recoveryCodes.map((r,o)=>o%2==0?"\n"+r:r),i=document.createElement("a");i.href=window.URL.createObjectURL(new Blob([e.join(" ").trim()],{type:"text/plain"})),i.download="nakama_mfa_recovery_codes.txt",i.click(),window.URL.revokeObjectURL(i.href),this.downloadClicked=!0}static \u0275fac=function(i){return new(i||t)(ge(HH),ge(Ai),ge(Ho),ge(yr))};static \u0275cmp=Vt({type:t,selectors:[["mfa-setup"]],inputs:{required:"required"},decls:8,vars:3,consts:[[1,"login-title","mb-4"],[1,"container"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row"],[4,"ngIf","ngIfElse"],["recoveryCodesBlock",""],["type","danger",1,"mb-3",3,"dismissible"],[1,"mr-2","d-inline","font-weight-bold"],[2,"font-size","23px"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group"],["href","https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2","target","blank","rel","noopener noreferrer"],["href","https://authy.com/download/","target","blank","rel","noopener noreferrer"],[3,"qrdata","width","errorCorrectionLevel"],["for","code",1,"d-inline"],["type","code","id","code","formControlName","code","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["class","alert alert-success mb-4","role","alert",4,"ngIf"],[1,"btn","btn-primary","btn-lg","btn-block","mb-4",3,"click"],["href","/",1,"btn","btn-outline-primary","btn-lg","btn-block",3,"disabled","click"],["role","alert",1,"alert","alert-success","mb-4"]],template:function(i,r){if(1&i&&(_(0,"h3",0),O(1,"Setup Multi-Factor Authentication"),x(),_(2,"div",1),te(3,Lht,3,2,"ngb-alert",2),_(4,"div",3),te(5,Vht,28,11,"ng-container",4),te(6,Uht,6,2,"ng-template",null,5,Xo),x()()),2&i){const o=sa(7);w(3),S("ngIf",r.error),w(2),S("ngIf",!r.recoveryCodes)("ngIfElse",o)}},dependencies:[Of,xn,yo,fa,Us,da,ha,qh,Ts,zs,Rht]})}return t})();const zht=[{path:"",component:n4e,canActivate:[x3e],canActivateChild:[i4e],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:fVe,resolve:[pVe]},{path:"config",component:WVe,resolve:[qVe]},{path:"users",component:ZVe,resolve:[eHe]},{path:"modules",component:pHe,resolve:[mHe]},{path:"storage",component:SHe,resolve:[kHe,DHe],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Rlt,resolve:[jlt],pathMatch:"full"},{path:"leaderboards",component:qlt,resolve:[Ylt]},{path:"leaderboards/:id",component:Tdt,resolve:[Edt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:Idt,resolve:[]},{path:"records",component:Vdt,resolve:[Hdt]}]},{path:"matches",component:idt,resolve:[rdt,odt]},{path:"groups",component:hdt,resolve:[fdt]},{path:"groups/:id",component:bdt,resolve:[xdt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:vut,resolve:[]},{path:"members",component:jut,resolve:[Lut],runGuardsAndResolvers:"always"}]},{path:"accounts",component:nct,resolve:[ict]},{path:"accounts/:id",component:gct,resolve:[vct],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:Cct,resolve:[]},{path:"authentication",component:Ect,resolve:[]},{path:"wallet",component:$ct,resolve:[Vct]},{path:"friends",component:Kct,resolve:[Qct]},{path:"groups",component:cut,resolve:[uut]},{path:"purchases",component:cve,resolve:[uve]},{path:"subscriptions",component:hve,resolve:[fve]}]},{path:"apiexplorer",component:Jdt,resolve:[Kdt]},{path:"chat",component:kht,resolve:[Dht]},{path:"purchases",component:Nht,resolve:[uve]},{path:"subscriptions",component:Fht,resolve:[fve]},{path:"settings/mfa",component:gve,resolve:[]}]},{path:"login",component:_3e,canActivate:[b3e],children:[{path:"mfa",component:gve,resolve:[]}]},{path:"**",redirectTo:""}];let Ght=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ii({type:t});static \u0275inj=Di({imports:[$V.forRoot(zht,{useHash:!0}),$V]})}return t})(),Wht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Vt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"router-outlet")},dependencies:[Vf]})}return t})();new class Yht extends Vd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Jht=1;const Kht=Promise.resolve(),kT={};function vve(t){return t in kT&&(delete kT[t],!0)}const yve={setImmediate(t){const n=Jht++;return kT[n]=!0,Kht.then(()=>vve(n)&&t()),n},clearImmediate(t){vve(t)}};new class Zht extends Vd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=yve.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(yve.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Aft=new Yn("ng-select-selection-model");function Mft(){return new Oft}class Oft{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}let Ift=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[{provide:Aft,useValue:Mft}],imports:[If]}),t})(),Nft=(()=>{class t{authenticationService;constructor(e){this.authenticationService=e}intercept(e,i){const r=this.authenticationService.session;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}static \u0275fac=function(i){return new(i||t)(xt(Ho))};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),Fft=(()=>{class t{authenticationService;router;constructor(e,i){this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Jl(r=>{if(401===r.status)this.authenticationService.logout().subscribe({next:()=>{this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}});else{if(403===r.status)return Rf(r);r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`)}return Rf(r.error.message||r.statusText)}))}static \u0275fac=function(i){return new(i||t)(xt(Ho),xt(yr))};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),Pft=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ii({type:t,bootstrap:[Wht]});static \u0275inj=Di({providers:[p3e,Lz,{provide:XC,useValue:{host:document.location.origin,timeout:15e3}},{provide:X3,useClass:Nft,multi:!0},{provide:X3,useClass:Fft,multi:!0}],imports:[EVe,Ght,bM,zDe,d3e,WPe,W9e,UMe.forRoot({apiKey:"",debug:!1,loadOnInitialization:!1}),GDe,$Me,BMe,Ift,jht]})}return t})();jSe().bootstrapModule(Pft).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},5343:(Et,Xe)=>{"use strict";Xe.byteLength=function we(T){var I=Se(T),Ae=I[1];return 3*(I[0]+Ae)/4-Ae},Xe.toByteArray=function K(T){var I,Zt,Z=Se(T),Ae=Z[0],Ue=Z[1],ut=new de(function se(T,I,Z){return 3*(I+Z)/4-Z}(0,Ae,Ue)),ht=0,yt=Ue>0?Ae-4:Ae;for(Zt=0;Zt>16&255,ut[ht++]=I>>8&255,ut[ht++]=255&I;return 2===Ue&&(I=be[T.charCodeAt(Zt)]<<2|be[T.charCodeAt(Zt+1)]>>4,ut[ht++]=255&I),1===Ue&&(I=be[T.charCodeAt(Zt)]<<10|be[T.charCodeAt(Zt+1)]<<4|be[T.charCodeAt(Zt+2)]>>2,ut[ht++]=I>>8&255,ut[ht++]=255&I),ut},Xe.fromByteArray=function k(T){for(var I,Z=T.length,Ae=Z%3,Ue=[],ht=0,yt=Z-Ae;htyt?yt:ht+16383));return 1===Ae?Ue.push(ue[(I=T[Z-1])>>2]+ue[I<<4&63]+"=="):2===Ae&&Ue.push(ue[(I=(T[Z-2]<<8)+T[Z-1])>>10]+ue[I>>4&63]+ue[I<<2&63]+"="),Ue.join("")};for(var ue=[],be=[],de=typeof Uint8Array<"u"?Uint8Array:Array,ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=0,ee=ye.length;he0)throw new Error("Invalid string. Length must be a multiple of 4");var Z=T.indexOf("=");return-1===Z&&(Z=I),[Z,Z===I?0:4-Z%4]}function re(T){return ue[T>>18&63]+ue[T>>12&63]+ue[T>>6&63]+ue[63&T]}function ie(T,I,Z){for(var Ue=[],ut=I;ut{"use strict";var de=ue(5343),ye=ue(8461),he="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Xe.lW=se,Xe.h2=50;var ee=2147483647;function we(Ne){if(Ne>ee)throw new RangeError('The value "'+Ne+'" is invalid for option "size"');var Y=new Uint8Array(Ne);return Object.setPrototypeOf(Y,se.prototype),Y}function se(Ne,Y,ne){if("number"==typeof Ne){if("string"==typeof Y)throw new TypeError('The "string" argument must be of type string. Received type number');return k(Ne)}return K(Ne,Y,ne)}function K(Ne,Y,ne){if("string"==typeof Ne)return function T(Ne,Y){if(("string"!=typeof Y||""===Y)&&(Y="utf8"),!se.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var ne=0|yt(Ne,Y),Le=we(ne),it=Le.write(Ne,Y);return it!==ne&&(Le=Le.slice(0,it)),Le}(Ne,Y);if(ArrayBuffer.isView(Ne))return function Z(Ne){if(wa(Ne,Uint8Array)){var Y=new Uint8Array(Ne);return Ae(Y.buffer,Y.byteOffset,Y.byteLength)}return I(Ne)}(Ne);if(null==Ne)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne);if(wa(Ne,ArrayBuffer)||Ne&&wa(Ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(wa(Ne,SharedArrayBuffer)||Ne&&wa(Ne.buffer,SharedArrayBuffer)))return Ae(Ne,Y,ne);if("number"==typeof Ne)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=Ne.valueOf&&Ne.valueOf();if(null!=Le&&Le!==Ne)return se.from(Le,Y,ne);var it=function Ue(Ne){if(se.isBuffer(Ne)){var Y=0|ut(Ne.length),ne=we(Y);return 0===ne.length||Ne.copy(ne,0,0,Y),ne}return void 0!==Ne.length?"number"!=typeof Ne.length||ho(Ne.length)?we(0):I(Ne):"Buffer"===Ne.type&&Array.isArray(Ne.data)?I(Ne.data):void 0}(Ne);if(it)return it;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Ne[Symbol.toPrimitive])return se.from(Ne[Symbol.toPrimitive]("string"),Y,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne)}function re(Ne){if("number"!=typeof Ne)throw new TypeError('"size" argument must be of type number');if(Ne<0)throw new RangeError('The value "'+Ne+'" is invalid for option "size"')}function k(Ne){return re(Ne),we(Ne<0?0:0|ut(Ne))}function I(Ne){for(var Y=Ne.length<0?0:0|ut(Ne.length),ne=we(Y),Le=0;Le=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return 0|Ne}function yt(Ne,Y){if(se.isBuffer(Ne))return Ne.length;if(ArrayBuffer.isView(Ne)||wa(Ne,ArrayBuffer))return Ne.byteLength;if("string"!=typeof Ne)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ne);var ne=Ne.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===ne)return 0;for(var it=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return ds(Ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ne;case"hex":return ne>>>1;case"base64":return Cu(Ne).length;default:if(it)return Le?-1:ds(Ne).length;Y=(""+Y).toLowerCase(),it=!0}}function Zt(Ne,Y,ne){var Le=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===ne||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0)<=(Y>>>=0))return"";for(Ne||(Ne="utf8");;)switch(Ne){case"hex":return cc(this,Y,ne);case"utf8":case"utf-8":return $t(this,Y,ne);case"ascii":return Zn(this,Y,ne);case"latin1":case"binary":return yl(this,Y,ne);case"base64":return fi(this,Y,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return uo(this,Y,ne);default:if(Le)throw new TypeError("Unknown encoding: "+Ne);Ne=(Ne+"").toLowerCase(),Le=!0}}function Wt(Ne,Y,ne){var Le=Ne[Y];Ne[Y]=Ne[ne],Ne[ne]=Le}function Qt(Ne,Y,ne,Le,it){if(0===Ne.length)return-1;if("string"==typeof ne?(Le=ne,ne=0):ne>2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ho(ne=+ne)&&(ne=it?0:Ne.length-1),ne<0&&(ne=Ne.length+ne),ne>=Ne.length){if(it)return-1;ne=Ne.length-1}else if(ne<0){if(!it)return-1;ne=0}if("string"==typeof Y&&(Y=se.from(Y,Le)),se.isBuffer(Y))return 0===Y.length?-1:An(Ne,Y,ne,Le,it);if("number"==typeof Y)return Y&=255,"function"==typeof Uint8Array.prototype.indexOf?it?Uint8Array.prototype.indexOf.call(Ne,Y,ne):Uint8Array.prototype.lastIndexOf.call(Ne,Y,ne):An(Ne,[Y],ne,Le,it);throw new TypeError("val must be string, number or Buffer")}function An(Ne,Y,ne,Le,it){var at,qt=1,nn=Ne.length,ar=Y.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(Ne.length<2||Y.length<2)return-1;qt=2,nn/=2,ar/=2,ne/=2}function M(vn,_e){return 1===qt?vn[_e]:vn.readUInt16BE(_e*qt)}if(it){var Mt=-1;for(at=ne;atnn&&(ne=nn-ar),at=ne;at>=0;at--){for(var Yt=!0,zt=0;ztit&&(Le=it):Le=it;var qt=Y.length;Le>qt/2&&(Le=qt/2);for(var nn=0;nn>8,qt.push(ne%256),qt.push(Le);return qt}(Y,Ne.length-ne),Ne,ne,Le)}function fi(Ne,Y,ne){return de.fromByteArray(0===Y&&ne===Ne.length?Ne:Ne.slice(Y,ne))}function $t(Ne,Y,ne){ne=Math.min(Ne.length,ne);for(var Le=[],it=Y;it239?4:qt>223?3:qt>191?2:1;if(it+ar<=ne)switch(ar){case 1:qt<128&&(nn=qt);break;case 2:128==(192&(M=Ne[it+1]))&&(Yt=(31&qt)<<6|63&M)>127&&(nn=Yt);break;case 3:at=Ne[it+2],128==(192&(M=Ne[it+1]))&&128==(192&at)&&(Yt=(15&qt)<<12|(63&M)<<6|63&at)>2047&&(Yt<55296||Yt>57343)&&(nn=Yt);break;case 4:at=Ne[it+2],Mt=Ne[it+3],128==(192&(M=Ne[it+1]))&&128==(192&at)&&128==(192&Mt)&&(Yt=(15&qt)<<18|(63&M)<<12|(63&at)<<6|63&Mt)>65535&&Yt<1114112&&(nn=Yt)}null===nn?(nn=65533,ar=1):nn>65535&&(Le.push((nn-=65536)>>>10&1023|55296),nn=56320|1023&nn),Le.push(nn),it+=ar}return function tl(Ne){var Y=Ne.length;if(Y<=ta)return String.fromCharCode.apply(String,Ne);for(var ne="",Le=0;Leit.length?se.from(nn).copy(it,qt):Uint8Array.prototype.set.call(it,nn,qt);else{if(!se.isBuffer(nn))throw new TypeError('"list" argument must be an Array of Buffers');nn.copy(it,qt)}qt+=nn.length}return it},se.byteLength=yt,se.prototype._isBuffer=!0,se.prototype.swap16=function(){var Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(Y+=" ... "),""},he&&(se.prototype[he]=se.prototype.inspect),se.prototype.compare=function(Y,ne,Le,it,qt){if(wa(Y,Uint8Array)&&(Y=se.from(Y,Y.offset,Y.byteLength)),!se.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(void 0===ne&&(ne=0),void 0===Le&&(Le=Y?Y.length:0),void 0===it&&(it=0),void 0===qt&&(qt=this.length),ne<0||Le>Y.length||it<0||qt>this.length)throw new RangeError("out of range index");if(it>=qt&&ne>=Le)return 0;if(it>=qt)return-1;if(ne>=Le)return 1;if(this===Y)return 0;for(var nn=(qt>>>=0)-(it>>>=0),ar=(Le>>>=0)-(ne>>>=0),M=Math.min(nn,ar),at=this.slice(it,qt),Mt=Y.slice(ne,Le),Yt=0;Yt>>=0,isFinite(Le)?(Le>>>=0,void 0===it&&(it="utf8")):(it=Le,Le=void 0)}var qt=this.length-ne;if((void 0===Le||Le>qt)&&(Le=qt),Y.length>0&&(Le<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");for(var nn=!1;;)switch(it){case"hex":return Cn(this,Y,ne,Le);case"utf8":case"utf-8":return Sn(this,Y,ne,Le);case"ascii":case"latin1":case"binary":return mi(this,Y,ne,Le);case"base64":return fn(this,Y,ne,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qn(this,Y,ne,Le);default:if(nn)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),nn=!0}},se.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ta=4096;function Zn(Ne,Y,ne){var Le="";ne=Math.min(Ne.length,ne);for(var it=Y;itLe)&&(ne=Le);for(var it="",qt=Y;qtne)throw new RangeError("Trying to access beyond buffer length")}function Gr(Ne,Y,ne,Le,it,qt){if(!se.isBuffer(Ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>it||YNe.length)throw new RangeError("Index out of range")}function Ss(Ne,Y,ne,Le,it,qt){if(ne+Le>Ne.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function Wr(Ne,Y,ne,Le,it){return Y=+Y,ne>>>=0,it||Ss(Ne,0,ne,4),ye.write(Ne,Y,ne,Le,23,4),ne+4}function na(Ne,Y,ne,Le,it){return Y=+Y,ne>>>=0,it||Ss(Ne,0,ne,8),ye.write(Ne,Y,ne,Le,52,8),ne+8}se.prototype.slice=function(Y,ne){var Le=this.length;(Y=~~Y)<0?(Y+=Le)<0&&(Y=0):Y>Le&&(Y=Le),(ne=void 0===ne?Le:~~ne)<0?(ne+=Le)<0&&(ne=0):ne>Le&&(ne=Le),ne>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y],qt=1,nn=0;++nn>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y+--ne],qt=1;ne>0&&(qt*=256);)it+=this[Y+--ne]*qt;return it},se.prototype.readUint8=se.prototype.readUInt8=function(Y,ne){return Y>>>=0,ne||Kr(Y,1,this.length),this[Y]},se.prototype.readUint16LE=se.prototype.readUInt16LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,2,this.length),this[Y]|this[Y+1]<<8},se.prototype.readUint16BE=se.prototype.readUInt16BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,2,this.length),this[Y]<<8|this[Y+1]},se.prototype.readUint32LE=se.prototype.readUInt32LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},se.prototype.readUint32BE=se.prototype.readUInt32BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},se.prototype.readIntLE=function(Y,ne,Le){Y>>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y],qt=1,nn=0;++nn=(qt*=128)&&(it-=Math.pow(2,8*ne)),it},se.prototype.readIntBE=function(Y,ne,Le){Y>>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=ne,qt=1,nn=this[Y+--it];it>0&&(qt*=256);)nn+=this[Y+--it]*qt;return nn>=(qt*=128)&&(nn-=Math.pow(2,8*ne)),nn},se.prototype.readInt8=function(Y,ne){return Y>>>=0,ne||Kr(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},se.prototype.readInt16LE=function(Y,ne){Y>>>=0,ne||Kr(Y,2,this.length);var Le=this[Y]|this[Y+1]<<8;return 32768&Le?4294901760|Le:Le},se.prototype.readInt16BE=function(Y,ne){Y>>>=0,ne||Kr(Y,2,this.length);var Le=this[Y+1]|this[Y]<<8;return 32768&Le?4294901760|Le:Le},se.prototype.readInt32LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},se.prototype.readInt32BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},se.prototype.readFloatLE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),ye.read(this,Y,!0,23,4)},se.prototype.readFloatBE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),ye.read(this,Y,!1,23,4)},se.prototype.readDoubleLE=function(Y,ne){return Y>>>=0,ne||Kr(Y,8,this.length),ye.read(this,Y,!0,52,8)},se.prototype.readDoubleBE=function(Y,ne){return Y>>>=0,ne||Kr(Y,8,this.length),ye.read(this,Y,!1,52,8)},se.prototype.writeUintLE=se.prototype.writeUIntLE=function(Y,ne,Le,it){Y=+Y,ne>>>=0,Le>>>=0,it||Gr(this,Y,ne,Le,Math.pow(2,8*Le)-1,0);var nn=1,ar=0;for(this[ne]=255&Y;++ar>>=0,Le>>>=0,it||Gr(this,Y,ne,Le,Math.pow(2,8*Le)-1,0);var nn=Le-1,ar=1;for(this[ne+nn]=255&Y;--nn>=0&&(ar*=256);)this[ne+nn]=Y/ar&255;return ne+Le},se.prototype.writeUint8=se.prototype.writeUInt8=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,1,255,0),this[ne]=255&Y,ne+1},se.prototype.writeUint16LE=se.prototype.writeUInt16LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,65535,0),this[ne]=255&Y,this[ne+1]=Y>>>8,ne+2},se.prototype.writeUint16BE=se.prototype.writeUInt16BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,65535,0),this[ne]=Y>>>8,this[ne+1]=255&Y,ne+2},se.prototype.writeUint32LE=se.prototype.writeUInt32LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,4294967295,0),this[ne+3]=Y>>>24,this[ne+2]=Y>>>16,this[ne+1]=Y>>>8,this[ne]=255&Y,ne+4},se.prototype.writeUint32BE=se.prototype.writeUInt32BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,4294967295,0),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=255&Y,ne+4},se.prototype.writeIntLE=function(Y,ne,Le,it){if(Y=+Y,ne>>>=0,!it){var qt=Math.pow(2,8*Le-1);Gr(this,Y,ne,Le,qt-1,-qt)}var nn=0,ar=1,M=0;for(this[ne]=255&Y;++nn>0)-M&255;return ne+Le},se.prototype.writeIntBE=function(Y,ne,Le,it){if(Y=+Y,ne>>>=0,!it){var qt=Math.pow(2,8*Le-1);Gr(this,Y,ne,Le,qt-1,-qt)}var nn=Le-1,ar=1,M=0;for(this[ne+nn]=255&Y;--nn>=0&&(ar*=256);)Y<0&&0===M&&0!==this[ne+nn+1]&&(M=1),this[ne+nn]=(Y/ar>>0)-M&255;return ne+Le},se.prototype.writeInt8=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,1,127,-128),Y<0&&(Y=255+Y+1),this[ne]=255&Y,ne+1},se.prototype.writeInt16LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,32767,-32768),this[ne]=255&Y,this[ne+1]=Y>>>8,ne+2},se.prototype.writeInt16BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,32767,-32768),this[ne]=Y>>>8,this[ne+1]=255&Y,ne+2},se.prototype.writeInt32LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,2147483647,-2147483648),this[ne]=255&Y,this[ne+1]=Y>>>8,this[ne+2]=Y>>>16,this[ne+3]=Y>>>24,ne+4},se.prototype.writeInt32BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=255&Y,ne+4},se.prototype.writeFloatLE=function(Y,ne,Le){return Wr(this,Y,ne,!0,Le)},se.prototype.writeFloatBE=function(Y,ne,Le){return Wr(this,Y,ne,!1,Le)},se.prototype.writeDoubleLE=function(Y,ne,Le){return na(this,Y,ne,!0,Le)},se.prototype.writeDoubleBE=function(Y,ne,Le){return na(this,Y,ne,!1,Le)},se.prototype.copy=function(Y,ne,Le,it){if(!se.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!it&&0!==it&&(it=this.length),ne>=Y.length&&(ne=Y.length),ne||(ne=0),it>0&&it=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),Y.length-ne>>=0,Le=void 0===Le?this.length:Le>>>0,Y||(Y=0),"number"==typeof Y)for(nn=ne;nn55295&&ne<57344){if(!it){if(ne>56319){(Y-=3)>-1&&qt.push(239,191,189);continue}if(nn+1===Le){(Y-=3)>-1&&qt.push(239,191,189);continue}it=ne;continue}if(ne<56320){(Y-=3)>-1&&qt.push(239,191,189),it=ne;continue}ne=65536+(it-55296<<10|ne-56320)}else it&&(Y-=3)>-1&&qt.push(239,191,189);if(it=null,ne<128){if((Y-=1)<0)break;qt.push(ne)}else if(ne<2048){if((Y-=2)<0)break;qt.push(ne>>6|192,63&ne|128)}else if(ne<65536){if((Y-=3)<0)break;qt.push(ne>>12|224,ne>>6&63|128,63&ne|128)}else{if(!(ne<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;qt.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,63&ne|128)}}return qt}function Cu(Ne){return de.toByteArray(function Ls(Ne){if((Ne=(Ne=Ne.split("=")[0]).trim().replace(nl,"")).length<2)return"";for(;Ne.length%4!=0;)Ne+="=";return Ne}(Ne))}function il(Ne,Y,ne,Le){for(var it=0;it=Y.length||it>=Ne.length);++it)Y[it+ne]=Ne[it];return it}function wa(Ne,Y){return Ne instanceof Y||null!=Ne&&null!=Ne.constructor&&null!=Ne.constructor.name&&Ne.constructor.name===Y.name}function ho(Ne){return Ne!=Ne}var Hl=function(){for(var Ne="0123456789abcdef",Y=new Array(256),ne=0;ne<16;++ne)for(var Le=16*ne,it=0;it<16;++it)Y[Le+it]=Ne[ne]+Ne[it];return Y}()},4901:Et=>{"use strict";var Xe={single_source_shortest_paths:function(ue,be,de){var ye={},he={};he[be]=0;var Se,we,se,K,re,k,ee=Xe.PriorityQueue.make();for(ee.push(be,0);!ee.empty();)for(se in K=(Se=ee.pop()).cost,re=ue[we=Se.value]||{})re.hasOwnProperty(se)&&(k=K+re[se],(typeof he[se]>"u"||he[se]>k)&&(he[se]=k,ee.push(se,k),ye[se]=we));if(typeof de<"u"&&typeof he[de]>"u"){var Z=["Could not find a path from ",be," to ",de,"."].join("");throw new Error(Z)}return ye},extract_shortest_path_from_predecessor_list:function(ue,be){for(var de=[],ye=be;ye;)de.push(ye),ye=ue[ye];return de.reverse(),de},find_path:function(ue,be,de){var ye=Xe.single_source_shortest_paths(ue,be,de);return Xe.extract_shortest_path_from_predecessor_list(ye,de)},PriorityQueue:{make:function(ue){var ye,be=Xe.PriorityQueue,de={};for(ye in ue=ue||{},be)be.hasOwnProperty(ye)&&(de[ye]=be[ye]);return de.queue=[],de.sorter=ue.sorter||be.default_sorter,de},default_sorter:function(ue,be){return ue.cost-be.cost},push:function(ue,be){this.queue.push({value:ue,cost:be}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Et.exports=Xe},8419:Et=>{"use strict";Et.exports=function(ue){for(var be=[],de=ue.length,ye=0;ye=55296&&he<=56319&&de>ye+1){var ee=ue.charCodeAt(ye+1);ee>=56320&&ee<=57343&&(he=1024*(he-55296)+ee-56320+65536,ye+=1)}he<128?be.push(he):he<2048?(be.push(he>>6|192),be.push(63&he|128)):he<55296||he>=57344&&he<65536?(be.push(he>>12|224),be.push(he>>6&63|128),be.push(63&he|128)):he>=65536&&he<=1114111?(be.push(he>>18|240),be.push(he>>12&63|128),be.push(he>>6&63|128),be.push(63&he|128)):be.push(239,191,189)}return new Uint8Array(be).buffer}},7797:function(Et){Et.exports=function(Xe){var ue={};function be(de){if(ue[de])return ue[de].exports;var ye=ue[de]={exports:{},id:de,loaded:!1};return Xe[de].call(ye.exports,ye,ye.exports,be),ye.loaded=!0,ye.exports}return be.m=Xe,be.c=ue,be.p="",be(0)}([function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(1),ye=be(3),he=be(8),ee=be(15);function Se(ie,k,T){var I=null,Z=function(Qt,An){T&&T(Qt,An),I&&I.visit(Qt,An)},Ae="function"==typeof T?Z:null,Ue=!1;if(k){var ut="boolean"==typeof k.attachComment&&k.attachComment;((Ue="boolean"==typeof k.comment&&k.comment)||ut)&&((I=new de.CommentHandler).attach=ut,k.comment=!0,Ae=Z)}var yt,ht=!1;k&&"string"==typeof k.sourceType&&(ht="module"===k.sourceType),yt=k&&"boolean"==typeof k.jsx&&k.jsx?new ye.JSXParser(ie,k,Ae):new he.Parser(ie,k,Ae);var Wt=ht?yt.parseModule():yt.parseScript();return Ue&&I&&(Wt.comments=I.comments),yt.config.tokens&&(Wt.tokens=yt.tokens),yt.config.tolerant&&(Wt.errors=yt.errorHandler.errors),Wt}ue.parse=Se,ue.parseModule=function we(ie,k,T){var I=k||{};return I.sourceType="module",Se(ie,I,T)},ue.parseScript=function se(ie,k,T){var I=k||{};return I.sourceType="script",Se(ie,I,T)},ue.tokenize=function K(ie,k,T){var Z,I=new ee.Tokenizer(ie,k);Z=[];try{for(;;){var Ae=I.getNextToken();if(!Ae)break;T&&(Ae=T(Ae)),Z.push(Ae)}}catch(Ue){I.errorHandler.tolerate(Ue)}return I.errorHandler.tolerant&&(Z.errors=I.errors()),Z};var re=be(2);ue.Syntax=re.Syntax,ue.version="4.0.1"},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(2),ye=function(){function he(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return he.prototype.insertInnerComments=function(ee,Se){if(ee.type===de.Syntax.BlockStatement&&0===ee.body.length){for(var we=[],se=this.leading.length-1;se>=0;--se){var K=this.leading[se];Se.end.offset>=K.start&&(we.unshift(K.comment),this.leading.splice(se,1),this.trailing.splice(se,1))}we.length&&(ee.innerComments=we)}},he.prototype.findTrailingComments=function(ee){var Se=[];if(this.trailing.length>0){for(var we=this.trailing.length-1;we>=0;--we){var se=this.trailing[we];se.start>=ee.end.offset&&Se.unshift(se.comment)}return this.trailing.length=0,Se}var K=this.stack[this.stack.length-1];if(K&&K.node.trailingComments){var re=K.node.trailingComments[0];re&&re.range[0]>=ee.end.offset&&(Se=K.node.trailingComments,delete K.node.trailingComments)}return Se},he.prototype.findLeadingComments=function(ee){for(var we,Se=[];this.stack.length>0&&(se=this.stack[this.stack.length-1])&&se.start>=ee.start.offset;)we=se.node,this.stack.pop();if(we){for(var re=(we.leadingComments?we.leadingComments.length:0)-1;re>=0;--re){var ie=we.leadingComments[re];ie.range[1]<=ee.start.offset&&(Se.unshift(ie),we.leadingComments.splice(re,1))}return we.leadingComments&&0===we.leadingComments.length&&delete we.leadingComments,Se}for(re=this.leading.length-1;re>=0;--re){var se;(se=this.leading[re]).start<=ee.start.offset&&(Se.unshift(se.comment),this.leading.splice(re,1))}return Se},he.prototype.visitNode=function(ee,Se){if(!(ee.type===de.Syntax.Program&&ee.body.length>0)){this.insertInnerComments(ee,Se);var we=this.findTrailingComments(Se),se=this.findLeadingComments(Se);se.length>0&&(ee.leadingComments=se),we.length>0&&(ee.trailingComments=we),this.stack.push({node:ee,start:Se.start.offset})}},he.prototype.visitComment=function(ee,Se){var we="L"===ee.type[0]?"Line":"Block",se={type:we,value:ee.value};if(ee.range&&(se.range=ee.range),ee.loc&&(se.loc=ee.loc),this.comments.push(se),this.attach){var K={comment:{type:we,value:ee.value,range:[Se.start.offset,Se.end.offset]},start:Se.start.offset};ee.loc&&(K.comment.loc=ee.loc),ee.type=we,this.leading.push(K),this.trailing.push(K)}},he.prototype.visit=function(ee,Se){"LineComment"===ee.type||"BlockComment"===ee.type?this.visitComment(ee,Se):this.attach&&this.visitNode(ee,Se)},he}();ue.CommentHandler=ye},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Xe,ue,be){"use strict";var k,de=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,I){T.__proto__=I}||function(T,I){for(var Z in I)I.hasOwnProperty(Z)&&(T[Z]=I[Z])},function(T,I){function Z(){this.constructor=T}k(T,I),T.prototype=null===I?Object.create(I):(Z.prototype=I.prototype,new Z)});Object.defineProperty(ue,"__esModule",{value:!0});var ye=be(4),he=be(5),ee=be(6),Se=be(7),we=be(8),se=be(13),K=be(14);function re(k){var T;switch(k.type){case ee.JSXSyntax.JSXIdentifier:T=k.name;break;case ee.JSXSyntax.JSXNamespacedName:var Z=k;T=re(Z.namespace)+":"+re(Z.name);break;case ee.JSXSyntax.JSXMemberExpression:var Ae=k;T=re(Ae.object)+"."+re(Ae.property)}return T}se.TokenName[100]="JSXIdentifier",se.TokenName[101]="JSXText";var ie=function(k){function T(I,Z,Ae){return k.call(this,I,Z,Ae)||this}return de(T,k),T.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():k.prototype.parsePrimaryExpression.call(this)},T.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},T.prototype.finishJSX=function(){this.nextToken()},T.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},T.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.scanXHTMLEntity=function(I){for(var Z="&",Ae=!0,Ue=!1,ut=!1,ht=!1;!this.scanner.eof()&&Ae&&!Ue;){var yt=this.scanner.source[this.scanner.index];if(yt===I)break;if(Ue=";"===yt,Z+=yt,++this.scanner.index,!Ue)switch(Z.length){case 2:ut="#"===yt;break;case 3:ut&&(Ae=(ht="x"===yt)||ye.Character.isDecimalDigit(yt.charCodeAt(0)),ut=ut&&!ht);break;default:Ae=(Ae=Ae&&!(ut&&!ye.Character.isDecimalDigit(yt.charCodeAt(0))))&&!(ht&&!ye.Character.isHexDigit(yt.charCodeAt(0)))}}if(Ae&&Ue&&Z.length>2){var Zt=Z.substr(1,Z.length-2);ut&&Zt.length>1?Z=String.fromCharCode(parseInt(Zt.substr(1),10)):ht&&Zt.length>2?Z=String.fromCharCode(parseInt("0"+Zt.substr(1),16)):!ut&&!ht&&K.XHTMLEntities[Zt]&&(Z=K.XHTMLEntities[Zt])}return Z},T.prototype.lexJSX=function(){var I=this.scanner.source.charCodeAt(this.scanner.index);if(60===I||62===I||47===I||58===I||61===I||123===I||125===I)return{type:7,value:Z=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===I||39===I){for(var Ae=this.scanner.index,Ue=this.scanner.source[this.scanner.index++],ut="";!this.scanner.eof()&&(ht=this.scanner.source[this.scanner.index++])!==Ue;)ut+="&"===ht?this.scanXHTMLEntity(Ue):ht;return{type:8,value:ut,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(46===I){var Z,yt=this.scanner.source.charCodeAt(this.scanner.index+1),Zt=this.scanner.source.charCodeAt(this.scanner.index+2);return Ae=this.scanner.index,this.scanner.index+=(Z=46===yt&&46===Zt?"...":".").length,{type:7,value:Z,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(96===I)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(ye.Character.isIdentifierStart(I)&&92!==I){for(Ae=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var ht=this.scanner.source.charCodeAt(this.scanner.index);if(ye.Character.isIdentifierPart(ht)&&92!==ht)++this.scanner.index;else{if(45!==ht)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Ae,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}return this.scanner.lex()},T.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var I=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(I)),I},T.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var I=this.scanner.index,Z="";!this.scanner.eof();){var Ae=this.scanner.source[this.scanner.index];if("{"===Ae||"<"===Ae)break;++this.scanner.index,Z+=Ae,ye.Character.isLineTerminator(Ae.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Ae&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Ue={type:101,value:Z,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:I,end:this.scanner.index};return Z.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Ue)),Ue},T.prototype.peekJSXToken=function(){var I=this.scanner.saveState();this.scanner.scanComments();var Z=this.lexJSX();return this.scanner.restoreState(I),Z},T.prototype.expectJSX=function(I){var Z=this.nextJSXToken();(7!==Z.type||Z.value!==I)&&this.throwUnexpectedToken(Z)},T.prototype.matchJSX=function(I){var Z=this.peekJSXToken();return 7===Z.type&&Z.value===I},T.prototype.parseJSXIdentifier=function(){var I=this.createJSXNode(),Z=this.nextJSXToken();return 100!==Z.type&&this.throwUnexpectedToken(Z),this.finalize(I,new he.JSXIdentifier(Z.value))},T.prototype.parseJSXElementName=function(){var I=this.createJSXNode(),Z=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ae=Z;this.expectJSX(":");var Ue=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXNamespacedName(Ae,Ue))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var ut=Z;this.expectJSX(".");var ht=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXMemberExpression(ut,ht))}return Z},T.prototype.parseJSXAttributeName=function(){var Z,I=this.createJSXNode(),Ae=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ue=Ae;this.expectJSX(":");var ut=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXNamespacedName(Ue,ut))}else Z=Ae;return Z},T.prototype.parseJSXStringLiteralAttribute=function(){var I=this.createJSXNode(),Z=this.nextJSXToken();8!==Z.type&&this.throwUnexpectedToken(Z);var Ae=this.getTokenRaw(Z);return this.finalize(I,new Se.Literal(Z.value,Ae))},T.prototype.parseJSXExpressionAttribute=function(){var I=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var Z=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(I,new he.JSXExpressionContainer(Z))},T.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},T.prototype.parseJSXNameValueAttribute=function(){var I=this.createJSXNode(),Z=this.parseJSXAttributeName(),Ae=null;return this.matchJSX("=")&&(this.expectJSX("="),Ae=this.parseJSXAttributeValue()),this.finalize(I,new he.JSXAttribute(Z,Ae))},T.prototype.parseJSXSpreadAttribute=function(){var I=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var Z=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(I,new he.JSXSpreadAttribute(Z))},T.prototype.parseJSXAttributes=function(){for(var I=[];!this.matchJSX("/")&&!this.matchJSX(">");){var Z=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();I.push(Z)}return I},T.prototype.parseJSXOpeningElement=function(){var I=this.createJSXNode();this.expectJSX("<");var Z=this.parseJSXElementName(),Ae=this.parseJSXAttributes(),Ue=this.matchJSX("/");return Ue&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(I,new he.JSXOpeningElement(Z,Ue,Ae))},T.prototype.parseJSXBoundaryElement=function(){var I=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var Z=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(I,new he.JSXClosingElement(Z))}var Ae=this.parseJSXElementName(),Ue=this.parseJSXAttributes(),ut=this.matchJSX("/");return ut&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(I,new he.JSXOpeningElement(Ae,ut,Ue))},T.prototype.parseJSXEmptyExpression=function(){var I=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(I,new he.JSXEmptyExpression)},T.prototype.parseJSXExpressionContainer=function(){var Z,I=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(Z=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),Z=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(I,new he.JSXExpressionContainer(Z))},T.prototype.parseJSXChildren=function(){for(var I=[];!this.scanner.eof();){var Z=this.createJSXChildNode(),Ae=this.nextJSXText();if(Ae.start0))break;ht=this.finalize(I.node,new he.JSXElement(I.opening,I.children,I.closing)),(I=Z[Z.length-1]).children.push(ht),Z.pop()}}return I},T.prototype.parseJSXElement=function(){var I=this.createJSXNode(),Z=this.parseJSXOpeningElement(),Ae=[],Ue=null;if(!Z.selfClosing){var ut=this.parseComplexJSXElement({node:I,opening:Z,closing:Ue,children:Ae});Ae=ut.children,Ue=ut.closing}return this.finalize(I,new he.JSXElement(Z,Ae,Ue))},T.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var I=this.parseJSXElement();return this.finishJSX(),I},T.prototype.isStartOfExpression=function(){return k.prototype.isStartOfExpression.call(this)||this.match("<")},T}(we.Parser);ue.JSXParser=ie},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var be={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};ue.Character={fromCodePoint:function(de){return de<65536?String.fromCharCode(de):String.fromCharCode(55296+(de-65536>>10))+String.fromCharCode(56320+(de-65536&1023))},isWhiteSpace:function(de){return 32===de||9===de||11===de||12===de||160===de||de>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(de)>=0},isLineTerminator:function(de){return 10===de||13===de||8232===de||8233===de},isIdentifierStart:function(de){return 36===de||95===de||de>=65&&de<=90||de>=97&&de<=122||92===de||de>=128&&be.NonAsciiIdentifierStart.test(ue.Character.fromCodePoint(de))},isIdentifierPart:function(de){return 36===de||95===de||de>=65&&de<=90||de>=97&&de<=122||de>=48&&de<=57||92===de||de>=128&&be.NonAsciiIdentifierPart.test(ue.Character.fromCodePoint(de))},isDecimalDigit:function(de){return de>=48&&de<=57},isHexDigit:function(de){return de>=48&&de<=57||de>=65&&de<=70||de>=97&&de<=102},isOctalDigit:function(de){return de>=48&&de<=55}}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(6);ue.JSXClosingElement=function I(Z){this.type=de.JSXSyntax.JSXClosingElement,this.name=Z},ue.JSXElement=function I(Z,Ae,Ue){this.type=de.JSXSyntax.JSXElement,this.openingElement=Z,this.children=Ae,this.closingElement=Ue},ue.JSXEmptyExpression=function I(){this.type=de.JSXSyntax.JSXEmptyExpression},ue.JSXExpressionContainer=function I(Z){this.type=de.JSXSyntax.JSXExpressionContainer,this.expression=Z},ue.JSXIdentifier=function I(Z){this.type=de.JSXSyntax.JSXIdentifier,this.name=Z},ue.JSXMemberExpression=function I(Z,Ae){this.type=de.JSXSyntax.JSXMemberExpression,this.object=Z,this.property=Ae},ue.JSXAttribute=function I(Z,Ae){this.type=de.JSXSyntax.JSXAttribute,this.name=Z,this.value=Ae},ue.JSXNamespacedName=function I(Z,Ae){this.type=de.JSXSyntax.JSXNamespacedName,this.namespace=Z,this.name=Ae},ue.JSXOpeningElement=function I(Z,Ae,Ue){this.type=de.JSXSyntax.JSXOpeningElement,this.name=Z,this.selfClosing=Ae,this.attributes=Ue},ue.JSXSpreadAttribute=function I(Z){this.type=de.JSXSyntax.JSXSpreadAttribute,this.argument=Z},ue.JSXText=function I(Z,Ae){this.type=de.JSXSyntax.JSXText,this.value=Z,this.raw=Ae}},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(2);ue.ArrayExpression=function Je(Qe){this.type=de.Syntax.ArrayExpression,this.elements=Qe},ue.ArrayPattern=function Je(Qe){this.type=de.Syntax.ArrayPattern,this.elements=Qe},ue.ArrowFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.ArrowFunctionExpression,this.id=null,this.params=Qe,this.body=St,this.generator=!1,this.expression=kn,this.async=!1},ue.AssignmentExpression=function Je(Qe,St,kn){this.type=de.Syntax.AssignmentExpression,this.operator=Qe,this.left=St,this.right=kn},ue.AssignmentPattern=function Je(Qe,St){this.type=de.Syntax.AssignmentPattern,this.left=Qe,this.right=St},ue.AsyncArrowFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.ArrowFunctionExpression,this.id=null,this.params=Qe,this.body=St,this.generator=!1,this.expression=kn,this.async=!0},ue.AsyncFunctionDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.FunctionDeclaration,this.id=Qe,this.params=St,this.body=kn,this.generator=!1,this.expression=!1,this.async=!0},ue.AsyncFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.FunctionExpression,this.id=Qe,this.params=St,this.body=kn,this.generator=!1,this.expression=!1,this.async=!0},ue.AwaitExpression=function Je(Qe){this.type=de.Syntax.AwaitExpression,this.argument=Qe},ue.BinaryExpression=function Je(Qe,St,kn){this.type="||"===Qe||"&&"===Qe?de.Syntax.LogicalExpression:de.Syntax.BinaryExpression,this.operator=Qe,this.left=St,this.right=kn},ue.BlockStatement=function Je(Qe){this.type=de.Syntax.BlockStatement,this.body=Qe},ue.BreakStatement=function Je(Qe){this.type=de.Syntax.BreakStatement,this.label=Qe},ue.CallExpression=function Je(Qe,St){this.type=de.Syntax.CallExpression,this.callee=Qe,this.arguments=St},ue.CatchClause=function Je(Qe,St){this.type=de.Syntax.CatchClause,this.param=Qe,this.body=St},ue.ClassBody=function Je(Qe){this.type=de.Syntax.ClassBody,this.body=Qe},ue.ClassDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.ClassDeclaration,this.id=Qe,this.superClass=St,this.body=kn},ue.ClassExpression=function Je(Qe,St,kn){this.type=de.Syntax.ClassExpression,this.id=Qe,this.superClass=St,this.body=kn},ue.ComputedMemberExpression=function Je(Qe,St){this.type=de.Syntax.MemberExpression,this.computed=!0,this.object=Qe,this.property=St},ue.ConditionalExpression=function Je(Qe,St,kn){this.type=de.Syntax.ConditionalExpression,this.test=Qe,this.consequent=St,this.alternate=kn},ue.ContinueStatement=function Je(Qe){this.type=de.Syntax.ContinueStatement,this.label=Qe},ue.DebuggerStatement=function Je(){this.type=de.Syntax.DebuggerStatement},ue.Directive=function Je(Qe,St){this.type=de.Syntax.ExpressionStatement,this.expression=Qe,this.directive=St},ue.DoWhileStatement=function Je(Qe,St){this.type=de.Syntax.DoWhileStatement,this.body=Qe,this.test=St},ue.EmptyStatement=function Je(){this.type=de.Syntax.EmptyStatement},ue.ExportAllDeclaration=function Je(Qe){this.type=de.Syntax.ExportAllDeclaration,this.source=Qe},ue.ExportDefaultDeclaration=function Je(Qe){this.type=de.Syntax.ExportDefaultDeclaration,this.declaration=Qe},ue.ExportNamedDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.ExportNamedDeclaration,this.declaration=Qe,this.specifiers=St,this.source=kn},ue.ExportSpecifier=function Je(Qe,St){this.type=de.Syntax.ExportSpecifier,this.exported=St,this.local=Qe},ue.ExpressionStatement=function Je(Qe){this.type=de.Syntax.ExpressionStatement,this.expression=Qe},ue.ForInStatement=function Je(Qe,St,kn){this.type=de.Syntax.ForInStatement,this.left=Qe,this.right=St,this.body=kn,this.each=!1},ue.ForOfStatement=function Je(Qe,St,kn){this.type=de.Syntax.ForOfStatement,this.left=Qe,this.right=St,this.body=kn},ue.ForStatement=function Je(Qe,St,kn,Br){this.type=de.Syntax.ForStatement,this.init=Qe,this.test=St,this.update=kn,this.body=Br},ue.FunctionDeclaration=function Je(Qe,St,kn,Br){this.type=de.Syntax.FunctionDeclaration,this.id=Qe,this.params=St,this.body=kn,this.generator=Br,this.expression=!1,this.async=!1},ue.FunctionExpression=function Je(Qe,St,kn,Br){this.type=de.Syntax.FunctionExpression,this.id=Qe,this.params=St,this.body=kn,this.generator=Br,this.expression=!1,this.async=!1},ue.Identifier=function Je(Qe){this.type=de.Syntax.Identifier,this.name=Qe},ue.IfStatement=function Je(Qe,St,kn){this.type=de.Syntax.IfStatement,this.test=Qe,this.consequent=St,this.alternate=kn},ue.ImportDeclaration=function Je(Qe,St){this.type=de.Syntax.ImportDeclaration,this.specifiers=Qe,this.source=St},ue.ImportDefaultSpecifier=function Je(Qe){this.type=de.Syntax.ImportDefaultSpecifier,this.local=Qe},ue.ImportNamespaceSpecifier=function Je(Qe){this.type=de.Syntax.ImportNamespaceSpecifier,this.local=Qe},ue.ImportSpecifier=function Je(Qe,St){this.type=de.Syntax.ImportSpecifier,this.local=Qe,this.imported=St},ue.LabeledStatement=function Je(Qe,St){this.type=de.Syntax.LabeledStatement,this.label=Qe,this.body=St},ue.Literal=function Je(Qe,St){this.type=de.Syntax.Literal,this.value=Qe,this.raw=St},ue.MetaProperty=function Je(Qe,St){this.type=de.Syntax.MetaProperty,this.meta=Qe,this.property=St},ue.MethodDefinition=function Je(Qe,St,kn,Br,g1){this.type=de.Syntax.MethodDefinition,this.key=Qe,this.computed=St,this.value=kn,this.kind=Br,this.static=g1},ue.Module=function Je(Qe){this.type=de.Syntax.Program,this.body=Qe,this.sourceType="module"},ue.NewExpression=function Je(Qe,St){this.type=de.Syntax.NewExpression,this.callee=Qe,this.arguments=St},ue.ObjectExpression=function Je(Qe){this.type=de.Syntax.ObjectExpression,this.properties=Qe},ue.ObjectPattern=function Je(Qe){this.type=de.Syntax.ObjectPattern,this.properties=Qe},ue.Property=function Je(Qe,St,kn,Br,g1,ji){this.type=de.Syntax.Property,this.key=St,this.computed=kn,this.value=Br,this.kind=Qe,this.method=g1,this.shorthand=ji},ue.RegexLiteral=function Je(Qe,St,kn,Br){this.type=de.Syntax.Literal,this.value=Qe,this.raw=St,this.regex={pattern:kn,flags:Br}},ue.RestElement=function Je(Qe){this.type=de.Syntax.RestElement,this.argument=Qe},ue.ReturnStatement=function Je(Qe){this.type=de.Syntax.ReturnStatement,this.argument=Qe},ue.Script=function Je(Qe){this.type=de.Syntax.Program,this.body=Qe,this.sourceType="script"},ue.SequenceExpression=function Je(Qe){this.type=de.Syntax.SequenceExpression,this.expressions=Qe},ue.SpreadElement=function Je(Qe){this.type=de.Syntax.SpreadElement,this.argument=Qe},ue.StaticMemberExpression=function Je(Qe,St){this.type=de.Syntax.MemberExpression,this.computed=!1,this.object=Qe,this.property=St},ue.Super=function Je(){this.type=de.Syntax.Super},ue.SwitchCase=function Je(Qe,St){this.type=de.Syntax.SwitchCase,this.test=Qe,this.consequent=St},ue.SwitchStatement=function Je(Qe,St){this.type=de.Syntax.SwitchStatement,this.discriminant=Qe,this.cases=St},ue.TaggedTemplateExpression=function Je(Qe,St){this.type=de.Syntax.TaggedTemplateExpression,this.tag=Qe,this.quasi=St},ue.TemplateElement=function Je(Qe,St){this.type=de.Syntax.TemplateElement,this.value=Qe,this.tail=St},ue.TemplateLiteral=function Je(Qe,St){this.type=de.Syntax.TemplateLiteral,this.quasis=Qe,this.expressions=St},ue.ThisExpression=function Je(){this.type=de.Syntax.ThisExpression},ue.ThrowStatement=function Je(Qe){this.type=de.Syntax.ThrowStatement,this.argument=Qe},ue.TryStatement=function Je(Qe,St,kn){this.type=de.Syntax.TryStatement,this.block=Qe,this.handler=St,this.finalizer=kn},ue.UnaryExpression=function Je(Qe,St){this.type=de.Syntax.UnaryExpression,this.operator=Qe,this.argument=St,this.prefix=!0},ue.UpdateExpression=function Je(Qe,St,kn){this.type=de.Syntax.UpdateExpression,this.operator=Qe,this.argument=St,this.prefix=kn},ue.VariableDeclaration=function Je(Qe,St){this.type=de.Syntax.VariableDeclaration,this.declarations=Qe,this.kind=St},ue.VariableDeclarator=function Je(Qe,St){this.type=de.Syntax.VariableDeclarator,this.id=Qe,this.init=St},ue.WhileStatement=function Je(Qe,St){this.type=de.Syntax.WhileStatement,this.test=Qe,this.body=St},ue.WithStatement=function Je(Qe,St){this.type=de.Syntax.WithStatement,this.object=Qe,this.body=St},ue.YieldExpression=function Je(Qe,St){this.type=de.Syntax.YieldExpression,this.argument=Qe,this.delegate=St}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(9),ye=be(10),he=be(11),ee=be(7),Se=be(12),we=be(2),se=be(13),K="ArrowParameterPlaceHolder",re=function(){function ie(k,T,I){void 0===T&&(T={}),this.config={range:"boolean"==typeof T.range&&T.range,loc:"boolean"==typeof T.loc&&T.loc,source:null,tokens:"boolean"==typeof T.tokens&&T.tokens,comment:"boolean"==typeof T.comment&&T.comment,tolerant:"boolean"==typeof T.tolerant&&T.tolerant},this.config.loc&&T.source&&null!==T.source&&(this.config.source=String(T.source)),this.delegate=I,this.errorHandler=new ye.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new Se.Scanner(k,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return ie.prototype.throwError=function(k){for(var T=[],I=1;I0&&this.delegate)for(var T=0;T>="===k||">>>="===k||"&="===k||"^="===k||"|="===k},ie.prototype.isolateCoverGrammar=function(k){var T=this.context.isBindingElement,I=this.context.isAssignmentTarget,Z=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=k.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=T,this.context.isAssignmentTarget=I,this.context.firstCoverInitializedNameError=Z,Ae},ie.prototype.inheritCoverGrammar=function(k){var T=this.context.isBindingElement,I=this.context.isAssignmentTarget,Z=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=k.call(this);return this.context.isBindingElement=this.context.isBindingElement&&T,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&I,this.context.firstCoverInitializedNameError=Z||this.context.firstCoverInitializedNameError,Ae},ie.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},ie.prototype.parsePrimaryExpression=function(){var T,I,Z,k=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),T=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(k,new ee.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal(I.value,Z));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal("true"===I.value,Z));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal(null,Z));break;case 10:T=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,T=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":T=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":T=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,I=this.nextRegexToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.RegexLiteral(I.regex,Z,I.pattern,I.flags));break;default:T=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?T=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?T=this.finalize(k,new ee.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?T=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),T=this.finalize(k,new ee.ThisExpression)):T=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:T=this.throwUnexpectedToken(this.nextToken())}return T},ie.prototype.parseSpreadElement=function(){var k=this.createNode();this.expect("...");var T=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(k,new ee.SpreadElement(T))},ie.prototype.parseArrayInitializer=function(){var k=this.createNode(),T=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else if(this.match("...")){var I=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),T.push(I)}else T.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(k,new ee.ArrayExpression(T))},ie.prototype.parsePropertyMethod=function(k){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var T=this.context.strict,I=this.context.allowStrictDirective;this.context.allowStrictDirective=k.simple;var Z=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&k.firstRestricted&&this.tolerateUnexpectedToken(k.firstRestricted,k.message),this.context.strict&&k.stricted&&this.tolerateUnexpectedToken(k.stricted,k.message),this.context.strict=T,this.context.allowStrictDirective=I,Z},ie.prototype.parsePropertyMethodFunction=function(){var T=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters(),Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(T,new ee.FunctionExpression(null,Z.params,Ae,!1))},ie.prototype.parsePropertyMethodAsyncFunction=function(){var k=this.createNode(),T=this.context.allowYield,I=this.context.await;this.context.allowYield=!1,this.context.await=!0;var Z=this.parseFormalParameters(),Ae=this.parsePropertyMethod(Z);return this.context.allowYield=T,this.context.await=I,this.finalize(k,new ee.AsyncFunctionExpression(null,Z.params,Ae))},ie.prototype.parseObjectPropertyKey=function(){var I,k=this.createNode(),T=this.nextToken();switch(T.type){case 8:case 6:this.context.strict&&T.octal&&this.tolerateUnexpectedToken(T,he.Messages.StrictOctalLiteral);var Z=this.getTokenRaw(T);I=this.finalize(k,new ee.Literal(T.value,Z));break;case 3:case 1:case 5:case 4:I=this.finalize(k,new ee.Identifier(T.value));break;case 7:"["===T.value?(I=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):I=this.throwUnexpectedToken(T);break;default:I=this.throwUnexpectedToken(T)}return I},ie.prototype.isPropertyKey=function(k,T){return k.type===we.Syntax.Identifier&&k.name===T||k.type===we.Syntax.Literal&&k.value===T},ie.prototype.parseObjectProperty=function(k){var Z,T=this.createNode(),I=this.lookahead,Ae=null,Ue=null,ut=!1,ht=!1,yt=!1,Zt=!1;if(3===I.type){var Wt=I.value;this.nextToken(),ut=this.match("["),Ae=(Zt=!(this.hasLineTerminator||"async"!==Wt||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(T,new ee.Identifier(Wt))}else this.match("*")?this.nextToken():(ut=this.match("["),Ae=this.parseObjectPropertyKey());var Qt=this.qualifiedPropertyName(this.lookahead);if(3===I.type&&!Zt&&"get"===I.value&&Qt)Z="get",ut=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Ue=this.parseGetterMethod();else if(3===I.type&&!Zt&&"set"===I.value&&Qt)Z="set",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseSetterMethod();else if(7===I.type&&"*"===I.value&&Qt)Z="init",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseGeneratorMethod(),ht=!0;else if(Ae||this.throwUnexpectedToken(this.lookahead),Z="init",this.match(":")&&!Zt)!ut&&this.isPropertyKey(Ae,"__proto__")&&(k.value&&this.tolerateError(he.Messages.DuplicateProtoProperty),k.value=!0),this.nextToken(),Ue=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Ue=Zt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),ht=!0;else if(3===I.type)if(Wt=this.finalize(T,new ee.Identifier(I.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),yt=!0;var An=this.isolateCoverGrammar(this.parseAssignmentExpression);Ue=this.finalize(T,new ee.AssignmentPattern(Wt,An))}else yt=!0,Ue=Wt;else this.throwUnexpectedToken(this.nextToken());return this.finalize(T,new ee.Property(Z,Ae,ut,Ue,ht,yt))},ie.prototype.parseObjectInitializer=function(){var k=this.createNode();this.expect("{");for(var T=[],I={value:!1};!this.match("}");)T.push(this.parseObjectProperty(I)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(k,new ee.ObjectExpression(T))},ie.prototype.parseTemplateHead=function(){de.assert(this.lookahead.head,"Template literal must start with a template head");var k=this.createNode(),T=this.nextToken();return this.finalize(k,new ee.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ie.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var k=this.createNode(),T=this.nextToken();return this.finalize(k,new ee.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ie.prototype.parseTemplateLiteral=function(){var k=this.createNode(),T=[],I=[],Z=this.parseTemplateHead();for(I.push(Z);!Z.tail;)T.push(this.parseExpression()),Z=this.parseTemplateElement(),I.push(Z);return this.finalize(k,new ee.TemplateLiteral(I,T))},ie.prototype.reinterpretExpressionAsPattern=function(k){switch(k.type){case we.Syntax.Identifier:case we.Syntax.MemberExpression:case we.Syntax.RestElement:case we.Syntax.AssignmentPattern:break;case we.Syntax.SpreadElement:k.type=we.Syntax.RestElement,this.reinterpretExpressionAsPattern(k.argument);break;case we.Syntax.ArrayExpression:k.type=we.Syntax.ArrayPattern;for(var T=0;T")||this.expect("=>"),k={type:K,params:[],async:!1};else{var T=this.lookahead,I=[];if(this.match("..."))k=this.parseRestElement(I),this.expect(")"),this.match("=>")||this.expect("=>"),k={type:K,params:[k],async:!1};else{var Z=!1;if(this.context.isBindingElement=!0,k=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Ae=[];for(this.context.isAssignmentTarget=!1,Ae.push(k);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Ue=0;Ue")||this.expect("=>"),this.context.isBindingElement=!1,Ue=0;Ue")&&(k.type===we.Syntax.Identifier&&"yield"===k.name&&(Z=!0,k={type:K,params:[k],async:!1}),!Z)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),k.type===we.Syntax.SequenceExpression)for(Ue=0;Ue")){for(var ht=0;ht0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Ae=[k,this.lookahead],Ue=T,ut=this.isolateCoverGrammar(this.parseExponentiationExpression),ht=[Ue,I.value,ut],yt=[Z];!((Z=this.binaryPrecedence(this.lookahead))<=0);){for(;ht.length>2&&Z<=yt[yt.length-1];){ut=ht.pop();var Zt=ht.pop();yt.pop(),Ue=ht.pop(),Ae.pop();var Wt=this.startNode(Ae[Ae.length-1]);ht.push(this.finalize(Wt,new ee.BinaryExpression(Zt,Ue,ut)))}ht.push(this.nextToken().value),yt.push(Z),Ae.push(this.lookahead),ht.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Qt=ht.length-1;T=ht[Qt];for(var An=Ae.pop();Qt>1;){var Cn=Ae.pop();Wt=this.startNode(Cn,An&&An.lineStart),T=this.finalize(Wt,new ee.BinaryExpression(Zt=ht[Qt-1],ht[Qt-2],T)),Qt-=2,An=Cn}}return T},ie.prototype.parseConditionalExpression=function(){var k=this.lookahead,T=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var I=this.context.allowIn;this.context.allowIn=!0;var Z=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=I,this.expect(":");var Ae=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(k),new ee.ConditionalExpression(T,Z,Ae)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return T},ie.prototype.checkPatternParam=function(k,T){switch(T.type){case we.Syntax.Identifier:this.validateParam(k,T,T.name);break;case we.Syntax.RestElement:this.checkPatternParam(k,T.argument);break;case we.Syntax.AssignmentPattern:this.checkPatternParam(k,T.left);break;case we.Syntax.ArrayPattern:for(var I=0;I")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Ae=k.async,Ue=this.reinterpretAsCoverFormalsList(k);if(Ue){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var ut=this.context.strict,ht=this.context.allowStrictDirective;this.context.allowStrictDirective=Ue.simple;var yt=this.context.allowYield,Zt=this.context.await;this.context.allowYield=!0,this.context.await=Ae;var Wt=this.startNode(T);this.expect("=>");var Qt=void 0;if(this.match("{")){var An=this.context.allowIn;this.context.allowIn=!0,Qt=this.parseFunctionSourceElements(),this.context.allowIn=An}else Qt=this.isolateCoverGrammar(this.parseAssignmentExpression);var Cn=Qt.type!==we.Syntax.BlockStatement;this.context.strict&&Ue.firstRestricted&&this.throwUnexpectedToken(Ue.firstRestricted,Ue.message),this.context.strict&&Ue.stricted&&this.tolerateUnexpectedToken(Ue.stricted,Ue.message),k=this.finalize(Wt,Ae?new ee.AsyncArrowFunctionExpression(Ue.params,Qt,Cn):new ee.ArrowFunctionExpression(Ue.params,Qt,Cn)),this.context.strict=ut,this.context.allowStrictDirective=ht,this.context.allowYield=yt,this.context.await=Zt}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(he.Messages.InvalidLHSInAssignment),this.context.strict&&k.type===we.Syntax.Identifier){var Sn=k;this.scanner.isRestrictedWord(Sn.name)&&this.tolerateUnexpectedToken(I,he.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(Sn.name)&&this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(k):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var mi=(I=this.nextToken()).value,fn=this.isolateCoverGrammar(this.parseAssignmentExpression);k=this.finalize(this.startNode(T),new ee.AssignmentExpression(mi,k,fn)),this.context.firstCoverInitializedNameError=null}}return k},ie.prototype.parseExpression=function(){var k=this.lookahead,T=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var I=[];for(I.push(T);2!==this.lookahead.type&&this.match(",");)this.nextToken(),I.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(k),new ee.SequenceExpression(I))}return T},ie.prototype.parseStatementListItem=function(){var k;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalExportDeclaration),k=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalImportDeclaration),k=this.parseImportDeclaration();break;case"const":k=this.parseLexicalDeclaration({inFor:!1});break;case"function":k=this.parseFunctionDeclaration();break;case"class":k=this.parseClassDeclaration();break;case"let":k=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:k=this.parseStatement()}else k=this.parseStatement();return k},ie.prototype.parseBlock=function(){var k=this.createNode();this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseStatementListItem());return this.expect("}"),this.finalize(k,new ee.BlockStatement(T))},ie.prototype.parseLexicalBinding=function(k,T){var I=this.createNode(),Ae=this.parsePattern([],k);this.context.strict&&Ae.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(Ae.name)&&this.tolerateError(he.Messages.StrictVarName);var Ue=null;return"const"===k?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Ue=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(he.Messages.DeclarationMissingInitializer,"const")):(!T.inFor&&Ae.type!==we.Syntax.Identifier||this.match("="))&&(this.expect("="),Ue=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(I,new ee.VariableDeclarator(Ae,Ue))},ie.prototype.parseBindingList=function(k,T){for(var I=[this.parseLexicalBinding(k,T)];this.match(",");)this.nextToken(),I.push(this.parseLexicalBinding(k,T));return I},ie.prototype.isLexicalDeclaration=function(){var k=this.scanner.saveState();this.scanner.scanComments();var T=this.scanner.lex();return this.scanner.restoreState(k),3===T.type||7===T.type&&"["===T.value||7===T.type&&"{"===T.value||4===T.type&&"let"===T.value||4===T.type&&"yield"===T.value},ie.prototype.parseLexicalDeclaration=function(k){var T=this.createNode(),I=this.nextToken().value;de.assert("let"===I||"const"===I,"Lexical declaration must be either let or const");var Z=this.parseBindingList(I,k);return this.consumeSemicolon(),this.finalize(T,new ee.VariableDeclaration(Z,I))},ie.prototype.parseBindingRestElement=function(k,T){var I=this.createNode();this.expect("...");var Z=this.parsePattern(k,T);return this.finalize(I,new ee.RestElement(Z))},ie.prototype.parseArrayPattern=function(k,T){var I=this.createNode();this.expect("[");for(var Z=[];!this.match("]");)if(this.match(","))this.nextToken(),Z.push(null);else{if(this.match("...")){Z.push(this.parseBindingRestElement(k,T));break}Z.push(this.parsePatternWithDefault(k,T)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(I,new ee.ArrayPattern(Z))},ie.prototype.parsePropertyPattern=function(k,T){var ut,ht,I=this.createNode(),Z=!1,Ae=!1;if(3===this.lookahead.type){var yt=this.lookahead;ut=this.parseVariableIdentifier();var Zt=this.finalize(I,new ee.Identifier(yt.value));if(this.match("=")){k.push(yt),Ae=!0,this.nextToken();var Wt=this.parseAssignmentExpression();ht=this.finalize(this.startNode(yt),new ee.AssignmentPattern(Zt,Wt))}else this.match(":")?(this.expect(":"),ht=this.parsePatternWithDefault(k,T)):(k.push(yt),Ae=!0,ht=Zt)}else Z=this.match("["),ut=this.parseObjectPropertyKey(),this.expect(":"),ht=this.parsePatternWithDefault(k,T);return this.finalize(I,new ee.Property("init",ut,Z,ht,!1,Ae))},ie.prototype.parseObjectPattern=function(k,T){var I=this.createNode(),Z=[];for(this.expect("{");!this.match("}");)Z.push(this.parsePropertyPattern(k,T)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(I,new ee.ObjectPattern(Z))},ie.prototype.parsePattern=function(k,T){var I;return this.match("[")?I=this.parseArrayPattern(k,T):this.match("{")?I=this.parseObjectPattern(k,T):(this.matchKeyword("let")&&("const"===T||"let"===T)&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.LetInLexicalBinding),k.push(this.lookahead),I=this.parseVariableIdentifier(T)),I},ie.prototype.parsePatternWithDefault=function(k,T){var I=this.lookahead,Z=this.parsePattern(k,T);if(this.match("=")){this.nextToken();var Ae=this.context.allowYield;this.context.allowYield=!0;var Ue=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Ae,Z=this.finalize(this.startNode(I),new ee.AssignmentPattern(Z,Ue))}return Z},ie.prototype.parseVariableIdentifier=function(k){var T=this.createNode(),I=this.nextToken();return 4===I.type&&"yield"===I.value?this.context.strict?this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(I):3!==I.type?this.context.strict&&4===I.type&&this.scanner.isStrictModeReservedWord(I.value)?this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord):(this.context.strict||"let"!==I.value||"var"!==k)&&this.throwUnexpectedToken(I):(this.context.isModule||this.context.await)&&3===I.type&&"await"===I.value&&this.tolerateUnexpectedToken(I),this.finalize(T,new ee.Identifier(I.value))},ie.prototype.parseVariableDeclaration=function(k){var T=this.createNode(),Z=this.parsePattern([],"var");this.context.strict&&Z.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(Z.name)&&this.tolerateError(he.Messages.StrictVarName);var Ae=null;return this.match("=")?(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseAssignmentExpression)):Z.type!==we.Syntax.Identifier&&!k.inFor&&this.expect("="),this.finalize(T,new ee.VariableDeclarator(Z,Ae))},ie.prototype.parseVariableDeclarationList=function(k){var T={inFor:k.inFor},I=[];for(I.push(this.parseVariableDeclaration(T));this.match(",");)this.nextToken(),I.push(this.parseVariableDeclaration(T));return I},ie.prototype.parseVariableStatement=function(){var k=this.createNode();this.expectKeyword("var");var T=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(k,new ee.VariableDeclaration(T,"var"))},ie.prototype.parseEmptyStatement=function(){var k=this.createNode();return this.expect(";"),this.finalize(k,new ee.EmptyStatement)},ie.prototype.parseExpressionStatement=function(){var k=this.createNode(),T=this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ExpressionStatement(T))},ie.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(he.Messages.StrictFunction),this.parseStatement()},ie.prototype.parseIfStatement=function(){var T,k=this.createNode(),I=null;this.expectKeyword("if"),this.expect("(");var Z=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement)):(this.expect(")"),T=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),I=this.parseIfClause())),this.finalize(k,new ee.IfStatement(Z,T,I))},ie.prototype.parseDoWhileStatement=function(){var k=this.createNode();this.expectKeyword("do");var T=this.context.inIteration;this.context.inIteration=!0;var I=this.parseStatement();this.context.inIteration=T,this.expectKeyword("while"),this.expect("(");var Z=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(k,new ee.DoWhileStatement(I,Z))},ie.prototype.parseWhileStatement=function(){var T,k=this.createNode();this.expectKeyword("while"),this.expect("(");var I=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement);else{this.expect(")");var Z=this.context.inIteration;this.context.inIteration=!0,T=this.parseStatement(),this.context.inIteration=Z}return this.finalize(k,new ee.WhileStatement(I,T))},ie.prototype.parseForStatement=function(){var Ae,Ue,Cn,k=null,T=null,I=null,Z=!0,ut=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){k=this.createNode(),this.nextToken();var ht=this.context.allowIn;this.context.allowIn=!1;var yt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=ht,1===yt.length&&this.matchKeyword("in")){var Zt=yt[0];Zt.init&&(Zt.id.type===we.Syntax.ArrayPattern||Zt.id.type===we.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(he.Messages.ForInOfLoopInitializer,"for-in"),k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null}else 1===yt.length&&null===yt[0].init&&this.matchContextualKeyword("of")?(k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.nextToken(),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1):(k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){k=this.createNode();var Wt=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(ht=this.context.allowIn,this.context.allowIn=!1,yt=this.parseBindingList(Wt,{inFor:!0}),this.context.allowIn=ht,1===yt.length&&null===yt[0].init&&this.matchKeyword("in")?(k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null):1===yt.length&&null===yt[0].init&&this.matchContextualKeyword("of")?(k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)),this.nextToken(),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1):(this.consumeSemicolon(),k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)))):(k=this.finalize(k,new ee.Identifier(Wt)),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null)}else{var Qt=this.lookahead;if(ht=this.context.allowIn,this.context.allowIn=!1,k=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=ht,this.matchKeyword("in"))(!this.context.isAssignmentTarget||k.type===we.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(k),Ae=k,Ue=this.parseExpression(),k=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||k.type===we.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(k),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1;else{if(this.match(",")){for(var An=[k];this.match(",");)this.nextToken(),An.push(this.isolateCoverGrammar(this.parseAssignmentExpression));k=this.finalize(this.startNode(Qt),new ee.SequenceExpression(An))}this.expect(";")}}if(typeof Ae>"u"&&(this.match(";")||(T=this.parseExpression()),this.expect(";"),this.match(")")||(I=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Cn=this.finalize(this.createNode(),new ee.EmptyStatement);else{this.expect(")");var Sn=this.context.inIteration;this.context.inIteration=!0,Cn=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=Sn}return this.finalize(ut,typeof Ae>"u"?new ee.ForStatement(k,T,I,Cn):Z?new ee.ForInStatement(Ae,Ue,Cn):new ee.ForOfStatement(Ae,Ue,Cn))},ie.prototype.parseContinueStatement=function(){var k=this.createNode();this.expectKeyword("continue");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var I=this.parseVariableIdentifier();T=I,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+I.name)||this.throwError(he.Messages.UnknownLabel,I.name)}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&this.throwError(he.Messages.IllegalContinue),this.finalize(k,new ee.ContinueStatement(T))},ie.prototype.parseBreakStatement=function(){var k=this.createNode();this.expectKeyword("break");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var I=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+I.name)||this.throwError(he.Messages.UnknownLabel,I.name),T=I}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(he.Messages.IllegalBreak),this.finalize(k,new ee.BreakStatement(T))},ie.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(he.Messages.IllegalReturn);var k=this.createNode();this.expectKeyword("return");var I=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ReturnStatement(I))},ie.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(he.Messages.StrictModeWith);var T,k=this.createNode();this.expectKeyword("with"),this.expect("(");var I=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement)):(this.expect(")"),T=this.parseStatement()),this.finalize(k,new ee.WithStatement(I,T))},ie.prototype.parseSwitchCase=function(){var T,k=this.createNode();this.matchKeyword("default")?(this.nextToken(),T=null):(this.expectKeyword("case"),T=this.parseExpression()),this.expect(":");for(var I=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)I.push(this.parseStatementListItem());return this.finalize(k,new ee.SwitchCase(T,I))},ie.prototype.parseSwitchStatement=function(){var k=this.createNode();this.expectKeyword("switch"),this.expect("(");var T=this.parseExpression();this.expect(")");var I=this.context.inSwitch;this.context.inSwitch=!0;var Z=[],Ae=!1;for(this.expect("{");!this.match("}");){var Ue=this.parseSwitchCase();null===Ue.test&&(Ae&&this.throwError(he.Messages.MultipleDefaultsInSwitch),Ae=!0),Z.push(Ue)}return this.expect("}"),this.context.inSwitch=I,this.finalize(k,new ee.SwitchStatement(T,Z))},ie.prototype.parseLabelledStatement=function(){var I,k=this.createNode(),T=this.parseExpression();if(T.type===we.Syntax.Identifier&&this.match(":")){this.nextToken();var Z=T,Ae="$"+Z.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Ae)&&this.throwError(he.Messages.Redeclaration,"Label",Z.name),this.context.labelSet[Ae]=!0;var Ue=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Ue=this.parseClassDeclaration();else if(this.matchKeyword("function")){var ut=this.lookahead,ht=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(ut,he.Messages.StrictFunction):ht.generator&&this.tolerateUnexpectedToken(ut,he.Messages.GeneratorInLegacyContext),Ue=ht}else Ue=this.parseStatement();delete this.context.labelSet[Ae],I=new ee.LabeledStatement(Z,Ue)}else this.consumeSemicolon(),I=new ee.ExpressionStatement(T);return this.finalize(k,I)},ie.prototype.parseThrowStatement=function(){var k=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(he.Messages.NewlineAfterThrow);var T=this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ThrowStatement(T))},ie.prototype.parseCatchClause=function(){var k=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var T=[],I=this.parsePattern(T),Z={},Ae=0;Ae0&&this.tolerateError(he.Messages.BadGetterArity);var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,false))},ie.prototype.parseSetterMethod=function(){var k=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters();1!==Z.params.length?this.tolerateError(he.Messages.BadSetterArity):Z.params[0]instanceof ee.RestElement&&this.tolerateError(he.Messages.BadSetterRestParameter);var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,false))},ie.prototype.parseGeneratorMethod=function(){var k=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters();this.context.allowYield=!1;var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,!0))},ie.prototype.isStartOfExpression=function(){var k=!0,T=this.lookahead.value;switch(this.lookahead.type){case 7:k="["===T||"("===T||"{"===T||"+"===T||"-"===T||"!"===T||"~"===T||"++"===T||"--"===T||"/"===T||"/="===T;break;case 4:k="class"===T||"delete"===T||"function"===T||"let"===T||"new"===T||"super"===T||"this"===T||"typeof"===T||"void"===T||"yield"===T}return k},ie.prototype.parseYieldExpression=function(){var k=this.createNode();this.expectKeyword("yield");var T=null,I=!1;if(!this.hasLineTerminator){var Z=this.context.allowYield;this.context.allowYield=!1,(I=this.match("*"))?(this.nextToken(),T=this.parseAssignmentExpression()):this.isStartOfExpression()&&(T=this.parseAssignmentExpression()),this.context.allowYield=Z}return this.finalize(k,new ee.YieldExpression(T,I))},ie.prototype.parseClassElement=function(k){var T=this.lookahead,I=this.createNode(),Z="",Ae=null,Ue=null,ut=!1,ht=!1,yt=!1,Zt=!1;if(this.match("*"))this.nextToken();else if(ut=this.match("["),"static"===(Ae=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(T=this.lookahead,yt=!0,ut=this.match("["),this.match("*")?this.nextToken():Ae=this.parseObjectPropertyKey()),3===T.type&&!this.hasLineTerminator&&"async"===T.value){var Qt=this.lookahead.value;":"!==Qt&&"("!==Qt&&"*"!==Qt&&(Zt=!0,T=this.lookahead,Ae=this.parseObjectPropertyKey(),3===T.type&&"constructor"===T.value&&this.tolerateUnexpectedToken(T,he.Messages.ConstructorIsAsync))}var An=this.qualifiedPropertyName(this.lookahead);return 3===T.type?"get"===T.value&&An?(Z="get",ut=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Ue=this.parseGetterMethod()):"set"===T.value&&An&&(Z="set",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseSetterMethod()):7===T.type&&"*"===T.value&&An&&(Z="init",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseGeneratorMethod(),ht=!0),!Z&&Ae&&this.match("(")&&(Z="init",Ue=Zt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),ht=!0),Z||this.throwUnexpectedToken(this.lookahead),"init"===Z&&(Z="method"),ut||(yt&&this.isPropertyKey(Ae,"prototype")&&this.throwUnexpectedToken(T,he.Messages.StaticPrototype),!yt&&this.isPropertyKey(Ae,"constructor")&&(("method"!==Z||!ht||Ue&&Ue.generator)&&this.throwUnexpectedToken(T,he.Messages.ConstructorSpecialMethod),k.value?this.throwUnexpectedToken(T,he.Messages.DuplicateConstructor):k.value=!0,Z="constructor")),this.finalize(I,new ee.MethodDefinition(Ae,ut,Ue,Z,yt))},ie.prototype.parseClassElementList=function(){var k=[],T={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():k.push(this.parseClassElement(T));return this.expect("}"),k},ie.prototype.parseClassBody=function(){var k=this.createNode(),T=this.parseClassElementList();return this.finalize(k,new ee.ClassBody(T))},ie.prototype.parseClassDeclaration=function(k){var T=this.createNode(),I=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var Z=k&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Ae=null;this.matchKeyword("extends")&&(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ue=this.parseClassBody();return this.context.strict=I,this.finalize(T,new ee.ClassDeclaration(Z,Ae,Ue))},ie.prototype.parseClassExpression=function(){var k=this.createNode(),T=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var I=3===this.lookahead.type?this.parseVariableIdentifier():null,Z=null;this.matchKeyword("extends")&&(this.nextToken(),Z=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ae=this.parseClassBody();return this.context.strict=T,this.finalize(k,new ee.ClassExpression(I,Z,Ae))},ie.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var k=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(k,new ee.Module(T))},ie.prototype.parseScript=function(){for(var k=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(k,new ee.Script(T))},ie.prototype.parseModuleSpecifier=function(){var k=this.createNode();8!==this.lookahead.type&&this.throwError(he.Messages.InvalidModuleSpecifier);var T=this.nextToken(),I=this.getTokenRaw(T);return this.finalize(k,new ee.Literal(T.value,I))},ie.prototype.parseImportSpecifier=function(){var T,I,k=this.createNode();return 3===this.lookahead.type?(I=T=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),I=this.parseVariableIdentifier())):(I=T=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),I=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(k,new ee.ImportSpecifier(I,T))},ie.prototype.parseNamedImports=function(){this.expect("{");for(var k=[];!this.match("}");)k.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),k},ie.prototype.parseImportDefaultSpecifier=function(){var k=this.createNode(),T=this.parseIdentifierName();return this.finalize(k,new ee.ImportDefaultSpecifier(T))},ie.prototype.parseImportNamespaceSpecifier=function(){var k=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(he.Messages.NoAsAfterImportNamespace),this.nextToken();var T=this.parseIdentifierName();return this.finalize(k,new ee.ImportNamespaceSpecifier(T))},ie.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalImportDeclaration);var k=this.createNode();this.expectKeyword("import");var T,I=[];return 8===this.lookahead.type||(this.match("{")?I=I.concat(this.parseNamedImports()):this.match("*")?I.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(I.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?I.push(this.parseImportNamespaceSpecifier()):this.match("{")?I=I.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),T=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(k,new ee.ImportDeclaration(I,T))},ie.prototype.parseExportSpecifier=function(){var k=this.createNode(),T=this.parseIdentifierName(),I=T;return this.matchContextualKeyword("as")&&(this.nextToken(),I=this.parseIdentifierName()),this.finalize(k,new ee.ExportSpecifier(T,I))},ie.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalExportDeclaration);var T,k=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var I=this.parseFunctionDeclaration(!0);T=this.finalize(k,new ee.ExportDefaultDeclaration(I))}else this.matchKeyword("class")?(I=this.parseClassDeclaration(!0),T=this.finalize(k,new ee.ExportDefaultDeclaration(I))):this.matchContextualKeyword("async")?(I=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),T=this.finalize(k,new ee.ExportDefaultDeclaration(I))):(this.matchContextualKeyword("from")&&this.throwError(he.Messages.UnexpectedToken,this.lookahead.value),I=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),T=this.finalize(k,new ee.ExportDefaultDeclaration(I)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Ae=this.parseModuleSpecifier();this.consumeSemicolon(),T=this.finalize(k,new ee.ExportAllDeclaration(Ae))}else if(4===this.lookahead.type){switch(I=void 0,this.lookahead.value){case"let":case"const":I=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":I=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}T=this.finalize(k,new ee.ExportNamedDeclaration(I,[],null))}else if(this.matchAsyncFunction())I=this.parseFunctionDeclaration(),T=this.finalize(k,new ee.ExportNamedDeclaration(I,[],null));else{var Ue=[],ut=null,ht=!1;for(this.expect("{");!this.match("}");)ht=ht||this.matchKeyword("default"),Ue.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),ut=this.parseModuleSpecifier(),this.consumeSemicolon()):ht?this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),T=this.finalize(k,new ee.ExportNamedDeclaration(null,Ue,ut))}return T},ie}();ue.Parser=re},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.assert=function be(de,ye){if(!de)throw new Error("ASSERT: "+ye)}},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var be=function(){function de(){this.errors=[],this.tolerant=!1}return de.prototype.recordError=function(ye){this.errors.push(ye)},de.prototype.tolerate=function(ye){if(!this.tolerant)throw ye;this.recordError(ye)},de.prototype.constructError=function(ye,he){var ee=new Error(ye);try{throw ee}catch(Se){Object.create&&Object.defineProperty&&(ee=Object.create(Se),Object.defineProperty(ee,"column",{value:he}))}return ee},de.prototype.createError=function(ye,he,ee,Se){var se=this.constructError("Line "+he+": "+Se,ee);return se.index=ye,se.lineNumber=he,se.description=Se,se},de.prototype.throwError=function(ye,he,ee,Se){throw this.createError(ye,he,ee,Se)},de.prototype.tolerateError=function(ye,he,ee,Se){var we=this.createError(ye,he,ee,Se);if(!this.tolerant)throw we;this.recordError(we)},de}();ue.ErrorHandler=be},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(9),ye=be(4),he=be(11);function ee(se){return"0123456789abcdef".indexOf(se.toLowerCase())}function Se(se){return"01234567".indexOf(se)}var we=function(){function se(K,re){this.source=K,this.errorHandler=re,this.trackComment=!1,this.isModule=!1,this.length=K.length,this.index=0,this.lineNumber=K.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return se.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},se.prototype.restoreState=function(K){this.index=K.index,this.lineNumber=K.lineNumber,this.lineStart=K.lineStart},se.prototype.eof=function(){return this.index>=this.length},se.prototype.throwUnexpectedToken=function(K){return void 0===K&&(K=he.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,K)},se.prototype.tolerateUnexpectedToken=function(K){void 0===K&&(K=he.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,K)},se.prototype.skipSingleLineComment=function(K){var ie,k,re=[];for(this.trackComment&&(re=[],ie=this.index-K,k={start:{line:this.lineNumber,column:this.index-this.lineStart-K},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(++this.index,ye.Character.isLineTerminator(T))return this.trackComment&&(k.end={line:this.lineNumber,column:this.index-this.lineStart-1},re.push({multiLine:!1,slice:[ie+K,this.index-1],range:[ie,this.index-1],loc:k})),13===T&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,re}return this.trackComment&&(k.end={line:this.lineNumber,column:this.index-this.lineStart},re.push({multiLine:!1,slice:[ie+K,this.index],range:[ie,this.index],loc:k})),re},se.prototype.skipMultiLineComment=function(){var re,ie,K=[];for(this.trackComment&&(K=[],re=this.index-2,ie={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var k=this.source.charCodeAt(this.index);if(ye.Character.isLineTerminator(k))13===k&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===k){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(ie.end={line:this.lineNumber,column:this.index-this.lineStart},K.push({multiLine:!0,slice:[re+2,this.index-2],range:[re,this.index],loc:ie})),K;++this.index}else++this.index}return this.trackComment&&(ie.end={line:this.lineNumber,column:this.index-this.lineStart},K.push({multiLine:!0,slice:[re+2,this.index],range:[re,this.index],loc:ie})),this.tolerateUnexpectedToken(),K},se.prototype.scanComments=function(){var K;this.trackComment&&(K=[]);for(var re=0===this.index;!this.eof();){var ie=this.source.charCodeAt(this.index);if(ye.Character.isWhiteSpace(ie))++this.index;else if(ye.Character.isLineTerminator(ie))++this.index,13===ie&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,re=!0;else if(47===ie)if(47===(ie=this.source.charCodeAt(this.index+1))){this.index+=2;var k=this.skipSingleLineComment(2);this.trackComment&&(K=K.concat(k)),re=!0}else{if(42!==ie)break;this.index+=2,k=this.skipMultiLineComment(),this.trackComment&&(K=K.concat(k))}else if(re&&45===ie){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,k=this.skipSingleLineComment(3),this.trackComment&&(K=K.concat(k))}else{if(60!==ie||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,k=this.skipSingleLineComment(4),this.trackComment&&(K=K.concat(k))}}return K},se.prototype.isFutureReservedWord=function(K){switch(K){case"enum":case"export":case"import":case"super":return!0;default:return!1}},se.prototype.isStrictModeReservedWord=function(K){switch(K){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},se.prototype.isRestrictedWord=function(K){return"eval"===K||"arguments"===K},se.prototype.isKeyword=function(K){switch(K.length){case 2:return"if"===K||"in"===K||"do"===K;case 3:return"var"===K||"for"===K||"new"===K||"try"===K||"let"===K;case 4:return"this"===K||"else"===K||"case"===K||"void"===K||"with"===K||"enum"===K;case 5:return"while"===K||"break"===K||"catch"===K||"throw"===K||"const"===K||"yield"===K||"class"===K||"super"===K;case 6:return"return"===K||"typeof"===K||"delete"===K||"switch"===K||"export"===K||"import"===K;case 7:return"default"===K||"finally"===K||"extends"===K;case 8:return"function"===K||"continue"===K||"debugger"===K;case 10:return"instanceof"===K;default:return!1}},se.prototype.codePointAt=function(K){var re=this.source.charCodeAt(K);if(re>=55296&&re<=56319){var ie=this.source.charCodeAt(K+1);ie>=56320&&ie<=57343&&(re=1024*(re-55296)+ie-56320+65536)}return re},se.prototype.scanHexEscape=function(K){for(var re="u"===K?4:2,ie=0,k=0;k1114111||"}"!==K)&&this.throwUnexpectedToken(),ye.Character.fromCodePoint(re)},se.prototype.getIdentifier=function(){for(var K=this.index++;!this.eof();){var re=this.source.charCodeAt(this.index);if(92===re)return this.index=K,this.getComplexIdentifier();if(re>=55296&&re<57343)return this.index=K,this.getComplexIdentifier();if(!ye.Character.isIdentifierPart(re))break;++this.index}return this.source.slice(K,this.index)},se.prototype.getComplexIdentifier=function(){var ie,K=this.codePointAt(this.index),re=ye.Character.fromCodePoint(K);for(this.index+=re.length,92===K&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ie=this.scanUnicodeCodePointEscape()):(null===(ie=this.scanHexEscape("u"))||"\\"===ie||!ye.Character.isIdentifierStart(ie.charCodeAt(0)))&&this.throwUnexpectedToken(),re=ie);!this.eof()&&(K=this.codePointAt(this.index),ye.Character.isIdentifierPart(K));)re+=ie=ye.Character.fromCodePoint(K),this.index+=ie.length,92===K&&(re=re.substr(0,re.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ie=this.scanUnicodeCodePointEscape()):(null===(ie=this.scanHexEscape("u"))||"\\"===ie||!ye.Character.isIdentifierPart(ie.charCodeAt(0)))&&this.throwUnexpectedToken(),re+=ie);return re},se.prototype.octalToDecimal=function(K){var re="0"!==K,ie=Se(K);return!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(re=!0,ie=8*ie+Se(this.source[this.index++]),"0123".indexOf(K)>=0&&!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ie=8*ie+Se(this.source[this.index++]))),{code:ie,octal:re}},se.prototype.scanIdentifier=function(){var K,re=this.index,ie=92===this.source.charCodeAt(re)?this.getComplexIdentifier():this.getIdentifier();if(3!=(K=1===ie.length?3:this.isKeyword(ie)?4:"null"===ie?5:"true"===ie||"false"===ie?1:3)&&re+ie.length!==this.index){var k=this.index;this.index=re,this.tolerateUnexpectedToken(he.Messages.InvalidEscapedReservedWord),this.index=k}return{type:K,value:ie,lineNumber:this.lineNumber,lineStart:this.lineStart,start:re,end:this.index}},se.prototype.scanPunctuator=function(){var K=this.index,re=this.source[this.index];switch(re){case"(":case"{":"{"===re&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,re="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(re=this.source.substr(this.index,4))?this.index+=4:"==="===(re=re.substr(0,3))||"!=="===re||">>>"===re||"<<="===re||">>="===re||"**="===re?this.index+=3:"&&"===(re=re.substr(0,2))||"||"===re||"=="===re||"!="===re||"+="===re||"-="===re||"*="===re||"/="===re||"++"===re||"--"===re||"<<"===re||">>"===re||"&="===re||"|="===re||"^="===re||"%="===re||"<="===re||">="===re||"=>"===re||"**"===re?this.index+=2:"<>=!+-*%&|^/".indexOf(re=this.source[this.index])>=0&&++this.index}return this.index===K&&this.throwUnexpectedToken(),{type:7,value:re,lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanHexLiteral=function(K){for(var re="";!this.eof()&&ye.Character.isHexDigit(this.source.charCodeAt(this.index));)re+=this.source[this.index++];return 0===re.length&&this.throwUnexpectedToken(),ye.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+re,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanBinaryLiteral=function(K){for(var ie,re="";!this.eof()&&("0"===(ie=this.source[this.index])||"1"===ie);)re+=this.source[this.index++];return 0===re.length&&this.throwUnexpectedToken(),this.eof()||(ie=this.source.charCodeAt(this.index),(ye.Character.isIdentifierStart(ie)||ye.Character.isDecimalDigit(ie))&&this.throwUnexpectedToken()),{type:6,value:parseInt(re,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanOctalLiteral=function(K,re){var ie="",k=!1;for(ye.Character.isOctalDigit(K.charCodeAt(0))?(k=!0,ie="0"+this.source[this.index++]):++this.index;!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index));)ie+=this.source[this.index++];return!k&&0===ie.length&&this.throwUnexpectedToken(),(ye.Character.isIdentifierStart(this.source.charCodeAt(this.index))||ye.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(ie,8),octal:k,lineNumber:this.lineNumber,lineStart:this.lineStart,start:re,end:this.index}},se.prototype.isImplicitOctalLiteral=function(){for(var K=this.index+1;K=0&&(k=k.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(I,Z,Ae){var Ue=parseInt(Z||Ae,16);return Ue>1114111&&T.throwUnexpectedToken(he.Messages.InvalidRegExp),Ue<=65535?String.fromCharCode(Ue):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(k)}catch{this.throwUnexpectedToken(he.Messages.InvalidRegExp)}try{return new RegExp(K,re)}catch{return null}},se.prototype.scanRegExpBody=function(){var K=this.source[this.index];de.assert("/"===K,"Regular expression literal must start with a slash");for(var re=this.source[this.index++],ie=!1,k=!1;!this.eof();)if(re+=K=this.source[this.index++],"\\"===K)K=this.source[this.index++],ye.Character.isLineTerminator(K.charCodeAt(0))&&this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),re+=K;else if(ye.Character.isLineTerminator(K.charCodeAt(0)))this.throwUnexpectedToken(he.Messages.UnterminatedRegExp);else if(ie)"]"===K&&(ie=!1);else{if("/"===K){k=!0;break}"["===K&&(ie=!0)}return k||this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),re.substr(1,re.length-2)},se.prototype.scanRegExpFlags=function(){for(var re="";!this.eof();){var ie=this.source[this.index];if(!ye.Character.isIdentifierPart(ie.charCodeAt(0)))break;if(++this.index,"\\"!==ie||this.eof())re+=ie;else if("u"===(ie=this.source[this.index])){++this.index;var k=this.index,T=this.scanHexEscape("u");if(null!==T)for(re+=T;k=55296&&K<57343&&ye.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},se}();ue.Scanner=we},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.TokenName={},ue.TokenName[1]="Boolean",ue.TokenName[2]="",ue.TokenName[3]="Identifier",ue.TokenName[4]="Keyword",ue.TokenName[5]="Null",ue.TokenName[6]="Numeric",ue.TokenName[7]="Punctuator",ue.TokenName[8]="String",ue.TokenName[9]="RegularExpression",ue.TokenName[10]="Template"},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(10),ye=be(12),he=be(13),ee=function(){function we(){this.values=[],this.curly=this.paren=-1}return we.prototype.beforeFunctionExpression=function(se){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(se)>=0},we.prototype.isRegexStart=function(){var se=this.values[this.values.length-1],K=null!==se;switch(se){case"this":case"]":K=!1;break;case")":var re=this.values[this.paren-1];K="if"===re||"while"===re||"for"===re||"with"===re;break;case"}":if(K=!1,"function"===this.values[this.curly-3])K=!!(ie=this.values[this.curly-4])&&!this.beforeFunctionExpression(ie);else if("function"===this.values[this.curly-4]){var ie;K=!(ie=this.values[this.curly-5])||!this.beforeFunctionExpression(ie)}}return K},we.prototype.push=function(se){7===se.type||4===se.type?("{"===se.value?this.curly=this.values.length:"("===se.value&&(this.paren=this.values.length),this.values.push(se.value)):this.values.push(null)},we}(),Se=function(){function we(se,K){this.errorHandler=new de.ErrorHandler,this.errorHandler.tolerant=!!K&&"boolean"==typeof K.tolerant&&K.tolerant,this.scanner=new ye.Scanner(se,this.errorHandler),this.scanner.trackComment=!!K&&"boolean"==typeof K.comment&&K.comment,this.trackRange=!!K&&"boolean"==typeof K.range&&K.range,this.trackLoc=!!K&&"boolean"==typeof K.loc&&K.loc,this.buffer=[],this.reader=new ee}return we.prototype.errors=function(){return this.errorHandler.errors},we.prototype.getNextToken=function(){if(0===this.buffer.length){var se=this.scanner.scanComments();if(this.scanner.trackComment)for(var K=0;K=ie.status}function Se(re){try{re.dispatchEvent(new MouseEvent("click"))}catch{var ie=document.createEvent("MouseEvents");ie.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),re.dispatchEvent(ie)}}var we="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,se=we.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),K=we.saveAs||("object"!=typeof window||window!==we?function(){}:"download"in HTMLAnchorElement.prototype&&!se?function(re,ie,k){var T=we.URL||we.webkitURL,I=document.createElement("a");I.download=ie=ie||re.name||"download",I.rel="noopener","string"==typeof re?(I.href=re,I.origin===location.origin?Se(I):ee(I.href)?he(re,ie,k):Se(I,I.target="_blank")):(I.href=T.createObjectURL(re),setTimeout(function(){T.revokeObjectURL(I.href)},4e4),setTimeout(function(){Se(I)},0))}:"msSaveOrOpenBlob"in navigator?function(re,ie,k){if(ie=ie||re.name||"download","string"!=typeof re)navigator.msSaveOrOpenBlob(function ye(re,ie){return typeof ie>"u"?ie={autoBom:!1}:"object"!=typeof ie&&(console.warn("Deprecated: Expected third argument to be a object"),ie={autoBom:!ie}),ie.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(re.type)?new Blob(["\ufeff",re],{type:re.type}):re}(re,k),ie);else if(ee(re))he(re,ie,k);else{var T=document.createElement("a");T.href=re,T.target="_blank",setTimeout(function(){Se(T)})}}:function(re,ie,k,T){if((T=T||open("","_blank"))&&(T.document.title=T.document.body.innerText="downloading..."),"string"==typeof re)return he(re,ie,k);var I="application/octet-stream"===re.type,Z=/constructor/i.test(we.HTMLElement)||we.safari,Ae=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ae||I&&Z||se)&&typeof FileReader<"u"){var Ue=new FileReader;Ue.onloadend=function(){var yt=Ue.result;yt=Ae?yt:yt.replace(/^data:[^;]*;/,"data:attachment/file;"),T?T.location.href=yt:location=yt,T=null},Ue.readAsDataURL(re)}else{var ut=we.URL||we.webkitURL,ht=ut.createObjectURL(re);T?T.location=ht:location.href=ht,T=null,setTimeout(function(){ut.revokeObjectURL(ht)},4e4)}});we.saveAs=K.saveAs=K,Et.exports=K})?ue.apply(Xe,[]):ue)&&(Et.exports=de)},8461:(Et,Xe)=>{Xe.read=function(ue,be,de,ye,he){var ee,Se,we=8*he-ye-1,se=(1<>1,re=-7,ie=de?he-1:0,k=de?-1:1,T=ue[be+ie];for(ie+=k,ee=T&(1<<-re)-1,T>>=-re,re+=we;re>0;ee=256*ee+ue[be+ie],ie+=k,re-=8);for(Se=ee&(1<<-re)-1,ee>>=-re,re+=ye;re>0;Se=256*Se+ue[be+ie],ie+=k,re-=8);if(0===ee)ee=1-K;else{if(ee===se)return Se?NaN:1/0*(T?-1:1);Se+=Math.pow(2,ye),ee-=K}return(T?-1:1)*Se*Math.pow(2,ee-ye)},Xe.write=function(ue,be,de,ye,he,ee){var Se,we,se,K=8*ee-he-1,re=(1<>1,k=23===he?Math.pow(2,-24)-Math.pow(2,-77):0,T=ye?0:ee-1,I=ye?1:-1,Z=be<0||0===be&&1/be<0?1:0;for(be=Math.abs(be),isNaN(be)||be===1/0?(we=isNaN(be)?1:0,Se=re):(Se=Math.floor(Math.log(be)/Math.LN2),be*(se=Math.pow(2,-Se))<1&&(Se--,se*=2),(be+=Se+ie>=1?k/se:k*Math.pow(2,1-ie))*se>=2&&(Se++,se/=2),Se+ie>=re?(we=0,Se=re):Se+ie>=1?(we=(be*se-1)*Math.pow(2,he),Se+=ie):(we=be*Math.pow(2,ie-1)*Math.pow(2,he),Se=0));he>=8;ue[de+T]=255&we,T+=I,we/=256,he-=8);for(Se=Se<0;ue[de+T]=255&Se,T+=I,Se/=256,K-=8);ue[de+T-I]|=128*Z}},1870:(Et,Xe,ue)=>{"use strict";var be=ue(5133);Et.exports=be},5133:(Et,Xe,ue)=>{"use strict";var be=ue(7840),de=ue(34);function ye(he){return function(){throw new Error("Function "+he+" is deprecated and cannot be used.")}}Et.exports.Type=ue(7647),Et.exports.Schema=ue(372),Et.exports.FAILSAFE_SCHEMA=ue(8746),Et.exports.JSON_SCHEMA=ue(7147),Et.exports.CORE_SCHEMA=ue(3192),Et.exports.DEFAULT_SAFE_SCHEMA=ue(3031),Et.exports.DEFAULT_FULL_SCHEMA=ue(7094),Et.exports.load=be.load,Et.exports.loadAll=be.loadAll,Et.exports.safeLoad=be.safeLoad,Et.exports.safeLoadAll=be.safeLoadAll,Et.exports.dump=de.dump,Et.exports.safeDump=de.safeDump,Et.exports.YAMLException=ue(314),Et.exports.MINIMAL_SCHEMA=ue(8746),Et.exports.SAFE_SCHEMA=ue(3031),Et.exports.DEFAULT_SCHEMA=ue(7094),Et.exports.scan=ye("scan"),Et.exports.parse=ye("parse"),Et.exports.compose=ye("compose"),Et.exports.addConstructor=ye("addConstructor")},997:Et=>{"use strict";function Xe(ee){return typeof ee>"u"||null===ee}Et.exports.isNothing=Xe,Et.exports.isObject=function ue(ee){return"object"==typeof ee&&null!==ee},Et.exports.toArray=function be(ee){return Array.isArray(ee)?ee:Xe(ee)?[]:[ee]},Et.exports.repeat=function ye(ee,Se){var se,we="";for(se=0;se{"use strict";var be=ue(997),de=ue(314),ye=ue(7094),he=ue(3031),ee=Object.prototype.toString,Se=Object.prototype.hasOwnProperty,we=9,se=10,K=13,re=32,ie=33,k=34,T=35,I=37,Z=38,Ae=39,Ue=42,ut=44,ht=45,yt=58,Zt=61,Wt=62,Qt=63,An=64,Cn=91,Sn=93,mi=96,fn=123,qn=124,fi=125,$t={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},ta=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Zn(_e){var bt,Pt,tn;if(bt=_e.toString(16).toUpperCase(),_e<=255)Pt="x",tn=2;else if(_e<=65535)Pt="u",tn=4;else{if(!(_e<=4294967295))throw new de("code point within a string may not be greater than 0xFFFFFFFF");Pt="U",tn=8}return"\\"+Pt+be.repeat("0",tn-bt.length)+bt}function yl(_e){this.schema=_e.schema||ye,this.indent=Math.max(1,_e.indent||2),this.noArrayIndent=_e.noArrayIndent||!1,this.skipInvalid=_e.skipInvalid||!1,this.flowLevel=be.isNothing(_e.flowLevel)?-1:_e.flowLevel,this.styleMap=function tl(_e,bt){var Pt,tn,Kt,Lt,pn,Jt,Je;if(null===bt)return{};for(Pt={},Kt=0,Lt=(tn=Object.keys(bt)).length;Kt0?_e.charCodeAt(Lt-1):null,Br=Br&&na(pn,Jt)}else{for(Lt=0;Lt<_e.length;Lt++){if((pn=_e.charCodeAt(Lt))===se)Je=!0,St&&(Qe=Qe||Lt-kn-1>tn&&" "!==_e[kn+1],kn=Lt);else if(!Ss(pn))return il;Jt=Lt>0?_e.charCodeAt(Lt-1):null,Br=Br&&na(pn,Jt)}Qe=Qe||St&&Lt-kn-1>tn&&" "!==_e[kn+1]}return Je||Qe?Pt>9&&Ls(_e)?il:Qe?Cu:Vl:Br&&!Kt(_e)?ds:ia}(bt,tn||_e.flowLevel>-1&&Pt>=_e.flowLevel,_e.indent,Lt,function Jt(Je){return function Kr(_e,bt){var Pt,tn;for(Pt=0,tn=_e.implicitTypes.length;Pt"+Hl(bt,_e.indent)+Ne(cc(function Y(_e,bt){for(var Lt,pn,Pt=/(\n+)([^\n]*)/g,tn=(Qe=void 0,Qe=_e.indexOf("\n"),Pt.lastIndex=Qe=-1!==Qe?Qe:_e.length,ne(_e.slice(0,Qe),bt)),Kt="\n"===_e[0]||" "===_e[0];pn=Pt.exec(_e);){var Je=pn[2];Lt=" "===Je[0],tn+=pn[1]+(Kt||Lt||""===Je?"":"\n")+ne(Je,bt),Kt=Lt}var Qe;return tn}(bt,Lt),Kt));case il:return'"'+function Le(_e){for(var Pt,tn,Kt,bt="",Lt=0;Lt<_e.length;Lt++)(Pt=_e.charCodeAt(Lt))>=55296&&Pt<=56319&&(tn=_e.charCodeAt(Lt+1))>=56320&&tn<=57343?(bt+=Zn(1024*(Pt-55296)+tn-56320+65536),Lt++):bt+=!(Kt=$t[Pt])&&Ss(Pt)?_e[Lt]:Kt||Zn(Pt);return bt}(bt)+'"';default:throw new de("impossible error: invalid scalar style")}}()}function Hl(_e,bt){var Pt=Ls(_e)?String(bt):"",tn="\n"===_e[_e.length-1];return Pt+(!tn||"\n"!==_e[_e.length-2]&&"\n"!==_e?tn?"":"-":"+")+"\n"}function Ne(_e){return"\n"===_e[_e.length-1]?_e.slice(0,-1):_e}function ne(_e,bt){if(""===_e||" "===_e[0])return _e;for(var tn,Lt,Pt=/ [^ ]/g,Kt=0,pn=0,Jt=0,Je="";tn=Pt.exec(_e);)(Jt=tn.index)-Kt>bt&&(Je+="\n"+_e.slice(Kt,Lt=pn>Kt?pn:Jt),Kt=Lt+1),pn=Jt;return Je+="\n",(Je+=_e.length-Kt>bt&&pn>Kt?_e.slice(Kt,pn)+"\n"+_e.slice(pn+1):_e.slice(Kt)).slice(1)}function M(_e,bt,Pt){var tn,Kt,Lt,pn,Jt,Je;for(Lt=0,pn=(Kt=Pt?_e.explicitTypes:_e.implicitTypes).length;Lt tag resolver accepts not "'+Je+'" style');tn=Jt.represent[Je](bt,Je)}_e.dump=tn}return!0}return!1}function at(_e,bt,Pt,tn,Kt,Lt){_e.tag=null,_e.dump=Pt,M(_e,Pt,!1)||M(_e,Pt,!0);var pn=ee.call(_e.dump);tn&&(tn=_e.flowLevel<0||_e.flowLevel>bt);var Je,Qe,Jt="[object Object]"===pn||"[object Array]"===pn;if(Jt&&(Qe=-1!==(Je=_e.duplicates.indexOf(Pt))),(null!==_e.tag&&"?"!==_e.tag||Qe||2!==_e.indent&&bt>0)&&(Kt=!1),Qe&&_e.usedDuplicates[Je])_e.dump="*ref_"+Je;else{if(Jt&&Qe&&!_e.usedDuplicates[Je]&&(_e.usedDuplicates[Je]=!0),"[object Object]"===pn)tn&&0!==Object.keys(_e.dump).length?(function ar(_e,bt,Pt,tn){var Jt,Je,Qe,St,kn,Br,Kt="",Lt=_e.tag,pn=Object.keys(Pt);if(!0===_e.sortKeys)pn.sort();else if("function"==typeof _e.sortKeys)pn.sort(_e.sortKeys);else if(_e.sortKeys)throw new de("sortKeys must be a boolean or a function");for(Jt=0,Je=pn.length;Jt1024)&&(_e.dump&&se===_e.dump.charCodeAt(0)?Br+="?":Br+="? "),Br+=_e.dump,kn&&(Br+=uo(_e,bt)),at(_e,bt+1,St,!0,kn)&&(_e.dump&&se===_e.dump.charCodeAt(0)?Br+=":":Br+=": ",Kt+=Br+=_e.dump));_e.tag=Lt,_e.dump=Kt||"{}"}(_e,bt,_e.dump,Kt),Qe&&(_e.dump="&ref_"+Je+_e.dump)):(function nn(_e,bt,Pt){var pn,Jt,Je,Qe,St,tn="",Kt=_e.tag,Lt=Object.keys(Pt);for(pn=0,Jt=Lt.length;pn1024&&(St+="? "),St+=_e.dump+(_e.condenseFlow?'"':"")+":"+(_e.condenseFlow?"":" "),at(_e,bt,Qe,!1,!1)&&(tn+=St+=_e.dump));_e.tag=Kt,_e.dump="{"+tn+"}"}(_e,bt,_e.dump),Qe&&(_e.dump="&ref_"+Je+" "+_e.dump));else if("[object Array]"===pn){var St=_e.noArrayIndent&&bt>0?bt-1:bt;tn&&0!==_e.dump.length?(function qt(_e,bt,Pt,tn){var pn,Jt,Kt="",Lt=_e.tag;for(pn=0,Jt=Pt.length;pn "+_e.dump)}return!0}function Mt(_e,bt){var Kt,Lt,Pt=[],tn=[];for(Yt(_e,Pt,tn),Kt=0,Lt=tn.length;Kt{"use strict";function Xe(ue,be){Error.call(this),this.name="YAMLException",this.reason=ue,this.mark=be,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Xe.prototype=Object.create(Error.prototype)).constructor=Xe,Xe.prototype.toString=function(be){var de=this.name+": ";return de+=this.reason||"(unknown reason)",!be&&this.mark&&(de+=" "+this.mark.toString()),de},Et.exports=Xe},7840:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(314),ye=ue(48),he=ue(3031),ee=ue(7094),Se=Object.prototype.hasOwnProperty,we=1,se=2,K=3,re=4,ie=1,k=2,T=3,I=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Z=/[\x85\u2028\u2029]/,Ae=/[,\[\]\{\}]/,Ue=/^(?:!|!!|![a-z\-]+!)$/i,ut=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ht(M){return Object.prototype.toString.call(M)}function yt(M){return 10===M||13===M}function Zt(M){return 9===M||32===M}function Wt(M){return 9===M||32===M||10===M||13===M}function Qt(M){return 44===M||91===M||93===M||123===M||125===M}function An(M){var at;return 48<=M&&M<=57?M-48:97<=(at=32|M)&&at<=102?at-97+10:-1}function Cn(M){return 120===M?2:117===M?4:85===M?8:0}function Sn(M){return 48<=M&&M<=57?M-48:-1}function mi(M){return 48===M?"\0":97===M?"\x07":98===M?"\b":116===M||9===M?"\t":110===M?"\n":118===M?"\v":102===M?"\f":114===M?"\r":101===M?"\x1b":32===M?" ":34===M?'"':47===M?"/":92===M?"\\":78===M?"\x85":95===M?"\xa0":76===M?"\u2028":80===M?"\u2029":""}function fn(M){return M<=65535?String.fromCharCode(M):String.fromCharCode(55296+(M-65536>>10),56320+(M-65536&1023))}for(var qn=new Array(256),fi=new Array(256),$t=0;$t<256;$t++)qn[$t]=mi($t)?1:0,fi[$t]=mi($t);function ta(M,at){this.input=M,this.filename=at.filename||null,this.schema=at.schema||ee,this.onWarning=at.onWarning||null,this.legacy=at.legacy||!1,this.json=at.json||!1,this.listener=at.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=M.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function tl(M,at){return new de(at,new ye(M.filename,M.input,M.position,M.line,M.position-M.lineStart))}function Zn(M,at){throw tl(M,at)}function yl(M,at){M.onWarning&&M.onWarning.call(null,tl(M,at))}var cc={YAML:function(at,Mt,Yt){var zt,vn,_e;null!==at.version&&Zn(at,"duplication of %YAML directive"),1!==Yt.length&&Zn(at,"YAML directive accepts exactly one argument"),null===(zt=/^([0-9]+)\.([0-9]+)$/.exec(Yt[0]))&&Zn(at,"ill-formed argument of the YAML directive"),vn=parseInt(zt[1],10),_e=parseInt(zt[2],10),1!==vn&&Zn(at,"unacceptable YAML version of the document"),at.version=Yt[0],at.checkLineBreaks=_e<2,1!==_e&&2!==_e&&yl(at,"unsupported YAML version of the document")},TAG:function(at,Mt,Yt){var zt,vn;2!==Yt.length&&Zn(at,"TAG directive accepts exactly two arguments"),vn=Yt[1],Ue.test(zt=Yt[0])||Zn(at,"ill-formed tag handle (first argument) of the TAG directive"),Se.call(at.tagMap,zt)&&Zn(at,'there is a previously declared suffix for "'+zt+'" tag handle'),ut.test(vn)||Zn(at,"ill-formed tag prefix (second argument) of the TAG directive"),at.tagMap[zt]=vn}};function uo(M,at,Mt,Yt){var zt,vn,_e,bt;if(at1&&(M.result+=be.repeat("\n",at-1))}function il(M,at){var Mt,Pt,Yt=M.tag,zt=M.anchor,vn=[],bt=!1;for(null!==M.anchor&&(M.anchorMap[M.anchor]=vn),Pt=M.input.charCodeAt(M.position);0!==Pt&&45===Pt&&Wt(M.input.charCodeAt(M.position+1));)if(bt=!0,M.position++,Wr(M,!0,-1)&&M.lineIndent<=at)vn.push(null),Pt=M.input.charCodeAt(M.position);else if(Mt=M.line,Y(M,at,K,!1,!0),vn.push(M.result),Wr(M,!0,-1),Pt=M.input.charCodeAt(M.position),(M.line===Mt||M.lineIndent>at)&&0!==Pt)Zn(M,"bad indentation of a sequence entry");else if(M.lineIndentat?Pt=1:M.lineIndent===at?Pt=0:M.lineIndentat?Pt=1:M.lineIndent===at?Pt=0:M.lineIndentat)&&(Y(M,at,re,!0,zt)&&(Je?pn=M.result:Jt=M.result),Je||(Gr(M,tn,Kt,Lt,pn,Jt,vn,_e),Lt=pn=Jt=null),Wr(M,!0,-1),St=M.input.charCodeAt(M.position)),M.lineIndent>at&&0!==St)Zn(M,"bad indentation of a mapping entry");else if(M.lineIndent=0))break;0===Kt?Zn(M,"bad explicit indentation width of a block scalar; it cannot be less than one"):_e?Zn(M,"repeat of an indentation width identifier"):(bt=at+Kt-1,_e=!0)}if(Zt(Lt)){do{Lt=M.input.charCodeAt(++M.position)}while(Zt(Lt));if(35===Lt)do{Lt=M.input.charCodeAt(++M.position)}while(!yt(Lt)&&0!==Lt)}for(;0!==Lt;){for(Ss(M),M.lineIndent=0,Lt=M.input.charCodeAt(M.position);(!_e||M.lineIndentbt&&(bt=M.lineIndent),yt(Lt))Pt++;else{if(M.lineIndent0){for(zt=_e,vn=0;zt>0;zt--)(_e=An(bt=M.input.charCodeAt(++M.position)))>=0?vn=(vn<<4)+_e:Zn(M,"expected hexadecimal character");M.result+=fn(vn),M.position++}else Zn(M,"unknown escape sequence");Mt=Yt=M.position}else yt(bt)?(uo(M,Mt,Yt,!0),nl(M,Wr(M,!1,at)),Mt=Yt=M.position):M.position===M.lineStart&&na(M)?Zn(M,"unexpected end of the document within a double quoted scalar"):(M.position++,Yt=M.position)}Zn(M,"unexpected end of the stream within a double quoted scalar")}(M,Je)?Kt=!0:function Ne(M){var at,Mt,Yt;if(42!==(Yt=M.input.charCodeAt(M.position)))return!1;for(Yt=M.input.charCodeAt(++M.position),at=M.position;0!==Yt&&!Wt(Yt)&&!Qt(Yt);)Yt=M.input.charCodeAt(++M.position);return M.position===at&&Zn(M,"name of an alias node must contain at least one character"),Mt=M.input.slice(at,M.position),Se.call(M.anchorMap,Mt)||Zn(M,'unidentified alias "'+Mt+'"'),M.result=M.anchorMap[Mt],Wr(M,!0,-1),!0}(M)?(Kt=!0,(null!==M.tag||null!==M.anchor)&&Zn(M,"alias node should not have any properties")):function Ls(M,at,Mt){var zt,vn,_e,bt,Pt,tn,Kt,Jt,Lt=M.kind,pn=M.result;if(Wt(Jt=M.input.charCodeAt(M.position))||Qt(Jt)||35===Jt||38===Jt||42===Jt||33===Jt||124===Jt||62===Jt||39===Jt||34===Jt||37===Jt||64===Jt||96===Jt||(63===Jt||45===Jt)&&(Wt(zt=M.input.charCodeAt(M.position+1))||Mt&&Qt(zt)))return!1;for(M.kind="scalar",M.result="",vn=_e=M.position,bt=!1;0!==Jt;){if(58===Jt){if(Wt(zt=M.input.charCodeAt(M.position+1))||Mt&&Qt(zt))break}else if(35===Jt){if(Wt(M.input.charCodeAt(M.position-1)))break}else{if(M.position===M.lineStart&&na(M)||Mt&&Qt(Jt))break;if(yt(Jt)){if(Pt=M.line,tn=M.lineStart,Kt=M.lineIndent,Wr(M,!1,-1),M.lineIndent>=at){bt=!0,Jt=M.input.charCodeAt(M.position);continue}M.position=_e,M.line=Pt,M.lineStart=tn,M.lineIndent=Kt;break}}bt&&(uo(M,vn,_e,!1),nl(M,M.line-Pt),vn=_e=M.position,bt=!1),Zt(Jt)||(_e=M.position+1),Jt=M.input.charCodeAt(++M.position)}return uo(M,vn,_e,!1),!!M.result||(M.kind=Lt,M.result=pn,!1)}(M,Je,we===Mt)&&(Kt=!0,null===M.tag&&(M.tag="?")),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):0===Pt&&(Kt=bt&&il(M,Qe))),null!==M.tag&&"!"!==M.tag)if("?"===M.tag){for(null!==M.result&&"scalar"!==M.kind&&Zn(M,'unacceptable node kind for ! tag; it should be "scalar", not "'+M.kind+'"'),Lt=0,pn=M.implicitTypes.length;Lt tag; it should be "'+Jt.kind+'", not "'+M.kind+'"'),Jt.resolve(M.result)?(M.result=Jt.construct(M.result),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):Zn(M,"cannot resolve a node with !<"+M.tag+"> explicit tag")):Zn(M,"unknown tag !<"+M.tag+">");return null!==M.listener&&M.listener("close",M),null!==M.tag||null!==M.anchor||Kt}function ne(M){var Mt,Yt,zt,_e,at=M.position,vn=!1;for(M.version=null,M.checkLineBreaks=M.legacy,M.tagMap={},M.anchorMap={};0!==(_e=M.input.charCodeAt(M.position))&&(Wr(M,!0,-1),_e=M.input.charCodeAt(M.position),!(M.lineIndent>0||37!==_e));){for(vn=!0,_e=M.input.charCodeAt(++M.position),Mt=M.position;0!==_e&&!Wt(_e);)_e=M.input.charCodeAt(++M.position);for(zt=[],(Yt=M.input.slice(Mt,M.position)).length<1&&Zn(M,"directive name must not be less than one character in length");0!==_e;){for(;Zt(_e);)_e=M.input.charCodeAt(++M.position);if(35===_e){do{_e=M.input.charCodeAt(++M.position)}while(0!==_e&&!yt(_e));break}if(yt(_e))break;for(Mt=M.position;0!==_e&&!Wt(_e);)_e=M.input.charCodeAt(++M.position);zt.push(M.input.slice(Mt,M.position))}0!==_e&&Ss(M),Se.call(cc,Yt)?cc[Yt](M,Yt,zt):yl(M,'unknown document directive "'+Yt+'"')}Wr(M,!0,-1),0===M.lineIndent&&45===M.input.charCodeAt(M.position)&&45===M.input.charCodeAt(M.position+1)&&45===M.input.charCodeAt(M.position+2)?(M.position+=3,Wr(M,!0,-1)):vn&&Zn(M,"directives end mark is expected"),Y(M,M.lineIndent-1,re,!1,!0),Wr(M,!0,-1),M.checkLineBreaks&&Z.test(M.input.slice(at,M.position))&&yl(M,"non-ASCII line breaks are interpreted as content"),M.documents.push(M.result),M.position===M.lineStart&&na(M)?46===M.input.charCodeAt(M.position)&&(M.position+=3,Wr(M,!0,-1)):M.position"u"&&(Mt=at,at=null);var Yt=Le(M,Mt);if("function"!=typeof at)return Yt;for(var zt=0,vn=Yt.length;zt"u"&&(Mt=at,at=null),it(M,at,be.extend({schema:he},Mt))},Et.exports.safeLoad=function ar(M,at){return qt(M,be.extend({schema:he},at))}},48:(Et,Xe,ue)=>{"use strict";var be=ue(997);function de(ye,he,ee,Se,we){this.name=ye,this.buffer=he,this.position=ee,this.line=Se,this.column=we}de.prototype.getSnippet=function(he,ee){var Se,we,se,K,re;if(!this.buffer)return null;for(he=he||4,ee=ee||75,Se="",we=this.position;we>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(we-1));)if(this.position-(we-=1)>ee/2-1){Se=" ... ",we+=5;break}for(se="",K=this.position;Kee/2-1){se=" ... ",K-=5;break}return re=this.buffer.slice(we,K),be.repeat(" ",he)+Se+re+se+"\n"+be.repeat(" ",he+this.position-we+Se.length)+"^"},de.prototype.toString=function(he){var ee,Se="";return this.name&&(Se+='in "'+this.name+'" '),Se+="at line "+(this.line+1)+", column "+(this.column+1),he||(ee=this.getSnippet())&&(Se+=":\n"+ee),Se},Et.exports=de},372:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(314),ye=ue(7647);function he(we,se,K){var re=[];return we.include.forEach(function(ie){K=he(ie,se,K)}),we[se].forEach(function(ie){K.forEach(function(k,T){k.tag===ie.tag&&k.kind===ie.kind&&re.push(T)}),K.push(ie)}),K.filter(function(ie,k){return-1===re.indexOf(k)})}function Se(we){this.include=we.include||[],this.implicit=we.implicit||[],this.explicit=we.explicit||[],this.implicit.forEach(function(se){if(se.loadKind&&"scalar"!==se.loadKind)throw new de("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=he(this,"implicit",[]),this.compiledExplicit=he(this,"explicit",[]),this.compiledTypeMap=function ee(){var se,K,we={scalar:{},sequence:{},mapping:{},fallback:{}};function re(ie){we[ie.kind][ie.tag]=we.fallback[ie.tag]=ie}for(se=0,K=arguments.length;se{"use strict";var be=ue(372);Et.exports=new be({include:[ue(7147)]})},7094:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=be.DEFAULT=new be({include:[ue(3031)],explicit:[ue(8771),ue(632),ue(716)]})},3031:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({include:[ue(3192)],implicit:[ue(6934),ue(9996)],explicit:[ue(6486),ue(7166),ue(7711),ue(8738)]})},8746:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({explicit:[ue(3464),ue(2322),ue(3071)]})},7147:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({include:[ue(8746)],implicit:[ue(9568),ue(8911),ue(7877),ue(8615)]})},7647:(Et,Xe,ue)=>{"use strict";var be=ue(314),de=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ye=["scalar","sequence","mapping"];Et.exports=function ee(Se,we){if(we=we||{},Object.keys(we).forEach(function(se){if(-1===de.indexOf(se))throw new be('Unknown option "'+se+'" is met in definition of "'+Se+'" YAML type.')}),this.tag=Se,this.kind=we.kind||null,this.resolve=we.resolve||function(){return!0},this.construct=we.construct||function(se){return se},this.instanceOf=we.instanceOf||null,this.predicate=we.predicate||null,this.represent=we.represent||null,this.defaultStyle=we.defaultStyle||null,this.styleAliases=function he(Se){var we={};return null!==Se&&Object.keys(Se).forEach(function(se){Se[se].forEach(function(K){we[String(K)]=se})}),we}(we.styleAliases||null),-1===ye.indexOf(this.kind))throw new be('Unknown kind "'+this.kind+'" is specified for "'+Se+'" YAML type.')}},6486:(Et,Xe,ue)=>{"use strict";var be;try{be=ue(3172).lW}catch{}var ye=ue(7647),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Et.exports=new ye("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function ee(K){if(null===K)return!1;var re,ie,k=0,T=K.length,I=he;for(ie=0;ie64)){if(re<0)return!1;k+=6}return k%8==0},construct:function Se(K){var re,ie,k=K.replace(/[\r\n=]/g,""),T=k.length,I=he,Z=0,Ae=[];for(re=0;re>16&255),Ae.push(Z>>8&255),Ae.push(255&Z)),Z=Z<<6|I.indexOf(k.charAt(re));return 0==(ie=T%4*6)?(Ae.push(Z>>16&255),Ae.push(Z>>8&255),Ae.push(255&Z)):18===ie?(Ae.push(Z>>10&255),Ae.push(Z>>2&255)):12===ie&&Ae.push(Z>>4&255),be?be.from?be.from(Ae):new be(Ae):Ae},predicate:function se(K){return be&&be.isBuffer(K)},represent:function we(K){var k,T,re="",ie=0,I=K.length,Z=he;for(k=0;k>18&63],re+=Z[ie>>12&63],re+=Z[ie>>6&63],re+=Z[63&ie]),ie=(ie<<8)+K[k];return 0==(T=I%3)?(re+=Z[ie>>18&63],re+=Z[ie>>12&63],re+=Z[ie>>6&63],re+=Z[63&ie]):2===T?(re+=Z[ie>>10&63],re+=Z[ie>>4&63],re+=Z[ie<<2&63],re+=Z[64]):1===T&&(re+=Z[ie>>2&63],re+=Z[ie<<4&63],re+=Z[64],re+=Z[64]),re}})},8911:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function de(ee){if(null===ee)return!1;var Se=ee.length;return 4===Se&&("true"===ee||"True"===ee||"TRUE"===ee)||5===Se&&("false"===ee||"False"===ee||"FALSE"===ee)},construct:function ye(ee){return"true"===ee||"True"===ee||"TRUE"===ee},predicate:function he(ee){return"[object Boolean]"===Object.prototype.toString.call(ee)},represent:{lowercase:function(ee){return ee?"true":"false"},uppercase:function(ee){return ee?"TRUE":"FALSE"},camelcase:function(ee){return ee?"True":"False"}},defaultStyle:"lowercase"})},8615:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(7647),ye=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Se=/^[-+]?[0-9]+e/;Et.exports=new de("tag:yaml.org,2002:float",{kind:"scalar",resolve:function he(K){return!(null===K||!ye.test(K)||"_"===K[K.length-1])},construct:function ee(K){var re,ie,k,T;return ie="-"===(re=K.replace(/_/g,"").toLowerCase())[0]?-1:1,T=[],"+-".indexOf(re[0])>=0&&(re=re.slice(1)),".inf"===re?1===ie?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===re?NaN:re.indexOf(":")>=0?(re.split(":").forEach(function(I){T.unshift(parseFloat(I,10))}),re=0,k=1,T.forEach(function(I){re+=I*k,k*=60}),ie*re):ie*parseFloat(re,10)},predicate:function se(K){return"[object Number]"===Object.prototype.toString.call(K)&&(K%1!=0||be.isNegativeZero(K))},represent:function we(K,re){var ie;if(isNaN(K))switch(re){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===K)switch(re){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===K)switch(re){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(be.isNegativeZero(K))return"-0.0";return ie=K.toString(10),Se.test(ie)?ie.replace("e",".e"):ie},defaultStyle:"lowercase"})},7877:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(7647);function ye(K){return 48<=K&&K<=57||65<=K&&K<=70||97<=K&&K<=102}function he(K){return 48<=K&&K<=55}function ee(K){return 48<=K&&K<=57}Et.exports=new de("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Se(K){if(null===K)return!1;var T,re=K.length,ie=0,k=!1;if(!re)return!1;if(("-"===(T=K[ie])||"+"===T)&&(T=K[++ie]),"0"===T){if(ie+1===re)return!0;if("b"===(T=K[++ie])){for(ie++;ie=0?"0b"+K.toString(2):"-0b"+K.toString(2).slice(1)},octal:function(K){return K>=0?"0"+K.toString(8):"-0"+K.toString(8).slice(1)},decimal:function(K){return K.toString(10)},hexadecimal:function(K){return K>=0?"0x"+K.toString(16).toUpperCase():"-0x"+K.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Et,Xe,ue)=>{"use strict";var be;try{be=ue(7797)}catch{typeof window<"u"&&(be=window.esprima)}var ye=ue(7647);Et.exports=new ye("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function he(se){if(null===se)return!1;try{var re=be.parse("("+se+")",{range:!0});return!("Program"!==re.type||1!==re.body.length||"ExpressionStatement"!==re.body[0].type||"ArrowFunctionExpression"!==re.body[0].expression.type&&"FunctionExpression"!==re.body[0].expression.type)}catch{return!1}},construct:function ee(se){var k,K="("+se+")",re=be.parse(K,{range:!0}),ie=[];if("Program"!==re.type||1!==re.body.length||"ExpressionStatement"!==re.body[0].type||"ArrowFunctionExpression"!==re.body[0].expression.type&&"FunctionExpression"!==re.body[0].expression.type)throw new Error("Failed to resolve function");return re.body[0].expression.params.forEach(function(T){ie.push(T.name)}),k=re.body[0].expression.body.range,new Function(ie,"BlockStatement"===re.body[0].expression.body.type?K.slice(k[0]+1,k[1]-1):"return "+K.slice(k[0],k[1]))},predicate:function we(se){return"[object Function]"===Object.prototype.toString.call(se)},represent:function Se(se){return se.toString()}})},632:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function de(Se){if(null===Se||0===Se.length)return!1;var we=Se,se=/\/([gim]*)$/.exec(Se),K="";return!("/"===we[0]&&(se&&(K=se[1]),K.length>3||"/"!==we[we.length-K.length-1]))},construct:function ye(Se){var we=Se,se=/\/([gim]*)$/.exec(Se),K="";return"/"===we[0]&&(se&&(K=se[1]),we=we.slice(1,we.length-K.length-1)),new RegExp(we,K)},predicate:function ee(Se){return"[object RegExp]"===Object.prototype.toString.call(Se)},represent:function he(Se){var we="/"+Se.source+"/";return Se.global&&(we+="g"),Se.multiline&&(we+="m"),Se.ignoreCase&&(we+="i"),we}})},8771:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function de(){return!0},construct:function ye(){},predicate:function ee(Se){return typeof Se>"u"},represent:function he(){return""}})},3071:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:map",{kind:"mapping",construct:function(de){return null!==de?de:{}}})},9996:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function de(ye){return"<<"===ye||null===ye}})},9568:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:null",{kind:"scalar",resolve:function de(ee){if(null===ee)return!0;var Se=ee.length;return 1===Se&&"~"===ee||4===Se&&("null"===ee||"Null"===ee||"NULL"===ee)},construct:function ye(){return null},predicate:function he(ee){return null===ee},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},7166:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=Object.prototype.hasOwnProperty,ye=Object.prototype.toString;Et.exports=new be("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function he(Se){if(null===Se)return!0;var se,K,re,ie,k,we=[],T=Se;for(se=0,K=T.length;se{"use strict";var be=ue(7647),de=Object.prototype.toString;Et.exports=new be("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function ye(ee){if(null===ee)return!0;var Se,we,se,K,re,ie=ee;for(re=new Array(ie.length),Se=0,we=ie.length;Se{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(de){return null!==de?de:[]}})},8738:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=Object.prototype.hasOwnProperty;Et.exports=new be("tag:yaml.org,2002:set",{kind:"mapping",resolve:function ye(ee){if(null===ee)return!0;var Se,we=ee;for(Se in we)if(de.call(we,Se)&&null!==we[Se])return!1;return!0},construct:function he(ee){return null!==ee?ee:{}}})},3464:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:str",{kind:"scalar",construct:function(de){return null!==de?de:""}})},6934:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ye=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Et.exports=new be("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function he(we){return null!==we&&(null!==de.exec(we)||null!==ye.exec(we))},construct:function ee(we){var se,K,re,ie,k,T,I,ht,Z=0,Ae=null;if(null===(se=de.exec(we))&&(se=ye.exec(we)),null===se)throw new Error("Date resolve error");if(K=+se[1],re=+se[2]-1,ie=+se[3],!se[4])return new Date(Date.UTC(K,re,ie));if(k=+se[4],T=+se[5],I=+se[6],se[7]){for(Z=se[7].slice(0,3);Z.length<3;)Z+="0";Z=+Z}return se[9]&&(Ae=6e4*(60*+se[10]+ +(se[11]||0)),"-"===se[9]&&(Ae=-Ae)),ht=new Date(Date.UTC(K,re,ie,k,T,I,Z)),Ae&&ht.setTime(ht.getTime()-Ae),ht},instanceOf:Date,represent:function Se(we){return we.toISOString()}})},3259:(Et,Xe,ue)=>{const de=ue(8695),ye=ue(1465),he=ue(3210),ee=ue(2334);function Se(we,se,K,re,ie){const k=[].slice.call(arguments,1),T=k.length,I="function"==typeof k[T-1];if(!I&&!de())throw new Error("Callback required as last argument");if(!I){if(T<1)throw new Error("Too few arguments provided");return 1===T?(K=se,se=re=void 0):2===T&&!se.getContext&&(re=K,K=se,se=void 0),new Promise(function(Z,Ae){try{const Ue=ye.create(K,re);Z(we(Ue,se,re))}catch(Ue){Ae(Ue)}})}if(T<2)throw new Error("Too few arguments provided");2===T?(ie=K,K=se,se=re=void 0):3===T&&(se.getContext&&typeof ie>"u"?(ie=re,re=void 0):(ie=re,re=K,K=se,se=void 0));try{const Z=ye.create(K,re);ie(null,we(Z,se,re))}catch(Z){ie(Z)}}Xe.rT=Se.bind(null,he.render),Xe.hz=Se.bind(null,he.renderToDataURL),Xe.toString=Se.bind(null,function(we,se,K){return ee.render(we,K)})},8695:Et=>{Et.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Et,Xe,ue)=>{const be=ue(4792).getSymbolSize;Xe.getRowColCoords=function(ye){if(1===ye)return[];const he=Math.floor(ye/7)+2,ee=be(ye),Se=145===ee?26:2*Math.ceil((ee-13)/(2*he-2)),we=[ee-7];for(let se=1;se{const be=ue(4016),de=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ye(he){this.mode=be.ALPHANUMERIC,this.data=he}ye.getBitsLength=function(ee){return 11*Math.floor(ee/2)+ee%2*6},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(ee){let Se;for(Se=0;Se+2<=this.data.length;Se+=2){let we=45*de.indexOf(this.data[Se]);we+=de.indexOf(this.data[Se+1]),ee.put(we,11)}this.data.length%2&&ee.put(de.indexOf(this.data[Se]),6)},Et.exports=ye},2118:Et=>{function Xe(){this.buffer=[],this.length=0}Xe.prototype={get:function(ue){const be=Math.floor(ue/8);return 1==(this.buffer[be]>>>7-ue%8&1)},put:function(ue,be){for(let de=0;de>>be-de-1&1))},getLengthInBits:function(){return this.length},putBit:function(ue){const be=Math.floor(this.length/8);this.buffer.length<=be&&this.buffer.push(0),ue&&(this.buffer[be]|=128>>>this.length%8),this.length++}},Et.exports=Xe},4425:Et=>{function Xe(ue){if(!ue||ue<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=ue,this.data=new Uint8Array(ue*ue),this.reservedBit=new Uint8Array(ue*ue)}Xe.prototype.set=function(ue,be,de,ye){const he=ue*this.size+be;this.data[he]=de,ye&&(this.reservedBit[he]=!0)},Xe.prototype.get=function(ue,be){return this.data[ue*this.size+be]},Xe.prototype.xor=function(ue,be,de){this.data[ue*this.size+be]^=de},Xe.prototype.isReserved=function(ue,be){return this.reservedBit[ue*this.size+be]},Et.exports=Xe},5663:(Et,Xe,ue)=>{const be=ue(8419),de=ue(4016);function ye(he){this.mode=de.BYTE,"string"==typeof he&&(he=be(he)),this.data=new Uint8Array(he)}ye.getBitsLength=function(ee){return 8*ee},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(he){for(let ee=0,Se=this.data.length;ee{const be=ue(2259),de=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],ye=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Xe.getBlocksCount=function(ee,Se){switch(Se){case be.L:return de[4*(ee-1)+0];case be.M:return de[4*(ee-1)+1];case be.Q:return de[4*(ee-1)+2];case be.H:return de[4*(ee-1)+3];default:return}},Xe.getTotalCodewordsCount=function(ee,Se){switch(Se){case be.L:return ye[4*(ee-1)+0];case be.M:return ye[4*(ee-1)+1];case be.Q:return ye[4*(ee-1)+2];case be.H:return ye[4*(ee-1)+3];default:return}}},2259:(Et,Xe)=>{Xe.L={bit:1},Xe.M={bit:0},Xe.Q={bit:3},Xe.H={bit:2},Xe.isValid=function(de){return de&&typeof de.bit<"u"&&de.bit>=0&&de.bit<4},Xe.from=function(de,ye){if(Xe.isValid(de))return de;try{return function ue(be){if("string"!=typeof be)throw new Error("Param is not a string");switch(be.toLowerCase()){case"l":case"low":return Xe.L;case"m":case"medium":return Xe.M;case"q":case"quartile":return Xe.Q;case"h":case"high":return Xe.H;default:throw new Error("Unknown EC Level: "+be)}}(de)}catch{return ye}}},3114:(Et,Xe,ue)=>{const be=ue(4792).getSymbolSize;Xe.getPositions=function(he){const ee=be(he);return[[0,0],[ee-7,0],[0,ee-7]]}},7078:(Et,Xe,ue)=>{const be=ue(4792),he=be.getBCHDigit(1335);Xe.getEncodedBits=function(Se,we){const se=Se.bit<<3|we;let K=se<<10;for(;be.getBCHDigit(K)-he>=0;)K^=1335<{const ue=new Uint8Array(512),be=new Uint8Array(256);(function(){let ye=1;for(let he=0;he<255;he++)ue[he]=ye,be[ye]=he,ye<<=1,256&ye&&(ye^=285);for(let he=255;he<512;he++)ue[he]=ue[he-255]})(),Xe.log=function(ye){if(ye<1)throw new Error("log("+ye+")");return be[ye]},Xe.exp=function(ye){return ue[ye]},Xe.mul=function(ye,he){return 0===ye||0===he?0:ue[be[ye]+be[he]]}},449:(Et,Xe,ue)=>{const be=ue(4016),de=ue(4792);function ye(he){this.mode=be.KANJI,this.data=he}ye.getBitsLength=function(ee){return 13*ee},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(he){let ee;for(ee=0;ee=33088&&Se<=40956)Se-=33088;else{if(!(Se>=57408&&Se<=60351))throw new Error("Invalid SJIS character: "+this.data[ee]+"\nMake sure your charset is UTF-8");Se-=49472}Se=192*(Se>>>8&255)+(255&Se),he.put(Se,13)}},Et.exports=ye},3667:(Et,Xe)=>{Xe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function be(de,ye,he){switch(de){case Xe.Patterns.PATTERN000:return(ye+he)%2==0;case Xe.Patterns.PATTERN001:return ye%2==0;case Xe.Patterns.PATTERN010:return he%3==0;case Xe.Patterns.PATTERN011:return(ye+he)%3==0;case Xe.Patterns.PATTERN100:return(Math.floor(ye/2)+Math.floor(he/3))%2==0;case Xe.Patterns.PATTERN101:return ye*he%2+ye*he%3==0;case Xe.Patterns.PATTERN110:return(ye*he%2+ye*he%3)%2==0;case Xe.Patterns.PATTERN111:return(ye*he%3+(ye+he)%2)%2==0;default:throw new Error("bad maskPattern:"+de)}}Xe.isValid=function(ye){return null!=ye&&""!==ye&&!isNaN(ye)&&ye>=0&&ye<=7},Xe.from=function(ye){return Xe.isValid(ye)?parseInt(ye,10):void 0},Xe.getPenaltyN1=function(ye){const he=ye.size;let ee=0,Se=0,we=0,se=null,K=null;for(let re=0;re=5&&(ee+=Se-5+3),se=k,Se=1),k=ye.get(ie,re),k===K?we++:(we>=5&&(ee+=we-5+3),K=k,we=1)}Se>=5&&(ee+=Se-5+3),we>=5&&(ee+=we-5+3)}return ee},Xe.getPenaltyN2=function(ye){const he=ye.size;let ee=0;for(let Se=0;Se=10&&(1488===Se||93===Se)&&ee++,we=we<<1&2047|ye.get(K,se),K>=10&&(1488===we||93===we)&&ee++}return 40*ee},Xe.getPenaltyN4=function(ye){let he=0;const ee=ye.data.length;for(let we=0;we{const be=ue(4406),de=ue(2699);Xe.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Xe.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Xe.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Xe.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Xe.MIXED={bit:-1},Xe.getCharCountIndicator=function(ee,Se){if(!ee.ccBits)throw new Error("Invalid mode: "+ee);if(!be.isValid(Se))throw new Error("Invalid version: "+Se);return Se>=1&&Se<10?ee.ccBits[0]:Se<27?ee.ccBits[1]:ee.ccBits[2]},Xe.getBestModeForData=function(ee){return de.testNumeric(ee)?Xe.NUMERIC:de.testAlphanumeric(ee)?Xe.ALPHANUMERIC:de.testKanji(ee)?Xe.KANJI:Xe.BYTE},Xe.toString=function(ee){if(ee&&ee.id)return ee.id;throw new Error("Invalid mode")},Xe.isValid=function(ee){return ee&&ee.bit&&ee.ccBits},Xe.from=function(ee,Se){if(Xe.isValid(ee))return ee;try{return function ye(he){if("string"!=typeof he)throw new Error("Param is not a string");switch(he.toLowerCase()){case"numeric":return Xe.NUMERIC;case"alphanumeric":return Xe.ALPHANUMERIC;case"kanji":return Xe.KANJI;case"byte":return Xe.BYTE;default:throw new Error("Unknown mode: "+he)}}(ee)}catch{return Se}}},7783:(Et,Xe,ue)=>{const be=ue(4016);function de(ye){this.mode=be.NUMERIC,this.data=ye.toString()}de.getBitsLength=function(he){return 10*Math.floor(he/3)+(he%3?he%3*3+1:0)},de.prototype.getLength=function(){return this.data.length},de.prototype.getBitsLength=function(){return de.getBitsLength(this.data.length)},de.prototype.write=function(he){let ee,Se,we;for(ee=0;ee+3<=this.data.length;ee+=3)Se=this.data.substr(ee,3),we=parseInt(Se,10),he.put(we,10);const se=this.data.length-ee;se>0&&(Se=this.data.substr(ee),we=parseInt(Se,10),he.put(we,3*se+1))},Et.exports=de},1106:(Et,Xe,ue)=>{const be=ue(5339);Xe.mul=function(ye,he){const ee=new Uint8Array(ye.length+he.length-1);for(let Se=0;Se=0;){const Se=ee[0];for(let se=0;se{const be=ue(4792),de=ue(2259),ye=ue(2118),he=ue(4425),ee=ue(6221),Se=ue(3114),we=ue(3667),se=ue(4655),K=ue(2636),re=ue(2088),ie=ue(7078),k=ue(4016),T=ue(2033);function ut(Qt,An,Cn){const Sn=Qt.size,mi=ie.getEncodedBits(An,Cn);let fn,qn;for(fn=0;fn<15;fn++)qn=1==(mi>>fn&1),Qt.set(fn<6?fn:fn<8?fn+1:Sn-15+fn,8,qn,!0),Qt.set(8,fn<8?Sn-fn-1:fn<9?15-fn-1+1:15-fn-1,qn,!0);Qt.set(Sn-8,8,1,!0)}function Wt(Qt,An,Cn,Sn){let mi;if(Array.isArray(Qt))mi=T.fromArray(Qt);else{if("string"!=typeof Qt)throw new Error("Invalid data");{let ta=An;if(!ta){const tl=T.rawSplit(Qt);ta=re.getBestVersionForData(tl,Cn)}mi=T.fromString(Qt,ta||40)}}const fn=re.getBestVersionForData(mi,Cn);if(!fn)throw new Error("The amount of data is too big to be stored in a QR Code");if(An){if(An=0&&fi<=6&&(0===$t||6===$t)||$t>=0&&$t<=6&&(0===fi||6===fi)||fi>=2&&fi<=4&&$t>=2&&$t<=4,!0)}}($t,An),function Z(Qt){const An=Qt.size;for(let Cn=8;Cn=7&&function Ue(Qt,An){const Cn=Qt.size,Sn=re.getEncodedBits(An);let mi,fn,qn;for(let fi=0;fi<18;fi++)mi=Math.floor(fi/3),fn=fi%3+Cn-8-3,qn=1==(Sn>>fi&1),Qt.set(mi,fn,qn,!0),Qt.set(fn,mi,qn,!0)}($t,An),function ht(Qt,An){const Cn=Qt.size;let Sn=-1,mi=Cn-1,fn=7,qn=0;for(let fi=Cn-1;fi>0;fi-=2)for(6===fi&&fi--;;){for(let $t=0;$t<2;$t++)if(!Qt.isReserved(mi,fi-$t)){let ta=!1;qn>>fn&1)),Qt.set(mi,fi-$t,ta),fn--,-1===fn&&(qn++,fn=7)}if(mi+=Sn,mi<0||Cn<=mi){mi-=Sn,Sn=-Sn;break}}}($t,qn),isNaN(Sn)&&(Sn=we.getBestMask($t,ut.bind(null,$t,Cn))),we.applyMask(Sn,$t),ut($t,Cn,Sn),{modules:$t,version:An,errorCorrectionLevel:Cn,maskPattern:Sn,segments:mi}}Xe.create=function(An,Cn){if(typeof An>"u"||""===An)throw new Error("No input text");let mi,fn,Sn=de.M;return typeof Cn<"u"&&(Sn=de.from(Cn.errorCorrectionLevel,de.M),mi=re.from(Cn.version),fn=we.from(Cn.maskPattern),Cn.toSJISFunc&&be.setToSJISFunction(Cn.toSJISFunc)),Wt(An,mi,Sn,fn)}},2636:(Et,Xe,ue)=>{const be=ue(1106);function de(ye){this.genPoly=void 0,this.degree=ye,this.degree&&this.initialize(this.degree)}de.prototype.initialize=function(he){this.degree=he,this.genPoly=be.generateECPolynomial(this.degree)},de.prototype.encode=function(he){if(!this.genPoly)throw new Error("Encoder not initialized");const ee=new Uint8Array(he.length+this.degree);ee.set(he);const Se=be.mod(ee,this.genPoly),we=this.degree-Se.length;if(we>0){const se=new Uint8Array(this.degree);return se.set(Se,we),se}return Se},Et.exports=de},2699:(Et,Xe)=>{let de="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";de=de.replace(/u/g,"\\u");const ye="(?:(?![A-Z0-9 $%*+\\-./:]|"+de+")(?:.|[\r\n]))+";Xe.KANJI=new RegExp(de,"g"),Xe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Xe.BYTE=new RegExp(ye,"g"),Xe.NUMERIC=new RegExp("[0-9]+","g"),Xe.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const he=new RegExp("^"+de+"$"),ee=new RegExp("^[0-9]+$"),Se=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Xe.testKanji=function(se){return he.test(se)},Xe.testNumeric=function(se){return ee.test(se)},Xe.testAlphanumeric=function(se){return Se.test(se)}},2033:(Et,Xe,ue)=>{const be=ue(4016),de=ue(7783),ye=ue(2424),he=ue(5663),ee=ue(449),Se=ue(2699),we=ue(4792),se=ue(4901);function K(Ue){return unescape(encodeURIComponent(Ue)).length}function re(Ue,ut,ht){const yt=[];let Zt;for(;null!==(Zt=Ue.exec(ht));)yt.push({data:Zt[0],index:Zt.index,mode:ut,length:Zt[0].length});return yt}function ie(Ue){const ut=re(Se.NUMERIC,be.NUMERIC,Ue),ht=re(Se.ALPHANUMERIC,be.ALPHANUMERIC,Ue);let yt,Zt;return we.isKanjiModeEnabled()?(yt=re(Se.BYTE,be.BYTE,Ue),Zt=re(Se.KANJI,be.KANJI,Ue)):(yt=re(Se.BYTE_KANJI,be.BYTE,Ue),Zt=[]),ut.concat(ht,yt,Zt).sort(function(Qt,An){return Qt.index-An.index}).map(function(Qt){return{data:Qt.data,mode:Qt.mode,length:Qt.length}})}function k(Ue,ut){switch(ut){case be.NUMERIC:return de.getBitsLength(Ue);case be.ALPHANUMERIC:return ye.getBitsLength(Ue);case be.KANJI:return ee.getBitsLength(Ue);case be.BYTE:return he.getBitsLength(Ue)}}function Ae(Ue,ut){let ht;const yt=be.getBestModeForData(Ue);if(ht=be.from(ut,yt),ht!==be.BYTE&&ht.bit=0?ut[ut.length-1]:null;return yt&&yt.mode===ht.mode?(ut[ut.length-1].data+=ht.data,ut):(ut.push(ht),ut)},[])}(An))},Xe.rawSplit=function(ut){return Xe.fromArray(ie(ut,we.isKanjiModeEnabled()))}},4792:(Et,Xe)=>{let ue;const be=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Xe.getSymbolSize=function(ye){if(!ye)throw new Error('"version" cannot be null or undefined');if(ye<1||ye>40)throw new Error('"version" should be in range from 1 to 40');return 4*ye+17},Xe.getSymbolTotalCodewords=function(ye){return be[ye]},Xe.getBCHDigit=function(de){let ye=0;for(;0!==de;)ye++,de>>>=1;return ye},Xe.setToSJISFunction=function(ye){if("function"!=typeof ye)throw new Error('"toSJISFunc" is not a valid function.');ue=ye},Xe.isKanjiModeEnabled=function(){return typeof ue<"u"},Xe.toSJIS=function(ye){return ue(ye)}},4406:(Et,Xe)=>{Xe.isValid=function(be){return!isNaN(be)&&be>=1&&be<=40}},2088:(Et,Xe,ue)=>{const be=ue(4792),de=ue(4655),ye=ue(2259),he=ue(4016),ee=ue(4406),we=be.getBCHDigit(7973);function K(k,T){return he.getCharCountIndicator(k,T)+4}function re(k,T){let I=0;return k.forEach(function(Z){const Ae=K(Z.mode,T);I+=Ae+Z.getBitsLength()}),I}Xe.from=function(T,I){return ee.isValid(T)?parseInt(T,10):I},Xe.getCapacity=function(T,I,Z){if(!ee.isValid(T))throw new Error("Invalid QR Code version");typeof Z>"u"&&(Z=he.BYTE);const ut=8*(be.getSymbolTotalCodewords(T)-de.getTotalCodewordsCount(T,I));if(Z===he.MIXED)return ut;const ht=ut-K(Z,T);switch(Z){case he.NUMERIC:return Math.floor(ht/10*3);case he.ALPHANUMERIC:return Math.floor(ht/11*2);case he.KANJI:return Math.floor(ht/13);default:return Math.floor(ht/8)}},Xe.getBestVersionForData=function(T,I){let Z;const Ae=ye.from(I,ye.M);if(Array.isArray(T)){if(T.length>1)return function ie(k,T){for(let I=1;I<=40;I++)if(re(k,I)<=Xe.getCapacity(I,T,he.MIXED))return I}(T,Ae);if(0===T.length)return 1;Z=T[0]}else Z=T;return function se(k,T,I){for(let Z=1;Z<=40;Z++)if(T<=Xe.getCapacity(Z,I,k))return Z}(Z.mode,Z.getLength(),Ae)},Xe.getEncodedBits=function(T){if(!ee.isValid(T)||T<7)throw new Error("Invalid QR Code version");let I=T<<12;for(;be.getBCHDigit(I)-we>=0;)I^=7973<{const be=ue(6355);Xe.render=function(ee,Se,we){let se=we,K=Se;typeof se>"u"&&(!Se||!Se.getContext)&&(se=Se,Se=void 0),Se||(K=function ye(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),se=be.getOptions(se);const re=be.getImageWidth(ee.modules.size,se),ie=K.getContext("2d"),k=ie.createImageData(re,re);return be.qrToImageData(k.data,ee,se),function de(he,ee,Se){he.clearRect(0,0,ee.width,ee.height),ee.style||(ee.style={}),ee.height=Se,ee.width=Se,ee.style.height=Se+"px",ee.style.width=Se+"px"}(ie,K,re),ie.putImageData(k,0,0),K},Xe.renderToDataURL=function(ee,Se,we){let se=we;return typeof se>"u"&&(!Se||!Se.getContext)&&(se=Se,Se=void 0),se||(se={}),Xe.render(ee,Se,se).toDataURL(se.type||"image/png",(se.rendererOpts||{}).quality)}},2334:(Et,Xe,ue)=>{const be=ue(6355);function de(ee,Se){const we=ee.a/255,se=Se+'="'+ee.hex+'"';return we<1?se+" "+Se+'-opacity="'+we.toFixed(2).slice(1)+'"':se}function ye(ee,Se,we){let se=ee+Se;return typeof we<"u"&&(se+=" "+we),se}Xe.render=function(Se,we,se){const K=be.getOptions(we),re=Se.modules.size,ie=Se.modules.data,k=re+2*K.margin,T=K.color.light.a?"':"",I="0&&T>0&&ee[k-1]||(se+=re?ye("M",T+we,.5+I+we):ye("m",K,0),K=0,re=!1),T+1',Ue=''+T+I+"\n";return"function"==typeof se&&se(null,Ue),Ue}},6355:(Et,Xe)=>{function ue(be){if("number"==typeof be&&(be=be.toString()),"string"!=typeof be)throw new Error("Color should be defined as hex string");let de=be.slice().replace("#","").split("");if(de.length<3||5===de.length||de.length>8)throw new Error("Invalid hex color: "+be);(3===de.length||4===de.length)&&(de=Array.prototype.concat.apply([],de.map(function(he){return[he,he]}))),6===de.length&&de.push("F","F");const ye=parseInt(de.join(""),16);return{r:ye>>24&255,g:ye>>16&255,b:ye>>8&255,a:255&ye,hex:"#"+de.slice(0,6).join("")}}Xe.getOptions=function(de){de||(de={}),de.color||(de.color={});const he=de.width&&de.width>=21?de.width:void 0;return{width:he,scale:he?4:de.scale||4,margin:typeof de.margin>"u"||null===de.margin||de.margin<0?4:de.margin,color:{dark:ue(de.color.dark||"#000000ff"),light:ue(de.color.light||"#ffffffff")},type:de.type,rendererOpts:de.rendererOpts||{}}},Xe.getScale=function(de,ye){return ye.width&&ye.width>=de+2*ye.margin?ye.width/(de+2*ye.margin):ye.scale},Xe.getImageWidth=function(de,ye){const he=Xe.getScale(de,ye);return Math.floor((de+2*ye.margin)*he)},Xe.qrToImageData=function(de,ye,he){const ee=ye.modules.size,Se=ye.modules.data,we=Xe.getScale(ee,he),se=Math.floor((ee+2*he.margin)*we),K=he.margin*we,re=[he.color.light,he.color.dark];for(let ie=0;ie=K&&k>=K&&ie{Et(Et.s=5349)}]); \ No newline at end of file diff --git a/console/ui/dist/prod/index.html b/console/ui/dist/prod/index.html index d0c585f1d..24e9f6938 100644 --- a/console/ui/dist/prod/index.html +++ b/console/ui/dist/prod/index.html @@ -8,6 +8,6 @@ - + \ No newline at end of file diff --git a/console/ui/dist/prod/static/main.31367176d20770c7.js b/console/ui/dist/prod/static/main.31367176d20770c7.js deleted file mode 100644 index 26de32bc6..000000000 --- a/console/ui/dist/prod/static/main.31367176d20770c7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{5349:(Et,Xe,ue)=>{"use strict";function be(t){return"function"==typeof t}let de=!1;const ye={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else de&&console.log("RxJS: Back to a better error behavior. Thank you. <3");de=t},get useDeprecatedSynchronousErrorHandling(){return de}};function he(t){setTimeout(()=>{throw t},0)}const ee={closed:!0,next(t){},error(t){if(ye.useDeprecatedSynchronousErrorHandling)throw t;he(t)},complete(){}},Se=Array.isArray||(t=>t&&"number"==typeof t.length);function we(t){return null!==t&&"object"==typeof t}const K=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class re{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof re)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof K?e.errors:e),[])}re.EMPTY=((t=new re).closed=!0,t);const k="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class I extends re{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ee;break;case 1:if(!n){this.destination=ee;break}if("object"==typeof n){n instanceof I?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new Z(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new Z(this,n,e,i)}}[k](){return this}static create(n,e,i){const r=new I(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class Z extends I{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;be(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==ee&&(s=Object.create(e),be(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ye.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ye;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):he(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;he(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);ye.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),ye.useDeprecatedSynchronousErrorHandling)throw i;he(i)}}__tryOrSetError(n,e,i){if(!ye.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return ye.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(he(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const ut="function"==typeof Symbol&&Symbol.observable||"@@observable";function ht(t){return t}function Zt(t){return 0===t.length?ht:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let Wt=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Ue(t,n,e){if(t){if(t instanceof I)return t;if(t[k])return t[k]()}return t||n||e?new I(t,n,e):new I(ee)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||ye.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ye.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ye.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Ae(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof I?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Qt(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[ut](){return this}pipe(...e){return 0===e.length?this:Zt(e)(this)}toPromise(e){return new(e=Qt(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Qt(t){if(t||(t=ye.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Cn=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Sn extends re{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class mi extends I{constructor(n){super(n),this.destination=n}}let fn=(()=>{class t extends Wt{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[k](){return new mi(this)}lift(e){const i=new qn(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Cn;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew qn(n,e),t})();class qn extends fn{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):re.EMPTY}}function fi(t){return t&&"function"==typeof t.schedule}function $t(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ta(t,n))}}class ta{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new tl(n,this.project,this.thisArg))}}class tl extends I{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Zn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function na(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const nl=t=>{if(t&&"function"==typeof t[ut])return(t=>n=>{const e=t[ut]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Wr(t))return Zn(t);if(na(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,he),n))(t);if(t&&"function"==typeof t[uo])return(t=>n=>{const e=t[uo]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${we(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function ia(t,n){return new Wt(e=>{const i=new re;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function ho(t,n){return n?function wa(t,n){if(null!=t){if(function Cu(t){return t&&"function"==typeof t[ut]}(t))return function Ls(t,n){return new Wt(e=>{const i=new re;return i.add(n.schedule(()=>{const r=t[ut]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(na(t))return function ds(t,n){return new Wt(e=>{const i=new re;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Wr(t))return ia(t,n);if(function il(t){return t&&"function"==typeof t[uo]}(t)||"string"==typeof t)return function Vl(t,n){if(!t)throw new Error("Iterable cannot be null");return new Wt(e=>{const i=new re;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[uo](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof Wt?t:new Wt(nl(t))}class Hl extends I{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Y extends I{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Le(t,n){if(n.closed)return;if(t instanceof Wt)return t.subscribe(n);let e;try{e=nl(t)(n)}catch(i){n.error(i)}return e}function it(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(it((r,o)=>ho(t(r,o)).pipe($t((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new qt(t,e)))}class qt{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new nn(n,this.project,this.concurrent))}}class nn extends Y{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function M(t=Number.POSITIVE_INFINITY){return it(ht,t)}function at(t,n){return n?ia(t,n):new Wt(Zn(t))}function Mt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return fi(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof Wt?t[0]:M(n)(at(t,e))}function Yt(){return function(n){return n.lift(new zt(n))}}class zt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new vn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class vn extends I{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class _e extends Wt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new re,n.add(this.source.subscribe(new Pt(this.getSubject(),this))),n.closed&&(this._connection=null,n=re.EMPTY)),n}refCount(){return Yt()(this)}}const bt=(()=>{const t=_e.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Pt extends mi{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class pn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function Jt(){return new fn}function Je(){return t=>Yt()(function Lt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new pn(r,n));const o=Object.create(i,bt);return o.source=i,o.subjectFactory=r,o}}(Jt)(t))}function Qe(t){for(let n in t)if(t[n]===Qe)return n;throw Error("Could not find renamed property on target object.")}function St(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function kn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(kn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Br(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const g1=Qe({__forward_ref__:Qe});function ji(t){return t.__forward_ref__=ji,t.toString=function(){return kn(this())},t}function Mi(t){return ET(t)?t():t}function ET(t){return"function"==typeof t&&t.hasOwnProperty(g1)&&t.__forward_ref__===ji}function AT(t){return t&&!!t.\u0275providers}const fx="https://g.co/ng/security#xss";class jt extends Error{constructor(n,e){super(px(n,e)),this.code=n}}function px(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Gi(t){return"string"==typeof t?t:null==t?"":String(t)}function mx(t,n){throw new jt(-201,!1)}function io(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}function It(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Di(t){return{providers:t.providers||[],imports:t.imports||[]}}function gx(t){return hL(t,vx)||hL(t,pL)}function hL(t,n){return t.hasOwnProperty(n)?t[n]:null}function fL(t){return t&&(t.hasOwnProperty(MT)||t.hasOwnProperty(Ave))?t[MT]:null}const vx=Qe({\u0275prov:Qe}),MT=Qe({\u0275inj:Qe}),pL=Qe({ngInjectableDef:Qe}),Ave=Qe({ngInjectorDef:Qe});var Oi=(()=>((Oi=Oi||{})[Oi.Default=0]="Default",Oi[Oi.Host=1]="Host",Oi[Oi.Self=2]="Self",Oi[Oi.SkipSelf=4]="SkipSelf",Oi[Oi.Optional=8]="Optional",Oi))();let OT;function Hc(t){const n=OT;return OT=t,n}function mL(t,n,e){const i=gx(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Oi.Optional?null:void 0!==n?n:void mx(kn(t))}const Bo=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),v1={},IT="__NG_DI_FLAG__",yx="ngTempTokenPath",Ove="ngTokenPath",Ive=/\n/gm,Nve="\u0275",gL="__source";let y1;function kg(t){const n=y1;return y1=t,n}function Fve(t,n=Oi.Default){if(void 0===y1)throw new jt(-203,!1);return null===y1?mL(t,void 0,n):y1.get(t,n&Oi.Optional?null:void 0,n)}function xt(t,n=Oi.Default){return(function Mve(){return OT}()||Fve)(Mi(t),n)}function Vi(t,n=Oi.Default){return xt(t,_x(n))}function _x(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function NT(t){const n=[];for(let e=0;e((Ed=Ed||{})[Ed.OnPush=0]="OnPush",Ed[Ed.Default=1]="Default",Ed))(),Su=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Su||(Su={})),Su))();const Th={},Qr=[],bx=Qe({\u0275cmp:Qe}),FT=Qe({\u0275dir:Qe}),PT=Qe({\u0275pipe:Qe}),yL=Qe({\u0275mod:Qe}),Eh=Qe({\u0275fac:Qe}),b1=Qe({__NG_ELEMENT_ID__:Qe});let Lve=0;function Vt(t){return Dh(()=>{const n=bL(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ed.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Su.Emulated,id:"c"+Lve++,styles:t.styles||Qr,_:null,schemas:t.schemas||null,tView:null};xL(e);const i=t.dependencies;return e.directiveDefs=xx(i,!1),e.pipeDefs=xx(i,!0),e})}function $ve(t){return ro(t)||rl(t)}function Vve(t){return null!==t}function Ii(t){return Dh(()=>({type:t.type,bootstrap:t.bootstrap||Qr,declarations:t.declarations||Qr,imports:t.imports||Qr,exports:t.exports||Qr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function _L(t,n){if(null==t)return Th;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function un(t){return Dh(()=>{const n=bL(t);return xL(n),n})}function _l(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ro(t){return t[bx]||null}function rl(t){return t[FT]||null}function Ul(t){return t[PT]||null}function dc(t,n){const e=t[yL]||null;if(!e&&!0===n)throw new Error(`Type ${kn(t)} does not have '\u0275mod' property.`);return e}function bL(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||Qr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_L(t.inputs,n),outputs:_L(t.outputs)}}function xL(t){t.features?.forEach(n=>n(t))}function xx(t,n){if(!t)return null;const e=n?Ul:$ve;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(Vve)}const Ah=0,$n=1,ir=2,hs=3,ku=4,zp=5,ol=6,Tg=7,ks=8,wx=9,Cx=10,lr=11,RT=12,x1=13,wL=14,Eg=15,sl=16,w1=17,Ag=18,Ad=19,C1=20,CL=21,$o=22,jT=1,SL=2,Sx=7,kx=8,Mg=9,bl=10;function hc(t){return Array.isArray(t)&&"object"==typeof t[jT]}function Du(t){return Array.isArray(t)&&!0===t[jT]}function LT(t){return 0!=(4&t.flags)}function S1(t){return t.componentOffset>-1}function Dx(t){return 1==(1&t.flags)}function Tu(t){return!!t.template}function Uve(t){return 0!=(256&t[ir])}function Gp(t,n){return t.hasOwnProperty(Eh)?t[Eh]:null}class Wve{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ei(){return TL}function TL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Yve),qve}function qve(){const t=AL(this),n=t?.current;if(n){const e=t.previous;if(e===Th)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Yve(t,n,e,i){const r=this.declaredInputs[e],o=AL(t)||function Xve(t,n){return t[EL]=n}(t,{previous:Th,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Wve(l&&l.currentValue,n,a===Th),t[i]=n}ei.ngInherit=!0;const EL="__ngSimpleChanges__";function AL(t){return t[EL]||null}const Uc=function(t,n,e){},ML="svg";function Na(t){for(;Array.isArray(t);)t=t[Ah];return t}function Tx(t,n){return Na(n[t])}function fc(t,n){return Na(n[t.index])}function IL(t,n){return t.data[n]}function Og(t,n){return t[n]}function zl(t,n){const e=n[t];return hc(e)?e:e[Ah]}function Ex(t){return 64==(64&t[ir])}function Sf(t,n){return null==n?null:t[n]}function NL(t){t[Ag]=0}function $T(t,n){t[zp]+=n;let e=t,i=t[hs];for(;null!==i&&(1===n&&1===e[zp]||-1===n&&0===e[zp]);)i[zp]+=n,e=i,i=i[hs]}const Wi={lFrame:UL(null),bindingsEnabled:!0};function PL(){return Wi.bindingsEnabled}function Xt(){return Wi.lFrame.lView}function $r(){return Wi.lFrame.tView}function ze(t){return Wi.lFrame.contextLView=t,t[ks]}function Ge(t){return Wi.lFrame.contextLView=null,t}function Fa(){let t=RL();for(;null!==t&&64===t.type;)t=t.parent;return t}function RL(){return Wi.lFrame.currentTNode}function k1(){const t=Wi.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function Md(t,n){const e=Wi.lFrame;e.currentTNode=t,e.isParent=n}function VT(){return Wi.lFrame.isParent}function HT(){Wi.lFrame.isParent=!1}function xl(){const t=Wi.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Mh(){return Wi.lFrame.bindingIndex}function Ig(){return Wi.lFrame.bindingIndex++}function Oh(t){const n=Wi.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function BL(t){Wi.lFrame.inI18n=t}function l0e(t,n){const e=Wi.lFrame;e.bindingIndex=e.bindingRootIndex=t,UT(n)}function UT(t){Wi.lFrame.currentDirectiveIndex=t}function $L(){return Wi.lFrame.currentQueryIndex}function GT(t){Wi.lFrame.currentQueryIndex=t}function u0e(t){const n=t[$n];return 2===n.type?n.declTNode:1===n.type?t[ol]:null}function VL(t,n,e){if(e&Oi.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Oi.Host||(r=u0e(o),null===r||(o=o[Eg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Wi.lFrame=HL();return i.currentTNode=n,i.lView=t,!0}function WT(t){const n=HL(),e=t[$n];Wi.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function HL(){const t=Wi.lFrame,n=null===t?null:t.child;return null===n?UL(t):n}function UL(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function zL(){const t=Wi.lFrame;return Wi.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const GL=zL;function qT(){const t=zL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function wl(){return Wi.lFrame.selectedIndex}function Wp(t){Wi.lFrame.selectedIndex=t}function es(){const t=Wi.lFrame;return IL(t.tView,t.selectedIndex)}function lt(){Wi.lFrame.currentNamespace=ML}function qp(){!function p0e(){Wi.lFrame.currentNamespace=null}()}function Ax(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[Ag]+=65536),(a>11>16&&(3&t[ir])===n){t[ir]+=2048,Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}else{Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}const Ng=-1;class D1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function JT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[Eg],e--;return i}let KT=!0;function Fx(t){const n=KT;return KT=t,n}const KL=255,QL=5;let w0e=0;const Od={};function Px(t,n){const e=ZL(t,n);if(-1!==e)return e;const i=n[$n];i.firstCreatePass&&(t.injectorIndex=n.length,QT(i.data,t),QT(n,null),QT(i.blueprint,null));const r=ZT(t,n),o=t.injectorIndex;if(JL(r)){const s=Ix(r),a=Nx(r,n),l=a[$n].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function QT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function ZL(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ZT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=s5(r),null===i)return Ng;if(e++,r=r[Eg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Ng}function eE(t,n,e){!function C0e(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(b1)&&(i=e[b1]),null==i&&(i=e[b1]=w0e++);const r=i&KL;n.data[t+(r>>QL)]|=1<=0?n&KL:T0e:n}(e);if("function"==typeof o){if(!VL(n,t,i))return i&Oi.Host?e5(r,0,i):t5(n,e,i,r);try{const s=o(i);if(null!=s||i&Oi.Optional)return s;mx()}finally{GL()}}else if("number"==typeof o){let s=null,a=ZL(t,n),l=Ng,c=i&Oi.Host?n[sl][ol]:null;for((-1===a||i&Oi.SkipSelf)&&(l=-1===a?ZT(t,n):n[a+8],l!==Ng&&o5(i,!1)?(s=n[$n],a=Ix(l),n=Nx(l,n)):a=-1);-1!==a;){const u=n[$n];if(r5(o,a,u.data)){const d=k0e(a,n,e,s,i,c);if(d!==Od)return d}l=n[a+8],l!==Ng&&o5(i,n[$n].data[a+8]===c)&&r5(o,a,n)?(s=u,a=Ix(l),n=Nx(l,n)):a=-1}}return r}function k0e(t,n,e,i,r,o){const s=n[$n],a=s.data[t+8],u=Rx(a,s,e,null==i?S1(a)&&KT:i!=s&&0!=(3&a.type),r&Oi.Host&&o===a);return null!==u?Yp(n,s,u,a):Od}function Rx(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&Tu(f)&&f.type===e)return l}return null}function Yp(t,n,e,i){let r=t[e];const o=n.data;if(function y0e(t){return t instanceof D1}(r)){const s=r;s.resolving&&function wve(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new jt(-200,`Circular dependency in DI detected for ${t}${e}`)}(function no(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Gi(t)}(o[e]));const a=Fx(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Hc(s.injectImpl):null;VL(t,i,Oi.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function g0e(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=TL(n);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Hc(l),Fx(a),s.resolving=!1,GL()}}return r}function r5(t,n,e){return!!(e[n+(t>>QL)]&1<{const n=t.prototype.constructor,e=n[Eh]||tE(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Eh]||tE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function tE(t){return ET(t)?()=>{const n=tE(Mi(t));return n&&n()}:Gp(t)}function s5(t){const n=t[$n],e=n.type;return 2===e?n.declTNode:1===e?t[ol]:null}function kf(t){return function S0e(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function nE(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Rg)?l[Rg]:Object.defineProperty(l,Rg,{value:[]})[Rg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Yn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=It({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xp(t,n){t.forEach(e=>Array.isArray(e)?Xp(e,n):n(e))}function l5(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function jx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function M1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function I0e(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function rE(t,n){const e=Bg(t,n);if(e>=0)return t[1|e]}function Bg(t,n){return function c5(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Gl=Gl||{})[Gl.Important=1]="Important",Gl[Gl.DashCase=2]="DashCase",Gl))();const K0e=/^>|^->||--!>|)/,Z0e="\u200b$1\u200b";const uE=new Map;let e1e=0;const hE="__ngContext__";function al(t,n){hc(n)?(t[hE]=n[C1],function n1e(t){uE.set(t[C1],t)}(n)):t[hE]=n}let fE;function pE(t,n){return fE(t,n)}function R1(t){const n=t[hs];return Du(n)?n[hs]:n}function mE(t){return A5(t[x1])}function gE(t){return A5(t[ku])}function A5(t){for(;null!==t&&!Du(t);)t=t[ku];return t}function Vg(t,n,e,i,r){if(null!=i){let o,s=!1;Du(i)?o=i:hc(i)&&(s=!0,i=i[Ah]);const a=Na(i);0===t&&null!==e?null==r?P5(n,e,a):Jp(n,e,a,r||null,!0):1===t&&null!==e?Jp(n,e,a,r||null,!0):2===t?CE(n,a,s):3===t&&n.destroyNode(a),null!=o&&function k1e(t,n,e,i,r){const o=e[Sx];o!==Na(e)&&Vg(n,t,i,o,r);for(let a=bl;an.replace(Q0e,Z0e))}(n))}function yE(t,n,e){return t.createElement(n,e)}function O5(t,n){const e=t[Mg],i=e.indexOf(n),r=n[hs];512&n[ir]&&(n[ir]&=-513,$T(r,-1)),e.splice(i,1)}function _E(t,n){if(t.length<=bl)return;const e=bl+n,i=t[e];if(i){const r=i[w1];null!==r&&r!==t&&O5(r,i),n>0&&(t[e-1][ku]=i[ku]);const o=jx(t,bl+n);!function p1e(t,n){j1(t,n,n[lr],2,null,null),n[Ah]=null,n[ol]=null}(i[$n],i);const s=o[Ad];null!==s&&s.detachView(o[$n]),i[hs]=null,i[ku]=null,i[ir]&=-65}return i}function I5(t,n){if(!(128&n[ir])){const e=n[lr];e.destroyNode&&j1(t,n,e,3,null,null),function v1e(t){let n=t[x1];if(!n)return bE(t[$n],t);for(;n;){let e=null;if(hc(n))e=n[x1];else{const i=n[bl];i&&(e=i)}if(!e){for(;n&&!n[ku]&&n!==t;)hc(n)&&bE(n[$n],n),n=n[hs];null===n&&(n=t),hc(n)&&bE(n[$n],n),e=n&&n[ku]}n=e}}(n)}}function bE(t,n){if(!(128&n[ir])){n[ir]&=-65,n[ir]|=128,function x1e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===Su.None||o===Su.Emulated)return null}return fc(i,e)}}function Jp(t,n,e,i,r){t.insertBefore(n,e,i,r)}function P5(t,n,e){t.appendChild(n,e)}function R5(t,n,e,i,r){null!==i?Jp(t,n,e,i,r):P5(t,n,e)}function Vx(t,n){return t.parentNode(n)}function j5(t,n,e){return B5(t,n,e)}function L5(t,n,e){return 40&t.type?fc(t,e):null}let xE,zx,DE,Gx,B5=L5;function $5(t,n){B5=t,xE=n}function Hx(t,n,e,i){const r=N5(t,i,n),o=n[lr],a=j5(i.parent||n[ol],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return zx}()?.createHTML(t)||t}function G5(){return void 0!==DE?DE:typeof document<"u"?document:void 0}function TE(){if(void 0===Gx&&(Gx=null,Bo.trustedTypes))try{Gx=Bo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Gx}function W5(t){return TE()?.createHTML(t)||t}function Y5(t){return TE()?.createScriptURL(t)||t}class Kp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${fx})`}}class I1e extends Kp{getTypeName(){return"HTML"}}class N1e extends Kp{getTypeName(){return"Style"}}class F1e extends Kp{getTypeName(){return"Script"}}class P1e extends Kp{getTypeName(){return"URL"}}class R1e extends Kp{getTypeName(){return"ResourceURL"}}function mc(t){return t instanceof Kp?t.changingThisBreaksApplicationSecurity:t}function Id(t,n){const e=function j1e(t){return t instanceof Kp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${fx})`)}return e===n}function X5(t){const n=new z1e(t);return function G1e(){try{return!!(new window.DOMParser).parseFromString(Hg(""),"text/html")}catch{return!1}}()?new U1e(n):n}class U1e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Hg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class z1e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Hg(n),e}}const W1e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wx(t){return(t=String(t)).match(W1e)?t:"unsafe:"+t}function Ih(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function L1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const J5=Ih("area,br,col,hr,img,wbr"),K5=Ih("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Q5=Ih("rp,rt"),EE=L1(J5,L1(K5,Ih("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),L1(Q5,Ih("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),L1(Q5,K5)),AE=Ih("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Z5=L1(AE,Ih("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ih("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),q1e=Ih("script,style,template");class Y1e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!EE.hasOwnProperty(e))return this.sanitizedSomething=!0,!q1e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();EE.hasOwnProperty(e)&&!J5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(e8(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const X1e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,J1e=/([^\#-~ |!])/g;function e8(t){return t.replace(/&/g,"&").replace(X1e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(J1e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let qx;function t8(t,n){let e=null;try{qx=qx||X5(t);let i=n?String(n):"";e=qx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=qx.getInertBodyElement(i)}while(i!==o);return Hg((new Y1e).sanitizeChildren(ME(e)||e))}finally{if(e){const i=ME(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function ME(t){return"content"in t&&function K1e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var To=(()=>((To=To||{})[To.NONE=0]="NONE",To[To.HTML=1]="HTML",To[To.STYLE=2]="STYLE",To[To.SCRIPT=3]="SCRIPT",To[To.URL=4]="URL",To[To.RESOURCE_URL=5]="RESOURCE_URL",To))();function Yx(t){const n=$1();return n?W5(n.sanitize(To.HTML,t)||""):Id(t,"HTML")?W5(mc(t)):t8(G5(),Gi(t))}function B1(t){const n=$1();return n?n.sanitize(To.URL,t)||"":Id(t,"URL")?mc(t):Wx(Gi(t))}function n8(t){const n=$1();if(n)return Y5(n.sanitize(To.RESOURCE_URL,t)||"");if(Id(t,"ResourceURL"))return Y5(mc(t));throw new jt(904,!1)}function $1(){const t=Xt();return t&&t[RT]}const Xx=new Yn("ENVIRONMENT_INITIALIZER"),r8=new Yn("INJECTOR",-1),o8=new Yn("INJECTOR_DEF_TYPES");class s8{get(n,e=v1){if(e===v1){const i=new Error(`NullInjectorError: No provider for ${kn(n)}!`);throw i.name="NullInjectorError",i}return e}}function rye(...t){return{\u0275providers:a8(0,t),\u0275fromNgModule:!0}}function a8(t,...n){const e=[],i=new Set;let r;return Xp(n,o=>{const s=o;OE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&l8(r,e),e}function l8(t,n){for(let e=0;e{n.push(o)})}}function OE(t,n,e,i){if(!(t=Mi(t)))return!1;let r=null,o=fL(t);const s=!o&&ro(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=fL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)OE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Xp(o.imports,u=>{OE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&l8(c,n)}if(!a){const c=Gp(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Qr},{provide:o8,useValue:r,multi:!0},{provide:Xx,useValue:()=>xt(r),multi:!0})}const l=o.providers;null==l||a||IE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function IE(t,n){for(let e of t)AT(e)&&(e=e.\u0275providers),Array.isArray(e)?IE(e,n):n(e)}const oye=Qe({provide:String,useValue:Qe});function NE(t){return null!==t&&"object"==typeof t&&oye in t}function Qp(t){return"function"==typeof t}const FE=new Yn("Set Injector scope."),Jx={},aye={};let PE;function Kx(){return void 0===PE&&(PE=new s8),PE}class Gc{}class d8 extends Gc{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,jE(n,s=>this.processProvider(s)),this.records.set(r8,Ug(void 0,this)),r.has("environment")&&this.records.set(Gc,Ug(void 0,this));const o=this.records.get(FE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(o8.multi,Qr,Oi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=kg(this),i=Hc(void 0);try{return n()}finally{kg(e),Hc(i)}}get(n,e=v1,i=Oi.Default){this.assertNotDestroyed(),i=_x(i);const r=kg(this),o=Hc(void 0);try{if(!(i&Oi.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function hye(t){return"function"==typeof t||"object"==typeof t&&t instanceof Yn}(n)&&gx(n);a=l&&this.injectableDefInScope(l)?Ug(RE(n),Jx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Oi.Self?Kx():this.parent).get(n,e=i&Oi.Optional&&e===v1?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[yx]=s[yx]||[]).unshift(kn(n)),r)throw s;return function Rve(t,n,e,i){const r=t[yx];throw n[gL]&&r.unshift(n[gL]),t.message=function jve(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Nve?t.slice(2):t;let r=kn(n);if(Array.isArray(n))r=n.map(kn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):kn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(Ive,"\n ")}`}("\n"+t.message,r,e,i),t[Ove]=r,t[yx]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Hc(o),kg(r)}}resolveInjectorInitializers(){const n=kg(this),e=Hc(void 0);try{const i=this.get(Xx.multi,Qr,Oi.Self);for(const r of i)r()}finally{kg(n),Hc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(kn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new jt(205,!1)}processProvider(n){let e=Qp(n=Mi(n))?n:Mi(n&&n.provide);const i=function cye(t){return NE(t)?Ug(void 0,t.useValue):Ug(h8(t),Jx)}(n);if(Qp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ug(void 0,Jx,!0),r.factory=()=>NT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Jx&&(e.value=aye,e.value=e.factory()),"object"==typeof e.value&&e.value&&function dye(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Mi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function RE(t){const n=gx(t),e=null!==n?n.factory:Gp(t);if(null!==e)return e;if(t instanceof Yn)throw new jt(204,!1);if(t instanceof Function)return function lye(t){const n=t.length;if(n>0)throw M1(n,"?"),new jt(204,!1);const e=function Eve(t){return t&&(t[vx]||t[pL])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new jt(204,!1)}function h8(t,n,e){let i;if(Qp(t)){const r=Mi(t);return Gp(r)||RE(r)}if(NE(t))i=()=>Mi(t.useValue);else if(function u8(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...NT(t.deps||[]));else if(function c8(t){return!(!t||!t.useExisting)}(t))i=()=>xt(Mi(t.useExisting));else{const r=Mi(t&&(t.useClass||t.provide));if(!function uye(t){return!!t.deps}(t))return Gp(r)||RE(r);i=()=>new r(...NT(t.deps))}return i}function Ug(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function jE(t,n){for(const e of t)Array.isArray(e)?jE(e,n):e&&AT(e)?jE(e.\u0275providers,n):n(e)}class fye{}class f8{}class mye{resolveComponentFactory(n){throw function pye(t){const n=Error(`No component factory found for ${kn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let zg=(()=>{class t{}return t.NULL=new mye,t})();function gye(){return Gg(Fa(),Xt())}function Gg(t,n){return new Ni(fc(t,n))}let Ni=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=gye,t})();function vye(t){return t instanceof Ni?t.nativeElement:t}class Wg{}let oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function yye(){const t=Xt(),e=zl(Fa().index,t);return(hc(e)?e:t)[lr]}(),t})(),_ye=(()=>{class t{}return t.\u0275prov=It({token:t,providedIn:"root",factory:()=>null}),t})();class V1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const bye=new V1("15.2.9"),LE={},BE="ngOriginalError";function $E(t){return t[BE]}class qg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&$E(n);for(;e&&$E(e);)e=$E(e);return e||null}}function m8(t){return t.ownerDocument.defaultView}function Nh(t){return t instanceof Function?t():t}function v8(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const y8="ng-template";function Mye(t,n,e){let i=0,r=!0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==v8(f,c,0)||2&i&&c!==h){if(Eu(i))return!1;s=!0}}}}else{if(!s&&!Eu(i)&&!Eu(l))return!1;if(s&&Eu(l))continue;s=!1,i=l|1&i}}return Eu(i)||s}function Eu(t){return 0==(1&t)}function Nye(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Eu(s)&&(n+=x8(o,r),r=""),i=s,o=o||!Eu(i);e++}return""!==r&&(n+=x8(o,r)),n}const qi={};function w(t){w8($r(),Xt(),wl()+t,!1)}function w8(t,n,e,i){if(!i)if(3==(3&n[ir])){const o=t.preOrderCheckHooks;null!==o&&Mx(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Ox(n,o,0,e)}Wp(e)}function D8(t,n=null,e=null,i){const r=T8(t,n,e,i);return r.resolveInjectorInitializers(),r}function T8(t,n=null,e=null,i,r=new Set){const o=[e||Qr,rye(t)];return i=i||("object"==typeof t?void 0:kn(t)),new d8(o,n||Kx(),i||null,r)}let Ca=(()=>{class t{static create(e,i){if(Array.isArray(e))return D8({name:""},i,e,"");{const r=e.name??"";return D8({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=v1,t.NULL=new s8,t.\u0275prov=It({token:t,providedIn:"any",factory:()=>xt(r8)}),t.__NG_ELEMENT_ID__=-1,t})();function ge(t,n=Oi.Default){const e=Xt();return null===e?xt(t,n):n5(Fa(),e,Mi(t),n)}function P8(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i$o&&w8(t,n,$o,!1),Uc(s?2:0,r),e(i,r)}finally{Wp(o),Uc(s?3:1,r)}}function qE(t,n,e){if(LT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,H1(t,e,r.hostVars,qi),r)}function ZE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Gi(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function k_e(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&eA(e)}}function eA(t){for(let i=mE(t);null!==i;i=gE(i))for(let r=bl;r0&&eA(o)}const e=t[$n].components;if(null!==e)for(let i=0;i0&&eA(r)}}function M_e(t,n){const e=zl(n,t),i=e[$n];(function O_e(t,n){for(let e=n.length;e-1&&(_E(n,i),jx(e,i))}this._attachedToViewContainer=!1}I5(this._lView[$n],this._lView)}onDestroy(n){L8(this._lView[$n],this._lView,null,n)}markForCheck(){nw(this._cdRefInjectingView||this._lView)}detach(){this._lView[ir]&=-65}reattach(){this._lView[ir]|=64}detectChanges(){iw(this._lView[$n],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new jt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function g1e(t,n){j1(t,n,n[lr],2,null,null)}(this._lView[$n],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new jt(902,!1);this._appRef=n}}class I_e extends U1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;iw(n[$n],n,n[ks],!1)}checkNoChanges(){}get context(){return null}}class Y8 extends zg{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ro(n);return new z1(e,this.ngModule)}}function X8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class F_e{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=_x(i);const r=this.injector.get(n,LE,i);return r!==LE||e===LE?r:this.parentInjector.get(n,e,i)}}class z1 extends f8{get inputs(){return X8(this.componentDef.inputs)}get outputs(){return X8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function Bye(t){return t.map(Lye).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Gc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new F_e(n,o):n,a=s.get(Wg,null);if(null===a)throw new jt(407,!1);const l=s.get(_ye,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function c_e(t,n,e){return t.selectRootElement(n,e===Su.ShadowDom)}(c,i,this.componentDef.encapsulation):yE(c,u,function N_e(t){const n=t.toLowerCase();return"svg"===n?ML:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=JE(0,null,null,1,0,null,null,null,null,null),p=Zx(null,f,null,h,null,null,a,c,l,s,null);let m,g;WT(p);try{const v=this.componentDef;let y,b=null;v.findHostDirectiveDefs?(y=[],b=new Map,v.findHostDirectiveDefs(v,y,b),y.push(v)):y=[v];const C=function R_e(t,n){const e=t[$n],i=$o;return t[i]=n,Jg(e,i,2,"#host",null)}(p,d),D=function j_e(t,n,e,i,r,o,s,a){const l=r[$n];!function L_e(t,n,e,i){for(const r of t)n.mergedAttrs=T1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(rw(n,n.mergedAttrs,!0),null!==e&&z5(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Zx(r,j8(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&QE(l,t,i.length-1),tw(r,u),r[t.index]=u}(C,d,v,y,p,a,c);g=IL(f,$o),d&&function $_e(t,n,e,i){if(i)JT(t,e,["ng-version",bye.full]);else{const{attrs:r,classes:o}=function $ye(t){const n=[],e=[];let i=1,r=2;for(;i0&&U5(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function V_e(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=T1(r.hostAttrs,e=T1(e,r.hostAttrs))}}(i)}function iA(t){return t===Th?{}:t===Qr?[]:t}function z_e(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function G_e(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function W_e(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function G1(t){return n=>{n.findHostDirectiveDefs=K8,n.hostDirectives=(Array.isArray(t)?t:t()).map(e=>"function"==typeof e?{directive:Mi(e),inputs:Th,outputs:Th}:{directive:Mi(e.directive),inputs:Q8(e.inputs),outputs:Q8(e.outputs)})}}function K8(t,n,e){if(null!==t.hostDirectives)for(const i of t.hostDirectives){const r=rl(i.directive);J_e(r.declaredInputs,i.inputs),K8(r,n,e),e.set(r,i),n.push(r)}}function Q8(t){if(void 0===t||0===t.length)return Th;const n={};for(let e=0;es(Na(C[i.index])):i.index;let b=null;if(!s&&a&&(b=function obe(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,h=!1;else{o=p6(i,n,u,o,!1);const C=e.listen(g,r,o);d.push(o,C),c&&c.push(r,y,v,v+1)}}else o=p6(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?zl(t.index,n):n);let l=f6(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=f6(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function L(t=1){return function d0e(t){return(Wi.lFrame.contextLView=function h0e(t,n){for(;t>0;)n=n[Eg],t--;return n}(t,Wi.lFrame.contextLView))[ks]}(t)}function sbe(t,n){let e=null;const i=function Fye(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function aA(t){return 2|t}function tm(t){return(131068&t)>>2}function lA(t,n){return-131069&t|n<<2}function cA(t){return 1|t}function C6(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?Ef(o):tm(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];hbe(t[a],n)&&(l=!0,t[a+1]=i?cA(u):aA(u)),a=i?Ef(u):tm(u)}l&&(t[e+1]=i?aA(o):cA(o))}function hbe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Bg(t,n)>=0}const aa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function S6(t){return t.substring(aa.key,aa.keyEnd)}function k6(t,n){const e=aa.textEnd;return e===n?-1:(n=aa.keyEnd=function gbe(t,n,e){for(;n32;)n++;return n}(t,aa.key=n,e),sv(t,n,e))}function sv(t,n,e){for(;n=0;e=k6(n,e))pc(t,S6(n),!0)}function Mu(t,n,e,i){const r=Xt(),o=$r(),s=Oh(2);o.firstUpdatePass&&O6(o,t,s,i),n!==qi&&ll(r,s,n)&&N6(o,o.data[wl()],r,r[lr],t,r[s+1]=function Tbe(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=kn(mc(t)))),t}(n,e),i,s)}function Ou(t,n,e,i){const r=$r(),o=Oh(2);r.firstUpdatePass&&O6(r,null,o,i);const s=Xt();if(e!==qi&&ll(s,o,e)){const a=r.data[wl()];if(P6(a,i)&&!M6(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Br(l,e||"")),oA(r,a,s,e,i)}else!function Dbe(t,n,e,i,r,o,s,a){r===qi&&(r=Qr);let l=0,c=0,u=0=t.expandoStartIndex}function O6(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[wl()],s=M6(t,e);P6(o,i)&&null===n&&!s&&(n=!1),n=function bbe(t,n,e,i){const r=function zT(t){const n=Wi.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Y1(e=uA(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=uA(r,t,n,e,i),null===o){let l=function xbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==tm(i))return t[Ef(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=uA(null,t,n,l[1],i),l=Y1(l,n.attrs,i),function wbe(t,n,e,i){t[Ef(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function Cbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=Ef(t[a+1]);t[i+1]=lw(h,a),0!==h&&(t[h+1]=lA(t[h+1],i)),t[a+1]=function lbe(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=lw(a,0),0!==a&&(t[a+1]=lA(t[a+1],i)),a=i;else t[i+1]=lw(l,0),0===a?a=i:t[l+1]=lA(t[l+1],i),l=i;c&&(t[i+1]=aA(t[i+1])),C6(t,u,i,!0),C6(t,u,i,!1),function dbe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Bg(o,n)>=0&&(e[i+1]=cA(e[i+1]))}(n,u,t,i,o),s=lw(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function uA(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===qi&&(h=d?Qr:void 0);let f=d?rE(h,i):u===i?h:void 0;if(c&&!cw(f)&&(f=rE(l,i)),cw(f)&&(a=f,s))return a;const p=t[r+1];r=s?Ef(p):tm(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=rE(l,i))}return a}function cw(t){return void 0!==t}function P6(t,n){return 0!=(t.flags&(n?8:16))}function O(t,n=""){const e=Xt(),i=$r(),r=t+$o,o=i.firstCreatePass?Jg(i,r,1,n,null):i.data[r],s=e[r]=vE(e[lr],n);Hx(i,e,s,o),Md(o,!1)}function wt(t){return bn("",t,""),wt}function bn(t,n,e){const i=Xt(),r=Qg(i,t,n,e);return r!==qi&&Fh(i,wl(),r),bn}function Af(t,n,e,i,r){const o=Xt(),s=Zg(o,t,n,e,i,r);return s!==qi&&Fh(o,wl(),s),Af}function ql(t,n,e){const i=Xt();return ll(i,Ig(),n)&&gc($r(),es(),i,t,n,i[lr],e,!0),ql}const nm=void 0;var Gbe=["en",[["a","p"],["AM","PM"],nm],[["AM","PM"],nm,nm],[["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"]],nm,[["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"]],nm,[["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}",nm,"{1} 'at' {0}",nm],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function zbe(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let av={};function kl(t){const n=function Wbe(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=nB(n);if(e)return e;const i=n.split("-")[0];if(e=nB(i),e)return e;if("en"===i)return Gbe;throw new jt(701,!1)}function nB(t){return t in av||(av[t]=Bo.ng&&Bo.ng.common&&Bo.ng.common.locales&&Bo.ng.common.locales[t]),av[t]}var Nn=(()=>((Nn=Nn||{})[Nn.LocaleId=0]="LocaleId",Nn[Nn.DayPeriodsFormat=1]="DayPeriodsFormat",Nn[Nn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Nn[Nn.DaysFormat=3]="DaysFormat",Nn[Nn.DaysStandalone=4]="DaysStandalone",Nn[Nn.MonthsFormat=5]="MonthsFormat",Nn[Nn.MonthsStandalone=6]="MonthsStandalone",Nn[Nn.Eras=7]="Eras",Nn[Nn.FirstDayOfWeek=8]="FirstDayOfWeek",Nn[Nn.WeekendRange=9]="WeekendRange",Nn[Nn.DateFormat=10]="DateFormat",Nn[Nn.TimeFormat=11]="TimeFormat",Nn[Nn.DateTimeFormat=12]="DateTimeFormat",Nn[Nn.NumberSymbols=13]="NumberSymbols",Nn[Nn.NumberFormats=14]="NumberFormats",Nn[Nn.CurrencyCode=15]="CurrencyCode",Nn[Nn.CurrencySymbol=16]="CurrencySymbol",Nn[Nn.CurrencyName=17]="CurrencyName",Nn[Nn.Currencies=18]="Currencies",Nn[Nn.Directionality=19]="Directionality",Nn[Nn.PluralCase=20]="PluralCase",Nn[Nn.ExtraData=21]="ExtraData",Nn))();const qbe=["zero","one","two","few","many"],lv="en-US",uw={marker:"element"},dw={marker:"ICU"};var fs=(()=>((fs=fs||{})[fs.SHIFT=2]="SHIFT",fs[fs.APPEND_EAGERLY=1]="APPEND_EAGERLY",fs[fs.COMMENT=2]="COMMENT",fs))();let iB=lv;function rB(t){(function Vc(t,n){null==t&&io(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(iB=t.toLowerCase().replace(/_/g,"-"))}function oB(t,n,e){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?L5(t,0,e):Na(e[r])}function sB(t,n,e,i,r){const o=n.insertBeforeIndex;if(Array.isArray(o)){let s=i,a=null;if(3&n.type||(a=s,s=r),null!==s&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];lB(i)||Kbe(i,n)&&null===Qbe(i)&&Zbe(i,n.index)}}function lB(t){return!(64&t.type)}function Kbe(t,n){return lB(n)||t.index>n.index}function Qbe(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function Zbe(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:($5(oB,sB),t.insertBeforeIndex=n)}function X1(t,n){const e=t.data[n];return null===e||"string"==typeof e?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function nxe(t,n,e){const i=GE(t,e,64,null,null);return aB(n,i),i}function hw(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}function cB(t){return t>>>17}function uB(t){return(131070&t)>>>1}let J1=0,K1=0;function hB(t,n,e,i){const r=e[lr];let s,o=null;for(let a=0;a>>1,e),null,null,f,p,null)}else switch(l){case dw:const c=n[++a],u=n[++a];null===e[u]&&al(e[u]=f1e(r,c),e);break;case uw:const d=n[++a],h=n[++a];null===e[h]&&al(e[h]=yE(r,d,null),e)}}}function fB(t,n,e,i,r){for(let o=0;o>>2;switch(3&u){case 1:const h=e[++c],f=e[++c],p=t.data[d];"string"==typeof p?ZE(n[lr],n[d],null,p,h,l,f):gc(t,p,n,h,l,n[lr],f,!1);break;case 0:const m=n[d];null!==m&&M5(n[lr],m,l);break;case 2:axe(t,X1(t,d),n,l);break;case 3:pB(t,X1(t,d),i,n)}}}}else{const l=e[o+1];if(l>0&&3==(3&l)){const u=X1(t,l>>>2);n[u.currentCaseLViewIndex]<0&&pB(t,u,i,n)}}o+=a}}function pB(t,n,e,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=J1;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),fB(t,i,n.update[r],e,o)}}function axe(t,n,e,i){const r=function lxe(t,n){let e=t.cases.indexOf(n);if(-1===e)switch(t.type){case 1:{const i=function Ybe(t,n){const e=function tB(t){return kl(t)[Nn.PluralCase]}(n)(parseInt(t,10)),i=qbe[e];return void 0!==i?i:"other"}(n,function Jbe(){return iB}());e=t.cases.indexOf(i),-1===e&&"other"!==i&&(e=t.cases.indexOf("other"));break}case 0:e=t.cases.indexOf("other")}return-1===e?null:e}(n,i);if(hw(n,e)!==r&&(mB(t,n,e),e[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const s=e[n.anchorIdx];s&&hB(t,n.create[r],e,s)}}function mB(t,n,e){let i=hw(n,e);if(null!==i){const r=n.remove[i];for(let o=0;o0){const a=Tx(s,e);null!==a&&CE(e[lr],a)}else mB(t,X1(t,~s),e)}}}function cxe(){const t=[];let e,i,n=-1;function o(a,l){n=0;const c=hw(a,l);i=null!==c?a.remove[c]:Qr}function s(){if(n0?e[a]:(t.push(n,i),o(e[$n].data[~a],e),s())}return 0===t.length?null:(i=t.pop(),n=t.pop(),s())}return function r(a,l){for(e=l;t.length;)t.pop();return o(a.value,l),s}}const fw=/\ufffd(\d+):?\d*\ufffd/gi,dxe=/\ufffd(\d+)\ufffd/,vB=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Q1="\ufffd",hxe=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,fxe=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,pxe=/\uE500/g;function yB(t,n,e,i,r,o,s){const a=H1(t,i,1,null);let l=a<e.length&&e.push(l)}return{type:i,mainBinding:r,cases:n,values:e}}function dA(t){if(!t)return[];let n=0;const e=[],i=[],r=/[{}]/g;let o;for(r.lastIndex=0;o=r.exec(t);){const a=o.index;if("}"==o[0]){if(e.pop(),0==e.length){const l=t.substring(n,a);vB.test(l)?i.push(wxe(l)):i.push(l),n=a+1}}else{if(0==e.length){const l=t.substring(n,a);i.push(l),n=a+1}e.push("{")}}const s=t.substring(n);return i.push(s),i}function Cxe(t,n,e,i,r,o,s,a){const l=[],c=[],u=[];n.cases.push(o),n.create.push(l),n.remove.push(c),n.update.push(u);const h=X5(G5()).getInertBodyElement(s),f=ME(h)||h;return f?wB(t,n,e,i,l,c,u,f,r,a,0):0}function wB(t,n,e,i,r,o,s,a,l,c,u){let d=0,h=a.firstChild;for(;h;){const f=H1(t,e,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,m=p.tagName.toLowerCase();if(EE.hasOwnProperty(m)){hA(r,uw,m,l,f),t.data[f]=m;const b=p.attributes;for(let C=0;C>>fs.SHIFT;let d=t[u];null===d&&(d=t[u]=(s&fs.COMMENT)===fs.COMMENT?r.createComment(a):vE(r,a)),c&&null!==e&&Jp(r,e,d,i,!1)}})(r,l.create,u,a&&8&a.type?r[a.index]:null),BL(!0)}function Pa(t,n,e){kB(t,n,e),function DB(){BL(!1)}()}function cv(t){return function rxe(t){t&&(J1|=1<0){const i=t.data[e];fB(t,n,Array.isArray(i)?i:i.update,Mh()-K1-1,J1)}J1=0,K1=0}($r(),Xt(),t+$o)}function fA(t,n,e,i,r){if(t=Mi(t),Array.isArray(t))for(let o=0;o>20;if(Qp(t)||!t.multi){const f=new D1(l,r,ge),p=mA(a,n,r?u:u+h,d);-1===p?(eE(Px(c,s),o,a),pA(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=mA(a,n,u+h,d),p=mA(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){eE(Px(c,s),o,a);const v=function Vxe(t,n,e,i,r){const o=new D1(t,e,ge);return o.multi=[],o.index=n,o.componentProviders=0,TB(o,r,i&&!e),o}(r?$xe:Bxe,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),pA(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else pA(o,t,f>-1?f:p,TB(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function pA(t,n,e,i){const r=Qp(n),o=function sye(t){return!!t.useClass}(n);if(r||o){const l=(o?Mi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function TB(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function mA(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Lxe(t,n,e){const i=$r();if(i.firstCreatePass){const r=Tu(t);fA(e,i.data,i.blueprint,r,!0),fA(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class uv{}class EB{}class AB extends uv{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Y8(this);const i=dc(n);this._bootstrapComponents=Nh(i.bootstrap),this._r3Injector=T8(n,e,[{provide:uv,useValue:this},{provide:zg,useValue:this.componentFactoryResolver}],kn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class vA extends EB{constructor(n){super(),this.moduleType=n}create(n){return new AB(this.moduleType,n)}}class Uxe extends uv{constructor(n,e,i){super(),this.componentFactoryResolver=new Y8(this),this.instance=null;const r=new d8([...n,{provide:uv,useValue:this},{provide:zg,useValue:this.componentFactoryResolver}],e||Kx(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function pw(t,n,e=null){return new Uxe(t,n,e).injector}let zxe=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=a8(0,e.type),r=i.length>0?pw([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=It({token:t,providedIn:"environment",factory:()=>new t(xt(Gc))}),t})();function Bs(t){t.getStandaloneInjector=n=>n.get(zxe).getOrCreateStandaloneInjector(t)}function cl(t,n,e){const i=xl()+t,r=Xt();return r[i]===qi?Fd(r,i,e?n.call(e):n()):function W1(t,n){return t[n]}(r,i)}function Zi(t,n,e,i){return RB(Xt(),xl(),t,n,e,i)}function Rr(t,n,e,i,r){return function jB(t,n,e,i,r,o,s){const a=n+e;return Zp(t,a,r,o)?Fd(t,a+2,s?i.call(s,r,o):i(r,o)):ny(t,a+2)}(Xt(),xl(),t,n,e,i,r)}function ty(t,n,e,i,r,o){return function LB(t,n,e,i,r,o,s,a){const l=n+e;return function aw(t,n,e,i,r){const o=Zp(t,n,e,i);return ll(t,n+2,r)||o}(t,l,r,o,s)?Fd(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):ny(t,l+3)}(Xt(),xl(),t,n,e,i,r,o)}function ny(t,n){const e=t[n];return e===qi?void 0:e}function RB(t,n,e,i,r,o){const s=n+e;return ll(t,s,r)?Fd(t,s+1,o?i.call(o,r):i(r)):ny(t,s+1)}function _A(t,n){const e=$r();let i;const r=t+$o;e.firstCreatePass?(i=function owe(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Gp(i.type)),s=Hc(ge);try{const a=Fx(!1),l=o();return Fx(a),function nbe(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Xt(),r,l),l}finally{Hc(s)}}function bA(t,n,e){const i=t+$o,r=Xt(),o=Og(r,i);return function iy(t,n){return t[$n].data[n].pure}(r,i)?RB(r,xl(),n,o.transform,e,o):o.transform(e)}function xA(t){return n=>{setTimeout(t,void 0,n)}}const ot=class uwe extends fn{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=xA(o),r&&(r=xA(r)),s&&(s=xA(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof re&&n.add(a),a}};function dwe(){return this._results[Symbol.iterator]()}class wA{get changes(){return this._changes||(this._changes=new ot)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=wA.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=dwe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function zc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function M0e(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=pwe,t})();const hwe=fo,fwe=class extends hwe{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Zx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[w1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ad];return null!==s&&(r[Ad]=s.createEmbeddedView(i)),WE(i,r,n),new U1(r)}};function pwe(){return mw(Fa(),Xt())}function mw(t,n){return 4&t.type?new fwe(n,t,Gg(t,n)):null}let Yl=(()=>{class t{}return t.__NG_ELEMENT_ID__=mwe,t})();function mwe(){return UB(Fa(),Xt())}const gwe=Yl,VB=class extends gwe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Gg(this._hostTNode,this._hostLView)}get injector(){return new Fg(this._hostTNode,this._hostLView)}get parentInjector(){const n=ZT(this._hostTNode,this._hostLView);if(JL(n)){const e=Nx(n,this._hostLView),i=Ix(n);return new Fg(e[$n].data[i+8],e)}return new Fg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=HB(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-bl}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function A1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new z1(ro(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Gc,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[$n];if(function e0e(t){return Du(t[hs])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[hs],h=new VB(d,d[ol],d[hs]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function y1e(t,n,e,i){const r=bl+i,o=e.length;i>0&&(e[r-1][ku]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=bl;d{class t{constructor(e){this.appInits=e,this.resolve=vw,this.reject=vw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(xt(yw,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oy=new Yn("AppId",{providedIn:"root",factory:function h$(){return`${FA()}${FA()}${FA()}`}});function FA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const f$=new Yn("Platform Initializer"),sy=new Yn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),p$=new Yn("AnimationModuleType");let Hwe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const vc=new Yn("LocaleId",{providedIn:"root",factory:()=>Vi(vc,Oi.Optional|Oi.SkipSelf)||function Uwe(){return typeof $localize<"u"&&$localize.locale||lv}()});class Gwe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let m$=(()=>{class t{compileModuleSync(e){return new vA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Nh(dc(e).declarations).reduce((s,a)=>{const l=ro(a);return l&&s.push(new z1(l)),s},[]);return new Gwe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ywe=(()=>Promise.resolve(0))();function PA(t){typeof Zone>"u"?Ywe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ur{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ot(!1),this.onMicrotaskEmpty=new ot(!1),this.onStable=new ot(!1),this.onError=new ot(!1),typeof Zone>"u")throw new jt(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Xwe(){let t=Bo.requestAnimationFrame,n=Bo.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Qwe(t){const n=()=>{!function Kwe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Bo,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,jA(t),t.isCheckStableRunning=!0,RA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),jA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return y$(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),_$(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return y$(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),_$(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,jA(t),RA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ur.isInAngularZone())throw new jt(909,!1)}static assertNotInAngularZone(){if(ur.isInAngularZone())throw new jt(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Jwe,vw,vw);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Jwe={};function RA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function jA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function y$(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _$(t){t._nesting--,RA(t)}class Zwe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ot,this.onMicrotaskEmpty=new ot,this.onStable=new ot,this.onError=new ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const b$=new Yn(""),bw=new Yn("");let $A,LA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$A||(function eCe(t){$A=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ur.assertNotInAngularZone(),PA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())PA(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(xt(ur),xt(BA),xt(bw))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),BA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return $A?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Rh=!1;let Mf=null;const x$=new Yn("AllowMultipleToken"),VA=new Yn("PlatformDestroyListeners"),w$=new Yn("appBootstrapListener");class C${constructor(n,e){this.name=n,this.token=e}}function k$(t,n,e=[]){const i=`Platform: ${n}`,r=new Yn(i);return(o=[])=>{let s=HA();if(!s||s.injector.get(x$,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function iCe(t){if(Mf&&!Mf.get(x$,!1))throw new jt(400,!1);Mf=t;const n=t.get(T$);(function S$(t){const n=t.get(f$,null);n&&n.forEach(e=>e())})(t)}(function D$(t=[],n){return Ca.create({name:n,providers:[{provide:FE,useValue:"platform"},{provide:VA,useValue:new Set([()=>Mf=null])},...t]})}(a,i))}return function oCe(t){const n=HA();if(!n)throw new jt(401,!1);return n}()}}function HA(){return Mf?.get(T$)??null}let T$=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function A$(t,n){let e;return e="noop"===t?new Zwe:("zone.js"===t?void 0:t)||new ur(n),e}(i?.ngZone,function E$(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:ur,useValue:r}];return r.run(()=>{const s=Ca.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(qg,null);if(!l)throw new jt(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{xw(this._modules,a),c.unsubscribe()})}),function M$(t,n,e){try{const i=e();return q1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(_w);return c.runInitializers(),c.donePromise.then(()=>(rB(a.injector.get(vc,lv)||lv),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=O$({},i);return function tCe(t,n,e){const i=new vA(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(jh);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new jt(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new jt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(VA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(xt(Ca))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function O$(t,n){return Array.isArray(n)?n.reduce(O$,t):{...t,...n}}let jh=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Wt(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Wt(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ur.assertNotInAngularZone(),PA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ur.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Mt(o,s.pipe(Je()))}bootstrap(e,i){const r=e instanceof f8;if(!this._injector.get(_w).done){!r&&function Dg(t){const n=ro(t)||rl(t)||Ul(t);return null!==n&&n.standalone}(e);throw new jt(405,Rh)}let s;s=r?e:this._injector.get(zg).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function nCe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(uv),c=s.create(Ca.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(b$,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),xw(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new jt(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;xw(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(w$,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>xw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new jt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(xt(ur),xt(Gc),xt(qg))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xw(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let $s=(()=>{class t{}return t.__NG_ELEMENT_ID__=aCe,t})();function aCe(t){return function lCe(t,n,e){if(S1(t)&&!e){const i=zl(t.index,n);return new U1(i,i)}return 47&t.type?new U1(n[sl],n):null}(Fa(),Xt(),16==(16&t))}class R${constructor(){}supports(n){return sw(n)}create(n){return new pCe(n)}}const fCe=(t,n)=>n;class pCe{constructor(n){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=n||fCe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new mCe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new j$),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new j$),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class mCe{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gCe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class j${constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new gCe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function L$(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new yCe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class yCe{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $$(){return new Sw([new R$])}let Sw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||$$()),deps:[[t,new I1,new O1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new jt(901,!1)}}return t.\u0275prov=It({token:t,providedIn:"root",factory:$$}),t})();function V$(){return new ay([new B$])}let ay=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||V$()),deps:[[t,new I1,new O1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new jt(901,!1)}}return t.\u0275prov=It({token:t,providedIn:"root",factory:V$}),t})();const xCe=k$(null,"core",[]);let wCe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(xt(jh))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();function fv(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function qA(t,n){const e=ro(t),i=n.elementInjector||Kx();return new z1(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let YA=null;function Lh(){return YA}class kCe{}const vo=new Yn("DocumentToken");let XA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function DCe(){return xt(H$)}()},providedIn:"platform"}),t})();const TCe=new Yn("Location Initialized");let H$=(()=>{class t extends XA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Lh().getBaseHref(this._doc)}onPopState(e){const i=Lh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Lh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){U$()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){U$()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:function(){return function ECe(){return new H$(xt(vo))}()},providedIn:"platform"}),t})();function U$(){return!!window.history.pushState}function JA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function z$(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Bh(t){return t&&"?"!==t[0]?"?"+t:t}let rm=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(W$)},providedIn:"root"}),t})();const G$=new Yn("appBaseHref");let W$=(()=>{class t extends rm{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Vi(vo).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return JA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Bh(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Bh(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Bh(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(xt(XA),xt(G$,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ACe=(()=>{class t extends rm{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=JA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Bh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Bh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(xt(XA),xt(G$,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),KA=(()=>{class t{constructor(e){this._subject=new ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function ICe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(z$(q$(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Bh(i))}normalize(e){return t.stripTrailingSlash(function OCe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,q$(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Bh(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Bh(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Bh,t.joinWithSlash=JA,t.stripTrailingSlash=z$,t.\u0275fac=function(e){return new(e||t)(xt(rm))},t.\u0275prov=It({token:t,factory:function(){return function MCe(){return new KA(xt(rm))}()},providedIn:"root"}),t})();function q$(t){return t.replace(/\/index.html$/,"")}var Xl=(()=>((Xl=Xl||{})[Xl.Decimal=0]="Decimal",Xl[Xl.Percent=1]="Percent",Xl[Xl.Currency=2]="Currency",Xl[Xl.Scientific=3]="Scientific",Xl))(),Vo=(()=>((Vo=Vo||{})[Vo.Format=0]="Format",Vo[Vo.Standalone=1]="Standalone",Vo))(),Yi=(()=>((Yi=Yi||{})[Yi.Narrow=0]="Narrow",Yi[Yi.Abbreviated=1]="Abbreviated",Yi[Yi.Wide=2]="Wide",Yi[Yi.Short=3]="Short",Yi))(),ts=(()=>((ts=ts||{})[ts.Short=0]="Short",ts[ts.Medium=1]="Medium",ts[ts.Long=2]="Long",ts[ts.Full=3]="Full",ts))(),Ei=(()=>((Ei=Ei||{})[Ei.Decimal=0]="Decimal",Ei[Ei.Group=1]="Group",Ei[Ei.List=2]="List",Ei[Ei.PercentSign=3]="PercentSign",Ei[Ei.PlusSign=4]="PlusSign",Ei[Ei.MinusSign=5]="MinusSign",Ei[Ei.Exponential=6]="Exponential",Ei[Ei.SuperscriptingExponent=7]="SuperscriptingExponent",Ei[Ei.PerMille=8]="PerMille",Ei[Ei.Infinity=9]="Infinity",Ei[Ei.NaN=10]="NaN",Ei[Ei.TimeSeparator=11]="TimeSeparator",Ei[Ei.CurrencyDecimal=12]="CurrencyDecimal",Ei[Ei.CurrencyGroup=13]="CurrencyGroup",Ei))();function X$(t,n,e){const i=kl(t),o=Yc([i[Nn.DayPeriodsFormat],i[Nn.DayPeriodsStandalone]],n);return Yc(o,e)}function J$(t,n,e){const i=kl(t),o=Yc([i[Nn.DaysFormat],i[Nn.DaysStandalone]],n);return Yc(o,e)}function QA(t,n,e){const i=kl(t),o=Yc([i[Nn.MonthsFormat],i[Nn.MonthsStandalone]],n);return Yc(o,e)}function kw(t,n){return Yc(kl(t)[Nn.DateFormat],n)}function Dw(t,n){return Yc(kl(t)[Nn.TimeFormat],n)}function Tw(t,n){return Yc(kl(t)[Nn.DateTimeFormat],n)}function qc(t,n){const e=kl(t),i=e[Nn.NumberSymbols][n];if(typeof i>"u"){if(n===Ei.CurrencyDecimal)return e[Nn.NumberSymbols][Ei.Decimal];if(n===Ei.CurrencyGroup)return e[Nn.NumberSymbols][Ei.Group]}return i}function K$(t){if(!t[Nn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Nn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Yc(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function eM(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const HCe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ly={},UCe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var la=(()=>((la=la||{})[la.Short=0]="Short",la[la.ShortGMT=1]="ShortGMT",la[la.Long=2]="Long",la[la.Extended=3]="Extended",la))(),Fi=(()=>((Fi=Fi||{})[Fi.FullYear=0]="FullYear",Fi[Fi.Month=1]="Month",Fi[Fi.Date=2]="Date",Fi[Fi.Hours=3]="Hours",Fi[Fi.Minutes=4]="Minutes",Fi[Fi.Seconds=5]="Seconds",Fi[Fi.FractionalSeconds=6]="FractionalSeconds",Fi[Fi.Day=7]="Day",Fi))(),rr=(()=>((rr=rr||{})[rr.DayPeriods=0]="DayPeriods",rr[rr.Days=1]="Days",rr[rr.Months=2]="Months",rr[rr.Eras=3]="Eras",rr))();function Q$(t,n,e,i){let r=function QCe(t){if(t7(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Ew(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(HCe))return function ZCe(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!t7(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=$h(e,n)||n;let a,s=[];for(;n;){if(a=UCe.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=e7(i,l),r=function KCe(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function JCe(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(e7(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function XCe(t){if(nM[t])return nM[t];let n;switch(t){case"G":case"GG":case"GGG":n=Eo(rr.Eras,Yi.Abbreviated);break;case"GGGG":n=Eo(rr.Eras,Yi.Wide);break;case"GGGGG":n=Eo(rr.Eras,Yi.Narrow);break;case"y":n=Hs(Fi.FullYear,1,0,!1,!0);break;case"yy":n=Hs(Fi.FullYear,2,0,!0,!0);break;case"yyy":n=Hs(Fi.FullYear,3,0,!1,!0);break;case"yyyy":n=Hs(Fi.FullYear,4,0,!1,!0);break;case"Y":n=Iw(1);break;case"YY":n=Iw(2,!0);break;case"YYY":n=Iw(3);break;case"YYYY":n=Iw(4);break;case"M":case"L":n=Hs(Fi.Month,1,1);break;case"MM":case"LL":n=Hs(Fi.Month,2,1);break;case"MMM":n=Eo(rr.Months,Yi.Abbreviated);break;case"MMMM":n=Eo(rr.Months,Yi.Wide);break;case"MMMMM":n=Eo(rr.Months,Yi.Narrow);break;case"LLL":n=Eo(rr.Months,Yi.Abbreviated,Vo.Standalone);break;case"LLLL":n=Eo(rr.Months,Yi.Wide,Vo.Standalone);break;case"LLLLL":n=Eo(rr.Months,Yi.Narrow,Vo.Standalone);break;case"w":n=tM(1);break;case"ww":n=tM(2);break;case"W":n=tM(1,!0);break;case"d":n=Hs(Fi.Date,1);break;case"dd":n=Hs(Fi.Date,2);break;case"c":case"cc":n=Hs(Fi.Day,1);break;case"ccc":n=Eo(rr.Days,Yi.Abbreviated,Vo.Standalone);break;case"cccc":n=Eo(rr.Days,Yi.Wide,Vo.Standalone);break;case"ccccc":n=Eo(rr.Days,Yi.Narrow,Vo.Standalone);break;case"cccccc":n=Eo(rr.Days,Yi.Short,Vo.Standalone);break;case"E":case"EE":case"EEE":n=Eo(rr.Days,Yi.Abbreviated);break;case"EEEE":n=Eo(rr.Days,Yi.Wide);break;case"EEEEE":n=Eo(rr.Days,Yi.Narrow);break;case"EEEEEE":n=Eo(rr.Days,Yi.Short);break;case"a":case"aa":case"aaa":n=Eo(rr.DayPeriods,Yi.Abbreviated);break;case"aaaa":n=Eo(rr.DayPeriods,Yi.Wide);break;case"aaaaa":n=Eo(rr.DayPeriods,Yi.Narrow);break;case"b":case"bb":case"bbb":n=Eo(rr.DayPeriods,Yi.Abbreviated,Vo.Standalone,!0);break;case"bbbb":n=Eo(rr.DayPeriods,Yi.Wide,Vo.Standalone,!0);break;case"bbbbb":n=Eo(rr.DayPeriods,Yi.Narrow,Vo.Standalone,!0);break;case"B":case"BB":case"BBB":n=Eo(rr.DayPeriods,Yi.Abbreviated,Vo.Format,!0);break;case"BBBB":n=Eo(rr.DayPeriods,Yi.Wide,Vo.Format,!0);break;case"BBBBB":n=Eo(rr.DayPeriods,Yi.Narrow,Vo.Format,!0);break;case"h":n=Hs(Fi.Hours,1,-12);break;case"hh":n=Hs(Fi.Hours,2,-12);break;case"H":n=Hs(Fi.Hours,1);break;case"HH":n=Hs(Fi.Hours,2);break;case"m":n=Hs(Fi.Minutes,1);break;case"mm":n=Hs(Fi.Minutes,2);break;case"s":n=Hs(Fi.Seconds,1);break;case"ss":n=Hs(Fi.Seconds,2);break;case"S":n=Hs(Fi.FractionalSeconds,1);break;case"SS":n=Hs(Fi.FractionalSeconds,2);break;case"SSS":n=Hs(Fi.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Mw(la.Short);break;case"ZZZZZ":n=Mw(la.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Mw(la.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Mw(la.Long);break;default:return null}return nM[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Ew(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function $h(t,n){const e=function NCe(t){return kl(t)[Nn.LocaleId]}(t);if(ly[e]=ly[e]||{},ly[e][n])return ly[e][n];let i="";switch(n){case"shortDate":i=kw(t,ts.Short);break;case"mediumDate":i=kw(t,ts.Medium);break;case"longDate":i=kw(t,ts.Long);break;case"fullDate":i=kw(t,ts.Full);break;case"shortTime":i=Dw(t,ts.Short);break;case"mediumTime":i=Dw(t,ts.Medium);break;case"longTime":i=Dw(t,ts.Long);break;case"fullTime":i=Dw(t,ts.Full);break;case"short":const r=$h(t,"shortTime"),o=$h(t,"shortDate");i=Aw(Tw(t,ts.Short),[r,o]);break;case"medium":const s=$h(t,"mediumTime"),a=$h(t,"mediumDate");i=Aw(Tw(t,ts.Medium),[s,a]);break;case"long":const l=$h(t,"longTime"),c=$h(t,"longDate");i=Aw(Tw(t,ts.Long),[l,c]);break;case"full":const u=$h(t,"fullTime"),d=$h(t,"fullDate");i=Aw(Tw(t,ts.Full),[u,d])}return i&&(ly[e][n]=i),i}function Aw(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Nu(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Fi.Hours)0===a&&-12===e&&(a=12);else if(t===Fi.FractionalSeconds)return function zCe(t,n){return Nu(t,3).substring(0,n)}(a,n);const l=qc(s,Ei.MinusSign);return Nu(a,n,l,i,r)}}function Eo(t,n,e=Vo.Format,i=!1){return function(r,o){return function WCe(t,n,e,i,r,o){switch(e){case rr.Months:return QA(n,r,i)[t.getMonth()];case rr.Days:return J$(n,r,i)[t.getDay()];case rr.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function jCe(t){const n=kl(t);return K$(n),(n[Nn.ExtraData][2]||[]).map(i=>"string"==typeof i?eM(i):[eM(i[0]),eM(i[1])])}(n),u=function LCe(t,n,e){const i=kl(t);K$(i);const o=Yc([i[Nn.ExtraData][0],i[Nn.ExtraData][1]],n)||[];return Yc(o,e)||[]}(n,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,m=s>=f.hours&&a>=f.minutes,g=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case la.Short:return(r>=0?"+":"")+Nu(s,2,o)+Nu(Math.abs(r%60),2,o);case la.ShortGMT:return"GMT"+(r>=0?"+":"")+Nu(s,1,o);case la.Long:return"GMT"+(r>=0?"+":"")+Nu(s,2,o)+":"+Nu(Math.abs(r%60),2,o);case la.Extended:return 0===i?"Z":(r>=0?"+":"")+Nu(s,2,o)+":"+Nu(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const qCe=0,Ow=4;function Z$(t){return Ew(t.getFullYear(),t.getMonth(),t.getDate()+(Ow-t.getDay()))}function tM(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=Z$(e),s=function YCe(t){const n=Ew(t,qCe,1).getDay();return Ew(t,0,1+(n<=Ow?Ow:Ow+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Nu(r,t,qc(i,Ei.MinusSign))}}function Iw(t,n=!1){return function(e,i){return Nu(Z$(e).getFullYear(),t,qc(i,Ei.MinusSign),n)}}const nM={};function e7(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function t7(t){return t instanceof Date&&!isNaN(t.valueOf())}const e2e=/^(\d+)?\.((\d+)(-(\d+))?)?$/,n7=22,Nw=".",cy="0",t2e=";",n2e=",",iM="#";function sM(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function o7(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const lM=/\s+/,s7=[];let Of=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=s7,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(lM):s7}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(lM):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(lM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(ge(Sw),ge(ay),ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class h2e{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Un=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new h2e(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),c7(a,r)}});for(let r=0,o=i.length;r{c7(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo),ge(Sw))},t.\u0275dir=un({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function c7(t,n){t.context.$implicit=n.item}let xn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new p2e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){u7("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){u7("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo))},t.\u0275dir=un({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class p2e{constructor(){this.$implicit=null,this.ngIf=null}}function u7(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${kn(n)}'.`)}class cM{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Fw=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),d7=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new cM(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo),ge(Fw,9))},t.\u0275dir=un({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),f7=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Gl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ay),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Fu=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl))},t.\u0275dir=un({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ei]}),t})();let m7=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!function uM(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function o2e(t,n,e){return function rM(t,n,e,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function l2e(t){let i,r,o,s,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf(Nw))>-1&&(n=n.replace(Nw,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===cy;o++);if(o===(a=n.length))i=[0],r=1;else{for(a--;n.charAt(a)===cy;)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(n.charAt(o))}return r>n7&&(i=i.splice(0,n7-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);s&&(c=function a2e(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(o){const y=o.match(e2e);if(null===y)throw new Error(`${o} is not a valid digit info`);const b=y[1],C=y[3],D=y[5];null!=b&&(u=sM(b)),null!=C&&(d=sM(C)),null!=D?h=sM(D):null!=C&&d>h&&(h=d)}!function c2e(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(n,r),e);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=c?p.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,h);let f=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(l=f.every(y=>!y);p0?g=f.splice(p,f.length):(g=f,f=[0]);const v=[];for(f.length>=n.lgSize&&v.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)v.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(qc(e,i)),g.length&&(a+=qc(e,r)+g.join("")),m&&(a+=qc(e,Ei.Exponential)+"+"+m)}else a=qc(e,Ei.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function oM(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(t2e),r=i[0],o=i[1],s=-1!==r.indexOf(Nw)?r.split(Nw):[r.substring(0,r.lastIndexOf(cy)+1),r.substring(r.lastIndexOf(cy)+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf(iM));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();const g7="browser";function v7(t){return t===g7}let V2e=(()=>{class t{}return t.\u0275prov=It({token:t,providedIn:"root",factory:()=>new H2e(xt(vo),window)}),t})();class H2e{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function U2e(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=y7(this.window.history)||y7(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function y7(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class _7{}class gSe extends kCe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class pM extends gSe{static makeCurrent(){!function SCe(t){YA||(YA=t)}(new pM)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function vSe(){return dy=dy||document.querySelector("base"),dy?dy.getAttribute("href"):null}();return null==e?null:function ySe(t){jw=jw||document.createElement("a"),jw.setAttribute("href",t);const n=jw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){dy=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return o7(document.cookie,n)}}let jw,dy=null;const S7=new Yn("TRANSITION_ID"),bSe=[{provide:yw,useFactory:function _Se(t,n,e){return()=>{e.get(_w).donePromise.then(()=>{const i=Lh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const Lw=new Yn("EventManagerPlugins");let Bw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),hy=(()=>{class t extends D7{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const mM={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gM=/%COMP%/g,A7=new Yn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function M7(t,n){return n.flat(100).map(e=>e.replace(gM,t))}function O7(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let $w=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new vM(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof F7?r.applyToHost(e):r instanceof yM&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case Su.Emulated:o=new F7(s,a,i,this.appId,l);break;case Su.ShadowDom:return new ASe(s,a,e,i);default:o=new yM(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(xt(Bw),xt(hy),xt(oy),xt(A7))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class vM{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(mM[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(N7(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(N7(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=mM[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=mM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Gl.DashCase|Gl.Important)?n.style.setProperty(e,i,r&Gl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Gl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,O7(i)):this.eventManager.addEventListener(n,e,O7(i))}}function N7(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class ASe extends vM{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=M7(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class yM extends vM{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=M7(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class F7 extends yM{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function DSe(t){return"_ngcontent-%COMP%".replace(gM,t)}(s),this.hostAttr=function TSe(t){return"_nghost-%COMP%".replace(gM,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let MSe=(()=>{class t extends k7{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const P7=["alt","control","meta","shift"],OSe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ISe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let NSe=(()=>{class t extends k7{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Lh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),P7.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=OSe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),P7.forEach(s=>{s!==r&&(0,ISe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const j7=[{provide:sy,useValue:g7},{provide:f$,useValue:function FSe(){pM.makeCurrent()},multi:!0},{provide:vo,useFactory:function RSe(){return function O1e(t){DE=t}(document),document},deps:[]}],jSe=k$(xCe,"browser",j7),L7=new Yn(""),B7=[{provide:bw,useClass:class xSe{addToWindow(n){Bo.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Bo.getAllAngularTestabilities=()=>n.getAllTestabilities(),Bo.getAllAngularRootElements=()=>n.getAllRootElements(),Bo.frameworkStabilizers||(Bo.frameworkStabilizers=[]),Bo.frameworkStabilizers.push(i=>{const r=Bo.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Lh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:b$,useClass:LA,deps:[ur,BA,bw]},{provide:LA,useClass:LA,deps:[ur,BA,bw]}],$7=[{provide:FE,useValue:"root"},{provide:qg,useFactory:function PSe(){return new qg},deps:[]},{provide:Lw,useClass:MSe,multi:!0,deps:[vo,ur,sy]},{provide:Lw,useClass:NSe,multi:!0,deps:[vo]},{provide:$w,useClass:$w,deps:[Bw,hy,oy,A7]},{provide:Wg,useExisting:$w},{provide:D7,useExisting:hy},{provide:hy,useClass:hy,deps:[vo]},{provide:Bw,useClass:Bw,deps:[Lw,ur]},{provide:_7,useClass:wSe,deps:[]},[]];let bM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:oy,useValue:e.appId},{provide:S7,useExisting:oy},bSe]}}}return t.\u0275fac=function(e){return new(e||t)(xt(L7,12))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[...$7,...B7],imports:[If,wCe]}),t})(),V7=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function BSe(){return new V7(xt(vo))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let wM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new(e||t):xt(z7),i},providedIn:"root"}),t})(),z7=(()=>{class t extends wM{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case To.NONE:return i;case To.HTML:return Id(i,"HTML")?mc(i):t8(this._doc,String(i)).toString();case To.STYLE:return Id(i,"Style")?mc(i):i;case To.SCRIPT:if(Id(i,"Script"))return mc(i);throw new Error("unsafe value used in a script context");case To.URL:return Id(i,"URL")?mc(i):Wx(String(i));case To.RESOURCE_URL:if(Id(i,"ResourceURL"))return mc(i);throw new Error(`unsafe value used in a resource URL context (see ${fx})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${fx})`)}}bypassSecurityTrustHtml(e){return function L1e(t){return new I1e(t)}(e)}bypassSecurityTrustStyle(e){return function B1e(t){return new N1e(t)}(e)}bypassSecurityTrustScript(e){return function $1e(t){return new F1e(t)}(e)}bypassSecurityTrustUrl(e){return function V1e(t){return new P1e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function H1e(t){return new R1e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function zSe(t){return new z7(t.get(vo))}(xt(Ca)),i},providedIn:"root"}),t})();class G7{}class GSe{}const Vh="*";function ul(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ra(t,n=null){return{type:4,styles:n,timings:t}}function W7(t,n=null){return{type:2,steps:t,options:n}}function Or(t){return{type:6,styles:t,offset:null}}function ja(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function q7(t){Promise.resolve().then(t)}class fy{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){q7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Y7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?q7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const CM="!";function X7(t){return new jt(3e3,!1)}function Dke(){return typeof window<"u"&&typeof window.document<"u"}function SM(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ff(t){switch(t.length){case 0:return new fy;case 1:return t[0];default:return new Y7(t)}}function J7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case CM:v=r.get(m);break;case Vh:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function pke(t){return new jt(3502,!1)}();return a}function kM(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&DM(e,"start",t)));break;case"done":t.onDone(()=>i(e&&DM(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&DM(e,"destroy",t)))}}function DM(t,n,e){const o=TM(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function TM(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function yc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function K7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let EM=(t,n)=>!1,Q7=(t,n,e)=>[],Z7=null;function AM(t){const n=t.parentNode||t.host;return n===Z7?null:n}(SM()||typeof Element<"u")&&(Dke()?(Z7=(()=>document.documentElement)(),EM=(t,n)=>{for(;n;){if(n===t)return!0;n=AM(n)}return!1}):EM=(t,n)=>t.contains(n),Q7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let om=null,e9=!1;const t9=EM,n9=Q7;let i9=(()=>{class t{validateStyleProperty(e){return function Eke(t){om||(om=function Ake(){return typeof document<"u"?document.body:null}()||{},e9=!!om.style&&"WebkitAppearance"in om.style);let n=!0;return om.style&&!function Tke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in om.style,!n&&e9&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in om.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return t9(e,i)}getParentElement(e){return AM(e)}query(e,i,r){return n9(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new fy(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),MM=(()=>{class t{}return t.NOOP=new i9,t})();const Mke=1e3,OM="ng-enter",Vw="ng-leave",Hw="ng-trigger",Uw=".ng-trigger",o9="ng-animating",IM=".ng-animating";function Hh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:NM(parseFloat(n[1]),n[2])}function NM(t,n){return"s"===n?t*Mke:t}function zw(t,n,e){return t.hasOwnProperty("duration")?t:function Ike(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(X7()),{duration:0,delay:0,easing:""};r=NM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=NM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function WSe(){return new jt(3100,!1)}()),a=!0),o<0&&(n.push(function qSe(){return new jt(3101,!1)}()),a=!0),a&&n.splice(l,0,X7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function py(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function s9(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Pf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function l9(t,n,e){return e?n+":"+e+";":""}function c9(t){let n="";for(let e=0;e{const o=PM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),SM()&&c9(t))}function sm(t,n){t.style&&(n.forEach((e,i)=>{const r=PM(i);t.style[r]=""}),SM()&&c9(t))}function my(t){return Array.isArray(t)?1==t.length?t[0]:W7(t):t}const FM=new RegExp("{{\\s*(.+?)\\s*}}","g");function u9(t){let n=[];if("string"==typeof t){let e;for(;e=FM.exec(t);)n.push(e[1]);FM.lastIndex=0}return n}function gy(t,n,e){const i=t.toString(),r=i.replace(FM,(o,s)=>{let a=n[s];return null==a&&(e.push(function XSe(t){return new jt(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function Gw(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const Pke=/-+([a-z0-9])/g;function PM(t){return t.replace(Pke,(...n)=>n[1].toUpperCase())}function Rke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _c(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function JSe(t){return new jt(3004,!1)}()}}function d9(t,n){return window.getComputedStyle(t)[n]}const Yw="*";function Hke(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Uke(t,n,e){if(":"==t[0]){const l=function zke(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function cke(t){return new jt(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(h9(r,s));"<"==o[0]&&!(r==Yw&&s==Yw)&&n.push(h9(s,r))}(i,e,n)):e.push(t),e}const Xw=new Set(["true","1"]),Jw=new Set(["false","0"]);function h9(t,n){const e=Xw.has(t)||Jw.has(t),i=Xw.has(n)||Jw.has(n);return(r,o)=>{let s=t==Yw||t==r,a=n==Yw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Xw.has(t):Jw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Xw.has(n):Jw.has(n)),s&&a}}const Gke=new RegExp("s*:selfs*,?","g");function RM(t,n,e,i){return new Wke(t).build(n,e,i)}class Wke{constructor(n){this._driver=n}build(n,e,i){const r=new Xke(e);return this._resetContextStyleTimingState(r),_c(this,my(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function QSe(){return new jt(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function ZSe(){return new jt(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{u9(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Gw(o.values()),e.errors.push(function eke(t,n){return new jt(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=_c(this,my(n.animation),e);return{type:1,matchers:Hke(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:am(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>_c(this,i,e)),options:am(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=_c(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:am(n.options)}}visitAnimate(n,e){const i=function Kke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return jM(zw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=jM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=zw(e,n);return jM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Or({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Or(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Vh?i.push(a):e.errors.push(new jt(3002,!1)):i.push(s9(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function nke(t,n,e,i,r){return new jt(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function Fke(t,n,e){const i=n.params||{},r=u9(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function YSe(t){return new jt(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function ike(){return new jt(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let b=null!=y.offset?y.offset:function Jke(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),C=0;return null!=b&&(o++,C=y.offset=b),l=l||C<0||C>1,a=a||C0&&o{const b=h>0?y==f?1:h*y:s[y],C=b*g;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(v,e),v.offset=b,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:_c(this,my(n.animation),e),options:am(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:am(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:am(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function qke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Gke,"")),t=t.replace(/@\*/g,Uw).replace(/@\w+/g,e=>Uw+"-"+e.slice(1)).replace(/:animating/g,IM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,yc(e.collectedStyles,e.currentQuerySelector,new Map);const a=_c(this,my(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:am(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function ake(){return new jt(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:zw(n.timings,e.errors,!0);return{type:12,animation:_c(this,my(n.animation),e),timings:i,options:null}}}class Xke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function am(t){return t?(t=py(t)).params&&(t.params=function Yke(t){return t?py(t):null}(t.params)):t={},t}function jM(t,n,e){return{duration:t,delay:n,easing:e}}function LM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Kw{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const eDe=new RegExp(":enter","g"),nDe=new RegExp(":leave","g");function BM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new iDe).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class iDe{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Kw;const d=new $M(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Hh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),_c(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[LM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Hh(gy(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Hh(i.duration):null,a=null!=i.delay?Hh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),_c(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qw);const s=Hh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>_c(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Hh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),_c(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return zw(e.params?gy(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Hh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Qw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),_c(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;_c(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Qw={};class $M{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Zw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Hh(i.duration)),null!=i.delay&&(r.delay=Hh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=gy(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new $M(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Qw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new rDe(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(eDe,"."+this._enterClassName)).replace(nDe,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function lke(t){return new jt(3014,!1)}()),a}}class Zw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Zw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vh),this._currentKeyframe.set(e,Vh);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function oDe(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,Vh)}else Pf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=gy(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Vh),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Pf(a,new Map,this._backFill);c.forEach((u,d)=>{u===CM?n.add(d):u===Vh&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?Gw(n.values()):[],s=e.size?Gw(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return LM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class rDe extends Zw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Pf(n[0]);l.set("offset",0),o.push(l);const c=Pf(n[0]);c.set("offset",m9(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Pf(n[d]);const f=h.get("offset");h.set("offset",m9((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return LM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function m9(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class VM{}const sDe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class aDe extends VM{normalizePropertyName(n,e){return PM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(sDe.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function KSe(t,n){return new jt(3005,!1)}())}return s+o}}function g9(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const HM={};class v9{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function lDe(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||HM,p=this.buildStyles(i,a&&a.params||HM,d),m=l&&l.params||HM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,b=new Map,C="void"===r,D={params:cDe(m,h),delay:this.ast.options?.delay},E=u?[]:BM(n,e,this.ast.animation,o,s,p,g,D,c,d);let B=0;if(E.forEach(j=>{B=Math.max(j.duration+j.delay,B)}),d.length)return g9(e,this._triggerName,i,r,C,p,g,[],[],y,b,B,d);E.forEach(j=>{const U=j.element,G=yc(y,U,new Set);j.preStyleProps.forEach(oe=>G.add(oe));const X=yc(b,U,new Set);j.postStyleProps.forEach(oe=>X.add(oe)),U!==e&&v.add(U)});const z=Gw(v.values());return g9(e,this._triggerName,i,r,C,p,g,E,z,y,b,B)}}function cDe(t,n){const e=py(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class uDe{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=py(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=gy(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class hDe{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new uDe(r.style,r.options&&r.options.params||{},i))}),y9(this.states,"true","1"),y9(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new v9(n,r,this.states))}),this.fallbackTransition=function fDe(t,n,e){return new v9(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function y9(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const pDe=new Kw;class mDe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=RM(this._driver,e,i,r);if(i.length)throw function mke(t){return new jt(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=J7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=BM(this._driver,e,o,OM,Vw,new Map,new Map,i,pDe,r),s.forEach(u=>{const d=yc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function gke(){return new jt(3300,!1)}()),s=[]),r.length)throw function vke(t){return new jt(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Vh))})});const c=Ff(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function yke(t){return new jt(3301,!1)}();return e}listen(n,e,i,r){const o=TM(e,"","","");return kM(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const _9="ng-animate-queued",UM="ng-animate-disabled",bDe=[],b9={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xDe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xc="__ng_removed";class zM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function kDe(t){return t??null}(i?n.value:n),i){const o=py(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const vy="void",GM=new zM(vy);class wDe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Jc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function _ke(t,n){return new jt(3302,!1)}();if(null==i||0==i.length)throw function bke(t){return new jt(3303,!1)}();if(!function DDe(t){return"start"==t||"done"==t}(i))throw function xke(t,n){return new jt(3400,!1)}();const o=yc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=yc(this._engine.statesByElement,n,new Map);return a.has(e)||(Jc(n,Hw),Jc(n,Hw+"-"+e),a.set(e,GM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function wke(t){return new jt(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new WM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Jc(n,Hw),Jc(n,Hw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new zM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=GM),c.value!==vy&&l.value===c.value){if(!function ADe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{sm(n,g),jd(n,v)})}return}const h=yc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Jc(n,_9),s.onStart(()=>{pv(n,_9)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Uw,!0);i.forEach(r=>{if(r[Xc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,vy,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Ff(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||GM,u=new zM(vy),d=new WM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Xc];(!o||o===b9)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Jc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=TM(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,kM(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class CDe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new wDe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(eC(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!eC(e))return;const o=e[Xc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Jc(n,UM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),pv(n,UM))}removeNode(n,e,i,r){if(eC(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Xc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return eC(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Uw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,IM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ff(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Xc];if(e&&e.setForRemoval){if(n[Xc]=b9,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(UM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ff(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function Cke(t){return new jt(3402,!1)}()}_flushAnimations(n,e){const i=new Kw,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(J=>{u.add(J);const H=this.driver.query(J,".ng-animate-queued",!0);for(let pe=0;pe{const pe=OM+m++;p.set(H,pe),J.forEach(A=>Jc(A,pe))});const g=[],v=new Set,y=new Set;for(let J=0;Jv.add(A)):y.add(H))}const b=new Map,C=C9(h,Array.from(v));C.forEach((J,H)=>{const pe=Vw+m++;b.set(H,pe),J.forEach(A=>Jc(A,pe))}),n.push(()=>{f.forEach((J,H)=>{const pe=p.get(H);J.forEach(A=>pv(A,pe))}),C.forEach((J,H)=>{const pe=b.get(H);J.forEach(A=>pv(A,pe))}),g.forEach(J=>{this.processLeaveNode(J)})});const D=[],E=[];for(let J=this._namespaceList.length-1;J>=0;J--)this._namespaceList[J].drainQueuedTransitions(e).forEach(pe=>{const A=pe.player,N=pe.element;if(D.push(A),this.collectedEnterElements.length){const Te=N[Xc];if(Te&&Te.setForMove){if(Te.previousTriggersValues&&Te.previousTriggersValues.has(pe.triggerName)){const et=Te.previousTriggersValues.get(pe.triggerName),We=this.statesByElement.get(pe.element);if(We&&We.has(pe.triggerName)){const st=We.get(pe.triggerName);st.value=et,We.set(pe.triggerName,st)}}return void A.destroy()}}const F=!d||!this.driver.containsElement(d,N),q=b.get(N),V=p.get(N),ce=this._buildInstruction(pe,i,V,q,F);if(ce.errors&&ce.errors.length)return void E.push(ce);if(F)return A.onStart(()=>sm(N,ce.fromStyles)),A.onDestroy(()=>jd(N,ce.toStyles)),void r.push(A);if(pe.isFallbackTransition)return A.onStart(()=>sm(N,ce.fromStyles)),A.onDestroy(()=>jd(N,ce.toStyles)),void r.push(A);const ve=[];ce.timelines.forEach(Te=>{Te.stretchStartingKeyframe=!0,this.disabledNodes.has(Te.element)||ve.push(Te)}),ce.timelines=ve,i.append(N,ce.timelines),s.push({instruction:ce,player:A,element:N}),ce.queriedElements.forEach(Te=>yc(a,Te,[]).push(A)),ce.preStyleProps.forEach((Te,et)=>{if(Te.size){let We=l.get(et);We||l.set(et,We=new Set),Te.forEach((st,$)=>We.add($))}}),ce.postStyleProps.forEach((Te,et)=>{let We=c.get(et);We||c.set(et,We=new Set),Te.forEach((st,$)=>We.add($))})});if(E.length){const J=[];E.forEach(H=>{J.push(function Ske(t,n){return new jt(3505,!1)}())}),D.forEach(H=>H.destroy()),this.reportError(J)}const B=new Map,z=new Map;s.forEach(J=>{const H=J.element;i.has(H)&&(z.set(H,H),this._beforeAnimationBuild(J.player.namespaceId,J.instruction,B))}),r.forEach(J=>{const H=J.element;this._getPreviousPlayers(H,!1,J.namespaceId,J.triggerName,null).forEach(A=>{yc(B,H,[]).push(A),A.destroy()})});const j=g.filter(J=>k9(J,l,c)),U=new Map;w9(U,this.driver,y,c,Vh).forEach(J=>{k9(J,l,c)&&j.push(J)});const X=new Map;f.forEach((J,H)=>{w9(X,this.driver,new Set(J),l,CM)}),j.forEach(J=>{const H=U.get(J),pe=X.get(J);U.set(J,new Map([...Array.from(H?.entries()??[]),...Array.from(pe?.entries()??[])]))});const oe=[],P=[],W={};s.forEach(J=>{const{element:H,player:pe,instruction:A}=J;if(i.has(H)){if(u.has(H))return pe.onDestroy(()=>jd(H,A.toStyles)),pe.disabled=!0,pe.overrideTotalTime(A.totalTime),void r.push(pe);let N=W;if(z.size>1){let q=H;const V=[];for(;q=q.parentNode;){const ce=z.get(q);if(ce){N=ce;break}V.push(q)}V.forEach(ce=>z.set(ce,N))}const F=this._buildAnimation(pe.namespaceId,A,B,o,X,U);if(pe.setRealPlayer(F),N===W)oe.push(pe);else{const q=this.playersByElement.get(N);q&&q.length&&(pe.parentPlayer=Ff(q)),r.push(pe)}}else sm(H,A.fromStyles),pe.onDestroy(()=>jd(H,A.toStyles)),P.push(pe),u.has(H)&&r.push(pe)}),P.forEach(J=>{const H=o.get(J.element);if(H&&H.length){const pe=Ff(H);J.setRealPlayer(pe)}}),r.forEach(J=>{J.parentPlayer?J.syncPlayerEvents(J.parentPlayer):J.destroy()});for(let J=0;J!F.destroyed);N.length?TDe(this,H,N):this.processLeaveNode(H)}return g.length=0,oe.forEach(J=>{this.players.push(J),J.onDone(()=>{J.destroy();const H=this.players.indexOf(J);this.players.splice(H,1)}),J.play()}),oe}elementContainsData(n,e){let i=!1;const r=e[Xc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==vy;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=yc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}sm(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[Xc];if(g&&g.removedBeforeQueried)return new fy(p.duration,p.delay);const v=m!==l,y=function EDe(t){const n=[];return S9(t,n),n}((i.get(m)||bDe).map(B=>B.getRealPlayer())).filter(B=>!!B.element&&B.element===m),b=o.get(m),C=s.get(m),D=J7(0,this._normalizer,0,p.keyframes,b,C),E=this._buildPlayer(p,D,y);if(p.subTimeline&&r&&d.add(m),v){const B=new WM(n,a,m);B.setRealPlayer(E),c.push(B)}return E});c.forEach(p=>{yc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function SDe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Jc(p,o9));const f=Ff(h);return f.onDestroy(()=>{u.forEach(p=>pv(p,o9)),jd(l,e.toStyles)}),d.forEach(p=>{yc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new fy(n.duration,n.delay)}}class WM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new fy,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>kM(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){yc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function eC(t){return t&&1===t.nodeType}function x9(t,n){const e=t.style.display;return t.style.display=n??"none",e}function w9(t,n,e,i,r){const o=[];e.forEach(l=>o.push(x9(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Xc]=xDe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>x9(l,o[a++])),s}function C9(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Jc(t,n){t.classList?.add(n)}function pv(t,n){t.classList?.remove(n)}function TDe(t,n,e){Ff(e).onDone(()=>t.processLeaveNode(n))}function S9(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class tC{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new CDe(n,e,i),this._timelineEngine=new mDe(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=RM(this._driver,o,l,c);if(l.length)throw function fke(t,n){return new jt(3404,!1)}();a=function dDe(t,n,e){return new hDe(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=K7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=K7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ODe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&jd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jd(this._element,this._initialStyles),this._endStyles&&(jd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sm(this._element,this._endStyles),this._endStyles=null),jd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function qM(t){let n=null;return t.forEach((e,i)=>{(function IDe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class D9{constructor(n,e,i,r){this.element=n,this.keyframes=e,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._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:d9(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class NDe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return t9(n,e)}getParentElement(n){return AM(n)}query(n,e,i){return n9(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof D9);(function jke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function Nke(t){return t.length?t[0]instanceof Map?t:t.map(n=>s9(n)):[]}(e).map(f=>Pf(f));d=function Lke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,d9(t,a)))}}return n}(n,d,c);const h=function MDe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=qM(n[0]),n.length>1&&(i=qM(n[n.length-1]))):n instanceof Map&&(e=qM(n)),e||i?new ODe(t,e,i):null}(n,d);return new D9(n,d,l,h)}}let FDe=(()=>{class t extends G7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Su.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?W7(e):e;return T9(this._renderer,null,i,"register",[r]),new PDe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(xt(Wg),xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class PDe extends GSe{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new RDe(this._id,n,e||{},this._renderer)}}class RDe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return T9(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function T9(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const E9="@.disabled";let jDe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new A9("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new LDe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(xt(Wg),xt(tC),xt(ur))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class A9{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==E9?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class LDe extends A9{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==E9?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function BDe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function $De(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let VDe=(()=>{class t extends tC{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(xt(vo),xt(MM),xt(VM),xt(jh))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const M9=[{provide:G7,useClass:FDe},{provide:VM,useFactory:function HDe(){return new aDe}},{provide:tC,useClass:VDe},{provide:Wg,useFactory:function UDe(t,n,e){return new jDe(t,n,e)},deps:[$w,tC,ur]}],YM=[{provide:MM,useFactory:()=>new NDe},{provide:p$,useValue:"BrowserAnimations"},...M9],XM=[{provide:MM,useClass:i9},{provide:p$,useValue:"NoopAnimations"},...M9];let zDe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?XM:YM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:YM,imports:[bM]}),t})(),GDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:XM,imports:[bM]}),t})();function Hn(...t){let n=t[t.length-1];return fi(n)?(t.pop(),ia(t,n)):at(t)}class ca extends fn{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Cn;return this._value}next(n){super.next(this._value=n)}}const iC=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class JM extends I{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class WDe extends I{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function KM(t,n,e,i,r=new WDe(t,e,i)){if(!r.closed)return n instanceof Wt?n.subscribe(r):nl(n)(r)}const O9={};function rC(...t){let n,e;return fi(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Se(t[0])&&(t=t[0]),at(t,e).lift(new qDe(n))}class qDe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new YDe(n,this.resultSelector))}}class YDe extends JM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(O9),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function sC(t){return t?function JDe(t){return new Wt(n=>t.schedule(()=>n.complete()))}(t):Uh}function I9(t){return new Wt(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?ho(e):sC()).subscribe(n)})}function Rf(t,n){return new Wt(n?e=>n.schedule(KDe,0,{error:t,subscriber:e}):e=>e.error(t))}function KDe({error:t,subscriber:n}){n.error(t)}function bc(t,n){return"function"==typeof n?e=>e.pipe(bc((i,r)=>ho(t(i,r)).pipe($t((o,s)=>n(i,o,r,s))))):e=>e.lift(new QDe(t))}class QDe{constructor(n){this.project=n}call(n,e){return e.subscribe(new ZDe(n,this.project))}}class ZDe extends Y{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Hl(this),r=this.destination;r.add(i),this.innerSubscription=Le(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const N9=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function ua(t){return n=>0===t?sC():n.lift(new eTe(t))}class eTe{constructor(n){if(this.total=n,this.total<0)throw new N9}call(n,e){return e.subscribe(new tTe(n,this.total))}}class tTe extends I{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function aC(...t){const n=t[t.length-1];return fi(n)?(t.pop(),e=>oC(t,e,n)):e=>oC(t,e)}function ps(t,n){return function(i){return i.lift(new nTe(t,n))}}class nTe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new iTe(n,this.predicate,this.thisArg))}}class iTe extends I{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function lC(t=null){return n=>n.lift(new rTe(t))}class rTe{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new oTe(n,this.defaultValue))}}class oTe extends I{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function F9(t=lTe){return n=>n.lift(new sTe(t))}class sTe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new aTe(n,this.errorFactory))}}class aTe extends I{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function lTe(){return new iC}function jf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ps((r,o)=>t(r,o,i)):ht,ua(1),e?lC(n):F9(()=>new iC))}function Lf(t,n){return it(t,n,1)}function zh(){}function ms(t,n,e){return function(r){return r.lift(new cTe(t,n,e))}}class cTe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new uTe(n,this.nextOrObserver,this.error,this.complete))}}class uTe extends I{constructor(n,e,i,r){super(n),this._tapNext=zh,this._tapError=zh,this._tapComplete=zh,this._tapError=i||zh,this._tapComplete=r||zh,be(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||zh,this._tapError=e.error||zh,this._tapComplete=e.complete||zh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Jl(t){return function(e){const i=new dTe(t),r=e.lift(i);return i.caught=r}}class dTe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new hTe(n,this.selector,this.caught))}}class hTe extends Y{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Hl(this);this.add(i);const r=Le(e,i);r!==i&&this.add(r)}}}function P9(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new fTe(t,n,e))}}class fTe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new pTe(n,this.accumulator,this.seed,this.hasSeed))}}class pTe extends I{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function QM(t){return function(e){return 0===t?sC():e.lift(new mTe(t))}}class mTe{constructor(n){if(this.total=n,this.total<0)throw new N9}call(n,e){return e.subscribe(new gTe(n,this.total))}}class gTe extends I{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?ps((r,o)=>t(r,o,i)):ht,QM(1),e?lC(n):F9(()=>new iC))}class yTe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new _Te(n,this.predicate,this.inclusive))}}class _Te extends I{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class xTe{constructor(n){this.value=n}call(n,e){return e.subscribe(new wTe(n,this.value))}}class wTe extends I{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function ZM(t){return n=>n.lift(new CTe(t))}class CTe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new STe(n,this.callback))}}class STe extends I{constructor(n,e){super(n),this.add(new re(e))}}const Ki="primary",yy=Symbol("RouteTitle");class kTe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mv(t){return new kTe(t)}function DTe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function L9(t){return Array.prototype.concat.apply([],t)}function B9(t){return t.length>0?t[t.length-1]:null}function La(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Bf(t){return sA(t)?t:q1(t)?ho(Promise.resolve(t)):Hn(t)}const cC=!1,ETe={exact:function H9(t,n,e){if(!lm(t.segments,n.segments)||!uC(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!H9(t.children[i],n.children[i],e))return!1;return!0},subset:U9},$9={exact:function ATe(t,n){return Ld(t,n)},subset:function MTe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>j9(t[e],n[e]))},ignored:()=>!0};function V9(t,n,e){return ETe[e.paths](t.root,n.root,e.matrixParams)&&$9[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function U9(t,n,e){return z9(t,n,n.segments,e)}function z9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!lm(r,e)||n.hasChildren()||!uC(r,e,i))}if(t.segments.length===e.length){if(!lm(t.segments,e)||!uC(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!U9(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(lm(t.segments,r)&&uC(t.segments,r,i)&&t.children[Ki])&&z9(t.children[Ki],n,o,i)}}function uC(t,n,e){return n.every((i,r)=>$9[e](t[r].parameters,i.parameters))}class $f{constructor(n=new pr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mv(this.queryParams)),this._queryParamMap}toString(){return NTe.serialize(this)}}class pr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,La(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dC(this)}}class _y{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mv(this.parameters)),this._parameterMap}toString(){return q9(this)}}function lm(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let by=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return new e3},providedIn:"root"}),t})();class e3{parse(n){const e=new HTe(n);return new $f(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${xy(n.root,!0)}`,i=function RTe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${hC(e)}=${hC(r)}`).join("&"):`${hC(e)}=${hC(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function FTe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const NTe=new e3;function dC(t){return t.segments.map(n=>q9(n)).join("/")}function xy(t,n){if(!t.hasChildren())return dC(t);if(n){const e=t.children[Ki]?xy(t.children[Ki],!1):"",i=[];return La(t.children,(r,o)=>{o!==Ki&&i.push(`${o}:${xy(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function ITe(t,n){let e=[];return La(t.children,(i,r)=>{r===Ki&&(e=e.concat(n(i,r)))}),La(t.children,(i,r)=>{r!==Ki&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===Ki?[xy(t.children[Ki],!1)]:[`${r}:${xy(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ki]?`${dC(t)}/${e[0]}`:`${dC(t)}/(${e.join("//")})`}}function G9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hC(t){return G9(t).replace(/%3B/gi,";")}function t3(t){return G9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fC(t){return decodeURIComponent(t)}function W9(t){return fC(t.replace(/\+/g,"%20"))}function q9(t){return`${t3(t.path)}${function PTe(t){return Object.keys(t).map(n=>`;${t3(n)}=${t3(t[n])}`).join("")}(t.parameters)}`}const jTe=/^[^\/()?;=#]+/;function pC(t){const n=t.match(jTe);return n?n[0]:""}const LTe=/^[^=?&#]+/,$Te=/^[^&#]+/;class HTe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pr([],{}):new pr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Ki]=new pr(n,e)),i}parseSegment(){const n=pC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new jt(4009,cC);return this.capture(n),new _y(fC(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=pC(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=pC(this.remaining);r&&(i=r,this.capture(i))}n[fC(e)]=fC(i)}parseQueryParam(n){const e=function BTe(t){const n=t.match(LTe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function VTe(t){const n=t.match($Te);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=W9(e),o=W9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=pC(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new jt(4010,cC);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Ki);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ki]:new pr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new jt(4011,cC)}}function n3(t){return t.segments.length>0?new pr([],{[Ki]:t}):t}function mC(t){const n={};for(const i of Object.keys(t.children)){const o=mC(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function UTe(t){if(1===t.numberOfChildren&&t.children[Ki]){const n=t.children[Ki];return new pr(t.segments.concat(n.segments),n.children)}return t}(new pr(t.segments,n))}function cm(t){return t instanceof $f}const r3=!1;function zTe(t,n,e,i,r){if(0===e.length)return gv(n.root,n.root,n.root,i,r);const o=function Q9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new K9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return La(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new K9(e,n,i)}(e);return o.toRoot()?gv(n.root,n.root,new pr([],{}),i,r):function s(l){const c=function WTe(t,n,e,i){if(t.isAbsolute)return new vv(n.root,!0,0);if(-1===i)return new vv(e,e===n.root,0);return function Z9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new jt(4005,r3&&"Invalid number of '../'");r=i.segments.length}return new vv(i,!1,r-o)}(e,i+(wy(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?yv(c.segmentGroup,c.index,o.commands):o3(c.segmentGroup,c.index,o.commands);return gv(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function wy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Cy(t){return"object"==typeof t&&null!=t&&t.outlets}function gv(t,n,e,i,r){let s,o={};i&&La(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:J9(t,n,e);const a=n3(mC(s));return new $f(a,o,r)}function J9(t,n,e){const i={};return La(t.children,(r,o)=>{i[o]=r===n?e:J9(r,n,e)}),new pr(t.segments,i)}class K9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&wy(i[0]))throw new jt(4003,r3&&"Root segment cannot have matrix parameters");const r=i.find(Cy);if(r&&r!==B9(i))throw new jt(4004,r3&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vv{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function o3(t,n,e){if(t||(t=new pr([],{})),0===t.segments.length&&t.hasChildren())return yv(t,n,e);const i=function YTe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(Cy(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!tV(l,c,s))return o;i+=2}else{if(!tV(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=o3(t.children[s],n,o))}),La(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new pr(t.segments,r)}}function s3(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=s3(new pr([],{}),0,e))}),n}function eV(t){const n={};return La(t,(e,i)=>n[i]=`${e}`),n}function tV(t,n,e){return t==e.path&&Ld(n,e.parameters)}const Sy="imperative";class Bd{constructor(n,e){this.id=n,this.url=e}}class gC extends Bd{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gh extends Bd{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ky extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vC extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class yC extends Bd{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class JTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QTe extends Bd{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ZTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eEe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tEe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nEe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iEe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rEe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oEe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sEe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nV{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let cEe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return zTe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),dEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(n){return cEe.\u0275fac(n)},providedIn:"root"}),t})();class iV{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=a3(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=a3(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=l3(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return l3(n,this._root).map(e=>e.value)}}function a3(t,n){if(t===n.value)return n;for(const e of n.children){const i=a3(t,e);if(i)return i}return null}function l3(t,n){if(t===n.value)return[n];for(const e of n.children){const i=l3(t,e);if(i.length)return i.unshift(n),i}return[]}class Wh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function _v(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class rV extends iV{constructor(n,e){super(n),this.snapshot=e,c3(this,n)}toString(){return this.snapshot.toString()}}function oV(t,n){const e=function hEe(t,n){const s=new _C([],{},{},"",{},Ki,n,null,t.root,-1,{});return new aV("",new Wh(s,[]))}(t,n),i=new ca([new _y("",{})]),r=new ca({}),o=new ca({}),s=new ca({}),a=new ca(""),l=new Vr(i,r,s,a,o,Ki,n,e.root);return l.snapshot=e.root,new rV(new Wh(l,[]),e)}class Vr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe($t(c=>c[yy]))??Hn(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($t(n=>mv(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($t(n=>mv(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sV(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function fEe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class _C{get title(){return this.data?.[yy]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=mv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class aV extends iV{constructor(n,e){super(e),this.url=n,c3(this,e)}toString(){return lV(this._root)}}function c3(t,n){n.value._routerState=t,n.children.forEach(e=>c3(t,e))}function lV(t){const n=t.children.length>0?` { ${t.children.map(lV).join(", ")} } `:"";return`${t.value}${n}`}function u3(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ld(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Ld(n.params,e.params)||t.params.next(e.params),function TTe(t,n){if(t.length!==n.length)return!1;for(let e=0;eLd(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||d3(t.parent,n.parent))}function Dy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function mEe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Dy(t,i,r);return Dy(t,i)})}(t,n,e);return new Wh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Dy(t,a)),s}}const i=function gEe(t){return new Vr(new ca(t.url),new ca(t.params),new ca(t.queryParams),new ca(t.fragment),new ca(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>Dy(t,o));return new Wh(i,r)}}const h3="ngNavigationCancelingError";function cV(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=cm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=uV(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function uV(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[h3]=!0,i.cancellationCode=n,e&&(i.url=e),i}function dV(t){return hV(t)&&cm(t.url)}function hV(t){return t&&t[h3]}class vEe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ty,this.attachRef=null}}let Ty=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new vEe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const bC=!1;let Vf=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ki,this.activateEvents=new ot,this.deactivateEvents=new ot,this.attachEvents=new ot,this.detachEvents=new ot,this.parentContexts=Vi(Ty),this.location=Vi(Yl),this.changeDetector=Vi($s),this.environmentInjector=Vi(Gc)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new jt(4012,bC);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new jt(4012,bC);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new jt(4012,bC);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new jt(4013,bC);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yEe(e,a,r.injector);if(i&&function _Ee(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ei]}),t})();class yEe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Vr?this.route:n===Ty?this.childContexts:this.parent.get(n,e)}}let f3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ng-component"]],standalone:!0,features:[Bs],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"router-outlet")},dependencies:[Vf],encapsulation:2}),t})();function fV(t,n){return t.providers&&!t._injector&&(t._injector=pw(t.providers,n,`Route: ${t.path}`)),t._injector??n}function m3(t){const n=t.children&&t.children.map(m3),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ki&&(e.component=f3),e}function Kc(t){return t.outlet||Ki}function pV(t,n){const e=t.filter(i=>Kc(i)===n);return e.push(...t.filter(i=>Kc(i)!==n)),e}function Ey(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class SEe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),u3(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=_v(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),La(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=_v(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=_v(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=_v(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new sEe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new rEe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(u3(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),u3(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ey(r.snapshot),l=a?.get(zg)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class mV{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class xC{constructor(n,e){this.component=n,this.route=e}}function kEe(t,n,e){const i=t._root;return Ay(i,n?n._root:null,e,[i.value])}function bv(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Tve(t){return null!==gx(t)}(t)?n.get(t):t:i}function Ay(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=_v(n);return t.children.forEach(s=>{(function TEe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function EEe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!lm(t.url,n.url);case"pathParamsOrQueryParamsChange":return!lm(t.url,n.url)||!Ld(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!d3(t,n)||!Ld(t.queryParams,n.queryParams);default:return!d3(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new mV(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ay(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new xC(a.outlet.component,s))}else s&&My(n,a,r),r.canActivateChecks.push(new mV(i)),Ay(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),La(o,(s,a)=>My(s,e.getContext(a),r)),r}function My(t,n,e){const i=_v(t),r=t.value;La(i,(o,s)=>{My(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new xC(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Oy(t){return"function"==typeof t}function g3(t){return t instanceof iC||"EmptyError"===t?.name}const wC=Symbol("INITIAL_VALUE");function xv(){return bc(t=>rC(t.map(n=>n.pipe(ua(1),aC(wC)))).pipe($t(n=>{for(const e of n)if(!0!==e){if(e===wC)return wC;if(!1===e||e instanceof $f)return e}return!0}),ps(n=>n!==wC),ua(1)))}function gV(t){return function yt(...t){return Zt(t)}(ms(n=>{if(cm(n))throw cV(0,n)}),$t(n=>!0===n))}const v3={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vV(t,n,e,i,r){const o=y3(t,n,e);return o.matched?function GEe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Hn(r.map(s=>{const a=bv(s,t);return Bf(function FEe(t){return t&&Oy(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(xv(),gV()):Hn(!0)}(i=fV(n,i),n,e).pipe($t(s=>!0===s?o:{...v3})):Hn(o)}function y3(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...v3}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||DTe)(e,t,n);if(!r)return{...v3};const o={};La(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function CC(t,n,e,i){if(e.length>0&&function YEe(t,n,e){return e.some(i=>SC(t,n,i)&&Kc(i)!==Ki)}(t,e,i)){const o=new pr(n,function qEe(t,n,e,i){const r={};r[Ki]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Kc(o)!==Ki){const s=new pr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Kc(o)]=s}return r}(t,n,i,new pr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function XEe(t,n,e){return e.some(i=>SC(t,n,i))}(t,e,i)){const o=new pr(t.segments,function WEe(t,n,e,i,r){const o={};for(const s of i)if(SC(t,e,s)&&!r[Kc(s)]){const a=new pr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Kc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new pr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function SC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function yV(t,n,e,i){return!!(Kc(t)===i||i!==Ki&&SC(n,e,t))&&("**"===t.path||y3(n,t,e).matched)}function _V(t,n,e){return 0===n.length&&!t.children[e]}const kC=!1;class DC{constructor(n){this.segmentGroup=n||null}}class bV{constructor(n){this.urlTree=n}}function Iy(t){return Rf(new DC(t))}function xV(t){return Rf(new bV(t))}function JEe(t){return Rf(new jt(4e3,kC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class ZEe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=CC(this.urlTree.root,[],[],this.config).segmentGroup,e=new pr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Ki).pipe($t(o=>this.createUrlTree(mC(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Jl(o=>{if(o instanceof bV)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof DC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Ki).pipe($t(r=>this.createUrlTree(mC(r),n.queryParams,n.fragment))).pipe(Jl(r=>{throw r instanceof DC?this.noMatchError(r):r}))}noMatchError(n){return new jt(4002,kC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=n3(n);return new $f(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe($t(o=>new pr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return ho(r).pipe(Lf(o=>{const s=i.children[o],a=pV(e,o);return this.expandSegmentGroup(n,a,s,o).pipe($t(l=>({segment:l,outlet:o})))}),P9((o,s)=>(o[s.outlet]=s.segment,o),{}),R9())}expandSegment(n,e,i,r,o,s){return ho(i).pipe(Lf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Jl(c=>{if(c instanceof DC)return Hn(null);throw c}))),jf(a=>!!a),Jl((a,l)=>{if(g3(a))return _V(e,r,o)?Hn(new pr([],{})):Iy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return yV(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):Iy(e):Iy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?xV(o):this.lineralizeSegments(i,o).pipe(it(s=>{const a=new pr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=y3(e,r,o);if(!a)return Iy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?xV(d):this.lineralizeSegments(r,d).pipe(it(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=fV(i,n),i.loadChildren?(i._loadedRoutes?Hn({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe($t(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new pr(r,{})))):Hn(new pr(r,{}))):vV(e,i,r,n).pipe(bc(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(it(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=CC(e,a,l,h),m=new pr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe($t(b=>new pr(a,b)));if(0===h.length&&0===p.length)return Hn(new pr(a,{}));const g=Kc(i)===o;return this.expandSegment(d,m,h,p,g?Ki:o,!0).pipe($t(y=>new pr(a.concat(y.segments),y.children)))})):Iy(e)))}getChildConfig(n,e,i){return e.children?Hn({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Hn({routes:e._loadedRoutes,injector:e._loadedInjector}):function zEe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Hn(!0):Hn(r.map(s=>{const a=bv(s,t);return Bf(function MEe(t){return t&&Oy(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(xv(),gV())}(n,e,i).pipe(it(r=>r?this.configLoader.loadChildren(n,e).pipe(ms(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function KEe(t){return Rf(uV(kC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):Hn({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Hn(i);if(r.numberOfChildren>1||!r.children[Ki])return JEe(n.redirectTo);r=r.children[Ki]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new $f(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return La(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return La(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new pr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new jt(4001,kC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class tAe{}class rAe{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=CC(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ki).pipe($t(e=>{if(null===e)return null;const i=new _C([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ki,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Wh(i,e),o=new aV(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=sV(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return ho(Object.keys(i.children)).pipe(Lf(r=>{const o=i.children[r],s=pV(e,r);return this.processSegmentGroup(n,s,o,r)}),P9((r,o)=>r&&o?(r.push(...o),r):null),function vTe(t,n=!1){return e=>e.lift(new yTe(t,n))}(r=>null!==r),lC(null),R9(),$t(r=>{if(null===r)return null;const o=CV(r);return function oAe(t){t.sort((n,e)=>n.value.outlet===Ki?-1:e.value.outlet===Ki?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return ho(e).pipe(Lf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),jf(s=>!!s),Jl(s=>{if(g3(s))return _V(i,r,o)?Hn([]):Hn(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!yV(e,i,r,o))return Hn(null);let s;if("**"===e.path){const a=r.length>0?B9(r).parameters:{},l=kV(i)+r.length;s=Hn({snapshot:new _C(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DV(e),Kc(e),e.component??e._loadedComponent??null,e,SV(i),l,TV(e)),consumedSegments:[],remainingSegments:[]})}else s=vV(i,e,r,n).pipe($t(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=kV(i)+l.length;return{snapshot:new _C(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DV(e),Kc(e),e.component??e._loadedComponent??null,e,SV(i),d,TV(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(bc(a=>{if(null===a)return Hn(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function sAe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=CC(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe($t(g=>null===g?null:[new Wh(l,g)]));if(0===h.length&&0===p.length)return Hn([new Wh(l,[])]);const m=Kc(e)===o;return this.processSegment(d,h,f,p,m?Ki:o).pipe($t(g=>null===g?null:[new Wh(l,g)]))}))}}function aAe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function CV(t){const n=[],e=new Set;for(const i of t){if(!aAe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=CV(i.children);n.push(new Wh(i.value,r))}return n.filter(i=>!e.has(i))}function SV(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function kV(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function DV(t){return t.data||{}}function TV(t){return t.resolve||{}}function EV(t){return"string"==typeof t.title||null===t.title}function _3(t){return bc(n=>{const e=t(n);return e?ho(e).pipe($t(()=>n)):Hn(n)})}const wv=new Yn("ROUTES");let b3=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Vi(m$)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Hn(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Bf(e.loadComponent()).pipe($t(MV),ms(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ZM(()=>{this.componentLoaders.delete(e)})),r=new _e(i,()=>new fn).pipe(Yt());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Hn({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe($t(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=L9(l.get(wv,[],Oi.Self|Oi.Optional)));return{routes:c.map(m3),injector:l}}),ZM(()=>{this.childrenLoaders.delete(i)})),s=new _e(o,()=>new fn).pipe(Yt());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Bf(e()).pipe($t(MV),it(i=>i instanceof EB||Array.isArray(i)?Hn(i):ho(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function MV(t){return function mAe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let EC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new fn,this.configLoader=Vi(b3),this.environmentInjector=Vi(Gc),this.urlSerializer=Vi(by),this.rootContexts=Vi(Ty),this.navigationId=0,this.afterPreactivation=()=>Hn(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new nEe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new tEe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new ca({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Sy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ps(i=>0!==i.id),$t(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),bc(i=>{let r=!1,o=!1;return Hn(i).pipe(ms(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),bc(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new vC(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Uh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return OV(s.source)&&(e.browserUrlTree=s.extractedUrl),Hn(s).pipe(bc(u=>{const d=this.transitions?.getValue();return this.events.next(new gC(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Uh:Promise.resolve(u)}),function eAe(t,n,e,i){return bc(r=>function QEe(t,n,e,i,r){return new ZEe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe($t(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),ms(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function cAe(t,n,e,i,r){return it(o=>function iAe(t,n,e,i,r,o,s="emptyOnly"){return new rAe(t,n,e,i,r,s,o).recognize().pipe(bc(a=>null===a?function nAe(t){return new Wt(n=>n.error(t))}(new tAe):Hn(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe($t(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),ms(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(h,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new JTe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new gC(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=oV(d,this.rootComponentType).snapshot;return Hn(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new vC(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Uh}}),ms(s=>{const a=new KTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),$t(s=>i={...s,guards:kEe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function REe(t,n){return it(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Hn({...e,guardsResult:!0}):function jEe(t,n,e,i){return ho(t).pipe(it(r=>function UEe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Hn(o.map(a=>{const l=Ey(n)??r,c=bv(a,l);return Bf(function NEe(t){return t&&Oy(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(jf())})).pipe(xv()):Hn(!0)}(r.component,r.route,e,n,i)),jf(r=>!0!==r,!0))}(s,i,r,t).pipe(it(a=>a&&function AEe(t){return"boolean"==typeof t}(a)?function LEe(t,n,e,i){return ho(n).pipe(Lf(r=>oC(function $Ee(t,n){return null!==t&&n&&n(new iEe(t)),Hn(!0)}(r.route.parent,i),function BEe(t,n){return null!==t&&n&&n(new oEe(t)),Hn(!0)}(r.route,i),function HEe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function DEe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>I9(()=>Hn(s.guards.map(l=>{const c=Ey(s.node)??e,u=bv(l,c);return Bf(function IEe(t){return t&&Oy(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(jf())})).pipe(xv())));return Hn(o).pipe(xv())}(t,r.path,e),function VEe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Hn(!0);const r=i.map(o=>I9(()=>{const s=Ey(n)??e,a=bv(o,s);return Bf(function OEe(t){return t&&Oy(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(jf())}));return Hn(r).pipe(xv())}(t,r.route,e))),jf(r=>!0!==r,!0))}(i,o,t,n):Hn(a)),$t(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ms(s=>{if(i.guardsResult=s.guardsResult,cm(s.guardsResult))throw cV(0,s.guardsResult);const a=new QTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ps(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),_3(s=>{if(s.guards.canActivateChecks.length)return Hn(s).pipe(ms(a=>{const l=new ZTe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),bc(a=>{let l=!1;return Hn(a).pipe(function uAe(t,n){return it(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Hn(e);let o=0;return ho(r).pipe(Lf(s=>function dAe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!EV(r)&&(o[yy]=r.title),function hAe(t,n,e,i){const r=function fAe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return Hn({});const o={};return ho(r).pipe(it(s=>function pAe(t,n,e,i){const r=Ey(n)??i,o=bv(t,r);return Bf(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(jf(),ms(a=>{o[s]=a}))),QM(1),function bTe(t){return n=>n.lift(new xTe(t))}(o),Jl(s=>g3(s)?Uh:Rf(s)))}(o,t,n,i).pipe($t(s=>(t._resolvedData=s,t.data=sV(t,e).resolve,r&&EV(r)&&(t.data[yy]=r.title),null)))}(s.route,i,t,n)),ms(()=>o++),QM(1),it(s=>o===r.length?Hn(e):Uh))})}(e.paramsInheritanceStrategy,this.environmentInjector),ms({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ms(a=>{const l=new eEe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),_3(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(ms(u=>{l.component=u}),$t(()=>{})));for(const u of l.children)c.push(...a(u));return c};return rC(a(s.targetSnapshot.root)).pipe(lC(),ua(1))}),_3(()=>this.afterPreactivation()),$t(s=>{const a=function pEe(t,n,e){const i=Dy(t,n._root,e?e._root:void 0);return new rV(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),ms(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>$t(i=>(new SEe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),ua(1),ms({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Gh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),ZM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Jl(s=>{if(o=!0,hV(s)){dV(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ky(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),dV(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||OV(i.source)};e.scheduleNavigation(l,Sy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new yC(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Uh}))}))}cancelNavigationTransition(e,i,r){const o=new ky(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function OV(t){return t!==Sy}let IV=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ki);return i}getResolvedTitleForRoute(e){return e.data[yy]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(gAe)},providedIn:"root"}),t})(),gAe=(()=>{class t extends IV{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(xt(V7))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(_Ae)},providedIn:"root"}),t})();class yAe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let _Ae=(()=>{class t extends yAe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const AC=new Yn("",{providedIn:"root",factory:()=>({})});let xAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(wAe)},providedIn:"root"}),t})(),wAe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function CAe(t){throw t}function SAe(t,n,e){return n.parse("/")}const kAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},DAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let yr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Vi(Hwe),this.isNgZoneEnabled=!1,this.options=Vi(AC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||CAe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||SAe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Vi(xAe),this.routeReuseStrategy=Vi(vAe),this.urlCreationStrategy=Vi(dEe),this.titleStrategy=Vi(IV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=L9(Vi(wv,{optional:!0})??[]),this.navigationTransitions=Vi(EC),this.urlSerializer=Vi(by),this.location=Vi(KA),this.isNgZoneEnabled=Vi(ur)instanceof ur&&ur.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new $f,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=oV(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Sy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(m3),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=cm(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Sy,null,i)}navigate(e,i={skipLocationChange:!1}){return function TAe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ru=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new fn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Gh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=fv(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=fv(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=fv(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function i8(t,n,e){return function nye(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?n8:B1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(ge(yr),ge(Vr),kf("tabindex"),ge(oa),ge(Ni),ge(rm))},t.\u0275dir=un({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&ke("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ft("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[ei]}),t})(),Ny=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ot,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Gh&&this.update()})}ngAfterContentInit(){Hn(this.links.changes,Hn(null)).pipe(M()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=ho(e).pipe(M()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function EAe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(yr),ge(Ni),ge(oa),ge($s),ge(Ru,8))},t.\u0275dir=un({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Ru,5),2&e){let o;Tn(o=En())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ei]}),t})();class NV{}let AAe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ps(e=>e instanceof Gh),Lf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=pw(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ho(r).pipe(M())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Hn(null);const o=r.pipe(it(s=>null===s?Hn(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?ho([o,this.loader.loadComponent(i)]).pipe(M()):o})}}return t.\u0275fac=function(e){return new(e||t)(xt(yr),xt(m$),xt(Gc),xt(NV),xt(b3))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const w3=new Yn("");let FV=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof gC?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof nV&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new nV(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function F8(){throw new Error("invalid")}()},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();var xc=(()=>((xc=xc||{})[xc.COMPLETE=0]="COMPLETE",xc[xc.FAILED=1]="FAILED",xc[xc.REDIRECTING=2]="REDIRECTING",xc))();const Cv=!1;function Hf(t,n){return{\u0275kind:t,\u0275providers:n}}const C3=new Yn("",{providedIn:"root",factory:()=>!1});function RV(){const t=Vi(Ca);return n=>{const e=t.get(jh);if(n!==e.components[0])return;const i=t.get(yr),r=t.get(jV);1===t.get(S3)&&i.initialNavigation(),t.get(LV,null,Oi.Optional)?.setUpPreloading(),t.get(w3,null,Oi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const jV=new Yn(Cv?"bootstrap done indicator":"",{factory:()=>new fn}),S3=new Yn(Cv?"initial navigation":"",{providedIn:"root",factory:()=>1});function FAe(){let t=[];return t=Cv?[{provide:Xx,multi:!0,useFactory:()=>{const n=Vi(yr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function aEe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Hf(1,t)}const LV=new Yn(Cv?"router preloader":"");function PAe(t){return Hf(0,[{provide:LV,useExisting:AAe},{provide:NV,useExisting:t}])}const Fy=!1,BV=new Yn(Fy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),RAe=[KA,{provide:by,useClass:e3},yr,Ty,{provide:Vr,useFactory:function PV(t){return t.routerState.root},deps:[yr]},b3,Fy?{provide:C3,useValue:!0}:[]];function jAe(){return new C$("Router",yr)}let $V=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[RAe,Fy&&i?.enableTracing?FAe().\u0275providers:[],{provide:wv,multi:!0,useValue:e},{provide:BV,useFactory:VAe,deps:[[yr,new O1,new I1]]},{provide:AC,useValue:i||{}},i?.useHash?{provide:rm,useClass:ACe}:{provide:rm,useClass:W$},{provide:w3,useFactory:()=>{const t=Vi(V2e),n=Vi(ur),e=Vi(AC),i=Vi(EC),r=Vi(by);return e.scrollOffset&&t.setOffset(e.scrollOffset),new FV(r,i,t,n,e)}},i?.preloadingStrategy?PAe(i.preloadingStrategy).\u0275providers:[],{provide:C$,multi:!0,useFactory:jAe},i?.initialNavigation?HAe(i):[],[{provide:VV,useFactory:RV},{provide:w$,multi:!0,useExisting:VV}]]}}static forChild(e){return{ngModule:t,providers:[{provide:wv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(xt(BV,8))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[f3]}),t})();function VAe(t){if(Fy&&t)throw new jt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function HAe(t){return["disabled"===t.initialNavigation?Hf(3,[{provide:yw,multi:!0,useFactory:()=>{const n=Vi(yr);return()=>{n.setUpLocationChangeListener()}}},{provide:S3,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Hf(2,[{provide:S3,useValue:0},{provide:yw,multi:!0,deps:[Ca],useFactory:n=>{const e=n.get(TCe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(yr),o=n.get(jV);(function MAe(t,n){t.events.pipe(ps(e=>e instanceof Gh||e instanceof ky||e instanceof yC||e instanceof vC),$t(e=>e instanceof Gh||e instanceof vC?xc.COMPLETE:e instanceof ky&&(0===e.code||1===e.code)?xc.REDIRECTING:xc.FAILED),ps(e=>e!==xc.REDIRECTING),ua(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(EC).afterPreactivation=()=>(i(!0),o.closed?Hn(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const VV=new Yn(Fy?"Router Initializer":"");function MC(t,n){return new Wt(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let HV=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni))},t.\u0275dir=un({type:t}),t})(),um=(()=>{class t extends HV{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,features:[wi]}),t})();const Kl=new Yn("NgValueAccessor"),GAe={provide:Kl,useExisting:ji(()=>OC),multi:!0};let OC=(()=>{class t extends um{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&ke("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[oo([GAe]),wi]}),t})();const WAe={provide:Kl,useExisting:ji(()=>Us),multi:!0},YAe=new Yn("CompositionEventMode");let Us=(()=>{class t extends HV{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qAe(){const t=Lh()?Lh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni),ge(YAe,8))},t.\u0275dir=un({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ke("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[oo([WAe]),wi]}),t})();const XAe=!1;function Uf(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function UV(t){return null!=t&&"number"==typeof t.length}const Ba=new Yn("NgValidators"),zf=new Yn("NgAsyncValidators"),JAe=/^(?=.{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 qr{static min(n){return zV(n)}static max(n){return function GV(t){return n=>{if(Uf(n.value)||Uf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return WV(n)}static requiredTrue(n){return function qV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function YV(t){return Uf(t.value)||JAe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function XV(t){return n=>Uf(n.value)||!UV(n.value)?null:n.value.lengthUV(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function KV(t){if(!t)return IC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Uf(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return iH(n)}static composeAsync(n){return rH(n)}}function zV(t){return n=>{if(Uf(n.value)||Uf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function tH(t,n){return n.map(e=>e(t))}function nH(t){return t.map(n=>function KAe(t){return!t.validate}(n)?n:e=>n.validate(e))}function iH(t){if(!t)return null;const n=t.filter(QV);return 0==n.length?null:function(e){return eH(tH(e,n))}}function k3(t){return null!=t?iH(nH(t)):null}function rH(t){if(!t)return null;const n=t.filter(QV);return 0==n.length?null:function(e){return function zAe(...t){if(1===t.length){const n=t[0];if(Se(n))return MC(n,null);if(we(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return MC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return MC(t=1===t.length&&Se(t[0])?t[0]:t,null).pipe($t(e=>n(...e)))}return MC(t,null)}(tH(e,n).map(ZV)).pipe($t(eH))}}function D3(t){return null!=t?rH(nH(t)):null}function oH(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function sH(t){return t._rawValidators}function aH(t){return t._rawAsyncValidators}function T3(t){return t?Array.isArray(t)?t:[t]:[]}function NC(t,n){return Array.isArray(t)?t.includes(n):t===n}function lH(t,n){const e=T3(n);return T3(t).forEach(r=>{NC(e,r)||e.push(r)}),e}function cH(t,n){return T3(n).filter(e=>!NC(t,e))}class uH{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(n){this._rawValidators=n||[],this._composedValidatorFn=k3(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=D3(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Tl extends uH{get formDirective(){return null}get path(){return null}}class Gf extends uH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class dH{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let da=(()=>{class t extends dH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(Gf,2))},t.\u0275dir=un({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Vn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[wi]}),t})(),ha=(()=>{class t extends dH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(Tl,10))},t.\u0275dir=un({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Vn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[wi]}),t})();function hH(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const M3=!1,Py="VALID",PC="INVALID",Sv="PENDING",Ry="DISABLED";function O3(t){return(RC(t)?t.validators:t)||null}function I3(t,n){return(RC(n)?n.asyncValidators:t)||null}function RC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function fH(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new jt(1e3,M3?function tMe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new jt(1001,M3?function nMe(t,n){return`Cannot find form control ${hH(t,n)}`}(n,e):"")}function pH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new jt(1002,M3?function iMe(t,n){return`Must supply a value for form control ${hH(t,n)}`}(n,r):"")})}class jC{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Py}get invalid(){return this.status===PC}get pending(){return this.status==Sv}get disabled(){return this.status===Ry}get enabled(){return this.status!==Ry}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(lH(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(lH(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(cH(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(cH(n,this._rawAsyncValidators))}hasValidator(n){return NC(this._rawValidators,n)}hasAsyncValidator(n){return NC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Sv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ry,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Py,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Py||this.status===Sv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ry:Py}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Sv,this._hasOwnPendingAsyncValidator=!0;const e=ZV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?Ry:this.errors?PC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Sv)?Sv:this._anyControlsHaveStatus(PC)?PC:Py}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){RC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function rMe(t){return Array.isArray(t)?k3(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function oMe(t){return Array.isArray(t)?D3(t):t||null}(this._rawAsyncValidators)}}class jy extends jC{constructor(n,e,i){super(O3(e),I3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){pH(this,!0,n),Object.keys(n).forEach(i=>{fH(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class mH extends jy{}const dm=new Yn("CallSetDisabledState",{providedIn:"root",factory:()=>Ly}),Ly="always";function By(t,n,e=Ly){N3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function aMe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&gH(t,n)})}(t,n),function cMe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function lMe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&gH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function sMe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function BC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),VC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $C(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function N3(t,n){const e=sH(t);null!==n.validator?t.setValidators(oH(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=aH(t);null!==n.asyncValidator?t.setAsyncValidators(oH(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();$C(n._rawValidators,r),$C(n._rawAsyncValidators,r)}function VC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=sH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=aH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return $C(n._rawValidators,i),$C(n._rawAsyncValidators,i),e}function gH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _H(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function bH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vy=class extends jC{constructor(n=null,e,i){super(O3(e),I3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),RC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=bH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){_H(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){_H(this._onDisabledChange,n)}_forEachChild(n){}_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(n){bH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let fa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yMe={provide:Kl,useExisting:ji(()=>L3),multi:!0};let L3=(()=>{class t extends um{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ke("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[oo([yMe]),wi]}),t})();const _Me={provide:Kl,useExisting:ji(()=>B3),multi:!0};let kH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),bMe=(()=>{class t{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:kH}),t})(),B3=(()=>{class t extends um{constructor(e,i,r,o){super(e,i),this._registry=r,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Vi(dm,{optional:!0})??Ly}ngOnInit(){this._control=this._injector.get(Gf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni),ge(bMe),ge(Ca))},t.\u0275dir=un({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&ke("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[oo([_Me]),wi]}),t})();const $3=new Yn("NgModelWithFormControlWarning"),CMe={provide:Tl,useExisting:ji(()=>Ts)};let Ts=(()=>{class t extends Tl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(VC(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 i=this.form.get(e.path);return By(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){BC(e.control||null,e,!1),function fMe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function yH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(BC(i||null,e),(t=>t instanceof Vy)(r)&&(By(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function vH(t,n){N3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function uMe(t,n){return VC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){N3(this.form,this),this._oldForm&&VC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(ge(Ba,10),ge(zf,10),ge(dm,8))},t.\u0275dir=un({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ke("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oo([CMe]),wi,ei]}),t})();const DMe={provide:Gf,useExisting:ji(()=>zs)};let zs=(()=>{class t extends Gf{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ot,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function R3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Us?e=o:function hMe(t){return Object.getPrototypeOf(t.constructor)===um}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function P3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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 function LC(t,n){return[...n.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(ge(Tl,13),ge(Ba,10),ge(zf,10),ge(Kl,10),ge($3,8))},t.\u0275dir=un({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[oo([DMe]),wi,ei]}),t})();const TMe={provide:Kl,useExisting:ji(()=>kv),multi:!0};function AH(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let kv=(()=>{class t extends um{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=AH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function EMe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&ke("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[oo([TMe]),wi]}),t})(),HC=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(AH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(kv,9))},t.\u0275dir=un({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const AMe={provide:Kl,useExisting:ji(()=>U3),multi:!0};function MH(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let U3=(()=>{class t extends um{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(MH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(MH(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(U3,9))},t.\u0275dir=un({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let hm=(()=>{class t{constructor(){this._validator=IC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):IC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,features:[ei]}),t})();const IMe={provide:Ba,useExisting:ji(()=>z3),multi:!0};let z3=(()=>{class t extends hm{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function IH(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>zV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ft("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[oo([IMe]),wi]}),t})();const NMe={provide:Ba,useExisting:ji(()=>qh),multi:!0};let qh=(()=>{class t extends hm{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=fv,this.createValidator=e=>WV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ft("required",i._enabled?"":null)},inputs:{required:"required"},features:[oo([NMe]),wi]}),t})(),BH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[kH]}),t})();class $H extends jC{constructor(n,e,i){super(O3(e),I3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){pH(this,!1,n),n.forEach((i,r)=>{fH(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function VH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let HH=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return VH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new jy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new mH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(VH(i)?o=i:(o.validators=i,o.asyncValidators=r),new Vy(e,{...o,nonNullable:!0})):new Vy(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new $H(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Vy||e instanceof jC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$a=(()=>{class t extends HH{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),BMe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:dm,useValue:e.callSetDisabledState??Ly}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[BH]}),t})(),$Me=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:dm,useValue:e.callSetDisabledState??Ly}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[BH]}),t})();const UH=new Yn("ngx-segment-analytics.config"),VMe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};let zH=(()=>{class t{analytics;static \u0275fac=function(i){return new(i||t)};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),zC=(()=>{class t{_w;_doc;_config;constructor(e,i,r){if(this._w=e,this._doc=i,this._config={...VMe,...r},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(e){this._w.analytics.setAnonymousId(e)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}addDestinationMiddleware(e,...i){this._w.analytics.addDestinationMiddleware(e,...i)}register(...e){return this._w.analytics.register(...e)}get plugins(){return this._w.analytics.plugins}static \u0275fac=function(i){return new(i||t)(xt(zH),xt(vo),xt(UH))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function HMe(t){return v7(t)?window:{}}let UMe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:UH,useValue:e},zC]}}constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static \u0275fac=function(i){return new(i||t)(xt(t,12))};static \u0275mod=Ii({type:t});static \u0275inj=Di({providers:[{provide:zH,useFactory:HMe,deps:[sy]}],imports:[If]})}return t})();class GC{}class G3{}class ju{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{let r;if(r="string"==typeof i?[i]:"number"==typeof i?[i.toString()]:i.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof ju?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new ju;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ju?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class zMe{encodeKey(n){return GH(n)}encodeValue(n){return GH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const WMe=/%(\d[a-f0-9])/gi,qMe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function GH(t){return encodeURIComponent(t).replace(WMe,(n,e)=>qMe[e]??n)}function WC(t){return`${t}`}class On{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new zMe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GMe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(WC):[WC(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new On({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(WC(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(WC(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class YMe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function WH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function qH(t){return typeof Blob<"u"&&t instanceof Blob}function YH(t){return typeof FormData<"u"&&t instanceof FormData}class Hy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function XMe(t){switch(t){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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new ju),this.context||(this.context=new YMe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Hy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Gs=(()=>((Gs=Gs||{})[Gs.Sent=0]="Sent",Gs[Gs.UploadProgress=1]="UploadProgress",Gs[Gs.ResponseHeader=2]="ResponseHeader",Gs[Gs.DownloadProgress=3]="DownloadProgress",Gs[Gs.Response=4]="Response",Gs[Gs.User=5]="User",Gs))();class W3{constructor(n,e=200,i="OK"){this.headers=n.headers||new ju,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class q3 extends W3{constructor(n={}){super(n),this.type=Gs.ResponseHeader}clone(n={}){return new q3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qC extends W3{constructor(n={}){super(n),this.type=Gs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new qC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class XH extends W3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Y3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let YC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Hy)o=e;else{let l,c;l=r.headers instanceof ju?r.headers:new ju(r.headers),r.params&&(c=r.params instanceof On?r.params:new On({fromObject:r.params})),o=new Hy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Hn(o).pipe(Lf(l=>this.handler.handle(l)));if(e instanceof Hy||"events"===r.observe)return s;const a=s.pipe(ps(l=>l instanceof qC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe($t(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($t(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new On).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Y3(r,i))}post(e,i,r={}){return this.request("POST",e,Y3(r,i))}put(e,i,r={}){return this.request("PUT",e,Y3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(xt(GC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();function JH(t,n){return n(t)}function KMe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const X3=new Yn("HTTP_INTERCEPTORS"),Uy=new Yn("HTTP_INTERCEPTOR_FNS");function ZMe(){let t=null;return(n,e)=>(null===t&&(t=(Vi(X3,{optional:!0})??[]).reduceRight(KMe,JH)),t(n,e))}let KH=(()=>{class t extends GC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Uy)));this.chain=i.reduceRight((r,o)=>function QMe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),JH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(xt(G3),xt(Gc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const i3e=/^\)\]\}',?\n/;let ZH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Wt(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new ju(r.getAllResponseHeaders()),m=function r3e(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new q3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const b=v;v=v.replace(i3e,"");try{v=""!==v?JSON.parse(v):null}catch(C){v=b,y&&(y=!1,v={error:C,text:v})}}y?(i.next(new qC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new XH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new XH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Gs.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Gs.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:Gs.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(xt(_7))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const J3=new Yn("XSRF_ENABLED"),eU=new Yn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tU=new Yn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nU{}let a3e=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=o7(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(xt(vo),xt(sy),xt(eU))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();function l3e(t,n){const e=t.url.toLowerCase();if(!Vi(J3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Vi(nU).getToken(),r=Vi(tU);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Es=(()=>((Es=Es||{})[Es.Interceptors=0]="Interceptors",Es[Es.LegacyInterceptors=1]="LegacyInterceptors",Es[Es.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Es[Es.NoXsrfProtection=3]="NoXsrfProtection",Es[Es.JsonpSupport=4]="JsonpSupport",Es[Es.RequestsMadeViaParent=5]="RequestsMadeViaParent",Es))();function Dv(t,n){return{\u0275kind:t,\u0275providers:n}}function c3e(...t){const n=[YC,ZH,KH,{provide:GC,useExisting:KH},{provide:G3,useExisting:ZH},{provide:Uy,useValue:l3e,multi:!0},{provide:J3,useValue:!0},{provide:nU,useClass:a3e}];for(const e of t)n.push(...e.\u0275providers);return function iye(t){return{\u0275providers:t}}(n)}const iU=new Yn("LEGACY_INTERCEPTOR_FN");let d3e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[c3e(Dv(Es.LegacyInterceptors,[{provide:iU,useFactory:ZMe},{provide:Uy,useExisting:iU,multi:!0}]))]}),t})();var ri=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(ri||(ri={})),ri))(),zy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY",t[t.FACEBOOK_INSTANT_STORE=3]="FACEBOOK_INSTANT_STORE"}(zy||(zy={})),zy))();class XC{host;timeoutMs}let Ai=(()=>{class t{httpClient;config;constructor(e,i){this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new On({encoder:new Wn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new On({encoder:new Wn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new On({encoder:new Wn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}authenticateMFASetup(e,i){let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/mfa",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new On({encoder:new Wn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new On({encoder:new Wn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new On({encoder:new Wn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getPurchase(e,i){const r=`/v2/console/iap/purchase/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getSubscription(e,i){const r=`/v2/console/iap/subscription/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new On({encoder:new Wn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new On({encoder:new Wn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new On({encoder:new Wn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new On({encoder:new Wn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new On({encoder:new Wn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new On({encoder:new Wn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new On({encoder:new Wn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new On({encoder:new Wn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new On({encoder:new Wn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new On({encoder:new Wn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new On({encoder:new Wn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new On({encoder:new Wn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new On({encoder:new Wn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new On({encoder:new Wn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}resetUserMfa(e,i){const r=`/v2/console/user/${i=encodeURIComponent(String(i))}/reset/mfa`;let o=new On({encoder:new Wn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new ju).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new ju).set("Authorization","Basic "+btoa(e+":"+i))}static \u0275fac=function(i){return new(i||t)(xt(YC),xt(XC,8))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Wn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const rU=new Yn("window"),p3e=[{provide:rU,useFactory:()=>window}],JC="currentSession";let Ho=(()=>{class t{window;segment;http;consoleService;config;currentSessionSubject;currentSession;constructor(e,i,r,o,s){this.window=e,this.segment=i,this.http=r,this.consoleService=o,this.config=s;const a=JSON.parse(localStorage.getItem(JC));a&&this.segmentIdentify(a),this.currentSessionSubject=new ca(a),this.currentSession=this.currentSessionSubject.asObservable()}get session(){return this.currentSessionSubject.getValue()}get username(){return this.claims.usn}get sessionRole(){switch(this.claims.rol){case 1:return ri.USER_ROLE_ADMIN;case 2:return ri.USER_ROLE_DEVELOPER;case 3:return ri.USER_ROLE_MAINTAINER;case 4:return ri.USER_ROLE_READONLY;default:return ri.USER_ROLE_UNKNOWN}}get claims(){const e=this.currentSessionSubject.getValue().token;return JSON.parse(atob(e.split(".")[1]))}get mfa(){const e=this.currentSessionSubject.getValue().mfa_code;return e?JSON.parse(atob(e.split(".")[1])):null}get mfaRequired(){return this?.mfa?.mfa_required||!1}login(e,i,r){return this.http.post(this.config.host+"/v2/console/authenticate",{username:e,password:i,mfa:r},{observe:"response"}).pipe(ms(s=>{localStorage.setItem(JC,JSON.stringify(s.body)),this.currentSessionSubject.next(s.body),this.segmentIdentify(s.body)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(ms(()=>{localStorage.removeItem(JC),this.currentSessionSubject.next(null)})):Uh}mfaSet(e){return this.consoleService.authenticateMFASetup("",{mfa:this.session.mfa_code,code:e}).pipe(ms(()=>{this.session.mfa_code=null,localStorage.setItem(JC,JSON.stringify(this.session)),this.currentSessionSubject.next(this.session)}))}segmentIdentify(e){const r=JSON.parse(atob(e.token.split(".")[1]));this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}static \u0275fac=function(i){return new(i||t)(xt(rU),xt(zC),xt(YC),xt(Ai),xt(XC))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function m3e(t,n){if(1&t&&(_(0,"div",32),O(1),x()),2&t){const e=L(2);w(1),bn(" ",e.error," ")}}const g3e=function(t){return{"was-validated":t}},K3=function(t){return{"is-invalid":t}};function v3e(t,n){if(1&t){const e=_t();_(0,"div",18)(1,"h3",19),O(2,"Sign in to continue to the Nakama Dashboard"),x(),te(3,m3e,2,1,"div",20),_(4,"form",21),ke("ngSubmit",function(){return ze(e),Ge(L().onSubmit())}),_(5,"div",22)(6,"label",23),O(7,"Username"),x(),xe(8,"input",24),_(9,"div",25),O(10,"Please enter a username."),x()(),_(11,"div",22)(12,"label",26),O(13,"Password"),x(),xe(14,"input",27),_(15,"div",25),O(16,"Password must be at least 8 characters."),x()(),_(17,"div",28)(18,"label",29),O(19,"MFA Code"),x(),xe(20,"input",30),_(21,"div",25),O(22,"Code must contain 6 digits."),x()(),_(23,"button",31),O(24),x()()()}if(2&t){const e=L();w(3),S("ngIf",e.error),w(1),S("formGroup",e.loginForm)("ngClass",Zi(12,g3e,e.submitted)),w(4),S("ngClass",Zi(14,K3,e.f.username.dirty&&e.f.username.errors)),w(1),S("hidden",e.f.username.disabled||e.f.username.pristine||e.f.username.valid),w(5),S("ngClass",Zi(16,K3,e.f.password.dirty&&e.f.password.errors)),w(1),S("hidden",e.f.password.disabled||e.f.password.pristine||e.f.password.valid),w(2),S("hidden",!e.mfaEnabled),w(3),S("ngClass",Zi(18,K3,e.f.code.dirty&&e.f.code.errors)),w(1),S("hidden",e.f.code.disabled||e.f.code.pristine||e.f.code.valid),w(2),S("disabled",!e.loginForm.valid),w(1),wt(e.mfaEnabled?"Verify":"Login")}}function y3e(t,n){1&t&&xe(0,"router-outlet")}let _3e=(()=>{class t{router;segment;formBuilder;route;authService;error="";loginForm;submitted;mfaEnabled=!1;returnUrl;constructor(e,i,r,o,s){this.router=e,this.segment=i,this.formBuilder=r,this.route=o,this.authService=s}ngOnInit(){this.segment.page("/login"),this.loginForm=this.formBuilder.group({username:["",qr.compose([qr.required])],password:["",qr.compose([qr.required,qr.minLength(8)])],code:[{value:"",disabled:!0},qr.compose([qr.required,qr.minLength(6),qr.maxLength(6)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authService.login(this.f.username.value,this.f.password.value,this.f.code.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,e.body.mfa_code&&this.authService.mfaRequired?this.router.navigate(["mfa"],{relativeTo:this.route}):this.router.navigate([this.returnUrl])},e=>{403===e.status?(this.mfaEnabled=!0,this.f.username.disable(),this.f.password.disable(),this.f.code.enable()):(this.error=e,this.submitted=!1)})}get f(){return this.loginForm.controls}static \u0275fac=function(i){return new(i||t)(ge(yr),ge(zC),ge($a),ge(Vr),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:37,vars:2,consts:[[1,"d-flex","flex-column","flex-lg-row","h-100","relative"],["src","/static/svg/logo-white.svg","alt","Nakama Logo","width","175","height","43",1,"logo"],[1,"login-panel"],[1,"align-self-center","login-form"],["class","px-4",4,"ngIf","ngIfElse"],["mfa",""],[1,"heroic-stack"],[1,""],["src","/static/svg/hiro-logo.svg","alt","Hiro Logo","width","110","height","50",1,"mb-3"],["href","https://www.youtube.com/playlist?list=PLOAExZcDNj9sWny_J8J5ARkxDTwAV0i6f&utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Reconstructing%20Fun%20Sign-In","target","_blank"],["href","https://heroiclabs.com/hiro/?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Hiro%20Sign-In","target","_blank",1,"login-link"],["src","/static/svg/satori-logo.svg","alt","Satori Logo","width","134","height","50",1,"mb-3"],["href","https://heroiclabs.com/satori/?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Satori%20Sign-In","target","_blank",1,"login-link"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/calendar.svg","alt","Calendar"],[1,"font-weight-bold","ml-2",2,"font-size","20px"],["href","https://heroiclabs.com/bookademo?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Book%20a%20Demo%20Sign-In","target","_blank",1,"login-link-pink"],["src","/static/svg/phone.svg","alt","Phone"],[1,"px-4"],[1,"login-title","mb-4"],["class","alert alert-warning","role","alert",4,"ngIf"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"form-group",3,"hidden"],["for","code"],["type","code","id","code","formControlName","code","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(i,r){if(1&i&&(_(0,"div",0),xe(1,"img",1),_(2,"div",2)(3,"div",3),te(4,v3e,25,20,"div",4),te(5,y3e,1,0,"ng-template",null,5,Xo),x()(),_(7,"div",2)(8,"div",6)(9,"div",7),xe(10,"img",8),_(11,"p"),O(12,"A metagame framework built on Nakama to add virtual store, rewards, event leaderboards and much more rapidly and flexibly to your game. "),_(13,"a",9),O(14,"RECONSTRUCTING FUN"),x(),O(15," on YouTube shows you how."),x(),_(16,"a",10),O(17,"Explore Hiro"),x()(),xe(18,"hr"),_(19,"div",7),xe(20,"img",11),_(21,"p"),O(22,"LiveOps for your live services game. Live events, Experiments, Feature Flags, Audience Segmentation and Analytics built to work independently but beautifully with Nakama."),x(),_(23,"a",12),O(24,"Explore Satori"),x()(),xe(25,"hr"),_(26,"div")(27,"div",13),xe(28,"img",14),_(29,"span",15),O(30,"Working at a Game Studio?"),x()(),_(31,"p"),O(32,"Ready to take your game development to the next level? Contact us for a free 45 minute demo call."),x(),_(33,"a",16),xe(34,"img",17),_(35,"span"),O(36,"Schedule a call with us"),x()()()()()()),2&i){const o=sa(6);w(4),S("ngIf",!r.router.url.endsWith("mfa"))("ngIfElse",o)}},dependencies:[Vf,Of,xn,fa,Us,da,ha,qh,Ts,zs],styles:[".logo[_ngcontent-%COMP%]{position:absolute;top:10px;left:15px}@media (min-width: 992px){.logo[_ngcontent-%COMP%]{top:40px;left:30px}}.login-form[_ngcontent-%COMP%]{margin:100px auto auto;max-width:600px}@media (min-width: 992px){.login-form[_ngcontent-%COMP%]{width:485px;margin:auto}}.login-title[_ngcontent-%COMP%]{font-size:28px;font-weight:300}.login-panel[_ngcontent-%COMP%]{flex:1 1 0;display:flex}.login-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:300;font-size:20px}.heroic-stack[_ngcontent-%COMP%]{padding:0 1.5rem;max-width:600px;margin:70px auto 40px}@media (min-width: 992px){.heroic-stack[_ngcontent-%COMP%]{max-width:660px;padding:0 15px;margin:auto}}.login-link[_ngcontent-%COMP%], .login-link-pink[_ngcontent-%COMP%]{display:inline-flex;padding:15px;font-size:15px;border:1px;border-radius:5px;border:1px solid}.login-link[_ngcontent-%COMP%]{color:#4739c5;border-color:#4739c51a}hr[_ngcontent-%COMP%]{border:2px solid rgba(217,217,217,.2);margin-top:20px;margin-bottom:40px}.login-link-pink[_ngcontent-%COMP%]{border-color:#b421b41a;background:#FFF6FF;color:#b421b4}.login-link-pink[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:15px}"]})}return t})(),b3e=(()=>{class t{authService;router;constructor(e,i){this.authService=e,this.router=i}canActivate(e,i){return!(this.authService.session&&!this.authService.session.mfa_code&&!this.authService.mfaRequired)||(this.router.navigate(["/"]),!1)}static \u0275fac=function(i){return new(i||t)(xt(Ho),xt(yr))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x3e=(()=>{class t{router;authService;constructor(e,i){this.router=e,this.authService=i}canActivate(e,i){const r=this.authService.session;return r?!r||!this.authService.mfaRequired||(this.router.navigate(["/login/mfa"],{queryParams:{next:i.url}}),!1):(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}static \u0275fac=function(i){return new(i||t)(xt(yr),xt(Ho))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class w3e extends re{constructor(n,e){super()}schedule(n,e=0){return this}}class Q3 extends w3e{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let oU=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Vd extends oU{constructor(n,e=oU.now){super(n,()=>Vd.delegate&&Vd.delegate!==this?Vd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Vd.delegate&&Vd.delegate!==this?Vd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const KC=new Vd(Q3);class S3e{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new D3e(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class k3e{constructor(){this.buffer=[]}}class D3e extends I{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(sU,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(aU,e,{subscriber:this,context:s})),this.add(o.schedule(T3e,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(sU,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new k3e;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function sU(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function T3e(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(aU,e,{subscriber:i,context:o})),this.schedule(t,n))}function aU(t){const{subscriber:n,context:e}=t;n.closeContext(e)}function QC(t,n){return e=>e.lift(new E3e(t,n))}class E3e{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new A3e(n,this.compare,this.keySelector))}}class A3e extends I{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Va(t,n,e,i){return be(e)&&(i=e,e=void 0),i?Va(t,n,e).pipe($t(r=>Se(r)?i(...r):i(r))):new Wt(r=>{lU(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function lU(t,n,e,i,r){let o;if(function I3e(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function O3e(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function M3e(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function Gy(t=0,n,e){let i=-1;return cU(n)?i=Number(n)<1?1:Number(n):fi(n)&&(e=n),fi(e)||(e=KC),new Wt(r=>{const o=cU(t)?t:+t-e.now();return e.schedule(N3e,o,{index:0,period:i,subscriber:r})})}function N3e(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function uU(...t){if(1===t.length){if(!Se(t[0]))return t[0];t=t[0]}return at(t,void 0).lift(new F3e)}class F3e{call(n,e){return e.subscribe(new P3e(n))}}class P3e extends JM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class $3e extends Y{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[uo](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Le(this.observable,new Hl(this))}}function ns(t){return n=>n.lift(new H3e(t))}class H3e{constructor(n){this.notifier=n}call(n,e){const i=new U3e(n),r=Le(this.notifier,new Hl(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class U3e extends Y{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Z3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new z3e(t,e))}}class z3e{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new G3e(n,this.observables,this.project))}}class G3e extends JM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Lu{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Hn(this.value);case"E":return Rf(this.error);case"C":return sC()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Lu("N",n):Lu.undefinedValueNotification}static createError(n){return new Lu("E",void 0,n)}static createComplete(){return Lu.completeNotification}}function eO(t,n=KC){const i=function W3e(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new q3e(i,n))}Lu.completeNotification=new Lu("C"),Lu.undefinedValueNotification=new Lu("N",void 0);class q3e{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new tO(n,this.delay,this.scheduler))}}class tO extends I{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(tO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new Y3e(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Lu.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Lu.createComplete()),this.unsubscribe()}}class Y3e{constructor(n,e){this.time=n,this.notification=e}}class J3e{constructor(n){this.total=n}call(n,e){return e.subscribe(new K3e(n,this.total))}}class K3e extends I{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}var Q3e={left:"right",right:"left",bottom:"top",top:"bottom"};function e2(t){return t.replace(/left|right|bottom|top/g,function(n){return Q3e[n]})}function Hd(t){return t.split("-")[0]}var Z3e={start:"end",end:"start"};function hU(t){return t.replace(/start|end/g,function(n){return Z3e[n]})}var wc="top",Bu="bottom",$u="right",Cc="left",nO="auto",Wy=[wc,Bu,$u,Cc],Tv="start",qy="end",eOe="clippingParents",fU="viewport",Yy="popper",tOe="reference",pU=Wy.reduce(function(t,n){return t.concat([n+"-"+Tv,n+"-"+qy])},[]),mU=[].concat(Wy,[nO]).reduce(function(t,n){return t.concat([n,n+"-"+Tv,n+"-"+qy])},[]),dOe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sc(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function fm(t){return t instanceof Sc(t).Element||t instanceof Element}function Qc(t){return t instanceof Sc(t).HTMLElement||t instanceof HTMLElement}function iO(t){return!(typeof ShadowRoot>"u")&&(t instanceof Sc(t).ShadowRoot||t instanceof ShadowRoot)}function Wf(t){return((fm(t)?t.ownerDocument:t.document)||window.document).documentElement}var pm=Math.max,t2=Math.min,Ev=Math.round;function rO(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function gU(){return!/^((?!chrome|android).)*safari/i.test(rO())}function Av(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&Qc(t)&&(r=t.offsetWidth>0&&Ev(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ev(i.height)/t.offsetHeight||1);var a=(fm(t)?Sc(t):window).visualViewport,l=!gU()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function oO(t){var n=Sc(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function sO(t){return Av(Wf(t)).left+oO(t).scrollLeft}function Yh(t){return Sc(t).getComputedStyle(t)}function Ud(t){return t?(t.nodeName||"").toLowerCase():null}function n2(t){return"html"===Ud(t)?t:t.assignedSlot||t.parentNode||(iO(t)?t.host:null)||Wf(t)}function aO(t){var n=Yh(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function vU(t){return["html","body","#document"].indexOf(Ud(t))>=0?t.ownerDocument.body:Qc(t)&&aO(t)?t:vU(n2(t))}function Xy(t,n){var e;void 0===n&&(n=[]);var i=vU(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Sc(i),s=r?[o].concat(o.visualViewport||[],aO(i)?i:[]):i,a=n.concat(s);return r?a:a.concat(Xy(n2(s)))}function pOe(t){return["table","td","th"].indexOf(Ud(t))>=0}function yU(t){return Qc(t)&&"fixed"!==Yh(t).position?t.offsetParent:null}function Jy(t){for(var n=Sc(t),e=yU(t);e&&pOe(e)&&"static"===Yh(e).position;)e=yU(e);return e&&("html"===Ud(e)||"body"===Ud(e)&&"static"===Yh(e).position)?n:e||function mOe(t){var n=/firefox/i.test(rO());if(/Trident/i.test(rO())&&Qc(t)&&"fixed"===Yh(t).position)return null;var r=n2(t);for(iO(r)&&(r=r.host);Qc(r)&&["html","body"].indexOf(Ud(r))<0;){var o=Yh(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||n}function _U(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&iO(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function lO(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function bU(t,n,e){return n===fU?lO(function hOe(t,n){var e=Sc(t),i=Wf(t),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=gU();(c||!c&&"fixed"===n)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+sO(t),y:l}}(t,e)):fm(n)?function gOe(t,n){var e=Av(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):lO(function fOe(t){var n,e=Wf(t),i=oO(t),r=null==(n=t.ownerDocument)?void 0:n.body,o=pm(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=pm(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+sO(t),l=-i.scrollTop;return"rtl"===Yh(r||e).direction&&(a+=pm(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Wf(t)))}function Mv(t){return t.split("-")[1]}function cO(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xU(t){var l,n=t.reference,e=t.element,i=t.placement,r=i?Hd(i):null,o=i?Mv(i):null,s=n.x+n.width/2-e.width/2,a=n.y+n.height/2-e.height/2;switch(r){case wc:l={x:s,y:n.y-e.height};break;case Bu:l={x:s,y:n.y+n.height};break;case $u:l={x:n.x+n.width,y:a};break;case Cc:l={x:n.x-e.width,y:a};break;default:l={x:n.x,y:n.y}}var c=r?cO(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Tv:l[c]=l[c]-(n[u]/2-e[u]/2);break;case qy:l[c]=l[c]+(n[u]/2-e[u]/2)}}return l}function CU(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function SU(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function uO(t,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?eOe:a,c=n.rootBoundary,u=void 0===c?fU:c,d=n.elementContext,h=void 0===d?Yy:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=CU("number"!=typeof g?g:SU(g,Wy)),b=t.rects.popper,C=t.elements[p?h===Yy?tOe:Yy:h],D=function yOe(t,n,e,i){var r="clippingParents"===n?function vOe(t){var n=Xy(n2(t)),i=["absolute","fixed"].indexOf(Yh(t).position)>=0&&Qc(t)?Jy(t):t;return fm(i)?n.filter(function(r){return fm(r)&&_U(r,i)&&"body"!==Ud(r)}):[]}(t):[].concat(n),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=bU(t,c,i);return l.top=pm(u.top,l.top),l.right=t2(u.right,l.right),l.bottom=t2(u.bottom,l.bottom),l.left=pm(u.left,l.left),l},bU(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(fm(C)?C:C.contextElement||Wf(t.elements.popper),l,u,s),E=Av(t.elements.reference),B=xU({reference:E,element:b,strategy:"absolute",placement:r}),z=lO(Object.assign({},b,B)),j=h===Yy?z:E,U={top:D.top-j.top+v.top,bottom:j.bottom-D.bottom+v.bottom,left:D.left-j.left+v.left,right:j.right-D.right+v.right},G=t.modifiersData.offset;if(h===Yy&&G){var X=G[r];Object.keys(U).forEach(function(oe){var P=[$u,Bu].indexOf(oe)>=0?1:-1,W=[wc,Bu].indexOf(oe)>=0?"y":"x";U[oe]+=X[W]*P})}return U}const wOe={name:"flip",enabled:!0,phase:"main",fn:function xOe(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,f=e.flipVariations,p=void 0===f||f,m=e.allowedAutoPlacements,g=n.options.placement,v=Hd(g),b=l||(v!==g&&p?function bOe(t){if(Hd(t)===nO)return[];var n=e2(t);return[hU(t),n,hU(n)]}(g):[e2(g)]),C=[g].concat(b).reduce(function(ce,ve){return ce.concat(Hd(ve)===nO?function _Oe(t,n){void 0===n&&(n={});var r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?mU:l,u=Mv(n.placement),d=u?a?pU:pU.filter(function(p){return Mv(p)===u}):Wy,h=d.filter(function(p){return c.indexOf(p)>=0});0===h.length&&(h=d);var f=h.reduce(function(p,m){return p[m]=uO(t,{placement:m,boundary:r,rootBoundary:o,padding:s})[Hd(m)],p},{});return Object.keys(f).sort(function(p,m){return f[p]-f[m]})}(n,{placement:ve,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):ve)},[]),D=n.rects.reference,E=n.rects.popper,B=new Map,z=!0,j=C[0],U=0;U=0,W=P?"width":"height",J=uO(n,{placement:G,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),H=P?oe?$u:Cc:oe?Bu:wc;D[W]>E[W]&&(H=e2(H));var pe=e2(H),A=[];if(o&&A.push(J[X]<=0),a&&A.push(J[H]<=0,J[pe]<=0),A.every(function(ce){return ce})){j=G,z=!1;break}B.set(G,A)}if(z)for(var F=function(ve){var je=C.find(function(Te){var et=B.get(Te);if(et)return et.slice(0,ve).every(function(We){return We})});if(je)return j=je,"break"},q=p?3:1;q>0&&"break"!==F(q);q--);n.placement!==j&&(n.modifiersData[i]._skip=!0,n.placement=j,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ky(t,n,e){return pm(t,t2(n,e))}function dO(t){var n=Av(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const DOe={name:"preventOverflow",enabled:!0,phase:"main",fn:function kOe(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,f=void 0===h||h,p=e.tetherOffset,m=void 0===p?0:p,g=uO(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),v=Hd(n.placement),y=Mv(n.placement),b=!y,C=cO(v),D=function COe(t){return"x"===t?"y":"x"}(C),E=n.modifiersData.popperOffsets,B=n.rects.reference,z=n.rects.popper,j="function"==typeof m?m(Object.assign({},n.rects,{placement:n.placement})):m,U="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),G=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(E){if(o){var oe,P="y"===C?wc:Cc,W="y"===C?Bu:$u,J="y"===C?"height":"width",H=E[C],pe=H+g[P],A=H-g[W],N=f?-z[J]/2:0,F=y===Tv?B[J]:z[J],q=y===Tv?-z[J]:-B[J],V=n.elements.arrow,ce=f&&V?dO(V):{width:0,height:0},ve=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},je=ve[P],Te=ve[W],et=Ky(0,B[J],ce[J]),We=b?B[J]/2-N-et-je-U.mainAxis:F-et-je-U.mainAxis,st=b?-B[J]/2+N+et+Te+U.mainAxis:q+et+Te+U.mainAxis,$=n.elements.arrow&&Jy(n.elements.arrow),le=null!=(oe=G?.[C])?oe:0,Ze=H+st-le,Ve=Ky(f?t2(pe,H+We-le-($?"y"===C?$.clientTop||0:$.clientLeft||0:0)):pe,H,f?pm(A,Ze):A);E[C]=Ve,X[C]=Ve-H}if(a){var Ct,Xn=E[D],on="y"===D?"height":"width",Ri=Xn+g["x"===C?wc:Cc],hn=Xn-g["x"===C?Bu:$u],vr=-1!==[wc,Cc].indexOf(v),Er=null!=(Ct=G?.[D])?Ct:0,fr=vr?Ri:Xn-B[on]-z[on]-Er+U.altAxis,wr=vr?Xn+B[on]+z[on]-Er-U.altAxis:hn,Si=f&&vr?function SOe(t,n,e){var i=Ky(t,n,e);return i>e?e:i}(fr,Xn,wr):Ky(f?fr:Ri,Xn,f?wr:hn);E[D]=Si,X[D]=Si-Xn}n.modifiersData[i]=X}},requiresIfExists:["offset"]};const MOe={name:"arrow",enabled:!0,phase:"main",fn:function EOe(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=Hd(e.placement),l=cO(a),u=[Cc,$u].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(n,e){return CU("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:SU(n,Wy))}(r.padding,e),h=dO(o),f="y"===l?wc:Cc,p="y"===l?Bu:$u,m=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],g=s[l]-e.rects.reference[l],v=Jy(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,E=y/2-h[u]/2+(m/2-g/2),B=Ky(d[f],E,y-h[u]-d[p]);e.modifiersData[i]=((n={})[l]=B,n.centerOffset=B-E,n)}},effect:function AOe(t){var n=t.state,i=t.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||_U(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function FOe(t,n,e){void 0===e&&(e=!1);var i=Qc(n),r=Qc(n)&&function NOe(t){var n=t.getBoundingClientRect(),e=Ev(n.width)/t.offsetWidth||1,i=Ev(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),o=Wf(n),s=Av(t,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==Ud(n)||aO(o))&&(a=function IOe(t){return t!==Sc(t)&&Qc(t)?function OOe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):oO(t)}(n)),Qc(n)?((l=Av(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):o&&(l.x=sO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function POe(t){var n=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=n.get(a);l&&r(l)}}),i.push(o)}return t.forEach(function(o){n.set(o.name,o)}),t.forEach(function(o){e.has(o.name)||r(o)}),i}function jOe(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var kU={placement:"bottom",modifiers:[],strategy:"absolute"};function DU(){for(var t=arguments.length,n=new Array(t),e=0;e=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Cc,$u].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,n.rects,o),u},{}),a=s[n.placement],c=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=a.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[i]=s}};function tIe(t,n){}function nIe(t,n){if(1&t&&(_(0,"button",3),O(1),te(2,tIe,0,0,"ng-template",4),x()),2&t){const e=n.$implicit;S("ngbPanelToggle",e),w(1),bn(" ",e.title," "),w(1),S("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function iIe(t,n){}function rIe(t,n){}function oIe(t,n){if(1&t){const e=_t();_(0,"div",8),ke("ngbRef",function(r){return ze(e),Ge(L().$implicit.panelDiv=r)}),_(1,"div",9),te(2,rIe,0,0,"ng-template",4),x()()}if(2&t){const e=L().$implicit;Ph("id",e.id),ft("aria-labelledby",e.id+"-header"),w(2),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const sIe=function(t,n){return{$implicit:t,opened:n}};function aIe(t,n){if(1&t&&(_(0,"div")(1,"div",5),te(2,iIe,0,0,"ng-template",6),x(),te(3,oIe,3,3,"div",7),x()),2&t){const e=n.$implicit,i=L(),r=sa(1);Au("accordion-item "+(e.cardClass||"")),w(1),Au("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),em("id","",e.id,"-header"),w(1),S("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||r)("ngTemplateOutletContext",Rr(8,sIe,e,e.isOpen)),w(1),S("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function lIe(t,n){if(1&t){const e=_t();_(0,"button",1),ke("click",function(){return ze(e),Ge(L().close())}),x()}}const Qy=["*"];function cIe(t,n){if(1&t){const e=_t();_(0,"button",6),ke("click",function(){const o=ze(e).$implicit,s=L();return s.focus(),Ge(s.select(o.id,s.NgbSlideEventSource.INDICATOR))}),x()}if(2&t){const e=n.$implicit,i=L();Vn("active",e.id===i.activeId),ft("aria-labelledby","slide-"+e.id)("aria-controls","slide-"+e.id)("aria-selected",e.id===i.activeId)}}function uIe(t,n){}function dIe(t,n){if(1&t&&(_(0,"div",7)(1,"span",8),Pa(2,9),x(),te(3,uIe,0,0,"ng-template",10),x()),2&t){const e=n.$implicit,i=n.index,r=n.count;S("id","slide-"+e.id),w(2),cv(i+1)(r),ey(2),w(1),S("ngTemplateOutlet",e.tplRef)}}function hIe(t,n){if(1&t){const e=_t();_(0,"button",11),ke("click",function(){return ze(e),Ge(L().arrowLeft())}),xe(1,"span",12),_(2,"span",8),Pa(3,13),x()()}}function fIe(t,n){if(1&t){const e=_t();_(0,"button",14),ke("click",function(){return ze(e),Ge(L().arrowRight())}),xe(1,"span",15),_(2,"span",8),Pa(3,16),x()()}}const pIe=["ngbDatepickerDayView",""],mIe=["month"],gIe=["year"];function vIe(t,n){if(1&t&&(_(0,"option",5),O(1),x()),2&t){const e=n.$implicit,i=L();S("value",e),ft("aria-label",i.i18n.getMonthFullName(e,i.date.year)),w(1),wt(i.i18n.getMonthShortName(e,i.date.year))}}function yIe(t,n){if(1&t&&(_(0,"option",5),O(1),x()),2&t){const e=n.$implicit,i=L();S("value",e),w(1),wt(i.i18n.getYearNumerals(e))}}function _Ie(t,n){if(1&t){const e=_t();_(0,"ngb-datepicker-navigation-select",7),ke("select",function(r){return ze(e),Ge(L().select.emit(r))}),x()}if(2&t){const e=L();S("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function bIe(t,n){1&t&&xe(0,"div",0)}function xIe(t,n){1&t&&xe(0,"div",0)}function wIe(t,n){if(1&t&&(te(0,bIe,1,0,"div",9),_(1,"div",10),O(2),x(),te(3,xIe,1,0,"div",9)),2&t){const e=n.$implicit,i=n.index,r=L(2);S("ngIf",i>0),w(2),bn(" ",r.i18n.getMonthLabel(e.firstDate)," "),w(1),S("ngIf",i!==r.months.length-1)}}function CIe(t,n){1&t&&te(0,wIe,4,3,"ng-template",8),2&t&&S("ngForOf",L().months)}function SIe(t,n){if(1&t&&(_(0,"div",5),O(1),x()),2&t){const e=L(2);w(1),wt(e.i18n.getWeekLabel())}}function kIe(t,n){if(1&t&&(_(0,"div",6),O(1),x()),2&t){const e=n.$implicit;w(1),wt(e)}}function DIe(t,n){if(1&t&&(_(0,"div",2),te(1,SIe,2,1,"div",3),te(2,kIe,2,1,"div",4),x()),2&t){const e=L();w(1),S("ngIf",e.datepicker.showWeekNumbers),w(1),S("ngForOf",e.viewModel.weekdays)}}function TIe(t,n){if(1&t&&(_(0,"div",11),O(1),x()),2&t){const e=L(2).$implicit,i=L();w(1),wt(i.i18n.getWeekNumerals(e.number))}}function EIe(t,n){}function AIe(t,n){if(1&t&&te(0,EIe,0,0,"ng-template",14),2&t){const e=L().$implicit;S("ngTemplateOutlet",L(3).datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function MIe(t,n){if(1&t){const e=_t();_(0,"div",12),ke("click",function(r){const s=ze(e).$implicit;return L(3).doSelect(s),Ge(r.preventDefault())}),te(1,AIe,1,2,"ng-template",13),x()}if(2&t){const e=n.$implicit;Vn("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),S("tabindex",e.tabindex),ft("aria-label",e.ariaLabel),w(1),S("ngIf",!e.hidden)}}function OIe(t,n){if(1&t&&(_(0,"div",8),te(1,TIe,2,1,"div",9),te(2,MIe,2,9,"div",10),x()),2&t){const e=L().$implicit,i=L();w(1),S("ngIf",i.datepicker.showWeekNumbers),w(1),S("ngForOf",e.days)}}function IIe(t,n){1&t&&te(0,OIe,3,2,"div",7),2&t&&S("ngIf",!n.$implicit.collapsed)}const NIe=["defaultDayTemplate"],FIe=["content"];function PIe(t,n){if(1&t&&xe(0,"div",8),2&t){const i=n.currentMonth,r=n.selected,o=n.disabled,s=n.focused;S("date",n.date)("currentMonth",i)("selected",r)("disabled",o)("focused",s)}}function RIe(t,n){if(1&t&&(_(0,"div",13),O(1),x()),2&t){const e=L().$implicit,i=L(2);w(1),bn(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function jIe(t,n){if(1&t&&(_(0,"div",10),te(1,RIe,2,1,"div",11),xe(2,"ngb-datepicker-month",12),x()),2&t){const e=n.$implicit,i=L(2);w(1),S("ngIf","none"===i.navigation||i.displayMonths>1&&"select"===i.navigation),w(1),S("month",e.firstDate)}}function LIe(t,n){1&t&&te(0,jIe,3,2,"div",9),2&t&&S("ngForOf",L().model.months)}function BIe(t,n){if(1&t){const e=_t();_(0,"ngb-datepicker-navigation",14),ke("navigate",function(r){return ze(e),Ge(L().onNavigateEvent(r))})("select",function(r){return ze(e),Ge(L().onNavigateDateSelect(r))}),x()}if(2&t){const e=L();S("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function $Ie(t,n){}function VIe(t,n){}const EU=function(t){return{$implicit:t}},HIe=["dialog"],UIe=["ngbNavOutlet",""];function zIe(t,n){}function GIe(t,n){if(1&t&&(_(0,"div",2),te(1,zIe,0,0,"ng-template",3),x()),2&t){const e=L().$implicit,i=L();S("item",e)("nav",i.nav)("role",i.paneRole),w(1),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",Zi(5,EU,e.active||i.isPanelTransitioning(e)))}}function WIe(t,n){if(1&t&&te(0,GIe,2,7,"div",1),2&t){const e=n.$implicit,i=L();S("ngIf",e.isPanelInDom()||i.isPanelTransitioning(e))}}function qIe(t,n){1&t&&(_(0,"span",9),Pa(1,10),x())}function YIe(t,n){1&t&&(_(0,"span",9),Pa(1,11),x())}function XIe(t,n){1&t&&(_(0,"span",9),Pa(1,12),x())}function JIe(t,n){1&t&&(_(0,"span",9),Pa(1,13),x())}function KIe(t,n){1&t&&O(0,"...")}function QIe(t,n){1&t&&O(0),2&t&&wt(n.$implicit)}function ZIe(t,n){}const eNe=function(t){return{disabled:!0,currentPage:t}};function tNe(t,n){if(1&t&&(_(0,"a",18),te(1,ZIe,0,0,"ng-template",8),x()),2&t){const e=L(2).$implicit,i=L(),r=sa(9);w(1),S("ngTemplateOutlet",(null==i.tplEllipsis?null:i.tplEllipsis.templateRef)||r)("ngTemplateOutletContext",Zi(2,eNe,e))}}function nNe(t,n){}const iNe=function(t,n,e){return{disabled:t,$implicit:n,currentPage:e}};function rNe(t,n){if(1&t){const e=_t();_(0,"a",19),ke("click",function(r){ze(e);const o=L().$implicit;return L(2).selectPage(o),Ge(r.preventDefault())}),te(1,nNe,0,0,"ng-template",8),x()}if(2&t){const e=L().$implicit,i=L(),r=i.disabled,o=i.$implicit,s=L(),a=sa(11);ft("tabindex",r?"-1":null)("aria-disabled",r?"true":null),w(1),S("ngTemplateOutlet",(null==s.tplNumber?null:s.tplNumber.templateRef)||a)("ngTemplateOutletContext",ty(4,iNe,r,e,o))}}function oNe(t,n){if(1&t&&(_(0,"li",15),te(1,tNe,2,4,"a",16),te(2,rNe,2,8,"a",17),x()),2&t){const e=n.$implicit,i=L(),r=i.$implicit,o=i.disabled,s=L();Vn("active",e===r)("disabled",s.isEllipsis(e)||o),ft("aria-current",e===r?"page":null),w(1),S("ngIf",s.isEllipsis(e)),w(1),S("ngIf",!s.isEllipsis(e))}}function sNe(t,n){1&t&&te(0,oNe,3,7,"li",14),2&t&&S("ngForOf",n.pages)}function aNe(t,n){}const hO=function(t,n){return{disabled:t,currentPage:n}};function lNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",20),ke("click",function(r){return ze(e),L().selectPage(1),Ge(r.preventDefault())}),te(2,aNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(1);Vn("disabled",e.previousDisabled()),w(1),ft("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.previousDisabled(),e.page))}}function cNe(t,n){}const uNe=function(t){return{disabled:t}};function dNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",21),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.page-1),Ge(r.preventDefault())}),te(2,cNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(3);Vn("disabled",e.previousDisabled()),w(1),ft("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||i)("ngTemplateOutletContext",Zi(6,uNe,e.previousDisabled()))}}function hNe(t,n){}function fNe(t,n){}function pNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",22),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.page+1),Ge(r.preventDefault())}),te(2,fNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(5);Vn("disabled",e.nextDisabled()),w(1),ft("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.nextDisabled(),e.page))}}function mNe(t,n){}function gNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",23),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.pageCount),Ge(r.preventDefault())}),te(2,mNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(7);Vn("disabled",e.nextDisabled()),w(1),ft("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.nextDisabled(),e.page))}}const vNe=function(t,n,e){return{$implicit:t,pages:n,disabled:e}};function bNe(t,n){if(1&t&&(_(0,"span"),Pa(1,1),_A(2,"percent"),x()),2&t){const e=L();w(2),cv(bA(2,1,e.getValue()/e.max)),ey(1)}}function xNe(t,n){1&t&&O(0),2&t&&wt(100===n.fill?"\u2605":"\u2606")}function wNe(t,n){}function CNe(t,n){if(1&t){const e=_t();_(0,"span",2),O(1),x(),_(2,"span",3),ke("mouseenter",function(){const o=ze(e).index;return Ge(L().enter(o+1))})("click",function(){const o=ze(e).index;return Ge(L().handleClick(o+1))}),te(3,wNe,0,0,"ng-template",4),x()}if(2&t){const e=n.index,i=L(),r=sa(1);w(1),bn("(",e=12)("ngIfElse",e)}}function RNe(t,n){if(1&t&&(_(0,"strong",3),O(1),x()),2&t){const e=L();w(1),wt(e.header)}}function jNe(t,n){}function LNe(t,n){if(1&t){const e=_t();_(0,"div",4),te(1,jNe,0,0,"ng-template",5),_(2,"button",6),ke("click",function(){return ze(e),Ge(L().hide())}),x()()}if(2&t){const e=L(),i=sa(1);w(1),S("ngTemplateOutlet",e.contentHeaderTpl||i)}}function BNe(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L().$implicit;Au(L().highlightClass),w(1),wt(e)}}function $Ne(t,n){1&t&&O(0),2&t&&wt(L().$implicit)}function VNe(t,n){if(1&t&&(te(0,BNe,2,3,"span",1),te(1,$Ne,1,1,"ng-template",null,2,Xo)),2&t){const e=n.odd,i=sa(2);S("ngIf",e)("ngIfElse",i)}}function Ha(t){return parseInt(`${t}`,10)}function AU(t){return null!=t?`${t}`:""}function r2(t,n,e=0){return Math.max(Math.min(t,n),e)}function mm(t){return"string"==typeof t}function gs(t){return!isNaN(Ha(t))}function is(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function gm(t){return null!=t}function Ov(t){return gs(t)?`0${t}`.slice(-2):""}function OU(t,n){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(n)>=0}function Iv(t){return(t||document.body).getBoundingClientRect()}function IU(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const NU={animation:!0,transitionTimerDelayMs:5},YNe=()=>{},{transitionTimerDelayMs:XNe}=NU,Zy=new Map,pa=(t,n,e,i)=>{let r=i.context||{};const o=Zy.get(n);if(o)switch(i.runningTransition){case"continue":return Uh;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Zy.delete(n)}const s=e(n,i.animation,r)||YNe;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),Hn(void 0).pipe(function WNe(t){return n=>new Wt(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const a=new fn,l=new fn,c=a.pipe(function V3e(...t){return n=>oC(n,Hn(...t))}(!0));Zy.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function qNe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const d=Va(n,"transitionend").pipe(ns(c),ps(({target:f})=>f===n));uU(Gy(u+XNe).pipe(ns(c)),d,l).pipe(ns(c)).subscribe(()=>{Zy.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},fO=(t,n,e)=>{let{direction:i,maxSize:r,dimension:o}=e;const{classList:s}=t;function a(){s.add("collapse"),"show"===i?s.add("show"):s.remove("show")}if(n)return r||(r=function KNe(t,n){if(typeof navigator>"u")return"0px";const{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[n]="";const r=t.getBoundingClientRect()[n]+"px";return i||e.remove("show"),r}(t,o),e.maxSize=r,t.style[o]="show"!==i?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),Iv(t),s.add("collapsing")),t.style[o]="show"===i?r:"0px",()=>{a(),s.remove("collapsing"),t.style[o]=""};a()};let qf=(()=>{class t{constructor(){this.animation=NU.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),FU=(()=>{class t{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QNe=0,pO=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),PU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),RU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),mO=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+QNe++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ot,this.hidden=new ot}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["ngb-panel"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,PU,4),Ti(r,pO,4),Ti(r,RU,4)),2&e){let o;Tn(o=En())&&(i.titleTpls=o),Tn(o=En())&&(i.headerTpls=o),Tn(o=En())&&(i.contentTpls=o)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),ZNe=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new ot}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),jU=(()=>{class t{constructor(e,i){this.accordion=e,this.panel=i}set ngbPanelToggle(e){e&&(this.panel=e)}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>gO)),ge(mO,9))},t.\u0275dir=un({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&ke("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(ql("disabled",i.panel.disabled),ft("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),Vn("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),gO=(()=>{class t{constructor(e,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ot,this.shown=new ot,this.hidden=new ot,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const i=this._findPanelById(e);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){mm(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{this.panels.forEach(e=>{const i=e.panelDiv;i?e.initClassDone||(e.initClassDone=!0,pa(this._ngZone,i,fO,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide",dimension:"height"}})):e.initClassDone=!1})})}_changeOpenState(e,i){if(null!=e&&!e.disabled&&e.isOpen!==i){let r=!1;this.panelChange.emit({panelId:e.id,nextState:i,preventDefault:()=>{r=!0}}),r||(e.isOpen=i,e.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,i=!0){this.panels.forEach(r=>{r.id!==e&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(e){return this.panels.find(i=>i.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&pa(this._ngZone,i.panelDiv,fO,{animation:e,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{i.transitionRunning=!1;const{id:o}=i;i.isOpen?(i.shown.emit(),this.shown.emit(o)):(i.hidden.emit(),this.hidden.emit(o))})})}}return t.\u0275fac=function(e){return new(e||t)(ge(FU),ge(ur),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,mO,4),2&e){let o;Tn(o=En())&&(i.panels=o)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&ft("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[Bs],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(e,i){1&e&&(te(0,nIe,3,3,"ng-template",0,1,Xo),te(2,aIe,4,11,"ng-template",2)),2&e&&(w(2),S("ngForOf",i.panels))},dependencies:[Un,Fu,jU,ZNe,pO,xn],encapsulation:2}),t})(),VU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[gO]}),t})();const oFe=({classList:t})=>{t.remove("show")};let sFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yo=(()=>{class t{constructor(e,i,r,o){this._renderer=i,this._element=r,this._zone=o,this.closed=new ot,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=pa(this._zone,this._element.nativeElement,oFe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(ge(sFe),ge(oa),ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Vn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[ei,Bs],ngContentSelectors:Qy,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Df(),Tf(0),te(1,lIe,1,0,"button",0)),2&e&&(w(1),S("ngIf",i.dismissible))},dependencies:[xn],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),HU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[yo]}),t})();var Yf=(()=>(function(t){t.START="start",t.END="end"}(Yf||(Yf={})),Yf))();const UU=({classList:t})=>t.contains("carousel-item-start")||t.contains("carousel-item-end"),e_=t=>{t.remove("carousel-item-start"),t.remove("carousel-item-end")},o2=t=>{e_(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},aFe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(UU(t)?e_(i):(i.add("carousel-item-"+(e===Yf.START?"next":"prev")),Iv(t),i.add("carousel-item-"+e)),()=>{o2(i),i.add("active")}):(e_(i),o2(i),void i.add("active"))},lFe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(UU(t)?e_(i):i.add("carousel-item-"+e),()=>{o2(i),i.remove("active")}):(e_(i),o2(i),void i.remove("active"))};let cFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uFe=0,dFe=(()=>{class t{constructor(e){this.tplRef=e,this.id="ngb-slide-"+uFe++,this.slid=new ot}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"},standalone:!0}),t})(),hFe=(()=>{class t{constructor(e,i,r,o,s){this._platformId=i,this._ngZone=r,this._cd=o,this._container=s,this.NgbSlideEventSource=ym,this._destroy$=new fn,this._interval$=new ca(0),this._mouseHover$=new ca(!1),this._focused$=new ca(!1),this._pauseOnHover$=new ca(!1),this._pauseOnFocus$=new ca(!1),this._pause$=new ca(!1),this._wrap$=new ca(!1),this.slide=new ot,this.slid=new ot,this._transitionIds=null,this.animation=e.animation,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.pauseOnFocus=e.pauseOnFocus,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(e){this._pauseOnFocus$.next(e)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(e){this._mouseHover$.next(e)}get mouseHover(){return this._mouseHover$.value}set focused(e){this._focused$.next(e)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(ym.ARROW_LEFT)}arrowRight(){this.focus(),this.next(ym.ARROW_RIGHT)}ngAfterContentInit(){v7(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const e=rC([this.slide.pipe($t(i=>i.current),aC(this.activeId)),this._wrap$,this.slides.changes.pipe(aC(null))]).pipe($t(([i,r])=>{const o=this.slides.toArray(),s=this._getSlideIdxById(i);return r?o.length>1:si||r&&o||s&&a||!c?0:l),QC(),bc(i=>i>0?Gy(i,i):dU),ns(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(ym.TIMER)))}),this.slides.changes.pipe(ns(this._destroy$)).subscribe(()=>{this._transitionIds?.forEach(e=>(t=>{Zy.get(t)?.complete()})(this._getSlideElement(e))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{for(const{id:e}of this.slides){const i=this._getSlideElement(e);e===this.activeId?i.classList.add("active"):i.classList.remove("active")}})})}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const e=this._getSlideElement(this.activeId);e&&e.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(e,i){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),i)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),Yf.END,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),Yf.START,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(e,i,r){const o=this._transitionIds;if(o&&(o[0]!==e||o[1]!==this.activeId))return;let s=this._getSlideById(e);if(s&&s.id!==this.activeId){this._transitionIds=[this.activeId,e],this.slide.emit({prev:this.activeId,current:s.id,direction:i,paused:this._pause$.value,source:r});const a={animation:this.animation,runningTransition:"stop",context:{direction:i}},l=[],c=this._getSlideById(this.activeId);if(c){const f=pa(this._ngZone,this._getSlideElement(c.id),lFe,a);f.subscribe(()=>{c.slid.emit({isShown:!1,direction:i,source:r})}),l.push(f)}const u=this.activeId;this.activeId=s.id;const d=this._getSlideById(this.activeId),h=pa(this._ngZone,this._getSlideElement(s.id),aFe,a);h.subscribe(()=>{d?.slid.emit({isShown:!0,direction:i,source:r})}),l.push(h),ZC(...l).pipe(ua(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:u,current:s.id,direction:i,paused:this._pause$.value,source:r})})}this._cd.markForCheck()}_getSlideEventDirection(e,i){return this._getSlideIdxById(e)>this._getSlideIdxById(i)?Yf.END:Yf.START}_getSlideById(e){return this.slides.find(i=>i.id===e)||null}_getSlideIdxById(e){const i=this._getSlideById(e);return null!=i?this.slides.toArray().indexOf(i):-1}_getNextSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return r===i.length-1?this.wrap?i[0].id:i[i.length-1].id:i[r+1].id}_getPrevSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return 0===r?this.wrap?i[i.length-1].id:i[0].id:i[r-1].id}_getSlideElement(e){return this._container.nativeElement.querySelector(`#slide-${e}`)}}return t.\u0275fac=function(e){return new(e||t)(ge(cFe),ge(sy),ge(ur),ge($s),ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-carousel"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,dFe,4),2&e){let o;Tn(o=En())&&(i.slides=o)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(e,i){1&e&&ke("keydown.arrowLeft",function(){return i.keyboard&&i.arrowLeft()})("keydown.arrowRight",function(){return i.keyboard&&i.arrowRight()})("mouseenter",function(){return i.mouseHover=!0})("mouseleave",function(){return i.mouseHover=!1})("focusin",function(){return i.focused=!0})("focusout",function(){return i.focused=!1}),2&e&&(ft("aria-activedescendant","slide-"+i.activeId),cr("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],standalone:!0,features:[Bs],decls:6,vars:6,consts:function(){let n,e,i;return n=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,e=$localize`:@@ngb.carousel.previous:Previous`,i=$localize`:@@ngb.carousel.next:Next`,[["role","tablist",1,"carousel-indicators"],["type","button","data-bs-target","","role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","type","button",3,"click",4,"ngIf"],["class","carousel-control-next","type","button",3,"click",4,"ngIf"],["type","button","data-bs-target","","role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"visually-hidden"],n,[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],e,["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],i]},template:function(e,i){1&e&&(_(0,"div",0),te(1,cIe,1,5,"button",1),x(),_(2,"div",2),te(3,dIe,4,4,"div",3),x(),te(4,hIe,4,0,"button",4),te(5,fIe,4,0,"button",5)),2&e&&(Vn("visually-hidden",!i.showNavigationIndicators),w(1),S("ngForOf",i.slides),w(2),S("ngForOf",i.slides),w(1),S("ngIf",i.showNavigationArrows),w(1),S("ngIf",i.showNavigationArrows))},dependencies:[Un,Fu,xn],encapsulation:2,changeDetection:0}),t})();var ym=(()=>(function(t){t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator"}(ym||(ym={})),ym))();let zU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[hFe]}),t})(),GU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();class ma{constructor(n,e,i){this.year=is(n)?n:null,this.month=is(e)?e:null,this.day=is(i)?i:null}static from(n){return n instanceof ma?n:n?new ma(n.year,n.month,n.day):null}equals(n){return null!=n&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return!!n&&(this.year===n.year?this.month===n.month?this.day!==n.day&&this.dayn.day:this.month>n.month:this.year>n.year)}}function Nv(t,n){return!function fFe(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}(t,n)}function WU(t,n){return!(!t&&!n||t&&n&&t.year===n.year&&t.month===n.month)}function s2(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function yO(t,n){const{minDate:e,maxDate:i,disabled:r,markDisabled:o}=n;return!(null==t||r||o&&o(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function qU(t){return new ma(t.getFullYear(),t.getMonth()+1,t.getDate())}function a2(t){const n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}let l2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function wFe(){return new CFe}()},providedIn:"root"}),t})(),CFe=(()=>{class t extends l2{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",r=1){let o=a2(e),s=!0,a=o.getMonth();switch(i){case"y":o.setFullYear(o.getFullYear()+r);break;case"m":a+=r,o.setMonth(a),a%=12,a<0&&(a+=12);break;case"d":o.setDate(o.getDate()+r),s=!1;break;default:return e}return s&&o.getMonth()!==a&&o.setDate(0),qU(o)}getPrev(e,i="d",r=1){return this.getNext(e,i,-r)}getWeekday(e){let r=a2(e).getDay();return 0===r?7:r}getWeekNumber(e,i){7===i&&(i=0);const s=a2(e[(11-i)%7]);s.setDate(s.getDate()+4-(s.getDay()||7));const a=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((a-s.getTime())/864e5)/7)+1}getToday(){return qU(new Date)}isValid(e){if(!(e&&is(e.year)&&is(e.month)&&is(e.day)&&0!==e.year))return!1;const i=a2(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function SFe(t){return new kFe(t)}(xt(vc)),i},providedIn:"root"}),t})(),kFe=(()=>{class t extends _m{constructor(e){super(),this._locale=e,this._monthsShort=QA(e,Vo.Standalone,Yi.Abbreviated),this._monthsFull=QA(e,Vo.Standalone,Yi.Wide)}getWeekdayLabel(e,i){const r=J$(this._locale,Vo.Standalone,void 0===i?Yi.Short:i);return r.map((s,a)=>r[(a+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){return Q$(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(xt(vc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),_O=(()=>{class t{constructor(e,i){this._calendar=e,this._i18n=i,this._VALIDATORS={dayTemplateData:r=>{if(this._state.dayTemplateData!==r)return{dayTemplateData:r}},displayMonths:r=>{if(is(r=Ha(r))&&r>0&&this._state.displayMonths!==r)return{displayMonths:r}},disabled:r=>{if(this._state.disabled!==r)return{disabled:r}},firstDayOfWeek:r=>{if(is(r=Ha(r))&&r>=0&&this._state.firstDayOfWeek!==r)return{firstDayOfWeek:r}},focusVisible:r=>{if(this._state.focusVisible!==r&&!this._state.disabled)return{focusVisible:r}},markDisabled:r=>{if(this._state.markDisabled!==r)return{markDisabled:r}},maxDate:r=>{const o=this.toValidDate(r,null);if(Nv(this._state.maxDate,o))return{maxDate:o}},minDate:r=>{const o=this.toValidDate(r,null);if(Nv(this._state.minDate,o))return{minDate:o}},navigation:r=>{if(this._state.navigation!==r)return{navigation:r}},outsideDays:r=>{if(this._state.outsideDays!==r)return{outsideDays:r}},weekdays:r=>{const o=!0===r||!1===r?Yi.Short:r,s=!0!==r&&!1!==r||r;if(this._state.weekdayWidth!==o||this._state.weekdaysVisible!==s)return{weekdayWidth:o,weekdaysVisible:s}}},this._model$=new fn,this._dateSelect$=new fn,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:Yi.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(ps(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(ps(e=>null!==e))}set(e){let i=Object.keys(e).map(r=>this._VALIDATORS[r](e[r])).reduce((r,o)=>({...r,...o}),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){const i=this.toValidDate(e,null);null!=i&&!this._state.disabled&&Nv(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){yO(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const i=this.toValidDate(e,this._calendar.getToday());null!=i&&!this._state.disabled&&(!this._state.firstDate||WU(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){const r=this.toValidDate(e,null);null!=r&&!this._state.disabled&&(Nv(this._state.selectedDate,r)&&this._nextState({selectedDate:r}),i.emitEvent&&yO(r,this._state)&&this._dateSelect$.next(r))}toValidDate(e,i){const r=ma.from(e);return void 0===i&&(i=this._calendar.getToday()),this._calendar.isValid(r)?r:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){const{months:i,displayMonths:r,selectedDate:o,focusDate:s,focusVisible:a,disabled:l,outsideDays:c}=e;e.months.forEach(u=>{u.weeks.forEach(d=>{d.days.forEach(h=>{s&&(h.context.focused=s.equals(h.date)&&a),h.tabindex=!l&&s&&h.date.equals(s)&&s.month===u.number?0:-1,!0===l&&(h.context.disabled=!0),void 0!==o&&(h.context.selected=null!==o&&o.equals(h.date)),u.number!==h.date.month&&(h.hidden="hidden"===c||"collapsed"===c||r>1&&h.date.after(i[0].firstDate)&&h.date.before(i[r-1].lastDate))})})})}_updateState(e){const i=Object.assign({},this._state,e);let r=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(function pFe(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}(i.minDate,i.maxDate),i.focusDate=s2(i.focusDate,i.minDate,i.maxDate),i.firstDate=s2(i.firstDate,i.minDate,i.maxDate),r=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(r=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=s2(i.focusDate,i.minDate,i.maxDate),r=i.focusDate,0!==i.months.length&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=s2(i.firstDate,i.minDate,i.maxDate),r=i.firstDate),r){const s=function _Fe(t,n,e,i,r){const{displayMonths:o,months:s}=e,a=s.splice(0,s.length);return Array.from({length:o},(c,u)=>{const d=Object.assign(t.getNext(n,"m",u),{day:1});if(s[u]=null,!r){const h=a.findIndex(f=>f.firstDate.equals(d));-1!==h&&(s[u]=a.splice(h,1)[0])}return d}).forEach((c,u)=>{null===s[u]&&(s[u]=function bFe(t,n,e,i,r={}){const{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u,weekdayWidth:d,weekdaysVisible:h}=e,f=t.getToday();r.firstDate=null,r.lastDate=null,r.number=n.month,r.year=n.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],n=function xFe(t,n,e){const i=t.getDaysPerWeek(),r=new ma(n.year,n.month,1),o=t.getWeekday(r)%i;return t.getPrev(r,"d",(i+o-e)%i)}(t,n,l),h||(r.weekdays.length=0);for(let p=0;pv.date),l),m.collapsed="collapsed"===u&&g[0].date.month!==r.number&&g[g.length-1].date.month!==r.number}return r}(t,c,e,i,a.shift()||{}))}),s}(this._calendar,r,i,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e);i.months=s,i.firstDate=s[0].firstDate,i.lastDate=s[s.length-1].lastDate,"selectedDate"in e&&!yO(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=r);const a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;"select"===i.navigation?(("minDate"in e||"maxDate"in e||0===i.selectBoxes.years.length||a)&&(i.selectBoxes.years=function gFe(t,n,e){if(!t)return[];const i=n?Math.max(n.year,t.year-500):t.year-10,o=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,s=Array(o);for(let a=0;as===e.month);r=r.slice(o)}if(i&&n.year===i.year){const o=r.findIndex(s=>s===i.month);r=r.slice(0,o+1)}return r}(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},("arrows"===i.navigation||"select"===i.navigation)&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||function yFe(t,n,e){const i=Object.assign(t.getPrev(n,"m"),{day:1});return null!=e&&(i.year===e.year&&i.month(function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(Fv||(Fv={})),Fv))();let DFe=(()=>{class t{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m))},t.\u0275cmp=Vt({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,i){2&e&&Vn("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[Bs],attrs:pIe,decls:1,vars:1,template:function(e,i){1&e&&O(0),2&e&&wt(i.i18n.getDayNumerals(i.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),TFe=(()=>{class t{constructor(e,i){this.i18n=e,this._renderer=i,this.select=new ot,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new ma(this.date.year,Ha(e),1))}changeYear(e){this.select.emit(new ma(Ha(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(ge(_m),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,i){if(1&e&&(wo(mIe,7,Ni),wo(gIe,7,Ni)),2&e){let r;Tn(r=En())&&(i.monthSelect=r.first),Tn(r=En())&&(i.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[Bs],decls:6,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.select-month:Select month`,e=$localize`:@@ngb.datepicker.select-month:Select month`,i=$localize`:@@ngb.datepicker.select-year:Select year`,r=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",n,"title",e,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",i,"title",r,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,i){1&e&&(_(0,"select",0,1),ke("change",function(o){return i.changeMonth(o.target.value)}),te(2,vIe,2,3,"option",2),x(),_(3,"select",3,4),ke("change",function(o){return i.changeYear(o.target.value)}),te(5,yIe,2,2,"option",2),x()),2&e&&(S("disabled",i.disabled),w(2),S("ngForOf",i.months),w(1),S("disabled",i.disabled),w(2),S("ngForOf",i.years))},dependencies:[Un],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),t})(),EFe=(()=>{class t{constructor(e){this.i18n=e,this.navigation=Fv,this.months=[],this.navigate=new ot,this.select=new ot}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[Bs],decls:8,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.previous-month:Previous month`,e=$localize`:@@ngb.datepicker.previous-month:Previous month`,i=$localize`:@@ngb.datepicker.next-month:Next month`,r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",n,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",i,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,i){1&e&&(_(0,"div",0)(1,"button",1),ke("click",function(o){return i.onClickPrev(o)}),xe(2,"span",2),x()(),te(3,_Ie,1,4,"ngb-datepicker-navigation-select",3),te(4,CIe,1,1,null,4),_(5,"div",5)(6,"button",6),ke("click",function(o){return i.onClickNext(o)}),xe(7,"span",2),x()()),2&e&&(w(1),S("disabled",i.prevDisabled),w(2),S("ngIf",i.showSelect),w(1),S("ngIf",!i.showSelect),w(2),S("disabled",i.nextDisabled))},dependencies:[xn,Un,TFe],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),t})();var jr=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(jr||(jr={})),jr))();let AFe=(()=>{class t{processKey(e,i){const{state:r,calendar:o}=i;switch(e.which){case jr.PageUp:i.focusDate(o.getPrev(r.focusedDate,e.shiftKey?"y":"m",1));break;case jr.PageDown:i.focusDate(o.getNext(r.focusedDate,e.shiftKey?"y":"m",1));break;case jr.End:i.focusDate(e.shiftKey?r.maxDate:r.lastDate);break;case jr.Home:i.focusDate(e.shiftKey?r.minDate:r.firstDate);break;case jr.ArrowLeft:i.focusDate(o.getPrev(r.focusedDate,"d",1));break;case jr.ArrowUp:i.focusDate(o.getPrev(r.focusedDate,"d",o.getDaysPerWeek()));break;case jr.ArrowRight:i.focusDate(o.getNext(r.focusedDate,"d",1));break;case jr.ArrowDown:i.focusDate(o.getNext(r.focusedDate,"d",o.getDaysPerWeek()));break;case jr.Enter:case jr.Space:i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bO=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=Yi.Short}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function MFe(){return new OFe}()},providedIn:"root"}),t})(),OFe=(()=>{class t extends xO{fromModel(e){return e&&is(e.year)&&is(e.month)&&is(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&is(e.year)&&is(e.month)&&is(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),YU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0}),t})(),wO=(()=>{class t{constructor(e,i,r,o){this.i18n=e,this.datepicker=i,this._keyboardService=r,this._service=o}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m),ge(ji(()=>c2)),ge(AFe),ge(_O))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,i){1&e&&ke("keydown",function(o){return i.onKeyDown(o)})},inputs:{month:"month"},standalone:!0,features:[Bs],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(te(0,DIe,3,2,"div",0),te(1,IIe,1,1,"ng-template",1)),2&e&&(S("ngIf",i.viewModel.weekdays.length>0),w(1),S("ngForOf",i.viewModel.weeks))},dependencies:[xn,Un,Fu],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),t})(),c2=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this._service=e,this._calendar=i,this._i18n=r,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=c,this.injector=Vi(Ca),this._controlValue=null,this._destroyed$=new fn,this._publicState={},this.navigate=new ot,this.dateSelect=new ot,this.onChange=u=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(u=>this[u]=o[u]),e.dateSelect$.pipe(ns(this._destroyed$)).subscribe(u=>{this.dateSelect.emit(u)}),e.model$.pipe(ns(this._destroyed$)).subscribe(u=>{const d=u.firstDate,h=this.model?this.model.firstDate:null;this._publicState={maxDate:u.maxDate,minDate:u.minDate,firstDate:u.firstDate,lastDate:u.lastDate,focusedDate:u.focusDate,months:u.months.map(v=>v.firstDate)};let f=!1;if(!d.equals(h)&&(this.navigate.emit({current:h?{year:h.year,month:h.month}:null,next:{year:d.year,month:d.month},preventDefault:()=>f=!0}),f&&null!==h))return void this._service.open(h);const p=u.selectedDate,m=u.focusDate,g=this.model?this.model.focusDate:null;this.model=u,Nv(p,this._controlValue)&&(this._controlValue=p,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(p))),Nv(m,g)&&g&&u.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(ma.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(ma.from(e?e.day?e:{...e,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Va(this._contentEl.nativeElement,"focusin"),i=Va(this._contentEl.nativeElement,"focusout"),{nativeElement:r}=this._elementRef;Mt(e,i).pipe(ps(({target:o,relatedTarget:s})=>!(OU(o,"ngb-dp-day")&&OU(s,"ngb-dp-day")&&r.contains(o)&&r.contains(s))),ns(this._destroyed$)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===o})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(r=>r in e).forEach(r=>i[r]=this[r]),this._service.set(i),"startDate"in e){const{currentValue:r,previousValue:o}=e.startDate;WU(o,r)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Fv.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Fv.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=ma.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(ge(_O),ge(l2),ge(_m),ge(bO),ge($s),ge(Ni),ge(xO),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,YU,7),2&e){let o;Tn(o=En())&&(i.contentTemplateFromContent=o.first)}},viewQuery:function(e,i){if(1&e&&(wo(NIe,7),wo(FIe,7)),2&e){let r;Tn(r=En())&&(i._defaultDayTemplate=r.first),Tn(r=En())&&(i._contentEl=r.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("disabled",i.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0},_O]),ei,Bs],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,i){if(1&e&&(te(0,PIe,1,5,"ng-template",null,0,Xo),te(2,LIe,1,1,"ng-template",null,1,Xo),_(4,"div",2),te(5,BIe,1,7,"ngb-datepicker-navigation",3),x(),_(6,"div",4,5),te(8,$Ie,0,0,"ng-template",6),x(),te(9,VIe,0,0,"ng-template",7)),2&e){const r=sa(3);w(5),S("ngIf","none"!==i.navigation),w(1),Vn("ngb-dp-months",!i.contentTemplate),w(2),S("ngTemplateOutlet",i.contentTemplate||(null==i.contentTemplateFromContent?null:i.contentTemplateFromContent.templateRef)||r)("ngTemplateOutletContext",Zi(7,EU,i))("ngTemplateOutletInjector",i.injector),w(1),S("ngTemplateOutlet",i.footerTemplate)}},dependencies:[xn,Un,Fu,DFe,wO,EFe],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),t})();const u2=(t,n)=>!!n&&n.some(e=>e.contains(t)),XU=(t,n)=>!n||null!=function GNe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),IFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),NFe=t=>IFe?()=>setTimeout(()=>t(),100):t;function CO(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(NFe(()=>{const c=Va(n,"keydown").pipe(ns(r),ps(h=>h.which===jr.Escape),ms(h=>h.preventDefault())),u=Va(n,"mousedown").pipe($t(h=>{const f=h.target;return 2!==h.button&&!u2(f,s)&&("inside"===e?u2(f,o)&&XU(f,a):"outside"===e?!u2(f,o):XU(f,a)||!u2(f,o))}),ns(r)),d=Va(n,"mouseup").pipe(Z3(u),ps(([h,f])=>f),eO(0),ns(r));uU([c.pipe($t(h=>0)),d.pipe($t(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const JU=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function KU(t){const n=Array.from(t.querySelectorAll(JU)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}let FFe=(()=>{class t{constructor(e){this._element=e.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const PFe=/\s+/,RFe=/ +/gi,jFe={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},BFe=/^left/,$Fe=/^right/,VFe=/^start/,HFe=/^end/;function ZU({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(PFe),o=i.findIndex(c=>"auto"===c);o>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==i.find(u=>-1!==u.search("^"+c))&&i.splice(o++,1,c)});const s=i.map(c=>function LFe(t,n){const[e,i]=jFe[t];return n&&i||e}(c,e.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const u=new RegExp(n+"(-[a-z]+)*","gi"),d=c.elements.popper,h=c.placement;let f=d.className;f=f.replace(u,""),f+=` ${function UFe(t,n){let[e,i]=n.split("-");const r=e.replace(BFe,"start").replace($Fe,"end");let o=[r];if(i){let s=i;("left"===e||"right"===e)&&(s=s.replace(VFe,"top").replace(HFe,"bottom")),o.push(`${r}-${s}`)}return t&&(o=o.map(s=>`${t}-${s}`)),o.join(" ")}(n,h)}`,f=f.trim().replace(RFe," "),d.className=f}},wOe,DOe,MOe,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function ez(t){return t}function SO(){const t=Vi(FFe);let n=null;return{createPopper(e){if(!n){let r=(e.updatePopperOptions||ez)(ZU(e,t));n=KOe(e.hostElement,e.targetElement,r)}},update(){n&&n.update()},setOptions(e){if(n){let r=(e.updatePopperOptions||ez)(ZU(e,t));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}new Date(1882,10,12),new Date(2174,10,25);let cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[c2,wO]}),t})(),ePe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xf=(()=>{class t{constructor(e,i){this.elementRef=e,this._renderer=i,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(e,i){2&e&&(ql("tabIndex",i.disabled?-1:0),Vn("disabled",i.disabled))},inputs:{disabled:"disabled"},standalone:!0}),t})(),Jf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Xf,4),2&e){let o;Tn(o=En())&&(i.menuItems=o)}},hostVars:4,hostBindings:function(e,i){1&e&&ke("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&Vn("dropdown-menu",!0)("show",i.dropdown.isOpen())},standalone:!0}),t})(),p2=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ft("aria-expanded",i.dropdown.isOpen())},standalone:!0}),t})(),wm=(()=>{class t extends p2{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&ke("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ft("aria-expanded",i.dropdown.isOpen())},standalone:!0,features:[oo([{provide:p2,useExisting:ji(()=>t)}]),wi]}),t})(),Hu=(()=>{class t{constructor(e,i,r,o,s,a){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._destroyCloseHandlers$=new fn,this._bodyContainer=null,this._open=!1,this.openChange=new ot,this.placement=i.placement,this.popperOptions=i.popperOptions,this.container=i.container,this.autoClose=i.autoClose,this._positioning=SO(),this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic"}ngAfterContentInit(){this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),e.dropdownClass){const{currentValue:i,previousValue:r}=e.dropdownClass;this._applyCustomDropdownClass(i,r)}e.autoClose&&this._open&&(this.autoClose=e.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:e=>this.popperOptions(function nz(t){return n=>(n.modifiers.push(eIe,{name:"offset",options:{offset:()=>t}}),n)}([0,2])(e))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),CO(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==jr.Space&&i!==jr.Enter){if(i!==jr.Tab){if(a||s){if(this.open(),r.length){switch(i){case jr.ArrowDown:o=Math.min(o+1,r.length-1);break;case jr.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case jr.Home:o=0;break;case jr.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(JU);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Va(e.target,"focusout").pipe(ua(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Va(s,"click").pipe(ua(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;this._menu&&e.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1055"),i.appendChild(o,r),i.appendChild(this._document.body,o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){const r="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;r&&(i&&this._renderer.removeClass(r,i),e&&this._renderer.addClass(r,e))}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown");const{nativeElement:s}=i;"static"===this.display?(i.placement=null,r.setAttribute(s,"data-bs-popper","static")):(i.placement=e,r.removeAttribute(s,"data-bs-popper"));const a=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,a);const l=this._bodyContainer;l&&(r.removeClass(l,"dropup"),r.removeClass(l,"dropdown"),r.addClass(l,a))}}}return t.\u0275fac=function(e){return new(e||t)(ge($s),ge(ePe),ge(vo),ge(ur),ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Jf,5),Ti(r,p2,5)),2&e){let o;Tn(o=En())&&(i._menu=o.first),Tn(o=En())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("show",i.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[ei]}),t})(),uz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();class Cm{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class tPe{constructor(n,e,i,r,o,s){this._componentType=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,o=this._ngZone.onStable.pipe(ua(1),it(()=>pa(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(n=!1){return this._windowRef?pa(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(ms(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Hn(void 0)}_getContentRef(n,e){if(n){if(n instanceof fo){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new Cm([i.rootNodes],i)}return new Cm([[this._renderer.createText(`${n}`)]])}return new Cm([])}}let nPe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{pa(this._zone,this._el.nativeElement,(e,i)=>{i&&Iv(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return pa(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(Au("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Vn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Bs],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class dz{update(n){}close(n){}dismiss(n){}}const iPe=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],rPe=["animation","backdropClass"];class oPe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new fn,this._dismissed=new fn,this._hidden=new fn,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}_applyWindowOptions(n,e){iPe.forEach(i=>{gm(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){rPe.forEach(i=>{gm(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(ns(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(ns(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function MU(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Hn(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ZC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var i_=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(i_||(i_={})),i_))();let sPe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new fn,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ot,this.shown=new fn,this.hidden=new fn}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":mm(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=ZC(pa(this._zone,e,()=>e.classList.remove("show"),i),pa(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};ZC(pa(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Iv(o),o.classList.add("show")},e),pa(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Va(e,"keydown").pipe(ns(this._closed$),ps(r=>r.which===jr.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(i_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Va(this._dialogEl.nativeElement,"mousedown").pipe(ns(this._closed$),ms(()=>i=!1),bc(()=>Va(e,"mouseup").pipe(ns(this._closed$),ua(1))),ps(({target:r})=>e===r)).subscribe(()=>{i=!0}),Va(e,"click").pipe(ns(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(i_.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=KU(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&pa(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(ge(vo),ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&wo(HIe,7),2&e){let r;Tn(r=En())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ft("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Au("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Vn("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Df(),_(0,"div",0,1)(2,"div",2),Tf(3),x()()),2&e&&Au("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),aPe=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(e>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=o}}}return t.\u0275fac=function(e){return new(e||t)(xt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lPe=(()=>{class t{constructor(e,i,r,o,s,a,l){this._applicationRef=e,this._injector=i,this._environmentInjector=r,this._document=o,this._scrollBar=s,this._rendererFactory=a,this._ngZone=l,this._activeWindowCmptHasChanged=new fn,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ot,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Va(n,"focusin").pipe(ns(e),$t(o=>o.target));Va(n,"keydown").pipe(ns(e),ps(o=>o.which===jr.Tab),Z3(r)).subscribe(([o,s])=>{const[a,l]=KU(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Va(n,"click").pipe(ns(e),Z3(r),$t(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const o=r.container instanceof HTMLElement?r.container:gm(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new dz,l=(e=r.injector||e).get(Gc,null)||this._environmentInjector,c=this._getContentRef(e,l,i,a,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,c.nodes),h=new oPe(d,c,u,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(ua(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{h.close(f)},a.dismiss=f=>{h.dismiss(f)},a.update=f=>{h.update(f)},h.update(r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=qA(nPe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=qA(sPe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,o,s){return r?r instanceof fo?this._createFromTemplateRef(r,o):mm(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new Cm([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new Cm([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Cm([[i]])}_createFromComponent(e,i,r,o,s){const l=qA(r,{environmentInjector:i,elementInjector:Ca.create({providers:[{provide:dz,useValue:o}],parent:e})}),c=l.location.nativeElement;return s.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new Cm([[c]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(xt(jh),xt(Ca),xt(Gc),xt(vo),xt(aPe),xt(Wg),xt(ur))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m2=(()=>{class t{constructor(e,i,r){this._injector=e,this._modalStack=i,this._config=r}open(e,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(xt(Ca),xt(lPe),xt(cPe))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[m2]}),t})(),uPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fz=t=>gm(t)&&""!==t;let dPe=0,pz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbNavContent",""]],standalone:!0}),t})(),Xh=(()=>{class t{constructor(e,i){this._nav=e,this.elementRef=i,this.disabled=!1,this.shown=new ot,this.hidden=new ot}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){gm(this.domId)||(this.domId="ngb-nav-"+dPe++)}get active(){return this._nav.activeId===this.id}get id(){return fz(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(gm(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>zd)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,pz,4),2&e){let o;Tn(o=En())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0}),t})(),zd=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new ot,this.shown=new ot,this.hidden=new ot,this.destroy$=new fn,this.navItemChange$=new fn,this.navChange=new ot,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case jr.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case jr.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case jr.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case jr.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case jr.Home:s=0;break;case jr.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!gm(this.activeId)){const e=this.items.first?this.items.first.id:null;fz(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(ns(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(kf("role"),ge(uPe),ge($s),ge(vo))},t.\u0275dir=un({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Xh,4),Ti(r,Kf,5)),2&e){let o;Tn(o=En())&&(i.items=o),Tn(o=En())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&ke("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ft("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Vn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[ei]}),t})(),Kf=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(kf("role"),ge(Xh),ge(zd),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(e,i){2&e&&(ql("id",i.navItem.domId),ft("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Vn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))},standalone:!0}),t})(),r_=(()=>{class t{constructor(e,i){this.navItem=e,this.nav=i}}return t.\u0275fac=function(e){return new(e||t)(ge(Xh),ge(zd))},t.\u0275dir=un({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(e,i){1&e&&ke("click",function(o){return i.nav.click(i.navItem),o.preventDefault()})},standalone:!0,features:[G1([Kf])]}),t})();const pPe=({classList:t})=>(t.remove("show"),()=>t.remove("active")),mPe=(t,n)=>{n&&Iv(t),t.classList.add("show")};let EO=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,i){2&e&&(ql("id",i.item.panelDomId),ft("role",i.role?i.role:i.nav.roles?"tabpanel":void 0)("aria-labelledby",i.item.domId),Vn("fade",i.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0}),t})(),mz=(()=>{class t{constructor(e,i){this._cd=e,this._ngZone=i,this._activePane=null}isPanelTransitioning(e){return this._activePane?.item===e}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ns(this.nav.destroy$),aC(this._activePane?.item||null),QC(),function X3e(t){return n=>n.lift(new J3e(t))}(1)).subscribe(e=>{const i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?pa(this._ngZone,this._activePane.elRef.nativeElement,pPe,i).subscribe(()=>{const r=this._activePane?.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),pa(this._ngZone,this._activePane.elRef.nativeElement,mPe,i).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.elRef.nativeElement.classList.add("show"),this._activePane?.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(ge($s),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,i){if(1&e&&wo(EO,5),2&e){let r;Tn(r=En())&&(i._panes=r)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},standalone:!0,features:[Bs],attrs:UIe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&te(0,WIe,1,1,"ng-template",0),2&e&&S("ngForOf",i.nav.items)},dependencies:[EO,Un,xn,Fu],encapsulation:2,changeDetection:0}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[mz]}),t})(),gPe=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]],standalone:!0}),t})(),yz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationFirst",""]],standalone:!0}),t})(),_z=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationLast",""]],standalone:!0}),t})(),bz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationNext",""]],standalone:!0}),t})(),xz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationNumber",""]],standalone:!0}),t})(),wz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]],standalone:!0}),t})(),Cz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationPages",""]],standalone:!0}),t})(),Sz=(()=>{class t{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new ot(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),i0&&this.pageCount>this.maxSize){let i=0,r=this.pageCount;[i,r]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(i,r),this._applyEllipses(i,r)}}}return t.\u0275fac=function(e){return new(e||t)(ge(gPe))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-pagination"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,vz,5),Ti(r,yz,5),Ti(r,_z,5),Ti(r,bz,5),Ti(r,xz,5),Ti(r,wz,5),Ti(r,Cz,5)),2&e){let o;Tn(o=En())&&(i.tplEllipsis=o.first),Tn(o=En())&&(i.tplFirst=o.first),Tn(o=En())&&(i.tplLast=o.first),Tn(o=En())&&(i.tplNext=o.first),Tn(o=En())&&(i.tplNumber=o.first),Tn(o=En())&&(i.tplPrevious=o.first),Tn(o=En())&&(i.tplPages=o.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},standalone:!0,features:[ei,Bs],decls:20,vars:12,consts:function(){let n,e,i,r,o,s,a,l;return n=$localize`:@@ngb.pagination.first:««`,e=$localize`:@@ngb.pagination.previous:«`,i=$localize`:@@ngb.pagination.next:»`,r=$localize`:@@ngb.pagination.last:»»`,o=$localize`:@@ngb.pagination.first-aria:First`,s=$localize`:@@ngb.pagination.previous-aria:Previous`,a=$localize`:@@ngb.pagination.next-aria:Next`,l=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],n,e,i,r,["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"],["aria-label",l,"href","",1,"page-link",3,"click"]]},template:function(e,i){if(1&e&&(te(0,qIe,2,0,"ng-template",null,0,Xo),te(2,YIe,2,0,"ng-template",null,1,Xo),te(4,XIe,2,0,"ng-template",null,2,Xo),te(6,JIe,2,0,"ng-template",null,3,Xo),te(8,KIe,1,0,"ng-template",null,4,Xo),te(10,QIe,1,1,"ng-template",null,5,Xo),te(12,sNe,1,1,"ng-template",null,6,Xo),_(14,"ul"),te(15,lNe,3,9,"li",7),te(16,dNe,3,8,"li",7),te(17,hNe,0,0,"ng-template",8),te(18,pNe,3,9,"li",7),te(19,gNe,3,9,"li",7),x()),2&e){const r=sa(13);w(14),Au("pagination"+(i.size?" pagination-"+i.size:"")),w(1),S("ngIf",i.boundaryLinks),w(1),S("ngIf",i.directionLinks),w(1),S("ngTemplateOutlet",(null==i.tplPages?null:i.tplPages.templateRef)||r)("ngTemplateOutletContext",ty(8,vNe,i.page,i.pages,i.disabled)),w(1),S("ngIf",i.directionLinks),w(1),S("ngIf",i.boundaryLinks)}},dependencies:[xn,Un,Fu],encapsulation:2,changeDetection:0}),t})(),kz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Sz]}),t})();class vPe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const yPe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Dz=t=>t>0?eO(t):n=>n;let Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),CPe=(()=>{class t{constructor(){this.max=100,this.animated=!1,this.ariaLabel="progress bar",this.striped=!1,this.showValue=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SPe=(()=>{class t{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.ariaLabel=e.ariaLabel,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!gs(e)||e<=0?100:e}get max(){return this._max}getValue(){return r2(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}}return t.\u0275fac=function(e){return new(e||t)(ge(CPe))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:5,hostBindings:function(e,i){2&e&&(ft("aria-valuenow",i.getValue())("aria-valuemax",i.max)("aria-label",i.ariaLabel),cr("height",i.height))},inputs:{max:"max",animated:"animated",ariaLabel:"ariaLabel",striped:"striped",showValue:"showValue",textType:"textType",type:"type",value:"value",height:"height"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:3,vars:11,consts:function(){let n;return n=$localize`:@@ngb.progressbar.value:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[4,"ngIf"],n]},template:function(e,i){1&e&&(Df(),_(0,"div"),te(1,bNe,3,3,"span",0),Tf(2),x()),2&e&&(function z6(t,n,e,i,r){Ou(pc,Rd,Zg(Xt(),t,n,e,i,r),!0)}("progress-bar",i.type?i.textType?" bg-"+i.type:" text-bg-"+i.type:"","",i.textType?" text-"+i.textType:"",""),cr("width",i.getPercentValue(),"%"),Vn("progress-bar-animated",i.animated)("progress-bar-striped",i.striped),w(1),S("ngIf",i.showValue))},dependencies:[xn,m7],encapsulation:2,changeDetection:0}),t})(),Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[SPe]}),t})(),kPe=(()=>{class t{constructor(){this.max=10,this.readonly=!1,this.resettable=!1,this.tabindex=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DPe=(()=>{class t{constructor(e,i){this._changeDetectorRef=i,this.contexts=[],this.disabled=!1,this.hover=new ot,this.leave=new ot,this.rateChange=new ot(!0),this.onChange=r=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly,this.tabindex=e.tabindex}ariaValueText(e,i){return`${e} out of ${i}`}isInteractive(){return!this.readonly&&!this.disabled}enter(e){this.isInteractive()&&this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.isInteractive()&&this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case jr.ArrowDown:case jr.ArrowLeft:this.update(this.rate-1);break;case jr.ArrowUp:case jr.ArrowRight:this.update(this.rate+1);break;case jr.Home:this.update(0);break;case jr.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate),e.max&&this._updateMax()}ngOnInit(){this._setupContexts(),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,i=!0){const r=r2(e,this.max,0);this.isInteractive()&&this.rate!==r&&(this.rate=r,this.rateChange.emit(this.rate)),i&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_updateState(e){this.nextRate=e,this.contexts.forEach((i,r)=>i.fill=Math.round(100*r2(e-r,1,0)))}_updateMax(){this.max>0&&(this._setupContexts(),this.update(this.rate))}_setupContexts(){this.contexts=Array.from({length:this.max},(e,i)=>({fill:0,index:i}))}}return t.\u0275fac=function(e){return new(e||t)(ge(kPe),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-rating"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,fo,5),2&e){let o;Tn(o=En())&&(i.starTemplateFromContent=o.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,i){1&e&&ke("blur",function(){return i.handleBlur()})("keydown",function(o){return i.handleKeyDown(o)})("mouseleave",function(){return i.reset()}),2&e&&(ql("tabindex",i.disabled?-1:i.tabindex),ft("aria-valuemax",i.max)("aria-valuenow",i.nextRate)("aria-valuetext",i.ariaValueText(i.nextRate,i.max))("aria-disabled",!!i.readonly||null))},inputs:{max:"max",rate:"rate",readonly:"readonly",resettable:"resettable",starTemplate:"starTemplate",tabindex:"tabindex",ariaValueText:"ariaValueText"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0}]),ei,Bs],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"visually-hidden"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(te(0,xNe,1,1,"ng-template",null,0,Xo),te(2,CNe,4,5,"ng-template",1)),2&e&&(w(2),S("ngForOf",i.contexts))},dependencies:[Un,Fu],encapsulation:2,changeDetection:0}),t})(),Az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[DPe]}),t})();class Mz{constructor(n,e,i){this.hour=Ha(n),this.minute=Ha(e),this.second=Ha(i)}changeHour(n=1){this.updateHour((isNaN(this.hour)?0:this.hour)+n)}updateHour(n){this.hour=gs(n)?(n<0?24+n:n)%24:NaN}changeMinute(n=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+n)}updateMinute(n){gs(n)?(this.minute=n%60<0?60+n%60:n%60,this.changeHour(Math.floor(n/60))):this.minute=NaN}changeSecond(n=1){this.updateSecond((isNaN(this.second)?0:this.second)+n)}updateSecond(n){gs(n)?(this.second=n<0?60+n%60:n%60,this.changeMinute(Math.floor(n/60))):this.second=NaN}isValid(n=!0){return gs(this.hour)&&gs(this.minute)&&(!n||gs(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let TPe=(()=>{class t{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function EPe(){return new APe}()},providedIn:"root"}),t})(),APe=(()=>{class t extends Oz{fromModel(e){return e&&is(e.hour)&&is(e.minute)?{hour:e.hour,minute:e.minute,second:is(e.second)?e.second:null}:null}toModel(e){return e&&is(e.hour)&&is(e.minute)?{hour:e.hour,minute:e.minute,second:is(e.second)?e.second:null}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),Iz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function MPe(t){return new OPe(t)}(xt(vc)),i},providedIn:"root"}),t})(),OPe=(()=>{class t extends Iz{constructor(e){super(),this._periods=X$(e,Vo.Standalone,Yi.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return t.\u0275fac=function(e){return new(e||t)(xt(vc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const IPe=/[^0-9]/g;let NPe=(()=>{class t{constructor(e,i,r,o){this._config=e,this._ngbTimeAdapter=i,this._cd=r,this.i18n=o,this.onChange=s=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=is(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=is(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=is(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const i=this._ngbTimeAdapter.fromModel(e);this.model=i?new Mz(i.hour,i.minute,i.second):new Mz,!this.seconds&&(!i||!gs(i.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model?.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model?.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model?.changeSecond(e),this.propagateModelChange()}updateHour(e){const i=!!this.model&&this.model.hour>=12,r=Ha(e);this.model?.updateHour(this.meridian&&(i&&r<12||!i&&12===r)?r+12:r),this.propagateModelChange()}updateMinute(e){this.model?.updateMinute(Ha(e)),this.propagateModelChange()}updateSecond(e){this.model?.updateSecond(Ha(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(IPe,"")}formatHour(e){return gs(e)?Ov(this.meridian?e%12==0?12:e%12:e%24):Ov(NaN)}formatMinSec(e){return Ov(gs(e)?e:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!gs(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model?.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return t.\u0275fac=function(e){return new(e||t)(ge(TPe),ge(Oz),ge($s),ge(Iz))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},exportAs:["ngbTimepicker"],standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0}]),ei,Bs],decls:16,vars:25,consts:function(){let n,e,i,r,o,s,a,l,c,u,d,h,f,p;return n=$localize`:@@ngb.timepicker.HH:HH`,e=$localize`:@@ngb.timepicker.hours:Hours`,i=$localize`:@@ngb.timepicker.MM:MM`,r=$localize`:@@ngb.timepicker.minutes:Minutes`,o=$localize`:@@ngb.timepicker.increment-hours:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hours:Decrement hours`,a=$localize`:@@ngb.timepicker.increment-minutes:Increment minutes`,l=$localize`:@@ngb.timepicker.decrement-minutes:Decrement minutes`,c=$localize`:@@ngb.timepicker.SS:SS`,u=$localize`:@@ngb.timepicker.seconds:Seconds`,d=$localize`:@@ngb.timepicker.increment-seconds:Increment seconds`,h=$localize`:@@ngb.timepicker.decrement-seconds:Decrement seconds`,f=$localize`:@@ngb.timepicker.PM:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AM:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",i,"aria-label",r,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"visually-hidden"],o,[1,"chevron","ngb-tp-chevron","bottom"],s,a,l,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",c,"aria-label",u,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],d,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],f,p]},template:function(e,i){1&e&&(_(0,"fieldset",0)(1,"div",1)(2,"div",2),te(3,SNe,4,7,"button",3),_(4,"input",4),ke("change",function(o){return i.updateHour(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeHour(i.hourStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeHour(-i.hourStep),o.preventDefault()}),x(),te(5,kNe,4,7,"button",3),x(),_(6,"div",5),O(7,":"),x(),_(8,"div",6),te(9,DNe,4,7,"button",3),_(10,"input",7),ke("change",function(o){return i.updateMinute(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeMinute(i.minuteStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeMinute(-i.minuteStep),o.preventDefault()}),x(),te(11,TNe,4,7,"button",3),x(),te(12,ENe,2,0,"div",8),te(13,ONe,4,9,"div",9),te(14,INe,1,0,"div",8),te(15,PNe,5,9,"div",10),x()()),2&e&&(Vn("disabled",i.disabled),S("disabled",i.disabled),w(3),S("ngIf",i.spinners),w(1),Vn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatHour(null==i.model?null:i.model.hour))("readOnly",i.readonlyInputs)("disabled",i.disabled),w(1),S("ngIf",i.spinners),w(4),S("ngIf",i.spinners),w(1),Vn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatMinSec(null==i.model?null:i.model.minute))("readOnly",i.readonlyInputs)("disabled",i.disabled),w(1),S("ngIf",i.spinners),w(1),S("ngIf",i.seconds),w(1),S("ngIf",i.seconds),w(1),S("ngIf",i.meridian),w(1),S("ngIf",i.meridian))},dependencies:[xn],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n'],encapsulation:2}),t})(),Nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[NPe]}),t})();const FPe=(t,n)=>{const{classList:e}=t;if(n)return e.add("fade"),Iv(t),e.add("show","showing"),()=>{e.remove("showing")};e.add("show")},PPe=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")});let RPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["","ngbToastHeader",""]],standalone:!0}),t})(),LPe=(()=>{class t{constructor(e,i,r,o){this.ariaLive=e,this._zone=r,this._element=o,this.contentHeaderTpl=null,this.shown=new ot,this.hidden=new ot,null==this.ariaLive&&(this.ariaLive=i.ariaLive),this.delay=i.delay,this.autohide=i.autohide,this.animation=i.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const e=pa(this._zone,this._element.nativeElement,PPe,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){const e=pa(this._zone,this._element.nativeElement,FPe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}return t.\u0275fac=function(e){return new(e||t)(kf("aria-live"),ge(RPe),ge(ur),ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-toast"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,jPe,7,fo),2&e){let o;Tn(o=En())&&(i.contentHeaderTpl=o.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(e,i){2&e&&(ft("aria-live",i.ariaLive),Vn("fade",i.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[ei,Bs],ngContentSelectors:Qy,decls:5,vars:1,consts:function(){let n;return n=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Df(),te(0,RNe,2,1,"ng-template",null,0,Xo),te(2,LNe,3,1,"ng-template",1),_(3,"div",2),Tf(4),x()),2&e&&(w(2),S("ngIf",i.contentHeaderTpl||i.header))},dependencies:[xn,Fu],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2}),t})(),Fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[LPe]}),t})(),BPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(xt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$Pe=0,VPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(e,i){2&e&&(ql("id",i.id),Au("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Vn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Df(),xe(0,"div",0),_(1,"div",1),Tf(2),x())},encapsulation:2,changeDetection:0}),t})(),HPe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u){this._elementRef=e,this._renderer=i,this._ngZone=a,this._document=l,this._changeDetector=c,this.shown=new ot,this.hidden=new ot,this._ngbTooltipWindowId="ngb-tooltip-"+$Pe++,this._windowRef=null,this.animation=s.animation,this.autoClose=s.autoClose,this.placement=s.placement,this.popperOptions=s.popperOptions,this.triggers=s.triggers,this.container=s.container,this.disableTooltip=s.disableTooltip,this.tooltipClass=s.tooltipClass,this.openDelay=s.openDelay,this.closeDelay=s.closeDelay,this._popupService=new tPe(VPe,r,o,i,this._ngZone,u),this._positioning=SO()}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:o=>this.popperOptions(o)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),CO(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(e=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(e).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function wPe(t,n,e,i,r,o,s=0,a=0){const l=function _Pe(t,n=yPe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new vPe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function bPe(t,n,e,i){return new Wt(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function xPe(t,n,e){return i=>{let r=null;const o=i.pipe($t(l=>({open:l})),ps(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),Je());return Mt(o.pipe(ps(l=>l.open),Dz(t)),o.pipe(ps(l=>!l.open),Dz(n))).pipe(ps(l=>l===r&&(r=null,l.open!==e())),$t(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(mm(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(Ca),ge(Yl),ge(BPe),ge(ur),ge(vo),ge($s),ge(jh))},t.\u0275dir=un({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[ei]}),t})(),Pz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),UPe=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const i=AU(this.result),r=Array.isArray(this.term)?this.term:[this.term],o=c=>this.accentSensitive?c:IU(c),s=r.map(c=>function zNe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(o(AU(c)))).filter(c=>c),a=this.accentSensitive?i:IU(i),l=s.length?a.split(new RegExp(`(${s.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=l;else{let c=0;this.parts=l.map(u=>i.substring(c,c+=u.length))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[ei,Bs],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,i){1&e&&te(0,VNe,3,2,"ng-template",0),2&e&&S("ngForOf",i.parts)},dependencies:[xn,Un],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0}),t})();new Yn("live announcer delay",{providedIn:"root",factory:function zPe(){return 100}});let Rz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[UPe]}),t})(),jz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();const GPe=[VU,HU,zU,GU,cz,uz,hz,gz,jz,kz,Tz,Ez,Az,Nz,Fz,Pz,Rz];let WPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[GPe,VU,HU,zU,GU,cz,uz,hz,gz,jz,kz,Tz,Ez,Az,Nz,Fz,Pz,Rz]}),t})(),Lz=(()=>{class t{restrictedPages=new Map([["users",ri.USER_ROLE_ADMIN],["config",ri.USER_ROLE_DEVELOPER],["modules",ri.USER_ROLE_DEVELOPER],["apiexplorer",ri.USER_ROLE_DEVELOPER]]);static \u0275fac=function(i){return new(i||t)};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qPe(t,n){if(1&t&&(Cl(0,5),_(1,"a",31),xe(2,"img",32),_(3,"span",12),O(4),x()(),Sl()),2&t){const e=L().$implicit;S("ngbNavItem",e.navItem),w(1),S("routerLink",e.routerLink),w(1),em("src","/static/svg/",e.icon,".svg",B1),w(2),wt(e.label)}}function YPe(t,n){if(1&t&&te(0,qPe,5,4,"ng-container",24),2&t){const e=n.$implicit;S("ngIf",L().getSessionRole()<=e.minRole)}}const XPe=function(){return["/settings/mfa"]};function JPe(t,n){1&t&&(Cl(0,5),_(1,"a",31),xe(2,"img",33),_(3,"span",12),O(4,"MFA Setup"),x()(),Sl()),2&t&&(S("ngbNavItem","mfasetup"),w(1),S("routerLink",cl(2,XPe)))}function KPe(t,n){if(1&t&&(_(0,"div",34)(1,"h2",35),xe(2,"img",36),O(3,"An error has occurred!"),x(),_(4,"h6",37),O(5),x(),_(6,"p"),O(7,"Please refresh the page to try again."),x()()),2&t){const e=L();w(5),wt(e.error)}}function QPe(t,n){1&t&&(_(0,"div",38),xe(1,"img",39),x())}function ZPe(t,n){1&t&&xe(0,"router-outlet")}const e4e=function(){return["/"]},t4e=function(){return["/login"]};let n4e=(()=>{class t{route;router;segment;authService;UserRole=ri;routerSub;segmentRouterSub;loading=!0;error="";routes=[{navItem:"status",routerLink:["/status"],label:"Status",minRole:ri.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:ri.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:ri.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:ri.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:ri.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:ri.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:ri.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:ri.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:ri.USER_ROLE_READONLY,icon:"chat"},{navItem:"purchases",routerLink:["/purchases"],label:"Purchases",minRole:ri.USER_ROLE_READONLY,icon:""},{navItem:"subscriptions",routerLink:["/subscriptions"],label:"Subscriptions",minRole:ri.USER_ROLE_READONLY,icon:""},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:ri.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:ri.USER_ROLE_DEVELOPER,icon:"api-explorer"}];constructor(e,i,r,o){this.route=e,this.router=i,this.segment=r,this.authService=o,this.loading=!1,this.routerSub=this.router.events.pipe(function C3e(t){let n=arguments.length,e=KC;fi(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new S3e(t,i,r,e))}}(2e3)).subscribe(s=>{if(0===s.length)return;const a=s[s.length-1];a instanceof gC&&(this.loading=!0),a instanceof Gh&&(this.loading=!1),a instanceof ky&&(this.loading=!1),a instanceof yC&&(this.loading=!1,this.error=a.error)}),this.segmentRouterSub=i.events.pipe(QC((s,a)=>!(a instanceof Gh)||s.url===a.url)).subscribe(s=>{s&&r.page(s.url)})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}x;getUsername(){return this.authService.username}isMfaEnabled(){return!this.authService.session?.mfa_code}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(zC),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:50,vars:12,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","http://heroiclabs.com/cloud?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Heroic%20Cloud%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/hiro/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Hiro%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/hiro.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/satori/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Satori%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/satori.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/docs/nakama/getting-started/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Documentation%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Blog%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],["src","/static/svg/configuration.svg","alt","","width","24","height","",1,"mr-1"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1)(2,"nav",2,3),ke("navChange",function(s){return r.onSidebarNavChange(s)}),_(4,"div",4),Cl(5,5),_(6,"a",6),xe(7,"img",7)(8,"img",8),x(),Sl(),xe(9,"hr"),te(10,YPe,1,1,"ng-template",9),xe(11,"hr"),_(12,"a",10),xe(13,"img",11),_(14,"span",12),O(15,"Heroic Cloud"),x()(),_(16,"a",13),xe(17,"img",14),_(18,"span",12),O(19,"Hiro"),x()(),_(20,"a",15),xe(21,"img",16),_(22,"span",12),O(23,"Satori"),x()(),xe(24,"hr"),_(25,"a",17),xe(26,"img",18),_(27,"span",12),O(28,"Documentation"),x()(),_(29,"a",19),xe(30,"img",20),_(31,"span",12),O(32,"Forum"),x()(),_(33,"a",21),xe(34,"img",22),_(35,"span",12),O(36,"Heroic Labs Blog"),x()(),xe(37,"hr"),_(38,"div",23),O(39),x(),te(40,JPe,5,3,"ng-container",24),Cl(41,5),_(42,"a",25),ke("click",function(){return r.logout()}),xe(43,"img",26),_(44,"span",12),O(45,"Logout"),x()(),Sl(),x()(),_(46,"main",27),te(47,KPe,8,1,"div",28),te(48,QPe,2,0,"div",29),te(49,ZPe,1,0,"router-outlet",30),x()()()),2&i&&(w(5),S("ngbNavItem","logo"),w(1),S("routerLink",cl(10,e4e)),w(4),S("ngForOf",r.routes),w(29),bn("Logged in as: ",r.getUsername(),""),w(1),S("ngIf",!r.isMfaEnabled()),w(1),S("ngbNavItem","logout"),w(1),S("routerLink",cl(11,t4e)),w(5),S("ngIf",r.error),w(1),S("ngIf",!r.error&&r.loading),w(1),S("ngIf",!r.error&&!r.loading))},dependencies:[Vf,Ru,Ny,Un,xn,zd,Xh,r_,Kf],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px;color:#fff}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})}return t})(),i4e=(()=>{class t{authService;router;globals;constructor(e,i,r){this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ca.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class l4e extends a4e{}"function"==typeof SuppressedError&&SuppressedError;class N4e{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new F4e(n,this.dueTime,this.scheduler))}}class F4e extends I{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P4e,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function P4e(t){t.debouncedNext()}function R4e(){}function FO(t){return null==t?R4e:function(){return this.querySelector(t)}}function L4e(){return[]}function Hz(t){return null==t?L4e:function(){return this.querySelectorAll(t)}}function Uz(t){return function(){return this.matches(t)}}function zz(t){return new Array(t.length)}function g2(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}g2.prototype={constructor:g2,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Gz="$";function U4e(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var PO="http://www.w3.org/1999/xhtml";const Wz={svg:"http://www.w3.org/2000/svg",xhtml:PO,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function v2(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Wz.hasOwnProperty(n)?{space:Wz[n],local:t}:t}function rRe(t){return function(){this.removeAttribute(t)}}function oRe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function sRe(t,n){return function(){this.setAttribute(t,n)}}function aRe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function lRe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function cRe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function qz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function dRe(t){return function(){this.style.removeProperty(t)}}function hRe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function fRe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function Rv(t,n){return t.style.getPropertyValue(n)||qz(t).getComputedStyle(t,null).getPropertyValue(n)}function mRe(t){return function(){delete this[t]}}function gRe(t,n){return function(){this[t]=n}}function vRe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Yz(t){return t.trim().split(/^|\s+/)}function RO(t){return t.classList||new Xz(t)}function Xz(t){this._node=t,this._names=Yz(t.getAttribute("class")||"")}function Jz(t,n){for(var e=RO(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Zz={},Ur=null;function qRe(t,n,e){return t=eG(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function eG(t,n,e){return function(i){var r=Ur;Ur=i;try{t.call(this,this.__data__,n,e)}finally{Ur=r}}}function XRe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=b&&(b=y+1);!(D=g[b])&&++b=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function J4e(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=K4e);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?dRe:"function"==typeof n?fRe:hRe)(t,n,e??"")):Rv(this.node(),t)},property:function yRe(t,n){return arguments.length>1?this.each((null==n?mRe:"function"==typeof n?vRe:gRe)(t,n)):this.node()[t]},classed:function wRe(t,n){var e=Yz(t+"");if(arguments.length<2){for(var i=RO(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?JRe:XRe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?b2(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?b2(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=lje.exec(t))?new Dc(n[1],n[2],n[3],1):(n=cje.exec(t))?new Dc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=uje.exec(t))?b2(n[1],n[2],n[3],n[4]):(n=dje.exec(t))?b2(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=hje.exec(t))?pG(n[1],n[2]/100,n[3]/100,1):(n=fje.exec(t))?pG(n[1],n[2]/100,n[3]/100,n[4]):lG.hasOwnProperty(t)?dG(lG[t]):"transparent"===t?new Dc(NaN,NaN,NaN,0):null}function dG(t){return new Dc(t>>16&255,t>>8&255,255&t,1)}function b2(t,n,e,i){return i<=0&&(t=n=e=NaN),new Dc(t,n,e,i)}function u_(t,n,e,i){return 1===arguments.length?function mje(t){return t instanceof a_||(t=Sm(t)),t?new Dc((t=t.rgb()).r,t.g,t.b,t.opacity):new Dc}(t):new Dc(t,n,e,i??1)}function Dc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function hG(){return"#"+BO(this.r)+BO(this.g)+BO(this.b)}function fG(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function BO(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function pG(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Wd(t,n,e,i)}function mG(t){if(t instanceof Wd)return new Wd(t.h,t.s,t.l,t.opacity);if(t instanceof a_||(t=Sm(t)),!t)return new Wd;if(t instanceof Wd)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Wd(s,a,l,t.opacity)}function Wd(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function $O(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function gG(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function VO(t){return function(){return t}}function yG(t,n){var e=n-t;return e?function vG(t,n){return function(e){return t+e*n}}(t,e):VO(isNaN(t)?n:t)}LO(a_,Sm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:cG,formatHex:cG,formatHsl:function pje(){return mG(this).formatHsl()},formatRgb:uG,toString:uG}),LO(Dc,u_,aG(a_,{brighter:function(t){return t=null==t?_2:Math.pow(_2,t),new Dc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Dc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hG,formatHex:hG,formatRgb:fG,toString:fG})),LO(Wd,function gje(t,n,e,i){return 1===arguments.length?mG(t):new Wd(t,n,e,i??1)},aG(a_,{brighter:function(t){return t=null==t?_2:Math.pow(_2,t),new Wd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Wd(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new Dc($O(t>=240?t-240:t+120,r,i),$O(t,r,i),$O(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const x2=function t(n){var e=function bje(t){return 1==(t=+t)?yG:function(n,e){return e-n?function _je(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):VO(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=u_(r)).r,(o=u_(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=yG(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function _G(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return gG((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Uu(i,r)})),e=UO.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--Lv}()}finally{Lv=0,function Ije(){for(var t,e,n=w2,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:w2=e);f_=t,zO(i)}(),Dm=0}}function Oje(){var t=p_.now(),n=t-C2;n>SG&&(S2-=n,C2=t)}function zO(t){Lv||(d_&&(d_=clearTimeout(d_)),t-Dm>24?(t<1/0&&(d_=setTimeout(TG,t-p_.now()-S2)),h_&&(h_=clearInterval(h_))):(h_||(C2=p_.now(),h_=setInterval(Oje,SG)),Lv=1,kG(TG)))}function EG(t,n,e){var i=new D2;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}D2.prototype=DG.prototype={constructor:D2,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?k2():+e)+(null==n?0:+n),!this._next&&f_!==this&&(f_?f_._next=this:w2=this,f_=this),this._call=t,this._time=e,zO()},stop:function(){this._call&&(this._call=null,this._time=1/0,zO())}};var Nje=sG("start","end","cancel","interrupt"),Fje=[],AG=0,MG=1,GO=2,T2=3,OG=4,WO=5,E2=6;function A2(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function Pje(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==MG)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===T2)return EG(s);f.state===OG?(f.state=E2,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uAG)throw new Error("too late; already scheduled");return e}function Jh(t,n){var e=zu(t,n);if(e.state>T2)throw new Error("too late; already running");return e}function zu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function YO(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>GO&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Uu(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Uu(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Uu(c,d)},{i:m-2,x:Uu(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?qO:Jh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function Jje(t,n){var e=v2(t),i="transform"===e?$je:RG;return this.attrTween(t,"function"==typeof n?(e.local?Xje:Yje)(e,i,KO(this,"attr."+t,n)):null==n?(e.local?Gje:zje)(e):(e.local?qje:Wje)(e,i,n))},attrTween:function tLe(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=v2(t);return this.tween(e,(i.local?Zje:eLe)(i,n))},style:function kLe(t,n,e){var i="transform"==(t+="")?Bje:RG;return null==n?this.styleTween(t,function xLe(t,n){var e,i,r;return function(){var o=Rv(this,t),s=(this.style.removeProperty(t),Rv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,jG(t)):"function"==typeof n?this.styleTween(t,function CLe(t,n,e){var i,r,o;return function(){var s=Rv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=Rv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,KO(this,"style."+t,n))).each(function SLe(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Jh(this,t),c=l.on,u=null==l.value[o]?a||(a=jG(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function wLe(t,n,e){var i,o,r=e+"";return function(){var s=Rv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function ELe(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function TLe(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function DLe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function OLe(t){return this.tween("text","function"==typeof t?function MLe(t){return function(){var n=t(this);this.textContent=n??""}}(KO(this,"text",t)):function ALe(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function FLe(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function NLe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function ILe(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function gLe(){return this.on("end.remove",function mLe(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function Uje(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=zu(this.node(),e).tween,r=0,o=i.length;r0&&(j=U-N),C<0?pe=A-F:C>0&&(X=oe-F),y=tI,$.attr("cursor",Qh.selection),Re());break;default:return}eI()},!0).on("keyup.brush",function Ct(){switch(Ur.keyCode){case 16:V&&(ce=ve=V=!1,Re());break;case 18:y===Vv&&(b<0?W=J:b>0&&(j=U),C<0?pe=A:C>0&&(X=oe),y=$v,Re());break;case 32:y===tI&&(Ur.altKey?(b&&(W=J-N*b,j=U+N*b),C&&(pe=A-F*C,X=oe+F*C),y=Vv):(b<0?W=J:b>0&&(j=U),C<0?pe=A:C>0&&(X=oe),y=$v),$.attr("cursor",Qh[v]),Re());break;default:return}eI()},!0),function oje(t){var n=t.document.documentElement,e=Sa(t).on("dragstart.drag",jO,!0);"onselectstart"in n?e.on("selectstart.drag",jO,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Ur.view)}BG(),YO(g),c.call(g),We.start()}function le(){var Ot=je(g);V&&!ce&&!ve&&(Math.abs(Ot[0]-et[0])>Math.abs(Ot[1]-et[1])?ve=!0:ce=!0),et=Ot,q=!0,eI(),Re()}function Re(){var Ot;switch(N=et[0]-Te[0],F=et[1]-Te[1],y){case tI:case $G:b&&(N=Math.max(z-j,Math.min(P-W,N)),U=j+N,J=W+N),C&&(F=Math.max(G-X,Math.min(H-pe,F)),oe=X+F,A=pe+F);break;case $v:b<0?(N=Math.max(z-j,Math.min(P-j,N)),U=j+N,J=W):b>0&&(N=Math.max(z-W,Math.min(P-W,N)),U=j,J=W+N),C<0?(F=Math.max(G-X,Math.min(H-X,F)),oe=X+F,A=pe):C>0&&(F=Math.max(G-pe,Math.min(H-pe,F)),oe=X,A=pe+F);break;case Vv:b&&(U=Math.max(z,Math.min(P,j-N*b)),J=Math.max(z,Math.min(P,W+N*b))),C&&(oe=Math.max(G,Math.min(H,X-F*C)),A=Math.max(G,Math.min(H,pe+F*C)))}Jn?1:t>=n?0:NaN}function sI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function ZLe(t){return(n,e)=>oI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var aI=Math.sqrt(50),lI=Math.sqrt(10),cI=Math.sqrt(2);function zG(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=aI?10:o>=lI?5:o>=cI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=aI?10:o>=lI?5:o>=cI?2:1)}function uI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=aI?r*=10:o>=lI?r*=5:o>=cI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return fI.setTime(+o),pI.setTime(+s),t(fI),t(pI),Math.floor(e(fI,pI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var N2=ka(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});N2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ka(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):N2:null};const t5e=N2;var WG=ka(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Zh)},function(t,n){return(n-t)/Zh},function(t){return t.getUTCSeconds()});const v_=WG;var qG=ka(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zh)},function(t,n){t.setTime(+t+n*Zc)},function(t,n){return(n-t)/Zc},function(t){return t.getMinutes()});const YG=qG;var XG=ka(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zh-t.getMinutes()*Zc)},function(t,n){t.setTime(+t+n*ef)},function(t,n){return(n-t)/ef},function(t){return t.getHours()});const JG=XG;var KG=ka(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zc)/Tm,t=>t.getDate()-1);const QG=KG;function Em(t){return ka(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Zc)/dI})}var mI=Em(0),ZG=(Em(1),Em(2),Em(3),Em(4),Em(5),Em(6),ka(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const eW=ZG;var gI=ka(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});gI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ka(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const tW=gI;var nW=ka(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Zc)},function(t,n){return(n-t)/Zc},function(t){return t.getUTCMinutes()});const l5e=nW;var iW=ka(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*ef)},function(t,n){return(n-t)/ef},function(t){return t.getUTCHours()});const c5e=iW;var rW=ka(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Tm},function(t){return t.getUTCDate()-1});const u5e=rW;function Am(t){return ka(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/dI})}var oW=Am(0),sW=(Am(1),Am(2),Am(3),Am(4),Am(5),Am(6),ka(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const v5e=sW;var vI=ka(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});vI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ka(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const y5e=vI;function aW(t,n,e,i,r,o){const s=[[v_,1,Zh],[v_,5,5*Zh],[v_,15,15*Zh],[v_,30,30*Zh],[o,1,Zc],[o,5,5*Zc],[o,15,15*Zc],[o,30,30*Zc],[r,1,ef],[r,3,3*ef],[r,6,6*ef],[r,12,12*ef],[i,1,Tm],[i,2,2*Tm],[e,1,dI],[n,1,GG],[n,3,3*GG],[t,1,hI]];function l(c,u,d){const h=Math.abs(u-c)/d,f=sI(([,,g])=>g).right(s,h);if(f===s.length)return t.every(uI(c/hI,u/hI,d));if(0===f)return t5e.every(Math.max(uI(c,u,d),1));const[p,m]=s[h/s[f-1][2]0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return yI.setTime(+o),_I.setTime(+s),t(yI),t(_I),Math.floor(e(yI,_I))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var lW=6e4,uW=6048e5;function Mm(t){return tf(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/uW})}var dW=Mm(0),F2=Mm(1),Hv=(Mm(2),Mm(3),Mm(4)),hW=(Mm(5),Mm(6),tf(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const fW=hW;function Om(t){return tf(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*lW)/uW})}var pW=Om(0),P2=Om(1),Uv=(Om(2),Om(3),Om(4)),mW=(Om(5),Om(6),tf(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*lW)/864e5},function(t){return t.getDate()-1}));const gW=mW;var bI=tf(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});bI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tf(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const y_=bI;var xI=tf(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});xI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tf(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const __=xI;function wI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function CI(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function b_(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var zv,OW,vW={"-":"",_:" ",0:"0"},Da=/^\s*\d+/,M5e=/^%/,O5e=/[\\^$*+?|[\]().{}]/g;function Yr(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function L5e(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function B5e(t,n,e){var i=Da.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function $5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function bW(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function V5e(t,n,e){var i=Da.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function xW(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function H5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function U5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function z5e(t,n,e){var i=Da.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function G5e(t,n,e){var i=Da.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function W5e(t,n,e){var i=M5e.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function q5e(t,n,e){var i=Da.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Y5e(t,n,e){var i=Da.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function wW(t,n){return Yr(t.getDate(),n,2)}function X5e(t,n){return Yr(t.getHours(),n,2)}function J5e(t,n){return Yr(t.getHours()%12||12,n,2)}function K5e(t,n){return Yr(1+gW.count(y_(t),t),n,3)}function CW(t,n){return Yr(t.getMilliseconds(),n,3)}function Q5e(t,n){return CW(t,n)+"000"}function Z5e(t,n){return Yr(t.getMonth()+1,n,2)}function e8e(t,n){return Yr(t.getMinutes(),n,2)}function t8e(t,n){return Yr(t.getSeconds(),n,2)}function n8e(t){var n=t.getDay();return 0===n?7:n}function i8e(t,n){return Yr(pW.count(y_(t)-1,t),n,2)}function SW(t){var n=t.getDay();return n>=4||0===n?Uv(t):Uv.ceil(t)}function r8e(t,n){return t=SW(t),Yr(Uv.count(y_(t),t)+(4===y_(t).getDay()),n,2)}function o8e(t){return t.getDay()}function s8e(t,n){return Yr(P2.count(y_(t)-1,t),n,2)}function a8e(t,n){return Yr(t.getFullYear()%100,n,2)}function l8e(t,n){return Yr((t=SW(t)).getFullYear()%100,n,2)}function c8e(t,n){return Yr(t.getFullYear()%1e4,n,4)}function u8e(t,n){var e=t.getDay();return Yr((t=e>=4||0===e?Uv(t):Uv.ceil(t)).getFullYear()%1e4,n,4)}function d8e(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Yr(n/60|0,"0",2)+Yr(n%60,"0",2)}function kW(t,n){return Yr(t.getUTCDate(),n,2)}function h8e(t,n){return Yr(t.getUTCHours(),n,2)}function f8e(t,n){return Yr(t.getUTCHours()%12||12,n,2)}function p8e(t,n){return Yr(1+fW.count(__(t),t),n,3)}function DW(t,n){return Yr(t.getUTCMilliseconds(),n,3)}function m8e(t,n){return DW(t,n)+"000"}function g8e(t,n){return Yr(t.getUTCMonth()+1,n,2)}function v8e(t,n){return Yr(t.getUTCMinutes(),n,2)}function y8e(t,n){return Yr(t.getUTCSeconds(),n,2)}function _8e(t){var n=t.getUTCDay();return 0===n?7:n}function b8e(t,n){return Yr(dW.count(__(t)-1,t),n,2)}function TW(t){var n=t.getUTCDay();return n>=4||0===n?Hv(t):Hv.ceil(t)}function x8e(t,n){return t=TW(t),Yr(Hv.count(__(t),t)+(4===__(t).getUTCDay()),n,2)}function w8e(t){return t.getUTCDay()}function C8e(t,n){return Yr(F2.count(__(t)-1,t),n,2)}function S8e(t,n){return Yr(t.getUTCFullYear()%100,n,2)}function k8e(t,n){return Yr((t=TW(t)).getUTCFullYear()%100,n,2)}function D8e(t,n){return Yr(t.getUTCFullYear()%1e4,n,4)}function T8e(t,n){var e=t.getUTCDay();return Yr((t=e>=4||0===e?Hv(t):Hv.ceil(t)).getUTCFullYear()%1e4,n,4)}function E8e(){return"+0000"}function EW(){return"%"}function AW(t){return+t}function MW(t){return Math.floor(+t/1e3)}function IW(t){return null===t?NaN:+t}!function I8e(t){zv=function A5e(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=x_(r),u=w_(r),d=x_(o),h=w_(o),f=x_(s),p=w_(s),m=x_(a),g=w_(a),v=x_(l),y=w_(l),b={a:function H(We){return s[We.getDay()]},A:function pe(We){return o[We.getDay()]},b:function A(We){return l[We.getMonth()]},B:function N(We){return a[We.getMonth()]},c:null,d:wW,e:wW,f:Q5e,g:l8e,G:u8e,H:X5e,I:J5e,j:K5e,L:CW,m:Z5e,M:e8e,p:function F(We){return r[+(We.getHours()>=12)]},q:function q(We){return 1+~~(We.getMonth()/3)},Q:AW,s:MW,S:t8e,u:n8e,U:i8e,V:r8e,w:o8e,W:s8e,x:null,X:null,y:a8e,Y:c8e,Z:d8e,"%":EW},C={a:function V(We){return s[We.getUTCDay()]},A:function ce(We){return o[We.getUTCDay()]},b:function ve(We){return l[We.getUTCMonth()]},B:function je(We){return a[We.getUTCMonth()]},c:null,d:kW,e:kW,f:m8e,g:k8e,G:T8e,H:h8e,I:f8e,j:p8e,L:DW,m:g8e,M:v8e,p:function Te(We){return r[+(We.getUTCHours()>=12)]},q:function et(We){return 1+~~(We.getUTCMonth()/3)},Q:AW,s:MW,S:y8e,u:_8e,U:b8e,V:x8e,w:w8e,W:C8e,x:null,X:null,y:S8e,Y:D8e,Z:E8e,"%":EW},D={a:function U(We,st,$){var ae=f.exec(st.slice($));return ae?(We.w=p[ae[0].toLowerCase()],$+ae[0].length):-1},A:function G(We,st,$){var ae=d.exec(st.slice($));return ae?(We.w=h[ae[0].toLowerCase()],$+ae[0].length):-1},b:function X(We,st,$){var ae=v.exec(st.slice($));return ae?(We.m=y[ae[0].toLowerCase()],$+ae[0].length):-1},B:function oe(We,st,$){var ae=m.exec(st.slice($));return ae?(We.m=g[ae[0].toLowerCase()],$+ae[0].length):-1},c:function P(We,st,$){return z(We,n,st,$)},d:bW,e:bW,f:G5e,g:_W,G:yW,H:xW,I:xW,j:V5e,L:z5e,m:$5e,M:H5e,p:function j(We,st,$){var ae=c.exec(st.slice($));return ae?(We.p=u[ae[0].toLowerCase()],$+ae[0].length):-1},q:B5e,Q:q5e,s:Y5e,S:U5e,u:F5e,U:P5e,V:R5e,w:N5e,W:j5e,x:function W(We,st,$){return z(We,e,st,$)},X:function J(We,st,$){return z(We,i,st,$)},y:_W,Y:yW,Z:L5e,"%":W5e};function E(We,st){return function($){var Ve,Ct,Ot,ae=[],le=-1,Re=0,Ze=We.length;for($ instanceof Date||($=new Date(+$));++le53)return null;"w"in ae||(ae.w=1),"Z"in ae?(Ze=(Re=CI(b_(ae.y,0,1))).getUTCDay(),Re=Ze>4||0===Ze?F2.ceil(Re):F2(Re),Re=fW.offset(Re,7*(ae.V-1)),ae.y=Re.getUTCFullYear(),ae.m=Re.getUTCMonth(),ae.d=Re.getUTCDate()+(ae.w+6)%7):(Ze=(Re=wI(b_(ae.y,0,1))).getDay(),Re=Ze>4||0===Ze?P2.ceil(Re):P2(Re),Re=gW.offset(Re,7*(ae.V-1)),ae.y=Re.getFullYear(),ae.m=Re.getMonth(),ae.d=Re.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),Ze="Z"in ae?CI(b_(ae.y,0,1)).getUTCDay():wI(b_(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+7*ae.W-(Ze+5)%7:ae.w+7*ae.U-(Ze+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,CI(ae)):wI(ae)}}function z(We,st,$,ae){for(var Ve,Ct,le=0,Re=st.length,Ze=$.length;le=Ze)return-1;if(37===(Ve=st.charCodeAt(le++))){if(Ve=st.charAt(le++),!(Ct=D[Ve in vW?st.charAt(le++):Ve])||(ae=Ct(We,$,ae))<0)return-1}else if(Ve!=$.charCodeAt(ae++))return-1}return ae}return b.x=E(e,b),b.X=E(i,b),b.c=E(n,b),C.x=E(e,C),C.X=E(i,C),C.c=E(n,C),{format:function(We){var st=E(We+="",b);return st.toString=function(){return We},st},parse:function(We){var st=B(We+="",!1);return st.toString=function(){return We},st},utcFormat:function(We){var st=E(We+="",C);return st.toString=function(){return We},st},utcParse:function(We){var st=B(We+="",!0);return st.toString=function(){return We},st}}}(t),OW=zv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const N8e=sI(oI).right,FW=(sI(IW),N8e);function F8e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function R8e(t){return+t}var PW=[0,1];function Gv(t){return t}function SI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function P8e(t){return function(){return t}}(isNaN(n)?NaN:.5)}function L8e(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?B8e:L8e,l=c=null,d}function d(h){return null==h||isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Uu)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,R8e),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=F8e,u()},d.clamp=function(h){return arguments.length?(s=!!h||Gv,u()):s!==Gv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Gv,Gv)}function C_(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function H8e(t){return new Date(t)}function U8e(t){return t instanceof Date?+t:+new Date(+t)}function LW(t,n,e,i,r,o,s,a,l,c){var u=jW(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),C=c("%Y");function D(E){return(l(E)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function R2(t){if(!(n=z8e.exec(t)))throw new Error("invalid format: "+t);var n;return new kI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function kI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function j2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function Wv(t){return(t=j2(Math.abs(t)))?t[1]:NaN}function $W(t,n){var e=j2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}R2.prototype=kI.prototype,kI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const VW={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function G8e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return $W(100*t,n)},r:$W,s:function J8e(t,n){var e=j2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(BW=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+j2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function HW(t){return t}var L2,DI,GW,UW=Array.prototype.map,zW=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function n6e(t){var n=t.domain;return t.ticks=function(e){var i=n();return function e5e(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0){let l=Math.round(t/a),c=Math.round(n/a);for(l*an&&--c,s=new Array(o=c-l+1);++rn&&--c,s=new Array(o=c-l+1);++r0;){if((c=zG(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function Co(){var t=jW();return t.copy=function(){return RW(t,Co())},C_.apply(t,arguments),n6e(t)}function WW(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(UW.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?HW:function Y8e(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(UW.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=R2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,b=d.precision,C=d.trim,D=d.type;"n"===D?(y=!0,D="g"):VW[D]||(void 0===b&&(b=12),C=!0,D="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var E="$"===m?e:"#"===m&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",B="$"===m?i:/[%p]/.test(D)?s:"",z=VW[D],j=/[defgprs%]/.test(D);function U(G){var P,W,J,X=E,oe=B;if("c"===D)oe=z(G)+oe,G="";else{var H=(G=+G)<0||1/G<0;if(G=isNaN(G)?l:z(Math.abs(G),b),C&&(G=function X8e(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(G)),H&&0==+G&&"+"!==p&&(H=!1),X=(H?"("===p?p:a:"-"===p||"("===p?"":p)+X,oe=("s"===D?zW[8+BW/3]:"")+oe+(H&&"("===p?")":""),j)for(P=-1,W=G.length;++P(J=G.charCodeAt(P))||J>57){oe=(46===J?r+G.slice(P+1):G.slice(P))+oe,G=G.slice(0,P);break}}y&&!g&&(G=n(G,1/0));var pe=X.length+G.length+oe.length,A=pe>1)+X+G+oe+A.slice(pe);break;default:G=A+X+G+oe}return o(G)}return b=void 0===b?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),U.toString=function(){return d+""},U}return{format:c,formatPrefix:function u(d,h){var f=c(((d=R2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(Wv(h)/3))),m=Math.pow(10,-p),g=zW[8+p/3];return function(v){return f(m*v)+g}}}}(t),DI=L2.format,GW=L2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const qW=Symbol("implicit");function TI(){var t=new Map,n=[],e=[],i=qW;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==qW)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return TI(n,e).unknown(i)},C_.apply(r,arguments),r}function Ua(){var o,s,t=TI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function XW(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],aPm)if(Math.abs(u*a-l*c)>Pm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((EI-Math.acos((p+d-m)/(2*g*v)))/2),b=y/v,C=y/g;Math.abs(b-1)>Pm&&(this._+="L"+(t+b*c)+","+(n+b*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+C*a)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Pm||Math.abs(this._y1-c)>Pm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%AI+AI),d>r6e?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Pm&&(this._+="A"+e+","+e+",0,"+ +(d>=EI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const OI=KW;function _o(t){return function(){return t}}function QW(t){return t[0]}function ZW(t){return t[1]}function B2(){var t=QW,n=ZW,e=_o(!0),i=null,r=Fm,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=OI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],b[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),b[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):b[d]))}if(v)return a=null,v+""||null}function c(){return B2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:_o(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:_o(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:_o(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:_o(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:_o(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:_o(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:_o(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function eq(){}function II(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function tq(t,n){this._context=t,this._k=(1-n)/6}function nq(t,n){this._context=t,this._k=(1-n)/6}function iq(t){this._curve=t}function w6e(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function lq(t,n){var r,s,a,l,c,e=new T_(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=H6e);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new T_(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(cq)}function H6e(t){return t.children}function U6e(t){t.data=t.data.data}function cq(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function T_(t){this.data=t,this.depth=this.height=0,this.parent=null}tq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:II(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:II(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new tq(i,n)}return e.tension=function(i){return t(+i)},e}(0),nq.prototype={areaStart:eq,areaEnd:eq,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:II(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new nq(i,n)}return e.tension=function(i){return t(+i)},e}(0),function rq(t){function n(e){return new iq(t(e))}return n._curve=t,n}(Fm),iq.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function k6e(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,b,C,D,E,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),E=g*g*D,(b=Math.max(y/E,E/v))>C){g-=c;break}C=b}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),T_.prototype=lq.prototype={constructor:T_,count:function A6e(){return this.eachAfter(E6e)},each:function M6e(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function N6e(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function F6e(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function P6e(t){for(var n=this,e=function R6e(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function j6e(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function L6e(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function B6e(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function $6e(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function V6e(){return lq(this).eachBefore(U6e)}};const Y6e=["caretElm"];function X6e(t,n){}const J6e=function(t){return{model:t}};function K6e(t,n){if(1&t&&(_(0,"span"),te(1,X6e,0,0,"ng-template",5),x()),2&t){const e=L();w(1),S("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Zi(2,J6e,e.context))}}function Q6e(t,n){1&t&&xe(0,"span",6),2&t&&S("innerHTML",L().title,Yx)}function Z6e(t,n){if(1&t&&(lt(),qp(),xe(0,"ngx-charts-scale-legend",4)),2&t){const e=L();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function eBe(t,n){if(1&t){const e=_t();lt(),qp(),_(0,"ngx-charts-legend",5),ke("labelClick",function(r){return ze(e),Ge(L().legendLabelClick.emit(r))})("labelActivate",function(r){return ze(e),Ge(L().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return ze(e),Ge(L().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=L();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const hq=["*"],tBe=["ngx-charts-axis-label",""],fq=["ticksel"],nBe=["ngx-charts-x-axis-ticks",""];function iBe(t,n){if(1&t&&(lt(),_(0,"g",3)(1,"title"),O(2),x(),_(3,"text",4),O(4),x()()),2&t){const e=n.$implicit,i=L();ft("transform",i.tickTransform(e)),w(2),wt(i.tickFormat(e)),w(1),cr("font-size","12px"),ft("text-anchor",i.textAnchor)("transform",i.textTransform),w(1),bn(" ",i.tickTrim(i.tickFormat(e))," ")}}function rBe(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"line",6),x()),2&t){const e=L(2);ft("transform",e.gridLineTransform()),w(1),ft("y1",-e.gridLineHeight)}}function oBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,rBe,2,2,"g",5),x()),2&t){const e=n.$implicit,i=L();ft("transform",i.tickTransform(e)),w(1),S("ngIf",i.showGridLines)}}const sBe=["ngx-charts-x-axis",""];function aBe(t,n){if(1&t){const e=_t();lt(),_(0,"g",2),ke("dimensionsChanged",function(r){return ze(e),Ge(L().emitTicksHeight(r))}),x()}if(2&t){const e=L();S("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function lBe(t,n){if(1&t&&(lt(),xe(0,"g",3)),2&t){const e=L();S("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const cBe=["ngx-charts-y-axis-ticks",""];function uBe(t,n){if(1&t&&(lt(),_(0,"g",4)(1,"title"),O(2),x(),_(3,"text",5),O(4),x()()),2&t){const e=n.$implicit,i=L();ft("transform",i.transform(e)),w(2),wt(i.tickFormat(e)),w(1),cr("font-size","12px"),ft("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),w(1),bn(" ",i.tickTrim(i.tickFormat(e))," ")}}function dBe(t,n){if(1&t&&(lt(),xe(0,"path",6)),2&t){const e=L();ft("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function hBe(t,n){1&t&&(lt(),xe(0,"line",9)),2&t&&ft("x2",L(3).gridLineWidth)}function fBe(t,n){1&t&&(lt(),xe(0,"line",9)),2&t&&ft("x2",-L(3).gridLineWidth)}function pBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,hBe,1,1,"line",8),te(2,fBe,1,1,"line",8),x()),2&t){const e=L(2);ft("transform",e.gridLineTransform()),w(1),S("ngIf","left"===e.orient),w(1),S("ngIf","right"===e.orient)}}function mBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,pBe,3,3,"g",7),x()),2&t){const e=n.$implicit,i=L();ft("transform",i.transform(e)),w(1),S("ngIf",i.showGridLines)}}function gBe(t,n){if(1&t&&(lt(),_(0,"g")(1,"title"),O(2),x(),_(3,"text",11),O(4),x()()),2&t){const e=L(2).$implicit,i=L();w(2),wt(i.tickTrim(i.tickFormat(e.value))),w(1),ft("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),w(1),bn(" ",e.name," ")}}function vBe(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"line",10),te(2,gBe,5,6,"g",7),x()),2&t){const e=L().$implicit,i=L();ft("transform",i.transform(e.value)),w(1),ft("x2",i.gridLineWidth)("transform",i.gridLineTransform()),w(1),S("ngIf",i.showRefLabels)}}function yBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,vBe,3,4,"g",7),x()),2&t){const e=L();w(1),S("ngIf",e.showRefLines)}}const _Be=["ngx-charts-y-axis",""];function bBe(t,n){if(1&t){const e=_t();lt(),_(0,"g",2),ke("dimensionsChanged",function(r){return ze(e),Ge(L().emitTicksWidth(r))}),x()}if(2&t){const e=L();S("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function xBe(t,n){if(1&t&&(lt(),xe(0,"g",3)),2&t){const e=L();S("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const wBe=["ngx-charts-circle-series",""];function CBe(t,n){if(1&t&&(lt(),xe(0,"rect",4)),2&t){const e=L(2);S("@animationState","active"),ft("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const SBe=function(t){return{name:t}};function kBe(t,n){if(1&t){const e=_t();lt(),_(0,"g")(1,"defs"),xe(2,"g",1),x(),te(3,CBe,1,6,"rect",2),_(4,"g",3),ke("select",function(){ze(e);const r=L();return Ge(r.onClick(r.circle.data))})("activate",function(){return ze(e),Ge(L().activateCircle())})("deactivate",function(){return ze(e),Ge(L().deactivateCircle())}),x()()}if(2&t){const e=L();w(2),S("name",e.gradientId)("stops",e.circle.gradientStops),w(1),S("ngIf",e.barVisible&&"standard"===e.type),w(1),Vn("active",e.isActive(Zi(18,SBe,e.circle.seriesName))),S("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const DBe=["ngx-charts-circle",""],MBe=["ngx-charts-svg-linear-gradient",""];function OBe(t,n){if(1&t&&(lt(),xe(0,"stop")),2&t){const e=n.$implicit;cr("stop-color",e.color)("stop-opacity",e.opacity),ft("offset",e.offset+"%")}}const FBe=["ngx-charts-area",""];function PBe(t,n){if(1&t&&(lt(),_(0,"defs"),xe(1,"g",2),x()),2&t){const e=L();w(1),S("name",e.gradientId)("stops",e.gradientStops)}}const jBe=["tooltipAnchor"],LBe=["ngx-charts-tooltip-area",""];function BBe(t,n){if(1&t&&(_(0,"div",6),xe(1,"span",7),O(2),x()),2&t){const e=n.$implicit,i=L(2);w(1),cr("background-color",e.color),w(1),bn(" ",i.getToolTipText(e)," ")}}function $Be(t,n){if(1&t&&(lt(),qp(),_(0,"div",4),te(1,BBe,3,3,"div",5),x()),2&t){const e=n.model;w(1),S("ngForOf",e)}}const VBe=["ngx-charts-timeline",""];function HBe(t,n){if(1&t&&(_(0,"header",4)(1,"span",5),O(2),x()()),2&t){const e=L();w(2),wt(e.title)}}function UBe(t,n){if(1&t){const e=_t();_(0,"li",6)(1,"ngx-charts-legend-entry",7),ke("select",function(r){return ze(e),Ge(L().labelClick.emit(r))})("activate",function(r){return ze(e),Ge(L().activate(r))})("deactivate",function(r){return ze(e),Ge(L().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=L();w(1),S("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Ws=["tooltipTemplate"],z2=["seriesTooltipTemplate"],Ao=function(t,n){return[t,n]},d7e=["ngx-charts-line",""];function h7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",7),ke("dimensionsChanged",function(r){return ze(e),Ge(L().updateXAxisHeight(r))}),x()}if(2&t){const e=L();S("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function f7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",8),ke("dimensionsChanged",function(r){return ze(e),Ge(L().updateYAxisWidth(r))}),x()}if(2&t){const e=L();S("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function p7e(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"g",9),x()),2&t){const e=n.$implicit,i=L();S("@animationState","active"),w(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function m7e(t,n){if(1&t){const e=_t();lt(),_(0,"g")(1,"g",13),ke("select",function(r){return ze(e),Ge(L(2).onClick(r))})("activate",function(r){return ze(e),Ge(L(2).onActivate(r))})("deactivate",function(r){return ze(e),Ge(L(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=L(2);w(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function g7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",10),ke("mouseleave",function(){return ze(e),Ge(L().hideCircles())}),_(1,"g",11),ke("hover",function(r){return ze(e),Ge(L().updateHoveredVertical(r))}),x(),te(2,m7e,2,9,"g",12),x()}if(2&t){const e=L();w(1),S("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),w(1),S("ngForOf",e.results)}}function v7e(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"g",15),x()),2&t){const e=n.$implicit,i=L(2);w(1),S("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function y7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",14),ke("onDomainChange",function(r){return ze(e),Ge(L().updateDomain(r))}),te(1,v7e,2,8,"g",4),x()}if(2&t){const e=L();S("results",e.results)("view",Rr(10,Ao,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ft("transform",e.timelineTransform),w(1),S("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const _7e=["ngx-charts-line-series",""];function b7e(t,n){if(1&t&&(lt(),xe(0,"g",4)),2&t){const e=L();S("name",e.gradientId)("stops",e.gradientStops)}}function x7e(t,n){if(1&t&&(lt(),xe(0,"g",5)),2&t){const e=L();Vn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),S("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let vq=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function g9e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new l4e(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Bz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(xt(jh),xt(zg),xt(Ca))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function v9e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function y9e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:v9e(o.value,t,n)}),this[r]}}}}var qs=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(qs||(qs={})),qs))();const Qf=7;function yq(t,n,e){return"top"===e?t.top-Qf:"bottom"===e?t.top+t.height-n.height+Qf:"center"===e?t.top+t.height/2-n.height/2:void 0}function _q(t,n,e){return"left"===e?t.left-Qf:"right"===e?t.left+t.width-n.width+Qf:"center"===e?t.left+t.width/2-n.width/2:void 0}class Tc{static calculateVerticalAlignment(n,e,i){let r=yq(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Qf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Qf),"center"===r&&(o=e.height/2-i.height/2);const s=yq(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=_q(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Qf),"right"===r&&(o=e.width-n.width/2-i.width/2-Qf),"center"===r&&(o=e.width/2-i.width/2);const s=_q(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===qs.right?(a=-7,s=Tc.calculateVerticalCaret(i,e,r,o)):n===qs.left?(a=e.width,s=Tc.calculateVerticalCaret(i,e,r,o)):n===qs.top?(s=e.height,a=Tc.calculateHorizontalCaret(i,e,r,o)):n===qs.bottom&&(s=-7,a=Tc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===qs.right?(a=i.left+i.width+r,s=Tc.calculateVerticalAlignment(i,e,o)):n===qs.left?(a=i.left-e.width-r,s=Tc.calculateVerticalAlignment(i,e,o)):n===qs.top?(s=i.top-e.height-r,a=Tc.calculateHorizontalAlignment(i,e,o)):n===qs.bottom&&(s=i.top+i.height+r,a=Tc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(Tc.shouldFlip(i,e,n,r)){if(n===qs.right)return qs.left;if(n===qs.left)return qs.right;if(n===qs.top)return qs.bottom;if(n===qs.bottom)return qs.top}return n}}let _9e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=Tc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=Tc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=Tc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&wo(Y6e,5),2&e){let r;Tn(r=En())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ke("resize",function(){return i.onWindowResize()},0,m8),2&e&&Au(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(_(0,"div"),xe(1,"span",0,1),_(3,"div",2),te(4,K6e,2,4,"span",3),te(5,Q6e,1,1,"span",4),x()()),2&e&&(w(1),function U6(t,n,e){Ou(pc,Rd,Qg(Xt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),S("hidden",!i.showCaret),w(3),S("ngIf",!i.title),w(1),S("ngIf",i.title))},dependencies:[xn,Fu],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function $z(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o}([y9e(100)],t.prototype,"onWindowResize",null),t})();class b9e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let PI=(()=>{class t extends b9e{constructor(e){super(e),this.type=_9e}}return t.\u0275fac=function(e){return new(e||t)(xt(vq))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),rs=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new ot,this.legendLabelActivate=new ot,this.legendLabelDeactivate=new ot}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[oo([PI]),ei],ngContentSelectors:hq,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Df(),_(0,"div",0),lt(),_(1,"svg",1),Tf(2),x(),te(3,Z6e,1,5,"ngx-charts-scale-legend",2),te(4,eBe,1,7,"ngx-charts-legend",3),x()),2&e&&(cr("width",i.view[0],"px"),S("@animationState","active")("@.disabled",!i.animations),w(1),ft("width",i.chartWidth)("height",i.view[1]),w(2),S("ngIf",i.showLegend&&"scaleLegend"===i.legendType),w(1),S("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[xn,Oq,Nq]},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({opacity:0}),Ra("500ms 100ms",Or({opacity:1}))])])]},changeDetection:0}),t})(),x9e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new ot,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur))},t.\u0275dir=un({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),os=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new ot}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new x9e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new N4e(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[ei],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"div")},encapsulation:2}),t})(),RI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[ei],attrs:tBe,decls:2,vars:6,template:function(e,i){1&e&&(lt(),_(0,"text"),O(1),x()),2&e&&(ft("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),w(1),bn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Zf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function bq(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new ot,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=bq(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Zf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&wo(fq,5),2&e){let r;Tn(r=En())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:nBe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(lt(),_(0,"g",null,0),te(2,iBe,5,7,"g",1),x(),te(3,oBe,2,2,"g",2)),2&e&&(w(2),S("ngForOf",i.ticks),w(1),S("ngForOf",i.ticks))},dependencies:[Un,xn],encapsulation:2,changeDetection:0}),t})(),Zl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new ot,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&wo(xq,5),2&e){let r;Tn(r=En())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:sBe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(lt(),_(0,"g"),te(1,aBe,1,12,"g",0),te(2,lBe,1,5,"g",1),x()),2&e&&(ft("class",i.xAxisClassName)("transform",i.transform),w(1),S("ngIf",i.xScale),w(1),S("ngIf",i.showLabel))},dependencies:[xn,RI,xq],encapsulation:2,changeDetection:0}),t})();let wq=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new ot,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function nf(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=bq(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Zf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&wo(fq,5),2&e){let r;Tn(r=En())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:cBe,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(lt(),_(0,"g",null,0),te(2,uBe,5,9,"g",1),x(),te(3,dBe,1,2,"path",2),te(4,mBe,2,2,"g",3),te(5,yBe,2,1,"g",3)),2&e&&(w(2),S("ngForOf",i.ticks),w(1),S("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),w(1),S("ngForOf",i.ticks),w(1),S("ngForOf",i.referenceLines))},dependencies:[Un,xn],encapsulation:2,changeDetection:0}),t})(),El=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new ot,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&wo(wq,5),2&e){let r;Tn(r=En())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:_Be,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(lt(),_(0,"g"),te(1,bBe,1,14,"g",0),te(2,xBe,1,5,"g",1),x()),2&e&&(ft("class",i.yAxisClassName)("transform",i.transform),w(1),S("ngIf",i.yScale),w(1),S("ngIf",i.showLabel))},dependencies:[xn,RI,wq],encapsulation:2,changeDetection:0}),t})(),Cq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[If]}),t})();var G2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(G2||(G2={})),G2))(),W2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(W2||(W2={})),W2))(),ep=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(ep||(ep={})),ep))();let Gu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=qs.top,this.tooltipAlignment=W2.center,this.tooltipType=G2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ep.all,this.tooltipImmediateExit=!1,this.show=new ot,this.hide=new ot}get listensForFocus(){return this.tooltipShowEvent===ep.all||this.tooltipShowEvent===ep.focus}get listensForHover(){return this.tooltipShowEvent===ep.all||this.tooltipShowEvent===ep.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(ge(PI),ge(Yl),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&ke("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),Sq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[vq,PI],imports:[If]}),t})();function za(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function ga(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const kq={};function Al(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,kq[t]?Al():(kq[t]=!0,t)}let $I,E_=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new ot,this.activate=new ot,this.deactivate=new ot,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=za(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${ga(r)} \u2022 ${ga(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:wBe,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&te(0,kBe,5,20,"g",0),2&e&&S("ngIf",i.circle)},dependencies:function(){return[xn,Gu,q2,jm]},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({opacity:0}),Ra(250,Or({opacity:1}))])])]},changeDetection:0}),t})(),q2=(()=>{class t{constructor(){this.select=new ot,this.activate=new ot,this.deactivate=new ot}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&ke("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:DBe,decls:1,vars:8,template:function(e,i){1&e&&(lt(),xe(0,"circle")),2&e&&ft("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),jm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[ei],attrs:MBe,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(lt(),_(0,"linearGradient",0),te(1,OBe,1,5,"stop",1),x()),2&e&&(S("id",i.name),ft("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),w(1),S("ngForOf",i.stops))},dependencies:[Un],encapsulation:2,changeDetection:0}),t})(),BI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new ot,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=Sa(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[ei],attrs:FBe,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(te(0,PBe,2,2,"defs",0),lt(),xe(1,"path",1)),2&e&&(S("ngIf",i.gradient),w(1),cr("opacity",i.opacity),ft("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[xn,jm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?$I=window:typeof global<"u"&&($I=global);const Mq=$I.MouseEvent;function VI(t,n=!1,e=!0){if("function"==typeof Mq)return new Mq(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let A_=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new ot}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=VI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=VI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=VI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&wo(jBe,5),2&e){let r;Tn(r=En())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:LBe,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","'auto'",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(lt(),_(0,"g")(1,"rect",0),ke("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),te(2,$Be,2,1,"ng-template",null,1,Xo),xe(4,"rect",2,3),x()),2&e){const r=sa(3);w(1),ft("x",0)("width",i.dims.width)("height",i.dims.height),w(3),cr("opacity",i.anchorOpacity)("pointer-events","none"),S("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ft("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[Un,Gu],encapsulation:2,data:{animation:[ul("animationState",[ja("inactive => active",[Or({opacity:0}),Ra(250,Or({opacity:.7}))]),ja("active => inactive",[Or({opacity:.7}),Ra(250,Or({opacity:0}))])])]},changeDetection:0}),t})(),M_=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new ot,this.onDomainChange=new ot,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Al().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=Im().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=Co().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=Nm().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function QLe(){return rI(O2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Ur.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),Sa(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),Sa(this.element).select(".brush").call(this.brush),Sa(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[ei],attrs:VBe,ngContentSelectors:hq,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Df(),lt(),_(0,"g",0)(1,"filter"),xe(2,"feColorMatrix",1),x(),_(3,"g",2),Tf(4),x(),xe(5,"rect",3)(6,"g",4),x()),2&e&&(ft("transform",i.transform),w(1),ft("id",i.filterId),w(4),ft("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Oq=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new ot,this.labelActivate=new ot,this.labelDeactivate=new ot,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=za(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[ei],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(_(0,"div"),te(1,HBe,3,1,"header",0),_(2,"div",1)(3,"ul",2),te(4,UBe,2,4,"li",3),x()()()),2&e&&(cr("width",i.width,"px"),w(1),S("ngIf",(null==i.title?null:i.title.length)>0),w(2),cr("max-height",i.height-45,"px"),Vn("horizontal-legend",i.horizontal),w(1),S("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[Un,xn,Iq]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class t{constructor(){this.isActive=!1,this.select=new ot,this.activate=new ot,this.deactivate=new ot,this.toggle=new ot}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&ke("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(_(0,"span",0),ke("click",function(){return i.select.emit(i.formattedLabel)}),_(1,"span",1),ke("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),_(2,"span",2),O(3),x()()),2&e&&(Vn("active",i.isActive),S("title",i.formattedLabel),w(1),cr("background-color",i.color),w(2),bn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Nq=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(ge(wM))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[ei],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(_(0,"div",0)(1,"div",1)(2,"span"),O(3),x()(),xe(4,"div",2),_(5,"div",1)(6,"span"),O(7),x()()()),2&e&&(cr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Vn("horizontal-legend",i.horizontal),w(3),wt(i.valueRange[1].toLocaleString()),w(1),cr("background",i.gradient),w(3),wt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[If,Cq,Sq,If,Cq,Sq]}),t})();let Pq=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class ys{constructor(n,e,i,r){"string"==typeof n&&(n=Pq.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=Pq.find(o=>o.name===n)),"quantile"===e)r=XW().range(n.domain).domain(i);else if("ordinal"===e)r=TI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=WW(0,1,1/o.length);r=Co().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Co().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=Co().domain(this.domain).range([0,1]),r=Ua().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let w9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),jq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),S9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),T9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),$q=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new ot,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=Sa(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[ei],attrs:d7e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(lt(),xe(0,"path",0)),2&e&&(S("@animationState","active"),ft("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({strokeDasharray:2e3,strokeDashoffset:2e3}),Ra(1e3,Or({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),E9e=(()=>{class t extends os{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=Fm,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new ot,this.deactivate=new ot,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function vs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Al().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function X2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function tp(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=Im().range([0,i]).domain(e):"linear"===this.scaleType?(r=Co().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=Nm().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=Co().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new ys(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Ws,5),Ti(r,z2,5)),2&e){let o;Tn(o=En())&&(i.tooltipTemplate=o.first),Tn(o=En())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&ke("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[wi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(_(0,"ngx-charts-chart",0),ke("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),lt(),_(1,"defs")(2,"clipPath"),xe(3,"rect"),x()(),_(4,"g",1),te(5,h7e,1,10,"g",2),te(6,f7e,1,12,"g",3),_(7,"g"),te(8,p7e,2,11,"g",4),te(9,g7e,3,9,"g",5),x()(),te(10,y7e,2,13,"g",6),x()),2&e&&(S("view",Rr(17,Ao,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),w(2),ft("id",i.clipPathId),w(1),ft("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),w(1),ft("transform",i.transform),w(1),S("ngIf",i.xAxis),w(1),S("ngIf",i.yAxis),w(1),ft("clip-path",i.clipPath),w(1),S("ngForOf",i.results)("ngForTrackBy",i.trackBy),w(1),S("ngIf",!i.tooltipDisabled),w(1),S("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[Un,xn,Zl,El,A_,rs,E_,M_,A9e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[ul("animationState",[ja(":leave",[Or({opacity:1}),Ra(500,Or({opacity:0}))])])]},changeDetection:0}),t})(),A9e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return B2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return qv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return qv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function HI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function zI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function UI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Al().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[ei],attrs:_7e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(lt(),_(0,"g")(1,"defs"),te(2,b7e,1,2,"g",0),x(),xe(3,"g",1)(4,"g",2),te(5,x7e,1,9,"g",3),x()),2&e&&(w(2),S("ngIf",i.hasGradient),w(1),Vn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),w(1),Vn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),w(1),S("ngIf",i.hasRange))},dependencies:[xn,BI,jm,$q],encapsulation:2,changeDetection:0}),t})(),Vq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})();Math;let YI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),F9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,YI,Vq]}),t})(),L9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),V9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),z9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,YI,jq]}),t})(),W9e=(()=>{class t{constructor(){!function G9e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,w9e,jq,S9e,T9e,Vq,F9e,L9e,YI,V9e,z9e]}),t})();function q9e(t,n){if(1&t&&(_(0,"ngb-alert",19),xe(1,"img",20),_(2,"h6",21),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Y9e(t,n){1&t&&xe(0,"img",31)}function X9e(t,n){1&t&&xe(0,"img",32)}function J9e(t,n){1&t&&xe(0,"img",33)}function K9e(t,n){1&t&&xe(0,"img",34)}function Q9e(t,n){if(1&t&&(_(0,"tr",24)(1,"td"),Cl(2,25),te(3,Y9e,1,0,"img",26),te(4,X9e,1,0,"img",27),te(5,J9e,1,0,"img",28),te(6,K9e,1,0,"img",29),Sl(),_(7,"span"),O(8),x()(),_(9,"td"),O(10),_(11,"span",30),O(12),x()(),_(13,"td"),O(14),_(15,"span",30),O(16),x()(),_(17,"td"),O(18),_(19,"span",30),O(20),x()(),_(21,"td"),O(22),_(23,"span",30),O(24),x()()()),2&t){const e=n.$implicit,i=L(2);w(2),S("ngSwitch",e.health),w(1),S("ngSwitchCase",0),w(1),S("ngSwitchCase",1),w(1),S("ngSwitchCase",2),w(1),S("ngSwitchCase",3),w(2),wt(e.name),w(2),bn("",e.session_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxSessionCount()-e.session_count," delta)"),w(2),bn("",e.presence_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),w(2),bn("",e.match_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxMatchCount()-e.match_count," delta)"),w(2),bn("",e.goroutine_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function Z9e(t,n){if(1&t&&(_(0,"tbody"),te(1,Q9e,25,18,"tr",22),_(2,"tr",3),xe(3,"td",23),_(4,"th",3),O(5),x(),_(6,"th",3),O(7),x(),_(8,"th",3),O(9),x(),_(10,"th",3),O(11),x()()()),2&t){const e=L();w(1),S("ngForOf",e.statusData.nodes),w(4),wt(e.getTotalSessionCount()),w(2),wt(e.getMaxPresenceCount()),w(2),wt(e.getTotalMatchCount()),w(2),wt(e.getTotalGorountineCount())}}function eVe(t,n){if(1&t&&(_(0,"option",35),O(1),x()),2&t){const e=n.$implicit,i=L();Ph("value",e),w(1),wt(i.ranges[e])}}const Q2=function(t){return{"background-color":t}};function tVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function nVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,tVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function iVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",37),te(2,nVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function rVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function oVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,rVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function sVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",43),te(2,oVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function aVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function lVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,aVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function cVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",44),te(2,lVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function uVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function dVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,uVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function hVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",45),te(2,dVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let fVe=(()=>{class t{route;consoleService;formBuilder;error="";showDelta=!1;statusData;rateGraphData=[];latencyGraphData=[];inputGraphData=[];outputGraphData=[];rangeForm;ranges={1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"};rangesKeys=Object.keys(this.ranges).map(e=>+e);colorScheme={domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]};samples=60;refreshTimer;$refreshTimer;constructor(e,i,r){this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=Gy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=Gy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Status"),x(),te(2,q9e,4,2,"ngb-alert",1),_(3,"table",2),ke("mouseover",function(){return r.showDelta=!0})("mouseout",function(){return r.showDelta=!1}),_(4,"thead",3)(5,"tr")(6,"th",4),O(7,"Node name"),x(),_(8,"th",4),O(9,"Sessions"),x(),_(10,"th",4),O(11,"Presences"),x(),_(12,"th",4),O(13,"Authoritative Matches"),x(),_(14,"th",4),O(15,"Goroutines"),x()()(),te(16,Z9e,12,5,"tbody",5),x(),_(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),O(21,"View:"),x(),_(22,"div",9)(23,"select",10),ke("change",function(s){return r.setRange(s)}),te(24,eVe,2,2,"option",11),_A(25,"sortNumbers"),x()()()()(),_(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),O(30,"Processing Latency"),x(),_(31,"small"),O(32," (ms)"),x()()(),_(33,"div",13)(34,"div",14)(35,"h5",15),O(36,"Rate"),x(),_(37,"small"),O(38," (rpc/s)"),x()()()(),_(39,"div",12)(40,"div",16),te(41,iVe,4,12,"div",17),x(),_(42,"div",16),te(43,sVe,4,12,"div",17),x()(),_(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),O(48,"Input"),x(),_(49,"small"),O(50," (kb/s)"),x()()(),_(51,"div",13)(52,"div",14)(53,"h5",15),O(54,"Output"),x(),_(55,"small"),O(56," (kb/s)"),x()()()(),_(57,"div",12)(58,"div",16),te(59,cVe,4,12,"div",17),x(),_(60,"div",16),te(61,hVe,4,12,"div",17),x()()),2&i&&(w(2),S("ngIf",r.error),w(14),S("ngIf",r.statusData),w(1),S("formGroup",r.rangeForm),w(7),S("ngForOf",bA(25,8,r.rangesKeys)),w(17),S("ngIf",r.latencyGraphData.length>0),w(2),S("ngIf",r.rateGraphData.length>0),w(16),S("ngIf",r.inputGraphData.length>0),w(2),S("ngIf",r.outputGraphData.length>0))},dependencies:function(){return[Un,xn,f7,Fw,d7,yo,Hu,HPe,E9e,fa,HC,UC,kv,da,ha,Ts,zs,mVe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})}return t})(),pVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(it(r=>Hn(r.nodes.map(o=>o.name)))).pipe(Jl(r=>(e.data={...e.data,error:r},Hn([]))))}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mVe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=_l({name:"sortNumbers",type:t,pure:!1})}return t})();var gVe=ue(1870),XI=ue(4327);function vVe(t,n){if(1&t&&(_(0,"div",13)(1,"p")(2,"b"),O(3),x(),xe(4,"input",14),x()()),2&t){const e=L(2);w(3),wt(e.confirmDeleteForm.controls.numberValueControl.value.title),w(1),Ph("formControlName",e.confirmDeleteForm.controls.numberValueControl.value.id)}}const yVe=function(t){return{"is-invalid":t}};function _Ve(t,n){if(1&t&&xe(0,"input",15),2&t){const e=L(2);S("ngClass",Zi(1,yVe,e.f.delete.touched&&e.f.delete.invalid))}}function bVe(t,n){if(1&t&&(_(0,"div",9)(1,"form",10),te(2,vVe,5,2,"div",11),te(3,_Ve,1,3,"input",12),x()()),2&t){const e=L();w(1),S("formGroup",e.confirmDeleteForm),w(1),S("ngIf",e.confirmDeleteForm.controls.numberValueControl),w(1),S("ngIf",e.confirmDeleteForm.controls.delete)}}let xVe=(()=>{class t{confirmed=new ot;canceled=new ot;title="Delete Confirmation";message="Are you sure you want to delete this item?";confirmDeleteForm;closeModal(){this.canceled.emit()}cancel(){this.canceled.emit()}confirm(){(!this.confirmDeleteForm||this.confirmDeleteForm.valid)&&this.confirmed.emit()}get f(){return this.confirmDeleteForm.controls}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Vt({type:t,selectors:[["app-delete-confirm-dialog"]],inputs:{confirmDeleteForm:"confirmDeleteForm"},outputs:{confirmed:"confirmed",canceled:"canceled"},decls:14,vars:3,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","Close","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","d-flex flex-column justify-content-center",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"click"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],["class","mt-2",4,"ngIf"],["type","text","class","form-control","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",3,"ngClass",4,"ngIf"],[1,"mt-2"],["type","number","value","30","min","0",2,"width","80px",3,"formControlName"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"h4",1),O(2),x(),_(3,"button",2),ke("click",function(){return r.closeModal()}),_(4,"span",3),O(5,"\xd7"),x()()(),_(6,"div",4),O(7),te(8,bVe,4,3,"div",5),x(),_(9,"div",6)(10,"button",7),ke("click",function(){return r.cancel()}),O(11,"Cancel"),x(),_(12,"button",8),ke("click",function(){return r.confirm()}),O(13,"Delete"),x()()),2&i&&(w(2),wt(r.title),w(5),bn(" ",r.message," "),w(1),S("ngIf",r.confirmDeleteForm))},dependencies:[Of,xn,fa,Us,L3,da,ha,z3,Ts,zs]})}return t})(),Ml=(()=>{class t{modalService;required=!1;constructor(e){this.modalService=e}openDeleteConfirmModal(e,i=null,r="",o=""){const a=this.modalService.open(xVe,{backdrop:!1,centered:!0});i&&(a.componentInstance.confirmDeleteForm=i),r&&(a.componentInstance.title=r),o&&(a.componentInstance.message=o),a.componentInstance.confirmed.subscribe(()=>{e(i?.value),a.close()}),a.componentInstance.canceled.subscribe(()=>{a.close()})}static \u0275fac=function(i){return new(i||t)(xt(m2))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wVe=["fileSelector"];function CVe(t,n){if(1&t&&(_(0,"div",8),O(1),x()),2&t){const e=L(2);w(1),wt(e.dropZoneLabel)}}function SVe(t,n){if(1&t){const e=_t();_(0,"div")(1,"input",9),ke("click",function(r){return ze(e),Ge(L(2).openFileSelector(r))}),x()()}if(2&t){const e=L(2);w(1),Ph("value",e.browseBtnLabel),S("className",e.browseBtnClassName)}}function kVe(t,n){if(1&t&&(te(0,CVe,2,1,"div",6),te(1,SVe,2,2,"div",7)),2&t){const e=L();S("ngIf",e.dropZoneLabel),w(1),S("ngIf",e.showBrowseBtn)}}function DVe(t,n){}const TVe=function(t){return{openFileSelector:t}};class Z2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let Yq=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),Xq=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new ot,this.onFileOver=new ot,this.onFileLeave=new ot,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new Z2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=Gy(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new Z2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new Z2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(ge(ur),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Yq,5,fo),2&e){let o;Tn(o=En())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&wo(wVe,7),2&e){let r;Tn(r=En())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(_(0,"div",0),ke("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),_(1,"div",1)(2,"input",2,3),ke("change",function(o){return i.uploadFiles(o)}),x(),te(4,kVe,2,2,"ng-template",null,4,Xo),te(6,DVe,0,0,"ng-template",5),x()()),2&e){const r=sa(5);Vn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),S("className",i.dropZoneClassName),w(1),S("className",i.contentClassName),w(1),S("accept",i.accept)("multiple",i.multiple),ft("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),w(4),S("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",Zi(13,TVe,i.openFileSelector))}},dependencies:[xn,Fu],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),EVe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t,bootstrap:function(){return[Xq]}}),t.\u0275inj=Di({imports:[If]}),t})();function AVe(t,n){1&t&&(_(0,"ngb-alert",21),xe(1,"img",22),_(2,"h6",23),O(3,"Failed to retrieve configuration."),x()()),2&t&&S("dismissible",!1)}function MVe(t,n){if(1&t&&(_(0,"span",32),O(1),x()),2&t){const e=L(2).$implicit;S("id",e.name),w(1),wt(e.value)}}function OVe(t,n){1&t&&(_(0,"span",33),O(1,"(empty)"),x()),2&t&&S("id",L(2).$implicit.name)}function IVe(t,n){if(1&t&&(_(0,"div",34)(1,"b"),O(2),x(),_(3,"label",26)(4,"a",27),xe(5,"img",10),x()()()),2&t){const e=L(2).index,i=L();w(2),wt(i.flatConfig[e+1].name),w(1),S("for",i.flatConfig[e+1].name),w(1),em("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",i.flatConfig[e+1].name,"",B1)}}function NVe(t,n){if(1&t&&(_(0,"span",32),O(1),x()),2&t){const e=L(3).index,i=L();S("id",i.flatConfig[e+1].name),w(1),wt(i.flatConfig[e+1].value)}}function FVe(t,n){if(1&t&&(_(0,"span",33),O(1,"(empty)"),x()),2&t){const e=L(3).index;S("id",L().flatConfig[e+1].name)}}function PVe(t,n){if(1&t&&(_(0,"div",35),te(1,NVe,2,2,"span",28),te(2,FVe,2,1,"span",29),x()),2&t){const e=L(2).index,i=L();w(1),S("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),w(1),S("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function RVe(t,n){if(1&t&&(_(0,"div",25)(1,"div",7)(2,"b"),O(3),x(),_(4,"label",26)(5,"a",27),xe(6,"img",10),x()()(),_(7,"div",7),te(8,MVe,2,2,"span",28),te(9,OVe,2,1,"span",29),x(),te(10,IVe,6,3,"div",30),te(11,PVe,3,2,"div",31),x()),2&t){const e=L(),i=e.index,r=e.$implicit,o=L();Vn("border-top-0",i>0),w(3),wt(r.name),w(1),S("for",r.name),w(1),em("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",r.value.name,"",B1),w(3),S("ngIf",!o.isEmpty(r.value)),w(1),S("ngIf",o.isEmpty(r.value)),w(1),S("ngIf",i{class t{config;route;httpClient;modalService;consoleService;formBuilder;deleteConfirmService;configError="";uploadError="";deleteError="";jsonConfig;flatConfig;nakamaVersion;file;uploading=!1;uploadSuccess=!1;deleteSuccess=!1;deleting=!1;confirmDeleteForm;apiConfig;constructor(e,i,r,o,s,a,l){this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.deleteConfirmService=l,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",qr.compose([qr.required,qr.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,gVe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});XI.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteConfirmService.openDeleteConfirmModal(()=>{this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(eO(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})},this.confirmDeleteForm,"Delete All Data","Are you sure you want to delete all the database data?")}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(ge(XC),ge(Vr),ge(YC),ge(m2),ge(Ai),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:41,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height","16"],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){1&i&&(te(0,AVe,4,1,"ngb-alert",0),_(1,"h2",1),O(2,"Server Configuration"),x(),_(3,"div",2)(4,"h5")(5,"b"),O(6,"Server version:"),x(),O(7),x(),_(8,"button",3),ke("click",function(){return r.exportYaml()}),O(9,"Export Configuration"),x()(),_(10,"div",4),te(11,jVe,2,1,"ng-container",5),_(12,"div",6)(13,"div",7)(14,"b"),O(15,"runtime.env"),x(),_(16,"label",8)(17,"a",9),xe(18,"img",10),x()()(),_(19,"div",11),te(20,BVe,2,1,"div",12),te(21,$Ve,3,0,"div",12),x()()(),_(22,"h5",13),O(23,"Import storage data"),x(),_(24,"p"),O(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),te(26,VVe,6,2,"ngb-alert",0),te(27,HVe,4,1,"ngb-alert",14),_(28,"ngx-file-drop",15),ke("onFileDrop",function(s){return r.dropped(s)}),te(29,UVe,2,0,"ng-template",16),x(),_(30,"h5",13),O(31,"Delete all data"),x(),te(32,zVe,6,2,"ngb-alert",0),te(33,GVe,4,1,"ngb-alert",14),_(34,"div",17)(35,"div"),xe(36,"img",18),_(37,"small",19),O(38,"Warning - this operation is not reversible!"),x()(),_(39,"button",20),ke("click",function(){return r.deleteData()}),O(40,"Delete all"),x()()),2&i&&(S("ngIf",r.configError),w(7),bn(" ",r.nakamaVersion,""),w(4),S("ngForOf",r.flatConfig),w(9),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&r.jsonConfig.runtime.env.length>0),w(1),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&0===r.jsonConfig.runtime.env.length),w(5),S("ngIf",r.uploadError),w(1),S("ngIf",r.uploadSuccess),w(1),S("disabled",r.uploading),w(4),S("ngIf",r.deleteError),w(1),S("ngIf",r.deleteSuccess),w(6),S("disabled",r.deleting))},dependencies:[Xq,Yq,Un,xn,yo],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})}return t})(),qVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YVe(t,n){if(1&t&&(_(0,"ngb-alert",51),xe(1,"img",52),_(2,"h6",53),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function XVe(t,n){if(1&t&&(_(0,"ngb-alert",54),xe(1,"img",55),_(2,"h6",53),O(3),x()()),2&t){const e=L();S("dismissible",!0),w(3),wt(e.successMessage)}}function JVe(t,n){1&t&&(_(0,"tr")(1,"td",56),O(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(w(1),S("colSpan",5))}function KVe(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td"),O(2),x(),_(3,"td"),O(4),x(),_(5,"td")(6,"span",37),O(7,"Administrator"),x(),_(8,"span",37),O(9,"Developer"),x(),_(10,"span",37),O(11,"Maintainer"),x(),_(12,"span",37),O(13,"View Only"),x()(),_(14,"td"),O(15),x(),_(16,"td",57)(17,"div",35)(18,"button",58),ke("click",function(){const o=ze(e).$implicit;return Ge(L().resetUserMfa(o.username))}),O(19,"Reset MFA"),x(),_(20,"button",59),ke("click",function(){const o=ze(e).$implicit;return Ge(L().deleteUser(o.username))}),O(21,"Delete"),x()()()()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.username),w(2),wt(e.email),w(2),S("hidden",e.role!==i.adminRole),w(2),S("hidden",e.role!==i.developerRole),w(2),S("hidden",e.role!==i.maintainerRole),w(2),S("hidden",e.role!==i.readonlyRole),w(3),wt(e.mfa_enabled),w(3),S("disabled",!e.mfa_enabled)}}function QVe(t,n){if(1&t&&(_(0,"ngb-alert",51),xe(1,"img",52),_(2,"h6",53),O(3,"An error occurred:"),x(),_(4,"p",60),O(5),x()()),2&t){const e=L();S("dismissible",!1),w(5),wt(e.userCreateError)}}const JI=function(t){return{"is-invalid":t}};let ZVe=(()=>{class t{route;consoleService;formBuilder;deleteConfirmService;error="";userCreateError="";successMessage="";users=[];createUserForm;adminRole=ri.USER_ROLE_ADMIN;developerRole=ri.USER_ROLE_DEVELOPER;maintainerRole=ri.USER_ROLE_MAINTAINER;readonlyRole=ri.USER_ROLE_READONLY;constructor(e,i,r,o){this.route=e,this.consoleService=i,this.formBuilder=r,this.deleteConfirmService=o}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",qr.required],email:["",[qr.required,qr.email]],password:["",qr.compose([qr.required,qr.minLength(8)])],role:[+this.readonlyRole,qr.required],mfa:[!0,qr.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}resetUserMfa(e){this.error="",this.consoleService.resetUserMfa("",e).subscribe(()=>{this.error="",this.successMessage=`User ${e} Multi-factor authentication was reset successfully`,setTimeout(()=>{this.successMessage=""},5e3)},i=>{this.error=i})}deleteUser(e){this.error="",this.deleteConfirmService.openDeleteConfirmModal(()=>{this.consoleService.deleteUser("",e).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=ri.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=ri.USER_ROLE_ADMIN;break;case 2:e=ri.USER_ROLE_DEVELOPER;break;case 3:e=ri.USER_ROLE_MAINTAINER;break;case 4:e=ri.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value,mfa_required:this.f.mfa.value}).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e,mfa:!0}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["app-users"]],decls:133,vars:26,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type","dismissible"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","mfa","formControlName","mfa",1,"custom-control-input","mr-2","my-2"],["for","mfa",1,"form-check-label","custom-control-label"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"text-muted",3,"colSpan"],[2,"width","200px"],["type","button",1,"btn","btn-warning","btn-outline-dark",3,"disabled","click"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Management"),x(),te(2,YVe,4,2,"ngb-alert",1),te(3,XVe,4,2,"ngb-alert",2),_(4,"table",3)(5,"thead",4)(6,"tr")(7,"th",5),O(8,"Username"),x(),_(9,"th"),O(10,"Email"),x(),_(11,"th",6),O(12,"Role"),x(),_(13,"th"),O(14,"MFA Enabled"),x(),_(15,"th",7),O(16,"Action"),x()()(),_(17,"tbody"),te(18,JVe,3,1,"tr",8),te(19,KVe,22,8,"tr",9),x()(),_(20,"h5",10),O(21,"Add new user"),x(),_(22,"ngb-alert",11)(23,"h6",12),O(24,"User roles"),x(),_(25,"div",13)(26,"div",14)(27,"div",15),xe(28,"img",16),_(29,"h6",17),O(30,"Administrator"),x()(),_(31,"small"),O(32," Owners have complete control over the server, its users and resources. "),x()(),_(33,"div",14)(34,"div",15),xe(35,"img",18),_(36,"h6",17),O(37,"Developer"),x()(),_(38,"small"),O(39," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),_(40,"div",14)(41,"div",15),xe(42,"img",19),_(43,"h6",17),O(44,"Maintainer"),x()(),_(45,"small"),O(46," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),_(47,"div",14)(48,"div",15),xe(49,"img",20),_(50,"h6",17),O(51,"View Only"),x()(),_(52,"small"),O(53," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),te(54,QVe,6,2,"ngb-alert",1),_(55,"div",21)(56,"form",22),ke("ngSubmit",function(){return r.addUser()}),_(57,"div",23)(58,"div",24)(59,"div",25)(60,"label",26),O(61,"Email"),x()(),_(62,"div",27),xe(63,"input",28),_(64,"div",29),O(65,"Email is required"),x()()()(),_(66,"div",23)(67,"div",24)(68,"div",25)(69,"label",30),O(70,"Username"),x()(),_(71,"div",27),xe(72,"input",31),_(73,"div",29),O(74,"Username is required"),x()()()(),_(75,"div",23)(76,"div",24)(77,"div",25)(78,"label",32),O(79,"Password"),x()(),_(80,"div",27),xe(81,"input",33),_(82,"div",29),O(83,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),_(84,"div",23)(85,"div",24)(86,"div",25)(87,"label",34),O(88,"Role"),x()(),_(89,"div",27)(90,"div",35)(91,"button",36)(92,"span",37),O(93,"Administrator"),x(),_(94,"span",37),O(95,"Developer"),x(),_(96,"span",37),O(97,"Maintainer"),x(),_(98,"span",37),O(99,"View Only"),x()(),_(100,"div",38),xe(101,"button",39),_(102,"div",40)(103,"button",41),ke("click",function(){return r.f.role.setValue(+r.adminRole)}),O(104,"Administrator"),x(),_(105,"button",41),ke("click",function(){return r.f.role.setValue(+r.developerRole)}),O(106,"Developer"),x(),_(107,"button",41),ke("click",function(){return r.f.role.setValue(+r.maintainerRole)}),O(108,"Maintainer"),x(),_(109,"button",41),ke("click",function(){return r.f.role.setValue(+r.readonlyRole)}),O(110,"View Only"),x()()()(),_(111,"div",29),O(112,"Role is required"),x()()()(),_(113,"div",23)(114,"div",42)(115,"div",25)(116,"label",34),O(117,"Require Multi-factor Authentication"),x()(),_(118,"div",27)(119,"div",43),xe(120,"input",44)(121,"label",45),x()()()(),_(122,"div",46)(123,"div",42),xe(124,"div",25),_(125,"div",27)(126,"div",43),xe(127,"input",47),_(128,"label",48),O(129,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),_(130,"div",49)(131,"button",50),O(132,"Save"),x()()()()),2&i&&(w(2),S("ngIf",r.error),w(1),S("ngIf",r.successMessage),w(15),S("ngIf",0===r.users.length),w(1),S("ngForOf",r.users),w(3),S("type","secondary")("dismissible",!1),w(32),S("ngIf",r.userCreateError),w(2),S("formGroup",r.createUserForm),w(7),S("ngClass",Zi(20,JI,r.f.email.dirty&&r.f.email.errors)),w(1),S("hidden",r.f.email.disabled||r.f.email.valid||r.f.email.pristine),w(8),S("ngClass",Zi(22,JI,r.f.username.dirty&&r.f.username.errors)),w(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),w(8),S("ngClass",Zi(24,JI,r.f.password.dirty&&r.f.password.errors)),w(1),S("hidden",r.f.password.disabled||r.f.password.valid||r.f.password.pristine),w(10),S("hidden",r.f.role.value!==+r.adminRole),w(2),S("hidden",r.f.role.value!==+r.developerRole),w(2),S("hidden",r.f.role.value!==+r.maintainerRole),w(2),S("hidden",r.f.role.value!==+r.readonlyRole),w(13),S("hidden",r.f.role.disabled||r.f.role.valid||r.f.role.pristine),w(20),S("disabled",r.createUserForm.invalid))},dependencies:[Of,Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,OC,da,ha,qh,Ts,zs],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})}return t})(),eHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tHe(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Failed to retrieve runtime information: ",e.error,"")}}function nHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),wt(e.path),w(2),wt(e.mod_time)}}function iHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No Go modules were found."),x(),xe(3,"td"),x())}function rHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),wt(e.path),w(2),wt(e.mod_time)}}function oHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No Lua modules were found."),x(),xe(3,"td"),x())}function sHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),wt(e.path),w(2),wt(e.mod_time)}}function aHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No JavaScript modules were found."),x(),xe(3,"td"),x())}const KI=function(){return["/apiexplorer"]},QI=function(t){return{endpoint:t}};function lHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),wt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function cHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No Go RPC functions were found."),x()())}function uHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),wt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function dHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No Lua RPC functions were found."),x()())}function hHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),wt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function fHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No JavaScript RPC functions were found."),x()())}let pHe=(()=>{class t{route;consoleService;error="";runtimeInfo;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Runtime Modules"),x(),te(2,tHe,4,2,"ngb-alert",1),_(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),O(7,"Go Modules"),x(),_(8,"th",4),O(9,"Last Modified"),x()()(),_(10,"tbody"),te(11,nHe,5,2,"tr",5),te(12,iHe,4,0,"tr",6),x(),_(13,"thead",3)(14,"tr")(15,"th",7),O(16,"Lua Modules"),x()()(),_(17,"tbody"),te(18,rHe,5,2,"tr",5),te(19,oHe,4,0,"tr",6),x(),_(20,"thead",3)(21,"tr")(22,"th",7),O(23,"JavaScript Modules"),x()()(),_(24,"tbody"),te(25,sHe,5,2,"tr",5),te(26,aHe,4,0,"tr",6),x()(),_(27,"h4",8),O(28,"Registered RPC Functions"),x(),_(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),O(33,"Go RPC Functions"),x()()(),_(34,"tbody"),te(35,lHe,7,6,"tr",5),te(36,cHe,3,0,"tr",6),x(),_(37,"thead",3)(38,"tr")(39,"th",7),O(40,"Lua RPC Functions"),x()()(),_(41,"tbody"),te(42,uHe,7,6,"tr",5),te(43,dHe,3,0,"tr",6),x(),_(44,"thead",3)(45,"tr")(46,"th",7),O(47,"JavaScript RPC Functions"),x()()(),_(48,"tbody"),te(49,hHe,7,6,"tr",5),te(50,fHe,3,0,"tr",6),x()()),2&i&&(w(2),S("ngIf",r.error),w(9),S("ngForOf",r.runtimeInfo.go_modules),w(1),S("ngIf",0===r.runtimeInfo.go_modules.length),w(6),S("ngForOf",r.runtimeInfo.lua_modules),w(1),S("ngIf",0===r.runtimeInfo.lua_modules.length),w(6),S("ngForOf",r.runtimeInfo.js_modules),w(1),S("ngIf",0===r.runtimeInfo.js_modules.length),w(9),S("ngForOf",r.runtimeInfo.go_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.go_rpc_functions.length),w(6),S("ngForOf",r.runtimeInfo.lua_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.lua_rpc_functions.length),w(6),S("ngForOf",r.runtimeInfo.js_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.js_rpc_functions.length))},dependencies:[Ru,Un,xn,yo],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})}return t})(),mHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gHe(t,n){1&t&&(_(0,"span"),O(1,"Filter by collection"),x())}function vHe(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),wt(e.f.collection.value)}}function yHe(t,n){if(1&t){const e=_t();_(0,"button",34),ke("click",function(){const o=ze(e).$implicit;return Ge(L().f.collection.setValue(o))}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function _He(t,n){if(1&t&&(_(0,"ngb-alert",35),xe(1,"img",36),_(2,"h6",37),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying storage objects: ",e.error,"")}}function bHe(t,n){1&t&&(_(0,"th",38),O(1,"Remove"),x())}function xHe(t,n){1&t&&(_(0,"tr")(1,"td",39),O(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function wHe(t,n){if(1&t){const e=_t();_(0,"td",42)(1,"button",43),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteObject(r,s,a))}),O(2,"Delete"),x()()}}function CHe(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(2),x(),_(3,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(4),x(),_(5,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(6),x(),_(7,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(8),x(),te(9,wHe,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.collection),w(2),wt(e.key),w(2),wt(e.user_id),w(2),wt(e.update_time),w(1),S("ngIf",i.deleteAllowed())}}let SHe=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";collections=[];objects=[];objectCount=0;nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Storage Objects"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),te(12,gHe,2,0,"span",10),te(13,vHe,2,1,"span",10),x(),_(14,"div",11)(15,"button",12),ke("click",function(){return r.f.collection.reset()}),O(16,"\u2718 Deselect collection"),x(),xe(17,"div",13),te(18,yHe,2,1,"button",14),x()()(),xe(19,"input",15)(20,"input",16),_(21,"div",17)(22,"span",18),ke("click",function(){return r.f.user_id.setValue(r.systemUserId)}),xe(23,"img",19),x()(),_(24,"div",17)(25,"button",20),ke("click",function(){return r.search(0)}),O(26,"Search"),x()()()()(),_(27,"div",21)(28,"div",22)(29,"button",23),ke("click",function(){return r.search(0)}),xe(30,"img",24),x(),_(31,"button",23),ke("click",function(){return r.search(1)}),xe(32,"img",25),x()()()()(),te(33,_He,4,2,"ngb-alert",26),_(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),O(39,"Collection Name"),x(),_(40,"th"),O(41,"Key Name"),x(),_(42,"th",30),O(43,"User ID"),x(),_(44,"th",31),O(45,"Last Update"),x(),te(46,bHe,2,0,"th",32),x()(),_(47,"tbody"),te(48,xHe,3,0,"tr",10),te(49,CHe,10,5,"tr",33),x()()()),2&i&&(w(3),bn("",r.objectCount," objects found."),w(4),S("formGroup",r.searchForm),w(4),S("disabled",0===r.collections.length),w(1),S("ngIf",!r.f.collection.value||""===r.f.collection.value),w(1),S("ngIf",r.f.collection.value&&""!==r.f.collection.value),w(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),w(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),w(1),S("ngForOf",r.collections),w(7),S("disabled",r.disableSearch()),w(4),S("disabled",0===r.objects.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.objects.length),w(1),S("ngForOf",r.objects))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),kHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ZI,Jq,Kq,Qq,Zq,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,_Y,bY,xY,wY,CY,SY,kY,DY,TY,EY,AY,MY,OY,IY,NY,FY,PY,RY,jY,LY,BY,$Y,VY,HY,UY,zY,GY,WY,qY,YY,XY,JY,KY,QY,ZY,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,_X,bX,xX,wX,CX,SX,kX,DX,TX,EX,AX,MX,OX,IX,NX,FX,PX,RX,jX,LX,BX,$X,VX,HX,UX,zX,GX,WX,qX,YX,XX,JX,KX,QX,ZX,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,_J,bJ,xJ,wJ,CJ,SJ,kJ,DJ,TJ,EJ,AJ,MJ,OJ,IJ,NJ,FJ,PJ,RJ,jJ,LJ,BJ,$J,VJ,HJ,UJ,zJ,GJ,WJ,qJ,YJ,XJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,_K,bK,xK,wK,CK,SK,kK,DK,TK,EK,AK,MK,OK,IK,NK,FK,PK,RK,jK,LK,BK,$K,VK,HK,UK,zK,GK,WK,qK,YK,XK,JK,KK,QK,ZK,eQ,tQ,nQ,iQ,rQ,oQ,sQ,aQ,lQ,cQ,uQ,dQ,hQ,fQ,pQ,mQ,gQ,vQ,yQ,_Q,bQ,xQ,wQ,CQ,SQ,kQ,DQ,TQ,EQ,AQ,MQ,OQ,IQ,NQ,FQ,PQ,RQ,jQ,LQ,BQ,$Q,VQ,HQ,UQ,zQ,GQ,WQ,qQ,YQ,XQ,JQ,KQ,QQ,ZQ,eZ,tZ,nZ,iZ,rZ,oZ,sZ,aZ,THe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],EHe=["mainAxis","crossAxis","limiter"];function O_(t){var n="function"==typeof Map?new Map:void 0;return O_=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return eN(e,arguments,er(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),I_(r,e)},O_(t)}function eN(t,n,e){return(eN=fZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&I_(a,o.prototype),a}).apply(null,arguments)}function Pe(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function lZ(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function He(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=eS(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},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 o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function _n(){_n=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(X,oe,P){X[oe]=P.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(X,oe,P){return Object.defineProperty(X,oe,{value:P,enumerable:!0,configurable:!0,writable:!0}),X[oe]}try{l({},"")}catch{l=function(oe,P,W){return oe[P]=W}}function c(X,oe,P,W){var H=Object.create((oe&&oe.prototype instanceof h?oe:h).prototype),pe=new j(W||[]);return i(H,"_invoke",{value:D(X,P,pe)}),H}function u(X,oe,P){try{return{type:"normal",arg:X.call(oe,P)}}catch(W){return{type:"throw",arg:W}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(U([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function b(X){["next","throw","return"].forEach(function(oe){l(X,oe,function(P){return this._invoke(oe,P)})})}function C(X,oe){function P(J,H,pe,A){var N=u(X[J],X,H);if("throw"!==N.type){var F=N.arg,q=F.value;return q&&"object"==wn(q)&&e.call(q,"__await")?oe.resolve(q.__await).then(function(V){P("next",V,pe,A)},function(V){P("throw",V,pe,A)}):oe.resolve(q).then(function(V){F.value=V,pe(F)},function(V){return P("throw",V,pe,A)})}A(N.arg)}var W;i(this,"_invoke",{value:function(J,H){function pe(){return new oe(function(A,N){P(J,H,A,N)})}return W=W?W.then(pe,pe):pe()}})}function D(X,oe,P){var W="suspendedStart";return function(J,H){if("executing"===W)throw new Error("Generator is already running");if("completed"===W){if("throw"===J)throw H;return{value:void 0,done:!0}}for(P.method=J,P.arg=H;;){var pe=P.delegate;if(pe){var A=E(pe,P);if(A){if(A===d)continue;return A}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if("suspendedStart"===W)throw W="completed",P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);W="executing";var N=u(X,oe,P);if("normal"===N.type){if(W=P.done?"completed":"suspendedYield",N.arg===d)continue;return{value:N.arg,done:P.done}}"throw"===N.type&&(W="completed",P.method="throw",P.arg=N.arg)}}}function E(X,oe){var P=oe.method,W=X.iterator[P];if(void 0===W)return oe.delegate=null,"throw"===P&&X.iterator.return&&(oe.method="return",oe.arg=void 0,E(X,oe),"throw"===oe.method)||"return"!==P&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var J=u(W,X.iterator,oe.arg);if("throw"===J.type)return oe.method="throw",oe.arg=J.arg,oe.delegate=null,d;var H=J.arg;return H?H.done?(oe[X.resultName]=H.value,oe.next=X.nextLoc,"return"!==oe.method&&(oe.method="next",oe.arg=void 0),oe.delegate=null,d):H:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,d)}function B(X){var oe={tryLoc:X[0]};1 in X&&(oe.catchLoc=X[1]),2 in X&&(oe.finallyLoc=X[2],oe.afterLoc=X[3]),this.tryEntries.push(oe)}function z(X){var oe=X.completion||{};oe.type="normal",delete oe.arg,X.completion=oe}function j(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(B,this),this.reset(!0)}function U(X){if(X){var oe=X[o];if(oe)return oe.call(X);if("function"==typeof X.next)return X;if(!isNaN(X.length)){var P=-1,W=function J(){for(;++P=0;--W){var J=this.tryEntries[W],H=J.completion;if("root"===J.tryLoc)return P("end");if(J.tryLoc<=this.prev){var pe=e.call(J,"catchLoc"),A=e.call(J,"finallyLoc");if(pe&&A){if(this.prev=0;--P){var W=this.tryEntries[P];if(W.tryLoc<=this.prev&&e.call(W,"finallyLoc")&&this.prev=0;--oe){var P=this.tryEntries[oe];if(P.finallyLoc===X)return this.complete(P.completion,P.afterLoc),z(P),d}},catch:function(X){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var P=this.tryEntries[oe];if(P.tryLoc===X){var W=P.completion;if("throw"===W.type){var J=W.arg;z(P)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(X,oe,P){return this.delegate={iterator:U(X),resultName:oe,nextLoc:P},"next"===this.method&&(this.arg=void 0),d}},t}function cZ(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function or(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){cZ(o,i,r,s,a,"next",l)}function a(l){cZ(o,i,r,s,a,"throw",l)}s(void 0)})}}function Jn(t,n){return dZ(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||eS(t,n)||uZ()}function uZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dZ(t){if(Array.isArray(t))return t}function hZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function nt(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function er(t){return(er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function Oe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function pZ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function Xd(t,n){return new t(n)}var F_,nS=new Map,rN=0;function TZ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function FHe(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=iN(t),m=nS.get(p)||function PHe(t,n){var e={stylesheet:IHe(n),rules:{}};return nS.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),rN+=1,f}function P_(t){F_=t}function Xv(){if(!F_)throw new Error("Function called outside component initialization");return F_}function eu(t){Xv().$$.on_mount.push(t)}function qu(t){Xv().$$.on_destroy.push(t)}function EZ(){var t=Xv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=DZ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function AZ(t,n){return Xv().$$.context.set(t,n),n}function Aa(t){return Xv().$$.context.get(t)}function iS(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Jv=[],Xi=[],rS=[],oN=[],MZ=Promise.resolve(),sN=!1;function OZ(){sN||(sN=!0,MZ.then(IZ))}function tc(){return OZ(),MZ}function Lm(t){rS.push(t)}function Yu(t){oN.push(t)}var oS,aN=new Set,Kv=0;function IZ(){if(0===Kv){var t=F_;do{try{for(;Kvl.start&&(a=d(l,b),l=null,lN(t,a.b,"start"),z&&(u(),c=TZ(t,s,a.b,a.duration,0,D,o.css))),a&&(U>=a.end?(B(s=a.b,1-s),lN(t,a.b,"end"),l||(a.b?u():--a.group.r||po(a.group.c)),a=null):U>=a.start&&(s=a.a+a.d*D((U-a.start)/a.duration),B(s,1-s))),!(!a&&!l)},0===N_.size&&nN(wZ),new Promise(function(U){N_.add({c:p,f:U})}))}return{run:function(f){Ta(o)?(oS||(oS=Promise.resolve()).then(function(){oS=null}),oS).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var cN=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function BHe(t,n){t.d(1),n.delete(t.key)}function uN(t,n){fe(t,1,1,function(){n.delete(t.key)})}function lS(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var b=d(r,o,p),C=e(b),D=s.get(C);D?i&&D.p(b,n):(D=c(C,b)).c(),v.set(C,g[p]=D),C in m&&y.set(C,Math.abs(p-m[C]))}var E=new Set,B=new Set;function z(P){Q(P,1),P.m(a,u),s.set(P.key,P),u=P.first,f--}for(;h&&f;){var j=g[f-1],U=t[h-1],G=j.key,X=U.key;j===U?(u=j.first,h--,f--):v.has(X)?!s.has(G)||E.has(G)?z(j):B.has(X)?h--:y.get(G)>y.get(X)?(B.add(G),z(j)):(E.add(X),h--):(l(U,s),h--)}for(;h--;){var oe=t[h];v.has(oe.key)||l(oe,s)}for(;f;)z(g[f-1]);return g}function Bm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function cS(t){return"object"===wn(t)&&null!==t?t:{}}function Xu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function gt(t){t&&t.c()}function pt(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||Lm(function(){var a,l=t.$$.on_mount.map(yZ).filter(Ta);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,ui(l)):po(l),t.$$.on_mount=[]}),s.forEach(Lm)}function mt(t,n){var e=t.$$;null!==e.fragment&&(po(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ln(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=F_;P_(t);var c=t.$$={fragment:null,ctx:[],props:o,update:Bt,not_equal:r,bound:_Z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:_Z(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function $He(t,n){-1===t.$$.dirty[0]&&(Jv.push(t),OZ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function UHe(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function zHe(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?vZ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var WHe=cN.window;function qHe(t){_i(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function FZ(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=t[1].closeButton&&PZ(t),C=t[2];return C&&(s=Xd(C,{})),{c:function(){n=De("div"),e=De("div"),i=De("div"),b&&b.c(),r=rt(),o=De("div"),s&>(s.$$.fragment),R(o,"class",a=Mo(t[1].classContent)+" svelte-n7cvum"),R(o,"style",t[9]),Nt(o,"content",!t[0]),R(i,"class",l=Mo(t[1].classWindow)+" svelte-n7cvum"),R(i,"role","dialog"),R(i,"aria-modal","true"),R(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),R(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),R(i,"style",t[8]),Nt(i,"window",!t[0]),R(e,"class",h=Mo(t[1].classWindowWrap)+" svelte-n7cvum"),R(e,"style",t[7]),Nt(e,"wrap",!t[0]),R(n,"id",f=t[1].id),R(n,"class",p=Mo(t[1].classBg)+" svelte-n7cvum"),R(n,"style",t[6]),Nt(n,"bg",!t[0])},m:function(D,E){$e(D,n,E),me(n,e),me(e,i),b&&b.m(i,null),me(i,r),me(i,o),s&&pt(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[Rt(i,"introstart",function(){Ta(t[13])&&t[13].apply(this,arguments)}),Rt(i,"outrostart",function(){Ta(t[14])&&t[14].apply(this,arguments)}),Rt(i,"introend",function(){Ta(t[15])&&t[15].apply(this,arguments)}),Rt(i,"outroend",function(){Ta(t[16])&&t[16].apply(this,arguments)}),Rt(n,"mousedown",t[20]),Rt(n,"mouseup",t[21])],v=!0)},p:function(D,E){if((t=D)[1].closeButton?b?(b.p(t,E),2&E[0]&&Q(b,1)):((b=PZ(t)).c(),Q(b,1),b.m(i,r)):b&&(Ht(),fe(b,1,1,function(){b=null}),Ut()),C!==(C=t[2])){if(s){Ht();var B=s;fe(B.$$.fragment,1,0,function(){mt(B,1)}),Ut()}C?(gt((s=Xd(C,{})).$$.fragment),Q(s.$$.fragment,1),pt(s,o,null)):s=null}(!g||2&E[0]&&a!==(a=Mo(t[1].classContent)+" svelte-n7cvum"))&&R(o,"class",a),(!g||512&E[0])&&R(o,"style",t[9]),(!g||3&E[0])&&Nt(o,"content",!t[0]),(!g||2&E[0]&&l!==(l=Mo(t[1].classWindow)+" svelte-n7cvum"))&&R(i,"class",l),(!g||2&E[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&R(i,"aria-label",c),(!g||2&E[0]&&u!==(u=t[1].ariaLabelledBy||null))&&R(i,"aria-labelledby",u),(!g||256&E[0])&&R(i,"style",t[8]),(!g||3&E[0])&&Nt(i,"window",!t[0]),(!g||2&E[0]&&h!==(h=Mo(t[1].classWindowWrap)+" svelte-n7cvum"))&&R(e,"class",h),(!g||128&E[0])&&R(e,"style",t[7]),(!g||3&E[0])&&Nt(e,"wrap",!t[0]),(!g||2&E[0]&&f!==(f=t[1].id))&&R(n,"id",f),(!g||2&E[0]&&p!==(p=Mo(t[1].classBg)+" svelte-n7cvum"))&&R(n,"class",p),(!g||64&E[0])&&R(n,"style",t[6]),(!g||3&E[0])&&Nt(n,"bg",!t[0])},i:function(D){g||(Q(b),s&&Q(s.$$.fragment,D),Lm(function(){d||(d=aS(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),Lm(function(){m||(m=aS(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(D){fe(b),s&&fe(s.$$.fragment,D),d||(d=aS(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=aS(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(D){D&&Be(n),b&&b.d(),s&&mt(s),t[50](null),D&&d&&d.end(),t[51](null),t[52](null),D&&m&&m.end(),v=!1,po(y)}}}function PZ(t){var n,e,i,r,o,s=[XHe,YHe],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Dr()},m:function(c,u){a[e].m(c,u),$e(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Ht(),fe(a[d],1,1,function(){a[d]=null}),Ut(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){fe(i),o=!1},d:function(c){a[e].d(c),c&&Be(r)}}}function YHe(t){var n,e,i,r;return{c:function(){R(n=De("button"),"class",e=Mo(t[1].classCloseButton)+" svelte-n7cvum"),R(n,"aria-label","Close modal"),R(n,"style",t[10]),R(n,"type","button"),Nt(n,"close",!t[0])},m:function(o,s){$e(o,n,s),i||(r=Rt(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Mo(o[1].classCloseButton)+" svelte-n7cvum")&&R(n,"class",e),1024&s[0]&&R(n,"style",o[10]),3&s[0]&&Nt(n,"close",!o[0])},i:Bt,o:Bt,d:function(o){o&&Be(n),i=!1,r()}}}function XHe(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=Xd(r,o(t))),{c:function(){n&>(n.$$.fragment),e=Dr()},m:function(s,a){n&&pt(n,s,a),$e(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){Ht();var l=n;fe(l.$$.fragment,1,0,function(){mt(l,1)}),Ut()}r?(gt((n=Xd(r,o(s))).$$.fragment),Q(n.$$.fragment,1),pt(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&Q(n.$$.fragment,s),i=!0)},o:function(s){n&&fe(n.$$.fragment,s),i=!1},d:function(s){s&&Be(e),n&&mt(n,s)}}}function JHe(t){var n,e,i,r,o=t[2]&&FZ(t),s=t[49].default,a=Ms(s,t,t[48],null);return{c:function(){o&&o.c(),n=rt(),a&&a.c()},m:function(l,c){o&&o.m(l,c),$e(l,n,c),a&&a.m(l,c),e=!0,i||(r=Rt(WHe,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&Q(o,1)):((o=FZ(l)).c(),Q(o,1),o.m(n.parentNode,n)):o&&(Ht(),fe(o,1,1,function(){o=null}),Ut()),a&&a.p&&(!e||131072&c[1])&&Is(a,s,l,l[48],e?Os(s,l[48],c,null):Ns(l[48]),null)},i:function(l){e||(Q(o),Q(a,l),e=!0)},o:function(l){fe(o),fe(a,l),e=!1},d:function(l){o&&o.d(l),l&&Be(n),a&&a.d(l),i=!1,r()}}}function RZ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(nt(nt({},e),{},{props:nt(nt({},n),e.props)}))}}function KHe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,b=void 0===y?{}:y,C=n.$$scope,D=EZ(),B=n.isTabbable,z=void 0===B?function(Ye){return Ye.tabIndex>=0&&!Ye.hidden&&!Ye.disabled&&"none"!==Ye.style.display&&"hidden"!==Ye.type&&Boolean(Ye.offsetWidth||Ye.offsetHeight||Ye.getClientRects().length)}:B,j=n.show,U=void 0===j?null:j,G=n.id,X=void 0===G?null:G,oe=n.key,P=void 0===oe?"simple-modal":oe,W=n.ariaLabel,J=void 0===W?null:W,H=n.ariaLabelledBy,pe=void 0===H?null:H,A=n.closeButton,N=void 0===A||A,F=n.closeOnEsc,q=void 0===F||F,V=n.closeOnOuterClick,ce=void 0===V||V,ve=n.styleBg,je=void 0===ve?{}:ve,Te=n.styleWindowWrap,et=void 0===Te?{}:Te,We=n.styleWindow,st=void 0===We?{}:We,$=n.styleContent,ae=void 0===$?{}:$,le=n.styleCloseButton,Re=void 0===le?{}:le,Ze=n.classBg,Ve=void 0===Ze?null:Ze,Ct=n.classWindowWrap,Ot=void 0===Ct?null:Ct,yn=n.classWindow,Xn=void 0===yn?null:yn,on=n.classContent,Ri=void 0===on?null:on,hn=n.classCloseButton,vr=void 0===hn?null:hn,Er=n.unstyled,fr=void 0!==Er&&Er,wr=n.setContext,Si=void 0===wr?AZ:wr,Xr=n.transitionBg,Ro=void 0===Xr?GHe:Xr,Rn=n.transitionBgProps,kt=void 0===Rn?{duration:250}:Rn,pi=n.transitionWindow,Bi=void 0===pi?Ro:pi,Ar=n.transitionWindowProps,ko=void 0===Ar?kt:Ar,Qo=n.disableFocusTrap,vt=void 0!==Qo&&Qo,jn={id:X,ariaLabel:J,ariaLabelledBy:pe,closeButton:N,closeOnEsc:q,closeOnOuterClick:ce,styleBg:je,styleWindowWrap:et,styleWindow:st,styleContent:ae,styleCloseButton:Re,classBg:Ve,classWindowWrap:Ot,classWindow:Xn,classContent:Ri,classCloseButton:vr,transitionBg:Ro,transitionBgProps:kt,transitionWindow:Bi,transitionWindowProps:ko,disableFocusTrap:vt,isTabbable:z,unstyled:fr},di=nt({},jn),ki=null,Nr=function(Ye){return Ye?Object.keys(Ye).reduce(function(In,li){return"".concat(In,"; ").concat((vi=li,vi.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ye[li]);var vi},""):""},Jr=function(Ye){return!!(Ye&&Ye.constructor&&Ye.call&&Ye.apply)},co=function(){e(6,a=Nr(Object.assign({},{width:window.innerWidth,height:window.innerHeight},di.styleBg))),e(7,l=Nr(di.styleWindowWrap)),e(8,c=Nr(di.styleWindow)),e(9,u=Nr(di.styleContent)),e(10,d=Nr(di.styleCloseButton)),e(11,h=di.transitionBg),e(12,f=di.transitionWindow)},Ks=function(){},Cr=Ks,Qs=Ks,Za=Ks,el=Ks,$c=function(Ye){var li=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},vi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,ki=RZ(Ye,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,di=nt(nt({},jn),li)),co(),qe(),e(13,Cr=function(gi){vi.onOpen&&vi.onOpen(gi),D("open"),D("opening")}),e(14,Qs=function(gi){vi.onClose&&vi.onClose(gi),D("close"),D("closing")}),e(15,Za=function(gi){vi.onOpened&&vi.onOpened(gi),D("opened")}),e(16,el=function(gi){vi.onClosed&&vi.onClosed(gi),D("closed")})},Ee=function(){var Ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ki&&(e(14,Qs=Ye.onClose||Qs),e(16,el=Ye.onClosed||el),e(2,ki=null),Ke())},qe=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},Ke=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};Si(P,{open:$c,close:Ee});var dt=!1;return qu(function(){dt&&Ee()}),eu(function(){e(47,dt=!0)}),t.$$set=function(Ye){"isTabbable"in Ye&&e(22,z=Ye.isTabbable),"show"in Ye&&e(23,U=Ye.show),"id"in Ye&&e(24,X=Ye.id),"key"in Ye&&e(25,P=Ye.key),"ariaLabel"in Ye&&e(26,J=Ye.ariaLabel),"ariaLabelledBy"in Ye&&e(27,pe=Ye.ariaLabelledBy),"closeButton"in Ye&&e(28,N=Ye.closeButton),"closeOnEsc"in Ye&&e(29,q=Ye.closeOnEsc),"closeOnOuterClick"in Ye&&e(30,ce=Ye.closeOnOuterClick),"styleBg"in Ye&&e(31,je=Ye.styleBg),"styleWindowWrap"in Ye&&e(32,et=Ye.styleWindowWrap),"styleWindow"in Ye&&e(33,st=Ye.styleWindow),"styleContent"in Ye&&e(34,ae=Ye.styleContent),"styleCloseButton"in Ye&&e(35,Re=Ye.styleCloseButton),"classBg"in Ye&&e(36,Ve=Ye.classBg),"classWindowWrap"in Ye&&e(37,Ot=Ye.classWindowWrap),"classWindow"in Ye&&e(38,Xn=Ye.classWindow),"classContent"in Ye&&e(39,Ri=Ye.classContent),"classCloseButton"in Ye&&e(40,vr=Ye.classCloseButton),"unstyled"in Ye&&e(0,fr=Ye.unstyled),"setContext"in Ye&&e(41,Si=Ye.setContext),"transitionBg"in Ye&&e(42,Ro=Ye.transitionBg),"transitionBgProps"in Ye&&e(43,kt=Ye.transitionBgProps),"transitionWindow"in Ye&&e(44,Bi=Ye.transitionWindow),"transitionWindowProps"in Ye&&e(45,ko=Ye.transitionWindowProps),"disableFocusTrap"in Ye&&e(46,vt=Ye.disableFocusTrap),"$$scope"in Ye&&e(48,C=Ye.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&dt&&(Jr(U)?$c(U):Ee())},[fr,di,ki,i,r,o,a,l,c,u,d,h,f,Cr,Qs,Za,el,Jr,Ee,function(Ye){if(di.closeOnEsc&&ki&&"Escape"===Ye.key&&(Ye.preventDefault(),Ee()),ki&&"Tab"===Ye.key&&!di.disableFocusTrap){var In=o.querySelectorAll("*"),li=Array.from(In).filter(di.isTabbable).sort(function(gi,Mr){return gi.tabIndex-Mr.tabIndex}),vi=li.indexOf(document.activeElement);-1===vi&&Ye.shiftKey&&(vi=0),vi+=li.length+(Ye.shiftKey?-1:1),li[vi%=li.length].focus(),Ye.preventDefault()}},function(Ye){!di.closeOnOuterClick||Ye.target!==i&&Ye.target!==r||(v=Ye.target)},function(Ye){di.closeOnOuterClick&&Ye.target===v&&(Ye.preventDefault(),Ee())},z,U,X,P,J,pe,N,q,ce,je,et,st,ae,Re,Ve,Ot,Xn,Ri,vr,Si,Ro,kt,Bi,ko,vt,dt,C,b,function(Ye){Xi[Ye?"unshift":"push"](function(){e(5,o=Ye)})},function(Ye){Xi[Ye?"unshift":"push"](function(){e(4,r=Ye)})},function(Ye){Xi[Ye?"unshift":"push"](function(){e(3,i=Ye)})}]}var Uo,so,Ju,Jd,Ku,tu,jZ=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,KHe,JHe,_s,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},qHe,[-1,-1,-1]),r}return Ie(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Uo||(Uo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(so||(so={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Ju||(Ju={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Jd||(Jd={})),function(t){t.key="key",t.value="value"}(Ku||(Ku={})),function(t){t.asc="asc",t.desc="desc"}(tu||(tu={}));var $m=[{start:0,end:100}],Vm={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},QHe=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),ZHe=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),LZ=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),dN="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",hN="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",eUe="NO",fN="SELF",pN="NEXT_INSIDE",tUe=(ec(ZI={},tu.asc,"ascending"),ec(ZI,tu.desc,"descending"),ZI),nUe=0;function R_(){return++nUe}function op(t){return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function ao(t){return Array.isArray(t)}function Oo(t){return null!==t&&"object"===op(t)&&t.constructor===Object}function BZ(t){return!(!t||"object"!==op(t))&&"add"===t.op}function $Z(t){return!(!t||"object"!==op(t))&&"remove"===t.op}function mN(t){return!(!t||"object"!==op(t))&&"replace"===t.op}function gN(t){return!(!t||"object"!==op(t))&&"copy"===t.op}function Qv(t){return!(!t||"object"!==op(t))&&"move"===t.op}function vN(t){return(vN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function iUe(t,n){return t===n}function VZ(t){return t.slice(0,t.length-1)}function HZ(t){return"object"===vN(t)&&null!==t}function j_(t){return(j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function UZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function rUe(t,n,e){return r=function(o,s){if("object"!==j_(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==j_(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===j_(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function yN(t){if(ao(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Oo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=Qu(t?t[r]:void 0,n.slice(1),e,i);if(Oo(t)||ao(t))return _N(t,r,o);if(i){var s=oUe.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var oUe=/^\d+$/;function zZ(t,n,e){if(0===n.length)return e(t);if(!HZ(t))throw new Error("Path doesn't exist");var i=n[0];return _N(t,i,zZ(t[i],n.slice(1),e))}function bN(t,n){if(0===n.length)return t;if(!HZ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=yN(t);return ao(i)&&i.splice(parseInt(e),1),Oo(i)&&delete i[e],i}return t}var r=n[0];return _N(t,r,bN(t[r],n.slice(1)))}function xN(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return zZ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=yN(o);return s.splice(parseInt(r),0,e),s})}function nu(t,n){return void 0!==t&&(0===n.length||null!==t&&nu(t[n[0]],n.slice(1)))}function Zu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function dn(t){return t.map(GZ).join("")}function GZ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function wN(t,n){return t+GZ(n)}function Zv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function ed(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:iUe;if(p.length=0?z=function(){var U="",G=!0;"-"==t[s]&&(U+=h()),U+="0"==t[s]?h():m(),"."==t[s]&&(U+=h()+m(),G=!1),"e"!=t[s]&&"E"!=t[s]||(U+=h(),"+"!=t[s]&&"-"!=t[s]||(U+=h()),U+=m(),G=!1);var X=+U;return a&&G&&(X>Number.MAX_SAFE_INTEGER||X="a"&&z<="f"?B+=z.charCodeAt()-mUe+10:z>="0"&&z<="9"?B+=+z:C()}return String.fromCharCode(B)}function m(){for(var E="";t[s]>="0"&&t[s]<="9";)E+=h();if(E.length)return E;D(),b()}function g(E,B){v(E,B,y())}function v(E,B,z){i[E]=i[E]||{},i[E][B]=z}function y(){return{line:r,column:o,pos:s}}function b(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function C(){f(),b()}function D(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},uS.stringify=function(t,n,e){if(dS(t)){var i,r,o=0,s="object"==wn(e)?e.space:e;switch(wn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var vUe=/"|\\/g,yUe=/[\b]/g,_Ue=/\f/g,bUe=/\n/g,xUe=/\r/g,wUe=/\t/g;function hS(t){return'"'+(t=t.replace(vUe,"\\$&").replace(_Ue,"\\f").replace(yUe,"\\b").replace(bUe,"\\n").replace(xUe,"\\r").replace(wUe,"\\t"))+'"'}var CUe=/~/g,SUe=/\//g;function kN(t){return t.replace(CUe,"~0").replace(SUe,"~1")}function DN(t){return(DN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function TN(t){var n="function"==typeof Map?new Map:void 0;return TN=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return EN(e,arguments,$_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),B_(r,e)},TN(t)}function EN(t,n,e){return(EN=QZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&B_(a,o.prototype),a}).apply(null,arguments)}function QZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B_(t,n){return(B_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function $_(t){return($_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var sp=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&B_(l,c)}(a,TN(Error));var n,e,i,s=(n=a,e=QZ(),function(){var l,c=$_(n);if(e){var u=$_(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function kUe(t,n){if(n&&("object"===DN(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function fS(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function pS(t){return t>=48&&t<=57}function DUe(t){return t>=32&&t<=1114111}var TUe=/^[,:[\]{}()\n]$/;function ZZ(t){return EUe.test(t)||t&&gS(t.charCodeAt(0))}var EUe=/^[[{\w-]$/;function AUe(t){return 10===t||13===t||9===t||8===t||12===t}function mS(t){return 32===t||10===t||9===t||13===t}function MUe(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function gS(t){return eee(t)||AN(t)}function eee(t){return 34===t||8220===t||8221===t}function AN(t){return 39===t||8216===t||8217===t||96===t||180===t}function V_(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function Hm(t,n){var e=t.length;if(!mS(t.charCodeAt(e-1)))return t+n;for(;mS(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function OUe(t,n,e){return t.substring(0,n)+t.substring(n+e)}var IUe={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},NUe={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Kd(t){var n=0,e="";r()||function(){throw new sp("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),ZZ(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=Hm(e,",")),function(){for(var b=!0,C=!0;C;)b?b=!1:l(44)||(e=Hm(e,",")),C=r();C||(e=V_(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=V_(e,",")),n>=t.length)return e;function r(){o();var b=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var C=!0;n=49&&D<=57)for(n++;pS(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(C);pS(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(C);pS(t.charCodeAt(n));)n++;return n>C&&(e+=t.slice(C,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),b}function o(){var b=n,C=s();do{(C=a())&&(C=s())}while(C);return n>b}function s(){for(var b,C="";(b=mS(t.charCodeAt(n)))||MUe(t.charCodeAt(n));)C+=b?t[n]:" ",n++;return C.length>0&&(e+=C,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nC){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;mS(t.charCodeAt(n-1))&&n>0;)n--;var D=t.slice(C,n);return e+=JSON.stringify(D),!0}}function f(b){if(!pS(t.charCodeAt(n))){var C=t.slice(b,n);throw new sp("Invalid number '".concat(C,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(b){throw new sp("Invalid character "+JSON.stringify(b),n)}function m(){throw new sp("Object key expected",n)}function g(){throw new sp("Object value expected",n)}function v(){throw new sp("Colon expected",n)}function y(b){for(var C=b+2;/\w/.test(t[C]);)C++;var D=t.slice(b,C);throw new sp('Invalid unicode character "'.concat(D,'"'),n)}!function(){throw new sp("Unexpected character "+JSON.stringify(t[n]),n)}()}function FUe(t,n){return"*"===t[n]&&"/"===t[n+1]}function Ys(t){return parseInt(t,10)}function MN(t){return PUe.test(t)}var PUe=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Io(t){return"object"===wn(t)&&null!==t&&t.constructor===Object}function zo(t){return"object"===wn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function ON(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return ON(Number(t));try{var n=t&&t.valueOf();if(n!==t)return ON(n)}catch{return!1}return!1}function tee(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function IN(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return wn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Io(t))return"object";var e=n.stringify(t);return e&&MN(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var RUe=/^https?:\/\/\S+$/;function vS(t){return"string"==typeof t&&RUe.test(t)}function e0(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&(MN(e)?n.parse(e):t)}var jUe=/^-?[0-9]+$/,iee="object"==(typeof global>"u"?"undefined":wn(global))&&global&&global.Object===Object&&global,LUe="object"==(typeof self>"u"?"undefined":wn(self))&&self&&self.Object===Object&&self,Oa=iee||LUe||Function("return this")(),hl=Oa.Symbol,ree=Object.prototype,BUe=ree.hasOwnProperty,$Ue=ree.toString,H_=hl?hl.toStringTag:void 0,VUe=Object.prototype.toString,oee=hl?hl.toStringTag:void 0;function Ol(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":oee&&oee in Object(t)?function(n){var e=BUe.call(n,H_),i=n[H_];try{n[H_]=void 0;var r=!0}catch{}var o=$Ue.call(n);return r&&(e?n[H_]=i:delete n[H_]),o}(t):VUe.call(t)}function as(t){return null!=t&&"object"==wn(t)}function nc(t){return"symbol"==wn(t)||as(t)&&"[object Symbol]"==Ol(t)}function see(t){return"number"==typeof t?t:nc(t)?NaN:+t}function Ko(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var wee=xee(gee),uze=/\{\n\/\* \[wrapped with (.+)\] \*/,dze=/,? & /,hze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function CS(t){return function(){return t}}var fze=function(){try{var t=zm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),SS=fze,pze=SS?function(t,n){return SS(t,"toString",{configurable:!0,enumerable:!1,value:CS(n),writable:!0})}:fl,PN=xee(pze);function ru(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var mze=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function See(t,n,e){var o,i=n+"";return PN(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(hze,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return ru(mze,function(s){var a="_."+s[0];o&s[1]&&!DS(r,a)&&r.push(a)}),r.sort()}((o=i.match(uze))?o[1].split(dze):[],e)))}function kee(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return FN(t)&&wee(h,d),h.placeholder=i,See(h,t,n)}function o0(t){return t.placeholder}var gze=/^(?:0|[1-9]\d*)$/;function lf(t,n){var e=wn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&gze.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Il(t){return null!=t&&W_(t.length)&&!Zd(t)}function Nl(t,n,e){if(!Go(e))return!1;var i=wn(n);return!!("number"==i?Il(e)&&lf(n,e.length):"string"==i&&n in e)&&ou(e[n],t)}function s0(t){return mr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&Nl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,Iee=Oee&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,Nee=Iee&&Iee.exports===Oee?Oa.Buffer:void 0,df=(Nee?Nee.isBuffer:void 0)||ES,Wo={};function Ic(t){return function(n){return t(n)}}Wo["[object Float32Array]"]=Wo["[object Float64Array]"]=Wo["[object Int8Array]"]=Wo["[object Int16Array]"]=Wo["[object Int32Array]"]=Wo["[object Uint8Array]"]=Wo["[object Uint8ClampedArray]"]=Wo["[object Uint16Array]"]=Wo["[object Uint32Array]"]=!0,Wo["[object Arguments]"]=Wo["[object Array]"]=Wo["[object ArrayBuffer]"]=Wo["[object Boolean]"]=Wo["[object DataView]"]=Wo["[object Date]"]=Wo["[object Error]"]=Wo["[object Function]"]=Wo["[object Map]"]=Wo["[object Number]"]=Wo["[object Object]"]=Wo["[object RegExp]"]=Wo["[object Set]"]=Wo["[object String]"]=Wo["[object WeakMap]"]=!1;var Fee="object"==(typeof exports>"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,Y_=Fee&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,LN=Y_&&Y_.exports===Fee&&iee.process,su=function(){try{return Y_&&Y_.require&&Y_.require("util").types||LN&&LN.binding&&LN.binding("util")}catch{}}(),Pee=su&&su.isTypedArray,Gm=Pee?Ic(Pee):function(t){return as(t)&&W_(t.length)&&!!Wo[Ol(t)]},kze=Object.prototype.hasOwnProperty;function Ree(t,n){var e=Ui(t),i=!e&&lp(t),r=!e&&!i&&df(t),o=!e&&!i&&!r&&Gm(t),s=e||i||r||o,a=s?jN(t.length,String):[],l=a.length;for(var c in t)!n&&!kze.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||lf(c,l))||a.push(c);return a}function jee(t,n){return function(e){return t(n(e))}}var Dze=jee(Object.keys,Object),Tze=Object.prototype.hasOwnProperty;function BN(t){if(!q_(t))return Dze(t);var n=[];for(var e in Object(t))Tze.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Xs(t){return Il(t)?Ree(t):BN(t)}var Eze=Object.prototype.hasOwnProperty,Aze=s0(function(t,n){if(q_(n)||Il(n))eh(n,Xs(n),t);else for(var e in n)Eze.call(n,e)&&G_(t,e,n[e])}),Lee=Aze,Mze=Object.prototype.hasOwnProperty;function Fl(t){return Il(t)?Ree(t,!0):function Oze(t){if(!Go(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=q_(t),e=[];for(var i in t)("constructor"!=i||!n&&Mze.call(t,i))&&e.push(i);return e}(t)}var Ize=s0(function(t,n){eh(n,Fl(n),t)}),AS=Ize,Nze=s0(function(t,n,e,i){eh(n,Fl(n),t,i)}),a0=Nze,Fze=s0(function(t,n,e,i){eh(n,Xs(n),t,i)}),Bee=Fze,Pze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rze=/^\w*$/;function $N(t,n){if(Ui(t))return!1;var e=wn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!nc(t))||Rze.test(t)||!Pze.test(t)||null!=n&&t in Object(n)}var X_=zm(Object,"create"),jze=Object.prototype.hasOwnProperty,Lze=Object.prototype.hasOwnProperty;function Wm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},hf.prototype.set=function(t,n){var e=this.__data__,i=MS(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var J_=zm(Oa,"Map");function OS(t,n){var i,r,e=t.__data__;return("string"==(r=wn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function ff(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?Ga(a,n-1,e,i,r):up(r,a):i||(r[r.length]=a)}return r}function HN(t){return null!=t&&t.length?Ga(t,1):[]}function pf(t){return PN(Eee(t,void 0,HN),t+"")}var Hee=pf(VN),NS=jee(Object.getPrototypeOf,Object),Uee=Function.prototype.toString,Wze=Object.prototype.hasOwnProperty,qze=Uee.call(Object);function c0(t){if(!as(t)||"[object Object]"!=Ol(t))return!1;var n=NS(t);if(null===n)return!0;var e=Wze.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Uee.call(e)==qze}function FS(t){if(!as(t))return!1;var n=Ol(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!c0(t)}var Yze=mr(function(t,n){try{return Oc(t,void 0,n)}catch(e){return FS(e)?e:new Error(e)}}),UN=Yze;function zN(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Qi(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var GN=mr(function(t,n,e){var i=1;if(e.length){var r=ap(e,o0(GN));i|=32}return cf(t,i,n,e,r)});GN.placeholder={};var WN=GN,Xze=pf(function(t,n){return ru(n,function(e){e=th(e),uf(t,e,WN(t[e],t))}),t}),zee=Xze,qN=mr(function(t,n,e){var i=3;if(e.length){var r=ap(e,o0(qN));i|=32}return cf(n,i,t,e,r)});qN.placeholder={};var Gee=qN;function au(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:au(t,n,e)}var Jze=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function u0(t){return Jze.test(t)}var YN="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",XN="\\ud83c[\\udffb-\\udfff]",Wee="[^\\ud800-\\udfff]",qee="(?:\\ud83c[\\udde6-\\uddff]){2}",Yee="[\\ud800-\\udbff][\\udc00-\\udfff]",Xee="(?:"+YN+"|"+XN+")?",Qze="[\\ufe0e\\ufe0f]?"+Xee+"(?:\\u200d(?:"+[Wee,qee,Yee].join("|")+")[\\ufe0e\\ufe0f]?"+Xee+")*",Zze="(?:"+[Wee+YN+"?",YN,qee,Yee,"[\\ud800-\\udfff]"].join("|")+")",eGe=RegExp(XN+"(?="+XN+")|"+Zze+Qze,"g");function nd(t){return u0(t)?function(n){return n.match(eGe)||[]}(t):function(n){return n.split("")}(t)}function Jee(t){return function(n){var e=u0(n=Zr(n))?nd(n):void 0,i=e?e[0]:n.charAt(0),r=e?dp(e,1).join(""):n.slice(1);return i[t]()+r}}var PS=Jee("toUpperCase");function JN(t){return PS(Zr(t).toLowerCase())}function KN(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function ute(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=Mc(e))==e?e:0),void 0!==n&&(n=(n=Mc(n))==n?n:0),Ym(Mc(t),n,e)}function id(t){var n=this.__data__=new hf(t);this.size=n.size}function dte(t,n){return t&&eh(n,Xs(n),t)}id.prototype.clear=function(){this.__data__=new hf,this.size=0},id.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},id.prototype.get=function(t){return this.__data__.get(t)},id.prototype.has=function(t){return this.__data__.has(t)},id.prototype.set=function(t,n){var e=this.__data__;if(e instanceof hf){var i=e.__data__;if(!J_||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new ff(i)}return e.set(t,n),this.size=e.size,this};var hte="object"==(typeof exports>"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,fte=hte&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,pte=fte&&fte.exports===hte?Oa.Buffer:void 0,mte=pte?pte.allocUnsafe:void 0;function gte(t,n){if(n)return t.slice();var e=t.length,i=mte?mte(e):new t.constructor(e);return t.copy(i),i}function hp(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Jm:void 0;for(o.set(t,n),o.set(n,t);++d=n||C<0||d&&b-c>=o}function g(){var C,D,b=Z_();if(m(b))return v(b);a=setTimeout(g,(D=n-((C=b)-l),d?RGe(D,o-(C-c)):D))}function v(b){return a=void 0,h&&i?f(b):(i=r=void 0,s)}function y(){var b=Z_(),C=m(b);if(i=arguments,r=this,l=b,C){if(void 0===a)return function p(b){return c=b,a=setTimeout(g,n),u?f(b):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=Mc(n)||0,Go(e)&&(u=!!e.leading,o=(d="maxWait"in e)?PGe(Mc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Z_())},y}function qte(t,n){return null==t||t!=t?n:t}var Yte=Object.prototype,jGe=Yte.hasOwnProperty,LGe=mr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&Nl(n[0],n[1],r)&&(i=1);++e=200&&(o=K_,s=!1,n=new Jm(n));e:for(;++r=0&&t.slice(e,r)==n}function hne(t){return function(n){var i,r,o,e=nh(n);return"[object Map]"==e?pF(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return Ko(r,function(o){return[o,i[o]]})}(n,t(n))}}var qS=hne(Xs),YS=hne(Fl),WGe=QN({"&":"&","<":"<",">":">",'"':""","'":"'"}),fne=/[&<>"']/g,qGe=RegExp(fne.source);function TF(t){return(t=Zr(t))&&qGe.test(t)?t.replace(fne,WGe):t}var pne=/[\\^$.*+?()[\]{}|]/g,YGe=RegExp(pne.source);function mne(t){return(t=Zr(t))&&YGe.test(t)?t.replace(pne,"\\$&"):t}function gne(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Qi(l))<0&&(l+=c),l=a>l?0:EF(l);a-1?r[o?n[s]:s]:void 0}}var JGe=Math.max;function AF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Qi(e);return r<0&&(r=JGe(i+r,0)),kS(t,zi(n),r)}var wne=xne(AF);function Cne(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function Sne(t,n){return Cne(t,zi(n),ih)}var KGe=Math.max,QGe=Math.min;function MF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Qi(e),r=e<0?KGe(i+r,0):QGe(r,i-1)),kS(t,zi(n),r,!0)}var kne=xne(MF);function Dne(t,n){return Cne(t,zi(n),DF)}function va(t){return t&&t.length?t[0]:void 0}function Tne(t,n){var e=-1,i=Il(t)?Array(t.length):[];return fp(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function m0(t,n){return(Ui(t)?Ko:Tne)(t,zi(n))}function Ene(t,n){return Ga(m0(t,n),1)}function Ane(t,n){return Ga(m0(t,n),1/0)}function Mne(t,n,e){return e=void 0===e?1:Qi(e),Ga(m0(t,n),e)}function One(t){return null!=t&&t.length?Ga(t,1/0):[]}function Ine(t,n){return null!=t&&t.length?Ga(t,n=void 0===n?1:Qi(n)):[]}function Nne(t){return cf(t,512)}var Fne=tF("floor");function Pne(t){return pf(function(n){var e=n.length,i=e,r=iu.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==wS(o))var s=new iu([],!0)}for(i=s?i:e;++in}function JS(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=Mc(n),e=Mc(e)),t(n,e)}}var Gne=JS(OF),Wne=JS(function(t,n){return t>=n}),tWe=Object.prototype.hasOwnProperty;function nWe(t,n){return null!=t&&tWe.call(t,n)}function qne(t,n){return null!=t&&jte(t,n,nWe)}var iWe=Math.max,rWe=Math.min;function Yne(t,n,e){return n=Qd(n),void 0===e?(e=n,n=0):e=Qd(e),(i=t=Mc(t))>=rWe(r=n,o=e)&&i-1:!!r&&r0(t,n,e)>-1}var sWe=Math.max;function Jne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Qi(e);return r<0&&(r=sWe(i+r,0)),r0(t,n,r)}function tr(t){return null!=t&&t.length?au(t,0,-1):[]}var aWe=Math.min;function NF(t,n,e){for(var i=e?kF:DS,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=Ko(u,Ic(n))),l=aWe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Jm(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function Cie(t){return void 0===t}function Sie(t){return as(t)&&"[object WeakMap]"==nh(t)}function kie(t){return as(t)&&"[object WeakSet]"==Ol(t)}function Die(t){return zi("function"==typeof t?t:lu(t,1))}var yWe=Array.prototype.join;function Tie(t,n){return null==t?"":yWe.call(t,n)}var _We=h0(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),Eie=_We,bWe=VS(function(t,n,e){uf(t,e,n)}),Aie=bWe,xWe=Math.max,wWe=Math.min;function Mie(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Qi(e))<0?xWe(i+r,0):wWe(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):kS(t,Cee,r,!0)}var CWe=h0(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Oie=CWe,Iie=Jee("toLowerCase");function jF(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function Yie(t,n){var e=t.length;if(e)return lf(n+=n<0?e:0,e)?t[n]:void 0}function Xie(t,n){return t&&t.length?Yie(t,Qi(n)):void 0}function Jie(t){return t=Qi(t),mr(function(n){return Yie(n,t)})}function zF(t,n){return null==(t=rie(t,n=cp(n,t)))||delete t[th(Bn(n))]}function TWe(t){return c0(t)?void 0:t}var EWe=pf(function(t,n){var e={};if(null==t)return e;var i=!1;n=Ko(n,function(o){return o=cp(o,t),i||(i=o.length>1),o}),eh(t,oF(t),e),i&&(e=lu(e,7,TWe));for(var r=n.length;r--;)zF(e,n[r]);return e}),Kie=EWe;function rb(t,n,e,i){if(!Go(t))return t;for(var r=-1,o=(n=cp(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(Tne(t,function(o,s,a){return{criteria:Ko(n,function(c){return c(o)}),index:++i,value:o}}))}function ire(t,n,e,i){return null==t?[]:(Ui(n)||(n=null==n?[]:[n]),Ui(e=i?void 0:e)||(e=null==e?[]:[e]),nre(t,n,e))}function WF(t){return pf(function(n){return n=Ko(n,Ic(zi)),mr(function(e){var i=this;return t(n,function(r){return Oc(r,i,e)})})})}var rre=WF(Ko),MWe=Math.min,OWe=mr(function(t,n){var e=(n=1==n.length&&Ui(n[0])?Ko(n[0],Ic(zi)):Ko(Ga(n,1),Ic(zi))).length;return mr(function(i){for(var r=-1,o=MWe(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=IWe(n/2))&&(t+=t)}while(n);return e}var NWe=yF("length"),YF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",XF="\\ud83c[\\udffb-\\udfff]",lre="[^\\ud800-\\udfff]",cre="(?:\\ud83c[\\udde6-\\uddff]){2}",ure="[\\ud800-\\udbff][\\udc00-\\udfff]",dre="(?:"+YF+"|"+XF+")?",PWe="[\\ufe0e\\ufe0f]?"+dre+"(?:\\u200d(?:"+[lre,cre,ure].join("|")+")[\\ufe0e\\ufe0f]?"+dre+")*",RWe="(?:"+[lre+YF+"?",YF,cre,ure,"[\\ud800-\\udfff]"].join("|")+")",hre=RegExp(XF+"(?="+XF+")|"+RWe+PWe,"g");function _0(t){return u0(t)?function(n){for(var e=hre.lastIndex=0;hre.test(n);)++e;return e}(t):NWe(t)}var jWe=Math.ceil;function ZS(t,n){var e=(n=void 0===n?" ":Ac(n)).length;if(e<2)return e?qF(n,t):n;var i=qF(n,jWe(t/_0(n)));return u0(n)?dp(nd(i),0,t).join(""):i.slice(0,t)}var LWe=Math.ceil,BWe=Math.floor;function fre(t,n,e){t=Zr(t);var i=(n=Qi(n))?_0(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return ZS(BWe(r),e)+t+ZS(LWe(r),e)}function pre(t,n,e){t=Zr(t);var i=(n=Qi(n))?_0(t):0;return n&&i-1;)a!==t&&bre.call(a,l,1),bre.call(t,l,1);return t}function nP(t,n){return t&&t.length&&n&&n.length?tP(t,n):t}var xre=mr(nP);function wre(t,n,e){return t&&t.length&&n&&n.length?tP(t,n,zi(e)):t}function Cre(t,n,e){return t&&t.length&&n&&n.length?tP(t,n,void 0,e):t}var GWe=Array.prototype.splice;function Sre(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;lf(r)?GWe.call(t,r,1):zF(t,r)}}return t}var WWe=pf(function(t,n){var e=null==t?0:t.length,i=VN(t,n);return Sre(t,Ko(n,function(r){return lf(r,e)?+r:r}).sort(tre)),i}),kre=WWe,qWe=Math.floor,YWe=Math.random;function iP(t,n){return t+qWe(YWe()*(n-t+1))}var XWe=parseFloat,JWe=Math.min,KWe=Math.random;function Dre(t,n,e){if(e&&"boolean"!=typeof e&&Nl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Qd(t),void 0===n?(n=t,t=0):n=Qd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=KWe();return JWe(t+r*(n-t+XWe("1e-"+((r+"").length-1))),n)}return iP(t,n)}var QWe=Math.ceil,ZWe=Math.max;function Tre(t){return function(n,e,i){return i&&"number"!=typeof i&&Nl(n,e,i)&&(e=i=void 0),n=Qd(n),void 0===e?(e=n,n=0):e=Qd(e),function(r,o,s,a){for(var l=-1,c=ZWe(QWe((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&Nl(t,n[0],n[1])?n=[]:e>2&&Nl(n[0],n[1],n[2])&&(n=[n[0]]),nre(t,Ga(n,1),[])}),oP=uqe,dqe=Math.floor,hqe=Math.min;function sP(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=nc(n),c=void 0===n;r>>1,s=t[o];null!==s&&!nc(s)&&(e?s<=n:s>>0)?(t=Zr(t))&&("string"==typeof n||null!=n&&!KS(n))&&!(n=Ac(n))&&u0(t)?dp(nd(t),0,e):t.split(n,e):[]}var fqe=Math.max;function soe(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:fqe(Qi(n),0),mr(function(e){var i=e[n],r=dp(e,0,n);return i&&up(r,i),Oc(t,this,r)})}var pqe=h0(function(t,n,e){return t+(e?" ":"")+PS(n)}),aoe=pqe;function loe(t,n,e){return t=Zr(t),e=null==e?0:Ym(Qi(e),0,t.length),n=Ac(n),t.slice(e,e+n.length)==n}function coe(){return{}}function uoe(){return""}function doe(){return!0}var hoe=yS(function(t,n){return t-n},0);function foe(t){return t&&t.length?BF(t,fl):0}function poe(t,n){return t&&t.length?BF(t,zi(n)):0}function moe(t){var n=null==t?0:t.length;return n?au(t,1,n):[]}function goe(t,n,e){return t&&t.length?au(t,0,(n=e||void 0===n?1:Qi(n))<0?0:n):[]}function voe(t,n,e){var i=null==t?0:t.length;return i?au(t,(n=i-(n=e||void 0===n?1:Qi(n)))<0?0:n,i):[]}function yoe(t,n){return t&&t.length?GS(t,zi(n),!1,!0):[]}function _oe(t,n){return t&&t.length?GS(t,zi(n)):[]}function boe(t,n){return n(t),t}var xoe=Object.prototype,mqe=xoe.hasOwnProperty;function woe(t,n,e,i){return void 0===t||ou(t,xoe[e])&&!mqe.call(i,e)?n:t}var gqe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function vqe(t){return"\\"+gqe[t]}var Coe=/<%=([\s\S]+?)%>/g,ik={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Coe,variable:"",imports:{_:{escape:TF}}},yqe=/\b__p \+= '';/g,_qe=/\b(__p \+=) '' \+/g,bqe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xqe=/[()=,{}\[\]\/\s]/,wqe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rk=/($^)/,Cqe=/['\n\r\u2028\u2029\\]/g,Soe=Object.prototype.hasOwnProperty;function koe(t,n,e){var i=ik.imports._.templateSettings||ik;e&&Nl(t,n,e)&&(n=void 0),t=Zr(t),n=a0({},n,i,woe);var r,o,s=a0({},n.imports,i.imports,woe),a=Xs(s),l=IF(s,a),c=0,u=n.interpolate||rk,d="__p += '",h=RegExp((n.escape||rk).source+"|"+u.source+"|"+(u===Coe?wqe:rk).source+"|"+(n.evaluate||rk).source+"|$","g"),f=Soe.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,b,C,D){return y||(y=b),d+=t.slice(c,D).replace(Cqe,vqe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),C&&(o=!0,d+="';\n"+C+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=D+g.length,g}),d+="';\n";var p=Soe.call(n,"variable")&&n.variable;if(p){if(xqe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(yqe,""):d).replace(_qe,"$1").replace(bqe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=UN(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,FS(m))throw m;return m}function aP(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Go(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),p0(t,n,{leading:i,maxWait:n,trailing:r})}function b0(t,n){return n(t)}var Sqe=Math.min;function lP(t,n){if((t=Qi(t))<1||t>9007199254740991)return[];var e=4294967295,i=Sqe(t,4294967295);t-=4294967295;for(var r=jN(i,n=rh(n));++e-1;);return e}function Noe(t,n){for(var e=-1,i=t.length;++e-1;);return e}function Foe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return dee(t);if(!t||!(n=Ac(n)))return t;var i=nd(t),r=nd(n);return dp(i,Noe(i,r),Ioe(i,r)+1).join("")}function Poe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return t.slice(0,uee(t)+1);if(!t||!(n=Ac(n)))return t;var i=nd(t);return dp(i,0,Ioe(i,nd(n))+1).join("")}var kqe=/^\s+/;function Roe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return t.replace(kqe,"");if(!t||!(n=Ac(n)))return t;var i=nd(t);return dp(i,Noe(i,nd(n))).join("")}var Dqe=/\w*$/;function joe(t,n){var e=30,i="...";if(Go(n)){var r="separator"in n?n.separator:r;e="length"in n?Qi(n.length):e,i="omission"in n?Ac(n.omission):i}var o=(t=Zr(t)).length;if(u0(t)){var s=nd(t);o=s.length}if(e>=o)return t;var a=e-_0(i);if(a<1)return i;var l=s?dp(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),KS(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Zr(Dqe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(Ac(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function Loe(t){return RN(t,1)}var Tqe=QN({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Boe=/&(?:amp|lt|gt|quot|#39);/g,Eqe=RegExp(Boe.source);function $oe(t){return(t=Zr(t))&&Eqe.test(t)?t.replace(Boe,Tqe):t}var Aqe=f0&&1/LS(new f0([,-0]))[1]==1/0?function(t){return new f0(t)}:bo,Mqe=Aqe;function pp(t,n,e){var i=-1,r=DS,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=kF;else if(o>=200){var c=n?null:Mqe(t);if(c)return LS(c);s=!1,r=K_,l=new Jm}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Ir&&lf(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:b0,args:[r],thisArg:void 0}),new iu(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),tse=Rqe;function nse(){return nF(this)}function ise(){var t=this.__wrapped__;if(t instanceof Ir){var n=t;return this.__actions__.length&&(n=new Ir(this)),(n=n.reverse()).__actions__.push({func:b0,args:[ek],thisArg:void 0}),new iu(n,this.__chain__)}return this.thru(ek)}function dP(t,n,e){var i=t.length;if(i<2)return i?pp(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,uP(t,e)}),dse=Lqe,Kn={chunk:cte,compact:Ate,concat:Mte,difference:tne,differenceBy:nne,differenceWith:ine,drop:one,dropRight:sne,dropRightWhile:ane,dropWhile:lne,fill:yne,findIndex:AF,findLastIndex:MF,first:va,flatten:HN,flattenDeep:One,flattenDepth:Ine,fromPairs:Hne,head:va,indexOf:Jne,initial:tr,intersection:Kne,intersectionBy:Qne,intersectionWith:Zne,join:Tie,last:Bn,lastIndexOf:Mie,nth:Xie,pull:xre,pullAll:nP,pullAllBy:wre,pullAllWith:Cre,pullAt:kre,remove:Fre,reverse:ek,slice:qre,sortedIndex:Jre,sortedIndexBy:Kre,sortedIndexOf:Qre,sortedLastIndex:Zre,sortedLastIndexBy:eoe,sortedLastIndexOf:toe,sortedUniq:ioe,sortedUniqBy:roe,tail:moe,take:goe,takeRight:voe,takeRightWhile:yoe,takeWhile:_oe,union:Voe,unionBy:Hoe,unionWith:Uoe,uniq:zoe,uniqBy:Goe,uniqWith:Woe,unzip:ok,unzipWith:uP,without:Zoe,xor:rse,xorBy:ose,xorWith:sse,zip:ase,zipObject:cse,zipObjectDeep:use,zipWith:dse},xo={countBy:Gte,each:WS,eachRight:tb,every:vne,filter:bne,find:wne,findLast:kne,flatMap:Ene,flatMapDeep:Ane,flatMapDepth:Mne,forEach:WS,forEachRight:tb,groupBy:g0,includes:Xne,invokeMap:sie,keyBy:Aie,map:m0,orderBy:ire,partition:ZF,reduce:Ore,reduceRight:Ire,reject:Nre,sample:Vre,sampleSize:Hre,shuffle:Gre,size:Wre,some:Xre,sortBy:oP},Bqe={now:Z_},xs={after:hee,ary:RN,before:zN,bind:WN,bindKey:Gee,curry:HS,curryRight:US,debounce:p0,defer:Zte,delay:ene,flip:Nne,memoize:l0,negate:y0,once:ere,overArgs:ore,partial:KF,partialRight:vre,rearg:Are,rest:jre,spread:soe,throttle:aP,unary:Loe,wrap:ese},bi={castArray:ate,clone:Dte,cloneDeep:Tte,cloneDeepWith:dF,cloneWith:Ete,conformsTo:Hte,eq:ou,gt:Gne,gte:Wne,isArguments:lp,isArray:Ui,isArrayBuffer:lie,isArrayLike:Il,isArrayLikeObject:bs,isBoolean:cie,isBuffer:df,isDate:die,isElement:hie,isEmpty:Ji,isEqual:dr,isEqualWith:fie,isError:FS,isFinite:pie,isFunction:Zd,isInteger:PF,isLength:W_,isMap:cF,isMatch:mie,isMatchWith:gie,isNaN:vie,isNative:yie,isNil:_ie,isNull:bie,isNumber:RF,isObject:Go,isObjectLike:as,isPlainObject:c0,isRegExp:KS,isSafeInteger:wie,isSet:uF,isString:nb,isSymbol:nc,isTypedArray:Gm,isUndefined:Cie,isWeakMap:Sie,isWeakSet:kie,lt:Nie,lte:Fie,toArray:HF,toFinite:Qd,toInteger:Qi,toLength:EF,toNumber:Mc,toPlainObject:CF,toSafeInteger:Aoe,toString:Zr},Pl={add:cee,ceil:lte,divide:rne,floor:Fne,max:Lie,maxBy:Bie,mean:Vie,meanBy:Hie,min:Wie,minBy:v0,multiply:qie,round:Bre,subtract:hoe,sum:foe,sumBy:poe},$qe=ute,Vqe=Yne,Hqe=Dre,Li={assign:Lee,assignIn:AS,assignInWith:a0,assignWith:Bee,at:Hee,create:Wte,defaults:Xte,defaultsDeep:Kte,entries:qS,entriesIn:YS,extend:AS,extendWith:a0,findKey:Sne,findLastKey:Dne,forIn:Lne,forInRight:Bne,forOwn:$ne,forOwnRight:Vne,functions:Une,functionsIn:zne,get:IS,has:qne,hasIn:$S,invert:tie,invertBy:iie,invoke:oie,keys:Xs,keysIn:Fl,mapKeys:Pie,mapValues:LF,merge:Uie,mergeWith:SF,omit:Kie,omitBy:Zie,pick:yre,pickBy:GF,result:Lre,set:Ure,setWith:zre,toPairs:qS,toPairsIn:YS,transform:Ooe,unset:qoe,update:Xoe,updateWith:Joe,values:Km,valuesIn:Qoe},oh={at:tse,chain:nF,commit:hF,lodash:Ce,next:UF,plant:eP,reverse:ise,tap:boe,thru:b0,toIterator:cP,toJSON:Qm,value:Qm,valueOf:Qm,wrapperChain:nse},eo={camelCase:ste,capitalize:JN,deburr:ZN,endsWith:dne,escape:TF,escapeRegExp:mne,kebabCase:Eie,lowerCase:Oie,lowerFirst:Iie,pad:fre,padEnd:pre,padStart:mre,parseInt:gre,repeat:Pre,replace:Rre,snakeCase:Yre,split:ooe,startCase:aoe,startsWith:loe,template:koe,templateSettings:ik,toLower:Toe,toUpper:Moe,trim:Foe,trimEnd:Poe,trimStart:Roe,truncate:joe,unescape:$oe,upperCase:Koe,upperFirst:PS,words:eF},lo={attempt:UN,bindAll:zee,cond:Bte,conforms:Vte,constant:CS,defaultTo:qte,flow:Rne,flowRight:jne,identity:fl,iteratee:Die,matches:Rie,matchesProperty:jie,method:zie,methodOf:Gie,mixin:$F,noop:bo,nthArg:Jie,over:rre,overEvery:sre,overSome:are,property:_F,propertyOf:_re,range:rP,rangeRight:Ere,stubArray:RS,stubFalse:ES,stubObject:coe,stubString:uoe,stubTrue:doe,times:lP,toPath:Eoe,uniqueId:mp},Uqe=Math.max,zqe=Math.min,Gqe=Math.min,Wqe=Array.prototype,hse=Object.prototype.hasOwnProperty,fse=hl?hl.iterator:void 0,qqe=Math.max,pse=Math.min,fP=function(t){return function(n,e,i){if(null==i){var r=Go(e),o=r&&Xs(e),s=o&&o.length&&XS(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}($F);Ce.after=xs.after,Ce.ary=xs.ary,Ce.assign=Li.assign,Ce.assignIn=Li.assignIn,Ce.assignInWith=Li.assignInWith,Ce.assignWith=Li.assignWith,Ce.at=Li.at,Ce.before=xs.before,Ce.bind=xs.bind,Ce.bindAll=lo.bindAll,Ce.bindKey=xs.bindKey,Ce.castArray=bi.castArray,Ce.chain=oh.chain,Ce.chunk=Kn.chunk,Ce.compact=Kn.compact,Ce.concat=Kn.concat,Ce.cond=lo.cond,Ce.conforms=lo.conforms,Ce.constant=lo.constant,Ce.countBy=xo.countBy,Ce.create=Li.create,Ce.curry=xs.curry,Ce.curryRight=xs.curryRight,Ce.debounce=xs.debounce,Ce.defaults=Li.defaults,Ce.defaultsDeep=Li.defaultsDeep,Ce.defer=xs.defer,Ce.delay=xs.delay,Ce.difference=Kn.difference,Ce.differenceBy=Kn.differenceBy,Ce.differenceWith=Kn.differenceWith,Ce.drop=Kn.drop,Ce.dropRight=Kn.dropRight,Ce.dropRightWhile=Kn.dropRightWhile,Ce.dropWhile=Kn.dropWhile,Ce.fill=Kn.fill,Ce.filter=xo.filter,Ce.flatMap=xo.flatMap,Ce.flatMapDeep=xo.flatMapDeep,Ce.flatMapDepth=xo.flatMapDepth,Ce.flatten=Kn.flatten,Ce.flattenDeep=Kn.flattenDeep,Ce.flattenDepth=Kn.flattenDepth,Ce.flip=xs.flip,Ce.flow=lo.flow,Ce.flowRight=lo.flowRight,Ce.fromPairs=Kn.fromPairs,Ce.functions=Li.functions,Ce.functionsIn=Li.functionsIn,Ce.groupBy=xo.groupBy,Ce.initial=Kn.initial,Ce.intersection=Kn.intersection,Ce.intersectionBy=Kn.intersectionBy,Ce.intersectionWith=Kn.intersectionWith,Ce.invert=Li.invert,Ce.invertBy=Li.invertBy,Ce.invokeMap=xo.invokeMap,Ce.iteratee=lo.iteratee,Ce.keyBy=xo.keyBy,Ce.keys=Xs,Ce.keysIn=Li.keysIn,Ce.map=xo.map,Ce.mapKeys=Li.mapKeys,Ce.mapValues=Li.mapValues,Ce.matches=lo.matches,Ce.matchesProperty=lo.matchesProperty,Ce.memoize=xs.memoize,Ce.merge=Li.merge,Ce.mergeWith=Li.mergeWith,Ce.method=lo.method,Ce.methodOf=lo.methodOf,Ce.mixin=fP,Ce.negate=y0,Ce.nthArg=lo.nthArg,Ce.omit=Li.omit,Ce.omitBy=Li.omitBy,Ce.once=xs.once,Ce.orderBy=xo.orderBy,Ce.over=lo.over,Ce.overArgs=xs.overArgs,Ce.overEvery=lo.overEvery,Ce.overSome=lo.overSome,Ce.partial=xs.partial,Ce.partialRight=xs.partialRight,Ce.partition=xo.partition,Ce.pick=Li.pick,Ce.pickBy=Li.pickBy,Ce.property=lo.property,Ce.propertyOf=lo.propertyOf,Ce.pull=Kn.pull,Ce.pullAll=Kn.pullAll,Ce.pullAllBy=Kn.pullAllBy,Ce.pullAllWith=Kn.pullAllWith,Ce.pullAt=Kn.pullAt,Ce.range=lo.range,Ce.rangeRight=lo.rangeRight,Ce.rearg=xs.rearg,Ce.reject=xo.reject,Ce.remove=Kn.remove,Ce.rest=xs.rest,Ce.reverse=Kn.reverse,Ce.sampleSize=xo.sampleSize,Ce.set=Li.set,Ce.setWith=Li.setWith,Ce.shuffle=xo.shuffle,Ce.slice=Kn.slice,Ce.sortBy=xo.sortBy,Ce.sortedUniq=Kn.sortedUniq,Ce.sortedUniqBy=Kn.sortedUniqBy,Ce.split=eo.split,Ce.spread=xs.spread,Ce.tail=Kn.tail,Ce.take=Kn.take,Ce.takeRight=Kn.takeRight,Ce.takeRightWhile=Kn.takeRightWhile,Ce.takeWhile=Kn.takeWhile,Ce.tap=oh.tap,Ce.throttle=xs.throttle,Ce.thru=b0,Ce.toArray=bi.toArray,Ce.toPairs=Li.toPairs,Ce.toPairsIn=Li.toPairsIn,Ce.toPath=lo.toPath,Ce.toPlainObject=bi.toPlainObject,Ce.transform=Li.transform,Ce.unary=xs.unary,Ce.union=Kn.union,Ce.unionBy=Kn.unionBy,Ce.unionWith=Kn.unionWith,Ce.uniq=Kn.uniq,Ce.uniqBy=Kn.uniqBy,Ce.uniqWith=Kn.uniqWith,Ce.unset=Li.unset,Ce.unzip=Kn.unzip,Ce.unzipWith=Kn.unzipWith,Ce.update=Li.update,Ce.updateWith=Li.updateWith,Ce.values=Li.values,Ce.valuesIn=Li.valuesIn,Ce.without=Kn.without,Ce.words=eo.words,Ce.wrap=xs.wrap,Ce.xor=Kn.xor,Ce.xorBy=Kn.xorBy,Ce.xorWith=Kn.xorWith,Ce.zip=Kn.zip,Ce.zipObject=Kn.zipObject,Ce.zipObjectDeep=Kn.zipObjectDeep,Ce.zipWith=Kn.zipWith,Ce.entries=Li.toPairs,Ce.entriesIn=Li.toPairsIn,Ce.extend=Li.assignIn,Ce.extendWith=Li.assignInWith,fP(Ce,Ce),Ce.add=Pl.add,Ce.attempt=lo.attempt,Ce.camelCase=eo.camelCase,Ce.capitalize=eo.capitalize,Ce.ceil=Pl.ceil,Ce.clamp=$qe,Ce.clone=bi.clone,Ce.cloneDeep=bi.cloneDeep,Ce.cloneDeepWith=bi.cloneDeepWith,Ce.cloneWith=bi.cloneWith,Ce.conformsTo=bi.conformsTo,Ce.deburr=eo.deburr,Ce.defaultTo=lo.defaultTo,Ce.divide=Pl.divide,Ce.endsWith=eo.endsWith,Ce.eq=bi.eq,Ce.escape=eo.escape,Ce.escapeRegExp=eo.escapeRegExp,Ce.every=xo.every,Ce.find=xo.find,Ce.findIndex=Kn.findIndex,Ce.findKey=Li.findKey,Ce.findLast=xo.findLast,Ce.findLastIndex=Kn.findLastIndex,Ce.findLastKey=Li.findLastKey,Ce.floor=Pl.floor,Ce.forEach=xo.forEach,Ce.forEachRight=xo.forEachRight,Ce.forIn=Li.forIn,Ce.forInRight=Li.forInRight,Ce.forOwn=Li.forOwn,Ce.forOwnRight=Li.forOwnRight,Ce.get=Li.get,Ce.gt=bi.gt,Ce.gte=bi.gte,Ce.has=Li.has,Ce.hasIn=Li.hasIn,Ce.head=Kn.head,Ce.identity=fl,Ce.includes=xo.includes,Ce.indexOf=Kn.indexOf,Ce.inRange=Vqe,Ce.invoke=Li.invoke,Ce.isArguments=bi.isArguments,Ce.isArray=Ui,Ce.isArrayBuffer=bi.isArrayBuffer,Ce.isArrayLike=bi.isArrayLike,Ce.isArrayLikeObject=bi.isArrayLikeObject,Ce.isBoolean=bi.isBoolean,Ce.isBuffer=bi.isBuffer,Ce.isDate=bi.isDate,Ce.isElement=bi.isElement,Ce.isEmpty=bi.isEmpty,Ce.isEqual=bi.isEqual,Ce.isEqualWith=bi.isEqualWith,Ce.isError=bi.isError,Ce.isFinite=bi.isFinite,Ce.isFunction=bi.isFunction,Ce.isInteger=bi.isInteger,Ce.isLength=bi.isLength,Ce.isMap=bi.isMap,Ce.isMatch=bi.isMatch,Ce.isMatchWith=bi.isMatchWith,Ce.isNaN=bi.isNaN,Ce.isNative=bi.isNative,Ce.isNil=bi.isNil,Ce.isNull=bi.isNull,Ce.isNumber=bi.isNumber,Ce.isObject=Go,Ce.isObjectLike=bi.isObjectLike,Ce.isPlainObject=bi.isPlainObject,Ce.isRegExp=bi.isRegExp,Ce.isSafeInteger=bi.isSafeInteger,Ce.isSet=bi.isSet,Ce.isString=bi.isString,Ce.isSymbol=bi.isSymbol,Ce.isTypedArray=bi.isTypedArray,Ce.isUndefined=bi.isUndefined,Ce.isWeakMap=bi.isWeakMap,Ce.isWeakSet=bi.isWeakSet,Ce.join=Kn.join,Ce.kebabCase=eo.kebabCase,Ce.last=Bn,Ce.lastIndexOf=Kn.lastIndexOf,Ce.lowerCase=eo.lowerCase,Ce.lowerFirst=eo.lowerFirst,Ce.lt=bi.lt,Ce.lte=bi.lte,Ce.max=Pl.max,Ce.maxBy=Pl.maxBy,Ce.mean=Pl.mean,Ce.meanBy=Pl.meanBy,Ce.min=Pl.min,Ce.minBy=Pl.minBy,Ce.stubArray=lo.stubArray,Ce.stubFalse=lo.stubFalse,Ce.stubObject=lo.stubObject,Ce.stubString=lo.stubString,Ce.stubTrue=lo.stubTrue,Ce.multiply=Pl.multiply,Ce.nth=Kn.nth,Ce.noop=lo.noop,Ce.now=Bqe.now,Ce.pad=eo.pad,Ce.padEnd=eo.padEnd,Ce.padStart=eo.padStart,Ce.parseInt=eo.parseInt,Ce.random=Hqe,Ce.reduce=xo.reduce,Ce.reduceRight=xo.reduceRight,Ce.repeat=eo.repeat,Ce.replace=eo.replace,Ce.result=Li.result,Ce.round=Pl.round,Ce.sample=xo.sample,Ce.size=xo.size,Ce.snakeCase=eo.snakeCase,Ce.some=xo.some,Ce.sortedIndex=Kn.sortedIndex,Ce.sortedIndexBy=Kn.sortedIndexBy,Ce.sortedIndexOf=Kn.sortedIndexOf,Ce.sortedLastIndex=Kn.sortedLastIndex,Ce.sortedLastIndexBy=Kn.sortedLastIndexBy,Ce.sortedLastIndexOf=Kn.sortedLastIndexOf,Ce.startCase=eo.startCase,Ce.startsWith=eo.startsWith,Ce.subtract=Pl.subtract,Ce.sum=Pl.sum,Ce.sumBy=Pl.sumBy,Ce.template=eo.template,Ce.times=lo.times,Ce.toFinite=bi.toFinite,Ce.toInteger=Qi,Ce.toLength=bi.toLength,Ce.toLower=eo.toLower,Ce.toNumber=bi.toNumber,Ce.toSafeInteger=bi.toSafeInteger,Ce.toString=bi.toString,Ce.toUpper=eo.toUpper,Ce.trim=eo.trim,Ce.trimEnd=eo.trimEnd,Ce.trimStart=eo.trimStart,Ce.truncate=eo.truncate,Ce.unescape=eo.unescape,Ce.uniqueId=lo.uniqueId,Ce.upperCase=eo.upperCase,Ce.upperFirst=eo.upperFirst,Ce.each=xo.forEach,Ce.eachRight=xo.forEachRight,Ce.first=Kn.head,fP(Ce,(hP={},ih(Ce,function(t,n){hse.call(Ce.prototype,n)||(hP[n]=t)}),hP),{chain:!1}),Ce.VERSION="4.17.21",(Ce.templateSettings=eo.templateSettings).imports._=Ce,ru(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Ce[t].placeholder=Ce}),ru(["drop","take"],function(t,n){Ir.prototype[t]=function(e){e=void 0===e?1:qqe(Qi(e),0);var i=this.__filtered__&&!n?new Ir(this):this.clone();return i.__filtered__?i.__takeCount__=pse(e,i.__takeCount__):i.__views__.push({size:pse(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Ir.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ru(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Ir.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:zi(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),ru(["head","last"],function(t,n){var e="take"+(n?"Right":"");Ir.prototype[t]=function(){return this[e](1).value()[0]}}),ru(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Ir.prototype[t]=function(){return this.__filtered__?new Ir(this):this[e](1)}}),Ir.prototype.compact=function(){return this.filter(fl)},Ir.prototype.find=function(t){return this.filter(t).head()},Ir.prototype.findLast=function(t){return this.reverse().find(t)},Ir.prototype.invokeMap=mr(function(t,n){return"function"==typeof t?new Ir(this):this.map(function(e){return ib(e,t,n)})}),Ir.prototype.reject=function(t){return this.filter(y0(zi(t)))},Ir.prototype.slice=function(t,n){t=Qi(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Ir(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Qi(n))<0?e.dropRight(-n):e.take(n-t)),e)},Ir.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ir.prototype.toArray=function(){return this.take(4294967295)},ih(Ir.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=Ce[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(Ce.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Ir,c=a[0],u=l||Ui(s),d=function(v){var y=r.apply(Ce,up([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Ir(this);var g=t.apply(s,a);return g.__actions__.push({func:b0,args:[d],thisArg:void 0}),new iu(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),ru(["pop","push","shift","sort","splice","unshift"],function(t){var n=Wqe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Ce.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(Ui(o)?o:[],r)}return this[e](function(s){return n.apply(Ui(s)?s:[],r)})}}),ih(Ir.prototype,function(t,n){var e=Ce[n];if(e){var i=e.name+"";hse.call(n0,i)||(n0[i]=[]),n0[i].push({name:n,func:e})}}),n0[TS(void 0,2).name]=[{name:"wrapper",func:void 0}],Ir.prototype.clone=function(){var t=new Ir(this.__wrapped__);return t.__actions__=ic(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ic(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ic(this.__views__),t},Ir.prototype.reverse=function(){if(this.__filtered__){var t=new Ir(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ir.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Ui(t),i=n<0,r=e?t.length:0,o=function(D,E,B){for(var z=-1,j=B.length;++z1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Io(l)||n&&c.length>0)&&(e[dn(c)]=!0),Io(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function gse(t){return nt({},t)}function vse(t){return Object.values(t)}function yse(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(ui(o))),r}function mP(t,n){try{return n.parse(t)}catch{return n.parse(Kd(t))}}function _se(t,n){try{return mP(t,n)}catch{return}}function ak(t,n){t=t.replace(xse,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function bse(t){t=t.replace(xse,"");try{return Kd(t)}catch{}try{var n=Kd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Kd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var xse=/,\s*$/;function lk(t,n){var e=Sse.exec(n);if(e){var i=Ys(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return x0(t)?t:{text:e.stringify(t.json,null,n)}}function wse(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return vP(t)?t:{json:n.parse(t.text)}}function ck(t,n,e){return Zm(t,n,e).text}function Cse(t,n){return function Kqe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(x0(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Io(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var Sse=/(position|char) (\d+)/,Qqe=/line (\d+)/,Zqe=/column (\d+)/;function Dse(t){return eYe.test(t)&&t.length>2}var eYe=/^[[{]\S/;function yP(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?tYe:nYe:e?iYe:rYe}var tYe={escapeValue:function(t){return Tse(Mse(String(t)))},unescapeValue:function(t){return Ose(Ese(t))}},nYe={escapeValue:function(t){return Mse(String(t))},unescapeValue:function(t){return Ose(t)}},iYe={escapeValue:function(t){return Tse(String(t))},unescapeValue:function(t){return Ese(t)}},rYe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function Tse(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function Ese(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return Ase[e]||e}catch{return n}})}var Ase={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},oYe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Mse(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return Ase[n]||n})}function Ose(t){return t.replace(/\\["bfnrt\\]/g,function(n){return oYe[n]||n})}function eg(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function Ise(t,n){return ob(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function tg(t,n,e){return ob(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function ob(t,n){return!!_P(t,n)}function _P(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function Nse(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function uk(t,n,e){var i=w0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,Nse(r))}}function w0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function dk(t){var e=w0(t)?.document.activeElement;return!!e&&ob(e,function(i){return i===t})}function Fse(t,n){return _P(t,function(e){return e.nodeName===n})}function bP(t){return tg(t,"data-type","selectable-key")?so.key:tg(t,"data-type","selectable-value")?so.value:tg(t,"data-type","insert-selection-area-inside")?so.inside:tg(t,"data-type","insert-selection-area-after")?so.after:so.multi}function C0(t){return encodeURIComponent(dn(t))}function Pse(t){var e=_P(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Zu(decodeURIComponent(e)):null}function gp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in aYe||e.push(i),e.join(n)}var aYe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},xP=cN.window;function lYe(t){_i(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function Rse(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&C>h,z="left"===v||b+u>window.innerWidth&&b>u;return{left:z?y.right-g:b+g,top:B?C-p:y.bottom+p,positionAbove:B,positionLeft:z}}if("number"==typeof n.left&&"number"==typeof n.top){var j=n.left,U=n.top,G=n.width,X=void 0===G?0:G,oe=n.height,P=void 0===oe?0:oe;return{left:j,top:U,positionAbove:U+P>window.innerHeight&&U>P,positionLeft:j+X>window.innerWidth&&j>X}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function dYe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!ob(l.target,function(c){return c===i})&&s(o.id)}return eu(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===gp(l)&&s(o.id)},function(l){a(l)},s,function(l){Xi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Xi[l?"unshift":"push"](function(){e(1,i=l)})}]}var hYe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dYe,cYe,_s,{popup:0,closeAbsolutePopup:6},lYe),r}return Ie(e)}();function Lse(t,n,e){var i=t.slice();return i[6]=n[e],i}function Bse(t){var n,e;return n=new hYe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function fYe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(gYe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var gYe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function sb(t){return{value:t,label:Ji(t)?"(whole item)":cu(rc(t))}}function sh(t){return t.map(function(n){return CP.test(n)?"?.[".concat(n,"]"):wP.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var wP=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,CP=/^\d+$/;function ab(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function ah(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var vYe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(sh(e.path)),a=function SP(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function nee(t){return jUe.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(sh(i.path),"\n")+" const valueB = b".concat(sh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(sh(i.path),"\n")+" const valueB = b".concat(sh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(sh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(sh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},yYe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},lb={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},cb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},_Ye={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function bYe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var qYe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,WYe,GYe,Pi,{path:4,value:0,readOnly:1,onPatch:5,focus:6},zYe),r}return Ie(e)}();function Jse(t){for(var n=oP(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=pk(n,u);DP(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Io(l)&&i(o)){r[dn(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=He(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),nt(nt({},n),{},{expandedMap:r})}function Kse(t,n){var e=S0(t.expandedMap,n),i=S0(t.enforceStringMap,n),r=S0(t.visibleSectionsMap,n);return nt(nt({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Qse(t,n,e){if(e){var i=nt({},t.enforceStringMap);return i[n]=e,nt(nt({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=nt({},t.enforceStringMap);return delete r[n],nt(nt({},t),{},{enforceStringMap:r})}return t}function Zse(t,n,e){var i=ed(t,e),r=e.reduce(function(o,s){return BZ(s)?eae(i,o,s):$Z(s)?tae(i,o,s):mN(s)?(u=(c=s).path,d=OP(a=i,(l=o).expandedMap),h=OP(a,l.enforceStringMap),f=OP(a,l.visibleSectionsMap),Oo(c.value)||ao(c.value)||delete d[u],ao(c.value)||delete f[u],(Oo(c.value)||ao(c.value))&&delete h[u],nt(nt({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):gN(s)||Qv(s)?function(a,l,c){if(Qv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=MP(EP(l.expandedMap,c.from),u),h=MP(EP(l.enforceStringMap,c.from),u),f=MP(EP(l.visibleSectionsMap,c.from),u),p=l;Qv(c)&&(p=tae(a,p,{op:"remove",path:c.from}));var m=AP((p=eae(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=AP(p.enforceStringMap,h),v=AP(p.visibleSectionsMap,f);return nt(nt({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function eae(t,n,e){var i=td(t,e.path),r=tr(i),o=dn(r);if(ao(Mn(t,r))){var s=Ys(Bn(i)),a=k0(n.expandedMap,r,s,1),l=k0(n.enforceStringMap,r,s,1),c=k0(n.visibleSectionsMap,r,s,1);return c=nae(c,o,function(u){return iae(u,s,1)}),nt(nt({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function tae(t,n,e){var i=td(t,e.path),r=tr(i),o=dn(r),s=Mn(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=S0(a,i),l=S0(l,i),c=S0(c,i),ao(s)){var u=Ys(Bn(i));a=k0(a,r,u,-1),l=k0(l,r,u,-1),c=nae(c=k0(c,r,u,-1),o,function(d){return iae(d,u,-1)})}return nt(nt({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function S0(t,n){var e={},i=dn(n);return Object.keys(t).forEach(function(r){Zv(r,i)||(e[r]=t[r])}),e}function EP(t,n){var e={};return Object.keys(t).forEach(function(i){Zv(i,n)&&(e[i]=t[i])}),e}function AP(t,n){return nt(nt({},t),n)}function MP(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function k0(t,n,e,i){for(var r=n.length,o=dn(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:dn(u),value:t[c]}))}}if(0===s.length)return t;var h=nt({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function OP(t,n){var e={};return Object.keys(n).filter(function(i){return nu(t,td(t,i))}).forEach(function(i){e[i]=n[i]}),e}function nae(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!dr(i,r)){var o=nt({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function iae(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function mf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof e0(o,i)}function ub(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function IP(t,n){var e=[];return function i(r,o){e.push(o);var s=dn(o);if(r&&!0===n.expandedMap[s]){if(ao(r)){var a=pk(n,s);DP(r,a,function(l){i(r[l],o.concat(String(l)))})}Oo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function rae(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Ju.value});var a=dn(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Ju.inside}),ao(o)){var l=pk(n,a);DP(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Ju.after})})}Oo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Ju.key}),r(o[c],u),e&&i.push({path:u,type:Ju.after})})}}(t,[]),i}function NP(t,n,e){var i=IP(t,n),r=i.map(dn).indexOf(dn(e));return-1!==r&&r0;){if(!0===t.pointersMap[dn(i)])return!0;i.pop()}return ws(t)?e===so.key&&dr(t.focusPath,n):!(!nr(t)||!(e===so.value&&dr(t.focusPath,n)||A0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===so.key||e===so.value||e===so.multi)))}function aae(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Lr(r)?r.focusPath:va(r.paths),s=function JYe(t,n,e){var i=IP(t,n),r=i.map(dn),o=dn(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return rd(r)||Js(r)?Fs(t,r.anchorPath,r.anchorPath):Fs(t,r.anchorPath,l);if(ws(r)){var u=Mn(t,tr(s));return Array.isArray(u)||Ji(s)?br(s,!1):du(s,!1)}return nr(r)?br(s,!1):rd(r)||Js(r)?Fs(t,o,o):Fs(t,a,l)}function lae(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=rae(t,n,e),o=r.findIndex(function(s){return dr(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(Mn(t,tr(r)))?br(r,!1):du(r,!1)}function E0(t,n){if(1===n.length){var e=va(n);if("replace"===e.op||"move"===e.op)return br(td(t,e.path),!1)}if(!Ji(n)&&n.every(function(s){return"move"===s.op})){var i=va(n),r=n.slice(1);if((gN(i)||Qv(i))&&i.from!==i.path&&r.every(function(s){return(gN(s)||Qv(s))&&s.from===s.path}))return du(td(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return td(t,s.path)});if(!Ji(o))return{type:so.multi,paths:o,anchorPath:va(o),focusPath:Bn(o),pointersMap:cae(o)}}function cae(t){var n={};return t.forEach(function(e){n[dn(e)]=!0}),n}function gk(t){return ec({},dn(t),!0)}function hb(t){return void 0!==t&&(ws(t)||nr(t)||Lr(t)&&1===t.paths.length)}function uae(t,n){return hb(n)&&zo(Mn(t,n.focusPath))?n.focusPath:tr(n.focusPath)}function A0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return nt(nt({},r),{},{active:o===n})});return nt(nt({},t),{},{items:i,itemsMap:g0(i,function(r){return dn(r.path)}),activeItem:e,activeIndex:n})}function oXe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return nt(nt({},r),{},{active:o===n})});return nt(nt({},t),{},{items:i,itemsMap:g0(i,function(r){return dn(r.path)}),activeItem:e,activeIndex:n})}function xae(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Oo(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else wae(String(c),l,r,Ku.value,o)}(t.toLowerCase(),n),i}function wae(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function jP(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function Cae(t,n,e){var i=t;return tb(e,function(r){i=jP(i,n,r.start,r.end)}),i}function sXe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Ku.key){var c=tr(s),u=Mn(t,c),d=Bn(s),h=pb(c,Object.keys(u),d,jP(d,e,a,l));return{newSelection:E0(t,h),operations:h}}if(o===Ku.value){var f=Mn(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(dn(s)));var p="string"==typeof f?f:String(f),m=dn(s),g=mf(f,n.enforceStringMap,m,r),v=jP(p,e,a,l),y=[{op:"replace",path:dn(s),value:g?v:e0(v,r)}];return{newSelection:E0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function aXe(t,n,e,i,r){for(var o=xae(e,t,1/0),s=[],a=0;an.floating[o]&&(s=Sk(s)),{main:s,cross:Sk(s)}}var qXe={start:"end",end:"start"};function GP(t){return t.replace(/start|end/g,function(n){return qXe[n]})}var YXe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,pe,A,N,F,q,V,ce;return _n().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,b=void 0===(y=u.fallbackAxisSideDirection)?"none":y,D=void 0===(C=u.flipAlignment)||C,E=lZ(u,THe),B=og(r),z=og(a)===a,ve.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return j=ve.sent,U=m||(z||!D?[Sk(a)]:(void 0,Te=Sk(je=a),[GP(je),Te,GP(Te)])),m||"none"===b||U.push.apply(U,ui(function(je,Te,et,We){var st=wk(je),$=function(ae,le,Re){var Ze=["left","right"],Ve=["right","left"];switch(ae){case"top":case"bottom":return Re?le?Ve:Ze:le?Ze:Ve;case"left":case"right":return le?["top","bottom"]:["bottom","top"];default:return[]}}(og(je),"start"===et,We);return st&&($=$.map(function(ae){return ae+"-"+st}),Te&&($=$.concat($.map(GP)))),$}(a,D,b,j))),G=[a].concat(ui(U)),ve.next=29,Bae(n,E);case 29:if(X=ve.sent,oe=[],P=(null==(i=o.flip)?void 0:i.overflows)||[],h&&oe.push(X[B]),p&&(W=WXe(r,s,j),oe.push(X[W.main],X[W.cross])),P=[].concat(ui(P),[{placement:r,overflows:oe}]),oe.every(function(je){return je<=0})){ve.next=48;break}if(N=((null==(pe=o.flip)?void 0:pe.index)||0)+1,!(F=G[N])){ve.next=37;break}return ve.abrupt("return",{data:{index:N,overflows:P},reset:{placement:F}});case 37:if(q=null==(A=P.filter(function(je){return je.overflows[0]<=0}).sort(function(je,Te){return je.overflows[1]-Te.overflows[1]})[0])?void 0:A.placement,q){ve.next=46;break}ve.t0=v,ve.next="bestFit"===ve.t0?42:"initialPlacement"===ve.t0?45:46;break;case 42:return ce=null==(V=P.map(function(je){return[je.placement,je.overflows.filter(function(Te){return Te>0}).reduce(function(Te,et){return Te+et},0)]}).sort(function(je,Te){return je[1]-Te[1]})[0])?void 0:V[0],ce&&(q=ce),ve.abrupt("break",46);case 45:q=a;case 46:if(r===q){ve.next=48;break}return ve.abrupt("return",{reset:{placement:q}});case 48:return ve.abrupt("return",{});case 49:case"end":return ve.stop()}var je,Te},e)}))()}}},XXe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o;return _n().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=or(_n().mark(function l(c,u){var d,h,f,p,m,g,v,y,b,C,D,E,B,z;return _n().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return d=c.placement,h=c.platform,f=c.elements,j.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=j.sent,m=og(d),g=wk(d),v="x"===Ck(d),y=["left","top"].includes(m)?-1:1,b=p&&v?-1:1,C="function"==typeof u?u(c):u,D="number"==typeof C?{mainAxis:C,crossAxis:0,alignmentAxis:null}:nt({mainAxis:0,crossAxis:0,alignmentAxis:null},C),E=D.mainAxis,B=D.crossAxis,z=D.alignmentAxis,j.abrupt("return",(g&&"number"==typeof z&&(B="end"===g?-1*z:z),v?{x:B*b,y:E*y}:{x:E*y,y:B*b}));case 14:case"end":return j.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function JXe(t){return"x"===t?"y":"x"}var KXe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,B;return _n().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(j){return{x:j.x,y:j.y}}}:h,p=lZ(a,EHe),m={x:r,y:o},z.next=14,Bae(n,p);case 14:return g=z.sent,v=Ck(og(s)),y=JXe(v),b=m[v],C=m[y],c&&(b=$ae(b+g["y"===v?"top":"left"],b,b-g["y"===v?"bottom":"right"])),d&&(C=$ae(C+g["y"===y?"top":"left"],C,C-g["y"===y?"bottom":"right"])),B=f.fn(nt(nt({},n),{},(ec(i={},v,b),ec(i,y,C),i))),z.abrupt("return",nt(nt({},B),{},{data:{x:B.x-r,y:B.y-o}}));case 22:case"end":return z.stop()}},e)}))()}}};function Nc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function uh(t){return Nc(t).getComputedStyle(t)}var WP,Vae=Math.min,gb=Math.max,kk=Math.round;function Hae(t){var n=uh(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=kk(e)!==r||kk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function wp(t){return zae(t)?(t.nodeName||"").toLowerCase():""}function Uae(){if(WP)return WP;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?WP=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function dh(t){return t instanceof Nc(t).HTMLElement}function sd(t){return t instanceof Nc(t).Element}function zae(t){return t instanceof Nc(t).Node}function Gae(t){return typeof ShadowRoot<"u"&&(t instanceof Nc(t).ShadowRoot||t instanceof ShadowRoot)}function Dk(t){var n=uh(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function QXe(t){return["table","td","th"].includes(wp(t))}function qP(t){var n=/firefox/i.test(Uae()),e=uh(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function YP(){return/^((?!chrome|android).)*safari/i.test(Uae())}function XP(t){return["html","body","#document"].includes(wp(t))}function Wae(t){return sd(t)?t:t.contextElement}var qae={x:1,y:1};function R0(t){var n=Wae(t);if(!dh(n))return qae;var e=n.getBoundingClientRect(),i=Hae(n),r=i.width,o=i.height,s=i.fallback,a=(s?kk(e.width):e.width)/r,l=(s?kk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function sg(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Wae(t),l=qae;n&&(i?sd(i)&&(l=R0(i)):l=R0(t));var c=a?Nc(a):window,u=YP()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=Nc(a),g=i&&sd(i)?Nc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=R0(v),b=v.getBoundingClientRect(),C=getComputedStyle(v);b.x+=(v.clientLeft+parseFloat(C.paddingLeft))*y.x,b.y+=(v.clientTop+parseFloat(C.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=b.x,h+=b.y,v=Nc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function Cp(t){return((zae(t)?t.ownerDocument:t.document)||window.document).documentElement}function Tk(t){return sd(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yae(t){return sg(Cp(t)).left+Tk(t).scrollLeft}function vb(t){if("html"===wp(t))return t;var n=t.assignedSlot||t.parentNode||Gae(t)&&t.host||Cp(t);return Gae(n)?n.host:n}function Xae(t){var n=vb(t);return XP(n)?n.ownerDocument.body:dh(n)&&Dk(n)?n:Xae(n)}function yb(t,n){var e;void 0===n&&(n=[]);var i=Xae(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Nc(i);return r?n.concat(o,o.visualViewport||[],Dk(i)?i:[]):n.concat(i,yb(i))}function Jae(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=Nc(l),d=Cp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=YP();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=Cp(t),c=Cp(l),u=Tk(l),h=gb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=gb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Yae(l),m=-u.scrollTop,"rtl"===uh(d).direction&&(p+=gb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(sd(n))i=function(l,c){var u=sg(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=dh(l)?R0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=nt({},n);if(YP()){var o,s,a=Nc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return UP(i)}function Kae(t,n){return dh(t)&&"fixed"!==uh(t).position?n?n(t):t.offsetParent:null}function Qae(t,n){for(var e=Nc(t),i=Kae(t,n);i&&QXe(i)&&"static"===uh(i).position;)i=Kae(i,n);return i&&("html"===wp(i)||"body"===wp(i)&&"static"===uh(i).position&&!qP(i))?e:i||function(r){for(var o=vb(r);dh(o)&&!XP(o);){if(qP(o))return o;o=vb(o)}return null}(t)||e}function ZXe(t,n,e){var i=dh(n),r=Cp(n),o=sg(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==wp(n)||Dk(r))&&(s=Tk(n)),dh(n)){var l=sg(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Yae(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var eJe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=yb(c).filter(function(y){return sd(y)&&"body"!==wp(y)}),f=null,p="fixed"===uh(c).position,m=p?vb(c):c;sd(m)&&!XP(m);){var g=uh(m),v=qP(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=vb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(ui(o),[i]),l=s.reduce(function(c,u){var d=Jae(n,u,r);return c.top=gb(d.top,c.top),c.right=Vae(d.right,c.right),c.bottom=Vae(d.bottom,c.bottom),c.left=gb(d.left,c.left),c},Jae(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=dh(e),o=Cp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==wp(e)||Dk(o))&&(s=Tk(e)),dh(e))){var c=sg(e);a=R0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:sd,getDimensions:function(t){return dh(t)?Hae(t):t.getBoundingClientRect()},getOffsetParent:Qae,getDocumentElement:Cp,getScale:R0,getElementRects:function(t){var n=this;return or(_n().mark(function e(){var i,r,o,s,a;return _n().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Qae,a=n.getDimensions,l.t0=ZXe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=nt,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===uh(t).direction}};function iJe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==wn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function rJe(t){return JP.apply(this,arguments)}function JP(){return JP=or(_n().mark(function t(n){var e,i,r,o,s;return _n().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==wn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),JP.apply(this,arguments)}function oJe(t){_i(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function sJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("path"),"fill","currentColor"),R(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),R(n,"width","100%"),R(n,"height","100%"),R(n,"viewBox","0 0 20 20"),R(n,"focusable","false"),R(n,"aria-hidden","true"),R(n,"class","svelte-qbd276")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var aJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,sJe,_s,{},oJe),r}return Ie(e)}();function lJe(t){_i(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function cJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("path"),"fill","currentColor"),R(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),R(n,"width","100%"),R(n,"height","100%"),R(n,"viewBox","-2 -2 50 50"),R(n,"focusable","false"),R(n,"aria-hidden","true"),R(n,"role","presentation"),R(n,"class","svelte-whdbu1")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var Ek=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,cJe,_s,{},lJe),r}return Ie(e)}();function uJe(t){_i(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function dJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("circle"),"class","circle_path svelte-1p3nqvd"),R(e,"cx","50"),R(e,"cy","50"),R(e,"r","20"),R(e,"fill","none"),R(e,"stroke","currentColor"),R(e,"stroke-width","5"),R(e,"stroke-miterlimit","10"),R(n,"class","loading svelte-1p3nqvd"),R(n,"viewBox","25 25 50 50")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var hJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,dJe,_s,{},uJe),r}return Ie(e)}();function fJe(t){_i(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var pJe=function(t){return{value:8&t[0]}},Zae=function(t){return{value:t[3]}},mJe=function(t){return{listOpen:64&t[0]}},ele=function(t){return{listOpen:t[6]}},gJe=function(t){return{}},tle=function(t){return{}},vJe=function(t){return{}},nle=function(t){return{}},yJe=function(t){return{selection:8&t[0]}},ile=function(t){return{selection:t[3]}};function rle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var _Je=function(t){return{}},ole=function(t){return{}},bJe=function(t){return{selection:8&t[0]}},sle=function(t){return{selection:t[127],index:t[129]}},xJe=function(t){return{}},ale=function(t){return{}},wJe=function(t){return{}},lle=function(t){return{}};function cle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var CJe=function(t){return{item:16777216&t[0]}},ule=function(t){return{item:t[127],index:t[129]}},SJe=function(t){return{filteredItems:16777216&t[0]}},dle=function(t){return{filteredItems:t[24]}};function hle(t){var n,e,i,r,o,s,a=[TJe,DJe,kJe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=De("div"),i&&i.c(),R(n,"class","svelte-select-list svelte-tyxmms"),Nt(n,"prefloat",t[28])},m:function(u,d){$e(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[Ea(t[49].call(null,n)),Rt(n,"scroll",t[41]),Rt(n,"pointerdown",rf(t[50])),Rt(n,"pointerup",sf(rf(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&(Ht(),fe(l[h],1,1,function(){l[h]=null}),Ut()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),Q(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&Nt(n,"prefloat",u[28])},i:function(u){r||(Q(i),r=!0)},o:function(u){fe(i),r=!1},d:function(u){u&&Be(n),~e&&l[e].d(),t[91](null),o=!1,po(s)}}}function kJe(t){var n,e,i=t[83].empty,r=Ms(i,t,t[82],lle),o=r||{c:function(){(e=De("div")).textContent="No options",R(e,"class","empty svelte-tyxmms")},m:function(s,a){$e(s,e,a)},p:Bt,d:function(s){s&&Be(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Is(r,i,s,s[82],n?Os(i,s[82],a,wJe):Ns(s[82]),lle)},i:function(s){n||(Q(o,s),n=!0)},o:function(s){fe(o,s),n=!1},d:function(s){o&&o.d(s)}}}function DJe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(tt,ii)}:In,vi=n.debounceWait,gi=void 0===vi?300:vi,Mr=n.hideEmptyState,to=void 0!==Mr&&Mr,xi=n.inputAttributes,Sr=void 0===xi?{}:xi,Fe=n.listAutoWidth,At=void 0===Fe||Fe,Gt=n.showChevron,ln=void 0!==Gt&&Gt,mn=n.listOffset,ci=void 0===mn?5:mn,$i=n.hoverItemIndex,zn=void 0===$i?0:$i,ai=n.floatingConfig,ni=void 0===ai?{}:ai,kr=n.class,Fr=void 0===kr?"":kr;function jo(tt){var ii=[],sr={};tt.forEach(function(Td){var Hr=Er(Td);ii.includes(Hr)||(ii.push(Hr),sr[Hr]=[],Hr&&sr[Hr].push(Object.assign(Ks(Hr,Td),{id:Hr,groupHeader:!0,selectable:Xr}))),sr[Hr].push(Object.assign({groupItem:!!Hr},Td))});var Zs=[];return wr(ii).forEach(function(Td){sr[Td]&&Zs.push.apply(Zs,ui(sr[Td]))}),Zs}function ba(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ii=arguments.length>1?arguments[1]:void 0;e(7,zn=tt<0?0:tt),!ii&&Er&&c[zn]&&!c[zn].selectable&&Do(1)}function bd(){var tt=!0;if($){var ii=[],sr=[];$.forEach(function(Zs){ii.includes(Zs[Rn])?tt=!1:(ii.push(Zs[Rn]),sr.push(Zs))}),tt||e(3,$=sr)}return tt}function bu(tt){var ii=tt?tt[Rn]:$[Rn];return yn.find(function(sr){return sr[Rn]===ii})}function xa(tt){return Bl.apply(this,arguments)}function Bl(){return(Bl=or(_n().mark(function tt(ii){var sr;return _n().wrap(function(Zs){for(;;)switch(Zs.prev=Zs.next){case 0:sr=$[ii],e(3,$=1===$.length?void 0:$.filter(function(Td){return Td!==sr})),B("clear",sr);case 3:case"end":return Zs.stop()}},tt)}))).apply(this,arguments)}function xd(tt){var ii;We&&F===(null===(ii=document)||void 0===ii?void 0:ii.activeElement)||(tt&&B("focus",tt),F.focus(),e(2,We=!0))}function Rs(tt){return wd.apply(this,arguments)}function wd(){return(wd=or(_n().mark(function tt(ii){return _n().wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:if(!yi&&!hx){sr.next=2;break}return sr.abrupt("return");case 2:(Ye||We)&&(B("blur",ii),Cd(),e(2,We=!1),e(26,f=void 0),F.blur());case 3:case"end":return sr.stop()}},tt)}))).apply(this,arguments)}function Cd(){e(4,le=""),e(6,Ye=!1)}y=or(_n().mark(function tt(){return _n().wrap(function(ii){for(;;)switch(ii.prev=ii.next){case 0:e(78,p=$),e(79,m=le),e(80,g=V);case 3:case"end":return ii.stop()}},tt)})),Xv().$$.before_update.push(y),eu(function(){Ye&&e(2,We=!0),We&&F&&F.focus()});var cn,TT=n.ariaValues,Me=void 0===TT?function(tt){return"Option ".concat(tt,", selected.")}:TT,ct=n.ariaListOpen,Ft=void 0===ct?function(tt,ii){return"You are currently focused on option ".concat(tt,". There are ").concat(ii," results available.")}:ct,en=n.ariaFocused,an=void 0===en?function(){return"Select is focused, type to refine list, press down to open the menu."}:en,Gn=null;function hi(){clearTimeout(cn),cn=setTimeout(function(){yi=!1},100)}qu(function(){var tt;null===(tt=Gn)||void 0===tt||tt.remove()});var yi=!1;function Lo(tt){tt&&!1!==tt.selectable&&function(ii){if(ii){e(4,le="");var sr=Object.assign({},ii);if(sr.groupHeader&&!sr.selectable)return;e(3,$=V?$?$.concat([sr]):[sr]:e(3,$=sr)),setTimeout(function(){Jr&&Cd(),e(26,f=void 0),B("change",$),B("select",ii)})}}(tt)}function js(tt){yi||e(7,zn=tt)}function Zo(tt){var Zs,ii=tt.item,sr=tt.i;if(!1!==ii?.selectable){if($&&!V&&$[Rn]===ii[Rn])return Cd();((Zs=ii).groupHeader&&Zs.selectable||Zs.selectable||!Zs.hasOwnProperty("selectable"))&&(e(7,zn=sr),Lo(ii)),hx=!1}}function Do(tt){if(0===c.filter(function(sr){return!Object.hasOwn(sr,"selectable")||!0===sr.selectable}).length)return e(7,zn=0);e(7,tt>0&&zn===c.length-1?zn=0:tt<0&&0===zn?zn=c.length-1:zn+=tt);var ii=c[zn];ii&&!1===ii.selectable&&(1!==tt&&-1!==tt||Do(tt))}var $l=Sd,Sh=Sd;function Sd(tt){return{update:function(ii){ii.scroll&&(hi(),tt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Pr={strategy:"absolute",placement:"bottom-start",middleware:[XXe(ci),YXe(),KXe()],autoUpdate:!1},lc=Jn(function nJe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return nt(nt(nt({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=nt({platform:eJe},d),p=nt(nt({},f.platform),{},{_c:h}),VXe(c,u,nt(nt({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){qu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function tJe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(ui(sd(t)?yb(t):t.contextElement?yb(t.contextElement):[]),ui(yb(n))):[];p.forEach(function(b){f&&b.addEventListener("scroll",e,{passive:!0}),l&&b.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),sd(t)&&!h&&g.observe(t),sd(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?sg(t):null;return h&&function b(){var C=sg(t);!y||C.x===y.x&&C.y===y.y&&C.width===y.width&&C.height===y.height||e(),y=C,m=requestAnimationFrame(b)}(),e(),function(){var b;p.forEach(function(C){f&&C.removeEventListener("scroll",e),l&&C.removeEventListener("resize",e)}),null==(b=g)||b.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Pr),3),xu=lc[0],kd=lc[1],kh=lc[2],Dd=!0,hx=!1;return t.$$set=function(tt){"justValue"in tt&&e(53,j=tt.justValue),"filter"in tt&&e(54,G=tt.filter),"getItems"in tt&&e(55,oe=tt.getItems),"id"in tt&&e(56,W=tt.id),"name"in tt&&e(8,H=tt.name),"container"in tt&&e(0,A=tt.container),"input"in tt&&e(1,F=tt.input),"multiple"in tt&&e(9,V=tt.multiple),"multiFullItemClearable"in tt&&e(10,ve=tt.multiFullItemClearable),"disabled"in tt&&e(11,Te=tt.disabled),"focused"in tt&&e(2,We=tt.focused),"value"in tt&&e(3,$=tt.value),"filterText"in tt&&e(4,le=tt.filterText),"placeholder"in tt&&e(57,Ze=tt.placeholder),"placeholderAlwaysShow"in tt&&e(58,Ct=tt.placeholderAlwaysShow),"items"in tt&&e(52,yn=tt.items),"label"in tt&&e(12,on=tt.label),"itemFilter"in tt&&e(59,hn=tt.itemFilter),"groupBy"in tt&&e(60,Er=tt.groupBy),"groupFilter"in tt&&e(61,wr=tt.groupFilter),"groupHeaderSelectable"in tt&&e(62,Xr=tt.groupHeaderSelectable),"itemId"in tt&&e(13,Rn=tt.itemId),"loadOptions"in tt&&e(63,pi=tt.loadOptions),"containerStyles"in tt&&e(14,Ar=tt.containerStyles),"hasError"in tt&&e(15,Qo=tt.hasError),"filterSelectedItems"in tt&&e(64,jn=tt.filterSelectedItems),"required"in tt&&e(16,ki=tt.required),"closeListOnChange"in tt&&e(65,Jr=tt.closeListOnChange),"createGroupHeaderItem"in tt&&e(66,Ks=tt.createGroupHeaderItem),"searchable"in tt&&e(17,Qs=tt.searchable),"inputStyles"in tt&&e(18,el=tt.inputStyles),"clearable"in tt&&e(68,Ee=tt.clearable),"loading"in tt&&e(5,Ke=tt.loading),"listOpen"in tt&&e(6,Ye=tt.listOpen),"debounce"in tt&&e(69,li=tt.debounce),"debounceWait"in tt&&e(70,gi=tt.debounceWait),"hideEmptyState"in tt&&e(19,to=tt.hideEmptyState),"inputAttributes"in tt&&e(71,Sr=tt.inputAttributes),"listAutoWidth"in tt&&e(72,At=tt.listAutoWidth),"showChevron"in tt&&e(20,ln=tt.showChevron),"listOffset"in tt&&e(73,ci=tt.listOffset),"hoverItemIndex"in tt&&e(7,zn=tt.hoverItemIndex),"floatingConfig"in tt&&e(74,ni=tt.floatingConfig),"class"in tt&&e(21,Fr=tt.class),"ariaValues"in tt&&e(75,Me=tt.ariaValues),"ariaListOpen"in tt&&e(76,Ft=tt.ariaListOpen),"ariaFocused"in tt&&e(77,an=tt.ariaFocused),"$$scope"in tt&&e(82,D=tt.$$scope)},t.$$.update=function(){var tt,ii,sr,Zs,Td,Hr;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&$&&function(){if("string"==typeof $){var Hr,ea=(yn||[]).find(function(wu){return wu[Rn]===$});e(3,$=ea||(ec(Hr={},Rn,$),ec(Hr,"label",$),Hr))}else V&&Array.isArray($)&&$.length>0&&e(3,$=$.map(function(wu){return"string"==typeof wu?{value:wu,label:wu}:wu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!Sr&&Qs||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},Sr)),W&&e(27,v.id=W,v),Qs||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&$&&(Array.isArray($)?e(3,$=ui($)):e(3,$=[$])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&$&&e(3,$=null),520&t.$$.dirty[0]&&V&&$&&$.length>1&&bd(),8&t.$$.dirty[0]&&$&&(V?JSON.stringify($)!==JSON.stringify(p)&&bd()&&B("input",$):p&&JSON.stringify($[Rn])===JSON.stringify(p[Rn])||B("input",$)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!$&&V&&p&&B("input",$),6&t.$$.dirty[0]&&!We&&F&&Cd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&le!==m&&(pi||0!==le.length)&&(pi?li(or(_n().mark(function Hr(){var ea;return _n().wrap(function(wu){for(;;)switch(wu.prev=wu.next){case 0:return e(5,Ke=!0),wu.next=3,oe({dispatch:B,loadOptions:pi,convertStringItemsToObjects:wle,filterText:le});case 3:(ea=wu.sent)?(e(5,Ke=ea.loading),e(6,Ye=Ye?ea.listOpen:le.length>0),e(2,We=Ye&&ea.focused),e(52,yn=Er?jo(ea.filteredItems):ea.filteredItems)):(e(5,Ke=!1),e(2,We=!0),e(6,Ye=!0));case 5:case"end":return wu.stop()}},Hr)})),gi):(e(6,Ye=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=G({loadOptions:pi,filterText:le,items:yn,multiple:V,value:$,itemId:Rn,groupBy:Er,label:on,filterSelectedItems:jn,itemFilter:hn,convertStringItemsToObjects:wle,filterGroupedItems:jo})),16777800&t.$$.dirty[0]&&!V&&Ye&&$&&c&&(tt=c.findIndex(function(Hr){return Hr[Rn]===$[Rn]}),ba(tt,!0)),576&t.$$.dirty[0]&&Ye&&V&&e(7,zn=0),16&t.$$.dirty[0]&&le&&e(7,zn=0),128&t.$$.dirty[0]&&B("hoverItem",zn),520&t.$$.dirty[0]&&e(25,i=V?$&&$.length>0:$),33554448&t.$$.dirty[0]&&e(35,r=i&&le.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&Ee&&!Te&&!Ke),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=Ct&&V||V&&0===(null===(ii=$)||void 0===ii?void 0:ii.length)?Ze:$?"":Ze),520&t.$$.dirty[0]&&e(32,a=$?(sr=V&&$.length>0?$.map(function(Hr){return Hr[on]}).join(", "):$[on],Me(sr)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var Hr=c[zn];return Ye&&Hr?Ft(Hr[on],c?c.length:0):an()}()),2097152&t.$$.dirty[1]&&(Hr=yn)&&0!==Hr.length&&!Hr.some(function(ea){return"object"!==wn(ea)})&&$&&(V?!$.some(function(ea){return!ea||!ea[Rn]}):$[Rn])&&(Array.isArray($)?e(3,$=$.map(function(ea){return bu(ea)||ea})):e(3,$=bu()||$)),8712&t.$$.dirty[0]&&e(53,j=V?$?$.map(function(Hr){return Hr[Rn]}):null:$&&$[Rn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||$||B("input",$)),16777800&t.$$.dirty[0]&&Ye&&c&&!V&&!$&&ba(),16777216&t.$$.dirty[0]&&function(Hr){Ye&&B("filter",Hr)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&A&&void 0===(null===(Zs=ni)||void 0===Zs?void 0:Zs.autoUpdate)&&e(81,Pr.autoUpdate=!0,Pr),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&A&&ni&&kh(Object.assign(Pr,ni)),8388608&t.$$.dirty[0]&&e(30,u=!!Gn),8388672&t.$$.dirty[0]&&function(Hr,ea){if(!Hr||!ea)return e(28,Dd=!0);setTimeout(function(){e(28,Dd=!1)},0)}(Gn,Ye),8388673&t.$$.dirty[0]&&Ye&&A&&Gn&&(Td=A.getBoundingClientRect().width,e(23,Gn.style.width=At?Td+"px":"auto",Gn)),128&t.$$.dirty[0]&&e(29,d=zn),70&t.$$.dirty[0]&&F&&Ye&&!We&&xd()},[A,F,We,$,le,Ke,Ye,zn,H,V,ve,Te,on,Rn,Ar,Qo,ki,Qs,el,to,ln,Fr,function(){B("clear",$),e(3,$=void 0),Cd(),xd()},Gn,c,i,f,v,Dd,d,u,l,a,s,o,r,xa,function(tt){if(We)switch(tt.stopPropagation(),tt.key){case"Escape":tt.preventDefault(),Cd();break;case"Enter":if(tt.preventDefault(),Ye){if(0===c.length)break;if($&&!V&&$[Rn]===c[zn][Rn]){Cd();break}Lo(c[zn])}break;case"ArrowDown":tt.preventDefault(),Ye?Do(1):(e(6,Ye=!0),e(26,f=void 0));break;case"ArrowUp":tt.preventDefault(),Ye?Do(-1):(e(6,Ye=!0),e(26,f=void 0));break;case"Tab":if(Ye&&We){if(0===c.length||$&&$[Rn]===c[zn][Rn])return Cd();tt.preventDefault(),Lo(c[zn]),Cd()}break;case"Backspace":if(!V||le.length>0)return;if(V&&$&&$.length>0){if(xa(void 0!==f?f:$.length-1),0===f||void 0===f)break;e(26,f=$.length>f?f-1:void 0)}break;case"ArrowLeft":if(!$||!V||le.length>0)return;void 0===f?e(26,f=$.length-1):$.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!$||!V||le.length>0||void 0===f)return;f===$.length-1?e(26,f=void 0):f<$.length-1&&e(26,f+=1)}},xd,Rs,function(){Te||e(6,Ye=!Ye)},hi,function(tt){var ii;Ye||We||!A||A.contains(tt.target)||null!==(ii=Gn)&&void 0!==ii&&ii.contains(tt.target)||Rs()},js,Zo,function(tt,ii,sr){if(!V)return ii&&ii[sr]===tt[sr]},$l,Sh,xu,kd,function(){hx=!0},E,yn,j,G,oe,W,Ze,Ct,hn,Er,wr,Xr,pi,jn,Jr,Ks,function(){return c},Ee,li,gi,Sr,At,ci,ni,Me,Ft,an,p,m,g,Pr,D,C,function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){return js(tt)},function(tt){return js(tt)},function(tt,ii){return Zo({item:tt,i:ii})},function(tt){Xi[tt?"unshift":"push"](function(){e(23,Gn=tt)})},function(tt){return xa(tt)},function(tt){return ve?xa(tt):{}},function(tt){Xi[tt?"unshift":"push"](function(){e(1,F=tt)})},function(){e(4,le=this.value)},function(tt){Xi[tt?"unshift":"push"](function(){e(0,A=tt)})}]}var ag=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,OJe,MJe,_s,{justValue:53,filter:54,getItems:55,id:56,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:57,placeholderAlwaysShow:58,items:52,label:12,itemFilter:59,groupBy:60,groupFilter:61,groupHeaderSelectable:62,itemId:13,loadOptions:63,containerStyles:14,hasError:15,filterSelectedItems:64,required:16,closeListOnChange:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},fJe,[-1,-1,-1,-1,-1]),r}return Ie(e,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}]),e}();function IJe(t){_i(t,"svelte-1kiph99","table.jse-transform-wizard.svelte-1kiph99.svelte-1kiph99{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-1kiph99 input.svelte-1kiph99{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-1kiph99 tr th.svelte-1kiph99{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99{flex:4;padding:4px 8px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);outline:none;background:var(--jse-input-background);color:inherit}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99:focus{border:var(--jse-input-border-focus)}")}function NJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J,H,pe,A;function N(st){t[16](st)}var F={class:"jse-filter-path",showChevron:!0,items:t[7]};function q(st){t[17](st)}void 0!==t[0]&&(F.value=t[0]),a=new ag({props:F}),Xi.push(function(){return Xu(a,"value",N)});var V={class:"jse-filter-relation",showChevron:!0,items:t[8]};function ce(st){t[19](st)}void 0!==t[1]&&(V.value=t[1]),u=new ag({props:V}),Xi.push(function(){return Xu(u,"value",q)});var ve={class:"jse-sort-path",showChevron:!0,items:t[7]};function je(st){t[20](st)}void 0!==t[3]&&(ve.value=t[3]),C=new ag({props:ve}),Xi.push(function(){return Xu(C,"value",ce)});var Te={class:"jse-sort-direction",showChevron:!0,items:t[9]};function et(st){t[21](st)}void 0!==t[4]&&(Te.value=t[4]),B=new ag({props:Te}),Xi.push(function(){return Xu(B,"value",je)});var We={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:t[6]};return void 0!==t[5]&&(We.value=t[5]),W=new ag({props:We}),Xi.push(function(){return Xu(W,"value",et)}),{c:function(){n=De("table"),e=De("tr"),(i=De("th")).textContent="Filter",r=rt(),o=De("td"),s=De("div"),gt(a.$$.fragment),c=rt(),gt(u.$$.fragment),h=rt(),f=De("input"),p=rt(),m=De("tr"),(g=De("th")).textContent="Sort",v=rt(),y=De("td"),b=De("div"),gt(C.$$.fragment),E=rt(),gt(B.$$.fragment),j=rt(),U=De("tr"),(G=De("th")).textContent="Pick",X=rt(),oe=De("td"),P=De("div"),gt(W.$$.fragment),R(i,"class","svelte-1kiph99"),R(f,"class","jse-filter-value svelte-1kiph99"),R(s,"class","jse-horizontal svelte-1kiph99"),R(g,"class","svelte-1kiph99"),R(b,"class","jse-horizontal svelte-1kiph99"),R(G,"class","svelte-1kiph99"),R(P,"class","jse-horizontal svelte-1kiph99"),R(n,"class","jse-transform-wizard svelte-1kiph99")},m:function(st,$){$e(st,n,$),me(n,e),me(e,i),me(e,r),me(e,o),me(o,s),pt(a,s,null),me(s,c),pt(u,s,null),me(s,h),me(s,f),ip(f,t[2]),me(n,p),me(n,m),me(m,g),me(m,v),me(m,y),me(y,b),pt(C,b,null),me(b,E),pt(B,b,null),me(n,j),me(n,U),me(U,G),me(U,X),me(U,oe),me(oe,P),pt(W,P,null),H=!0,pe||(A=Rt(f,"input",t[18]),pe=!0)},p:function(st,$){var ae=Jn($,1)[0],le={};128&ae&&(le.items=st[7]),!l&&1&ae&&(l=!0,le.value=st[0],Yu(function(){return l=!1})),a.$set(le);var Re={};!d&&2&ae&&(d=!0,Re.value=st[1],Yu(function(){return d=!1})),u.$set(Re),4&ae&&f.value!==st[2]&&ip(f,st[2]);var Ze={};128&ae&&(Ze.items=st[7]),!D&&8&ae&&(D=!0,Ze.value=st[3],Yu(function(){return D=!1})),C.$set(Ze);var Ve={};!z&&16&ae&&(z=!0,Ve.value=st[4],Yu(function(){return z=!1})),B.$set(Ve);var Ct={};64&ae&&(Ct.items=st[6]),!J&&32&ae&&(J=!0,Ct.value=st[5],Yu(function(){return J=!1})),W.$set(Ct)},i:function(st){H||(Q(a.$$.fragment,st),Q(u.$$.fragment,st),Q(C.$$.fragment,st),Q(B.$$.fragment,st),Q(W.$$.fragment,st),H=!0)},o:function(st){fe(a.$$.fragment,st),fe(u.$$.fragment,st),fe(C.$$.fragment,st),fe(B.$$.fragment,st),fe(W.$$.fragment,st),H=!1},d:function(st){st&&Be(n),mt(a),mt(u),mt(C),mt(B),mt(W),pe=!1,A()}}}function FJe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=Ma("jsoneditor:TransformWizard"),C=n.json,D=n.queryOptions,E=void 0===D?{}:D,B=n.onChange,z=["==","!=","<","<=",">",">="].map(function(W){return{value:W,label:W}}),j=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],U=null!==(i=E)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?sb(E.filter.path):null,G=null!==(o=E)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?z.find(function(W){var J;return W.value===(null===(J=E.filter)||void 0===J?void 0:J.relation)}):null,X=(null===(a=E)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",oe=null!==(c=E)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?sb(E.sort.path):null,P=null!==(d=E)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?j.find(function(W){var J;return W.value===(null===(J=E.sort)||void 0===J?void 0:J.direction)}):null;return t.$$set=function(W){"json"in W&&e(11,C=W.json),"queryOptions"in W&&e(10,E=W.queryOptions),"onChange"in W&&e(12,B=W.onChange)},t.$$.update=function(){var W,J,H,pe,A,N,F,q,V,ce,ve,je,Te,et,We,st,$,ae,le,Re,Ze;2048&t.$$.dirty&&e(15,f=Array.isArray(C)),34816&t.$$.dirty&&e(14,p=f?pP(C):[]),34816&t.$$.dirty&&e(13,m=f?pP(C,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(sb)),8192&t.$$.dirty&&e(6,v=m?m.map(sb):[]),1088&t.$$.dirty&&e(5,y=null!==(W=E)&&void 0!==W&&null!==(J=W.projection)&&void 0!==J&&J.paths&&v?E.projection.paths.map(function(le){return v.find(function(Re){return dr(Re.value,le)})}).filter(function(le){return!!le}):null),1&t.$$.dirty&&(pe=(null===(H=U)||void 0===H?void 0:H.value)||null,dr(null===(A=E)||void 0===A||null===(N=A.filter)||void 0===N?void 0:N.path,pe)||(b("changeFilterPath",pe),e(10,E=Qu(E,["filter","path"],pe,!0)),B(E))),2&t.$$.dirty&&(q=(null===(F=G)||void 0===F?void 0:F.value)||null,dr(null===(V=E)||void 0===V||null===(ce=V.filter)||void 0===ce?void 0:ce.relation,q)||(b("changeFilterRelation",q),e(10,E=Qu(E,["filter","relation"],q,!0)),B(E))),4&t.$$.dirty&&(dr(null===(je=E)||void 0===je||null===(Te=je.filter)||void 0===Te?void 0:Te.value,ve=X||null)||(b("changeFilterValue",ve),e(10,E=Qu(E,["filter","value"],ve,!0)),B(E))),8&t.$$.dirty&&(le=(null===(et=oe)||void 0===et?void 0:et.value)||null,dr(null===(Re=E)||void 0===Re||null===(Ze=Re.sort)||void 0===Ze?void 0:Ze.path,le)||(b("changeSortPath",le),e(10,E=Qu(E,["sort","path"],le,!0)),B(E))),16&t.$$.dirty&&(st=(null===(We=P)||void 0===We?void 0:We.value)||null,dr(null===($=E)||void 0===$||null===(ae=$.sort)||void 0===ae?void 0:ae.direction,st)||(b("changeSortDirection",st),e(10,E=Qu(E,["sort","direction"],st,!0)),B(E))),32&t.$$.dirty&&function(le){var Re,Ze;dr(null===(Re=E)||void 0===Re||null===(Ze=Re.projection)||void 0===Ze?void 0:Ze.paths,le)||(b("changeProjectionPaths",le),e(10,E=Qu(E,["projection","paths"],le,!0)),B(E))}(y?y.map(function(le){return le.value}):null)},[U,G,X,oe,P,y,v,g,z,j,E,C,B,m,p,f,function(W){e(0,U=W)},function(W){e(1,G=W)},function(){e(2,X=this.value)},function(W){e(3,oe=W)},function(W){e(4,P=W)},function(W){e(5,y=W),e(10,E),e(6,v),e(13,m),e(15,f),e(11,C)}]}var PJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,FJe,NJe,Pi,{json:11,queryOptions:10,onChange:12},IJe),r}return Ie(e)}();function RJe(t){_i(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function Cle(t,n,e){var i=t.slice();return i[5]=n[e],i}function jJe(t){var n,e;return n=new hr({props:{data:cb}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function LJe(t){var n,e;return n=new hr({props:{data:lb}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Sle(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[LJe,jJe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=De("button"),i.c(),r=rt(),o=sn(d),s=rt(),R(n,"type","button"),R(n,"class","jse-query-language svelte-19cxesy"),R(n,"title",a="Select ".concat(t[5].name," as query language")),Nt(n,"selected",t[5].id===t[0])},m:function(g,v){$e(g,n,v),f[e].m(n,null),me(n,r),me(n,o),me(n,s),l=!0,c||(u=Rt(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):(Ht(),fe(f[y],1,1,function(){f[y]=null}),Ut(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),Q(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&ti(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&R(n,"title",a),(!l||3&v)&&Nt(n,"selected",t[5].id===t[0])},i:function(g){l||(Q(i),l=!0)},o:function(g){fe(i),l=!1},d:function(g){g&&Be(n),f[e].d(),c=!1,u()}}}function BJe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&kle(t);return s=new hr({props:{data:P0}}),{c:function(){n=De("div"),(e=De("div")).textContent="Transform",i=rt(),u&&u.c(),r=rt(),o=De("button"),gt(s.$$.fragment),R(e,"class","jse-title svelte-d01h2s"),R(o,"type","button"),R(o,"class","jse-close svelte-d01h2s"),R(n,"class","jse-header svelte-d01h2s")},m:function(d,h){$e(d,n,h),me(n,e),me(n,i),u&&u.m(n,null),me(n,r),me(n,o),pt(s,o,null),a=!0,l||(c=Rt(o,"click",t[2]),l=!0)},p:function(d,h){var f=Jn(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&Q(u,1)):((u=kle(d)).c(),Q(u,1),u.m(n,r)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut())},i:function(d){a||(Q(u),Q(s.$$.fragment,d),a=!0)},o:function(d){fe(u),fe(s.$$.fragment,d),a=!1},d:function(d){d&&Be(n),u&&u.d(),mt(s),l=!1,c()}}}function zJe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=Aa("simple-modal").close,c=Aa("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(VJe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Xi[h?"unshift":"push"](function(){e(1,i=h)})}]}var GJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,zJe,UJe,Pi,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},HJe),r}return Ie(e)}(),KP=Ma("jsoneditor:AutoScrollHandler"),WJe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},Dle=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||WJe,s=y.a11y||!1,wn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),wn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,wn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},Ak=Ma("jsoneditor:History");function Tle(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){Ak("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){Ak("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,Ak("undo",h),a(),h}},redo:function d(){if(o())return Ak("redo",e[i-=1]),a(),e[i]}}}function j0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var L0=Ma("validation");function Ele(t,n,e,i){return L0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function qJe(t,n,e,i){if(L0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Jd.info}]};if(0===t.length)return null;try{var r=j0(function(){return e.parse(t)},function(l){return L0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:j0(function(){return i.parse(t)},function(l){return L0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=j0(function(){return n(o)},function(l){return L0("validate: validated json in ".concat(l," ms"))});return Ji(s)?null:{validationErrors:s}}catch(l){var a=j0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Kd(c)),!0}catch{return!1}}(t,e)},function(c){return L0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:lk(t,l.message||l.toString()),isRepairable:a}}}var Mk=Ma("jsoneditor:FocusTracker");function QP(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(Mk("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){Mk("blur"),l=!1,a()}))}(0,t.onMount)(function(){Mk("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){Mk("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function YJe(t){_i(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function Ale(t,n,e){var i=t.slice();return i[8]=n[e],i}function Mle(t){var n,e;return n=new hr({props:{data:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Ole(t){var n,e;return n=new hr({props:{data:t[8].icon}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Ile(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&Ole(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=De("button"),d&&d.c(),e=rt(),i=sn(u),r=rt(),R(n,"type","button"),R(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),R(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){$e(p,n,m),d&&d.m(n,null),me(n,e),me(n,i),me(n,r),a=!0,l||(c=[Rt(n,"click",h),Rt(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&Q(d,1)):((d=Ole(t)).c(),Q(d,1),d.m(n,e)):d&&(Ht(),fe(d,1,1,function(){d=null}),Ut()),(!a||8&m)&&u!==(u=t[8].text+"")&&ti(i,u),(!a||8&m&&o!==(o=t[8].title))&&R(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(Q(d),a=!0)},o:function(p){fe(d),a=!1},d:function(p){p&&Be(n),d&&d.d(),l=!1,po(c)}}}function XJe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&Mle(t),f=t[3],p=[],m=0;m100&&jle(t);return{c:function(){n=De("table"),e=De("tbody");for(var u=0;u100?c?c.p(u,d):((c=jle(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&Ple(t);function y(){return t[6](t[7])}return{c:function(){n=De("tr"),e=De("td"),gt(i.$$.fragment),r=rt(),o=De("td"),s=sn(m),a=rt(),l=De("td"),c=sn(g),u=rt(),d=De("td"),v&&v.c(),R(e,"class","jse-validation-error-icon svelte-1oe8e8r"),R(o,"class","svelte-1oe8e8r"),R(l,"class","svelte-1oe8e8r"),R(d,"class","jse-validation-error-action svelte-1oe8e8r"),R(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(b,C){$e(b,n,C),me(n,e),pt(i,e,null),me(n,r),me(n,o),me(o,s),me(n,a),me(n,l),me(l,c),me(n,u),me(n,d),v&&v.m(d,null),h=!0,f||(p=Rt(n,"click",y),f=!0)},p:function(b,C){t=b,(!h||1&C)&&m!==(m=cu(rc(t[7].path))+"")&&ti(s,m),(!h||1&C)&&g!==(g=t[7].message+"")&&ti(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,C),1&C&&Q(v,1)):((v=Ple(t)).c(),Q(v,1),v.m(d,null)):v&&(Ht(),fe(v,1,1,function(){v=null}),Ut())},i:function(b){h||(Q(i.$$.fragment,b),Q(v),h=!0)},o:function(b){fe(i.$$.fragment,b),fe(v),h=!1},d:function(b){b&&Be(n),mt(i),v&&v.d(),f=!1,p()}}}function jle(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=De("tr"),e=De("td"),i=rt(),r=De("td"),o=rt(),s=De("td"),a=sn("(and "),l=sn(h),c=sn(" more errors)"),u=rt(),d=De("td"),R(e,"class","svelte-1oe8e8r"),R(r,"class","svelte-1oe8e8r"),R(s,"class","svelte-1oe8e8r"),R(d,"class","svelte-1oe8e8r"),R(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){$e(f,n,p),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),me(s,a),me(s,l),me(s,c),me(n,u),me(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&ti(l,h)},d:function(f){f&&Be(n)}}}function eKe(t){var n,e,i=!Ji(t[0]),r=i&&Fle(t);return{c:function(){r&&r.c(),n=Dr()},m:function(o,s){r&&r.m(o,s),$e(o,n,s),e=!0},p:function(o,s){var a=Jn(s,1)[0];1&a&&(i=!Ji(o[0])),i?r?(r.p(o,a),1&a&&Q(r,1)):((r=Fle(o)).c(),Q(r,1),r.m(n.parentNode,n)):r&&(Ht(),fe(r,1,1,function(){r=null}),Ut())},i:function(o){e||(Q(r),e=!0)},o:function(o){fe(r),e=!1},d:function(o){r&&r.d(o),o&&Be(n)}}}function tKe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var ZP=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,tKe,eKe,Pi,{validationErrors:0,selectError:1},KJe),r}return Ie(e)}(),nKe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function iKe(t){_i(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function rKe(t){var n,e,i,r,o,s,a,l,c;return s=new hr({props:{data:P0}}),{c:function(){n=De("div"),e=De("div"),i=sn(t[0]),r=rt(),o=De("button"),gt(s.$$.fragment),R(e,"class","jse-title svelte-d01h2s"),R(o,"type","button"),R(o,"class","jse-close svelte-d01h2s"),R(n,"class","jse-header svelte-d01h2s")},m:function(u,d){$e(u,n,d),me(n,e),me(e,i),me(n,r),me(n,o),pt(s,o,null),a=!0,l||(c=Rt(o,"click",t[3]),l=!0)},p:function(u,d){var h=Jn(d,1)[0];(!a||1&h)&&ti(i,u[0])},i:function(u){a||(Q(s.$$.fragment,u),a=!0)},o:function(u){fe(s.$$.fragment,u),a=!1},d:function(u){u&&Be(n),mt(s),l=!1,c()}}}function oKe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=Aa("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var e4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,oKe,rKe,Pi,{title:0,onClose:1},iKe),r}return Ie(e)}();function sKe(t){_i(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function aKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z;return e=new e4({props:{title:"Copying and pasting"}}),{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),(o=De("div")).textContent="These actions are unavailable via the menu. Please use:",s=rt(),a=De("div"),l=De("div"),(c=De("div")).textContent="".concat(t[1],"+C"),u=sn("\n for copy"),d=rt(),h=De("div"),(f=De("div")).textContent="".concat(t[1],"+X"),p=sn("\n for cut"),m=rt(),g=De("div"),(v=De("div")).textContent="".concat(t[1],"+V"),y=sn("\n for paste"),b=rt(),C=De("div"),(D=De("button")).textContent="Close",R(c,"class","jse-key svelte-1olothd"),R(l,"class","jse-shortcut"),R(f,"class","jse-key svelte-1olothd"),R(h,"class","jse-shortcut"),R(v,"class","jse-key svelte-1olothd"),R(g,"class","jse-shortcut"),R(a,"class","jse-shortcuts svelte-1olothd"),R(D,"type","button"),R(D,"class","jse-primary svelte-1olothd"),R(C,"class","jse-actions svelte-1olothd"),R(r,"class","jse-modal-contents svelte-1olothd"),R(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(j,U){$e(j,n,U),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(r,s),me(r,a),me(a,l),me(l,c),me(l,u),me(a,d),me(a,h),me(h,f),me(h,p),me(a,m),me(a,g),me(g,v),me(g,y),me(r,b),me(r,C),me(C,D),E=!0,B||(z=Rt(D,"click",t[0]),B=!0)},p:Bt,i:function(j){E||(Q(e.$$.fragment,j),E=!0)},o:function(j){fe(e.$$.fragment,j),E=!1},d:function(j){j&&Be(n),mt(e),B=!1,z()}}}function lKe(t){return[Aa("simple-modal").close,nKe?"\u2318":"Ctrl"]}var Lle=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,lKe,aKe,Pi,{},sKe),r}return Ie(e)}();function Ble(t){return!!t&&("space"===t.type||!0===t.space)}function Ok(t){return!!t&&("separator"===t.type||!0===t.separator)}function _b(t){return!!t&&"function"==typeof t.onClick}function t4(t){return!!t&&"dropdown-button"===t.type&&_b(t.main)&&Array.isArray(t.items)}function $le(t){return Io(t)&&Io(t.parseError)}function uKe(t){_i(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var dKe=function(t){return{}},Vle=function(t){return{}};function Hle(t,n,e){var i=t.slice();return i[3]=n[e],i}var hKe=function(t){return{}},Ule=function(t){return{}};function fKe(t){var n,e=qle(t[3])+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){1&r&&e!==(e=qle(i[3])+"")&&ti(n,e)},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function pKe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&zle(t),u=t[3].text&&Gle(t);return{c:function(){n=De("button"),c&&c.c(),e=rt(),u&&u.c(),R(n,"type","button"),R(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),R(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){$e(d,n,h),c&&c.m(n,null),me(n,e),u&&u.m(n,null),s=!0,a||(l=Rt(n,"click",function(){Ta(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&Q(c,1)):((c=zle(t)).c(),Q(c,1),c.m(n,e)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()),t[3].text?u?u.p(t,h):((u=Gle(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&R(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&R(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(Q(c),s=!0)},o:function(d){fe(c),s=!1},d:function(d){d&&Be(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function mKe(t){var n;return{c:function(){R(n=De("div"),"class","jse-space svelte-497ud4")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function gKe(t){var n;return{c:function(){R(n=De("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function zle(t){var n,e;return n=new hr({props:{data:t[3].icon}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Gle(t){var n,e=t[3].text+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&ti(n,e)},d:function(i){i&&Be(n)}}}function Wle(t){var n,e,i,r,o,s,a,l=[gKe,mKe,pKe,fKe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!Ok(d[3])),n?0:(null==e&&(e=!!Ble(d[3])),e?1:(null==i&&(i=!!_b(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=Dr()},m:function(d,h){c[r].m(d,h),$e(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):(Ht(),fe(c[f],1,1,function(){c[f]=null}),Ut(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(d){a||(Q(o),a=!0)},o:function(d){fe(o),a=!1},d:function(d){c[r].d(d),d&&Be(s)}}}function vKe(t){for(var n,e,i,r,o=t[2].left,s=Ms(o,t,t[1],Ule),a=t[0],l=[],c=0;c0&&b.height>0}),u),c=u(e);function u(y){var b=y.getBoundingClientRect();return{x:b.left+b.width/2,y:b.top+b.height/2,rect:b,element:y}}function d(y,b){var D=y.x-b.x,E=(y.y-b.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(D*D+E*E)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(v0(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(v0(g.filter(function(y){return o(y.element)}),h)||v0(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Xi[a?"unshift":"push"](function(){e(2,i=a)})}]}var uce=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,rQe,iQe,Pi,{items:0,tip:1},VKe),r}return Ie(e)}();function oQe(t){var n,e;return n=new uce({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function sQe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B=n.json,z=n.documentState,j=n.parser,U=n.showTip,G=n.onCloseContextMenu,X=n.onEditKey,oe=n.onEditValue,P=n.onToggleEnforceString,W=n.onCut,J=n.onCopy,H=n.onPaste,pe=n.onRemove,A=n.onDuplicate,N=n.onExtract,F=n.onInsertBefore,q=n.onInsert,V=n.onConvert,ce=n.onInsertAfter,ve=n.onSort,je=n.onTransform;function Te(){G(),X()}function et(){G(),oe()}function We(){G(),P()}function st(){G(),W(!0)}function $(){G(),W(!1)}function ae(){G(),J(!0)}function le(){G(),J(!1)}function Re(){G(),H()}function Ze(){G(),pe()}function Ve(){G(),A()}function Ct(){G(),N()}function Ot(hn){G(),c?V(hn):q(hn)}function yn(){G(),ve()}function Xn(){G(),je()}function on(){G(),F()}function Ri(){G(),ce()}return t.$$set=function(hn){"json"in hn&&e(2,B=hn.json),"documentState"in hn&&e(3,z=hn.documentState),"parser"in hn&&e(4,j=hn.parser),"showTip"in hn&&e(0,U=hn.showTip),"onCloseContextMenu"in hn&&e(5,G=hn.onCloseContextMenu),"onEditKey"in hn&&e(6,X=hn.onEditKey),"onEditValue"in hn&&e(7,oe=hn.onEditValue),"onToggleEnforceString"in hn&&e(8,P=hn.onToggleEnforceString),"onCut"in hn&&e(9,W=hn.onCut),"onCopy"in hn&&e(10,J=hn.onCopy),"onPaste"in hn&&e(11,H=hn.onPaste),"onRemove"in hn&&e(12,pe=hn.onRemove),"onDuplicate"in hn&&e(13,A=hn.onDuplicate),"onExtract"in hn&&e(14,N=hn.onExtract),"onInsertBefore"in hn&&e(15,F=hn.onInsertBefore),"onInsert"in hn&&e(16,q=hn.onInsert),"onConvert"in hn&&e(17,V=hn.onConvert),"onInsertAfter"in hn&&e(18,ce=hn.onInsertAfter),"onSort"in hn&&e(19,ve=hn.onSort),"onTransform"in hn&&e(20,je=hn.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=z.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==B),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Ji(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?Mn(B,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Io(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Lr(i)||ws(i)||nr(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Lr(i)||nr(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&hb(i)&&!s&&!Array.isArray(Mn(B,tr(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&hb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!zo(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?ng(i)&&!Io(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,b=m?ng(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,C=m?ng(i)&&zo(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,D=null!=i&&mf(a,z.enforceStringMap,dn(i.focusPath),j)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,E=[{type:"row",items:[{type:"button",onClick:Te,icon:N0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:et,icon:N0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:N0,text:l,title:"Edit the value (Double-click on the value)",onClick:et,disabled:!f},{type:"button",icon:D?lb:cb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:We,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:st,icon:I0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:I0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:st,disabled:!c},{type:"button",icon:I0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:$,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ae,icon:xp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:xp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ae,disabled:!c},{type:"button",icon:xp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:le,disabled:!c}]},{type:"button",onClick:Re,icon:Aae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:Ve,icon:Rae,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:Ct,icon:PXe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:yn,icon:xk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:Xn,icon:yk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ze,icon:BP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return Ot("structure")},icon:m?bk:F0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return Ot("object")},icon:m?bk:F0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return Ot("array")},icon:m?bk:F0,text:"Array",title:g+" array",disabled:!b},{type:"button",onClick:function(){return Ot("value")},icon:m?bk:F0,text:"Value",title:g+" value",disabled:!C}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:on,icon:NXe,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Ri,icon:MXe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[U,E,B,z,j,G,X,oe,P,W,J,H,pe,A,N,F,q,V,ce,ve,je,s,c,C,g,m,b,y,v,d,u,o,p,D,f,l,h,i,a,r]}var aQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,sQe,oQe,Pi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Ie(e)}();function lQe(t){_i(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function dce(t,n,e){var i=t.slice();return i[13]=n[e],i}function hce(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=De("button"),e=sn("show "),i=sn(c),r=sn("-"),o=sn(u),s=rt(),R(n,"type","button"),R(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){$e(h,n,f),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),a||(l=Rt(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&ti(i,c),16&f&&u!==(u=t[13].end+"")&&ti(o,u)},d:function(h){h&&Be(n),a=!1,l()}}}function cQe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&b.end<=E.start)&&B.push(b),E.start>=(z?b.end:v.end)&&B.push(E),a=B))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var hQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dQe,cQe,Pi,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},lQe),r}return Ie(e)}();function fQe(t){_i(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function pQe(t){var n,e,i,r,o;return e=new hr({props:{data:hu}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-context-menu-pointer svelte-1yzl4st"),R(n,"title",hN),Nt(n,"jse-selected",t[0])},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Rt(n,"click",t[1]),r=!0)},p:function(s,a){var l=Jn(a,1)[0];(!i||1&l)&&Nt(n,"jse-selected",s[0])},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function mQe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var Sp=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,mQe,pQe,Pi,{selected:0,onContextMenu:2},fQe),r}return Ie(e)}();function gQe(t){_i(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function vQe(t){var n,e,i,r,o,s,a,l=[bQe,_Qe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=De("div"),i.c(),R(n,"data-type","selectable-key"),R(n,"class",r=Mo(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){$e(d,n,h),c[e].m(n,null),o=!0,s||(a=Rt(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):(Ht(),fe(c[f],1,1,function(){c[f]=null}),Ut(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),Q(i,1),i.m(n,null)),(!o||1&h&&r!==(r=Mo(d[6](d[0]))+" svelte-24a1b2"))&&R(n,"class",r)},i:function(d){o||(Q(i),o=!0)},o:function(d){fe(i),o=!1},d:function(d){d&&Be(n),c[e].d(),s=!1,a()}}}function yQe(t){var n,e;return n=new mae({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function _Qe(t){var n,e=eg(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){5&r&&e!==(e=eg(i[2].normalization.escapeValue(i[0]))+"")&&ti(n,e)},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function bQe(t){var n,e;return n=new Eae({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function pce(t){var n,e;return n=new Sp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function xQe(t){var n,e,i,r,o,s=[yQe,vQe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&pce(t);return{c:function(){e.c(),i=rt(),c&&c.c(),r=Dr()},m:function(u,d){a[n].m(u,d),$e(u,i,d),c&&c.m(u,d),$e(u,r,d),o=!0},p:function(u,d){var h=Jn(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):(Ht(),fe(a[f],1,1,function(){a[f]=null}),Ut(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),Q(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()):c?(c.p(u,h),28&h&&Q(c,1)):((c=pce(u)).c(),Q(c,1),c.m(r.parentNode,r))},i:function(u){o||(Q(e),Q(c),o=!0)},o:function(u){fe(e),fe(c),o=!1},d:function(u){a[n].d(u),u&&Be(i),c&&c.d(u),u&&Be(r)}}}function wQe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&ws(l):void 0),2056&t.$$.dirty&&e(4,r=i&&yp(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(du(o,!0)))},function(h){return ch("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=tr(o).concat(p);d.onSelect(f===pN?br(m,!1):du(m,!1)),f!==fN&&d.focus()},function(){d.onSelect(du(o,!1)),d.focus()},o,s,l,u]}var CQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wQe,xQe,Pi,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},gQe),r}return Ie(e)}();function mce(t,n,e){var i=t.slice();return i[8]=n[e],i}function gce(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=mk(u.selection),v=f.findIndex(function(U){return dr(U.path,g)}),y=0,b=v,C=function(){var U;return null===(U=f[b+1])||void 0===U?void 0:U.height};void 0!==C()&&Math.abs(m)>y+C()/2;)y+=C(),b+=1;var E=Mn(h,tr(g)),B=Array.isArray(E),z=null===(d=f[B?b:b+1])||void 0===d?void 0:d.path,j=b-v;return z?{beforePath:z,offset:j}:{append:!0,offset:j}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,b,C,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=tr(d.focusPath),g=Mn(u,m);if(!(p||f&&A0(f,m)&&f.length>m.length))return[];var v=D0(d),y=mk(d),b=Bn(v),C=Bn(y),D=f?f[m.length]:void 0;if(!Oo(g)){if(ao(g)){var E=Ys(b),B=Ys(C),z=void 0!==D?Ys(D):g.length;return lP(B-E+1,zU?[].concat(ui(j.slice(U,G+1)),ui(j.slice(X,j.length))).map(function(oe){return ig(m,oe)}):[].concat(ui(j.slice(X,U)),ui(j.slice(G+1,j.length))).map(function(oe){return ig(m,oe)}):[]}(n,o,s),l=Mn(n,tr(D0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=D0(m=u.selection),y=mk(m),b=f.findIndex(function(B){return dr(B.path,v)}),C=f.findIndex(function(B){return dr(B.path,y)}),Fs(p,null===(d=f[b+g])||void 0===d?void 0:d.path,null===(h=f[C+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function hh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Zv(e,n)})}function EQe(t){_i(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function AQe(t){var n,e,i,r,o,s;return e=new hr({props:{data:rg}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){$e(a,n,l),pt(e,n,null),r=!0,o||(s=[Rt(n,"click",function(){Ta(t[0])&&t[0].apply(this,arguments)}),Ea(i=LP.call(null,n,nt({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Jn(l,1)[0];t=a,i&&Ta(i.update)&&2&c&&i.update.call(null,nt({text:t[1]},t[2]))},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){fe(e.$$.fragment,a),r=!1},d:function(a){a&&Be(n),mt(e),o=!1,po(s)}}}function MQe(t,n,e){var i,r=Aa("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var V0=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,MQe,AQe,_s,{validationError:3,onExpand:0},EQe),r}return Ie(e)}();function OQe(t){_i(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var IQe=function(t){return{}},vce=function(t){return{}};function yce(t,n,e){var i=t.slice();return i[53]=n[e],i}var NQe=function(t){return{}},_ce=function(t){return{}};function bce(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function xce(t,n,e){var i=t.slice();return i[50]=n[e],i}var FQe=function(t){return{}},wce=function(t){return{}};function PQe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),d=t[34].identifier,h=Ms(d,t,t[35],vce),f=!t[17]&&Cce();o=new TQe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:kae(t[6],t[9]),context:t[8]}});var p=u&&Sce(t),m=t[15]&&kce(t),g=!t[17]&&Dce(t);return{c:function(){n=De("div"),e=De("div"),h&&h.c(),i=rt(),f&&f.c(),r=rt(),gt(o.$$.fragment),s=rt(),p&&p.c(),a=rt(),m&&m.c(),l=rt(),g&&g.c(),R(e,"class","jse-contents svelte-1wlxti1"),R(n,"class","jse-contents-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(v,y){$e(v,n,y),me(n,e),h&&h.m(e,null),me(e,i),f&&f.m(e,null),me(e,r),pt(o,e,null),me(e,s),p&&p.m(e,null),me(n,a),m&&m.m(n,null),me(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Is(h,d,v,v[35],c?Os(d,v[35],y,IQe):Ns(v[35]),vce),v[17]?f&&(f.d(1),f=null):f||((f=Cce()).c(),f.m(e,r));var b={};2&y[0]&&(b.path=v[1]),1&y[0]&&(b.value=v[0]),8192&y[0]&&(b.enforceString=v[13]),65664&y[0]&&(b.selection=v[16]?v[7]:void 0),576&y[0]&&(b.searchResultItems=kae(v[6],v[9])),256&y[0]&&(b.context=v[8]),o.$set(b),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(nr(v[7])||Lr(v[7]))&&!v[7].edit&&dr(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&Q(p,1)):((p=Sce(v)).c(),Q(p,1),p.m(e,null)):p&&(Ht(),fe(p,1,1,function(){p=null}),Ut()),v[15]?m?(m.p(v,y),32768&y[0]&&Q(m,1)):((m=kce(v)).c(),Q(m,1),m.m(n,l)):m&&(Ht(),fe(m,1,1,function(){m=null}),Ut()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=Dce(v)).c(),g.m(n,null)),(!c||262144&y[0])&&R(n,"style",v[18])},i:function(v){c||(Q(h,v),Q(o.$$.fragment,v),Q(p),Q(m),c=!0)},o:function(v){fe(h,v),fe(o.$$.fragment,v),fe(p),fe(m),c=!1},d:function(v){v&&Be(n),h&&h.d(v),f&&f.d(),mt(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function RQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),C=[BQe,LQe],D=[];function E(A,N){return A[12]?0:1}r=E(t),o=D[r]=C[r](t);var B=t[34].identifier,z=Ms(B,t,t[35],_ce),j=!t[17]&&Tce();function U(A,N){return A[12]?VQe:$Qe}var G=U(t),X=G(t),oe=b&&Ece(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Ace(t);function W(A,N){return A[12]?UQe:A[17]?void 0:HQe}var J=W(t),H=J&&J(t),pe=t[12]&&Mce(t);return{c:function(){n=De("div"),e=De("div"),i=De("button"),o.c(),s=rt(),z&&z.c(),a=rt(),j&&j.c(),l=rt(),c=De("div"),u=De("div"),X.c(),d=rt(),oe&&oe.c(),h=rt(),P&&P.c(),f=rt(),H&&H.c(),p=rt(),pe&&pe.c(),m=Dr(),R(i,"type","button"),R(i,"class","jse-expand svelte-1wlxti1"),R(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),R(u,"class","jse-meta-inner svelte-1wlxti1"),R(c,"class","jse-meta svelte-1wlxti1"),R(c,"data-type","selectable-value"),R(e,"class","jse-header svelte-1wlxti1"),R(n,"class","jse-header-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(A,N){$e(A,n,N),me(n,e),me(e,i),D[r].m(i,null),me(e,s),z&&z.m(e,null),me(e,a),j&&j.m(e,null),me(e,l),me(e,c),me(c,u),X.m(u,null),me(e,d),oe&&oe.m(e,null),me(n,h),P&&P.m(n,null),me(n,f),H&&H.m(n,null),$e(A,p,N),pe&&pe.m(A,N),$e(A,m,N),g=!0,v||(y=Rt(i,"click",t[21]),v=!0)},p:function(A,N){var F=r;(r=E(A))===F?D[r].p(A,N):(Ht(),fe(D[F],1,1,function(){D[F]=null}),Ut(),(o=D[r])?o.p(A,N):(o=D[r]=C[r](A)).c(),Q(o,1),o.m(i,null)),z&&z.p&&(!g||16&N[1])&&Is(z,B,A,A[35],g?Os(B,A[35],N,NQe):Ns(A[35]),_ce),A[17]?j&&(j.d(1),j=null):j||((j=Tce()).c(),j.m(e,l)),G===(G=U(A))&&X?X.p(A,N):(X.d(1),(X=G(A))&&(X.c(),X.m(u,null))),65922&N[0]&&(b=!A[8].readOnly&&A[16]&&A[7]&&(nr(A[7])||Lr(A[7]))&&!A[7].edit&&dr(A[7].focusPath,A[1])),b?oe?(oe.p(A,N),65922&N[0]&&Q(oe,1)):((oe=Ece(A)).c(),Q(oe,1),oe.m(e,null)):oe&&(Ht(),fe(oe,1,1,function(){oe=null}),Ut()),!A[15]||A[12]&&A[15].isChildError?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),36864&N[0]&&Q(P,1)):((P=Ace(A)).c(),Q(P,1),P.m(n,f)),J===(J=W(A))&&H?H.p(A,N):(H&&H.d(1),(H=J&&J(A))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&R(n,"style",A[18]),A[12]?pe?(pe.p(A,N),4096&N[0]&&Q(pe,1)):((pe=Mce(A)).c(),Q(pe,1),pe.m(m.parentNode,m)):pe&&(Ht(),fe(pe,1,1,function(){pe=null}),Ut())},i:function(A){g||(Q(o),Q(z,A),Q(oe),Q(P),Q(pe),g=!0)},o:function(A){fe(o),fe(z,A),fe(oe),fe(P),fe(pe),g=!1},d:function(A){A&&Be(n),D[r].d(),z&&z.d(A),j&&j.d(),X.d(),oe&&oe.d(),P&&P.d(),H&&H.d(),A&&Be(p),pe&&pe.d(A),A&&Be(m),v=!1,y()}}}function jQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),C=[WQe,GQe],D=[];function E(A,N){return A[12]?0:1}r=E(t),o=D[r]=C[r](t);var B=t[34].identifier,z=Ms(B,t,t[35],wce),j=!t[17]&&Fce();function U(A,N){return A[12]?YQe:qQe}var G=U(t),X=G(t),oe=b&&Pce(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Rce(t);function W(A,N){return A[12]?JQe:XQe}var J=W(t),H=J(t),pe=t[12]&&jce(t);return{c:function(){n=De("div"),e=De("div"),i=De("button"),o.c(),s=rt(),z&&z.c(),a=rt(),j&&j.c(),l=rt(),c=De("div"),u=De("div"),X.c(),d=rt(),oe&&oe.c(),h=rt(),P&&P.c(),f=rt(),H.c(),p=rt(),pe&&pe.c(),m=Dr(),R(i,"type","button"),R(i,"class","jse-expand svelte-1wlxti1"),R(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),R(u,"class","jse-meta-inner svelte-1wlxti1"),R(u,"data-type","selectable-value"),R(c,"class","jse-meta svelte-1wlxti1"),R(e,"class","jse-header svelte-1wlxti1"),R(n,"class","jse-header-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(A,N){$e(A,n,N),me(n,e),me(e,i),D[r].m(i,null),me(e,s),z&&z.m(e,null),me(e,a),j&&j.m(e,null),me(e,l),me(e,c),me(c,u),X.m(u,null),me(e,d),oe&&oe.m(e,null),me(n,h),P&&P.m(n,null),me(n,f),H.m(n,null),$e(A,p,N),pe&&pe.m(A,N),$e(A,m,N),g=!0,v||(y=Rt(i,"click",t[21]),v=!0)},p:function(A,N){var F=r;(r=E(A))===F?D[r].p(A,N):(Ht(),fe(D[F],1,1,function(){D[F]=null}),Ut(),(o=D[r])?o.p(A,N):(o=D[r]=C[r](A)).c(),Q(o,1),o.m(i,null)),z&&z.p&&(!g||16&N[1])&&Is(z,B,A,A[35],g?Os(B,A[35],N,FQe):Ns(A[35]),wce),A[17]?j&&(j.d(1),j=null):j||((j=Fce()).c(),j.m(e,l)),G===(G=U(A))&&X?X.p(A,N):(X.d(1),(X=G(A))&&(X.c(),X.m(u,null))),65922&N[0]&&(b=!A[8].readOnly&&A[16]&&A[7]&&(nr(A[7])||Lr(A[7]))&&!A[7].edit&&dr(A[7].focusPath,A[1])),b?oe?(oe.p(A,N),65922&N[0]&&Q(oe,1)):((oe=Pce(A)).c(),Q(oe,1),oe.m(e,null)):oe&&(Ht(),fe(oe,1,1,function(){oe=null}),Ut()),!A[15]||A[12]&&A[15].isChildError?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),36864&N[0]&&Q(P,1)):((P=Rce(A)).c(),Q(P,1),P.m(n,f)),J===(J=W(A))&&H?H.p(A,N):(H.d(1),(H=J(A))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&R(n,"style",A[18]),A[12]?pe?(pe.p(A,N),4096&N[0]&&Q(pe,1)):((pe=jce(A)).c(),Q(pe,1),pe.m(m.parentNode,m)):pe&&(Ht(),fe(pe,1,1,function(){pe=null}),Ut())},i:function(A){g||(Q(o),Q(z,A),Q(oe),Q(P),Q(pe),g=!0)},o:function(A){fe(o),fe(z,A),fe(oe),fe(P),fe(pe),g=!1},d:function(A){A&&Be(n),D[r].d(),z&&z.d(A),j&&j.d(),X.d(),oe&&oe.d(),P&&P.d(),H.d(),A&&Be(p),pe&&pe.d(A),A&&Be(m),v=!1,y()}}}function Cce(t){var n;return{c:function(){(n=De("div")).textContent=":",R(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function Sce(t){var n,e,i;return e=new Sp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){$e(r,n,o),pt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){fe(e.$$.fragment,r),i=!1},d:function(r){r&&Be(n),mt(e)}}}function kce(t){var n,e;return n=new V0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Dce(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),R(n,"data-type","insert-selection-area-after")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[30]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function LQe(t){var n,e;return n=new hr({props:{data:_p}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function BQe(t){var n,e;return n=new hr({props:{data:hu}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Tce(t){var n;return{c:function(){(n=De("div")).textContent=":",R(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function $Qe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=De("div")).textContent="{",e=rt(),i=De("button"),r=sn(d),o=rt(),s=sn(h),a=rt(),(l=De("div")).textContent="}",R(n,"class","jse-bracket svelte-1wlxti1"),R(i,"type","button"),R(i,"class","jse-tag svelte-1wlxti1"),R(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){$e(f,n,p),$e(f,e,p),$e(f,i,p),me(i,r),me(i,o),me(i,s),$e(f,a,p),$e(f,l,p),c||(u=Rt(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&ti(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&ti(s,h)},d:function(f){f&&Be(n),f&&Be(e),f&&Be(i),f&&Be(a),f&&Be(l),c=!1,u()}}}function VQe(t){var n;return{c:function(){(n=De("div")).textContent="{",R(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},p:Bt,d:function(e){e&&Be(n)}}}function Ece(t){var n,e,i;return e=new Sp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){$e(r,n,o),pt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){fe(e.$$.fragment,r),i=!1},d:function(r){r&&Be(n),mt(e)}}}function Ace(t){var n,e;return n=new V0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function HQe(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),R(n,"data-type","insert-selection-area-after")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[30]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function UQe(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),R(n,"data-type","insert-selection-area-inside")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[29]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function Mce(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Js(t[7])),c=l&&Oce(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=rt(),p&&p.c(),R(n,"class","jse-props svelte-1wlxti1"),R(o,"data-type","selectable-value"),R(o,"class","jse-footer svelte-1wlxti1"),R(r,"class","jse-footer-outer svelte-1wlxti1"),R(r,"style",t[18])},m:function(m,g){$e(m,n,g),c&&c.m(n,null),me(n,e);for(var v=0;v]',s=rt(),v&&v.c(),R(n,"class","jse-items svelte-1wlxti1"),R(o,"data-type","selectable-value"),R(o,"class","jse-footer svelte-1wlxti1"),R(r,"class","jse-footer-outer svelte-1wlxti1"),R(r,"style",t[18])},m:function(y,b){$e(y,n,b),d&&d.m(n,null),me(n,e);for(var C=0;C=Ve.start&&ae<=Ve.end});if(!le)return null;mse(le.start,Math.min(p.length,le.end),function(Ve){return et(String(Ve))})}else Object.keys(p).forEach(et);return Te}(D,l||$m);if(z("dragSelectionStart",{selection:D,items:F}),F){var q=D0(D),V=F.findIndex(function(ve){return dr(ve.path,q)}),ce=r4({json:E.getJson(),documentState:E.getDocumentState(),deltaY:0,items:F}).offset;e(11,G={initialTarget:A.target,initialClientY:A.clientY,initialContentTop:W(),selectionStartIndex:V,selectionItemsCount:hae(D).length,items:F,offset:ce,didMoveItems:!1}),ya.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",pe)}else z("Cannot drag the current selection (probably spread over multiple sections)")}else B(A)}},function(A){ya.selecting||ya.dragging||(A.stopPropagation(),tg(A.target,"data-type","selectable-value")?e(10,j="hover-collection"):tg(A.target,"data-type","insert-selection-area-inside")?e(10,j="hover-insert-inside"):tg(A.target,"data-type","insert-selection-area-after")&&e(10,j="hover-insert-after"),clearTimeout(U))},function(A){A.stopPropagation(),U=setTimeout(function(){return e(10,j=void 0)})},function(A){A.shiftKey||(A.stopPropagation(),A.preventDefault(),E.onSelect(gf(m)))},function(A){A.shiftKey||(A.stopPropagation(),A.preventDefault(),E.onSelect(vf(m)))},function(A){E.onSelect(gf(m)),E.onContextMenu(A)},function(A){E.onSelect(vf(m)),E.onContextMenu(A)},B,h,f]}var o4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ZQe,QQe,Pi,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},OQe,[-1,-1]),r}return Ie(e)}(),eZe=o4,tZe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},nZe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},s4={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},iZe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function rZe(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function oZe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,b=n.onRedo,C=n.onSort,D=n.onTransform,E=n.onContextMenu,B=n.onCopy,z=n.onRenderMenu;function j(){e(1,p=!p)}return t.$$set=function(U){"json"in U&&e(2,u=U.json),"selection"in U&&e(3,d=U.selection),"readOnly"in U&&e(4,h=U.readOnly),"showSearch"in U&&e(1,p=U.showSearch),"historyState"in U&&e(5,m=U.historyState),"onExpandAll"in U&&e(6,g=U.onExpandAll),"onCollapseAll"in U&&e(7,v=U.onCollapseAll),"onUndo"in U&&e(8,y=U.onUndo),"onRedo"in U&&e(9,b=U.onRedo),"onSort"in U&&e(10,C=U.onSort),"onTransform"in U&&e(11,D=U.onTransform),"onContextMenu"in U&&e(12,E=U.onContextMenu),"onCopy"in U&&e(13,B=U.onCopy),"onRenderMenu"in U&&e(14,z=U.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Lr(d)||ws(d)||nr(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:tZe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!zo(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:nZe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!zo(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:HP,title:"Search (Ctrl+F)",className:"jse-search",onClick:j,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:xp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:B,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:C,disabled:h||void 0===u},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:D,disabled:h||void 0===u},l,{type:"button",icon:Nae,title:hN,className:"jse-contextmenu",onClick:E},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:b,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=z(c)||c)},[o,p,u,d,h,m,g,v,y,b,C,D,E,B,z,s,a,l,c,r,i]}var sZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,oZe,rZe,Pi,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Ie(e)}();function aZe(t){_i(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function zce(t){var n;return{c:function(){(n=De("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',R(n,"class","svelte-1q2qkk2")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function lZe(t){var n,e,i,r,o,s,a,l=!t[0]&&zce();return{c:function(){n=De("div"),e=De("div"),i=rt(),r=De("div"),o=sn("Empty document\n "),l&&l.c(),s=rt(),a=De("div"),R(e,"class","jse-space jse-before svelte-1q2qkk2"),R(r,"class","jse-contents svelte-1q2qkk2"),R(a,"class","jse-space jse-after svelte-1q2qkk2"),R(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){$e(c,n,u),me(n,e),me(n,i),me(n,r),me(r,o),l&&l.m(r,null),me(n,s),me(n,a)},p:function(c,u){Jn(u,1),c[0]?l&&(l.d(1),l=null):l||((l=zce()).c(),l.m(r,null))},i:Bt,o:Bt,d:function(c){c&&Be(n),l&&l.d()}}}function cZe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var uZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,cZe,lZe,Pi,{readOnly:0},aZe),r}return Ie(e)}(),a4={},dZe={get exports(){return a4},set exports(t){a4=t}},Gce=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(ao(Mn(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function fZe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function pZe(t,n){return function(e,i){var r=Mn(e,t),o=Mn(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=Mn(t,n);return[{op:"replace",path:dn(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Io(t))return function hZe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Mn(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*l4(u,d)});for(var s=[],a=0;axb&&Xce();return{c:function(){n=De("div");for(var d=0;dxb?u?u.p(d,f):((u=Xce()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:Bt,o:Bt,d:function(d){d&&Be(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=Mn(l,g);if(Array.isArray(v))return rP(0,v.length).map(String);if(Io(v)){var y=Object.keys(v).slice(0);return y.sort(l4),y}return[]},function(g){return nu(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Xi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Xi[g?"unshift":"push"](function(){e(4,o=g)})}]}var OZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,MZe,AZe,Pi,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},DZe),r}return Ie(e)}();function IZe(t){_i(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function rue(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",P=!t[4]&&oue(t),W=[FZe,NZe],J=[];function H(A,N){return A[2]?0:1}a=H(t),l=J[a]=W[a](t),y=new hr({props:{data:BXe}}),D=new hr({props:{data:IXe}}),z=new hr({props:{data:P0}});var pe=t[0]&&!t[4]&&sue(t);return{c:function(){n=De("div"),e=De("form"),P&&P.c(),i=rt(),r=De("div"),o=De("div"),s=De("div"),l.c(),c=rt(),u=De("label"),d=De("input"),h=rt(),f=De("div"),p=sn(oe),m=sn(t[10]),g=rt(),v=De("button"),gt(y.$$.fragment),b=rt(),C=De("button"),gt(D.$$.fragment),E=rt(),B=De("button"),gt(z.$$.fragment),j=rt(),pe&&pe.c(),R(s,"class","jse-search-icon svelte-3lbrbf"),R(d,"class","jse-search-input svelte-3lbrbf"),R(d,"title","Enter text to search"),R(d,"type","text"),R(d,"placeholder","Find"),R(u,"class","jse-search-input-label svelte-3lbrbf"),R(u,"about","jse-search input"),R(f,"class","jse-search-count svelte-3lbrbf"),Nt(f,"jse-visible",""!==t[8]),R(v,"type","button"),R(v,"class","jse-search-next svelte-3lbrbf"),R(v,"title","Go to next search result (Enter)"),R(C,"type","button"),R(C,"class","jse-search-previous svelte-3lbrbf"),R(C,"title","Go to previous search result (Shift+Enter)"),R(B,"type","button"),R(B,"class","jse-search-clear svelte-3lbrbf"),R(B,"title","Close search box (Esc)"),R(o,"class","jse-search-section svelte-3lbrbf"),R(r,"class","jse-search-contents svelte-3lbrbf"),R(e,"class","jse-search-form svelte-3lbrbf"),R(n,"class","jse-search-box svelte-3lbrbf")},m:function(A,N){$e(A,n,N),me(n,e),P&&P.m(e,null),me(e,i),me(e,r),me(r,o),me(o,s),J[a].m(s,null),me(o,c),me(o,u),me(u,d),ip(d,t[8]),me(o,h),me(o,f),me(f,p),me(f,m),me(o,g),me(o,v),pt(y,v,null),me(o,b),me(o,C),pt(D,C,null),me(o,E),me(o,B),pt(z,B,null),me(r,j),pe&&pe.m(r,null),U=!0,G||(X=[Rt(d,"input",t[21]),Ea(RZe.call(null,d)),Rt(v,"click",t[22]),Rt(C,"click",t[23]),Rt(B,"click",t[24]),Rt(e,"submit",t[12]),Rt(e,"keydown",t[13])],G=!0)},p:function(A,N){A[4]?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),16&N&&Q(P,1)):((P=oue(A)).c(),Q(P,1),P.m(e,i));var F=a;(a=H(A))===F?J[a].p(A,N):(Ht(),fe(J[F],1,1,function(){J[F]=null}),Ut(),(l=J[a])?l.p(A,N):(l=J[a]=W[a](A)).c(),Q(l,1),l.m(s,null)),256&N&&d.value!==A[8]&&ip(d,A[8]),(!U||8&N)&&oe!==(oe=(-1!==A[3]?"".concat(A[3]+1,"/"):"")+"")&&ti(p,oe),(!U||1024&N)&&ti(m,A[10]),(!U||256&N)&&Nt(f,"jse-visible",""!==A[8]),A[0]&&!A[4]?pe?pe.p(A,N):((pe=sue(A)).c(),pe.m(r,null)):pe&&(pe.d(1),pe=null)},i:function(A){U||(Q(P),Q(l),Q(y.$$.fragment,A),Q(D.$$.fragment,A),Q(z.$$.fragment,A),U=!0)},o:function(A){fe(P),fe(l),fe(y.$$.fragment,A),fe(D.$$.fragment,A),fe(z.$$.fragment,A),U=!1},d:function(A){A&&Be(n),P&&P.d(),J[a].d(),mt(y),mt(D),mt(z),pe&&pe.d(),G=!1,po(X)}}}function oue(t){var n,e,i,r,o;return e=new hr({props:{data:t[0]?hu:_p}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-replace-toggle svelte-3lbrbf"),R(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Rt(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?hu:_p),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function NZe(t){var n,e;return n=new hr({props:{data:HP}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function FZe(t){var n,e;return n=new hr({props:{data:AXe,spin:!0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function sue(t){var n,e,i,r,o,s,a,l;return{c:function(){n=De("div"),e=De("input"),i=rt(),(r=De("button")).textContent="Replace",o=rt(),(s=De("button")).textContent="All",R(e,"class","jse-replace-input svelte-3lbrbf"),R(e,"title","Enter replacement text"),R(e,"type","text"),R(e,"placeholder","Replace"),R(r,"type","button"),R(r,"title","Replace current occurrence (Ctrl+Enter)"),R(r,"class","svelte-3lbrbf"),R(s,"type","button"),R(s,"title","Replace all occurrences"),R(s,"class","svelte-3lbrbf"),R(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){$e(c,n,u),me(n,e),ip(e,t[9]),me(n,i),me(n,r),me(n,o),me(n,s),a||(l=[Rt(e,"input",t[25]),Rt(r,"click",t[14]),Rt(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&ip(e,c[9])},d:function(c){c&&Be(n),a=!1,po(l)}}}function PZe(t){var n,e,i=t[1]&&rue(t);return{c:function(){i&&i.c(),n=Dr()},m:function(r,o){i&&i.m(r,o),$e(r,n,o),e=!0},p:function(r,o){var s=Jn(o,1)[0];r[1]?i?(i.p(r,s),2&s&&Q(i,1)):((i=rue(r)).c(),Q(i,1),i.m(n.parentNode,n)):i&&(Ht(),fe(i,1,1,function(){i=null}),Ut())},i:function(r){e||(Q(i),e=!0)},o:function(r){fe(i),e=!1},d:function(r){i&&i.d(r),r&&Be(n)}}}function RZe(t){t.select()}function jZe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?bo:g,y=n.onPrevious,b=void 0===y?bo:y,C=n.onNext,D=void 0===C?bo:C,E=n.onReplace,B=void 0===E?bo:E,z=n.onReplaceAll,j=void 0===z?bo:z,U=n.onClose,G=void 0===U?bo:U,X="",oe="",P="";function W(){e(0,f=!f&&!m)}function J(){m||B(X,P)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,b=H.onPrevious),"onNext"in H&&e(6,D=H.onNext),"onReplace"in H&&e(18,B=H.onReplace),"onReplaceAll"in H&&e(19,j=H.onReplaceAll),"onClose"in H&&e(7,G=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=p0(v,300)),1048832&t.$$.dirty&&r(X),2&t.$$.dirty&&s&&""!==X&&v(X)},[f,s,a,d,m,b,D,G,X,P,i,W,function(H){H.preventDefault(),X!==oe?(oe=X,r.cancel(),v(X)):D()},function(H){H.stopPropagation();var pe=gp(H);"Enter"===pe&&(H.preventDefault(),D()),"Shift+Enter"===pe&&(H.preventDefault(),b()),"Ctrl+Enter"===pe&&(H.preventDefault(),f?J():D()),"Ctrl+H"===pe&&(H.preventDefault(),W()),"Escape"===pe&&(H.preventDefault(),G())},J,function(){m||j(X,P)},c,v,B,j,r,function(){e(8,X=this.value)},function(){return D()},function(){return b()},function(){return G()},function(){e(9,P=this.value)}]}var LZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,jZe,PZe,Pi,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},IZe),r}return Ie(e)}(),aue=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function BZe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',R(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function tet(t){var n,e,i,r,o,s,a,l,c,u=[iet,net],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=De("label"),e=De("input"),i=rt(),o.c(),s=Dr(),R(e,"type","text"),e.readOnly="readonly",R(e,"tabindex","-1"),R(e,"class","jse-hidden-input svelte-qojdc1"),R(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){$e(f,n,p),me(n,e),t[76](e),$e(f,i,p),d[r].m(f,p),$e(f,s,p),a=!0,l||(c=Rt(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Ht(),fe(d[m],1,1,function(){d[m]=null}),Ut(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){fe(o),a=!1},d:function(f){f&&Be(n),t[76](null),f&&Be(i),d[r].d(f),f&&Be(s),l=!1,c()}}}function net(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new LZe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new eZe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:bo}});var m=t[18]&&yue(t),g=t[23]&&_ue(t);return f=new ZP({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=De("div"),gt(s.$$.fragment),a=rt(),l=De("div"),gt(c.$$.fragment),u=rt(),m&&m.c(),d=rt(),g&&g.c(),h=rt(),gt(f.$$.fragment),R(o,"class","jse-search-box-container svelte-qojdc1"),R(l,"class","jse-contents svelte-qojdc1"),R(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){$e(v,o,y),pt(s,o,null),$e(v,a,y),$e(v,l,y),pt(c,l,null),t[77](l),$e(v,u,y),m&&m.m(v,y),$e(v,d,y),g&&g.m(v,y),$e(v,h,y),pt(f,v,y),p=!0},p:function(v,y){var b,C,D,E,B={};524288&y[0]&&(B.show=v[19]),131072&y[0]&&(B.resultCount=(null===(b=v[17])||void 0===b||null===(C=b.items)||void 0===C?void 0:C.length)||0),131072&y[0]&&(B.activeIndex=(null===(D=v[17])||void 0===D?void 0:D.activeIndex)||0),1048576&y[0]&&(B.showReplace=v[20]),2097152&y[0]&&(B.searching=v[21]),1&y[0]&&(B.readOnly=v[0]),s.$set(B);var z={};1024&y[0]&&(z.value=v[10]),65536&y[0]&&(z.expandedMap=v[16].expandedMap),65536&y[0]&&(z.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(z.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(z.validationErrorsMap=v[24]),131072&y[0]&&(z.searchResultItemsMap=null===(E=v[17])||void 0===E?void 0:E.itemsMap),65536&y[0]&&(z.selection=v[16].selection),8192&y[0]&&(z.context=v[13]),c.$set(z),v[18]?m?(m.p(v,y),262144&y[0]&&Q(m,1)):((m=yue(v)).c(),Q(m,1),m.m(d.parentNode,d)):m&&(Ht(),fe(m,1,1,function(){m=null}),Ut()),v[23]?g?(g.p(v,y),8388608&y[0]&&Q(g,1)):((g=_ue(v)).c(),Q(g,1),g.m(h.parentNode,h)):g&&(Ht(),fe(g,1,1,function(){g=null}),Ut());var j={};4096&y[0]&&(j.validationErrors=v[12]),f.$set(j)},i:function(v){p||(Q(s.$$.fragment,v),Q(c.$$.fragment,v),Q(m),Q(g),Q(f.$$.fragment,v),p=!0)},o:function(v){fe(s.$$.fragment,v),fe(c.$$.fragment,v),fe(m),fe(g),fe(f.$$.fragment,v),p=!1},d:function(v){v&&Be(o),mt(s),v&&Be(a),v&&Be(l),mt(c),t[77](null),v&&Be(u),m&&m.d(v),v&&Be(d),g&&g.d(v),v&&Be(h),mt(f,v)}}}function iet(t){var n,e,i,r,o=[oet,ret],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=Dr()},m:function(l,c){s[n].m(l,c),$e(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(Ht(),fe(s[u],1,1,function(){s[u]=null}),Ut(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),Q(e,1),e.m(i.parentNode,i))},i:function(l){r||(Q(e),r=!0)},o:function(l){fe(e),r=!1},d:function(l){s[n].d(l),l&&Be(i)}}}function yue(t){var n,e;return n=new ad({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:_k,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function _ue(t){var n,e;return n=new ad({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:mb,text:"Ok",onClick:t[8]},{icon:bp,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:mb,text:"Ok",onClick:i[8]},{icon:bp,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function ret(t){var n,e,i,r;return n=new ad({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:bp,text:"Repair manually",onClick:t[47]}]}}),i=new mue({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){gt(n.$$.fragment),e=rt(),gt(i.$$.fragment)},m:function(o,s){pt(n,o,s),$e(o,e,s),pt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:bp,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){fe(n.$$.fragment,o),fe(i.$$.fragment,o),r=!1},d:function(o){mt(n,o),o&&Be(e),mt(i,o)}}}function oet(t){var n,e;return n=new uZe({props:{readOnly:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function set(t){var n,e,i,r,o,s,a,l,c=t[1]&&gue(t),u=t[2]&&vue(t),h=[];return o=h[r=t[25]?1:0]=[tet,eet][r](t),{c:function(){n=De("div"),c&&c.c(),e=rt(),u&&u.c(),i=rt(),o.c(),R(n,"class","jse-tree-mode svelte-qojdc1"),Nt(n,"no-main-menu",!t[1])},m:function(f,p){$e(f,n,p),c&&c.m(n,null),me(n,e),u&&u.m(n,null),me(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[Rt(QZe,"mousedown",t[49]),Rt(n,"keydown",t[41]),Rt(n,"mousedown",t[42]),Rt(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&Q(c,1)):((c=gue(f)).c(),Q(c,1),c.m(n,e)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()),f[2]?u?(u.p(f,p),4&p[0]&&Q(u,1)):((u=vue(f)).c(),Q(u,1),u.m(n,i)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut()),o.p(f,p),(!s||2&p[0])&&Nt(n,"no-main-menu",!f[1])},i:function(f){s||(Q(c),Q(u),Q(o),s=!0)},o:function(f){fe(c),fe(u),fe(o),s=!1},d:function(f){f&&Be(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,po(l)}}}function aet(t,n,e){var i,r=Ma("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=Aa("simple-modal").open,h=mp(),f=mp(),p=Aa("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=Dle(),b=n.readOnly,C=n.externalContent,D=n.mainMenuBar,E=n.navigationBar,B=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,j=n.parser,U=n.parseMemoizeOne,G=n.validator,X=n.validationParser,oe=n.pathParser,P=n.indentation,W=n.onError,J=n.onChange,H=n.onChangeMode,pe=n.onRenderValue,A=n.onRenderMenu,N=n.onClassName,F=n.onFocus,q=n.onBlur,V=n.onSortModal,ce=n.onTransformModal,ve=n.onJSONEditorModal,je=!1;QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(l)},hasFocus:function(){return je&&document.hasFocus()||dk(l)},onFocus:function(){v=!0,F&&F()},onBlur:function(){v=!1,q&&q()}});var Te=void 0;function et(Me){r("updateSelection",Me);var ct="function"==typeof Me?Me(le.selection):Me;dr(ct,le.selection)||e(16,le=nt(nt({},le),{},{selection:ct}))}var We,st,$,ae=!1,le=fk(),Re=!1,Ze=!1,Ve=!1,Ct="";function Ot(Me){return yn.apply(this,arguments)}function yn(){return(yn=or(_n().mark(function Me(ct){return _n().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return r("search text updated",ct),e(74,Ct=ct),Ft.next=4,tc();case 4:return Ft.next=6,vr();case 6:case"end":return Ft.stop()}},Me)}))).apply(this,arguments)}function Xn(){return(Xn=or(_n().mark(function Me(){return _n().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return e(17,We=We?rXe(We):void 0),ct.next=3,vr();case 3:case"end":return ct.stop()}},Me)}))).apply(this,arguments)}function on(){return(on=or(_n().mark(function Me(){return _n().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return e(17,We=We?oXe(We):void 0),ct.next=3,vr();case 3:case"end":return ct.stop()}},Me)}))).apply(this,arguments)}function Ri(){return(Ri=or(_n().mark(function Me(ct,Ft){var en,an,cn,hi;return _n().wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:if(an=null===(en=We)||void 0===en?void 0:en.activeItem,r("handleReplace",{replacementText:Ft,activeItem:an}),an){yi.next=4;break}return yi.abrupt("return");case 4:return cn=sXe(c,le,Ft,an,j),hi=cn.newSelection,ni(cn.operations,function(Lo,js){return{state:nt(nt({},js),{},{selection:hi})}}),yi.next=8,tc();case 8:return yi.next=10,vr();case 10:case"end":return yi.stop()}},Me)}))).apply(this,arguments)}function hn(){return(hn=or(_n().mark(function Me(ct,Ft){var en,cn;return _n().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return r("handleReplaceAll",{text:ct,replacementText:Ft}),en=aXe(c,le,ct,Ft,j),cn=en.newSelection,ni(en.operations,function(hi,yi){return{state:nt(nt({},yi),{},{selection:cn})}}),Gn.next=5,tc();case 5:return Gn.next=7,vr();case 7:case"end":return Gn.stop()}},Me)}))).apply(this,arguments)}function vr(){return Er.apply(this,arguments)}function Er(){return(Er=or(_n().mark(function Me(){var ct,Ft,en;return _n().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(Ft=null===(ct=We)||void 0===ct?void 0:ct.activeItem,r("focusActiveSearchResult",We),!Ft){an.next=9;break}return e(16,le=nt(nt({},TP(c,le,en=Ft.path)),{},{selection:void 0})),an.next=7,tc();case 7:return an.next=9,mn(en);case 9:case"end":return an.stop()}},Me)}))).apply(this,arguments)}var Si,Xr,fr=Tle({onChange:function(Me){e(22,wr=Me)}}),wr=fr.getState(),Ro=aP(function(Me,ct){if(""===Me)return r("clearing search result"),void(void 0!==We&&e(17,We=void 0));e(21,Ve=!0),setTimeout(function(){r("searching...",Me);var an,cn,Gn,hi,yi,Lo,js,Ft=xae(Me,ct,1e3);e(17,(an=Ft,Gn=null!=(cn=We)&&cn.activeItem?Sae(cn.activeItem):void 0,hi=an.findIndex(function(Zo){return dr(Gn,Sae(Zo))}),yi=-1!==hi?hi:void 0!==cn?.activeIndex&&cn?.activeIndex0?0:-1,js=(Lo=an.map(function(Zo,Do){return nt(nt({},Zo),{},{active:Do===yi})}))[yi],We={items:Lo,itemsMap:g0(Lo,function(Zo){return dn(Zo.path)}),activeItem:js,activeIndex:yi})),e(21,Ve=!1)})},300),Rn=!1,kt=[],pi=wb(Ele);function Bi(Me,ct,Ft,en){j0(function(){var an;try{an=pi(Me,ct,Ft,en)}catch(cn){an=[{path:[],message:"Failed to validate: "+cn.message,severity:Jd.warning}]}dr(an,kt)||(r("validationErrors changed:",an),e(12,kt=an))},function(an){return r("validationErrors updated in ".concat(an," ms"))})}function Ar(){return r("validate"),Te?{parseError:Te,isRepairable:!1}:(Bi(c,G,j,X),Ji(kt)?null:{validationErrors:kt})}function ko(){return c}function Qo(){return le}function jn(Me){ae||(ae=!0,e(16,le=uu(Me,le,[],Cse({json:Me},10240)?lh:db)))}function di(Me){void 0!==le.selection&&(le.selection&&nu(Me,le.selection.anchorPath)&&nu(Me,le.selection.focusPath)||(r("clearing selection: path does not exist anymore",le.selection),e(16,le=nt(nt({},le),{},{selection:T0(Me,le)}))))}function ki(Me){var ct=Me.previousJson,Ft=Me.previousState,en=Me.previousText,an=Me.previousTextIsRepaired;void 0===ct&&void 0===en||(void 0!==c?fr.add(void 0!==ct?{undo:{patch:[{op:"replace",path:"",value:ct}],state:pl(Ft),json:void 0,text:en,textIsRepaired:an},redo:{patch:[{op:"replace",path:"",value:c}],state:pl(le),json:void 0,text:u,textIsRepaired:Rn}}:{undo:{patch:void 0,json:void 0,text:en,state:pl(Ft),textIsRepaired:an},redo:{patch:void 0,json:c,state:pl(le),text:u,textIsRepaired:Rn}}):void 0!==ct&&fr.add({undo:{patch:void 0,json:ct,state:pl(Ft),text:en,textIsRepaired:an},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Rn,state:pl(le)}}))}function Nr(Me,ct){if(r("patch",Me,ct),void 0===c)throw new Error("Cannot apply patch: no JSON");var Ft={json:c,text:u},en=c,an=le,cn=u,Gn=Rn,hi=_ae(c,Me),yi=Zse(c,le,Me),Lo=E0(c,Me),js=function(Sh,Sd){return void 0!==Sd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?nt(nt({},Sh),{},{selection:Sd}):Sh}(yi.documentState,Lo,!1);r("patch updatedSelection",Lo);var Zo="function"==typeof ct?ct(yi.json,js):void 0;e(10,c=Zo&&void 0!==Zo.json?Zo.json:yi.json);var Do=Zo&&void 0!==Zo.state?Zo.state:js;e(16,le=Do),e(11,u=void 0),e(23,Rn=!1),e(18,$=void 0),di(c),fr.add({undo:{patch:hi,json:void 0,text:cn,state:pl(an),textIsRepaired:Gn},redo:{patch:Me,json:void 0,state:pl(Do),text:u,textIsRepaired:Rn}});var $l={json:c,previousJson:en,undo:hi,redo:Me};return ai(Ft,$l),$l}function Jr(){!b&&le.selection&&et(du(le.selection.focusPath,!0))}function co(){if(!b&&le.selection){var Me=le.selection.focusPath,ct=Mn(c,Me);zo(ct)?(r("openJSONEditorModal",{path:Ft=Me,value:en=ct}),je=!0,ve({content:{json:en},path:Ft,onPatch:Xr.onPatch,onClose:function(){je=!1,Rs()}})):et(br(Me,!0))}var Ft,en}function Ks(){if(!b&&nr(le.selection)){var Me=le.selection.focusPath,ct=dn(Me),Ft=Mn(c,Me),en=!mf(Ft,le.enforceStringMap,ct,j),an=en?String(Ft):e0(String(Ft),j);r("handleToggleEnforceString",{enforceString:en,value:Ft,updatedValue:an}),ni([{op:"replace",path:ct,value:an}],function(cn,Gn){return{state:Qse(Gn,ct,en)}})}}function Cr(){return Qs.apply(this,arguments)}function Qs(){return Qs=or(_n().mark(function Me(){var ct,Ft=arguments;return _n().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return ct=!(Ft.length>0&&void 0!==Ft[0])||Ft[0],en.next=3,uue({json:c,documentState:le,indentation:ct?P:void 0,readOnly:b,parser:j,onPatch:ni});case 3:case"end":return en.stop()}},Me)})),Qs.apply(this,arguments)}function Za(){return el.apply(this,arguments)}function el(){return el=or(_n().mark(function Me(){var ct,Ft=arguments;return _n().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(ct=!(Ft.length>0&&void 0!==Ft[0])||Ft[0],void 0!==c){en.next=3;break}return en.abrupt("return");case 3:return en.next=5,due({json:c,documentState:le,indentation:ct?P:void 0,parser:j});case 5:case"end":return en.stop()}},Me)})),el.apply(this,arguments)}function $c(){d(Lle,{},nt(nt({},Vm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Rs()}})}function Ee(Me,ct){d(Xle,{text:Me,onParse:ak,onRepair:bse,onApply:ct},nt(nt({},Vm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Rs()}})}function qe(){fue({json:c,text:u,documentState:le,keepSelection:!1,readOnly:b,onChange:J,onPatch:ni})}function Ke(){!b&&void 0!==c&&le.selection&&M0(le.selection)&&!Ji(le.selection.focusPath)&&(r("duplicate",{selection:le.selection}),ni(gae(c,hae(le.selection))))}function dt(){b||!le.selection||!Lr(le.selection)&&!nr(le.selection)||Ji(le.selection.focusPath)||(r("extract",{selection:le.selection}),ni(function(ct,Ft){if(nr(Ft))return[{op:"move",from:dn(Ft.focusPath),path:""}];if(!Lr(Ft))throw new Error("Cannot create extract operations: parent must be an Object or Array");var en=Mn(ct,tr(Ft.focusPath));if(ao(en))return[{op:"replace",path:"",value:Ft.paths.map(function(cn){var Gn=Ys(Bn(cn));return en[Gn]})}];if(Oo(en)){var an={};return Ft.paths.forEach(function(cn){var Gn=String(Bn(cn));an[Gn]=en[Gn]}),[{op:"replace",path:"",value:an}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Ft))}(c,le.selection),function(ct,Ft){if(zo(ct))return{state:vp(ct,Ft,[])}}))}function Ye(Me){void 0!==c&&Fk({insertType:Me,selectInside:!0,refJsonEditor:l,json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onReplaceJson:kr})}function In(Me){ws(le.selection)&&et(br(le.selection.focusPath,!1)),Ye(Me)}function li(Me){if(!b&&le.selection)if(ng(le.selection))try{var ct=le.selection.anchorPath,Ft=Mn(c,ct),en=function(cn,Gn,hi){if("array"===Gn){if(Array.isArray(cn))return cn;if(Io(cn))return vse(cn);if("string"==typeof cn)try{var yi=hi.parse(cn);if(Array.isArray(yi))return yi;if(Io(yi))return vse(yi)}catch{return[cn]}return[cn]}if("object"===Gn){if(Array.isArray(cn))return gse(cn);if(Io(cn))return cn;if("string"==typeof cn)try{var Lo=hi.parse(cn);if(Io(Lo))return Lo;if(Array.isArray(Lo))return gse(Lo)}catch{return{value:cn}}return{value:cn}}if("value"===Gn)return zo(cn)?hi.stringify(cn):cn;throw new Error("Cannot convert ".concat(IN(cn,hi)," to ").concat(Gn))}(Ft,Me,j);if(en===Ft)return;var an=[{op:"replace",path:dn(ct),value:en}];r("handleConvert",{selection:le.selection,path:ct,type:Me,operations:an}),ni(an,function(cn,Gn){return{state:vp(cn,Gn,le.selection.focusPath)}})}catch(cn){W(cn)}else W(new Error("Cannot convert current selection to ".concat(Me)))}function vi(){var Me=aae(c,le,!1),ct=tr(le.selection.focusPath);!Ji(Me.focusPath)&&dr(ct,tr(Me.focusPath))?et(vf(Me.focusPath)):et(gf(ct)),r("insert before",{selection:le.selection,selectionBefore:Me,parentPath:ct}),tc().then(Bl)}function gi(){var Me=Lr(le.selection)?Bn(le.selection.paths):le.selection.focusPath;r("insert after",Me),et(vf(Me)),tc().then(Bl)}function Mr(Me){return to.apply(this,arguments)}function to(){return(to=or(_n().mark(function Me(ct){return _n().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,pue({char:ct,selectInside:!0,refJsonEditor:l,json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onReplaceJson:kr,onSelect:et});case 2:case"end":return Ft.stop()}},Me)}))).apply(this,arguments)}function xi(){if(!b&&fr.getState().canUndo){var Me=fr.undo();if(Me){var ct={json:c,text:u};e(10,c=Me.undo.patch?ed(c,Me.undo.patch):Me.undo.json),e(16,le=Me.undo.state),e(11,u=Me.undo.text),e(23,Rn=Me.undo.textIsRepaired),r("undo",{item:Me,json:c,documentState:le}),ai(ct,{json:c,previousJson:ct.json,redo:Me.undo.patch,undo:Me.redo.patch}),Rs(),le.selection&&mn(le.selection.focusPath,!1)}}}function Sr(){if(!b&&fr.getState().canRedo){var Me=fr.redo();if(Me){var ct={json:c,text:u};e(10,c=Me.redo.patch?ed(c,Me.redo.patch):Me.redo.json),e(16,le=Me.redo.state),e(11,u=Me.redo.text),e(23,Rn=Me.redo.textIsRepaired),r("redo",{item:Me,json:c,documentState:le}),ai(ct,{json:c,previousJson:ct.json,redo:Me.redo.patch,undo:Me.undo.patch}),Rs(),le.selection&&mn(le.selection.focusPath,!1)}}}function Fe(Me){var ct;b||void 0===c||(je=!0,V({id:h,json:c,rootPath:Me,onSort:(ct=or(_n().mark(function Ft(en){var an;return _n().wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:r("onSort",Me,an=en.operations),ni(an,function(Gn,hi){return{state:nt(nt({},vp(Gn,hi,Me)),{},{selection:br(Me,!1)})}});case 3:case"end":return cn.stop()}},Ft)})),function(Ft){return ct.apply(this,arguments)}),onClose:function(){je=!1,Rs()}}))}function At(){le.selection&&Fe(uae(c,le.selection))}function Gt(Me){var Ft=Me.rootPath,en=Me.onTransform,an=Me.onClose;void 0!==c&&Ft&&(je=!0,ce({id:Me.id||f,json:c,rootPath:Ft,onTransform:en?function(cn){en({operations:cn,json:c,transformedJson:ed(c,cn)})}:function(cn){r("onTransform",Ft,cn),ni(cn,function(Gn,hi){return{state:nt(nt({},vp(Gn,hi,Ft)),{},{selection:br(Ft,!1)})}})},onClose:function(){je=!1,Rs(),an&&an()}}))}function ln(){le.selection&&Gt({rootPath:uae(c,le.selection)})}function mn(Me){return ci.apply(this,arguments)}function ci(){return ci=or(_n().mark(function Me(ct){var Ft,en,an,cn,hi=arguments;return _n().wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:return Ft=!(hi.length>1&&void 0!==hi[1])||hi[1],e(16,le=TP(c,le,tr(ct))),yi.next=4,tc();case 4:if(!(en=$i(ct))){yi.next=14;break}if(r("scrollTo",{path:ct,elem:en,refContents:s}),an=s.getBoundingClientRect(),cn=en.getBoundingClientRect(),Ft){yi.next=12;break}if(!(cn.bottom>an.top&&cn.topFt.bottom-20&&y(ct,{container:s,offset:-(Ft.height-an-20),duration:0})}}function ai(Me,ct){(void 0!==Me.json||void 0!==Me?.text)&&(void 0!==u?J({text:u,json:void 0},Me,{contentErrors:Ar(),patchResult:ct}):void 0!==c&&J({text:void 0,json:c},Me,{contentErrors:Ar(),patchResult:ct}))}function ni(Me,ct){if(!b)return r("handlePatch",Me,ct),Nr(Me,ct)}function kr(Me,ct){var Ft=le,en=c,an=u,cn={json:c,text:u},Gn=Rn,hi=uu(c,le,[],lh),yi="function"==typeof ct?ct(Me,hi):void 0;e(10,c=yi&&void 0!==yi.json?yi.json:Me),e(16,le=yi&&void 0!==yi.state?yi.state:hi),e(11,u=void 0),e(23,Rn=!1),di(c),ki({previousJson:en,previousState:Ft,previousText:an,previousTextIsRepaired:Gn}),ai(cn,null)}function Fr(Me,ct){r("handleChangeText");var Ft=le,en=c,an=u,cn={json:c,text:u},Gn=Rn;try{e(10,c=U(Me)),e(16,le=uu(c,le,[],lh)),e(11,u=void 0),e(23,Rn=!1)}catch{try{e(10,c=U(Kd(Me))),e(16,le=uu(c,le,[],lh)),e(11,u=Me),e(23,Rn=!0)}catch{e(10,c=void 0),e(16,le=fk({json:c,expand:lh})),e(11,u=Me),e(23,Rn=!1)}}if("function"==typeof ct){var hi=ct(c,le);e(10,c=hi&&hi.json?hi.json:c),e(16,le=hi&&hi.state?hi.state:le)}di(c),ki({previousJson:en,previousState:Ft,previousText:an,previousTextIsRepaired:Gn}),ai(cn,null)}function jo(Me,ct){var Ft=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Me,expanded:ct,recursive:Ft}),e(16,le=ct?Ft?uu(c,le,Me,db):function XYe(t,n){return nt(nt({},t),{},{expandedMap:nt(nt({},t.expandedMap),{},ec({},dn(n),!0))})}(le,Me):Kse(le,Me)),le.selection&&!ct&&function KYe(t,n){return A0(t.focusPath,n)&&(t.focusPath.length>n.length||Js(t))}(le.selection,Me)&&et(void 0),setTimeout(function(){dk(l)||Rs()})}function ba(Me){r("openFind",{findAndReplace:Me}),e(19,Re=!1),e(20,Ze=!1),tc().then(function(){e(19,Re=!0),e(20,Ze=Me)})}function bd(Me,ct){r("handleExpandSection",Me,ct);var an,cn,Gn,Ft=dn(Me);e(16,(cn=Ft,Gn=ct,le=nt(nt({},an=le),{},{visibleSectionsMap:nt(nt({},an.visibleSectionsMap),{},ec({},cn,Jse(pk(an,cn).concat(Gn))))})))}function bu(Me){r("pasted json as text",Me),e(18,$=Me)}function xa(Me){je=!0;var Lo=m(aQe,{json:c,documentState:le,parser:j,showTip:Me.showTip,onEditKey:Jr,onEditValue:co,onToggleEnforceString:Ks,onCut:Cr,onCopy:Za,onPaste:$c,onRemove:qe,onDuplicate:Ke,onExtract:dt,onInsertBefore:vi,onInsert:In,onConvert:li,onInsertAfter:gi,onSort:At,onTransform:ln,onCloseContextMenu:function(){g(Lo),Rs()}},{left:Me.left,top:Me.top,offsetTop:Me.offsetTop,offsetLeft:Me.offsetLeft,width:Me.width,height:Me.height,anchor:Me.anchor,closeOnOuterClick:!0,onClose:function(){je=!1,Rs()}})}function Bl(Me){if(!b&&!yp(le.selection)){if(Me&&(Me.stopPropagation(),Me.preventDefault()),Me&&"contextmenu"===Me.type&&Me.target!==a)xa({left:Me.clientX,top:Me.clientY,width:260,height:336,showTip:!1});else{var ct,Ft=null===(ct=s)||void 0===ct?void 0:ct.querySelector(".jse-context-menu-pointer.jse-selected");if(Ft)xa({anchor:Ft,offsetTop:2,width:260,height:336,showTip:!1});else{var en,an=null===(en=s)||void 0===en?void 0:en.getBoundingClientRect();an&&xa({top:an.top+2,left:an.left+2,width:260,height:336,showTip:!1})}}return!1}}function xd(){return(xd=or(_n().mark(function Me(){var ct,Ft,en;return _n().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return r("apply pasted json",$),Ft=(ct=$).path,en=ct.contents,et(br(Ft,!1)),an.next=5,tc();case 5:ni([{op:"replace",path:dn(Ft),value:en}],function(cn,Gn){return{state:vp(cn,Gn,Ft)}});case 7:case"end":return an.stop()}},Me)}))).apply(this,arguments)}function Rs(){r("focus"),a&&(a.focus(),a.select())}function wd(Me){return ct=c,Ft=le,an=tr(en=Me),cn=[Bn(en)],(hi=(Gn=Mn(ct,an))?NP(Gn,Ft,cn):void 0)?br(an.concat(hi),!1):vf(en);var ct,Ft,en,an,cn,Gn,hi}function Cd(Me){i&&i.onDrag(Me)}function TT(){i&&i.onDragEnd()}return t.$$set=function(Me){"readOnly"in Me&&e(0,b=Me.readOnly),"externalContent"in Me&&e(50,C=Me.externalContent),"mainMenuBar"in Me&&e(1,D=Me.mainMenuBar),"navigationBar"in Me&&e(2,E=Me.navigationBar),"escapeControlCharacters"in Me&&e(51,B=Me.escapeControlCharacters),"escapeUnicodeCharacters"in Me&&e(52,z=Me.escapeUnicodeCharacters),"parser"in Me&&e(3,j=Me.parser),"parseMemoizeOne"in Me&&e(53,U=Me.parseMemoizeOne),"validator"in Me&&e(54,G=Me.validator),"validationParser"in Me&&e(55,X=Me.validationParser),"pathParser"in Me&&e(4,oe=Me.pathParser),"indentation"in Me&&e(5,P=Me.indentation),"onError"in Me&&e(6,W=Me.onError),"onChange"in Me&&e(56,J=Me.onChange),"onChangeMode"in Me&&e(57,H=Me.onChangeMode),"onRenderValue"in Me&&e(58,pe=Me.onRenderValue),"onRenderMenu"in Me&&e(7,A=Me.onRenderMenu),"onClassName"in Me&&e(59,N=Me.onClassName),"onFocus"in Me&&e(60,F=Me.onFocus),"onBlur"in Me&&e(61,q=Me.onBlur),"onSortModal"in Me&&e(62,V=Me.onSortModal),"onTransformModal"in Me&&e(63,ce=Me.onTransformModal),"onJSONEditorModal"in Me&&e(64,ve=Me.onJSONEditorModal)},t.$$.update=function(){var Me,ct;3145728&t.$$.dirty[1]&&e(73,st=yP({escapeControlCharacters:B,escapeUnicodeCharacters:z})),524288&t.$$.dirty[1]&&function vt(Me){void 0!==Me.json&&function(ct){if(void 0!==ct){var Ft=!dr(c,ct);if(r("update external json",{isChanged:Ft,currentlyText:void 0===c}),Ft){var en={json:c,text:u},an=le,cn=c,Gn=u,hi=Rn;e(10,c=ct),jn(c),e(11,u=void 0),e(23,Rn=!1),di(c),ki({previousJson:cn,previousState:an,previousText:Gn,previousTextIsRepaired:hi}),ai(en,null)}}}(Me.json),void 0!==Me.text&&function(ct){if(void 0!==ct&&void 0===C.json){var Ft=ct!==u;if(r("update external text",{isChanged:Ft}),Ft){var en={json:c,text:u},an=c,cn=le,Gn=u,hi=Rn;try{e(10,c=U(ct)),jn(c),e(11,u=ct),e(23,Rn=!1),Te=void 0}catch(yi){try{e(10,c=U(Kd(ct))),jn(c),e(11,u=ct),e(23,Rn=!0),Te=void 0,di(c)}catch{e(10,c=void 0),e(11,u=C.text),e(23,Rn=!1),Te=lk(u,yi.message||yi.toString())}}di(c),ki({previousJson:an,previousState:cn,previousText:Gn,previousTextIsRepaired:hi}),ai(en,null)}}}(Me.text)}(C),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&Ro(Ct,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Bi(c,G,j,X),4096&t.$$.dirty[0]&&e(24,(ct={},(Me=kt).forEach(function(Ft){ct[dn(Ft.path)]=Ft}),Me.forEach(function(Ft){for(var en=Ft.path;en.length>0;){var an=dn(en=tr(en));an in ct||(ct[an]={isChildError:!0,path:en,message:"Contains invalid data",severity:Jd.warning})}}),Si=ct)),512&t.$$.dirty[0]&&(i=s?function(Me){var ct,Ft;function en(hi){return hi<20?200:hi<50?400:1200}function an(){Me&&(Me.scrollTop+=.05*(ct||0))}function cn(hi){Ft&&hi===ct||(Gn(),KP("startAutoScroll",hi),ct=hi,Ft=setInterval(an,50))}function Gn(){Ft&&(KP("stopAutoScroll"),clearInterval(Ft),Ft=void 0,ct=void 0)}return KP("createAutoScrollHandler",Me),{onDrag:function(hi){if(Me){var yi=hi.clientY,Lo=Me.getBoundingClientRect(),js=Lo.top,Zo=Lo.bottom;yiZo?cn(en(yi-Zo)):Gn()}},onDragEnd:function(){Gn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Xr={readOnly:b,parser:j,normalization:st,getJson:ko,getDocumentState:Qo,findElement:$i,findNextInside:wd,focus:Rs,onPatch:ni,onInsert:Ye,onExpand:jo,onSelect:et,onFind:ba,onExpandSection:bd,onPasteJson:bu,onRenderValue:pe,onContextMenu:xa,onClassName:N||function(){},onDrag:Cd,onDragEnd:TT}),8192&t.$$.dirty[0]&&r("context changed",Xr)},[b,D,E,j,oe,P,W,A,function(){return Rn&&void 0!==c&&kr(c),{json:c,text:u}},s,c,u,kt,Xr,a,l,le,We,$,Re,Ze,Ve,wr,Rn,Si,o,Ot,function(){return Xn.apply(this,arguments)},function(){return on.apply(this,arguments)},function(Me,ct){return Ri.apply(this,arguments)},function(Me,ct){return hn.apply(this,arguments)},function(){e(19,Re=!1),e(20,Ze=!1),Ot(""),Rs()},function(Me){r("select validation error",Me),et(br(Me.path,!1)),mn(Me.path)},Za,function(Me){Me.preventDefault(),hue({clipboardText:Me.clipboardData.getData("text/plain"),json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onChangeText:Fr,openRepairModal:Ee})},xi,Sr,function(){Fe([])},function(){Gt({rootPath:[]})},function(){jo([],!0,!0)},function(){jo([],!1,!0)},function(Me){var ct=gp(Me),Ft=Me.shiftKey;if(r("keydown",{combo:ct,key:Me.key}),"Ctrl+X"===ct&&(Me.preventDefault(),Cr(!0)),"Ctrl+Shift+X"===ct&&(Me.preventDefault(),Cr(!1)),"Ctrl+C"===ct&&(Me.preventDefault(),Za(!0)),"Ctrl+Shift+C"===ct&&(Me.preventDefault(),Za(!1)),"Ctrl+D"===ct&&(Me.preventDefault(),Ke()),"Delete"!==ct&&"Backspace"!==ct||(Me.preventDefault(),qe()),"Insert"===ct&&(Me.preventDefault(),Ye("structure")),"Ctrl+A"===ct&&(Me.preventDefault(),et(br([],!1))),"Ctrl+Q"===ct&&Bl(Me),"ArrowUp"===ct||"Shift+ArrowUp"===ct){Me.preventDefault();var en=le.selection?aae(c,le,Ft,!0)||le.selection:T0(c,le);et(en),zn(en.focusPath)}if("ArrowDown"===ct||"Shift+ArrowDown"===ct){Me.preventDefault();var an=le.selection?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Lr(Pr)?Pr.focusPath:Bn(Pr.paths),xu=NP(Do,$l,lc),kd=xu,kh=xu;if(null===xu||null==kd||null==kh)return null;if(Sh){var Dd=NP(Do,zo(Mn(Do,lc))?Kse($l,lc):$l,lc);return null===Dd?null:rd(Pr)?Fs(Do,Dd,Dd):Js(Pr)?Fs(Do,kd,kh):Fs(Do,Pr.anchorPath,Dd)}if(ws(Pr)){var hx=Mn(Do,tr(xu));return Array.isArray(hx)?br(kh,!1):du(kh,!1)}return nr(Pr)?br(kh,!1):Js(Pr)?Fs(Do,kd,kh):Fs(Do,xu,xu)}(c,le,Ft,!0)||le.selection:T0(c,le);et(an),zn(an.focusPath)}if("ArrowLeft"===ct||"Shift+ArrowLeft"===ct){Me.preventDefault();var cn=le.selection?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=lae(Do,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),xu=lc.caret,kd=lc.previous;if(Sh)return Lr(Pr)?null:Fs(Do,Pr.anchorPath,Pr.focusPath);if(xu&&kd)return FP(kd);var Dd=Mn(Do,tr(Pr.focusPath));return nr(Pr)&&Array.isArray(Dd)?Fs(Do,Pr.focusPath,Pr.focusPath):Lr(Pr)&&!Array.isArray(Dd)?du(Pr.focusPath,!1):null}(c,le,Ft,!b)||le.selection:T0(c,le);et(cn),zn(cn.focusPath)}if("ArrowRight"===ct||"Shift+ArrowRight"===ct){Me.preventDefault();var Gn=le.selection&&void 0!==c?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=lae(Do,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),xu=lc.caret,kd=lc.next;return Sh?Lr(Pr)?null:Fs(Do,Pr.anchorPath,Pr.focusPath):xu&&kd?FP(kd):Lr(Pr)?br(Pr.focusPath,!1):null}(c,le,Ft,!b)||le.selection:T0(c,le);et(Gn),zn(Gn.focusPath)}if("Enter"===ct&&le.selection){if(!b&&Lr(le.selection)&&1===le.selection.paths.length){var hi=le.selection.focusPath,yi=Mn(c,tr(hi));Array.isArray(yi)&&et(br(hi,!1))}!b&&ws(le.selection)&&(Me.preventDefault(),et(nt(nt({},le.selection),{},{edit:!0}))),nr(le.selection)&&(Me.preventDefault(),zo(Mn(c,le.selection.focusPath))?jo(le.selection.focusPath,!0):b||et(nt(nt({},le.selection),{},{edit:!0})))}if(1===ct.replace(/^Shift\+/,"").length&&le.selection)return Me.preventDefault(),void Mr(Me.key);if("Enter"===ct&&(rd(le.selection)||Js(le.selection)))return Me.preventDefault(),void Mr("");if("Ctrl+Enter"===ct&&nr(le.selection)){var Lo=Mn(c,le.selection.focusPath);vS(Lo)&&window.open(String(Lo),"_blank")}if("Escape"===ct&&le.selection&&(Me.preventDefault(),et(void 0)),"Ctrl+F"===ct&&(Me.preventDefault(),ba(!1)),"Ctrl+H"===ct&&(Me.preventDefault(),ba(!0)),"Ctrl+Z"===ct){Me.preventDefault();var js=document.activeElement;js&&js.blur&&js.focus?(js.blur(),setTimeout(function(){xi(),setTimeout(function(){return js.select()})})):xi()}if("Ctrl+Shift+Z"===ct){Me.preventDefault();var Zo=document.activeElement;Zo&&Zo.blur&&Zo.focus?(Zo.blur(),setTimeout(function(){Sr(),setTimeout(function(){return Zo.select()})})):Sr()}},function(Me){r("handleMouseDown",Me),setTimeout(function(){setTimeout(function(){v||Ise(Me.target,"BUTTON")||(Rs(),le.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,le=nt(nt({},le),{},{selection:Fs(c||{},[],[])}))))})})},Bl,function(Me){b||xa({anchor:Fse(Me.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return xd.apply(this,arguments)},function(){r("clear pasted json"),e(18,$=void 0)},function(){H(Uo.text)},function(Me){et(Me),Rs(),mn(Me.focusPath)},function(Me){!ob(Me.target,function(Ft){return Ft===l})&&yp(le.selection)&&(r("click outside the editor, stop edit mode"),et(function(Ft){return ws(Ft)||nr(Ft)?nt(nt({},Ft),{},{edit:!1}):Ft}),v&&a&&(a.focus(),a.blur()),tc().then(function(){setTimeout(function(){a&&a.blur()})}))},C,B,z,U,G,X,J,H,pe,N,F,q,V,ce,ve,function(){var Me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:db;r("expand");var ct=nt(nt({},le),{},{expandedMap:{},visibleSectionsMap:{}});e(16,le=uu(c,ct,[],Me))},Ar,ko,Nr,Gt,mn,$i,Rs,st,Ct,function(Me){e(19,Re=Me)},function(Me){Xi[Me?"unshift":"push"](function(){e(14,a=Me)})},function(Me){Xi[Me?"unshift":"push"](function(){e(9,s=Me)})},function(Me){Xi[Me?"unshift":"push"](function(){e(15,l=Me)})}]}var m4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,aet,set,Pi,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},ZZe,[-1,-1,-1,-1,-1]),r}return Ie(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function cet(t){_i(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function bue(t){var n,e,i,r,o,s=[det,uet],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Dr()},m:function(c,u){a[e].m(c,u),$e(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Ht(),fe(a[d],1,1,function(){a[d]=null}),Ut(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){fe(i),o=!1},d:function(c){a[e].d(c),c&&Be(r)}}}function uet(t){var n;return{c:function(){n=sn("(Only available for arrays, not for objects)")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function det(t){var n,e;return n=new PJe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function xue(t){var n,e;return n=new m4({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:bo,onError:console.error,onChange:bo,onChangeMode:bo,onFocus:bo,onBlur:bo,onSortModal:bo,onTransformModal:bo,onJSONEditorModal:bo,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function het(t){var n,e;return{c:function(){n=De("div"),e=sn(t[17]),R(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){$e(i,n,r),me(n,e)},p:function(i,r){131072&r[0]&&ti(e,i[17])},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function fet(t){var n,e;return n=new m4({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:bo,onError:console.error,onChange:bo,onChangeMode:bo,onFocus:bo,onBlur:bo,onSortModal:bo,onTransformModal:bo,onJSONEditorModal:bo,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function pet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J,H,pe,A,N,F,q,V,ce,ve,je,Te,et,We,st,$,ae=t[21](t[0]).description+"";n=new GJe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new hr({props:{data:t[15]?hu:_p}});var le=t[15]&&bue(t);W=new hr({props:{data:t[16]?hu:_p}});var Re=t[16]&&xue(t),Ze=[fet,het],Ve=[];function Ct(Ot,yn){return Ot[17]?1:0}return q=Ct(t),V=Ve[q]=Ze[q](t),{c:function(){gt(n.$$.fragment),e=rt(),i=De("div"),r=De("div"),o=De("div"),(s=De("div")).innerHTML='
    Language
    ',a=rt(),l=De("div"),c=rt(),(u=De("div")).innerHTML='
    Path
    ',d=rt(),h=De("input"),p=rt(),m=De("div"),g=De("div"),v=De("button"),gt(y.$$.fragment),b=sn("\n Wizard"),C=rt(),le&&le.c(),D=rt(),(E=De("div")).innerHTML='
    Query
    ',B=rt(),z=De("textarea"),j=rt(),U=De("div"),G=De("div"),X=De("div"),oe=De("div"),P=De("button"),gt(W.$$.fragment),J=sn("\n Original"),H=rt(),Re&&Re.c(),pe=rt(),A=De("div"),(N=De("div")).innerHTML='
    Preview
    ',F=rt(),V.c(),ce=rt(),ve=De("div"),je=De("button"),Te=sn("Transform"),R(s,"class","jse-label svelte-107mggt"),R(l,"class","jse-description svelte-107mggt"),R(u,"class","jse-label svelte-107mggt"),R(h,"class","jse-path svelte-107mggt"),R(h,"type","text"),h.readOnly=!0,R(h,"title","Selected path"),h.value=f=Ji(t[1])?"(whole document)":cu(rc(t[1])),R(v,"type","button"),R(v,"class","svelte-107mggt"),R(g,"class","jse-label-inner svelte-107mggt"),R(m,"class","jse-label svelte-107mggt"),R(E,"class","jse-label svelte-107mggt"),R(z,"class","jse-query svelte-107mggt"),R(z,"spellcheck","false"),z.value=t[13],R(o,"class","jse-query-contents svelte-107mggt"),R(P,"type","button"),R(P,"class","svelte-107mggt"),R(oe,"class","jse-label-inner svelte-107mggt"),R(X,"class","jse-label svelte-107mggt"),R(G,"class","jse-original-data svelte-107mggt"),Nt(G,"jse-hide",!t[16]),R(N,"class","jse-label svelte-107mggt"),R(A,"class","jse-preview-data svelte-107mggt"),R(U,"class","jse-data-contents svelte-107mggt"),Nt(U,"jse-hide-original-data",!t[16]),R(r,"class","jse-main-contents svelte-107mggt"),R(je,"type","button"),R(je,"class","jse-primary svelte-107mggt"),je.disabled=et=!!t[17],R(ve,"class","jse-actions svelte-107mggt"),R(i,"class","jse-modal-contents svelte-107mggt")},m:function(Ot,yn){pt(n,Ot,yn),$e(Ot,e,yn),$e(Ot,i,yn),me(i,r),me(r,o),me(o,s),me(o,a),me(o,l),l.innerHTML=ae,me(o,c),me(o,u),me(o,d),me(o,h),me(o,p),me(o,m),me(m,g),me(g,v),pt(y,v,null),me(v,b),me(o,C),le&&le.m(o,null),me(o,D),me(o,E),me(o,B),me(o,z),me(r,j),me(r,U),me(U,G),me(G,X),me(X,oe),me(oe,P),pt(W,P,null),me(P,J),me(G,H),Re&&Re.m(G,null),me(U,pe),me(U,A),me(A,N),me(A,F),Ve[q].m(A,null),me(i,ce),me(i,ve),me(ve,je),me(je,Te),We=!0,st||($=[Rt(v,"click",t[25]),Rt(z,"input",t[23]),Rt(P,"click",t[26]),Rt(je,"click",t[24]),Ea(get.call(null,je))],st=!0)},p:function(Ot,yn){var Xn={};512&yn[0]&&(Xn.queryLanguages=Ot[9]),1&yn[0]&&(Xn.queryLanguageId=Ot[0]),n.$set(Xn),(!We||1&yn[0])&&ae!==(ae=Ot[21](Ot[0]).description+"")&&(l.innerHTML=ae),(!We||2&yn[0]&&f!==(f=Ji(Ot[1])?"(whole document)":cu(rc(Ot[1])))&&h.value!==f)&&(h.value=f);var on={};32768&yn[0]&&(on.data=Ot[15]?hu:_p),y.$set(on),Ot[15]?le?(le.p(Ot,yn),32768&yn[0]&&Q(le,1)):((le=bue(Ot)).c(),Q(le,1),le.m(o,D)):le&&(Ht(),fe(le,1,1,function(){le=null}),Ut()),(!We||8192&yn[0])&&(z.value=Ot[13]);var Ri={};65536&yn[0]&&(Ri.data=Ot[16]?hu:_p),W.$set(Ri),Ot[16]?Re?(Re.p(Ot,yn),65536&yn[0]&&Q(Re,1)):((Re=xue(Ot)).c(),Q(Re,1),Re.m(G,null)):Re&&(Ht(),fe(Re,1,1,function(){Re=null}),Ut()),(!We||65536&yn[0])&&Nt(G,"jse-hide",!Ot[16]);var hn=q;(q=Ct(Ot))===hn?Ve[q].p(Ot,yn):(Ht(),fe(Ve[hn],1,1,function(){Ve[hn]=null}),Ut(),(V=Ve[q])?V.p(Ot,yn):(V=Ve[q]=Ze[q](Ot)).c(),Q(V,1),V.m(A,null)),(!We||65536&yn[0])&&Nt(U,"jse-hide-original-data",!Ot[16]),(!We||131072&yn[0]&&et!==(et=!!Ot[17]))&&(je.disabled=et)},i:function(Ot){We||(Q(n.$$.fragment,Ot),Q(y.$$.fragment,Ot),Q(le),Q(W.$$.fragment,Ot),Q(Re),Q(V),We=!0)},o:function(Ot){fe(n.$$.fragment,Ot),fe(y.$$.fragment,Ot),fe(le),fe(W.$$.fragment,Ot),fe(Re),fe(V),We=!1},d:function(Ot){mt(n,Ot),Ot&&Be(e),Ot&&Be(i),mt(y),le&&le.d(),mt(W),Re&&Re.d(),Ve[q].d(),st=!1,po($)}}}function met(t){var n,e,i,r,o;return e=new $se({props:{$$slots:{default:[pet]},$$scope:{ctx:t}}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Ea(Nk.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function get(t){t.focus()}function vet(t,n,e){var i,r,o=Ma("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+R_():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,b=n.queryLanguageId,C=n.onChangeQueryLanguage,D=n.onRenderValue,E=n.onClassName,B=n.onTransform,z=Aa("simple-modal").close,j="".concat(a,":").concat(dn(u)),U=od[j]||{},G=!1!==od.showWizard,X=!1!==od.showOriginal,oe=U.queryOptions||{},P=b===U.queryLanguageId&&U.query?U.query:pe(b).createQuery(l,U.queryOptions||{}),W=U.isManual||!1,J=void 0,H={text:""};function pe(N){return y.find(function(F){return F.id===N})||y[0]}var A=p0(function(N,F){try{o("previewTransform",{query:F});var q=pe(b).executeQuery(N,F,p);e(18,H={json:q}),e(17,J=void 0)}catch(V){e(18,H={text:""}),e(17,J=V.toString())}},300);return t.$$set=function(N){"id"in N&&e(28,a=N.id),"json"in N&&e(29,l=N.json),"rootPath"in N&&e(1,u=N.rootPath),"indentation"in N&&e(2,d=N.indentation),"escapeControlCharacters"in N&&e(3,h=N.escapeControlCharacters),"escapeUnicodeCharacters"in N&&e(4,f=N.escapeUnicodeCharacters),"parser"in N&&e(5,p=N.parser),"parseMemoizeOne"in N&&e(6,m=N.parseMemoizeOne),"validationParser"in N&&e(7,g=N.validationParser),"pathParser"in N&&e(8,v=N.pathParser),"queryLanguages"in N&&e(9,y=N.queryLanguages),"queryLanguageId"in N&&e(0,b=N.queryLanguageId),"onChangeQueryLanguage"in N&&e(30,C=N.onChangeQueryLanguage),"onRenderValue"in N&&e(10,D=N.onRenderValue),"onClassName"in N&&e(11,E=N.onClassName),"onTransform"in N&&e(31,B=N.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=Mn(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&A(i,P),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,od[j]={queryOptions:oe,query:P,queryLanguageId:b,isManual:W},od),o("store state in memory",j,od[j]))},[b,u,d,h,f,p,m,g,v,y,D,E,oe,P,i,G,X,J,H,r,z,pe,function(N){e(12,oe=N),e(13,P=pe(b).createQuery(l,N)),e(33,W=!1),o("updateQueryByWizard",{queryOptions:oe,query:P,isManual:W})},function(N){e(13,P=N.target.value),e(33,W=!0),o("handleChangeQuery",{query:P,isManual:W})},function(){try{o("handleTransform",{query:P});var N=pe(b).executeQuery(i,P,p);B([{op:"replace",path:dn(u),value:N}]),z()}catch(F){console.error(F),e(18,H={text:""}),e(17,J=F.toString())}},function(){e(15,G=!G),e(32,od.showWizard=G,od)},function(){e(16,X=!X),e(32,od.showOriginal=X,od)},function(N){o("handleChangeQueryLanguage",N),e(0,b=N),C(N);var F=pe(b);e(13,P=F.createQuery(l,oe)),e(33,W=!1)},a,l,C,B,od,W]}var yet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,vet,met,Pi,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},cet,[-1,-1]),r}return Ie(e)}(),kp={};function _et(t){_i(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function wue(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new ag({props:c}),Xi.push(function(){return Xu(o,"value",l)}),{c:function(){n=De("tr"),(e=De("th")).textContent="Property",i=rt(),r=De("td"),gt(o.$$.fragment),R(e,"class","svelte-1y818v2"),R(r,"class","svelte-1y818v2")},m:function(u,d){$e(u,n,d),me(n,e),me(n,i),me(n,r),pt(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],Yu(function(){return s=!1})),o.$set(h)},i:function(u){a||(Q(o.$$.fragment,u),a=!0)},o:function(u){fe(o.$$.fragment,u),a=!1},d:function(u){u&&Be(n),mt(o)}}}function Cue(t){var n,e;return{c:function(){n=De("div"),e=sn(t[5]),R(n,"class","jse-error svelte-1y818v2")},m:function(i,r){$e(i,n,r),me(n,e)},p:function(i,r){32&r&&ti(e,i[5])},d:function(i){i&&Be(n)}}}function bet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J;e=new e4({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&wue(t);function pe(F){t[15](F)}var A={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(A.value=t[2]),D=new ag({props:A}),Xi.push(function(){return Xu(D,"value",pe)});var N=t[5]&&Cue(t);return{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),o=De("table"),(s=De("colgroup")).innerHTML=' \n ',a=rt(),l=De("tbody"),c=De("tr"),(u=De("th")).textContent="Path",d=rt(),h=De("td"),f=De("input"),m=rt(),H&&H.c(),g=rt(),v=De("tr"),(y=De("th")).textContent="Direction",b=rt(),C=De("td"),gt(D.$$.fragment),B=rt(),z=De("div"),N&&N.c(),j=rt(),U=De("div"),G=De("button"),X=sn("Sort"),R(u,"class","svelte-1y818v2"),R(f,"class","jse-path svelte-1y818v2"),R(f,"type","text"),f.readOnly=!0,R(f,"title","Selected path"),f.value=p=Ji(t[0])?"(whole document)":cu(rc(t[0])),R(h,"class","svelte-1y818v2"),R(y,"class","svelte-1y818v2"),R(C,"class","svelte-1y818v2"),R(o,"class","svelte-1y818v2"),R(z,"class","jse-space svelte-1y818v2"),R(G,"type","button"),R(G,"class","jse-primary svelte-1y818v2"),G.disabled=oe=!!t[4]&&!t[1],R(U,"class","jse-actions svelte-1y818v2"),R(r,"class","jse-modal-contents svelte-1y818v2"),R(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(F,q){$e(F,n,q),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(o,s),me(o,a),me(o,l),me(l,c),me(c,u),me(c,d),me(c,h),me(h,f),me(l,m),H&&H.m(l,null),me(l,g),me(l,v),me(v,y),me(v,b),me(v,C),pt(D,C,null),me(r,B),me(r,z),N&&N.m(z,null),me(r,j),me(r,U),me(U,G),me(G,X),P=!0,W||(J=[Rt(G,"click",t[8]),Ea(xet.call(null,G)),Ea(Nk.call(null,n,t[6]))],W=!0)},p:function(F,q){var V=Jn(q,1)[0],ce={};16&V&&(ce.title=F[4]?"Sort array items":"Sort object keys"),e.$set(ce),(!P||1&V&&p!==(p=Ji(F[0])?"(whole document)":cu(rc(F[0])))&&f.value!==p)&&(f.value=p),F[4]&&(F[3].length>1||void 0===F[1])?H?(H.p(F,V),26&V&&Q(H,1)):((H=wue(F)).c(),Q(H,1),H.m(l,g)):H&&(Ht(),fe(H,1,1,function(){H=null}),Ut());var ve={};!E&&4&V&&(E=!0,ve.value=F[2],Yu(function(){return E=!1})),D.$set(ve),F[5]?N?N.p(F,V):((N=Cue(F)).c(),N.m(z,null)):N&&(N.d(1),N=null),(!P||18&V&&oe!==(oe=!!F[4]&&!F[1]))&&(G.disabled=oe)},i:function(F){P||(Q(e.$$.fragment,F),Q(H),Q(D.$$.fragment,F),P=!0)},o:function(F){fe(e.$$.fragment,F),fe(H),fe(D.$$.fragment,F),P=!1},d:function(F){F&&Be(n),mt(e),H&&H.d(),mt(D),N&&N.d(),W=!1,po(J)}}}function xet(t){t.focus()}function wet(t,n,e){var i,r,o,s=Ma("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=Aa("simple-modal").close,h="".concat(a,":").concat(dn(c)),f=Mn(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=kp[h]&&kp[h].selectedProperty||void 0,v=kp[h]&&kp[h].selectedDirection||p,y=void 0;return t.$$set=function(b){"id"in b&&e(9,a=b.id),"json"in b&&e(10,l=b.json),"rootPath"in b&&e(0,c=b.rootPath),"onSort"in b&&e(11,u=b.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?pP(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(sb):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,kp[h]={selectedProperty:g,selectedDirection:v},kp),s("store state in memory",h,kp[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var b,C;e(5,y=void 0);var D=null===(b=g)||void 0===b?void 0:b.value,E=null===(C=v)||void 0===C?void 0:C.value,B=Wce(l,c,D,E);u({operations:B,rootPath:c,itemPath:D,direction:E}),d()}catch(z){e(5,y=z.toString())}},a,l,u,kp,r,function(b){e(1,g=b),e(3,o),e(13,r),e(4,i)},function(b){e(2,v=b)}]}var Cet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wet,bet,Pi,{id:9,json:10,rootPath:0,onSort:11},_et),r}return Ie(e)}();function fh(){}function Rk(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function ket(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Det(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,b=n.canTransform,C=n.onRenderMenu;return t.$$set=function(D){"readOnly"in D&&e(1,s=D.readOnly),"onFormat"in D&&e(2,a=D.onFormat),"onCompact"in D&&e(3,l=D.onCompact),"onSort"in D&&e(4,c=D.onSort),"onTransform"in D&&e(5,u=D.onTransform),"onToggleSearch"in D&&e(6,d=D.onToggleSearch),"onUndo"in D&&e(7,h=D.onUndo),"onRedo"in D&&e(8,f=D.onRedo),"canUndo"in D&&e(9,p=D.canUndo),"canRedo"in D&&e(10,m=D.canRedo),"canFormat"in D&&e(11,g=D.canFormat),"canCompact"in D&&e(12,v=D.canCompact),"canSort"in D&&e(13,y=D.canSort),"canTransform"in D&&e(14,b=D.canTransform),"onRenderMenu"in D&&e(15,C=D.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:s4,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:iZe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!b},{type:"button",icon:HP,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=C(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,r]}var Tet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Det,ket,Pi,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Ie(e)}(),mo=function(){function t(){Oe(this,t)}return Ie(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),jk.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),jk.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new Sb(this),o=new Sb(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new Sb(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new kue(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Due(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new ld(n):jk.from(ld.split(n,[])):t.empty}}]),t}(),ld=function(t){Dt(e,mo);var n=Tt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function Eet(t){var n,e=-1,i=He(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return Oe(this,e),(r=n.call(this)).text=i,r.length=o,r}return Ie(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new Aet(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(Sue(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=Lk(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return _r(er(e.prototype),"replace",this).call(this,i,r,o);var s=Lk(this.text,Lk(o.text,Sue(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):jk.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=He(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=He(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),jk=function(t){Dt(e,mo);var n=Tt(e);function e(i,r){var o;Oe(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=He(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Ie(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return _r(er(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return _r(er(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=He(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Jn(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(j,U){return j+U.length+1},-1),s=0,a=He(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(j){a.e(j)}finally{a.f()}if(s<32){var c,u=[],d=He(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(j){d.e(j)}finally{d.f()}return new ld(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,b=[];function C(j){var U;if(j.lines>p&&j instanceof e){var G,X=He(j.children);try{for(X.s();!(G=X.n()).done;)C(G.value)}catch(oe){X.e(oe)}finally{X.f()}}else j.lines>m&&(v>m||!v)?(D(),g.push(j)):j instanceof ld&&v&&(U=b[b.length-1])instanceof ld&&j.lines+U.lines<=32?(v+=j.lines,y+=j.length+1,b[b.length-1]=new ld(U.text.concat(j.text),U.length+1+j.length)):(v+j.lines>f&&D(),v+=j.lines,y+=j.length+1,b.push(j))}function D(){0!=v&&(g.push(1==b.length?b[0]:e.from(b,y)),y=-1,v=b.length=0)}var E,B=He(i);try{for(B.s();!(E=B.n()).done;)C(E.value)}catch(j){B.e(j)}finally{B.f()}return D(),1==g.length?g[0]:new e(g,o)}}]),e}();function Lk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;Oe(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof ld?n.text.length:n.children.length)<<1]}return Ie(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof ld?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof ld){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof ld?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),kue=function(){function t(n,e,i){Oe(this,t),this.value="",this.done=!1,this.cursor=new Sb(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Ie(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),Due=function(){function t(n){Oe(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Ie(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(mo.prototype[Symbol.iterator]=function(){return this.iter()},Sb.prototype[Symbol.iterator]=kue.prototype[Symbol.iterator]=Due.prototype[Symbol.iterator]=function(){return this});for(var Aet=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Ie(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),U0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),Bk=1;Bkt)return U0[n-1]<=t;return!1}function Tue(t){return t>=127462&&t<=127487}function jl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?Oet:Eue)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function Eue(t,n,e){if(n==t.length)return n;n&&Aue(t.charCodeAt(n))&&Mue(t.charCodeAt(n-1))&&n--;var i=Wa(t,n);for(n+=Fc(i);n=0&&Tue(Wa(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function Oet(t,n,e){for(;n>0;){var i=Eue(t,n-2,e);if(i=56320&&t<57344}function Mue(t){return t>=55296&&t<56320}function Wa(t,n){var e=t.charCodeAt(n);if(!Mue(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return Aue(i)?i-56320+(e-55296<<10)+65536:e}function g4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Fc(t){return t<65536?1:2}var v4=/\r\n?|\n/,Ll=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ll||(Ll={})),z0=function(){function t(n){Oe(this,t),this.sections=n}return Ie(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ll.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Ll.Simple&&c>=n&&(i==Ll.TrackDel&&rn||i==Ll.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),cd=function(t){Dt(e,z0);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this,i)).inserted=r,o}return Ie(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return y4(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return _4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){y4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return z0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new kb(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&Dp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var b=y?"string"==typeof y?mo.of(y.split(o||v4)):y:mo.empty,C=b.length;if(m==v&&0==C)return;ml&&ml(s,m-l,-1),ml(s,v-m,C),Dp(a,s,b),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function Dp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function _4(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new kb(t),a=new kb(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);ml(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?cd.createSet(r,o):z0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new kb(t),s=new kb(n),a=!1;;){if(o.done&&s.done)return r?cd.createSet(i,r):z0.create(i);if(0==o.ins)ml(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;ml(i,l,u,a),r&&u&&Dp(r,i,s.text)}else-1==s.ins?(ml(i,o.off?0:o.len,l,a),r&&Dp(r,i,o.textBit(l))):(ml(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&Dp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else ml(i,0,s.ins,a),r&&Dp(r,i,s.text),s.next()}}var kb=function(){function t(n){Oe(this,t),this.set=n,this.i=0,this.next()}return Ie(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?mo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?mo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),$k=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.flags=i}return Ie(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return rn.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return rn.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return rn.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),rn=function(){function t(n,e){Oe(this,t),this.ranges=n,this.mainIndex=e}return Ie(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return $k.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return $k.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function Iue(t,n){var e,i=He(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var b4=0,oi=function(){function t(n,e,i,r,o){Oe(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=b4++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Ie(t,[{key:"of",value:function(n){return new Vk([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:x4),!!n.static,n.enables)}}]),t}();function x4(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var Vk=function(){function t(n,e,i,r){Oe(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=b4++}return Ie(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=He(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||w4(m,h)){var v=o(m);if(c?!Nue(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var b=Hk(g,y);if(r.dependencies.every(function(C){return C instanceof oi?g.facet(C)===m.facet(C):!(C instanceof qa)||g.field(C,!1)==m.field(C,!1)})||(c?Nue(v=o(m),b,s):s(v=o(m),b)))return m.values[l]=b,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function Nue(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,Fue.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(b4++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function Db(t){return function(n){return new Pue(n,t)}}var G0={highest:Db(0),high:Db(1),default:Db(2),low:Db(3),lowest:Db(4)},Pue=Ie(function t(n,e){Oe(this,t),this.inner=n,this.prec=e}),Tp=function(){function t(){Oe(this,t)}return Ie(t,[{key:"of",value:function(n){return new S4(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),S4=Ie(function t(n,e){Oe(this,t),this.compartment=n,this.inner=e}),Rue=function(){function t(n,e,i,r,o,s){for(Oe(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,C,D,E,B,z,o=[],s=Object.create(null),a=new Map,l=He((C=n,D=e,E=a,B=[[],[],[],[],[]],z=new Map,function j(U,G){var X=z.get(U);if(null!=X){if(X<=G)return;var oe=B[X].indexOf(U);oe>-1&&B[X].splice(oe,1),U instanceof S4&&E.delete(U.compartment)}if(z.set(U,G),Array.isArray(U)){var P,W=He(U);try{for(W.s();!(P=W.n()).done;)j(P.value,G)}catch(pe){W.e(pe)}finally{W.f()}}else if(U instanceof S4){if(E.has(U.compartment))throw new RangeError("Duplicate use of compartment in extensions");var J=D.get(U.compartment)||U.inner;E.set(U.compartment,J),j(J,G)}else if(U instanceof Pue)j(U.inner,U.prec);else if(U instanceof qa)B[G].push(U),U.provides&&j(U.provides,G);else if(U instanceof Vk)B[G].push(U),U.facet.extensions&&j(U.facet.extensions,2);else{var H=U.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(U,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));j(H,G)}}(C,2),B.reduce(function(U,G){return U.concat(G)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof qa?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(C){l.e(C)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var C=m[p];u[C.id]=h.length<<1,h.push(function(D){return C.slot(D)})},p=0,m=o;p>1;function N(F){for(var q=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function Hk(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var jue=oi.define(),Lue=oi.define({combine:function(t){return t.some(function(n){return n})},static:!0}),Bue=oi.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),$ue=oi.define(),Vue=oi.define(),Hue=oi.define(),Uue=oi.define({combine:function(t){return!!t.length&&t[0]}}),Ep=function(){function t(n,e){Oe(this,t),this.type=n,this.value=e}return Ie(t,null,[{key:"define",value:function(){return new Pet}}]),t}(),Pet=function(){function t(){Oe(this,t)}return Ie(t,[{key:"of",value:function(n){return new Ep(this,n)}}]),t}(),Ret=function(){function t(n){Oe(this,t),this.map=n}return Ie(t,[{key:"of",value:function(n){return new gr(this,n)}}]),t}(),gr=function(){function t(n,e){Oe(this,t),this.type=n,this.value=e}return Ie(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new Ret((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=He(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();gr.reconfigure=gr.define(),gr.appendConfig=gr.define();var oc=function(){function t(n,e,i,r,o,s){Oe(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&Iue(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Ie(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=He(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function jet(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=zue(u,k4(l,h,a.changes.newLength),!0))}return u==a?a:oc.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=He(c.facet($ue));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:jet(u,h))}}catch(b){d.e(b)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=cd.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=oc.create(c,f,a.selection&&a.selection.map(p),gr.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Vue),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof oc?y:Array.isArray(y)&&1==y.length&&y[0]instanceof oc?y[0]:Gue(c,W0(y),!1)}return a}(s):s)}oc.time=Ep.define(),oc.userEvent=Ep.define(),oc.addToHistory=Ep.define(),oc.remote=Ep.define();var Let=[];function W0(t){return null==t?Let:Array.isArray(t)?t:[t]}var D4,ls=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(ls||(ls={})),Bet=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{D4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Fo=function(){function t(n,e,i,r,o,s){Oe(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return Tb(this,i),Hk(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof cd?n:cd.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return mo.of(n.split(this.facet(t.lineSeparator)||v4))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(Tb(this,e),Hk(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof qa&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Uue)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=He(this.facet(jue));try{for(s.s();!(i=s.n()).done;){var a,c=He((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function $et(t){return function(n){if(!/\S/.test(n))return ls.Space;if(function(i){if(D4)return D4.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||Bet.test(o)))return!0}return!1}(n))return ls.Word;for(var e=0;e-1)return ls.Word;return ls.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=jl(i,a,!1);if(s(i.slice(c,a))!=ls.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:rn.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Rue.resolve(n.extensions||[],new Map),i=n.doc instanceof mo?n.doc:mo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||v4)),r=n.selection?n.selection instanceof rn?n.selection:rn.single(n.selection.anchor,n.selection.head):rn.single(0);return Iue(r,i.length),e.staticFacet(Lue)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function pu(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=He(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();cg.prototype.startSide=cg.prototype.endSide=0,cg.prototype.point=!1,cg.prototype.mapMode=Ll.TrackDel;var T4=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.value=i}return Ie(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function E4(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var Vet=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Ie(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),qo=function(){function t(n,e,i,r){Oe(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Ie(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=He(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(E4)),this.isEmpty)return i.length?t.of(i):this;for(var d=new que(this,null,-1).goto(0),h=0,f=[],p=new ug;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return A4.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return A4.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Wue(s,a,i),c=new Eb(s,l,o),u=new Eb(a,l,o);i.iterGaps(function(d,h,f){return Yue(c,d,u,h,f,r)}),i.empty&&0==i.length&&Yue(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Wue(o,s),l=new Eb(o,a,0).goto(i),c=new Eb(s,a,0).goto(i);;){if(l.to!=c.to||!O4(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new Eb(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new ug,o=He(n instanceof T4?[n]:i?function Het(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(E4);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();qo.empty=new qo([],[],null,-1),qo.empty.nextLayer=qo.empty;var ug=function(){function t(){Oe(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Ie(t,[{key:"finishChunk",value:function(n){this.chunks.push(new Vet(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(qo.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=qo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Wue(t,n,e){var i,r=new Map,o=He(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Ie(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=He(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)M4(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=He(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)M4(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),M4(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new que(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function M4(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var Eb=function(){function t(n,e,i){Oe(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=A4.from(n,e,i)}return Ie(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){Uk(this.active,n),Uk(this.activeTo,n),Uk(this.activeRank,n),this.minActive=Xue(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&Uk(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Yue(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&O4(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!O4(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function O4(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function Xue(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=jl(t,r)}return!0===i?-1:t.length}for(var Jue=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),N4=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Kue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Ap=function(){function t(n,e){Oe(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==wn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Ie(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Kue[Jue]||1;return Kue[Jue]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[N4]||new Uet(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),Gk=null,Uet=function(){function t(n){if(Oe(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(Gk)return n.adoptedStyleSheets=[Gk.sheet].concat(n.adoptedStyleSheets),n[N4]=Gk;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),Gk=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[N4]=this}return Ie(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Que=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),zet=typeof navigator<"u"&&/Mac/.test(navigator.platform),Get=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Wet=zet||Que&&+Que[1]<57,Ya=0;Ya<10;Ya++)Mp[48+Ya]=Mp[96+Ya]=String(Ya);for(Ya=1;Ya<=24;Ya++)Mp[Ya+111]="F"+Ya;for(Ya=65;Ya<=90;Ya++)Mp[Ya]=String.fromCharCode(Ya+32),Mb[Ya]=String.fromCharCode(Ya);for(var F4 in Mp)Mb.hasOwnProperty(F4)||(Mb[F4]=Mp[F4]);function Wk(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function q0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function qk(t,n){if(!n.anchorNode)return!1;try{return q0(t,n.anchorNode)}catch{return!1}}function Ob(t){return 3==t.nodeType?X0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function Yk(t,n,e,i){return!!e&&(Zue(t,n,e,i,-1)||Zue(t,n,e,i,1))}function Xk(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function Zue(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:Ib(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=Xk(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?Ib(t):0}}}function Ib(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var ede={left:0,right:0,top:0,bottom:0};function P4(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function qet(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var tde,Yet=function(){function t(){Oe(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Ie(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),Y0=null;function nde(t){if(t.setActive)return t.setActive();if(Y0)return t.focus(Y0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==Y0?{get preventScroll(){return Y0={preventScroll:!0},!0}}:void 0),!Y0){Y0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=tde||(tde=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function J0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function ide(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Pc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Oe(this,t),this.node=n,this.offset=e,this.precise=i}return Ie(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,Xk(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,Xk(n)+1,e)}}]),t}(),R4=[],Cs=function(){function t(){Oe(this,t),this.parent=null,this.dom=null,this.dirty=2}return Ie(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=He(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=He(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=rde(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=rde(i)}else if(1&this.dirty){var u,d=He(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==Ib(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R4;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function rde(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}Cs.prototype.breakAfter=0;var ode=function(){function t(n,e,i){Oe(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Ie(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function sde(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),si={mac:hde||/Mac/.test(Rc.platform),windows:/Win/.test(Rc.platform),linux:/Linux|X11/.test(Rc.platform),ie:Jk,ie_version:lde?j4.documentMode||6:B4?+B4[1]:L4?+L4[1]:0,gecko:cde,gecko_version:cde?+(/Firefox\/(\d+)/.exec(Rc.userAgent)||[0,0])[1]:0,chrome:!!$4,chrome_version:$4?+$4[1]:0,ios:hde,android:/Android\b/.test(Rc.userAgent),webkit:ude,safari:dde,webkit_version:ude?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=j4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},Nb=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).text=i,r}return Ie(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Pc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return V4(this.dom,i,r)}}]),e}(),dg=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Oe(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=He(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(Fn(r))}catch(u){l.e(u)}finally{l.f()}return r}return Ie(e,[{key:"setAttrs",value:function(i){if(ide(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),_r(er(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return mde(this,i)}},{key:"coordsAt",value:function(i,r){return vde(this,i,r)}}]),e}();function V4(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?si.chrome||si.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return si.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?P4(l,s<0):l||null}var H4=function(t){Dt(e,Cs);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Ie(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:P4(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){_r(er(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),fde=function(t){Dt(e,H4);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?U4(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Pc(s,Math.min(a,s.nodeValue.length))}):new Pc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?pde(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?U4(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return V4(a,l,c)}):V4(a,i,r)}},{key:"destroy",value:function(){var i;_r(er(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function U4(t,n,e,i,r,o){if(e instanceof dg){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=Cs.get(s);if(!a)return o(t,n);var l=q0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return mo.empty}}]),e}();function mde(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof dg&&r.length&&(i=r[r.length-1])instanceof dg&&i.mark.eq(n.mark)?gde(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function vde(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new yde(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new Fb(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=_de(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new Fb(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new Y4(i)}},{key:"set",value:function(i){return qo.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();Ci.none=qo.empty;var yde=function(t){Dt(e,Ci);var n=Tt(e);function e(i){var r;Oe(this,e);var o=_de(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Ie(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&W4(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();yde.prototype.point=!1;var Y4=function(t){Dt(e,Ci);var n=Tt(e);function e(i){return Oe(this,e),n.call(this,-2e8,-2e8,null,i)}return Ie(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&W4(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();Y4.prototype.mapMode=Ll.TrackBefore,Y4.prototype.point=!0;var Fb=function(t){Dt(e,Ci);var n=Tt(e);function e(i,r,o,s,a,l){var c;return Oe(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Ll.TrackBefore:Ll.TrackAfter:Ll.TrackDel,c}return Ie(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();function _de(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function X4(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}Fb.prototype.point=!0;var ud=function(t){Dt(e,Cs);var n=Tt(e);function e(){var i;return Oe(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Ie(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),ade(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){W4(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){gde(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=G4(r,this.attrs||{})),o&&(this.attrs=G4({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return mde(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(ide(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(q4(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),_r(er(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&Cs.get(s)instanceof dg;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=Cs.get(s))||void 0===o?void 0:o.isEditable)||si.ios&&this.children.some(function(l){return l instanceof Nb})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=He(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof Nb)||/[^ -~]/.test(s.text))return null;var a=Ob(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return vde(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return So.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),J4=function(t){Dt(e,Cs);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Ie(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(Kk(new z4(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(Kk(new Nb(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof Fb){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof Fb)if(i.block){var l=i.type;l!=So.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new J4(i.widget||new bde("div"),a,l))}else{var c=H4.create(i.widget||new bde("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(Kk(new z4(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(Kk(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=qo.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function Kk(t,n){var e,i=He(n);try{for(i.s();!(e=i.n()).done;)t=new dg(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var bde=function(t){Dt(e,Op);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).tag=i,r}return Ie(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),xde=oi.define(),wde=oi.define(),Cde=oi.define(),Sde=oi.define(),K4=oi.define(),kde=oi.define(),Dde=oi.define(),Tde=oi.define({combine:function(t){return t.some(function(n){return n})}}),Ede=oi.define({combine:function(t){return t.some(function(n){return n})}}),Ade=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;Oe(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Ie(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),Mde=gr.define({map:function(t,n){return t.map(n)}});function jc(t,n,e){var i=t.facet(Sde);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var Qk=oi.define({combine:function(t){return!t.length||t[0]}}),Ket=0,Pb=oi.define(),Ia=function(){function t(n,e,i,r){Oe(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Ie(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(Ket++,n,i.eventHandlers,function(a){var l=[Pb.of(a)];return s&&l.push(Rb.of(function(c){var u=c.plugin(a);return u?s(u):Ci.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),Q4=function(){function t(n){Oe(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Ie(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(jc(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){jc(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){jc(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),Ode=oi.define(),Z4=oi.define(),Rb=oi.define(),Ide=oi.define(),Nde=oi.define(),jb=oi.define(),K0=function(){function t(n,e,i,r){Oe(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Ie(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),Fde=function(){function t(n,e,i){Oe(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=cd.empty(this.startState.doc.length);var r,o=He(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new K0(l,c,u,d))}),this.changedRanges=a}return Ie(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),cs=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(cs||(cs={})),eR=cs.LTR,Qet=cs.RTL;function Pde(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),us=[];function $de(t){return[new Q0(0,t,0)]}var Vde="";function itt(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=Q0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=jl(t.text,s,u);if(Vde=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return rn.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=He(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=Cs.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=He(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=He(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Ude(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var zde=Ie(function t(n,e){Oe(this,t),this.node=n,this.offset=e,this.pos=-1}),Gde=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).view=i,r.compositionDeco=Ci.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new ud],r.children[0].setParent(Fn(r)),r.updateDeco(),r.updateInner([new K0(0,0,0,i.state.doc.length)],0),r}return Ie(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Ci.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=qde(a);if(!c)return Ci.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new Hde([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=Jet.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,b=v.off,C=o.findPos(l,-1);sde(this,C.i,C.off,y,b,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(si.gecko&&a.empty&&function rtt(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Pc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&Yk(l.node,l.offset,d.anchorNode,d.anchorOffset)&&Yk(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){si.android&&si.chrome&&i.dom.contains(d.focusNode)&&function ltt(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=Wk(i.view.root);if(h)if(a.empty){if(si.gecko){var f=function stt(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Pc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Pc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=Wk(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=ud.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||qk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=Cs.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=So.WidgetBefore&&a.type!=So.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==So.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==cs.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?Ob(g):[];if(v.length){var y=v[v.length-1],b=u?y.right-m.left:m.right-y.left;b>c&&(c=b,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?cs.RTL:cs.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=He(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof ud){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=Ob(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new ode(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(Ci.replace({widget:new Wde(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return Ci.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(Rb).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=He(this.view.state.facet(Nde).map(function(C){return C(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(C){f.e(C)}finally{f.f()}!function(C,D,E,B,z,j,U,G){for(var X=C.ownerDocument,oe=X.defaultView||window,P=C;P;)if(1==P.nodeType){var W=void 0,J=P==X.body;if(J)W=qet(oe);else{if(P.scrollHeight<=P.clientHeight&&P.scrollWidth<=P.clientWidth){P=P.assignedSlot||P.parentNode;continue}var H=P.getBoundingClientRect();W={left:H.left,right:H.left+P.clientWidth,top:H.top,bottom:H.top+P.clientHeight}}var pe=0,A=0;if("nearest"==z)D.top0&&D.bottom>W.bottom+A&&(A=D.bottom-W.bottom+A+U)):D.bottom>W.bottom&&(A=D.bottom-W.bottom+U,E<0&&D.top-A0&&D.right>W.right+pe&&(pe=D.right-W.right+pe+j)):D.right>W.right&&(pe=D.right-W.right+j,E<0&&D.left0&&e<=0)n=Ib(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var att=function(){function t(){Oe(this,t),this.changes=[]}return Ie(t,[{key:"compareRange",value:function(n,e){X4(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){X4(n,e,this.changes)}}]),t}();function ctt(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function utt(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function iR(t,n){return t.topn.top+1}function Xde(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function rR(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=Ob(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&iR(c,m)?c=Jde(c,m.bottom):u&&iR(u,m)&&(u=Xde(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var b=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Kde(i,b,e):d&&"false"!=i.contentEditable?rR(i,b,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Kde(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((si.chrome||si.gecko)&&X0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Qde(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=So.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:Zde(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,b=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var C=m.caretPositionFromPoint(c,u);C&&(y=C.offsetNode,b=C.offset)}else if(m.caretRangeFromPoint){var D=m.caretRangeFromPoint(c,u);D&&(b=D.startOffset,(!t.contentDOM.contains(y=D.startContainer)||si.safari&&function dtt(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return X0(t,i-1,i).getBoundingClientRect().left>e}(y,b,c)||si.chrome&&function htt(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():X0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,b,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var E=ud.find(t.docView,p);if(!E)return d>r.top+r.height/2?r.to:r.from;var B=rR(E.dom,c,u);y=B.node,b=B.offset}var z=t.docView.nearest(y);if(!z)return null;if(z.isWidget){var j=z.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+I4(s,o,t.state.tabSize)}function ehe(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=itt(r,o,s,a,e),u=Vde;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=rn.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function oR(t,n,e){for(var i=t.state.facet(Ide).map(function(a){return a(t)});;){var r,o=!1,s=He(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?rn.cursor(a,1):rn.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var ptt=function(){function t(n){var e=this;Oe(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=_a[s];n.contentDOM.addEventListener(s,function(l){ihe(n,l)&&i(a,l)},sR[s]),e.registeredEvents.push(s)};for(var o in _a)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(_a.mousedown,s)}),si.chrome&&102==si.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,si.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Ie(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=He(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){ihe(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=He(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){jc(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=He(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){jc(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,J0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(si.safari&&!si.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),the=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],mtt="dthko",nhe=[16,17,18,20,91,92,224,225];function Zk(t){return.7*t+8}var gtt=function(){function t(n,e,i,r){Oe(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Fo.allowMultipleSelections)&&(a=e,(l=n.state.facet(xde)).length?l[0](a):si.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(wde);return l.length?l[0](a):si.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=Wk(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=fhe(e))&&null}return Ie(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-Zk(o.left-n.clientX):n.clientX>=o.right&&(i=Zk(n.clientX-o.right)),n.clientY<=o.top?r=-Zk(o.top-n.clientY):n.clientY>=o.bottom&&(r=Zk(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function ihe(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=Cs.get(i))&&e.ignoreEvent(n))return!1;return!0}var _a=Object.create(null),sR=Object.create(null),rhe=si.ie&&si.ie_version<15||si.ios&&si.webkit_version<604;function ohe(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=aR&&i.selection.ranges.every(function(c){return c.empty})&&aR==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:rn.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:rn.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function she(t,n,e,i){if(1==i)return rn.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return rn.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=jl(h.text,f,!1):m=jl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=jl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=He(t.state.facet(Cde));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=che(s=t,a=n),c=fhe(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=che(s,d),m=she(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=she(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(b){return b.eq(m)})?function(b,C){for(var D=0;;D++)if(b.ranges[D].eq(C))return rn.create(b.ranges.slice(0,D).concat(b.ranges.slice(D+1)),b.mainIndex==D?0:b.mainIndex-(b.mainIndex>D?1:0))}(u,m):f?u.addRange(m):rn.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new gtt(t,n,i,o)),o&&t.observer.ignore(function(){return nde(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var ahe=function(t,n){return t>=n.top&&t<=n.bottom},lhe=function(t,n,e){return ahe(n,e)&&t>=e.left&&t<=e.right};function vtt(t,n,e,i){var r=ud.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&lhe(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&lhe(e,i,a)?1:s&&ahe(i,s)?-1:1}function che(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:vtt(t,e,n.clientX,n.clientY)}}var ytt=si.ie&&si.ie_version<=11,uhe=null,dhe=0,hhe=0;function fhe(t){if(!ytt)return t.detail;var n=uhe,e=hhe;return uhe=t,hhe=Date.now(),dhe=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(dhe+1)%3:1}function phe(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}_a.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},_a.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&phe(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(b){g.e(b)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){aR=o?i:null;var s=rhe?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var mhe=Ep.define();function ghe(t,n){var e,i=[],r=He(t.facet(Dde));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:mhe.of(!0)}):null}function vhe(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=ghe(t.state,n);e?t.dispatch(e):t.update([])}},10)}_a.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),vhe(t)},_a.blur=function(t){t.observer.clearSelectionRange(),vhe(t)},_a.compositionstart=_a.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},_a.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,si.chrome&&si.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},_a.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},_a.beforeinput=function(t,n){var e,i;if(si.chrome&&si.android&&(i=the.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var yhe=["pre-wrap","normal","pre-line","break-spaces"],_tt=function(){function t(n){Oe(this,t),this.lineWrapping=n,this.doc=mo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Ie(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return yhe.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;Oe(this,t),this.length=n,this.height=e,this.flags=i}return Ie(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Yo.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Yo.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),mh=function(t){Dt(e,_he);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this,i,r,So.Text)).collapsed=0,o.widgetHeight=0,o}return Ie(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof Z0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof Z0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):dd.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),Z0=function(t){Dt(e,dd);var n=Tt(e);function e(i){return Oe(this,e),n.call(this,i,0)}return Ie(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new hg(f.from,f.length,m,p,So.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new hg(v.from,v.length,o+u*g,u,So.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Yo.ByHeight)return this.blockAt(i,o,s,a);if(r==Yo.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new hg(c,l.to-c,0,0,So.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new hg(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,So.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new hg(m.from,m.length,p,v,So.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return dd.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new mh(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=dd.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),xtt=function(t){Dt(e,dd);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Ie(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Yo.ByPosNoHeight?Yo.ByPosNoHeight:Yo.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Yo.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=He(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&bhe(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?dd.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function bhe(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof Z0&&(i=t[n+1])instanceof Z0&&t.splice(n-1,3,new Z0(e.length+1+i.length))}var wtt=function(){function t(n,e){Oe(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Ie(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof mh?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new mh(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new mh(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new Z0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof mh)return n;var e=new mh(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=So.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=So.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof mh||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function Dtt(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var lR=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.size=i}return Ie(t,[{key:"draw",value:function(n){return Ci.replace({widget:new Ttt(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new eD(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?whe:new Att(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:Lb(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(Rb).filter(function(c){return"function"!=typeof c});var o=K0.extendWithRanges(n.changedRanges,function Ctt(t,n,e){var i=new Stt;return qo.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:cd.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(Ede)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?cs.RTL:cs.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?Dtt:ktt)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var b=n.docView.measureTextSize(),C=b.lineHeight,D=b.charWidth;(s=C>0&&r.refresh(o,C,D,v/D,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var E,B=He(this.viewports);try{for(B.s();!(E=B.n()).done;){var z=E.value,j=z.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(z);this.heightMap=(s?dd.empty().applyChanges(this.stateDeco,mo.empty,this.heightOracle,[new K0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new btt(z.from,j))}}catch(G){B.e(G)}finally{B.f()}r.heightChanged&&(c|=2)}var U=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return U&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||U)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new eD(r.lineAt(this.visibleTop-1e3*i,Yo.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Yo.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Yo.ByPos,o,0,0);l=new eD(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Yo.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Yo.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=cs.LTR&&!r)return[];var l,c=[],u=function X(oe,P,W,J){if(!(P-oeoe&&F=W.from&&ce.to<=W.to&&Math.abs(ce.from-oe)ve})});if(!q){if(P=P})){var V=e.moveToLineBoundary(rn.cursor(P),!1,!0).head;V>oe&&(P=V)}q=new lR(oe,P,i.gapSize(W,oe,P,J))}c.push(q)}},d=He(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||Lb(this.heightMap.lineAt(n,Yo.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return Lb(this.heightMap.lineAt(this.scaler.fromDOM(n),Yo.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return Lb(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),eD=Ie(function t(n,e){Oe(this,t),this.from=n,this.to=e});function Ett(t,n,e){var i=[],r=t,o=0;return qo.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function nD(t,n){var e,i=0,r=He(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var whe={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},Att=function(){function t(n,e,i){Oe(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Yo.ByPos,n,0,0).top,p=e.lineAt(h,Yo.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=He(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Ie(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),uR=Ap.newName(),Che=Ap.newName(),She=Ap.newName(),khe={"&light":"."+Che,"&dark":"."+She};function dR(t,n,e){return new Ap(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var Mtt=dR("."+uR,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},khe),Ott=Ie(function t(n,e,i,r){Oe(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,b=m.focusOffset;return g&&(p.push(new zde(g,v)),y==g&&b==v||p.push(new zde(y,b))),p}(n),c=new Hde(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?rn.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!q0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!q0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=rn.single(h,d)}});function Dhe(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||si.android&&n.text.length0&&J>0&&j.charCodeAt(W-1)==U.charCodeAt(J-1);)W--,J--;return"end"==X&&(G-=W+Math.max(0,P-Math.min(W,J))-P),W=W?P-G:0)+(J-W),W=P):J=J?P-G:0)+(W-J),J=P),{from:P,toA:W,toB:J}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(si.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:mo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(Qk)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(si.mac||si.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=rn.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:mo.of([" "])}):si.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=rn.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:mo.of([" "])}),e){var d=t.state;if(si.ios&&t.inputState.flushIOSKey(t)||si.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&J0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&J0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&J0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(kde).some(function(j){return j(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),b=qde(t)||t.state.doc.lineAt(r.head),C=r.to-e.to,D=r.to-r.from;h=d.changeByRange(function(j){if(j.from==r.from&&j.to==r.to)return{changes:g,range:v||j.map(g)};var U=j.to-C,G=U-y.length;if(j.to-j.from!=D||t.state.sliceDoc(G,U)!=y||b&&j.to>=b.from&&j.from<=b.to)return{range:j};var X=d.changes({from:G,to:U,insert:e.insert}),oe=j.to-r.to;return{changes:X,range:v?rn.range(Math.max(0,v.anchor+oe),Math.max(0,v.head+oe)):j.map(X)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var E="input.type";return t.composing&&(E+=".compose",t.inputState.compositionFirstChange&&(E+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:E}),!0}if(i&&!i.main.eq(r)){var B=!1,z="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(B=!0),z=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:B,userEvent:z}),!0}return!1}var Itt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},hR=si.ie&&si.ie_version<=11,Ntt=function(){function t(n){var e=this;Oe(this,t),this.view=n,this.active=!1,this.selectionRange=new Yet,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=He(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(si.ie&&si.ie_version<=11||si.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),hR&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Ie(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=He(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(Qk)?i.root.activeElement==this.dom:qk(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(si.ie&&si.ie_version<=11||si.android&&si.chrome)&&!i.state.selection.main.empty&&r.focusNode&&Yk(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=si.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(Yk(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||Wk(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=qk(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=He(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=He(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&qk(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new Ott(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=Dhe(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=The(e,n.previousSibling||n.target.previousSibling,-1),r=The(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=He(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function The(t,n,e){for(;n;){var i=Cs.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Qn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function Xet(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new xhe(e.state||Fo.create(e)),this.plugins=this.state.facet(Pb).map(function(s){return new Q4(s)});var i,r=He(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new Ntt(this),this.inputState=new ptt(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Gde(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Ie(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof oc?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=He(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(j){l.e(j)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(j){return j.annotation(mhe)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=ghe(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Fo.phrases)!=this.state.facet(Fo.phrases))return this.setState(a);(i=Fde.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=He(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var b=y.state.selection.main;m=new Ade(b.empty?b:rn.cursor(b.head,b.head>b.anchor?-1:1))}var C,D=He(y.effects);try{for(D.s();!(C=D.n()).done;){var E=C.value;E.is(Mde)&&(m=E.value)}}catch(j){D.e(j)}finally{D.f()}}}catch(j){v.e(j)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=Ahe.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(jb)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(j){return j.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(iD)!=i.state.facet(iD)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var B,z=He(this.state.facet(K4));try{for(z.s();!(B=z.n()).done;)(0,B.value)(i)}catch(j){z.e(j)}finally{z.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!Dhe(e,p)&&f.force&&J0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=He(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new xhe(n),this.plugins=n.facet(Pb).map(function(a){return new Q4(a)}),this.pluginMap.clear();var o,s=He(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Gde(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(Pb),i=n.state.facet(Pb);if(e!=i){var r,o=[],s=He(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new Q4(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=He(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=He(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(j){try{return j.read(n)}catch(U){return jc(n.state,U),Ehe}}),g=Fde.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var b=0;b1||D<-1)&&(this.scrollDOM.scrollTop+=D,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var E,B=He(this.state.facet(K4));try{for(B.s();!(E=B.n()).done;)(0,E.value)(i)}catch(j){B.e(j)}finally{B.f()}}}}},{key:"themeClasses",get:function(){return uR+" "+(this.state.facet(cR)?She:Che)+" "+this.state.facet(iD)}},{key:"updateAttrs",value:function(){var n=this,e=Mhe(this,Ode,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Qk)?"true":"false",class:"cm-content",style:"".concat(si.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),Mhe(this,Z4,i);var r=this.observer.ignore(function(){var o=q4(n.contentDOM,n.contentAttrs,i),s=q4(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=He(n);try{for(r.s();!(e=r.n()).done;){var o,s=He(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(jb),Ap.mount(this.root,this.styleModules.concat(Mtt).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==cs.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return rn.cursor(l,e?-1:1)}var c=ud.find(t.docView,n.head);return rn.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return oR(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return rn.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var b=u+(v+y)*c,C=Qde(r,{x:g,y:b},!1,c);if(bh.bottom||(c<0?Cl))return rn.cursor(C,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Qde(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return P4(i,o[Q0.find(o,n-r.from,-1,e)].dir==cs.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(Tde)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>Ftt)return $de(n.length);var e,i=this.textDirectionAt(n.from),r=He(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==eR?1:2,d=l==eR?2:1;if(!a||1==u&&!ntt.test(a))return $de(c);for(var h=0,f=u,p=u;h=0;oe-=3)if(ph[oe+1]==-z){var P=ph[oe+2],W=2&P?u:4&P?1&P?d:u:0;W&&(us[U]=us[ph[oe]]=W),G=oe;break}}else{if(189==ph.length)break;ph[G++]=U,ph[G++]=B,ph[G++]=X}else if(2==(j=us[U])||1==j){var J=j==u;X=J?0:1;for(var H=G-3;H>=0;H-=3){var pe=ph[H+2];if(2&pe)break;if(J)ph[H+2]|=2;else{if(4&pe)break;ph[H+2]|=4}}}for(var A=0;Aje;){for(var We=et,st=2!=us[--et];et>je&&st==(2!=us[et-1]);)et--;ce.push(new Q0(et,We,st?2:1))}else ce.push(new Q0(je,ve,0))}else for(var $=0;$Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){nde(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=He(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Mde.of(new Ade("number"==typeof n?rn.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return Ia.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=Ap.newName(),r=[iD.of(i),jb.of(dR(".".concat(i),n))];return e&&e.dark&&r.push(cR.of(!0)),r}},{key:"baseTheme",value:function(n){return G0.lowest(jb.of(dR("."+uR,n,khe)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&Cs.get(i)||Cs.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Qn.styleModule=jb,Qn.inputHandler=kde,Qn.focusChangeEffect=Dde,Qn.perLineTextDirection=Tde,Qn.exceptionSink=Sde,Qn.updateListener=K4,Qn.editable=Qk,Qn.mouseSelectionStyle=Cde,Qn.dragMovesSelection=wde,Qn.clickAddsSelectionRange=xde,Qn.decorations=Rb,Qn.atomicRanges=Ide,Qn.scrollMargins=Nde,Qn.darkTheme=cR,Qn.contentAttributes=Z4,Qn.editorAttributes=Ode,Qn.lineWrapping=Qn.contentAttributes.of({class:"cm-lineWrapping"}),Qn.announce=gr.define();var Ftt=4096,Ehe={},Ahe=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Ie(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:cs.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&G4(s,e)}return e}var Ptt=si.mac?"mac":si.windows?"win":si.linux?"linux":"key";function rD(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var jtt=G0.default(Qn.domEventHandlers({keydown:function(t,n){return Nhe(Ihe(n.state),t,n,"editor")}})),oD=oi.define({enables:jtt}),Ohe=new WeakMap;function Ihe(t){var n=t.facet(oD),e=Ohe.get(n);return e||Ohe.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ptt,s=Object.create(null),a=Object.create(null),l=function(E,B){var z=a[E];if(null==z)a[E]=B;else if(z!=B)throw new Error("Key binding "+E+" is used both as a regular binding and as a multi-stroke prefix")},c=function(E,B,z,j){for(var U,G,X=s[E]||(s[E]=Object.create(null)),oe=B.split(/ (?!$)/).map(function(pe){return function Rtt(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==cs.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=Fhe(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=Rhe(t,i),f=Rhe(t,r),p=h.type==So.Text?h:null,m=f.type==So.Text?f:null;if(t.lineWrapping&&(p&&(p=Phe(t,i,p)),m&&(m=Phe(t,r,m))),p&&m&&p.from==m.from)return C(D(e.from,e.to,p));var g=p?D(e.from,null,p):E(h,!1),v=m?D(null,e.to,m):E(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(b(u,g.bottom,d,v.top)):g.bottomW&&pe.from=N)break;je>A&&oe(Math.max(ve,A),null==B&&ve<=W,Math.min(je,N),null==z&&je>=J,ce.dir)}}catch(Te){V.e(Te)}finally{V.f()}if((A=q.to+1)>=N)break}}}catch(Te){H.e(Te)}finally{H.f()}return 0==X.length&&oe(W,null==B,J,null==z,t.textDirection),{top:U,bottom:G,horizontal:X}}function E(B,z){var j=a.top+(z?B.top:B.bottom);return{top:j,bottom:j,horizontal:[]}}}(n,e,i)}}]),t}();function Fhe(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==cs.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function Phe(t,n,e){var i=rn.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:So.Text}}function Rhe(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=He(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==So.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var Btt=function(){function t(n,e){Oe(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Ie(t,[{key:"update",value:function(n){n.startState.facet(sD)!=n.state.facet(sD)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(sD);e0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,Htt,Utt,Ede.of(!0)]}function Bhe(t){return t.startState.facet(Bb)!=t.state.facet(Bb)}var Vtt=jhe({above:!0,markers:function(t){var n,e=t.state,i=e.facet(Bb),r=[],o=He(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||Lhe:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:rn.cursor(s.head,s.head>s.anchor?-1:1),d=He(fR.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=Bhe(t);return e&&$he(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){$he(n.state,t)},class:"cm-cursorLayer"});function $he(t,n){n.style.animationDuration=t.facet(Bb).cursorBlinkRate+"ms"}var Htt=jhe({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:fR.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||Bhe(t)},class:"cm-selectionLayer"}),Vhe={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Lhe&&(Vhe[".cm-line"].caretColor="transparent !important");var Utt=G0.highest(Qn.theme(Vhe)),Hhe=gr.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),$b=qa.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Hhe)?i.value:e},t)}}),ztt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Ie(t,[{key:"update",value:function(n){var e,i=n.state.field($b);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field($b)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field($b),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field($b)!=n&&this.view.dispatch({effects:Hhe.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Uhe(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var Gtt=function(){function t(n){Oe(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Ie(t,[{key:"createDeco",value:function(n){var e,i=this,r=new ug,o=r.add.bind(r),s=He(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=He(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(b){m.e(b)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Uhe(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=He(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),pR=null!=/x/.unicode?"gu":"g",Wtt=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",pR),qtt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},mR=null,aD=oi.define({combine:function(t){var n=pu(t,{render:null,specialChars:Wtt,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==mR&&typeof document<"u"&&document.body){var i=document.body.style;mR=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return mR||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,pR)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,pR)),n}});function Ytt(){return[aD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),zhe||(zhe=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.decorations=Ci.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(aD)),this.decorations=this.decorator.createDeco(n)}return Ie(t,[{key:"makeDecorator",value:function(n){var e=this;return new Gtt({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Wa(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=Ab(l.text,c,o-l.from);return Ci.replace({widget:new Ktt((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=Ci.replace({widget:new Jtt(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(aD);n.startState.facet(aD)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var zhe=null,Jtt=function(t){Dt(e,Op);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this)).options=i,o.code=r,o}return Ie(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(qtt[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Ktt=function(t){Dt(e,Op);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).width=i,r}return Ie(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Qtt=Ci.line({class:"cm-activeLine"}),Ztt=Ia.fromClass(function(){function t(n){Oe(this,t),this.decorations=this.getDeco(n)}return Ie(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=He(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(Qtt.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return Ci.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ghe(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):Ab(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function tnt(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Qn.mouseSelectionStyle.of(function(e,i){return n(i)?function ent(t,n){var e=Ghe(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ghe(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(rn.range(y.from+m,y.to+g))}else for(var b=Math.min(u.col,d.col),C=Math.max(u.col,d.col),D=h;D<=f;D++){var E=c.doc.line(D),B=I4(E.text,b,c.tabSize,!0);if(B<0)p.push(rn.cursor(E.to));else{var z=I4(E.text,C,c.tabSize);p.push(rn.range(E.from+B,E.from+z))}}return p}(t.state,e,a);return l.length?rn.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var nnt={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},int={style:"cursor: crosshair"};function rnt(){var n=Jn(nnt[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=Ia.fromClass(function(){function o(s){Oe(this,o),this.view=s,this.isDown=!1}return Ie(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Qn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?int:null})]}var Whe=function(){function t(n,e,i){Oe(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Ie(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=He(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Ie(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=He(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(gR);if(r.position!=this.position){this.position=r.position;var o,s=He(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=He(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=He(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(gR).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=qhe.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||ant,v=this.view.textDirection==cs.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),b=!!a.above;!a.strictSide&&(b?u.top-(d.bottom-d.top)-g.yr.bottom)&&b==r.bottom-u.bottom>u.top-r.top&&(b=!b);var C=(b?u.top-r.top:r.bottom-u.bottom)-f;if(Cy&&j.topD&&(D=b?j.top-m-2-f:j.bottom+f+2)}}catch(U){z.e(U)}finally{z.f()}}"absolute"==this.position?(c.style.top=D-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=D+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:D,right:E,bottom:D+m}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=He(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),snt=Qn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ant={x:0,y:0},lD=oi.define({enables:[Yhe,snt]}),cD=oi.define(),lnt=function(){function t(n){var e=this;Oe(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Whe(n,cD,function(i){return e.createHostedView(i)})}return Ie(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=He(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=He(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),cnt=lD.compute([cD],function(t){var n=t.facet(cD).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,ui(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,ui(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:lnt.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),unt=function(){function t(n,e,i,r,o){Oe(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Ie(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==cs.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=gr.define(),i=qa.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Ll.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=He(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(fnt)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return cD.from(r)}});return[i,Ia.define(function(r){return new unt(r,t,i,e,n.hoverTime||300)}),cnt]}var fnt=gr.define(),Jhe=oi.define({combine:function(t){var n,e,i,r=He(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function Vb(t,n){var e=t.plugin(Khe),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Khe=Ia.fromClass(function(){function t(n){Oe(this,t),this.input=n.state.facet(Hb),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Jhe);this.top=new uD(n,!0,e.topContainer),this.bottom=new uD(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=He(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Ie(t,[{key:"update",value:function(n){var e=n.state.facet(Jhe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new uD(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new uD(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(Hb);if(i!=this.input){var r,o=i.filter(function(C){return C}),s=[],a=[],l=[],c=[],u=He(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(C){u.e(C)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),ife=function(){function t(n,e){var i=this;Oe(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=tfe(e.markers(n)),e.initialSpacer&&(this.spacer=new rfe(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Ie(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=tfe(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!qo.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=He(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),rfe=function(){function t(n,e,i,r){Oe(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Ie(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),efe(),ynt]}function ofe(t){for(var n=9;ni&&(i=s,e.push(bnt.range(s)))}}catch(a){r.e(a)}finally{r.f()}return qo.of(e)}),wnt=0,bR=Ie(function t(n,e){Oe(this,t),this.from=n,this.to=e}),xr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,t),this.id=wnt++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Ie(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=mu.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();xr.closedBy=new xr({deserialize:function(t){return t.split(" ")}}),xr.openedBy=new xr({deserialize:function(t){return t.split(" ")}}),xr.group=new xr({deserialize:function(t){return t.split(" ")}}),xr.contextHash=new xr({perNode:!0}),xr.lookAhead=new xr({perNode:!0}),xr.mounted=new xr({perNode:!0});var Cnt=Object.create(null),mu=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Ie(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(xr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):Cnt,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=He(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=He(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(xr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();mu.none=new mu("",Object.create(null),0,8);var Xa,Snt=function(){function t(n){Oe(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=hD.get(this)||this.topNode,r=new mD(i);return r.moveTo(n,e),hD.set(this,r._tree),r}},{key:"topNode",get:function(){return new Gb(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t1(hD.get(this)||this.topNode,n,e,!1);return hD.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t1(sfe.get(this)||this.topNode,n,e,!0);return sfe.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|Xa.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:CR(mu.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(mu.none,i,r,o)})}}],[{key:"build",value:function(n){return function Tnt(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new knt(e,e.length):e,d=i.types,h=0,f=0;function p(D,E,B,z,j){for(var U=u.id,G=u.start,X=u.end,oe=u.size,P=f;oe<0;){if(u.next(),-1==oe)return B.push(a[U]),void z.push(G-D);if(-3==oe)return void(h=U);if(-4==oe)return void(f=U);throw new RangeError("Unrecognized record size: ".concat(oe))}var J,H,st,pe=d[U],A=G-D;if(X-G<=o&&(H=function(st,$){var ae=u.fork(),le=0,Re=0,Ze=0,Ve=ae.end-o,Ct={size:0,start:0,skip:0};e:for(var Ot=ae.pos-st;ae.pos>Ot;){var yn=ae.size;if(ae.id==$&&yn>=0)Ct.size=le,Ct.start=Re,Ct.skip=Ze,Ze+=4,le+=4,ae.next();else{var Xn=ae.pos-yn;if(yn<0||Xn=c?4:0,Ri=ae.start;for(ae.next();ae.pos>Xn;){if(ae.size<0){if(-3!=ae.size)break e;on+=4}else ae.id>=c&&(on+=4);ae.next()}Re=Ri,le+=yn,Ze+=on}}return($<0||le==st)&&(Ct.size=le,Ct.start=Re,Ct.skip=Ze),Ct.size>4?Ct:void 0}(u.pos-E,j))){for(var N=new Uint16Array(H.size-H.skip),F=u.pos-H.size,q=N.length;u.pos>F;)q=v(H.start,N,q);J=new zb(N,X-H.start,i),A=H.start-D}else{var V=u.pos-oe;u.next();for(var ce=[],ve=[],je=U>=c?U:-1,Te=0,et=X;u.pos>V;)je>=0&&u.id==je&&u.size>=0?(u.end<=et-o&&(m(ce,ve,G,Te,u.end,et,je,P),Te=ce.length,et=u.end),u.next()):p(G,V,ce,ve,je);if(je>=0&&Te>0&&Te-1&&Te>0){var We=(st=pe,function($,ae,le){var Re,Ze,Ve=0,Ct=$.length-1;if(Ct>=0&&(Re=$[Ct])instanceof Ja){if(!Ct&&Re.type==st&&Re.length==le)return Re;(Ze=Re.prop(xr.lookAhead))&&(Ve=ae[Ct]+Re.length+Ze)}return g(st,$,ae,le,Ve)});J=CR(pe,ce,ve,0,ce.length,0,X-G,We,We)}else J=g(pe,ce,ve,X-G,P-X)}B.push(J),z.push(A)}function m(D,E,B,z,j,U,G,X){for(var oe=[],P=[];D.length>z;)oe.push(D.pop()),P.push(E.pop()+B-j);D.push(g(i.types[G],oe,P,U-j,X-U)),E.push(j-B)}function g(D,E,B,z){var j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,U=arguments.length>5?arguments[5]:void 0;if(h){var G=[xr.contextHash,h];U=U?[G].concat(U):[G]}if(j>25){var X=[xr.lookAhead,j];U=U?[X].concat(U):[X]}return new Ja(D,E,B,z,U)}function v(D,E,B){var z=u.id,j=u.start,U=u.end,G=u.size;if(u.next(),G>=0&&z4)for(var oe=u.pos-(G-4);u.pos>oe;)B=v(D,E,B);E[--B]=X,E[--B]=U-D,E[--B]=j-D,E[--B]=z}else-3==G?h=z:-4==G&&(f=z);return B}for(var y=[],b=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,b,-1);var C=null!==(n=t.length)&&void 0!==n?n:y.length?b[0]+y[0].length:0;return new Ja(d[t.topID],y.reverse(),b.reverse(),C)}(n)}}]),t}();Ja.empty=new Ja(mu.none,[],[],0);var knt=function(){function t(n,e){Oe(this,t),this.buffer=n,this.index=e}return Ie(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),zb=function(){function t(n,e,i){Oe(this,t),this.buffer=n,this.length=e,this.set=i}return Ie(t,[{key:"type",get:function(){return mu.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function lfe(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function t1(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(afe(r,i,h,h+d.length))if(d instanceof zb){if(o&Xa.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new xR(new Dnt(s,d,n,h),null,f)}else if(o&Xa.IncludeAnonymous||!d.type.isAnonymous||wR(d)){var p=void 0;if(!(o&Xa.IgnoreMounts)&&d.props&&(p=d.prop(xr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&Xa.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&Xa.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&Xa.IgnoreOverlays)&&(i=this._tree.prop(xr.mounted))&&i.overlay){var o,s=n-this.from,a=He(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new mD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return lfe(this,n)}},{key:"getChild",value:function(n){var r=fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return pD(this,n)}}]),t}();function fD(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function pD(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var Dnt=Ie(function t(n,e,i,r){Oe(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),xR=function(){function t(n,e,i){Oe(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Ie(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&Xa.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new mD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new Ja(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return lfe(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return pD(this,n)}}]),t}(),mD=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Oe(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof Gb)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Ie(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof Gb?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&Xa.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&Xa.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&Xa.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&Xa.IncludeAnonymous||u instanceof zb||!u.type.isAnonymous||wR(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return pD(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function wR(t){return t.children.some(function(n){return n instanceof zb||!n.type.isAnonymous||wR(n)})}var cfe=new WeakMap;function gD(t,n){if(!t.isAnonymous||n instanceof zb||n.type!=t)return 1;var e=cfe.get(n);if(null==e){e=1;var i,r=He(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof Ja)){e=1;break}e+=gD(t,o)}}catch(s){r.e(s)}finally{r.f()}cfe.set(n,e)}return e}function CR(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;B+=z}if(C==D+1){if(B>d){var j=m[D];p(j.children,j.positions,0,j.children.length,g[D]+b);continue}h.push(m[D])}else h.push(CR(t,m,g,D,C,E,g[C-1]+m[C-1].length-E,null,l));f.push(E+b-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var vD=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Oe(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Ie(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=He(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:dfe.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),Mnt=0,dfe=function(){function t(){Oe(this,t),this.instances=[],this.id=Mnt++}return Ie(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,b){return y==v[b]});var g,v});if(i)return i;var r,o=[],s=new Np(o,n,e),a=He(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=hfe(e),u=He(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=He(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function hfe(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new Ont(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return pfe.add(n)}var pfe=new xr,Ont=function(){function t(n,e,i,r){Oe(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Ie(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new Fnt(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var SR,Fnt=function(){function t(n,e,i){Oe(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Ie(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function(B){return!B.scope||B.scope(s)}));for(var c=r,u=s.prop(pfe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=Int(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(xr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function(B){return!B.scope||B.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var b=v=C)&&n.nextSibling()););if(!b||C>i)break;(y=b.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,b.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),Dn=Np.define,yD=Dn(),Fp=Dn(),gfe=Dn(Fp),vfe=Dn(Fp),Pp=Dn(),_D=Dn(Pp),kR=Dn(Pp),vh=Dn(),fg=Dn(vh),yh=Dn(),_h=Dn(),DR=Dn(),Wb=Dn(DR),bD=Dn(),gn={comment:yD,lineComment:Dn(yD),blockComment:Dn(yD),docComment:Dn(yD),name:Fp,variableName:Dn(Fp),typeName:gfe,tagName:Dn(gfe),propertyName:vfe,attributeName:Dn(vfe),className:Dn(Fp),labelName:Dn(Fp),namespace:Dn(Fp),macroName:Dn(Fp),literal:Pp,string:_D,docString:Dn(_D),character:Dn(_D),attributeValue:Dn(_D),number:kR,integer:Dn(kR),float:Dn(kR),bool:Dn(Pp),regexp:Dn(Pp),escape:Dn(Pp),color:Dn(Pp),url:Dn(Pp),keyword:yh,self:Dn(yh),null:Dn(yh),atom:Dn(yh),unit:Dn(yh),modifier:Dn(yh),operatorKeyword:Dn(yh),controlKeyword:Dn(yh),definitionKeyword:Dn(yh),moduleKeyword:Dn(yh),operator:_h,derefOperator:Dn(_h),arithmeticOperator:Dn(_h),logicOperator:Dn(_h),bitwiseOperator:Dn(_h),compareOperator:Dn(_h),updateOperator:Dn(_h),definitionOperator:Dn(_h),typeOperator:Dn(_h),controlOperator:Dn(_h),punctuation:DR,separator:Dn(DR),bracket:Wb,angleBracket:Dn(Wb),squareBracket:Dn(Wb),paren:Dn(Wb),brace:Dn(Wb),content:vh,heading:fg,heading1:Dn(fg),heading2:Dn(fg),heading3:Dn(fg),heading4:Dn(fg),heading5:Dn(fg),heading6:Dn(fg),contentSeparator:Dn(vh),list:Dn(vh),quote:Dn(vh),emphasis:Dn(vh),strong:Dn(vh),link:Dn(vh),monospace:Dn(vh),strikethrough:Dn(vh),inserted:Dn(),deleted:Dn(),changed:Dn(),invalid:Dn(),meta:bD,documentMeta:Dn(bD),annotation:Dn(bD),processingInstruction:Dn(bD),definition:Np.defineModifier(),constant:Np.defineModifier(),function:Np.defineModifier(),standard:Np.defineModifier(),local:Np.defineModifier(),special:Np.defineModifier()};mfe([{tag:gn.link,class:"tok-link"},{tag:gn.heading,class:"tok-heading"},{tag:gn.emphasis,class:"tok-emphasis"},{tag:gn.strong,class:"tok-strong"},{tag:gn.keyword,class:"tok-keyword"},{tag:gn.atom,class:"tok-atom"},{tag:gn.bool,class:"tok-bool"},{tag:gn.url,class:"tok-url"},{tag:gn.labelName,class:"tok-labelName"},{tag:gn.inserted,class:"tok-inserted"},{tag:gn.deleted,class:"tok-deleted"},{tag:gn.literal,class:"tok-literal"},{tag:gn.string,class:"tok-string"},{tag:gn.number,class:"tok-number"},{tag:[gn.regexp,gn.escape,gn.special(gn.string)],class:"tok-string2"},{tag:gn.variableName,class:"tok-variableName"},{tag:gn.local(gn.variableName),class:"tok-variableName tok-local"},{tag:gn.definition(gn.variableName),class:"tok-variableName tok-definition"},{tag:gn.special(gn.variableName),class:"tok-variableName2"},{tag:gn.definition(gn.propertyName),class:"tok-propertyName tok-definition"},{tag:gn.typeName,class:"tok-typeName"},{tag:gn.namespace,class:"tok-namespace"},{tag:gn.className,class:"tok-className"},{tag:gn.macroName,class:"tok-macroName"},{tag:gn.propertyName,class:"tok-propertyName"},{tag:gn.operator,class:"tok-operator"},{tag:gn.comment,class:"tok-comment"},{tag:gn.meta,class:"tok-meta"},{tag:gn.invalid,class:"tok-invalid"},{tag:gn.punctuation,class:"tok-punctuation"}]);var n1=new xr,Pnt=new xr,hd=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Oe(this,t),this.data=n,this.name=r,Fo.prototype.hasOwnProperty("tree")||Object.defineProperty(Fo.prototype,"tree",{get:function(){return gl(this)}}),this.parser=e,this.extension=[Rp.of(this),Fo.languageData.of(function(o,s,a){var l=yfe(o,s,a),c=l.type.prop(n1);if(!c)return[];var u=o.facet(c),d=l.type.prop(Pnt);if(d){var h,f=l.resolve(s-l.from,a),p=He(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Ie(t,[{key:"isActiveAt",value:function(n,e){return yfe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(n1)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(Rp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(n1)!=e.data){var l=s.prop(xr.mounted);if(l){if(l.tree.prop(n1)==e.data){if(l.overlay){var c,u=He(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),qb=null,Lnt=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;Oe(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Ie(t,[{key:"startParse",value:function(){return this.parser.startParse(new jnt(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ja.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(vD.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=qb;qb=this;try{return n()}finally{qb=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=_fe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=vD.applyChanges(i,l),r=Ja.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=He(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=_fe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],Ja.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){Dt(r,ufe);var i=Tt(r);function r(){return Oe(this,r),i.apply(this,arguments)}return Ie(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=qb;if(u){var d,h=He(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new Ja(mu.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return qb}}]),t}();function _fe(t,n,e){return vD.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var TR=function(){function t(n){Oe(this,t),this.context=n,this.tree=n.tree}return Ie(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=Lnt.create(n.facet(Rp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();hd.state=qa.define({create:TR.init,update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(hd.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(Rp)!=n.state.facet(Rp)?TR.init(n.state):t.apply(n)}});var bfe=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(bfe=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var ER=typeof navigator<"u"&&null!==(SR=navigator.scheduling)&&void 0!==SR&&SR.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,Bnt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Ie(t,[{key:"update",value:function(n){var e=this.view.state.field(hd.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(hd.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=bfe(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return ER&&ER()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:hd.setState.of(new TR(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return jc(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),Rp=oi.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[hd.state,Bnt,Qn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),$nt=Ie(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Oe(this,t),this.language=n,this.support=e,this.extension=[n,e]}),Vnt=oi.define(),xD=oi.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function i1(t){var n=t.facet(xD);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function Yb(t,n){var e="",i=t.tabSize,r=t.facet(xD)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};Oe(this,t),this.state=n,this.options=e,this.unit=i1(n)}return Ie(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return Ab(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),xfe=new xr;function Hnt(t){var n=t.type.prop(xfe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(xr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),b=v.lastChild;if(!y)return null;for(var C=g.options.simulateBreak,D=g.state.doc.lineAt(y.from),E=null==C||C<=D.from?D.to:Math.min(D.to,C),B=y.to;;){var z=v.childAfter(B);if(!z||z==b)return null;if(!z.type.isSkipped)return z.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var Wnt=oi.define(),Sfe=new xr;function CD(t,n,e){var i,r=He(t.facet(Wnt));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=gl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function kfe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var SD=gr.define({map:kfe}),Xb=gr.define({map:kfe});function Dfe(t){var n,e=[],i=He(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var pg=qa.define({create:function(){return Ci.none},update:function(t,n){t=t.map(n.changes);var e,i=He(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(SD)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[Ofe.range(a.value.from,a.value.to)]}):a.is(Xb)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Qn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function Tfe(t,n){return t.field(pg,!1)?n:n.concat(gr.appendConfig.of(Mfe()))}function Efe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Qn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var qnt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=He(Dfe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=CD(t.state,i.from,i.to);if(r)return t.dispatch({effects:Tfe(t.state,[SD.of(r),Efe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(pg,!1))return!1;var n,e=[],i=He(Dfe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=kD(t.state,r.from,r.to);o&&e.push(Xb.of(o),Efe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},Xnt),t),e=new MR(n,!0),i=new MR(n,!1),r=Ia.fromClass(function(){function s(a){Oe(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Ie(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(Rp)!=a.state.facet(Rp)||a.startState.field(pg,!1)!=a.state.field(pg,!1)||gl(a.startState)!=gl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new ug,u=He(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=kD(a.state,d.from,d.to)?i:CD(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,Zhe({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||qo.empty},initialSpacer:function(){return new MR(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=kD(s.state,a.from,a.to);if(c)return s.dispatch({effects:Xb.of(c)}),!0;var u=CD(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:SD.of(u)}),!0)}})}),Mfe()]}var Knt=Qn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),OR=function(){function t(n,e){var i;function r(a){var l=Ap.newName();return(i||(i=Object.create(null)))["."+l]=a,l}Oe(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof hd?function(a){return a.prop(n1)==s.data}:s?function(a){return a==s}:void 0,this.style=mfe(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new Ap(i):null,this.themeType=e.themeType}return Ie(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),IR=oi.define(),Ife=oi.define({combine:function(t){return t.length?[t[0]]:null}});function NR(t){var n=t.facet(IR);return n.length?n:t.facet(Ife)}function Nfe(t,n){var e,i=[Znt];return t instanceof OR&&(t.module&&i.push(Qn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?Ife.of(t):e?IR.computeN([Qn.darkTheme],function(r){return r.facet(Qn.darkTheme)==("dark"==e)?[t]:[]}):IR.of(t)),i}var Qnt=function(){function t(n){Oe(this,t),this.markCache=Object.create(null),this.tree=gl(n.state),this.decorations=this.buildDeco(n,NR(n.state))}return Ie(t,[{key:"update",value:function(n){var e=gl(n.state),i=NR(n.state),r=i!=NR(n.startState);e.length0&&bh(n.state,s.head-1,1,r)||r.afterCursor&&(bh(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),sit]}var lit=new xr;function FR(t,n,e){var i=t.prop(n<0?xr.openedBy:xr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function PR(t){var n=t.type.prop(lit);return n?n(t.node):t}function bh(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=gl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=FR(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return cit(0,0,e,l,u,c,o)}}return function uit(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function cit(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(Rfe.push(t),console.warn(n))}function mit(t,n){var e,i=null,r=He(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||gn[o];s?"function"==typeof s?i?i=s(i):jR(o,"Modifier ".concat(o," used at start of tag")):i?jR(o,"Tag ".concat(o," used as modifier")):i=s:jR(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=mu.define({id:Pfe.length,name:a,props:[ffe(ec({},a,i))]});return Pfe.push(l),l.id}function LR(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var git=LR(function bit(t,n){var e,r=[],o=-1,s=He(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=BR(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var oe,P=[],W=He(r);try{for(W.s();!(oe=W.n()).done;){var J=oe.value,H=J.line,pe=J.comment;if(pe>=0){var N=H.from+pe,F=N+J.token.length;" "==H.text[F-H.from]&&F++,P.push({from:N,to:F})}}}catch(q){W.e(q)}finally{W.f()}return{changes:P}}return null},0),vit=LR(Bfe,0),yit=LR(function(t,n){return Bfe(t,n,function(e){var i,r=[],o=He(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function BR(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function Bfe(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return BR(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function _it(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Qn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?HR:"historyRedo"==n.inputType?TD:null;return!!i&&(n.preventDefault(),i(e))}})]}function DD(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(VR,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var HR=DD(0,!1),TD=DD(1,!1),Sit=DD(0,!0),kit=DD(1,!0);function Vfe(t){return function(n){var e=n.field(VR,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var Dit=Vfe(0),Tit=Vfe(1),yf=function(){function t(n,e,i,r,o){Oe(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Ie(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&cd.fromJSON(n.changes),[],n.mapped&&z0.fromJSON(n.mapped),n.startSelection&&rn.fromJSON(n.startSelection),n.selectionsAfter.map(rn.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=gu,o=He(n.startState.facet(wit));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,gu)}},{key:"selection",value:function(n){return new t(void 0,gu,void 0,void 0,n)}}]),t}();function ED(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Hfe(t,n){return t.length?n.length?t.concat(n):t:n}var gu=[];function Ufe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),ED(t,t.length-1,1e9,e.setSelAfter(i)))}return[yf.selection([n])]}function Eit(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function UR(t,n){if(!t.length)return t;for(var e=t.length,i=gu;e;){var r=Ait(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[yf.selection(i)]:gu}function Ait(t,n,e){var i=Hfe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):gu,e);if(!t.changes)return yf.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new yf(r,gr.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var Mit=/^(input\.type|delete)($|\.)/,Jb=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;Oe(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Ie(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||Mit.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?ED(s,s.length-1,r.minDepth,new yf(n.changes.compose(a.changes),Hfe(n.effects,a.effects),a.mapped,a.startSelection,gu)):ED(s,s.length,r.minDepth,n),gu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:gu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function MD(t,n,e){for(var i=gl(t).resolveInner(n.head),r=e?xr.closedBy:xr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;Iit(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?bh(t,i.from,1):bh(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,rn.cursor(l,e?-1:1)}function Yfe(t,n){return fd(t,function(e){if(!e.empty)return AD(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var Xfe=function(t){return Yfe(t,!1)},Jfe=function(t){return Yfe(t,!0)};function Kfe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=ID(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=ID(t,s,!1),a=ID(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:rn.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Qn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ID(t,n,e){if(t instanceof Qn){var i,r=He(t.state.facet(Qn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var ppe=function(t,n){return OD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function _pe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=He(ND(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=He(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(rn.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=He(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(rn.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:rn.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function bpe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=He(ND(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var Nit=xpe(!1),Fit=xpe(!0);function xpe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=gl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(xr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new wD(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=AR(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:rn.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var wpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(WR(n,function(i,r){r.push({from:i.from,insert:n.facet(xD)})}),{userEvent:"input.indent"})),!0)},Cpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(WR(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=Ab(o,n.tabSize),a=0,l=Yb(n,Math.max(0,s-i1(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:ype}].concat(Pit.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),jit=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return fd(t,function(n){return MD(t.state,n,!vl(t))})},shift:function(t){return vu(t,function(n){return MD(t.state,n,!vl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return fd(t,function(n){return MD(t.state,n,vl(t))})},shift:function(t){return vu(t,function(n){return MD(t.state,n,vl(t))})}},{key:"Alt-ArrowUp",run:function(t){return _pe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return bpe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return _pe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return bpe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=rn.create([i.main]):i.main.empty||(r=rn.create([rn.cursor(i.main.head)])),!!r&&(e(xh(n,r)),!0)}},{key:"Mod-Enter",run:Fit},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=ND(n).map(function(r){return rn.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:rn.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=r1(n.selection,function(r){for(var o,s=gl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return rn.range(s.to,s.from)});return e(xh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:Cpe},{key:"Mod-]",run:wpe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new wD(n,{overrideIndentation:function(s){return i[s]??-1}}),o=WR(n,function(s,a,l){var c=AR(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=Yb(n,c);(u!=d||l.from0?o--:s0&&bh(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;Oe(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(kpe(a))}:kpe,this.query=this.normalize(e)}return Ie(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Wa(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=g4(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Fc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(Oe(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=Dpe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new Ape(n,e,i,r,o);this.re=new RegExp(e,qR+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=FD(n,r),this.getLine(this.curLineStart)}return Ie(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=FD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return YR.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=FD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Epe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function FD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function XR(t){var n=Po("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Jn(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:PD.of(!1),selection:rn.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Po("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:PD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Po("label",t.state.phrase("Go to line"),": ",n)," ",Po("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(Tpe.prototype[Symbol.iterator]=Ape.prototype[Symbol.iterator]=function(){return this});var PD=gr.define(),Mpe=qa.define({create:function(){return!0},update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(PD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Hb.from(t,function(n){return n?XR:null})}}),Bit=Qn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),$it={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ope=oi.define({combine:function(t){return pu(t,$it,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Vit=Ci.mark({class:"cm-selectionMatch"}),Hit=Ci.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ipe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==ls.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==ls.Word)}var Uit=Ia.fromClass(function(){function t(n){Oe(this,t),this.decorations=this.getDeco(n)}return Ie(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(Ope),i=n.state,r=i.selection;if(r.ranges.length>1)return Ci.none;var o,y,b,C,D,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return Ci.none;var l=i.wordAt(s.head);if(!l)return Ci.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return Ci.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!Ipe(a=i.charCategorizer(s.head),i,s.from,s.to)||(D=s.to,(y=a)((b=i).sliceDoc(C=s.from,C+1))!=ls.Word||y(b.sliceDoc(D-1,D))!=ls.Word))return Ci.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return Ci.none}var u,d=[],h=He(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new o1(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||Ipe(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Hit.range(g,v)):(g>=s.to||v<=s.from)&&d.push(Vit.range(g,v)),d.length>e.maxMatches))return Ci.none}}catch(y){h.e(y)}finally{h.f()}return Ci.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),zit=Qn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),RD=oi.define({combine:function(t){return pu(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new ert(n)}})}});function Git(t){return t?[RD.of(t),ij]:ij}var Npe=function(){function t(n){Oe(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,qR),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Ie(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new qit(this):new Wit(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Fo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?a1(this,r,e,i):s1(this,r,e,i)}}]),t}(),Fpe=Ie(function t(n){Oe(this,t),this.spec=n});function s1(t,n,e,i){return new o1(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=s1(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function a1(t,n,e,i){return new Tpe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(jD(a.input,a.index))!=ls.Word||r(LD(a.input,a.index))!=ls.Word)&&(r(LD(a.input,a.index+a[0].length))!=ls.Word||r(jD(a.input,a.index+a[0].length))!=ls.Word)}):void 0},e,i);var r}function jD(t,n){return t.slice(jl(t,n,!1),n)}function LD(t,n){return t.slice(n,jl(t,n))}var qit=function(t){Dt(e,Fpe);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e,[{key:"nextMatch",value:function(i,r,o){var s=a1(this.spec,i,o,i.doc.length).next();return s.done&&(s=a1(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=a1(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=a1(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),Kb=gr.define(),JR=gr.define(),Lp=qa.define({create:function(t){return new KR(ZR(t).create(),null)},update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(Kb)?t=new KR(r.value.create(),t.panel):r.is(JR)&&(t=new KR(t.query,r.value?QR:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Hb.from(t,function(n){return n.panel})}}),KR=Ie(function t(n,e){Oe(this,t),this.query=n,this.panel=e}),Yit=Ci.mark({class:"cm-searchMatch"}),Xit=Ci.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Jit=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Lp))}return Ie(t,[{key:"update",value:function(n){var e=n.state.field(Lp);(e!=n.startState.field(Lp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return Ci.none;for(var i=this.view,r=new ug,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Xit:Yit)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function Qb(t){return function(n){var e=n.state.field(Lp,!1);return e&&e.query.spec.valid?t(n,e):ej(n)}}var BD=Qb(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:nj(t,r),userEvent:"select.search"}),!0)}),$D=Qb(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:nj(t,o),userEvent:"select.search"}),!0)}),Kit=Qb(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:rn.create(e.map(function(i){return rn.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),Ppe=Qb(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Qn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(nj(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),Qit=Qb(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Qn.announce.of(r),userEvent:"input.replace.all"}),!0});function QR(t){return t.state.facet(RD).createPanel(t)}function ZR(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(RD);return new Npe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var ej=function(t){var n=t.state.field(Lp,!1);if(n&&n.panel){var e=Vb(t,QR);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=ZR(t.state,n.query.spec);r.valid&&t.dispatch({effects:Kb.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[JR.of(!0),n?Kb.of(ZR(t.state,n.query.spec)):gr.appendConfig.of(ij)]});return!0},tj=function(t){var n=t.state.field(Lp,!1);if(!n||!n.panel)return!1;var e=Vb(t,QR);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:JR.of(!1)}),!0},Zit=[{key:"Mod-f",run:ej,scope:"editor search-panel"},{key:"F3",run:BD,shift:$D,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:BD,shift:$D,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:tj,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new o1(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(rn.range(c.value.from,c.value.to))}return e(n.update({selection:rn.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=Vb(t,XR);if(!n){var e=[PD.of(!0)];null==t.state.field(Mpe,!1)&&e.push(gr.appendConfig.of([Mpe,Bit])),t.dispatch({effects:e}),n=Vb(t,XR)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=rn.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||rn.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(C){return C.from==y.value.from}))return m=y,p=v,"continue";if(h){var b=s.wordAt(y.value.from);if(!b||b.from!=y.value.from||b.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new o1(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new o1(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===wn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(rn.range(o.from,o.to),!1),effects:Qn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],ert=function(){function t(n){var e=this;Oe(this,t),this.view=n;var i=this.query=n.state.field(Lp).query.spec;function r(o,s,a){return Po("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Po("input",{value:i.search,placeholder:Lc(n,"Find"),"aria-label":Lc(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Po("input",{value:i.replace,placeholder:Lc(n,"Replace"),"aria-label":Lc(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Po("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Po("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Po("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Po("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return BD(n)},[Lc(n,"next")]),r("prev",function(){return $D(n)},[Lc(n,"previous")]),r("select",function(){return Kit(n)},[Lc(n,"all")]),Po("label",null,[this.caseField,Lc(n,"match case")]),Po("label",null,[this.reField,Lc(n,"regexp")]),Po("label",null,[this.wordField,Lc(n,"by word")])].concat(ui(n.state.readOnly?[]:[Po("br"),this.replaceField,r("replace",function(){return Ppe(n)},[Lc(n,"replace")]),r("replaceAll",function(){return Qit(n)},[Lc(n,"replace all")])]),[Po("button",{name:"close",onclick:function(){return tj(n)},"aria-label":Lc(n,"close"),type:"button"},["\xd7"])]))}return Ie(t,[{key:"commit",value:function(){var n=new Npe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:Kb.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return Nhe(Ihe(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?$D:BD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),Ppe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=He(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=He(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(Kb)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(RD).top}}]),t}();function Lc(t,n){return t.state.phrase(n)}var VD=/[\s\.,:;?!]/;function nj(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!VD.test(l[c+1])&&VD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!VD.test(l[u-1])&&VD.test(l[u])){l=l.slice(0,u);break}return Qn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var trt=Qn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ij=[Lp,G0.lowest(Jit),trt],Rpe=function(){function t(n,e,i){Oe(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Ie(t,[{key:"tokenBefore",value:function(n){for(var e=gl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(Bpe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function jpe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var Lpe=Ie(function t(n,e,i){Oe(this,t),this.completion=n,this.source=e,this.match=i});function Bp(t){return t.selection.main.head}function Bpe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function $pe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:rn.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:rn.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Vpe=new WeakMap;function irt(t){if(!Array.isArray(t))return t;var n=Vpe.get(t);return n||Vpe.set(t,n=function nrt(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Jn(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=He(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&j<=57||j>=97&&j<=122?2:j>=65&&j<=90?1:0:(U=g4(j))!=U.toLowerCase()?1:U!=U.toUpperCase()?2:0;(!E||1==G&&C||0==z&&0!=G)&&(e[m]==j||i[m]==j&&(g=!0)?s[m++]=E:s.length&&(D=!1)),z=G,E+=Fc(j)}return m==c&&0==s[0]&&D?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,b]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,b]:m==c?this.result((g?-200:0)-100-700+(D?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=He(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Fc(Wa(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),wh=oi.define({combine:function(t){return pu(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Hpe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var ort=function(){function t(n,e){var i=this;Oe(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(wh);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,ui(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var C=p.appendChild(document.createElement("span"));C.appendChild(document.createTextNode(m.slice(y,b))),C.className="cm-completionMatchedText",g=b}return g=this.range.to)&&(this.range=Hpe(i.options.length,i.selected,this.view.state.facet(wh).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return jc(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,zpe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=He(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,b=v.result.getMatch,C=He(v.result.options);try{for(C.s();!(y=C.n()).done;){var D=y.value,E=[1e9-m++];if(b){var B,z=He(b(D));try{for(z.s();!(B=z.n()).done;)E.push(B.value)}catch(F){z.e(F)}finally{z.f()}}p.push(new Lpe(D,v,E))}}catch(F){C.e(F)}finally{C.f()}}else{var U,G=new rrt(h.sliceDoc(v.from,v.to)),X=void 0,oe=He(v.result.options);try{for(oe.s();!(U=oe.n()).done;){var P=U.value;(X=G.match(P.label))&&(null!=P.boost&&(X[0]+=P.boost),p.push(new Lpe(P,v,X)))}}catch(F){oe.e(F)}finally{oe.f()}}}}catch(F){g.e(F)}finally{g.f()}var W,J=[],H=null,pe=h.facet(wh).compareCompletions,A=He(p.sort(function(F,q){return q.match[0]-F.match[0]||pe(F.completion,q.completion)}));try{for(A.s();!(W=A.n()).done;){var N=W.value;!H||H.label!=N.completion.label||H.detail!=N.completion.detail||null!=H.type&&null!=N.completion.type&&H.type!=N.completion.type||H.apply!=N.completion.apply?J.push(N):Upe(N.completion)>Upe(H)&&(J[J.length-1]=N),H=N.completion}}catch(F){A.e(F)}finally{A.f()}return J}(n,e);if(!s.length)return null;var a,l=e.facet(wh).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var crt=[];function rj(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var mg=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;Oe(this,t),this.source=n,this.state=e,this.explicitPos=i}return Ie(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=rj(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=He(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(oj))r=new t(r.source,1,a.value?Bp(n.state):-1);else if(a.is(HD))r=new t(r.source,0);else if(a.is(Gpe)){var l,c=He(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(Bp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),urt=function(t){Dt(e,mg);var n=Tt(e);function e(i,r,o,s,a){var l;return Oe(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Ie(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=Bp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&Bp(i.startState)==this.from)return new mg(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):Bpe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new Rpe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:Bp(i.state)):new mg(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new mg(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),oj=gr.define(),HD=gr.define(),Gpe=gr.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Wpe=gr.define(),yu=qa.define({create:function(){return art.start()},update:function(t,n){return t.update(n)},provide:function(t){return[lD.from(t,function(n){return n.tooltip}),Qn.contentAttributes.from(t,function(n){return n.attrs})]}});function UD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(yu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function hnt(t,n){var e=t.plugin(Yhe);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Wpe.of(a)}),!0}}var drt=Ie(function t(n,e){Oe(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),hrt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=He(n.state.field(yu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Ie(t,[{key:"update",value:function(n){var e=this,i=n.state.field(yu);if(n.selectionSet||n.docChanged||n.startState.field(yu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!rj(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=He(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){jc(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,ui(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=He(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==rj(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=He(this.view.state.field(yu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=Bp(i),o=new Rpe(i,r,n.explicitPos==r),s=new drt(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:HD.of(null)}),jc(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(wh),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new urt(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:Bp(l.updates.length?l.updates[0].startState:e.view.state)),d=He(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(yu).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new mg(l.active.source,0),g=He(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),zD={brackets:["(","[","{","'",'"'],before:")]}:;>"},gg=gr.define({map:function(t,n){return n.mapPos(t,-1,Ll.TrackAfter)??void 0}}),sj=gr.define({map:function(t,n){return n.mapPos(t)}}),aj=new(function(t){Dt(e,cg);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e)}());aj.startSide=1,aj.endSide=-1;var qpe=qa.define({create:function(){return qo.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=qo.empty)}t=t.map(n.changes);var r,o=He(n.effects);try{var s=function(){var a=r.value;a.is(gg)?t=t.update({add:[aj.range(a.value,a.value+1)]}):a.is(sj)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ype(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return g4(t<128?t:t+1)}function Xpe(t,n){return t.languageDataAt("closeBrackets",n)[0]||zD}var prt="object"==(typeof navigator>"u"?"undefined":wn(navigator))&&/Android\b/.test(navigator.userAgent),mrt=Qn.inputHandler.of(function(t,n,e,i){if((prt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Fc(Wa(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=Xpe(s,s.selection.main.head),u=c.brackets||zD.brackets,d=He(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Ype(Wa(h,0));if(a==h)return f==h?_rt(s,h,u.indexOf(h+h+h)>-1):vrt(s,h,f,c.before||zD.before);if(a==f&&Jpe(s,s.selection.main.from))return yrt(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),grt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Xpe(n,n.selection.main.head).brackets||zD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Fc(Wa(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=He(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&GD(n.doc,s.head)==Ype(Wa(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:rn.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Jpe(t,n){var e=!1;return t.field(qpe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function GD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Fc(Wa(e,0)))}function vrt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:gg.of(s.to+n.length),range:rn.range(s.anchor+n.length,s.head+n.length)};var a=GD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:gg.of(s.head+n.length),range:rn.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function yrt(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&GD(t.doc,o.head)==e?rn.cursor(o.head+e.length):i=o});return i?null:t.update({selection:rn.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return sj.of(o.from)})})}function _rt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:gg.of(o.to+n.length),range:rn.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=GD(t.doc,s);if(a==n){if(Kpe(t,s))return{changes:{insert:n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)};if(Jpe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:rn.cursor(s+n.length*(l?3:1)),effects:sj.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Kpe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=ls.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=ls.Word&&!function(u,d,h){for(var f=gl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Kpe(t,n){var e=gl(t).resolveInner(n+1);return e.parent&&e.from==n}function brt(){return[yu,wh.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),hrt,xrt,frt]}var Qpe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(yu,!1)&&(t.dispatch({effects:oj.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(yu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:HD.of(null)}),0))}},{key:"ArrowDown",run:UD(!0)},{key:"ArrowUp",run:UD(!1)},{key:"PageDown",run:UD(!0,"page")},{key:"PageUp",run:UD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(yu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||($pe(t,n.open.options[n.open.selected]),0))}}],xrt=G0.highest(oD.computeN([wh],function(t){return t.facet(wh).defaultKeymap?[Qpe]:[]})),wrt=Ie(function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.diagnostic=i}),Zb=function(){function t(n,e,i){Oe(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Ie(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(vg).markerFilter;o&&(r=o(r));var s=Ci.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?Ci.widget({widget:new Trt(a),diagnostic:a}).range(a.from):Ci.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,l1(s))}}]),t}();function l1(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new wrt(r,o,a.diagnostic),!1}),i}function Zpe(t,n){return!(!t.effects.some(function(e){return e.is(WD)})&&!t.changes.touchesRange(n.pos))}function eme(t,n){return t.field(Bc,!1)?n:n.concat(gr.appendConfig.of([Bc,Qn.decorations.compute([Bc],function(e){var i=e.field(Bc),r=i.selected;return r&&i.panel&&r.from!=r.to?Ci.set([Crt.range(r.from,r.to)]):Ci.none}),dnt(Srt,{hideOn:Zpe}),Ert]))}var WD=gr.define(),lj=gr.define(),tme=gr.define(),Bc=qa.define({create:function(){return new Zb(Ci.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=l1(e,t.selected.diagnostic,r)||l1(e,null,r)}t=new Zb(e,t.panel,i)}var o,s=He(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(WD)?t=Zb.init(a.value,t.panel,n.state):a.is(lj)?t=new Zb(t.diagnostics,a.value?ame.open:null,t.selected):a.is(tme)&&(t=new Zb(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[Hb.from(t,function(n){return n.panel}),Qn.decorations.from(t,function(n){return n.diagnostics})]}}),Crt=Ci.mark({class:"cm-lintRange cm-lintRange-active"});function Srt(t,n,e){var i=t.state.field(Bc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=rme(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=He(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=l1(this.view.state.field(Bc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:tme.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function qD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function cj(t){return qD(''),'width="6" height="3"')}var Ert=Qn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:cj("#d11")},".cm-lintRange-warning":{backgroundImage:cj("orange")},".cm-lintRange-info":{backgroundImage:cj("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Art=function(t){Dt(e,gh);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Ie(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(YD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:uj.of({pos:f.from,above:!1,create:function(){return{dom:nme(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var b=m.getBoundingClientRect();if(!(y.clientX>b.left-10&&y.clientXb.top-10&&y.clientY')},".cm-lint-marker-warning":{content:qD('')},".cm-lint-marker-error":{content:qD('')}}),YD=oi.define({combine:function(t){return pu(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Nrt(){return[YD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lme,Ort,Irt,cme]}var ume,Frt=function(){return[_nt(),xnt,Ytt(),Cit(),Jnt(),$tt(),[$b,ztt],Fo.allowMultipleSelections.of(!0),Fo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=He(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=AR(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=Yb(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),Nfe(eit,{fallback:!0}),ait(),[mrt,qpe],brt(),tnt(),rnt(),Ztt,(n=[zit,Uit],n),oD.of([].concat(grt,ui(jit),Zit,Oit,qnt,Qpe,krt))];var n}(),Prt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;Oe(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Ie(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Rrt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new dme(r,r.start):null,0,null)}}]),t}(),dme=Ie(function t(n,e){Oe(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(ume||(ume={}));var Rrt=function(){function t(n){Oe(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Ie(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),jrt=function(){function t(n,e,i){Oe(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Ie(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),XD=Ie(function t(){Oe(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),hme=new XD,Lrt=function(){function t(n,e){Oe(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=hme,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Ie(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=hme,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=He(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),JD=function(){function t(n,e){Oe(this,t),this.data=n,this.id=e}return Ie(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function KD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}JD.prototype.contextual=JD.prototype.fallback=JD.prototype.extend=!1;var fme,pd=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),dj=null;function pme(t,n,e){var i=t.cursor(Xa.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(fme||(fme={}));var mme,Brt=function(){function t(n,e){Oe(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Ie(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?pme(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?pme(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof Ja){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),$rt=function(){function t(n,e){Oe(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new XD})}return Ie(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new XD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new XD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Brt(i,n.nodeSet):null}return Ie(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,b=null,C=He(v);try{for(C.s();!(y=C.n()).done;){var D=y.value,E=D.p.stoppedAt;(D.pos==D.p.stream.end||null!=E&&D.pos>E)&&D.p.parser.stateFlag(D.state,2)&&(!b||b.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(xr.contextHash)||0)==l))return n.useNode(c,u),pd&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof Ja)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof Ja&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),pd&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(b):i.push(b)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return gme(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),pd&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(pd&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)pd&&(h=this.stackID(d)+" -> ");var p,m=He(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;pd&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),pd&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),gme(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],b=-v;b>0;b--)d(p[g++],m,y);g++}}}}catch(E){f.e(E)}finally{f.f()}}o.nodeSet=new Snt(s.map(function(E,B){return mu.define({name:B>=o.minRepeatTerm?void 0:E,id:B,props:c[B],top:l.indexOf(B)>-1,error:0==B,skipped:i.skippedNodes&&i.skippedNodes.indexOf(B)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,ui(i.propSources))),o.strict=!1,o.bufferLength=1024;var C=KD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var D=0;D2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=_f(this.data,o+2)}if(r==_f(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=_f(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=vme(this.data,this.tokenPrecTable,r);return o<0||vme(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=He(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&xme(t);return{c:function(){n=De("div"),r&&r.c(),e=rt(),o&&o.c(),i=rt(),s&&s.c(),R(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){$e(a,n,l),r&&r.m(n,null),me(n,e),o&&o.m(n,null),me(n,i),s&&s.m(n,null)},p:function(a,l){var c=Jn(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=_me(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=bme(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=xme(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:Bt,o:Bt,d:function(a){a&&Be(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Xrt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Jrt=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Xrt,Yrt,_s,{editorState:3},qrt),r}return Ie(e)}(),hj=OR.define([{tag:gn.propertyName,color:"var(--jse-key-color)"},{tag:gn.number,color:"var(--jse-value-color-number)"},{tag:gn.bool,color:"var(--jse-value-color-boolean)"},{tag:gn.string,color:"var(--jse-value-color-string)"},{tag:gn.keyword,color:"var(--jse-value-color-null)"}]),Krt=Nfe(hj),Qrt=hj.style;function fj(t){return t.doc.lineAt(t.selection.main.head)}function wme(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=wme(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=wme(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=fj(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=He(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,b=g.from;b<=y;){var C=f.doc.lineAt(b);p.has(C)||p.add(C),b=C.to+1}}catch(D){m.e(D)}finally{m.f()}return p}(this.view,n),o=new Zrt(r,n,this.unitWidth),s=n.facet(QD).hideFirstIndent,a=He(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=tot(c,this.unitWidth,s);i.add(l.from,l.from,Ci.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function iot(){return[QD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),eot,Ia.fromClass(not,{decorations:function(n){return n.decorations}})]}function rot(t){_i(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function pj(t){var n=t.slice();return n[93]=0===n[10].length,n}function Cme(t){var n,e;return n=new Tet({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function oot(t){var n;return{c:function(){(n=De("div")).innerHTML='
    \n
    loading...
    ',R(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function sot(t){var n,e,i,r,o,s=t[92]&&Sme(t),a=!t[92]&&kme(t);return{c:function(){n=De("div"),e=rt(),s&&s.c(),i=rt(),a&&a.c(),r=Dr(),R(n,"class","jse-contents svelte-1yqirn0"),Nt(n,"jse-hidden",t[92])},m:function(l,c){$e(l,n,c),t[50](n),$e(l,e,c),s&&s.m(l,c),$e(l,i,c),a&&a.m(l,c),$e(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&Nt(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&Q(s,1)):((s=Sme(l)).c(),Q(s,1),s.m(i.parentNode,i)):s&&(Ht(),fe(s,1,1,function(){s=null}),Ut()),l[92]?a&&(Ht(),fe(a,1,1,function(){a=null}),Ut()):a?(a.p(l,c),1152&c[0]&&Q(a,1)):((a=kme(l)).c(),Q(a,1),a.m(r.parentNode,r))},i:function(l){o||(Q(s),Q(a),o=!0)},o:function(l){fe(s),fe(a),o=!1},d:function(l){l&&Be(n),t[50](null),l&&Be(e),s&&s.d(l),l&&Be(i),a&&a.d(l),l&&Be(r)}}}function Sme(t){var n,e,i,r,o,s=ah(t[10]||"",2e4)+"";return n=new ad({props:{icon:rg,type:"error",message:"The JSON document is larger than ".concat(Rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Rk(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){gt(n.$$.fragment),e=rt(),i=De("div"),r=sn(s),R(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){pt(n,a,l),$e(a,e,l),$e(a,i,l),me(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(Rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Rk(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=ah(a[10]||"",2e4)+"")&&ti(r,s)},i:function(a){o||(Q(n.$$.fragment,a),o=!0)},o:function(a){fe(n.$$.fragment,a),o=!1},d:function(a){mt(n,a),a&&Be(e),a&&Be(i)}}}function kme(t){var n,e,i,r,o,s=!t[13]&&t[8]&&Dse(t[10]),a=t[2]&&Dme(t),l=t[13]&&Tme(t),c=s&&Eme(t);return r=new ZP({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=rt(),l&&l.c(),e=rt(),c&&c.c(),i=rt(),gt(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),$e(u,n,d),l&&l.m(u,d),$e(u,e,d),c&&c.m(u,d),$e(u,i,d),pt(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&Q(a,1)):((a=Dme(u)).c(),Q(a,1),a.m(n.parentNode,n)):a&&(Ht(),fe(a,1,1,function(){a=null}),Ut()),u[13]?l?(l.p(u,d),8192&d[0]&&Q(l,1)):((l=Tme(u)).c(),Q(l,1),l.m(e.parentNode,e)):l&&(Ht(),fe(l,1,1,function(){l=null}),Ut()),9472&d[0]&&(s=!u[13]&&u[8]&&Dse(u[10])),s?c?(c.p(u,d),9472&d[0]&&Q(c,1)):((c=Eme(u)).c(),Q(c,1),c.m(i.parentNode,i)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(Q(a),Q(l),Q(c),Q(r.$$.fragment,u),o=!0)},o:function(u){fe(a),fe(l),fe(c),fe(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&Be(n),l&&l.d(u),u&&Be(e),c&&c.d(u),u&&Be(i),mt(r,u)}}}function Dme(t){var n,e;return n=new Jrt({props:{editorState:t[6]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Tme(t){var n,e;return n=new ad({props:{type:"error",icon:rg,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Eme(t){var n,e;return n=new ad({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:s4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:P0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:s4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:P0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function aot(t){var n,e,i,r,o,s=t[1]&&Cme(pj(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[sot,oot][i](c(t,i)),{c:function(){n=De("div"),s&&s.c(),e=rt(),r.c(),R(n,"class","jse-text-mode svelte-1yqirn0"),Nt(n,"no-main-menu",!t[1])},m:function(u,d){$e(u,n,d),s&&s.m(n,null),me(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(pj(u),d),2&d[0]&&Q(s,1)):((s=Cme(pj(u))).c(),Q(s,1),s.m(n,e)):s&&(Ht(),fe(s,1,1,function(){s=null}),Ut()),r.p(c(u,i),d),(!o||2&d[0])&&Nt(n,"no-main-menu",!u[1])},i:function(u){o||(Q(s),Q(r),o=!0)},o:function(u){fe(s),fe(r),o=!1},d:function(u){u&&Be(n),s&&s.d(),l[i].d(),t[52](null)}}}function Ame(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function lot(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,b=n.onChange,C=n.onChangeMode,D=n.onError,E=n.onFocus,B=n.onBlur,z=n.onRenderMenu,j=n.onSortModal,U=n.onTransformModal,G=Ma("jsoneditor:TextMode"),X={key:"Mod-i",run:le,shift:Re,preventDefault:!0},oe=typeof window>"u";G("isSSR:",oe);var P=!1,W=!0,J=[],H=new Tp,pe=new Tp,A=new Tp,N=new Tp,F=new Tp,q=new Tp,V=h,ce=ck(V,f,g),ve=m;eu(or(_n().mark(function vt(){return _n().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!oe){jn.next=2;break}return jn.abrupt("return");case 2:try{s=Xn({target:o,initialText:Ro(ce,P)?"":i.escapeValue(ce),readOnly:c,indentation:f})}catch(di){console.error(di)}case 3:case"end":return jn.stop()}},vt)}))),qu(function(){s&&(G("Destroy CodeMirror editor"),s.destroy())});var je=!1,Te=!1,et=mp(),We=mp();function st(){s&&(G("focus"),s.focus())}var $=!1;function ae(vt){G("patch",vt);var jn=g.parse(ce),di=ed(jn,vt),ki=WZ(jn,vt);return vr({text:g.stringify(di,null,f)}),{json:di,previousJson:jn,undo:ki,redo:vt}}function le(){if(G("format"),c)return!1;try{var vt=g.parse(ce);return vr({text:g.stringify(vt,null,f)}),e(8,W=!0),!0}catch(jn){D(jn)}return!1}function Re(){if(G("compact"),c)return!1;try{var vt=g.parse(ce);return vr({text:g.stringify(vt)}),e(8,W=!1),!0}catch(jn){D(jn)}return!1}function Ze(){if(G("repair"),!c)try{vr({text:Kd(ce)}),e(49,Rn="valid"),e(13,kt=null)}catch(vt){D(vt)}}function Ve(vt){var jn=vt.id,di=vt.rootPath,ki=vt.onTransform,Nr=vt.onClose;try{var Jr=g.parse(ce);$=!0,U({id:jn||We,json:Jr,rootPath:di||[],onTransform:function(co){ki?ki({operations:co,json:Jr,transformedJson:ed(Jr,co)}):(G("onTransform",co),ae(co))},onClose:function(){$=!1,st(),Nr&&Nr()}})}catch(co){D(co)}}function Ct(vt,jn){G("setSelection",{anchor:vt,head:jn}),s&&s.dispatch(s.state.update({selection:{anchor:vt,head:jn},scrollIntoView:!0}))}function Ot(vt,jn){if(1===jn.state.selection.ranges.length){var di=jn.state.selection.ranges[0],ki=ce.slice(di.from,di.to);if("{"===ki||"["===ki){var Nr=uS.parse(ce),Jr=Object.keys(Nr.pointers).find(function(Ks){var Cr;return(null===(Cr=Nr.pointers[Ks].value)||void 0===Cr?void 0:Cr.pos)===di.from}),co=Nr.pointers[Jr];Jr&&co&&co.value&&co.valueEnd&&(G("pointer found, selecting inner contents of path:",Jr,co),Ct(co.value.pos+1,co.valueEnd.pos-1))}}}function yn(){return function(vt){return vg.of({source:vt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(pi,{delay:300})}function Xn(vt){var jn=vt.target,di=vt.initialText,ki=vt.readOnly,Nr=vt.indentation;G("Create CodeMirror editor",{readOnly:ki,indentation:Nr});var Jr=Fo.create({doc:di,extensions:[oD.of([Lit,X]),H.of(yn()),Nrt(),Frt,Krt,iot({hideFirstIndent:!0}),Qn.domEventHandlers({dblclick:Ot}),Qn.updateListener.of(function(co){e(6,l=co.state),co.docChanged&&Si()}),new $nt(Wrt),Git({top:!0}),A.of(Fo.readOnly.of(ki)),pe.of(Qn.editable.of(!ki)),F.of(Fo.tabSize.of(p)),N.of(fr(Nr)),q.of(Qn.theme({},{dark:on()})),Qn.lineWrapping]});return s=new Qn({state:Jr,parent:jn})}function on(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ri(vt){var jn=vt.path,di=vt.message,ki=function(Nr,Jr){try{var co=uS.parse(Nr),Ks=dn(Jr),Cr=co.pointers[Ks];if(Cr)return{path:Jr,line:Cr.key?Cr.key.line:Cr.value?Cr.value.line:0,column:Cr.key?Cr.key.column:Cr.value?Cr.value.column:0,from:Cr.key?Cr.key.pos:Cr.value?Cr.value.pos:0,to:Cr.keyEnd?Cr.keyEnd.pos:Cr.valueEnd?Cr.valueEnd.pos:0}}catch(Qs){console.error(Qs)}return null}(i.escapeValue(ce),jn);return{path:jn,line:ki.line,column:ki.column,from:ki.from,to:ki.to,message:di,severity:Jd.warning,actions:[]}}function hn(vt,jn){var Nr=vt.position;return{path:[],line:vt.line,column:vt.column,from:Nr,to:Nr,severity:Jd.error,message:vt.message,actions:jn&&!c?[{name:"Auto repair",apply:function(){return Ze()}}]:null}}function vr(vt){var jn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],di=ck(vt,f,g),ki=!dr(vt,V),Nr=V;V=vt,e(10,ce=di),G("setCodeMirrorContent",{isChanged:ki,forceUpdate:jn}),s&&(ki||jn)&&(Ro(ce,P)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(ce)}}),wr(),ki&&Xr(V,Nr))}function Er(){if(s){var vt=s?i.unescapeValue(s.state.doc.toString()):"",jn=vt!==ce;if(G("onChangeCodeMirrorValue",{isChanged:jn}),jn){var di=V;e(10,ce=vt),V={text:ce},wr(),Xr(V,di)}}}function fr(vt){return xD.of("number"==typeof vt?" ".repeat(vt):vt)}function wr(){e(11,je=Dit(s.state)>0),e(12,Te=Tit(s.state)>0),G({canUndo:je,canRedo:Te})}QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(a)},hasFocus:function(){return $&&document.hasFocus()||dk(a)},onFocus:E,onBlur:B});var Si=p0(Er,300);function Xr(vt,jn){b&&b(vt,jn,{contentErrors:Bi(),patchResult:null})}function Ro(vt,jn){return!!vt&&vt.length>10485760&&!jn}var Rn="valid",kt=null;function pi(){if(Ro(ce,P))return[];var vt=Bi();return $le(vt)?[Ame(hn(vt.parseError,vt.isRepairable))]:function cKe(t){return Io(t)&&Array.isArray(t.validationErrors)}(vt)?vt.validationErrors.map(Ri).map(Ame):[]}function Bi(){G("validate:start"),Si.flush();var vt=Ar(i.escapeValue(ce),v,g,y);return $le(vt)?(e(49,Rn=vt.isRepairable?"repairable":"invalid"),e(13,kt=vt.parseError),e(9,J=[])):(e(49,Rn="valid"),e(13,kt=null),e(9,J=vt?.validationErrors||[])),G("validate:end"),vt}var Ar=wb(qJe);function ko(){kt&&function(vt){G("select parse error",vt);var jn=hn(vt,!1);Ct(jn.from,jn.to),st()}(kt)}var Qo={icon:FXe,text:"Show me",title:"Move to the parse error location",onClick:ko};return t.$$set=function(vt){"readOnly"in vt&&e(0,c=vt.readOnly),"mainMenuBar"in vt&&e(1,u=vt.mainMenuBar),"statusBar"in vt&&e(2,d=vt.statusBar),"externalContent"in vt&&e(29,h=vt.externalContent),"indentation"in vt&&e(30,f=vt.indentation),"tabSize"in vt&&e(31,p=vt.tabSize),"escapeUnicodeCharacters"in vt&&e(32,m=vt.escapeUnicodeCharacters),"parser"in vt&&e(33,g=vt.parser),"validator"in vt&&e(34,v=vt.validator),"validationParser"in vt&&e(35,y=vt.validationParser),"onChange"in vt&&e(36,b=vt.onChange),"onChangeMode"in vt&&e(37,C=vt.onChangeMode),"onError"in vt&&e(38,D=vt.onError),"onFocus"in vt&&e(39,E=vt.onFocus),"onBlur"in vt&&e(40,B=vt.onBlur),"onRenderMenu"in vt&&e(3,z=vt.onRenderMenu),"onSortModal"in vt&&e(41,j=vt.onSortModal),"onTransformModal"in vt&&e(42,U=vt.onTransformModal)},t.$$.update=function(){var vt;2&t.$$.dirty[1]&&(i=yP({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&vr(h),8&t.$$.dirty[1]&&(G("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(yn())})),1073741824&t.$$.dirty[0]&&(vt=f,s&&(G("updateIndentation",vt),s.dispatch({effects:N.reconfigure(fr(vt))}))),1&t.$$.dirty[1]&&function(vt){s&&(G("updateTabSize",vt),s.dispatch({effects:F.reconfigure(Fo.tabSize.of(vt))}))}(p),1&t.$$.dirty[0]&&function(vt){s&&(G("updateReadOnly",vt),s.dispatch({effects:[A.reconfigure(Fo.readOnly.of(vt)),pe.reconfigure(Qn.editable.of(!vt))]}))}(c),131074&t.$$.dirty[1]&&ve!==m&&(e(48,ve=m),G("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(ce)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Rn||c?[Qo]:[{icon:_k,text:"Auto repair",title:"Automatically repair JSON",onClick:Ze},Qo])},[c,u,d,z,o,a,l,P,W,J,ce,je,Te,kt,r,oe,le,Re,function(){var vt;if(!c)try{var jn=g.parse(ce);$=!0,j({id:et,json:jn,rootPath:[],onSort:(vt=or(_n().mark(function di(ki){var Nr;return _n().wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:G("onSort",Nr=ki.operations),ae(Nr);case 3:case"end":return Jr.stop()}},di)})),function(di){return vt.apply(this,arguments)}),onClose:function(){$=!1,st()}})}catch(di){D(di)}},function(){c||Ve({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?tj(s):ej(s))},function(){c||s&&(HR(s),st())},function(){c||s&&(TD(s),st())},function(){e(7,P=!0),vr(h,!0)},function(){C(Uo.tree)},function(){Er()},function(vt){G("select validation error",vt);var jn=Ri(vt);Ct(jn.from,jn.to),st()},Ro,ko,h,f,p,m,g,v,y,b,C,D,E,B,j,U,st,ae,Ve,function(){G("refresh"),tc().then(function(){if(s){var vt=on();G("updateTheme",{dark:vt}),s.dispatch({effects:[q.reconfigure(Qn.theme({},{dark:vt}))]})}})},Bi,ve,Rn,function(vt){Xi[vt?"unshift":"push"](function(){e(4,o=vt)})},function(){return e(8,W=!1)},function(vt){Xi[vt?"unshift":"push"](function(){e(5,a=vt)})}]}var cot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,lot,aot,Pi,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},rot,[-1,-1,-1,-1]),r}return Ie(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function uot(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function dot(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:Nae,title:hN,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var hot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dot,uot,Pi,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Ie(e)}();function Mme(t,n,e){var i=t.slice();return i[9]=n[e],i}function Ome(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],b=tr(v);b.length>0&&!nu(m,b);)y.unshift({op:"add",path:dn(b),value:{}}),b=tr(b);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&nr(c)&&yp(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var mot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,pot,fot,Pi,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Ie(e)}();function got(t){_i(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function vot(t){var n,e,i,r,o=ah(t[2].stringify(t[1]),50)+"";return{c:function(){n=De("button"),e=sn(o),R(n,"type","button"),R(n,"class","jse-inline-value svelte-l28mqd"),Nt(n,"jse-selected",t[3])},m:function(s,a){$e(s,n,a),me(n,e),i||(r=Rt(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Jn(a,1)[0];6&l&&o!==(o=ah(s[2].stringify(s[1]),50)+"")&&ti(e,o),8&l&&Nt(n,"jse-selected",s[3])},i:Bt,o:Bt,d:function(s){s&&Be(n),i=!1,r()}}}function yot(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=ao(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var _ot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,yot,vot,Pi,{path:0,value:1,parser:2,isSelected:3,onEdit:4},got),r}return Ie(e)}();function bot(t){_i(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function Ime(t){var n,e,i,r;return e=new hr({props:{data:t[1]===tu.asc?hu:Iae}}),{c:function(){n=De("span"),gt(e.$$.fragment),R(n,"class","jse-column-sort-icon svelte-h4fort"),R(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){$e(o,n,s),pt(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===tu.asc?hu:Iae),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&R(n,"title",i)},i:function(o){r||(Q(e.$$.fragment,o),r=!0)},o:function(o){fe(e.$$.fragment,o),r=!1},d:function(o){o&&Be(n),mt(e)}}}function xot(t){var n,e,i,r,o,s,a,l,c=ah(t[3],50)+"",u=void 0!==t[1]&&Ime(t);return{c:function(){n=De("button"),e=De("span"),i=sn(c),r=rt(),u&&u.c(),R(e,"class","jse-column-name"),R(n,"type","button"),R(n,"class","jse-column-header svelte-h4fort"),R(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),Nt(n,"jse-readonly",t[0])},m:function(d,h){$e(d,n,h),me(n,e),me(e,i),me(n,r),u&&u.m(n,null),s=!0,a||(l=Rt(n,"click",t[4]),a=!0)},p:function(d,h){var f=Jn(h,1)[0];(!s||8&f)&&c!==(c=ah(d[3],50)+"")&&ti(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&Q(u,1)):((u=Ime(d)).c(),Q(u,1),u.m(n,null)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&R(n,"title",o),(!s||1&f)&&Nt(n,"jse-readonly",d[0])},i:function(d){s||(Q(u),s=!0)},o:function(d){fe(u),s=!1},d:function(d){d&&Be(n),u&&u.d(),a=!1,l()}}}function wot(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Ji(s)?"values":cu(rc(s))),96&t.$$.dirty&&e(1,r=dr(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=tUe[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===tu.asc?tu.desc:tu.asc})},s,a,c]}var ZD,eT,Cot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wot,xot,Pi,{path:5,sortedColumn:6,readOnly:0,onSort:7},bot),r}return Ie(e)}();function Nme(t,n){return ZD||(eT=new WeakMap,ZD=new ResizeObserver(function(e){var i,r=He(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=eT.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),eT.set(t,n),ZD.observe(t),{destroy:function(){eT.delete(t),ZD.unobserve(t)}}}function Sot(t){var n,e;return n=new uce({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function kot(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,b=n.onEditValue,C=n.onEditRow,D=n.onToggleEnforceString,E=n.onCut,B=n.onCopy,z=n.onPaste,j=n.onRemove,U=n.onDuplicateRow,G=n.onInsertBeforeRow,X=n.onInsertAfterRow,oe=n.onRemoveRow;function P(){y(),b()}function W(){y(),C()}function J(){y(),D()}function H(){y(),E(!0)}function pe(){y(),E(!1)}function A(){y(),B(!0)}function N(){y(),B(!1)}function F(){y(),z()}function q(){y(),j()}function V(){y(),U()}function ce(){y(),G()}function ve(){y(),X()}function je(){y(),oe()}return t.$$set=function(Te){"json"in Te&&e(2,p=Te.json),"documentState"in Te&&e(3,m=Te.documentState),"parser"in Te&&e(4,g=Te.parser),"showTip"in Te&&e(0,v=Te.showTip),"onCloseContextMenu"in Te&&e(5,y=Te.onCloseContextMenu),"onEditValue"in Te&&e(6,b=Te.onEditValue),"onEditRow"in Te&&e(7,C=Te.onEditRow),"onToggleEnforceString"in Te&&e(8,D=Te.onToggleEnforceString),"onCut"in Te&&e(9,E=Te.onCut),"onCopy"in Te&&e(10,B=Te.onCopy),"onPaste"in Te&&e(11,z=Te.onPaste),"onRemove"in Te&&e(12,j=Te.onRemove),"onDuplicateRow"in Te&&e(13,U=Te.onDuplicateRow),"onInsertBeforeRow"in Te&&e(14,G=Te.onInsertBeforeRow),"onInsertAfterRow"in Te&&e(15,X=Te.onInsertAfterRow),"onRemoveRow"in Te&&e(16,oe=Te.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Ji(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?Mn(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Lr(i)||ws(i)||nr(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Lr(i)||nr(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&hb(i)&&!s&&Array.isArray(Mn(p,tr(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&hb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!zo(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&ng(i)&&Io(a),29491200&t.$$.dirty[0]&&d&&ng(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&ng(i)&&zo(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&mf(a,m.enforceStringMap,dn(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:P,icon:N0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:N0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:P,disabled:!c},{type:"button",icon:h?lb:cb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:J,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:I0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:I0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:I0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:pe,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:A,icon:xp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:xp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:A,disabled:!l},{type:"button",icon:xp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:N,disabled:!l}]},{type:"button",onClick:F,icon:Aae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:q,icon:BP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:W,icon:N0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:Rae,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:ce,icon:F0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:ve,icon:F0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:je,icon:BP,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,b,C,D,E,B,z,j,U,G,X,oe,o,l,u,h,c,i,a,d,r,s]}var Dot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,kot,Sot,Pi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Ie(e)}();function Tot(t){_i(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function Fme(t,n,e){var i=t.slice();i[12]=n[e];var r=Mn(i[0],i[12]).length;return i[13]=r,i}function Eot(t){var n,e;return{c:function(){n=sn(t[5]),e=sn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){$e(i,n,r),$e(i,e,r)},p:function(i,r){32&r&&ti(n,i[5])},d:function(i){i&&Be(n),i&&Be(e)}}}function Aot(t){var n;return{c:function(){n=sn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){$e(e,n,i)},p:Bt,d:function(e){e&&Be(n)}}}function Pme(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=cu(rc(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=De("button"),e=sn(t[6]),i=sn(' "'),r=sn(p),o=sn('"\n '),s=De("span"),a=sn("("),l=sn(m),c=rt(),u=sn(g),d=sn(")"),R(s,"class","jse-nested-array-count svelte-1te5h1h"),R(n,"type","button"),R(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,b){$e(y,n,b),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),me(s,a),me(s,l),me(s,c),me(s,u),me(s,d),h||(f=Rt(n,"click",v),h=!0)},p:function(y,b){t=y,64&b&&ti(e,t[6]),8&b&&p!==(p=cu(rc(t[12]))+"")&&ti(r,p),9&b&&m!==(m=t[13]+"")&&ti(l,m),9&b&&g!==(g=1!==t[13]?"items":"item")&&ti(u,g)},d:function(y){y&&Be(n),h=!1,f()}}}function Mot(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(z,j){return z[4]?Aot:Eot}for(var b=y(t),C=b(t),D=t[3],E=[],B=0;B1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){Oo(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Ji(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Oo(l)?"An object":ao(l)?"An empty array":"A ".concat(IN(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Uo.tree)}]}var Iot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Oot,Mot,Pi,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},Tot),r}return Ie(e)}();function Not(t){_i(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function Fot(t){var n,e,i,r,o,s;return e=new hr({props:{data:$Xe}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-column-header svelte-h4fort"),R(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){$e(a,n,l),pt(e,n,null),r=!0,o||(s=Rt(n,"click",t[3]),o=!0)},p:function(a,l){var c=Jn(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&R(n,"title",i)},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){fe(e.$$.fragment,a),r=!1},d:function(a){a&&Be(n),mt(e),o=!1,s()}}}function Pot(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Rot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Pot,Fot,Pi,{count:0,maxSampleCount:1,onRefresh:2},Not),r}return Ie(e)}();function jot(t){_i(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function Rme(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function jme(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=Mn(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function Lme(t,n,e){var i=t.slice();return i[125]=n[e],i}function Bme(t){var n,e;return n=new hot({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Lot(t){var n;return{c:function(){(n=De("div")).innerHTML='
    \n
    loading...
    ',R(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function Bot(t){var n,e,i,r,o,s,a,l,c,u=[Hot,Vot,$ot],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=De("label"),e=De("input"),i=rt(),o.c(),s=Dr(),R(e,"type","text"),e.readOnly="readonly",R(e,"tabindex","-1"),R(e,"class","jse-hidden-input svelte-hs49xj"),R(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){$e(f,n,p),me(n,e),t[71](e),$e(f,i,p),d[r].m(f,p),$e(f,s,p),a=!0,l||(c=Rt(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Ht(),fe(d[m],1,1,function(){d[m]=null}),Ut(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){fe(o),a=!1},d:function(f){f&&Be(n),t[71](null),f&&Be(i),d[r].d(f),f&&Be(s),l=!1,c()}}}function $ot(t){var n,e;return n=new Iot({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Vot(t){var n,e,i,r;return n=new ad({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:bp,text:"Repair manually",onClick:t[35]}]}}),i=new mue({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){gt(n.$$.fragment),e=rt(),gt(i.$$.fragment)},m:function(o,s){pt(n,o,s),$e(o,e,s),pt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:bp,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){fe(n.$$.fragment,o),fe(i.$$.fragment,o),r=!1},d:function(o){mt(n,o),o&&Be(e),mt(i,o)}}}function Hot(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j=!Ji(null===(n=t[21])||void 0===n?void 0:n.root),U=j&&$me(t),G=t[9],X=[],oe=0;oe"u";a("isSSR:",m);var g,v,y,b,C,D,E=n.readOnly,B=n.externalContent,z=n.mainMenuBar,j=n.escapeControlCharacters,U=n.escapeUnicodeCharacters,G=n.flattenColumns,X=n.parser,oe=n.parseMemoizeOne,P=n.validator,W=n.validationParser,J=n.indentation,H=n.onChange,pe=n.onChangeMode,A=n.onRenderValue,N=n.onRenderMenu,F=n.onFocus,q=n.onBlur,V=n.onSortModal,ce=n.onTransformModal,ve=n.onJSONEditorModal;QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(v)},hasFocus:function(){return st&&document.hasFocus()||dk(v)},onFocus:function(){F&&F()},onBlur:function(){q&&q()}});var je,Te=void 0,et=1e4,We=[],st=!1,$={},ae=600,le=0;function Re(Fe){a("updateSelection",Fe);var At="function"==typeof Fe?Fe(Ve.selection):Fe;dr(At,Ve.selection)||e(10,Ve=nt(nt({},Ve),{},{selection:At}))}function Ze(Fe){void 0!==Ve.selection&&void 0!==Fe&&(Ve.selection&&nu(Fe,Ve.selection.anchorPath)&&nu(Fe,Ve.selection.focusPath)||(a("clearing selection: path does not exist anymore",Ve.selection),e(10,Ve=nt(nt({},Ve),{},{selection:T0(Fe,Ve)}))))}var Ot,Ve=fk(),Ct=!1,yn=Tle({onChange:function(Fe){e(19,Xn=Fe)}}),Xn=yn.getState();function Ri(Fe){var At=Fe.previousJson,Gt=Fe.previousState,ln=Fe.previousText,mn=Fe.previousTextIsRepaired;void 0===At&&void 0===ln||(void 0!==C?yn.add(void 0!==At?{undo:{patch:[{op:"replace",path:"",value:At}],state:pl(Gt),json:void 0,text:ln,textIsRepaired:mn},redo:{patch:[{op:"replace",path:"",value:C}],state:pl(Ve),json:void 0,text:D,textIsRepaired:Ct}}:{undo:{patch:void 0,json:void 0,text:ln,state:pl(Gt),textIsRepaired:mn},redo:{patch:void 0,json:C,state:pl(Ve),text:D,textIsRepaired:Ct}}):void 0!==At&&yn.add({undo:{patch:void 0,json:At,state:pl(Gt),text:ln,textIsRepaired:mn},redo:{patch:void 0,json:void 0,text:D,textIsRepaired:Ct,state:pl(Ve)}}))}var hn=[],vr=wb(Ele);function Er(Fe,At,Gt,ln){j0(function(){var mn;try{mn=vr(Fe,At,Gt,ln)}catch(ci){mn=[{path:[],message:"Failed to validate: "+ci.message,severity:Jd.warning}]}dr(mn,hn)||(a("validationErrors changed:",mn),e(11,hn=mn))},function(mn){return a("validationErrors updated in ".concat(mn," ms"))})}function fr(){return a("validate"),Te?{parseError:Te,isRepairable:!1}:(Er(C,P,X,W),Ji(hn)?null:{validationErrors:hn})}function wr(Fe,At){if(a("patch",Fe,At),void 0===C)throw new Error("Cannot apply patch: no JSON");var Gt={json:C},ln=C,mn=Ve,ci=Ct,$i=_ae(C,Fe),zn=Zse(C,Ve,Fe).json,ai=function UZe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=fu(Zu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return dr(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?nt(nt({},t),{},{sortedColumn:void 0}):t}(Ve,Fe,We),ni="function"==typeof At?At(zn,ai):void 0;e(7,C=ni&&void 0!==ni.json?ni.json:zn);var kr=ni&&void 0!==ni.state?ni.state:ai;e(10,Ve=kr),e(15,D=void 0),e(18,Ct=!1),e(17,je=void 0),yn.add({undo:{patch:$i,json:void 0,text:void 0,state:pl(mn),textIsRepaired:ci},redo:{patch:Fe,json:void 0,state:pl(kr),text:void 0,textIsRepaired:Ct}});var Fr={json:C,previousJson:ln,undo:$i,redo:Fe};return Xr(Gt,Fr),Fr}function Si(Fe,At){if(!E)return wr(Fe,At)}function Xr(Fe,At){(void 0!==Fe.json||void 0!==Fe?.text)&&(void 0!==D?H({text:D,json:void 0},Fe,{contentErrors:fr(),patchResult:At}):void 0!==C&&H({text:void 0,json:C},Fe,{contentErrors:fr(),patchResult:At}))}function Ro(Fe){a("handleFind",Fe)}function Rn(Fe){a("pasted json as text",Fe),e(17,je=Fe)}function kt(Fe){var At=parseInt(Fe[0]),Gt=[String(At+1)].concat(ui(Fe.slice(1)));return nu(C,Gt)?br(Gt,!1):br(Fe,!1)}function pi(){b&&(b.focus(),b.select())}function Bi(){Ve.selection||Re(function(){if(ao(C)&&!Ji(C)&&!Ji(We))return br(["0"].concat(ui(We[0])),!1)}())}function Ar(Fe){var At=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Gt=u4(Fe,We,$,18),ln=Gt-le,mn=vt(Fe);a("scrollTo",{path:Fe,top:Gt,scrollTop:le,elem:mn});var ci=y.getBoundingClientRect();if(mn&&!At){var $i=mn.getBoundingClientRect();if($i.bottom>ci.top&&$i.topGt.right&&e(13,y.scrollLeft+=ln.right-Gt.right,y),ln.left(zn=le+ci.height-18)&&e(13,y.scrollTop+=mn-zn,y),ln<$i&&e(13,y.scrollTop-=$i-ln,y),ko(Fe)}function vt(Fe){return y?y.querySelector('td[data-path="'.concat(C0(Fe),'"]')):null}function jn(Fe){st=!0;var ni=u(Dot,{json:C,documentState:Ve,parser:X,showTip:Fe.showTip,onEditValue:ki,onEditRow:Nr,onToggleEnforceString:Jr,onCut:Cr,onCopy:Za,onPaste:Ks,onRemove:$c,onDuplicateRow:Ee,onInsertBeforeRow:qe,onInsertAfterRow:Ke,onRemoveRow:dt,onCloseContextMenu:function(){d(ni),pi()}},{left:Fe.left,top:Fe.top,offsetTop:Fe.offsetTop,offsetLeft:Fe.offsetLeft,width:Fe.width,height:Fe.height,anchor:Fe.anchor,closeOnOuterClick:!0,onClose:function(){st=!1,pi()}})}function di(Fe){if(!E&&!yp(Ve.selection)){if(Fe&&(Fe.stopPropagation(),Fe.preventDefault()),Fe&&"contextmenu"===Fe.type&&Fe.target!==b)jn({left:Fe.clientX,top:Fe.clientY,width:260,height:336,showTip:!1});else{var At,Gt=null===(At=y)||void 0===At?void 0:At.querySelector(".jse-table-cell.jse-selected-value");if(Gt)jn({anchor:Gt,offsetTop:2,width:260,height:336,showTip:!1});else{var ln,mn=null===(ln=y)||void 0===ln?void 0:ln.getBoundingClientRect();mn&&jn({top:mn.top+2,left:mn.left+2,width:260,height:336,showTip:!1})}}return!1}}function ki(){if(!E&&Ve.selection){var Fe=Ve.selection.focusPath;zo(Mn(C,Fe))?gi(Fe):Re(br(Fe,!0))}}function Nr(){!E&&Ve.selection&&gi(Ve.selection.focusPath.slice(0,1))}function Jr(){if(!E&&nr(Ve.selection)){var Fe=Ve.selection.focusPath,At=dn(Fe),Gt=Mn(C,Fe),ln=!mf(Gt,Ve.enforceStringMap,At,X),mn=ln?String(Gt):e0(String(Gt),X);a("handleToggleEnforceString",{enforceString:ln,value:Gt,updatedValue:mn}),Si([{op:"replace",path:At,value:mn}],function(ci,$i){return{state:Qse($i,At,ln)}})}}function co(){return(co=or(_n().mark(function Fe(){var At,Gt,ln;return _n().wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return a("apply pasted json",je),Gt=(At=je).path,ln=At.contents,Re(br(Gt,!1)),mn.next=5,tc();case 5:Si([{op:"replace",path:dn(Gt),value:ln}]);case 7:case"end":return mn.stop()}},Fe)}))).apply(this,arguments)}function Ks(){l(Lle,{},nt(nt({},Vm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return pi()}})}function Cr(Fe){return Qs.apply(this,arguments)}function Qs(){return(Qs=or(_n().mark(function Fe(At){return _n().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,uue({json:C,documentState:Ve,indentation:At?J:void 0,readOnly:E,parser:X,onPatch:Si});case 2:case"end":return Gt.stop()}},Fe)}))).apply(this,arguments)}function Za(){return el.apply(this,arguments)}function el(){return el=or(_n().mark(function Fe(){var At,Gt=arguments;return _n().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(At=!(Gt.length>0&&void 0!==Gt[0])||Gt[0],void 0!==C){ln.next=3;break}return ln.abrupt("return");case 3:return ln.next=5,due({json:C,documentState:Ve,indentation:At?J:void 0,parser:X});case 5:case"end":return ln.stop()}},Fe)})),el.apply(this,arguments)}function $c(){fue({json:C,text:D,documentState:Ve,keepSelection:!0,readOnly:E,onChange:H,onPatch:Si})}function Ee(){!function zZe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&M0(e.selection)){var s=fu(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;Rl("duplicate row",{rowIndex:a});var c=[String(a)];o(gae(n,[c]),function(u,d){var h=br(lg({rowIndex:a0?a-1:void 0,h=void 0!==d?br(lg({rowIndex:d,columnIndex:l},i),!1):void 0;return Rl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:nt(nt({},u),{},{selection:h})}})}}({json:C,documentState:Ve,columns:We,readOnly:E,onPatch:Si})}function Ye(){return(Ye=or(_n().mark(function Fe(At){return _n().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,pue({char:At,selectInside:!1,refJsonEditor:v,json:C,documentState:Ve,readOnly:E,parser:X,onPatch:Si,onReplaceJson:In,onSelect:Re});case 2:case"end":return Gt.stop()}},Fe)}))).apply(this,arguments)}function In(Fe,At){var Gt=Ve,ln=C,mn=D,ci={json:C,text:D},$i=Ct,zn=uu(C,Ve,[],lh),ai="function"==typeof At?At(Fe,zn):void 0;e(7,C=ai&&void 0!==ai.json?ai.json:Fe),e(10,Ve=ai&&void 0!==ai.state?ai.state:zn),e(15,D=void 0),e(18,Ct=!1),Ze(C),Ri({previousJson:ln,previousState:Gt,previousText:mn,previousTextIsRepaired:$i}),Xr(ci,null)}function li(Fe,At){a("handleChangeText");var Gt=Ve,ln=C,mn=D,ci={json:C,text:D},$i=Ct;try{e(7,C=oe(Fe)),e(10,Ve=uu(C,Ve,[],lh)),e(15,D=void 0),e(18,Ct=!1)}catch{try{e(7,C=oe(Kd(Fe))),e(10,Ve=uu(C,Ve,[],lh)),e(15,D=Fe),e(18,Ct=!0)}catch{e(7,C=void 0),e(10,Ve=fk({json:C,expand:lh})),e(15,D=Fe),e(18,Ct=!1)}}if("function"==typeof At){var zn=At(C,Ve);e(7,C=zn&&zn.json?zn.json:C),e(10,Ve=zn&&zn.state?zn.state:Ve)}Ze(C),Ri({previousJson:ln,previousState:Gt,previousText:mn,previousTextIsRepaired:$i}),Xr(ci,null)}function vi(Fe){var Gt=Fe.rootPath,ln=Fe.onTransform,mn=Fe.onClose;E||void 0===C||(st=!0,ce({id:Fe.id||p,json:C,rootPath:Gt||[],onTransform:ln?function(ci){ln({operations:ci,json:C,transformedJson:ed(C,ci)})}:function(ci){a("onTransform",Gt,ci),Si(ci)},onClose:function(){st=!1,pi(),mn&&mn()}}))}function gi(Fe){a("openJSONEditorModal",{path:Fe}),st=!0,ve({content:{json:Mn(C,Fe)},path:Fe,onPatch:Ot.onPatch,onClose:function(){st=!1,pi()}})}function Mr(Fe,At){l(Xle,{text:Fe,onParse:ak,onRepair:bse,onApply:At},nt(nt({},Vm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return pi()}})}function to(){if(!E&&yn.getState().canUndo){var Fe=yn.undo();if(Fe){var At={json:C,text:D};e(7,C=Fe.undo.patch?ed(C,Fe.undo.patch):Fe.undo.json),e(10,Ve=Fe.undo.state),e(15,D=Fe.undo.text),e(18,Ct=Fe.undo.textIsRepaired),a("undo",{item:Fe,json:C}),Xr(At,{json:C,previousJson:At.json,redo:Fe.undo.patch,undo:Fe.redo.patch}),pi(),Ve.selection&&Ar(Ve.selection.focusPath,!1)}}}function xi(){if(!E&&yn.getState().canRedo){var Fe=yn.redo();if(Fe){var At={json:C,text:D};e(7,C=Fe.redo.patch?ed(C,Fe.redo.patch):Fe.redo.json),e(10,Ve=Fe.redo.state),e(15,D=Fe.redo.text),e(18,Ct=Fe.redo.textIsRepaired),a("redo",{item:Fe,json:C}),Xr(At,{json:C,previousJson:At.json,redo:Fe.redo.patch,undo:Fe.undo.patch}),pi(),Ve.selection&&Ar(Ve.selection.focusPath,!1)}}}function Sr(Fe,At){e(68,$[At]=Fe.getBoundingClientRect().height,$)}return t.$$set=function(Fe){"readOnly"in Fe&&e(0,E=Fe.readOnly),"externalContent"in Fe&&e(47,B=Fe.externalContent),"mainMenuBar"in Fe&&e(1,z=Fe.mainMenuBar),"escapeControlCharacters"in Fe&&e(48,j=Fe.escapeControlCharacters),"escapeUnicodeCharacters"in Fe&&e(49,U=Fe.escapeUnicodeCharacters),"flattenColumns"in Fe&&e(50,G=Fe.flattenColumns),"parser"in Fe&&e(2,X=Fe.parser),"parseMemoizeOne"in Fe&&e(51,oe=Fe.parseMemoizeOne),"validator"in Fe&&e(52,P=Fe.validator),"validationParser"in Fe&&e(53,W=Fe.validationParser),"indentation"in Fe&&e(3,J=Fe.indentation),"onChange"in Fe&&e(54,H=Fe.onChange),"onChangeMode"in Fe&&e(4,pe=Fe.onChangeMode),"onRenderValue"in Fe&&e(55,A=Fe.onRenderValue),"onRenderMenu"in Fe&&e(5,N=Fe.onRenderMenu),"onFocus"in Fe&&e(56,F=Fe.onFocus),"onBlur"in Fe&&e(57,q=Fe.onBlur),"onSortModal"in Fe&&e(58,V=Fe.onSortModal),"onTransformModal"in Fe&&e(59,ce=Fe.onTransformModal),"onJSONEditorModal"in Fe&&e(60,ve=Fe.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=yP({escapeControlCharacters:j,escapeUnicodeCharacters:U})),65536&t.$$.dirty[1]&&function on(Fe){var At=C,Gt=x0(Fe)?Fe.text!==D:!dr(At,Fe.json);if(a("update external content",{isChanged:Gt}),Gt){var ln={json:C,text:D},mn=C,ci=Ve,$i=D,zn=Ct;if(x0(Fe))try{e(7,C=oe(Fe.text)),e(15,D=Fe.text),e(18,Ct=!1),e(16,Te=void 0)}catch(ai){try{e(7,C=oe(Kd(Fe.text))),e(15,D=Fe.text),e(18,Ct=!0),e(16,Te=void 0)}catch{e(7,C=void 0),e(15,D=B.text),e(18,Ct=!1),e(16,Te=lk(D,ai.message||ai.toString()))}}else e(7,C=Fe.json),e(15,D=void 0),e(18,Ct=!1),e(16,Te=void 0);Ze(C),Ve.sortedColumn&&e(10,Ve=nt(nt({},Ve),{},{sortedColumn:void 0})),Ri({previousJson:mn,previousState:ci,previousText:$i,previousTextIsRepaired:zn}),Xr(ln,null)}}(B),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,We=ao(C)?function(Fe,At){var Gt,ln=new Set(At.map(dn)),mn=new Set(Fe.map(dn)),ci=He(ln);try{for(ci.s();!(Gt=ci.n()).done;){var $i=Gt.value;mn.has($i)||ln.delete($i)}}catch(kr){ci.e(kr)}finally{ci.f()}var zn,ai=He(mn);try{for(ai.s();!(zn=ai.n()).done;){var ni=zn.value;ln.has(ni)||ln.add(ni)}}catch(kr){ai.e(kr)}finally{ai.f()}return ui(ln).map(Zu)}(function(Fe,At){var Gt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,ln={};Array.isArray(Fe)&&function Jqe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;ret),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Fe,At,Gt,ln,mn){for(var ci=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,$i=ao(Gt)?Gt.length:0,zn=function $Ze(t,n){var e=Object.values(t);return Ji(e)?n:e.reduce(function(r,o){return r+o})/e.length}(ln,mn),ai=Fe-ci,ni=At+2*ci,kr=function(xd){return ln[xd]||mn},Fr=0,jo=0;jo0&&(jo-=kr(--Fr));for(var ba=Fr,bd=0;bd0?br(lg({rowIndex:kr.rowIndex,columnIndex:jo-1},ai),!1):ni;Re(Gt),Qo(Gt.focusPath)}if("ArrowRight"===At&&(Fe.preventDefault(),Bi(),Ve.selection)){var ln=function(ai,ni){var kr=fu(ni.focusPath,ai),jo=kr.columnIndex;return jo0?br(lg({rowIndex:Fr-1,columnIndex:kr.columnIndex},ai),!1):ni}(We,Ve.selection);Re(mn),Qo(mn.focusPath)}if("ArrowDown"===At&&(Fe.preventDefault(),Bi(),Ve.selection)){var ci=function(ai,ni,kr){var Fr=fu(kr.focusPath,ni),jo=Fr.rowIndex;return jo1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Qme({props:{mode:Bn(t[18]).mode,content:Bn(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:fh,onBlur:fh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var C=t[19]&&Zme(t),D=t[18].length>1&&ege(t);function E(j,U){return j[0]?est:tst}var B=E(t),z=B(t);return{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),(o=De("div")).innerHTML='
    Path
    ',s=rt(),a=De("input"),l=rt(),(c=De("div")).innerHTML='
    Contents
    ',u=rt(),d=De("div"),gt(h.$$.fragment),f=rt(),p=De("div"),C&&C.c(),m=rt(),D&&D.c(),g=rt(),z.c(),R(o,"class","jse-label svelte-1hibiw3"),R(a,"class","jse-path svelte-1hibiw3"),R(a,"type","text"),a.readOnly=!0,R(a,"title","Selected path"),a.value=t[21],R(c,"class","jse-label svelte-1hibiw3"),R(d,"class","jse-modal-inline-editor svelte-1hibiw3"),R(p,"class","jse-actions svelte-1hibiw3"),R(r,"class","jse-modal-contents svelte-1hibiw3"),R(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(j,U){$e(j,n,U),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(r,s),me(r,a),me(r,l),me(r,c),me(r,u),me(r,d),pt(h,d,null),me(r,f),me(r,p),C&&C.m(p,null),me(p,m),D&&D.m(p,null),me(p,g),z.m(p,null),v=!0,y||(b=Ea(Nk.call(null,n,t[23])),y=!0)},p:function(j,U){var G={};262144&U[0]&&(G.title="Edit nested content "+(j[18].length>1?" (".concat(j[18].length,")"):"")),e.$set(G),(!v||2097152&U[0]&&a.value!==j[21])&&(a.value=j[21]);var X={};262144&U[0]&&(X.mode=Bn(j[18]).mode),262144&U[0]&&(X.content=Bn(j[18]).content),1&U[0]&&(X.readOnly=j[0]),2&U[0]&&(X.indentation=j[1]),4&U[0]&&(X.tabSize=j[2]),32&U[0]&&(X.statusBar=j[5]),8&U[0]&&(X.mainMenuBar=j[3]),16&U[0]&&(X.navigationBar=j[4]),64&U[0]&&(X.escapeControlCharacters=j[6]),128&U[0]&&(X.escapeUnicodeCharacters=j[7]),256&U[0]&&(X.flattenColumns=j[8]),512&U[0]&&(X.parser=j[9]),1048576&U[0]&&(X.parseMemoizeOne=j[20]),1024&U[0]&&(X.validator=j[10]),2048&U[0]&&(X.validationParser=j[11]),4096&U[0]&&(X.pathParser=j[12]),8192&U[0]&&(X.onRenderValue=j[13]),16384&U[0]&&(X.onClassName=j[14]),32768&U[0]&&(X.onRenderMenu=j[15]),65536&U[0]&&(X.onSortModal=j[16]),131072&U[0]&&(X.onTransformModal=j[17]),h.$set(X),j[19]?C?C.p(j,U):((C=Zme(j)).c(),C.m(p,m)):C&&(C.d(1),C=null),j[18].length>1?D?(D.p(j,U),262144&U[0]&&Q(D,1)):((D=ege(j)).c(),Q(D,1),D.m(p,g)):D&&(Ht(),fe(D,1,1,function(){D=null}),Ut()),B===(B=E(j))&&z?z.p(j,U):(z.d(1),(z=B(j))&&(z.c(),z.m(p,null)))},i:function(j){v||(Q(e.$$.fragment,j),Q(h.$$.fragment,j),Q(D),v=!0)},o:function(j){fe(e.$$.fragment,j),fe(h.$$.fragment,j),fe(D),v=!1},d:function(j){j&&Be(n),mt(e),mt(h),C&&C.d(),D&&D.d(),z.d(),y=!1,b()}}}function tge(t){t.focus()}function ist(t,n,e){var i,r,o,s=Ma("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,b=n.parser,C=n.validator,D=n.validationParser,E=n.pathParser,B=n.onRenderValue,z=n.onClassName,j=n.onRenderMenu,U=n.onSortModal,G=n.onTransformModal,X=Aa("simple-modal").close,oe=[{mode:W(a),content:a,relativePath:l}],P=void 0;function W(H){return vP(H)&&ao(H.json)?Uo.table:Uo.tree}function J(H){s("handleChange",H);var pe=nt(nt({},Bn(oe)),{},{content:H});e(18,oe=[].concat(ui(tr(oe)),[pe]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,b=H.parser),"validator"in H&&e(10,C=H.validator),"validationParser"in H&&e(11,D=H.validationParser),"pathParser"in H&&e(12,E=H.pathParser),"onRenderValue"in H&&e(13,B=H.onRenderValue),"onClassName"in H&&e(14,z=H.onClassName),"onRenderMenu"in H&&e(15,j=H.onRenderMenu),"onSortModal"in H&&e(16,U=H.onSortModal),"onTransformModal"in H&&e(17,G=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=oe.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Ji(i)?"(whole document)":cu(rc(i))),512&t.$$.dirty[0]&&e(20,o=wb(b.parse))},[u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,oe,P,o,r,function(){if(s("handleApply"),!u)try{e(19,P=void 0);var H=[{op:"replace",path:dn(Bn(oe).relativePath),value:wse(Bn(oe).content,b).json}];if(oe.length>1){var pe={json:ed(wse(oe[oe.length-2].content,b).json,H)};e(18,oe=tr(oe)),J(pe)}else c(H),X()}catch(A){e(19,P=A.toString())}},function(){s("handleClose"),oe.length>1?(e(18,oe=tr(oe)),e(19,P=void 0)):X()},J,function(H){s("handleChangeMode",H);var pe=nt(nt({},Bn(oe)),{},{mode:H});e(18,oe=[].concat(ui(tr(oe)),[pe]))},function(H){e(19,P=H.toString()),console.error(H)},function(H){var pe=H.content,A=H.path;s("handleJSONEditorModal",{content:pe,path:A});var N={mode:W(pe),content:pe,relativePath:A};e(18,oe=[].concat(ui(oe),[N]))},a,l,c,i]}var rst=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ist,nst,Pi,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Zot,[-1,-1]),r}return Ie(e)}();function ost(t,n,e){var i=Aa("simple-modal");return[i.open,i.close]}var sst=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ost,null,Pi,{open:0,close:1}),r}return Ie(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function ast(t){_i(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function nge(t){var n,e;return n=new Qme({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){gt(n.$$.fragment)},m:function(r,o){pt(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(Q(n.$$.fragment,r),e=!0)},o:function(r){fe(n.$$.fragment,r),e=!1},d:function(r){t[56](null),mt(n,r)}}}function lst(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new sst({props:l}),Xi.push(function(){return Xu(n,"open",a)});var c=nge(t);return{c:function(){gt(n.$$.fragment),i=rt(),r=De("div"),c.c(),R(r,"class","jse-main svelte-sxaskb"),Nt(r,"jse-focus",t[20])},m:function(u,d){pt(n,u,d),$e(u,i,d),$e(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],Yu(function(){return e=!1})),n.$set(h),524288&d[0]&&Pi(s,s=u[19])?(Ht(),fe(c,1,1,Bt),Ut(),(c=nge(u)).c(),Q(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&Nt(r,"jse-focus",u[20])},i:function(u){o||(Q(n.$$.fragment,u),Q(c),o=!0)},o:function(u){fe(n.$$.fragment,u),fe(c),o=!1},d:function(u){mt(n,u),u&&Be(i),u&&Be(r),c.d(u)}}}function cst(t){var n,e;return n=new jZ({props:{closeOnEsc:!1,$$slots:{default:[lst]},$$scope:{ctx:t}}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function ust(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},LZ,{closeOnEsc:!1}],o={$$slots:{default:[cst]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;Oe(this,l),this._names={},this._prefixes=u,this._parent=d}return Ie(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){Dt(u,l);var c=Tt(u);function u(d,h){var f;return Oe(this,u),(f=c.call(this,h)).prefix=d,f}return Ie(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(Qq||(Qq=Pe([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)(Zq||(Zq=Pe(["\n"],["\\n"]))),a=function(l){Dt(u,l);var c=Tt(u);function u(d){var h;return Oe(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=nt(nt({},d),{},{_n:d.lines?s:e.nil}),h}return Ie(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var b=this._scope[m]||(this._scope[m]=[]),C=b.length;return b[C]=h.ref,p.setValue(h,{property:m,itemIndex:C}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(eY||(eY=Pe(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(b){var C=d[b];if(!C)return"continue";var D=p[b]=p[b]||new Map;C.forEach(function(E){if(!D.has(E)){D.set(E,n.Started);var B=h(E);if(B){var z=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(tY||(tY=Pe(["",""," "," = ",";",""])),g,z,E,B,f.opts._n)}else{if(!(B=m?.(E)))throw new i(E);g=(0,e._)(nY||(nY=Pe(["","","",""])),g,B,f.opts._n)}D.set(E,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(pge)),pge}function Tr(){return fge||(fge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=nT(),e=mge(),i=nT();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=mge();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function F(){Oe(this,F)}return Ie(F,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(q,V){return this}}]),F}(),s=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).varKind=ce,Te.name=ve,Te.rhs=je,Te}return Ie(V,[{key:"render",value:function(ce){var je=ce._n,Te=ce.es5?e.varKinds.var:this.varKind,et=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(Te," ").concat(this.name).concat(et,";")+je}},{key:"optimizeNames",value:function(ce,ve){if(ce[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,ce,ve)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).lhs=ce,Te.rhs=ve,Te.sideEffects=je,Te}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+ve}},{key:"optimizeNames",value:function(ce,ve){if(!(this.lhs instanceof n.Name)||ce[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,ce,ve),this}},{key:"names",get:function(){return oe(this.lhs instanceof n.Name?{}:nt({},this.lhs.names),this.rhs)}}]),V}(o),l=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this,ce,je,Te)).op=ve,et}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+ve}}]),V}(a),c=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).label=ce,ve.names={},ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.label,":")+ve}}]),V}(o),u=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).label=ce,ve.names={},ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n,je=this.label?" ".concat(this.label):"";return"break".concat(je,";")+ve}}]),V}(o),d=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).error=ce,ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"throw ".concat(this.error,";")+ve}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).code=ce,ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.code,";")+ve}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(ce,ve){return this.code=P(this.code,ce,ve),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(F){Dt(V,F);var q=Tt(V);function V(){var ce,ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Oe(this,V),(ce=q.call(this)).nodes=ve,ce}return Ie(V,[{key:"render",value:function(ce){return this.nodes.reduce(function(ve,je){return ve+je.render(ce)},"")}},{key:"optimizeNodes",value:function(){for(var ce=this.nodes,ve=ce.length;ve--;){var je=ce[ve].optimizeNodes();Array.isArray(je)?ce.splice.apply(ce,[ve,1].concat(ui(je))):je?ce[ve]=je:ce.splice(ve,1)}return ce.length>0?this:void 0}},{key:"optimizeNames",value:function(ce,ve){for(var je=this.nodes,Te=je.length;Te--;){var et=je[Te];et.optimizeNames(ce,ve)||(W(ce,et.names),je.splice(Te,1))}return je.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(ce,ve){return X(ce,ve.names)},{})}}]),V}(o),p=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"{"+ce._n+_r(er(V.prototype),"render",this).call(this,ce)+"}"+ce._n}}]),V}(f),m=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(f),g=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(p);g.kind="else";var v=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve){var je;return Oe(this,V),(je=q.call(this,ve)).condition=ce,je}return Ie(V,[{key:"render",value:function(ce){var ve="if(".concat(this.condition,")")+_r(er(V.prototype),"render",this).call(this,ce);return this.else&&(ve+="else "+this.else.render(ce)),ve}},{key:"optimizeNodes",value:function(){_r(er(V.prototype),"optimizeNodes",this).call(this);var ce=this.condition;if(!0===ce)return this.nodes;var ve=this.else;if(ve){var je=ve.optimizeNodes();ve=this.else=Array.isArray(je)?new g(je):je}return ve?!1===ce?ve instanceof V?ve:ve.nodes:this.nodes.length?this:new V(J(ce),ve instanceof V?[ve]:ve.nodes):!1!==ce&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(ce,ve){var je;if(this.else=null===(je=this.else)||void 0===je?void 0:je.optimizeNames(ce,ve),_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve)||this.else)return this.condition=P(this.condition,ce,ve),this}},{key:"names",get:function(){var ce=_r(er(V.prototype),"names",this);return oe(ce,this.condition),this.else&&X(ce,this.else.names),ce}}]),V}(p);v.kind="if";var y=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(p);y.kind="for";var b=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).iteration=ce,ve}return Ie(V,[{key:"render",value:function(ce){return"for(".concat(this.iteration,")")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"optimizeNames",value:function(ce,ve){if(_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve))return this.iteration=P(this.iteration,ce,ve),this}},{key:"names",get:function(){return X(_r(er(V.prototype),"names",this),this.iteration.names)}}]),V}(y),C=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this)).varKind=ce,et.name=ve,et.from=je,et.to=Te,et}return Ie(V,[{key:"render",value:function(ce){var je=this.name,Te=this.from,et=this.to;return"for(".concat(ce.es5?e.varKinds.var:this.varKind," ").concat(je,"=").concat(Te,"; ").concat(je,"<").concat(et,"; ").concat(je,"++)")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"names",get:function(){var ce=oe(_r(er(V.prototype),"names",this),this.from);return oe(ce,this.to)}}]),V}(y),D=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this)).loop=ce,et.varKind=ve,et.name=je,et.iterable=Te,et}return Ie(V,[{key:"render",value:function(ce){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"optimizeNames",value:function(ce,ve){if(_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve))return this.iterable=P(this.iterable,ce,ve),this}},{key:"names",get:function(){return X(_r(er(V.prototype),"names",this),this.iterable.names)}}]),V}(y),E=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).name=ce,Te.args=ve,Te.async=je,Te}return Ie(V,[{key:"render",value:function(ce){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);E.kind="func";var B=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"return "+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(f);B.kind="return";var z=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){var ve="try"+_r(er(V.prototype),"render",this).call(this,ce);return this.catch&&(ve+=this.catch.render(ce)),this.finally&&(ve+=this.finally.render(ce)),ve}},{key:"optimizeNodes",value:function(){var ce,ve;return _r(er(V.prototype),"optimizeNodes",this).call(this),null===(ce=this.catch)||void 0===ce||ce.optimizeNodes(),null===(ve=this.finally)||void 0===ve||ve.optimizeNodes(),this}},{key:"optimizeNames",value:function(ce,ve){var je,Te;return _r(er(V.prototype),"optimizeNames",this).call(this,ce,ve),null===(je=this.catch)||void 0===je||je.optimizeNames(ce,ve),null===(Te=this.finally)||void 0===Te||Te.optimizeNames(ce,ve),this}},{key:"names",get:function(){var ce=_r(er(V.prototype),"names",this);return this.catch&&X(ce,this.catch.names),this.finally&&X(ce,this.finally.names),ce}}]),V}(p),j=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).error=ce,ve}return Ie(V,[{key:"render",value:function(ce){return"catch(".concat(this.error,")")+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);j.kind="catch";var U=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"finally"+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);U.kind="finally";var G=function(){function F(q){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oe(this,F),this._values={},this._blockStarts=[],this._constants={},this.opts=nt(nt({},V),{},{_n:V.lines?"\n":""}),this._extScope=q,this._scope=new e.Scope({parent:q}),this._nodes=[new m]}return Ie(F,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(q){return this._scope.name(q)}},{key:"scopeName",value:function(q){return this._extScope.name(q)}},{key:"scopeValue",value:function(q,V){var ce=this._extScope.value(q,V);return(this._values[ce.prefix]||(this._values[ce.prefix]=new Set)).add(ce),ce}},{key:"getScopeValue",value:function(q,V){return this._extScope.getValue(q,V)}},{key:"scopeRefs",value:function(q){return this._extScope.scopeRefs(q,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(q,V,ce,ve){var je=this._scope.toName(V);return void 0!==ce&&ve&&(this._constants[je.str]=ce),this._leafNode(new s(q,je,ce)),je}},{key:"const",value:function(q,V,ce){return this._def(e.varKinds.const,q,V,ce)}},{key:"let",value:function(q,V,ce){return this._def(e.varKinds.let,q,V,ce)}},{key:"var",value:function(q,V,ce){return this._def(e.varKinds.var,q,V,ce)}},{key:"assign",value:function(q,V,ce){return this._leafNode(new a(q,V,ce))}},{key:"add",value:function(q,V){return this._leafNode(new l(q,t.operators.ADD,V))}},{key:"code",value:function(q){return"function"==typeof q?q():q!==n.nil&&this._leafNode(new h(q)),this}},{key:"object",value:function(){for(var q=["{"],V=arguments.length,ce=new Array(V),ve=0;ve1&&q.push(","),q.push(We),(We!==st||this.opts.es5)&&(q.push(":"),(0,n.addCodeArg)(q,st))}return q.push("}"),new n._Code(q)}},{key:"if",value:function(q,V,ce){if(this._blockNode(new v(q)),V&&ce)this.code(V).else().code(ce).endIf();else if(V)this.code(V).endIf();else if(ce)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(q){return this._elseNode(new v(q))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(q,V){return this._blockNode(q),V&&this.code(V).endFor(),this}},{key:"for",value:function(q,V){return this._for(new b(q),V)}},{key:"forRange",value:function(q,V,ce,ve){var je=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,Te=this._scope.toName(q);return this._for(new C(je,Te,V,ce),function(){return ve(Te)})}},{key:"forOf",value:function(q,V,ce){var ve=this,je=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,Te=this._scope.toName(q);if(this.opts.es5){var et=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(iY||(iY=Pe(["",".length"])),et),function(We){ve.var(Te,(0,n._)(rY||(rY=Pe(["","[","]"])),et,We)),ce(Te)})}return this._for(new D("of",je,Te,V),function(){return ce(Te)})}},{key:"forIn",value:function(q,V,ce){var ve=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(q,(0,n._)(oY||(oY=Pe(["Object.keys(",")"])),V),ce);var je=this._scope.toName(q);return this._for(new D("in",ve,je,V),function(){return ce(je)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(q){return this._leafNode(new c(q))}},{key:"break",value:function(q){return this._leafNode(new u(q))}},{key:"return",value:function(q){var V=new B;if(this._blockNode(V),this.code(q),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(B)}},{key:"try",value:function(q,V,ce){if(!V&&!ce)throw new Error('CodeGen: "try" without "catch" and "finally"');var ve=new z;if(this._blockNode(ve),this.code(q),V){var je=this.name("e");this._currNode=ve.catch=new j(je),V(je)}return ce&&(this._currNode=ve.finally=new U,this.code(ce)),this._endBlockNode(j,U)}},{key:"throw",value:function(q){return this._leafNode(new d(q))}},{key:"block",value:function(q,V){return this._blockStarts.push(this._nodes.length),q&&this.code(q).endBlock(V),this}},{key:"endBlock",value:function(q){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var ce=this._nodes.length-V;if(ce<0||void 0!==q&&ce!==q)throw new Error("CodeGen: wrong number of nodes: ".concat(ce," vs ").concat(q," expected"));return this._nodes.length=V,this}},{key:"func",value:function(q){var ve=arguments.length>3?arguments[3]:void 0;return this._blockNode(new E(q,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),ve&&this.code(ve).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(E)}},{key:"optimize",value:function(){for(var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;q-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(q){return this._currNode.nodes.push(q),this}},{key:"_blockNode",value:function(q){this._currNode.nodes.push(q),this._nodes.push(q)}},{key:"_endBlockNode",value:function(q,V){var ce=this._currNode;if(ce instanceof q||V&&ce instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(q.kind,"/").concat(V.kind):q.kind,'"'))}},{key:"_elseNode",value:function(q){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=q,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var q=this._nodes;return q[q.length-1]},set:function(q){var V=this._nodes;V[V.length-1]=q}}]),F}();function X(F,q){for(var V in q)F[V]=(F[V]||0)+(q[V]||0);return F}function oe(F,q){return q instanceof n._CodeOrName?X(F,q.names):F}function P(F,q,V){return F instanceof n.Name?ce(F):(ve=F)instanceof n._Code&&ve._items.some(function(je){return je instanceof n.Name&&1===q[je.str]&&void 0!==V[je.str]})?new n._Code(F._items.reduce(function(ve,je){return je instanceof n.Name&&(je=ce(je)),je instanceof n._Code?ve.push.apply(ve,ui(je._items)):ve.push(je),ve},[])):F;var ve;function ce(ve){var je=V[ve.str];return void 0===je||1!==q[ve.str]?ve:(delete q[ve.str],je)}}function W(F,q){for(var V in q)F[V]=(F[V]||0)-(q[V]||0)}function J(F){return"boolean"==typeof F||"number"==typeof F||null===F?!F:(0,n._)(sY||(sY=Pe(["!",""])),N(F))}t.CodeGen=G,t.not=J;var H=A(t.operators.AND);t.and=function(){for(var F=arguments.length,q=new Array(F),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,b,C,D){var E=void 0===C?b:C instanceof n.Name?(b instanceof n.Name?p(y,b,C):m(y,b,C),C):b instanceof n.Name?(m(y,C,b),b):g(b,C);return D!==n.Name||E instanceof n.Name?E:v(y,E)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(xY||(xY=Pe(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(wY||(wY=Pe(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=He(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(cY||(cY=Pe(["",""])),p)}return(0,n._)(uY||(uY=Pe(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=He(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(dY||(dY=Pe([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(hY||(hY=Pe([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(fY||(fY=Pe([""," || {}"])),m)).code((0,n._)(pY||(pY=Pe(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(mY||(mY=Pe([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(gY||(gY=Pe([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||nt(nt({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(vY||(vY=Pe([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(yY||(yY=Pe([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(_Y||(_Y=Pe([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(bY||(bY=Pe([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?CY||(CY=Pe(['"[" + ',' + "]"'])):SY||(SY=Pe(['"[\'" + ',' + "\']"'])):g?kY||(kY=Pe(['"/" + ',""])):DY||(DY=Pe(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(zr);var gge,vge,yge,iT={};function Vp(){if(gge)return iT;gge=1,Object.defineProperty(iT,"__esModule",{value:!0});var t=Tr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return iT.default=n,iT}function rT(){return vge||(vge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=Tr(),e=zr,i=Vp();function r(d,h){var f=d.const("err",h);d.if((0,n._)($Y||($Y=Pe([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(VY||(VY=Pe(["[","]"])),f))},(0,n._)(HY||(HY=Pe(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(UY||(UY=Pe(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(zY||(zY=Pe(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(GY||(GY=Pe(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(TY||(TY=Pe(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(EY||(EY=Pe(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(AY||(AY=Pe(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,b=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,b):o(m,(0,n._)(MY||(MY=Pe(["[","]"])),b))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(OY||(OY=Pe([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(IY||(IY=Pe(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(b){h.const(y,(0,n._)(NY||(NY=Pe(["","[","]"])),i.default.vErrors,b)),h.if((0,n._)(FY||(FY=Pe(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(PY||(PY=Pe(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(RY||(RY=Pe(["",".schemaPath"])),y),(0,n.str)(jY||(jY=Pe(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(LY||(LY=Pe(["",".schema"])),y),p),h.assign((0,n._)(BY||(BY=Pe(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(WY||(WY=Pe(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,b=d.it,C=b.opts,D=b.propertyName,E=b.topSchemaRef,B=b.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(JY||(JY=Pe(["{}"])))]),C.messages&&f.push([s.message,"function"==typeof m?m(d):m]),C.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(KY||(KY=Pe(["","",""])),E,B)],[i.default.data,v]),D&&f.push([s.propertyName,D])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(qY||(qY=Pe(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(YY||(YY=Pe(["","/",""])),p,f);return m&&(g=(0,n.str)(XY||(XY=Pe(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(cge)),cge}var ex={},_g={};Object.defineProperty(_g,"__esModule",{value:!0}),_g.getRules=_g.isJSONType=void 0;var bst=new Set(["string","number","integer","boolean","null","object","array"]);_g.isJSONType=function(t){return"string"==typeof t&&bst.has(t)},_g.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:nt(nt({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var _ge,xf={};function bge(){if(_ge)return xf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return _ge=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.shouldUseRule=xf.shouldUseGroup=xf.schemaHasRulesForType=void 0,xf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},xf.shouldUseGroup=t,xf.shouldUseRule=n,xf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=_g,i=bge(),r=rT(),o=Tr(),s=zr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var E,m=f.gen,g=f.data,v=f.opts,y=(E=v.coerceTypes)?p.filter(function(B){return l.has(B)||"array"===E&&"array"===B}):[],b=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(b){var C=u(p,g,v.strictNumbers,n.Wrong);m.if(C,function(){y.length?function(D,E,B){var z=D.gen,j=D.data,U=D.opts,G=z.let("dataType",(0,o._)(ZY||(ZY=Pe(["typeof ",""])),j)),X=z.let("coerced",(0,o._)(eX||(eX=Pe(["undefined"]))));"array"===U.coerceTypes&&z.if((0,o._)(tX||(tX=Pe([""," == 'object' && Array.isArray(",") && ",".length == 1"])),G,j,j),function(){return z.assign(j,(0,o._)(nX||(nX=Pe(["","[0]"])),j)).assign(G,(0,o._)(iX||(iX=Pe(["typeof ",""])),j)).if(u(E,j,U.strictNumbers),function(){return z.assign(X,j)})}),z.if((0,o._)(rX||(rX=Pe([""," !== undefined"])),X));var oe,P=He(B);try{for(P.s();!(oe=P.n()).done;){var W=oe.value;(l.has(W)||"array"===W&&"array"===U.coerceTypes)&&J(W)}}catch(H){P.e(H)}finally{P.f()}function J(H){switch(H){case"string":return void z.elseIf((0,o._)(sX||(sX=Pe(["",' == "number" || ',' == "boolean"'])),G,G)).assign(X,(0,o._)(aX||(aX=Pe(['"" + ',""])),j)).elseIf((0,o._)(lX||(lX=Pe([""," === null"])),j)).assign(X,(0,o._)(cX||(cX=Pe(['""']))));case"number":return void z.elseIf((0,o._)(uX||(uX=Pe(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),G,j,G,j,j,j)).assign(X,(0,o._)(dX||(dX=Pe(["+",""])),j));case"integer":return void z.elseIf((0,o._)(hX||(hX=Pe(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),G,j,G,j,j,j,j)).assign(X,(0,o._)(fX||(fX=Pe(["+",""])),j));case"boolean":return void z.elseIf((0,o._)(pX||(pX=Pe(["",' === "false" || '," === 0 || "," === null"])),j,j,j)).assign(X,!1).elseIf((0,o._)(mX||(mX=Pe(["",' === "true" || '," === 1"])),j,j)).assign(X,!0);case"null":return z.elseIf((0,o._)(gX||(gX=Pe(["",' === "" || '," === 0 || "," === false"])),j,j,j)),void z.assign(X,null);case"array":z.elseIf((0,o._)(vX||(vX=Pe(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),G,G,G,j)).assign(X,(0,o._)(yX||(yX=Pe(["[","]"])),j))}}z.else(),h(D),z.endIf(),z.if((0,o._)(oX||(oX=Pe([""," !== undefined"])),X),function(){var H,pe,A,N,F;z.assign(j,X),pe=X,N=(H=D).parentData,F=H.parentDataProperty,(A=H.gen).if((0,o._)(_X||(_X=Pe([""," !== undefined"])),N),function(){return A.assign((0,o._)(bX||(bX=Pe(["","[","]"])),N,F),pe)})})}(f,p,y):h(f)})}return b};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(xX||(xX=Pe([""," "," null"])),p,y);case"array":g=(0,o._)(wX||(wX=Pe(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(CX||(CX=Pe([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=b((0,o._)(SX||(SX=Pe(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=b();break;default:return(0,o._)(kX||(kX=Pe(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function b(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(DX||(DX=Pe(["typeof ",' == "number"'])),p),C,m?(0,o._)(TX||(TX=Pe(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var b=(0,o._)(EX||(EX=Pe(["typeof ",' != "object"'])),p);v=y.null?b:(0,o._)(AX||(AX=Pe(["!"," || ",""])),p,b),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var C in y.number&&delete y.integer,y)v=(0,o.and)(v,c(C,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(MX||(MX=Pe(["{type: ","}"])),p):(0,o._)(OX||(OX=Pe(["{type: ","}"])),m)}};function h(f){var m,g,v,y,b,p=(g=(m=f).gen,v=m.data,b=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:b,schemaValue:b,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(ex);var xge,wge,Cge,tx={},md={},go={};function gd(){if(wge)return go;wge=1,Object.defineProperty(go,"__esModule",{value:!0}),go.validateUnion=go.validateArray=go.usePattern=go.callValidateCode=go.schemaProperties=go.allSchemaProperties=go.noPropertyInData=go.propertyInData=go.isOwnProperty=go.hasPropFunc=go.reportMissingProp=go.checkMissingProp=go.checkReportMissingProp=void 0;var t=Tr(),n=zr,e=Vp(),i=zr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(LX||(LX=Pe(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(BX||(BX=Pe(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)(HX||(HX=Pe(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}go.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(RX||(RX=Pe(["",""])),u)},!0),c.error()})},go.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,ui(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(jX||(jX=Pe([""," = ",""])),d,m))})))},go.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},go.hasPropFunc=r,go.isOwnProperty=o,go.propertyInData=function(c,u,d,h){var f=(0,t._)($X||($X=Pe(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(VX||(VX=Pe([""," && ",""])),f,o(c,u,d)):f},go.noPropertyInData=s,go.allSchemaProperties=a,go.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},go.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,b=m.errorPath,C=c.it,D=h?(0,t._)(UX||(UX=Pe(["",", ",", ","",""])),f,p,v,y):p,E=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,b)],[e.default.parentData,C.parentData],[e.default.parentDataProperty,C.parentDataProperty],[e.default.rootData,e.default.rootData]];C.opts.dynamicRef&&E.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var B=(0,t._)(zX||(zX=Pe(["",", ",""])),D,g.object.apply(g,E));return d!==t.nil?(0,t._)(GX||(GX=Pe(["",".call(",", ",")"])),u,d,B):(0,t._)(WX||(WX=Pe(["","(",")"])),u,B)};var l=(0,t._)(qX||(qX=Pe(["new RegExp"])));return go.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(YX||(YX=Pe(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},go.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(XX||(XX=Pe(["",".length"])),d));u.forRange("i",0,y,function(b){c.subschema({keyword:h,dataProp:b,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},go.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(JX||(JX=Pe([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},go}var Sge,wf={},Ka={},kge=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==wn(n)&&"object"==wn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},mj={},wst={get exports(){return mj},set exports(t){mj=t}},Hp=wst.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),oT(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function oT(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==wn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Hp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!gj(t):!!n&&Dge(t)<=n)};var Tst=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function gj(t){for(var n in t){if(Tst.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(gj)||"object"==wn(e)&&gj(e))return!0}return!1}function Dge(t){var n=0;for(var e in t)if("$ref"===e||(n++,!Dst.has(e)&&("object"==wn(t[e])&&(0,Cst.eachItem)(t[e],function(i){return n+=Dge(i)}),n===1/0)))return 1/0;return n}function Tge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=u1(n));var i=t.parse(n);return Ege(t,i)}function Ege(t,n){return t.serialize(n).split("#")[0]+"#"}Ka.getFullPath=Tge,Ka._getFullPath=Ege;var Est=/#\/?$/;function u1(t){return t?t.replace(Est,""):""}Ka.normalizeId=u1,Ka.resolveUrl=function(t,n,e){return e=u1(e),t.resolve(n,e)};var Age,Ast=/^[a-z_][-a-z0-9._]*$/i;function sT(){if(Age)return bf;Age=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.getData=bf.KeywordCxt=bf.validateFunctionCode=void 0;var t=function(){if(yge)return yg;yge=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.boolOrEmptySchema=yg.topBoolOrEmptySchema=void 0;var P=rT(),W=Tr(),J=Vp(),H={message:"boolean schema is false"};function pe(A,N){(0,P.reportError)({gen:A.gen,keyword:"false schema",data:A.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:A},H,void 0,N)}return yg.topBoolOrEmptySchema=function(A){var N=A.gen,F=A.schema,q=A.validateName;!1===F?pe(A,!1):"object"==wn(F)&&!0===F.$async?N.return(J.default.data):(N.assign((0,W._)(QY||(QY=Pe(["",".errors"])),q),null),N.return(!0))},yg.boolOrEmptySchema=function(A,N){var F=A.gen;!1===A.schema?(F.var(N,!1),pe(A)):F.var(N,!0)},yg}(),n=ex,e=bge(),i=ex,r=function(){if(xge)return tx;xge=1,Object.defineProperty(tx,"__esModule",{value:!0}),tx.assignDefaults=void 0;var P=Tr(),W=zr;function J(H,pe,A){var N=H.gen,F=H.compositeRule,q=H.data,V=H.opts;if(void 0!==A){var ce=(0,P._)(IX||(IX=Pe(["","",""])),q,(0,P.getProperty)(pe));if(F)(0,W.checkStrictMode)(H,"default is ignored for: ".concat(ce));else{var ve=(0,P._)(NX||(NX=Pe([""," === undefined"])),ce);"empty"===V.useDefaults&&(ve=(0,P._)(FX||(FX=Pe([""," || "," === null || ",' === ""'])),ve,ce,ce)),N.if(ve,(0,P._)(PX||(PX=Pe([""," = ",""])),ce,(0,P.stringify)(A)))}}}return tx.assignDefaults=function(H,pe){var A=H.schema,N=A.properties,F=A.items;if("object"===pe&&N)for(var q in N)J(H,q,N[q].default);else"array"===pe&&Array.isArray(F)&&F.forEach(function(V,ce){return J(H,ce,V.default)})},tx}(),o=function xst(){if(Cge)return md;Cge=1,Object.defineProperty(md,"__esModule",{value:!0}),md.validateKeywordUsage=md.validSchemaType=md.funcKeywordCode=md.macroKeywordCode=void 0;var t=Tr(),n=Vp(),e=gd(),i=rT();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(iJ||(iJ=Pe(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return md.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},md.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(C,D){if(D.async&&!C.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(tJ||(tJ=Pe(["await "]))):t.nil,D=p.opts.passContext?n.default.this:n.default.self,E=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(nJ||(nJ=Pe(["","",""])),C,(0,e.callValidateCode)(s,g,D,E)),a.modifying)}function b(C){var D;c.if((0,t.not)(null!==(D=a.valid)&&void 0!==D?D:v),C)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),b(function(){return s.error()});else{var C=a.async?(E=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(KX||(KX=Pe(["await "]))))},function(B){return c.assign(v,!1).if((0,t._)(QX||(QX=Pe([""," instanceof ",""])),B,p.ValidationError),function(){return c.assign(E,(0,t._)(ZX||(ZX=Pe(["",".errors"])),B))},function(){return c.throw(B)})}),E):(D=(0,t._)(eJ||(eJ=Pe(["",".errors"])),g),c.assign(D,null),y(t.nil),D);a.modifying&&r(s),b(function(){return function(E,B){var z=E.gen;z.if((0,t._)(rJ||(rJ=Pe(["Array.isArray(",")"])),B),function(){z.assign(n.default.vErrors,(0,t._)(oJ||(oJ=Pe([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,B,n.default.vErrors,B)).assign(n.default.errors,(0,t._)(sJ||(sJ=Pe(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(E)},function(){return E.error()})}(s,C)})}var E,D}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},md.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==wn(s)&&!Array.isArray(s):wn(s)==c||l&&void 0===s})},md.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},md}(),s=function(){if(Sge)return wf;Sge=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.extendSubschemaMode=wf.extendSubschemaData=wf.getSubschema=void 0;var P=Tr(),W=zr;return wf.getSubschema=function(J,H){var pe=H.keyword,A=H.schemaProp,N=H.schema,F=H.schemaPath,q=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==pe&&void 0!==N)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==pe){var ce=J.schema[pe];return void 0===A?{schema:ce,schemaPath:(0,P._)(aJ||(aJ=Pe(["","",""])),J.schemaPath,(0,P.getProperty)(pe)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(pe)}:{schema:ce[A],schemaPath:(0,P._)(lJ||(lJ=Pe(["","","",""])),J.schemaPath,(0,P.getProperty)(pe),(0,P.getProperty)(A)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(pe,"/").concat((0,W.escapeFragment)(A))}}if(void 0!==N){if(void 0===F||void 0===q||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:N,schemaPath:F,topSchemaRef:V,errSchemaPath:q}}throw new Error('either "keyword" or "schema" must be passed')},wf.extendSubschemaData=function(J,H,pe){var A=pe.dataProp,N=pe.dataPropType,F=pe.data,q=pe.dataTypes,V=pe.propertyName;if(void 0!==F&&void 0!==A)throw new Error('both "data" and "dataProp" passed, only one allowed');var ce=H.gen;if(void 0!==A){var ve=H.errorPath,je=H.dataPathArr,Te=H.opts;et(ce.let("data",(0,P._)(cJ||(cJ=Pe(["","",""])),H.data,(0,P.getProperty)(A)),!0)),J.errorPath=(0,P.str)(uJ||(uJ=Pe(["","",""])),ve,(0,W.getErrorPath)(A,N,Te.jsPropertySyntax)),J.parentDataProperty=(0,P._)(dJ||(dJ=Pe(["",""])),A),J.dataPathArr=[].concat(ui(je),[J.parentDataProperty])}function et(We){J.data=We,J.dataLevel=H.dataLevel+1,J.dataTypes=[],H.definedProperties=new Set,J.parentData=H.data,J.dataNames=[].concat(ui(H.dataNames),[We])}void 0!==F&&(et(F instanceof P.Name?F:ce.let("data",F,!0)),void 0!==V&&(J.propertyName=V)),q&&(J.dataTypes=q)},wf.extendSubschemaMode=function(J,H){var pe=H.jtdDiscriminator,A=H.jtdMetadata,N=H.compositeRule,F=H.createErrors,q=H.allErrors;void 0!==N&&(J.compositeRule=N),void 0!==F&&(J.createErrors=F),void 0!==q&&(J.allErrors=q),J.jtdDiscriminator=pe,J.jtdMetadata=A},wf}(),a=Tr(),l=Vp(),c=Ka,u=zr,d=rT();function h(P,W){var F,J=P.gen,H=P.validateName,pe=P.schema,A=P.schemaEnv,N=P.opts;N.code.es5?J.func(H,(0,a._)(hJ||(hJ=Pe(["",", ",""])),l.default.data,l.default.valCxt),A.$async,function(){var F,q;J.code((0,a._)(fJ||(fJ=Pe(['"use strict"; ',""])),f(pe,N))),q=N,(F=J).if(l.default.valCxt,function(){F.var(l.default.instancePath,(0,a._)(vJ||(vJ=Pe(["",".",""])),l.default.valCxt,l.default.instancePath)),F.var(l.default.parentData,(0,a._)(yJ||(yJ=Pe(["",".",""])),l.default.valCxt,l.default.parentData)),F.var(l.default.parentDataProperty,(0,a._)(_J||(_J=Pe(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),F.var(l.default.rootData,(0,a._)(bJ||(bJ=Pe(["",".",""])),l.default.valCxt,l.default.rootData)),q.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(xJ||(xJ=Pe(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){F.var(l.default.instancePath,(0,a._)(wJ||(wJ=Pe(['""'])))),F.var(l.default.parentData,(0,a._)(CJ||(CJ=Pe(["undefined"])))),F.var(l.default.parentDataProperty,(0,a._)(SJ||(SJ=Pe(["undefined"])))),F.var(l.default.rootData,l.default.data),q.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(kJ||(kJ=Pe(["{}"]))))}),J.code(W)}):J.func(H,(0,a._)(pJ||(pJ=Pe(["",", ",""])),l.default.data,(F=N,(0,a._)(mJ||(mJ=Pe(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,F.dynamicRef?(0,a._)(gJ||(gJ=Pe([", ","={}"])),l.default.dynamicAnchors):a.nil))),A.$async,function(){return J.code(f(pe,N)).code(W)})}function f(P,W){var J="object"==wn(P)&&P[W.schemaId];return J&&(W.code.source||W.code.process)?(0,a._)(NJ||(NJ=Pe(["/*# sourceURL="," */"])),J):a.nil}function m(P){var W=P.schema,J=P.self;if("boolean"==typeof W)return!W;for(var H in W)if(J.RULES.all[H])return!0;return!1}function g(P){return"boolean"!=typeof P.schema}function v(P){var W,J,H,A;(0,u.checkUnknownRules)(P),H=(W=P).errSchemaPath,A=W.self,(J=W.schema).$ref&&W.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(J,A.RULES)&&A.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(P,W){if(P.opts.jtd)return C(P,[],!1,W);var J=(0,n.getSchemaTypes)(P.schema);C(P,J,!(0,n.coerceAndCheckDataType)(P,J),W)}function b(P){var W=P.gen,J=P.schemaEnv,pe=P.errSchemaPath,A=P.opts,N=P.schema.$comment;if(!0===A.$comment)W.code((0,a._)(PJ||(PJ=Pe(["",".logger.log(",")"])),l.default.self,N));else if("function"==typeof A.$comment){var F=(0,a.str)(RJ||(RJ=Pe(["","/$comment"])),pe),q=W.scopeValue("root",{ref:J.root});W.code((0,a._)(jJ||(jJ=Pe(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,N,F,q))}}function C(P,W,J,H){var ve,je,Te,et,pe=P.gen,A=P.schema,N=P.data,F=P.allErrors,q=P.opts,V=P.self.RULES;function ce(ve){(0,e.shouldUseGroup)(A,ve)&&(ve.type?(pe.if((0,i.checkDataType)(ve.type,N,q.strictNumbers)),D(P,ve),1===W.length&&W[0]===ve.type&&J&&(pe.else(),(0,i.reportTypeError)(P)),pe.endIf()):D(P,ve),F||pe.if((0,a._)(zJ||(zJ=Pe([""," === ",""])),l.default.errors,H||0)))}!A.$ref||!q.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(A,V)?(q.jtd||(je=W,(ve=P).schemaEnv.meta||!ve.opts.strictTypes||(function(Te,et){if(et.length){if(!Te.dataTypes.length)return void(Te.dataTypes=et);et.forEach(function(We){B(Te.dataTypes,We)||z(Te,'type "'.concat(We,'" not allowed by context "').concat(Te.dataTypes.join(","),'"'))}),function(We,st){var $,ae=[],le=He(We.dataTypes);try{for(le.s();!($=le.n()).done;){var Re=$.value;B(st,Re)?ae.push(Re):st.includes("integer")&&"number"===Re&&ae.push("integer")}}catch(Ze){le.e(Ze)}finally{le.f()}We.dataTypes=ae}(Te,et)}}(ve,je),ve.opts.allowUnionTypes||(Te=ve,(et=je).length>1&&(2!==et.length||!et.includes("null"))&&z(Te,"use allowUnionTypes to allow union type keyword")),function(Te,et){var We=Te.self.RULES.all;for(var st in We){var $=We[st];if("object"==wn($)&&(0,e.shouldUseRule)(Te.schema,$)){var ae=$.definition.type;ae.length&&!ae.some(function(le){return E(et,le)})&&z(Te,'missing type "'.concat(ae.join(","),'" for keyword "').concat(st,'"'))}}}(ve,ve.dataTypes))),pe.block(function(){var ve,je=He(V.rules);try{for(je.s();!(ve=je.n()).done;)ce(ve.value)}catch(Te){je.e(Te)}finally{je.f()}ce(V.post)})):pe.block(function(){return U(P,"$ref",V.all.$ref.definition)})}function D(P,W){var J=P.gen,H=P.schema;P.opts.useDefaults&&(0,r.assignDefaults)(P,W.type),J.block(function(){var pe,A=He(W.rules);try{for(A.s();!(pe=A.n()).done;){var N=pe.value;(0,e.shouldUseRule)(H,N)&&U(P,N.keyword,N.definition,W.type)}}catch(F){A.e(F)}finally{A.f()}})}function E(P,W){return P.includes(W)||"number"===W&&P.includes("integer")}function B(P,W){return P.includes(W)||"integer"===W&&P.includes("number")}function z(P,W){W+=' at "'.concat(P.schemaEnv.baseId+P.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(P,W,P.opts.strictTypes)}bf.validateFunctionCode=function(P){var W,J,H,pe;g(P)&&(v(P),m(P))?(J=(W=P).schema,H=W.opts,pe=W.gen,h(W,function(){var A,F;H.$comment&&J.$comment&&b(W),F=(A=W).opts,void 0!==A.schema.default&&F.useDefaults&&F.strictSchema&&(0,u.checkStrictMode)(A,"default is ignored in the schema root"),pe.let(l.default.vErrors,null),pe.let(l.default.errors,0),H.unevaluated&&function(A){var N=A.gen,F=A.validateName;A.evaluated=N.const("evaluated",(0,a._)(DJ||(DJ=Pe(["",".evaluated"])),F)),N.if((0,a._)(TJ||(TJ=Pe(["",".dynamicProps"])),A.evaluated),function(){return N.assign((0,a._)(EJ||(EJ=Pe(["",".props"])),A.evaluated),(0,a._)(AJ||(AJ=Pe(["undefined"]))))}),N.if((0,a._)(MJ||(MJ=Pe(["",".dynamicItems"])),A.evaluated),function(){return N.assign((0,a._)(OJ||(OJ=Pe(["",".items"])),A.evaluated),(0,a._)(IJ||(IJ=Pe(["undefined"]))))})}(W),y(W),function(A){var ve,je,Te,et,We,N=A.gen,q=A.validateName,V=A.ValidationError,ce=A.opts;A.schemaEnv.$async?N.if((0,a._)(LJ||(LJ=Pe([""," === 0"])),l.default.errors),function(){return N.return(l.default.data)},function(){return N.throw((0,a._)(BJ||(BJ=Pe(["new ","(",")"])),V,l.default.vErrors))}):(N.assign((0,a._)($J||($J=Pe(["",".errors"])),q),l.default.vErrors),ce.unevaluated&&(je=(ve=A).gen,Te=ve.evaluated,We=ve.items,(et=ve.props)instanceof a.Name&&je.assign((0,a._)(HJ||(HJ=Pe(["",".props"])),Te),et),We instanceof a.Name&&je.assign((0,a._)(UJ||(UJ=Pe(["",".items"])),Te),We)),N.return((0,a._)(VJ||(VJ=Pe([""," === 0"])),l.default.errors)))}(W)})):h(P,function(){return(0,t.topBoolOrEmptySchema)(P)})};var j=function(){function P(W,J,H){if(Oe(this,P),(0,o.validateKeywordUsage)(W,J,H),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=H,this.data=W.data,this.schema=W.schema[H],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(W,this.schema,H,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",oe(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(J.schemaType)));("code"in J?J.trackErrors:!1!==J.errors)&&(this.errsCount=W.gen.const("_errs",l.default.errors))}return Ie(P,[{key:"result",value:function(W,J,H){this.failResult((0,a.not)(W),J,H)}},{key:"failResult",value:function(W,J,H){this.gen.if(W),H?H():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(W,J){this.failResult((0,a.not)(W),void 0,J)}},{key:"fail",value:function(W){if(void 0===W)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(W){if(!this.$data)return this.fail(W);var J=this.schemaCode;this.fail((0,a._)(GJ||(GJ=Pe([""," !== undefined && (",")"])),J,(0,a.or)(this.invalid$data(),W)))}},{key:"error",value:function(W,J,H){if(J)return this.setParams(J),this._error(W,H),void this.setParams({});this._error(W,H)}},{key:"_error",value:function(W,J){(W?d.reportExtraError:d.reportError)(this,this.def.error,J)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(W){this.allErrors||this.gen.if(W)}},{key:"setParams",value:function(W,J){J?Object.assign(this.params,W):this.params=W}},{key:"block$data",value:function(W,J){var H=this,pe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(W,pe),J()})}},{key:"check$data",value:function(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,pe=this.schemaCode,A=this.schemaType,N=this.def;H.if((0,a.or)((0,a._)(WJ||(WJ=Pe([""," === undefined"])),pe),J)),W!==a.nil&&H.assign(W,!0),(A.length||N.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),W!==a.nil&&H.assign(W,!1)),H.else()}}},{key:"invalid$data",value:function(){var W=this.gen,J=this.schemaCode,H=this.schemaType,pe=this.def,A=this.it;return(0,a.or)(function(){if(H.length){if(!(J instanceof a.Name))throw new Error("ajv implementation error");var N=Array.isArray(H)?H:[H];return(0,a._)(qJ||(qJ=Pe(["",""])),(0,i.checkDataTypes)(N,J,A.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(pe.validateSchema){var N=W.scopeValue("validate$data",{ref:pe.validateSchema});return(0,a._)(YJ||(YJ=Pe(["!","(",")"])),N,J)}return a.nil}())}},{key:"subschema",value:function(W,J){var H=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(H,this.it,W),(0,s.extendSubschemaMode)(H,W);var pe=nt(nt(nt({},this.it),H),{},{items:void 0,props:void 0});return function p(P,W){g(P)&&(v(P),m(P))?function(J,H){var F,q,A=J.gen;J.opts.$comment&&J.schema.$comment&&b(J),(q=(F=J).schema[F.opts.schemaId])&&(F.baseId=(0,c.resolveUrl)(F.opts.uriResolver,F.baseId,q)),function(F){if(F.schema.$async&&!F.schemaEnv.$async)throw new Error("async schema in sync schema")}(J);var N=A.const("_errs",l.default.errors);y(J,N),A.var(H,(0,a._)(FJ||(FJ=Pe([""," === ",""])),N,l.default.errors))}(P,W):(0,t.boolOrEmptySchema)(P,W)}(pe,J),pe}},{key:"mergeEvaluated",value:function(W,J){var H=this.it,pe=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==W.props&&(H.props=u.mergeEvaluated.props(pe,W.props,H.props,J)),!0!==H.items&&void 0!==W.items&&(H.items=u.mergeEvaluated.items(pe,W.items,H.items,J)))}},{key:"mergeValidEvaluated",value:function(W,J){var H=this,pe=this.it;if(pe.opts.unevaluated&&(!0!==pe.props||!0!==pe.items))return this.gen.if(J,function(){return H.mergeEvaluated(W,a.Name)}),!0}}]),P}();function U(P,W,J,H){var pe=new j(P,J,W);"code"in J?J.code(pe,H):pe.$data&&J.validate?(0,o.funcKeywordCode)(pe,J):"macro"in J?(0,o.macroKeywordCode)(pe,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(pe,J)}bf.KeywordCxt=j;var G=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oe(P,W){var J,H,pe=W.dataLevel,A=W.dataNames,N=W.dataPathArr;if(""===P)return l.default.rootData;if("/"===P[0]){if(!G.test(P))throw new Error("Invalid JSON-pointer: ".concat(P));J=P,H=l.default.rootData}else{var F=X.exec(P);if(!F)throw new Error("Invalid JSON-pointer: ".concat(P));var q=+F[1];if("#"===(J=F[2])){if(q>=pe)throw new Error(Te("property/index",q));return N[pe-q]}if(q>pe)throw new Error(Te("data",q));if(H=A[pe-q],!J)return H}var V,ce=H,ve=He(J.split("/"));try{for(ve.s();!(V=ve.n()).done;){var je=V.value;je&&(H=(0,a._)(XJ||(XJ=Pe(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(je))),ce=(0,a._)(JJ||(JJ=Pe([""," && ",""])),ce,H))}}catch(et){ve.e(et)}finally{ve.f()}return ce;function Te(et,We){return"Cannot access ".concat(et," ").concat(We," levels up, current level is ").concat(pe)}}return bf.getData=oe,bf}Ka.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=u1(t[r]||n),a={"":s},l=Tge(o,s,!1),c={},u=new Set;return kst(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=b.call(e,f[r])),C.call(e,f.$anchor),C.call(e,f.$dynamicAnchor),a[p]=y}function b(D){if(D=u1(y?(0,this.opts.uriResolver.resolve)(y,D):D),u.has(D))throw h(D);u.add(D);var B=this.refs[D];return"string"==typeof B&&(B=this.refs[B]),"object"==wn(B)?d(f,B.schema,D):D!==u1(v)&&("#"===D[0]?(d(f,c[D],D),c[D]=f):this.refs[D]=v),D}function C(D){if("string"==typeof D){if(!Ast.test(D))throw new Error('invalid anchor "'.concat(D,'"'));b.call(this,"#".concat(D))}}}),c;function d(f,p,m){if(void 0!==p&&!Sst(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var Mge,aT={};function vj(){if(Mge)return aT;Mge=1,Object.defineProperty(aT,"__esModule",{value:!0});var t=function(n){Dt(i,O_(Error));var e=Tt(i);function i(r){var o;return Oe(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Ie(i)}();return aT.default=t,aT}var Oge,lT={};function yj(){if(Oge)return lT;Oge=1,Object.defineProperty(lT,"__esModule",{value:!0});var t=Ka,n=function(e){Dt(r,O_(Error));var i=Tt(r);function r(o,s,a,l){var c;return Oe(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Ie(r)}();return lT.default=n,lT}var sc={};Object.defineProperty(sc,"__esModule",{value:!0}),sc.resolveSchema=sc.getCompilingSchema=sc.resolveRef=sc.compileSchema=sc.SchemaEnv=void 0;var vd=Tr(),Mst=vj(),bg=Vp(),yd=Ka,Ige=zr,Ost=sT(),cT=Ie(function t(n){var e,i;Oe(this,t),this.refs={},this.dynamicAnchors={},"object"==wn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,yd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function _j(t){var n=Nge.call(this,t);if(n)return n;var e,i=(0,yd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new vd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:Mst.default,code:(0,vd._)(KJ||(KJ=Pe(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:bg.default.data,parentData:bg.default.parentData,parentDataProperty:bg.default.parentDataProperty,dataNames:[bg.default.data],dataPathArr:[vd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,vd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:vd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vd._)(QJ||(QJ=Pe(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,Ost.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(bg.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(bg.default.self),"".concat(bg.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof vd.Name?void 0:p,items:m instanceof vd.Name?void 0:m,dynamicProps:p instanceof vd.Name,dynamicItems:m instanceof vd.Name},f.source&&(f.source.evaluated=(0,vd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function Ist(t){return(0,yd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:_j.call(this,t)}function Nge(t){var n,e,i,r=He(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function Nst(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||uT.call(this,t,n)}function uT(t,n){var e=this.opts.uriResolver.parse(n),i=(0,yd._getFullPath)(this.opts.uriResolver,e),r=(0,yd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return bj.call(this,e,t);var o=(0,yd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=uT.call(this,t,s);return"object"!==wn(a?.schema)?void 0:bj.call(this,e,a)}if("object"===wn(s?.schema)){if(s.validate||_j.call(this,s),o===(0,yd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,yd.resolveUrl)(this.opts.uriResolver,r,u)),new cT({schema:l,schemaId:c,root:t,baseId:r})}return bj.call(this,e,s)}}sc.SchemaEnv=cT,sc.compileSchema=_j,sc.resolveRef=function(t,n,e){var i;e=(0,yd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=Nst.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new cT({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=Ist.call(this,o):void 0},sc.getCompilingSchema=Nge,sc.resolveSchema=uT;var Fst=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function bj(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=He(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,Ige.unescapeFragment)(c)];if(void 0===u)return;var d="object"===wn(r=u)&&r[this.opts.schemaId];!Fst.has(c)&&d&&(i=(0,yd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,Ige.schemaHasRulesButRef)(r,this.RULES)){var h=(0,yd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=uT.call(this,o,h)}return(a=a||new cT({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var Pst={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},xj={},Fge={};(function(t){function n(){for(var Ee=arguments.length,qe=Array(Ee),Ke=0;Ke1){qe[0]=qe[0].slice(0,-1);for(var dt=qe.length-1,Ye=1;Ye= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=Math.floor,G=String.fromCharCode;function X(Ee){throw new RangeError(z[Ee])}function P(Ee,qe){var Ke=Ee.split("@"),dt="";return Ke.length>1&&(dt=Ke[0]+"@",Ee=Ke[1]),dt+function oe(Ee,qe){for(var Ke=[],dt=Ee.length;dt--;)Ke[dt]=qe(Ee[dt]);return Ke}((Ee=Ee.replace(B,".")).split("."),qe).join(".")}function W(Ee){for(var qe=[],Ke=0,dt=Ee.length;Ke=55296&&Ye<=56319&&Ke>1,Ee+=U(Ee/qe);Ee>455;dt+=f)Ee=U(Ee/35);return U(dt+36*Ee/(Ee+38))},N=function(Ee){var qe=[],Ke=Ee.length,dt=0,Ye=128,In=72,li=Ee.lastIndexOf("-");li<0&&(li=0);for(var vi=0;vi=128&&X("not-basic"),qe.push(Ee.charCodeAt(vi));for(var gi=li>0?li+1:0;gi=Ke&&X("invalid-input");var Sr=H(Ee.charCodeAt(gi++));(Sr>=f||Sr>U((h-dt)/to))&&X("overflow"),dt+=Sr*to;var Fe=xi<=In?1:xi>=In+26?26:xi-In;if(SrU(h/At)&&X("overflow"),to*=At}var Gt=qe.length+1;In=A(dt-Mr,Gt,0==Mr),U(dt/Gt)>h-Ye&&X("overflow"),Ye+=U(dt/Gt),dt%=Gt,qe.splice(dt++,0,Ye)}return String.fromCodePoint.apply(String,qe)},F=function(Ee){var qe=[],Ke=(Ee=W(Ee)).length,dt=128,Ye=0,In=72,li=!0,vi=!1,gi=void 0;try{for(var Mr,to=Ee[Symbol.iterator]();!(li=(Mr=to.next()).done);li=!0){var xi=Mr.value;xi<128&&qe.push(G(xi))}}catch(wd){vi=!0,gi=wd}finally{try{!li&&to.return&&to.return()}finally{if(vi)throw gi}}var Sr=qe.length,Fe=Sr;for(Sr&&qe.push("-");Fe=dt&&znU((h-Ye)/ai)&&X("overflow"),Ye+=(At-dt)*ai,dt=At;var ni=!0,kr=!1,Fr=void 0;try{for(var jo,ba=Ee[Symbol.iterator]();!(ni=(jo=ba.next()).done);ni=!0){var bd=jo.value;if(bdh&&X("overflow"),bd==dt){for(var bu=Ye,xa=f;;xa+=f){var Bl=xa<=In?1:xa>=In+26?26:xa-In;if(bu>6|192).toString(16).toUpperCase()+"%"+(63&qe|128).toString(16).toUpperCase():"%"+(qe>>12|224).toString(16).toUpperCase()+"%"+(qe>>6&63|128).toString(16).toUpperCase()+"%"+(63&qe|128).toString(16).toUpperCase()}function Te(Ee){for(var qe="",Ke=0,dt=Ee.length;Ke=194&&Ye<224){if(dt-Ke>=6){var In=parseInt(Ee.substr(Ke+4,2),16);qe+=String.fromCharCode((31&Ye)<<6|63&In)}else qe+=Ee.substr(Ke,6);Ke+=6}else if(Ye>=224){if(dt-Ke>=9){var li=parseInt(Ee.substr(Ke+4,2),16),vi=parseInt(Ee.substr(Ke+7,2),16);qe+=String.fromCharCode((15&Ye)<<12|(63&li)<<6|63&vi)}else qe+=Ee.substr(Ke,9);Ke+=9}else qe+=Ee.substr(Ke,3),Ke+=3}return qe}function et(Ee,qe){function Ke(dt){var Ye=Te(dt);return Ye.match(qe.UNRESERVED)?Ye:dt}return Ee.scheme&&(Ee.scheme=String(Ee.scheme).replace(qe.PCT_ENCODED,Ke).toLowerCase().replace(qe.NOT_SCHEME,"")),void 0!==Ee.userinfo&&(Ee.userinfo=String(Ee.userinfo).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_USERINFO,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.host&&(Ee.host=String(Ee.host).replace(qe.PCT_ENCODED,Ke).toLowerCase().replace(qe.NOT_HOST,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.path&&(Ee.path=String(Ee.path).replace(qe.PCT_ENCODED,Ke).replace(Ee.scheme?qe.NOT_PATH:qe.NOT_PATH_NOSCHEME,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.query&&(Ee.query=String(Ee.query).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_QUERY,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.fragment&&(Ee.fragment=String(Ee.fragment).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_FRAGMENT,je).replace(qe.PCT_ENCODED,r)),Ee}function We(Ee){return Ee.replace(/^0*(.*)/,"$1")||"0"}function st(Ee,qe){var Ke=Ee.match(qe.IPV4ADDRESS)||[],dt=u(Ke,2)[1];return dt?dt.split(".").map(We).join("."):Ee}function $(Ee,qe){var Ke=Ee.match(qe.IPV6ADDRESS)||[],dt=u(Ke,3),Ye=dt[1],In=dt[2];if(Ye){for(var li=Ye.toLowerCase().split("::").reverse(),vi=u(li,2),gi=vi[0],Mr=vi[1],to=Mr?Mr.split(":").map(We):[],xi=gi.split(":").map(We),Sr=qe.IPV4ADDRESS.test(xi[xi.length-1]),Fe=Sr?7:8,At=xi.length-Fe,Gt=Array(Fe),ln=0;ln1){var $i=Gt.slice(0,mn.index),zn=Gt.slice(mn.index+mn.length);ci=$i.join(":")+"::"+zn.join(":")}else ci=Gt.join(":");return In&&(ci+="%"+In),ci}return Ee}var ae=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,le=void 0==="".match(/(){0}/)[1];function Re(Ee){var qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke={},dt=!1!==qe.iri?c:l;"suffix"===qe.reference&&(Ee=(qe.scheme?qe.scheme+":":"")+"//"+Ee);var Ye=Ee.match(ae);if(Ye){le?(Ke.scheme=Ye[1],Ke.userinfo=Ye[3],Ke.host=Ye[4],Ke.port=parseInt(Ye[5],10),Ke.path=Ye[6]||"",Ke.query=Ye[7],Ke.fragment=Ye[8],isNaN(Ke.port)&&(Ke.port=Ye[5])):(Ke.scheme=Ye[1]||void 0,Ke.userinfo=-1!==Ee.indexOf("@")?Ye[3]:void 0,Ke.host=-1!==Ee.indexOf("//")?Ye[4]:void 0,Ke.port=parseInt(Ye[5],10),Ke.path=Ye[6]||"",Ke.query=-1!==Ee.indexOf("?")?Ye[7]:void 0,Ke.fragment=-1!==Ee.indexOf("#")?Ye[8]:void 0,isNaN(Ke.port)&&(Ke.port=Ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ye[4]:void 0)),Ke.host&&(Ke.host=$(st(Ke.host,dt),dt)),Ke.reference=void 0!==Ke.scheme||void 0!==Ke.userinfo||void 0!==Ke.host||void 0!==Ke.port||Ke.path||void 0!==Ke.query?void 0===Ke.scheme?"relative":void 0===Ke.fragment?"absolute":"uri":"same-document",qe.reference&&"suffix"!==qe.reference&&qe.reference!==Ke.reference&&(Ke.error=Ke.error||"URI is not a "+qe.reference+" reference.");var In=ve[(qe.scheme||Ke.scheme||"").toLowerCase()];if(qe.unicodeSupport||In&&In.unicodeSupport)et(Ke,dt);else{if(Ke.host&&(qe.domainHost||In&&In.domainHost))try{Ke.host=ce.toASCII(Ke.host.replace(dt.PCT_ENCODED,Te).toLowerCase())}catch(li){Ke.error=Ke.error||"Host's domain name can not be converted to ASCII via punycode: "+li}et(Ke,l)}In&&In.parse&&In.parse(Ke,qe)}else Ke.error=Ke.error||"URI can not be parsed.";return Ke}var Ve=/^\.\.?\//,Ct=/^\/\.(\/|$)/,Ot=/^\/\.\.(\/|$)/,yn=/^\/?(?:.|\n)*?(?=\/|$)/;function Xn(Ee){for(var qe=[];Ee.length;)if(Ee.match(Ve))Ee=Ee.replace(Ve,"");else if(Ee.match(Ct))Ee=Ee.replace(Ct,"/");else if(Ee.match(Ot))Ee=Ee.replace(Ot,"/"),qe.pop();else if("."===Ee||".."===Ee)Ee="";else{var Ke=Ee.match(yn);if(!Ke)throw new Error("Unexpected dot segment condition");var dt=Ke[0];Ee=Ee.slice(dt.length),qe.push(dt)}return qe.join("")}function on(Ee){var qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=qe.iri?c:l,dt=[],Ye=ve[(qe.scheme||Ee.scheme||"").toLowerCase()];if(Ye&&Ye.serialize&&Ye.serialize(Ee,qe),Ee.host&&!Ke.IPV6ADDRESS.test(Ee.host)&&(qe.domainHost||Ye&&Ye.domainHost))try{Ee.host=qe.iri?ce.toUnicode(Ee.host):ce.toASCII(Ee.host.replace(Ke.PCT_ENCODED,Te).toLowerCase())}catch(vi){Ee.error=Ee.error||"Host's domain name can not be converted to "+(qe.iri?"Unicode":"ASCII")+" via punycode: "+vi}et(Ee,Ke),"suffix"!==qe.reference&&Ee.scheme&&(dt.push(Ee.scheme),dt.push(":"));var In=function Ze(Ee,qe){var Ke=!1!==qe.iri?c:l,dt=[];return void 0!==Ee.userinfo&&(dt.push(Ee.userinfo),dt.push("@")),void 0!==Ee.host&&dt.push($(st(String(Ee.host),Ke),Ke).replace(Ke.IPV6ADDRESS,function(Ye,In,li){return"["+In+(li?"%25"+li:"")+"]"})),"number"!=typeof Ee.port&&"string"!=typeof Ee.port||(dt.push(":"),dt.push(String(Ee.port))),dt.length?dt.join(""):void 0}(Ee,qe);if(void 0!==In&&("suffix"!==qe.reference&&dt.push("//"),dt.push(In),Ee.path&&"/"!==Ee.path.charAt(0)&&dt.push("/")),void 0!==Ee.path){var li=Ee.path;qe.absolutePath||Ye&&Ye.absolutePath||(li=Xn(li)),void 0===In&&(li=li.replace(/^\/\//,"/%2F")),dt.push(li)}return void 0!==Ee.query&&(dt.push("?"),dt.push(Ee.query)),void 0!==Ee.fragment&&(dt.push("#"),dt.push(Ee.fragment)),dt.join("")}function Ri(Ee,qe){var Ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},dt={};return arguments[3]||(Ee=Re(on(Ee,Ke),Ke),qe=Re(on(qe,Ke),Ke)),!(Ke=Ke||{}).tolerant&&qe.scheme?(dt.scheme=qe.scheme,dt.userinfo=qe.userinfo,dt.host=qe.host,dt.port=qe.port,dt.path=Xn(qe.path||""),dt.query=qe.query):(void 0!==qe.userinfo||void 0!==qe.host||void 0!==qe.port?(dt.userinfo=qe.userinfo,dt.host=qe.host,dt.port=qe.port,dt.path=Xn(qe.path||""),dt.query=qe.query):(qe.path?("/"===qe.path.charAt(0)?dt.path=Xn(qe.path):(dt.path=void 0===Ee.userinfo&&void 0===Ee.host&&void 0===Ee.port||Ee.path?Ee.path?Ee.path.slice(0,Ee.path.lastIndexOf("/")+1)+qe.path:qe.path:"/"+qe.path,dt.path=Xn(dt.path)),dt.query=qe.query):(dt.path=Ee.path,dt.query=void 0!==qe.query?qe.query:Ee.query),dt.userinfo=Ee.userinfo,dt.host=Ee.host,dt.port=Ee.port),dt.scheme=Ee.scheme),dt.fragment=qe.fragment,dt}function wr(Ee,qe){return Ee&&Ee.toString().replace(qe&&qe.iri?c.PCT_ENCODED:l.PCT_ENCODED,Te)}var Si={scheme:"http",domainHost:!0,parse:function(Ee,qe){return Ee.host||(Ee.error=Ee.error||"HTTP URIs must have a host."),Ee},serialize:function(Ee,qe){var Ke="https"===String(Ee.scheme).toLowerCase();return Ee.port!==(Ke?443:80)&&""!==Ee.port||(Ee.port=void 0),Ee.path||(Ee.path="/"),Ee}},Xr={scheme:"https",domainHost:Si.domainHost,parse:Si.parse,serialize:Si.serialize};function Ro(Ee){return"boolean"==typeof Ee.secure?Ee.secure:"wss"===String(Ee.scheme).toLowerCase()}var Rn={scheme:"ws",domainHost:!0,parse:function(Ee,qe){var Ke=Ee;return Ke.secure=Ro(Ke),Ke.resourceName=(Ke.path||"/")+(Ke.query?"?"+Ke.query:""),Ke.path=void 0,Ke.query=void 0,Ke},serialize:function(Ee,qe){if(Ee.port!==(Ro(Ee)?443:80)&&""!==Ee.port||(Ee.port=void 0),"boolean"==typeof Ee.secure&&(Ee.scheme=Ee.secure?"wss":"ws",Ee.secure=void 0),Ee.resourceName){var Ke=Ee.resourceName.split("?"),dt=u(Ke,2),Ye=dt[0],In=dt[1];Ee.path=Ye&&"/"!==Ye?Ye:void 0,Ee.query=In,Ee.resourceName=void 0}return Ee.fragment=void 0,Ee}},kt={scheme:"wss",domainHost:Rn.domainHost,parse:Rn.parse,serialize:Rn.serialize},pi={},Bi="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ar="[0-9A-Fa-f]",ko=e(e("%[EFef]"+Ar+"%"+Ar+Ar+"%"+Ar+Ar)+"|"+e("%[89A-Fa-f]"+Ar+"%"+Ar+Ar)+"|"+e("%"+Ar+Ar)),vt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),di=new RegExp(Bi,"g"),ki=new RegExp(ko,"g"),Nr=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',vt),"g"),Jr=new RegExp(n("[^]",Bi,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),co=Jr;function Ks(Ee){var qe=Te(Ee);return qe.match(di)?qe:Ee}var Cr={scheme:"mailto",parse:function(Ee,qe){var Ke=Ee,dt=Ke.to=Ke.path?Ke.path.split(","):[];if(Ke.path=void 0,Ke.query){for(var Ye=!1,In={},li=Ke.query.split("&"),vi=0,gi=li.length;vi string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=function(){function A(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,A),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts=nt(nt({},N),function y(A){var N,F,q,V,ce,ve,je,Te,et,We,st,$,ae,le,Re,Ze,Ve,Ct,Ot,yn,Xn,on,Ri,hn,vr,Er=A.strict,fr=null===(N=A.code)||void 0===N?void 0:N.optimize,wr=!0===fr||void 0===fr?1:fr||0,Si=null!==(q=null===(F=A.code)||void 0===F?void 0:F.regExp)&&void 0!==q?q:f,Xr=null!==(V=A.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(ve=null!==(ce=A.strictSchema)&&void 0!==ce?ce:Er)||void 0===ve||ve,strictNumbers:null===(Te=null!==(je=A.strictNumbers)&&void 0!==je?je:Er)||void 0===Te||Te,strictTypes:null!==(We=null!==(et=A.strictTypes)&&void 0!==et?et:Er)&&void 0!==We?We:"log",strictTuples:null!==($=null!==(st=A.strictTuples)&&void 0!==st?st:Er)&&void 0!==$?$:"log",strictRequired:null!==(le=null!==(ae=A.strictRequired)&&void 0!==ae?ae:Er)&&void 0!==le&&le,code:A.code?nt(nt({},A.code),{},{optimize:wr,regExp:Si}):{optimize:wr,regExp:Si},loopRequired:null!==(Re=A.loopRequired)&&void 0!==Re?Re:200,loopEnum:null!==(Ze=A.loopEnum)&&void 0!==Ze?Ze:200,meta:null===(Ve=A.meta)||void 0===Ve||Ve,messages:null===(Ct=A.messages)||void 0===Ct||Ct,inlineRefs:null===(Ot=A.inlineRefs)||void 0===Ot||Ot,schemaId:null!==(yn=A.schemaId)&&void 0!==yn?yn:"$id",addUsedSchema:null===(Xn=A.addUsedSchema)||void 0===Xn||Xn,validateSchema:null===(on=A.validateSchema)||void 0===on||on,validateFormats:null===(Ri=A.validateFormats)||void 0===Ri||Ri,unicodeRegExp:null===(hn=A.unicodeRegExp)||void 0===hn||hn,int32range:null===(vr=A.int32range)||void 0===vr||vr,uriResolver:Xr}}(N));var F=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:F.es5,lines:F.lines}),this.logger=function G(A){if(!1===A)return U;if(void 0===A)return console;if(A.log&&A.warn&&A.error)return A;throw new Error("logger must implement log, warn and error methods")}(N.logger);var ce=N.validateFormats;N.validateFormats=!1,this.RULES=(0,o.getRules)(),C.call(this,g,N,"NOT SUPPORTED"),C.call(this,v,N,"DEPRECATED","warn"),this._metaOpts=j.call(this),N.formats&&B.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&z.call(this,N.keywords),"object"==wn(N.meta)&&this.addMetaSchema(N.meta),E.call(this),N.validateFormats=ce}return Ie(A,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var N=this.opts,F=N.$data,q=N.meta,V=N.schemaId,ce=d;"id"===V&&((ce=nt({},d)).id=ce.$id,delete ce.$id),q&&F&&this.addMetaSchema(ce,ce[V],!1)}},{key:"defaultMeta",value:function(){var N=this.opts,F=N.meta,q=N.schemaId;return this.opts.defaultMeta="object"==wn(F)?F[q]||F:void 0}},{key:"validate",value:function(N,F){var q;if("string"==typeof N){if(!(q=this.getSchema(N)))throw new Error('no schema with key or ref "'.concat(N,'"'))}else q=this.compile(N);var V=q(F);return"$async"in q||(this.errors=q.errors),V}},{key:"compile",value:function(N,F){var q=this._addSchema(N,F);return q.validate||this._compileSchemaEnv(q)}},{key:"compileAsync",value:function(N,F){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var q=this.opts.loadSchema;return V.call(this,N,F);function V(Re,Ze){return ce.apply(this,arguments)}function ce(){return(ce=or(_n().mark(function Re(Ze,Ve){var Ct;return _n().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,ve.call(this,Ze.$schema);case 2:return Ct=this._addSchema(Ze,Ve),Ot.abrupt("return",Ct.validate||Te.call(this,Ct));case 4:case"end":return Ot.stop()}},Re,this)}))).apply(this,arguments)}function ve(Re){return je.apply(this,arguments)}function je(){return(je=or(_n().mark(function Re(Ze){return _n().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!Ze||this.getSchema(Ze)){Ve.next=3;break}return Ve.next=3,V.call(this,{$ref:Ze},!0);case 3:case"end":return Ve.stop()}},Re,this)}))).apply(this,arguments)}function Te(Re){return et.apply(this,arguments)}function et(){return(et=or(_n().mark(function Re(Ze){return _n().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.prev=0,Ve.abrupt("return",this._compileSchemaEnv(Ze));case 4:if(Ve.prev=4,Ve.t0=Ve.catch(0),Ve.t0 instanceof r.default){Ve.next=8;break}throw Ve.t0;case 8:return We.call(this,Ve.t0),Ve.next=11,st.call(this,Ve.t0.missingSchema);case 11:return Ve.abrupt("return",Te.call(this,Ze));case 12:case"end":return Ve.stop()}},Re,this,[[0,4]])}))).apply(this,arguments)}function We(Re){var Ze=Re.missingSchema,Ve=Re.missingRef;if(this.refs[Ze])throw new Error("AnySchema ".concat(Ze," is loaded but ").concat(Ve," cannot be resolved"))}function st(Re){return $.apply(this,arguments)}function $(){return($=or(_n().mark(function Re(Ze){var Ve;return _n().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,ae.call(this,Ze);case 2:if(Ve=Ct.sent,this.refs[Ze]){Ct.next=6;break}return Ct.next=6,ve.call(this,Ve.$schema);case 6:this.refs[Ze]||this.addSchema(Ve,Ze,F);case 7:case"end":return Ct.stop()}},Re,this)}))).apply(this,arguments)}function ae(Re){return le.apply(this,arguments)}function le(){return(le=or(_n().mark(function Re(Ze){var Ve;return _n().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!(Ve=this._loading[Ze])){Ct.next=3;break}return Ct.abrupt("return",Ve);case 3:return Ct.prev=3,Ct.next=6,this._loading[Ze]=q(Ze);case 6:return Ct.abrupt("return",Ct.sent);case 7:return Ct.prev=7,delete this._loading[Ze],Ct.finish(7);case 10:case"end":return Ct.stop()}},Re,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(N,F,q){var V,ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(N)){var ve,je=He(N);try{for(je.s();!(ve=je.n()).done;)this.addSchema(ve.value,void 0,q,ce)}catch(We){je.e(We)}finally{je.f()}return this}if("object"===wn(N)){var et=this.opts.schemaId;if(void 0!==(V=N[et])&&"string"!=typeof V)throw new Error("schema ".concat(et," must be string"))}return F=(0,l.normalizeId)(F||V),this._checkUnique(F),this.schemas[F]=this._addSchema(N,q,F,ce,!0),this}},{key:"addMetaSchema",value:function(N,F){return this.addSchema(N,F,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(N,F){if("boolean"==typeof N)return!0;var q;if(void 0!==(q=N.$schema)&&"string"!=typeof q)throw new Error("$schema must be a string");if(!(q=q||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(q,N);if(!V&&F){var ce="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(ce);this.logger.error(ce)}return V}},{key:"getSchema",value:function(N){for(var F;"string"==typeof(F=D.call(this,N));)N=F;if(void 0===F){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(F=s.resolveSchema.call(this,V,N)))return;this.refs[N]=F}return F.validate||this._compileSchemaEnv(F)}},{key:"removeSchema",value:function(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(wn(N)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var F=D.call(this,N);return"object"==wn(F)&&this._cache.delete(F.schema),delete this.schemas[N],delete this.refs[N],this;case"object":this._cache.delete(N);var V=N[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(N){var F,q=He(N);try{for(q.s();!(F=q.n()).done;)this.addKeyword(F.value)}catch(ce){q.e(ce)}finally{q.f()}return this}},{key:"addKeyword",value:function(N,F){var q,V=this;if("string"==typeof N)q=N,"object"==wn(F)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=q);else{if("object"!=wn(N)||void 0!==F)throw new Error("invalid addKeywords parameters");if(q=(F=N).keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(oe.call(this,q,F),!F)return(0,u.eachItem)(q,function(ve){return P.call(V,ve)}),this;J.call(this,F);var ce=nt(nt({},F),{},{type:(0,c.getJSONTypes)(F.type),schemaType:(0,c.getJSONTypes)(F.schemaType)});return(0,u.eachItem)(q,0===ce.type.length?function(ve){return P.call(V,ve,ce)}:function(ve){return ce.type.forEach(function(je){return P.call(V,ve,ce,je)})}),this}},{key:"getKeyword",value:function(N){var F=this.RULES.all[N];return"object"==wn(F)?F.definition:!!F}},{key:"removeKeyword",value:function(N){var F=this.RULES;delete F.keywords[N],delete F.all[N];var q,V=He(F.rules);try{for(V.s();!(q=V.n()).done;){var ce=q.value,ve=ce.rules.findIndex(function(je){return je.keyword===N});ve>=0&&ce.rules.splice(ve,1)}}catch(je){V.e(je)}finally{V.f()}return this}},{key:"addFormat",value:function(N,F){return"string"==typeof F&&(F=new RegExp(F)),this.formats[N]=F,this}},{key:"errorsText",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=F.separator,V=void 0===q?", ":q,ce=F.dataVar,ve=void 0===ce?"data":ce;return N&&0!==N.length?N.map(function(je){return"".concat(ve).concat(je.instancePath," ").concat(je.message)}).reduce(function(je,Te){return je+V+Te}):"No errors"}},{key:"$dataMetaSchema",value:function(N,F){var q=this.RULES.all;N=JSON.parse(JSON.stringify(N));var V,ce=He(F);try{for(ce.s();!(V=ce.n()).done;){var ve,je=V.value.split("/").slice(1),Te=N,et=He(je);try{for(et.s();!(ve=et.n()).done;)Te=Te[ve.value]}catch(le){et.e(le)}finally{et.f()}for(var We in q){var st=q[We];if("object"==wn(st)){var ae=Te[We];st.definition.$data&&ae&&(Te[We]=pe(ae))}}}}catch(le){ce.e(le)}finally{ce.f()}return N}},{key:"_removeAllSchemas",value:function(N,F){for(var q in N){var V=N[q];F&&!F.test(q)||("string"==typeof V?delete N[q]:V&&!V.meta&&(this._cache.delete(V.schema),delete N[q]))}}},{key:"_addSchema",value:function(N,F,q){var V,ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,ve=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,je=this.opts.schemaId;if("object"==wn(N))V=N[je];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof N)throw new Error("schema must be object or boolean")}var Te=this._cache.get(N);if(void 0!==Te)return Te;q=(0,l.normalizeId)(V||q);var et=l.getSchemaRefs.call(this,N,q);return Te=new s.SchemaEnv({schema:N,schemaId:je,meta:F,baseId:q,localRefs:et}),this._cache.set(Te.schema,Te),ve&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=Te),ce&&this.validateSchema(N,!0),Te}},{key:"_checkUnique",value:function(N){if(this.schemas[N]||this.refs[N])throw new Error('schema with key or id "'.concat(N,'" already exists'))}},{key:"_compileSchemaEnv",value:function(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}},{key:"_compileMetaSchema",value:function(N){var F=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=F}}}]),A}();function C(A,N,F){var q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in A){var ce=V;ce in N&&this.logger[q]("".concat(F,": option ").concat(V,". ").concat(A[ce]))}}function D(A){return A=(0,l.normalizeId)(A),this.schemas[A]||this.refs[A]}function E(){var A=this.opts.schemas;if(A)if(Array.isArray(A))this.addSchema(A);else for(var N in A)this.addSchema(A[N],N)}function B(){for(var A in this.opts.formats){var N=this.opts.formats[A];N&&this.addFormat(A,N)}}function z(A){if(Array.isArray(A))this.addVocabulary(A);else for(var N in this.logger.warn("keywords option as map is deprecated, pass array"),A){var F=A[N];F.keyword||(F.keyword=N),this.addKeyword(F)}}function j(){var A,N=nt({},this.opts),F=He(p);try{for(F.s();!(A=F.n()).done;)delete N[A.value]}catch(q){F.e(q)}finally{F.f()}return N}t.default=b,b.ValidationError=i.default,b.MissingRefError=r.default;var U={log:function(){},warn:function(){},error:function(){}},X=/^[a-z_$][a-z0-9_$:-]*$/i;function oe(A,N){var F=this.RULES;if((0,u.eachItem)(A,function(q){if(F.keywords[q])throw new Error("Keyword ".concat(q," is already defined"));if(!X.test(q))throw new Error("Keyword ".concat(q," has invalid name"))}),N&&N.$data&&!("code"in N)&&!("validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function P(A,N,F){var q,V=this,ce=N?.post;if(F&&ce)throw new Error('keyword with "post" flag cannot have "type"');var ve=this.RULES,je=ce?ve.post:ve.rules.find(function(et){return et.type===F});if(je||ve.rules.push(je={type:F,rules:[]}),ve.keywords[A]=!0,N){var Te={keyword:A,definition:nt(nt({},N),{},{type:(0,c.getJSONTypes)(N.type),schemaType:(0,c.getJSONTypes)(N.schemaType)})};N.before?W.call(this,je,Te,N.before):je.rules.push(Te),ve.all[A]=Te,null===(q=N.implements)||void 0===q||q.forEach(function(et){return V.addKeyword(et)})}}function W(A,N,F){var q=A.rules.findIndex(function(V){return V.keyword===F});q>=0?A.rules.splice(q,0,N):(A.rules.push(N),this.logger.warn("rule ".concat(F," is not defined")))}function J(A){var N=A.metaSchema;void 0!==N&&(A.$data&&this.opts.$data&&(N=pe(N)),A.validateSchema=this.compile(N,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function pe(A){return{anyOf:[A,H]}}}(lge);var wj={},Cj={},Sj={};Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.callRef=xg.getValidate=void 0;var jst=yj(),Rge=gd(),ac=Tr(),d1=Vp(),jge=sc,dT=zr,Lst={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return hT(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return hT(t,(0,ac._)(ZJ||(ZJ=Pe(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=jge.resolveRef.call(l,c,r,e);if(void 0===p)throw new jst.default(i.opts.uriResolver,r,e);return p instanceof jge.SchemaEnv?(g=Lge(t,m=p),void hT(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,ac.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:ac.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function Lge(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,ac._)(eK||(eK=Pe(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function hT(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?d1.default.this:ac.nil;function c(d){var h=(0,ac._)(iK||(iK=Pe(["",".errors"])),d);r.assign(d1.default.vErrors,(0,ac._)(rK||(rK=Pe([""," === null ? "," : ",".concat(",")"])),d1.default.vErrors,h,d1.default.vErrors,h)),r.assign(d1.default.errors,(0,ac._)(oK||(oK=Pe(["",".length"])),d1.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=dT.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,ac._)(sK||(sK=Pe(["",".evaluated.props"])),d));o.props=dT.mergeEvaluated.props(r,p,o.props,ac.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=dT.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,ac._)(aK||(aK=Pe(["",".evaluated.items"])),d));o.items=dT.mergeEvaluated.items(r,m,o.items,ac.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,ac._)(tK||(tK=Pe(["await ",""])),(0,Rge.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,ac._)(nK||(nK=Pe(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,Rge.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}xg.getValidate=Lge,xg.callRef=hT,xg.default=Lst,Object.defineProperty(Cj,"__esModule",{value:!0}),Cj.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Sj.default,xg.default];var kj={},Dj={};Object.defineProperty(Dj,"__esModule",{value:!0});var fT=Tr(),Up=fT.operators,pT={maximum:{okStr:"<=",ok:Up.LTE,fail:Up.GT},minimum:{okStr:">=",ok:Up.GTE,fail:Up.LT},exclusiveMaximum:{okStr:"<",ok:Up.LT,fail:Up.GTE},exclusiveMinimum:{okStr:">",ok:Up.GT,fail:Up.LTE}},Vst={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,fT.str)(lK||(lK=Pe(["must be "," ",""])),pT[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,fT._)(cK||(cK=Pe(["{comparison: ",", limit: ","}"])),pT[n].okStr,e)}},Hst={keyword:Object.keys(pT),type:"number",schemaType:"number",$data:!0,error:Vst,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,fT._)(uK||(uK=Pe([""," "," "," || isNaN(",")"])),e,pT[n].fail,i,e))}};Dj.default=Hst;var Tj={};Object.defineProperty(Tj,"__esModule",{value:!0});var nx=Tr(),Ust={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,nx.str)(dK||(dK=Pe(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,nx._)(hK||(hK=Pe(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,nx._)(fK||(fK=Pe(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,nx._)(pK||(pK=Pe([""," !== parseInt(",")"])),o,o);t.fail$data((0,nx._)(mK||(mK=Pe(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};Tj.default=Ust;var Ej={},Aj={};function Bge(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(ox.nil,g);else{var v,y=He(e);try{for(y.s();!(v=y.n()).done;)(0,rx.checkReportMissingProp)(t,v.value)}catch(C){y.e(C)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return C=y,t.setParams({missingProperty:b=v}),void n.forOf(b,i,function(){n.assign(C,(0,rx.propertyInData)(n,r,b,a.ownProperties)),n.if((0,ox.not)(C),function(){t.error(),n.break()})},ox.nil);var b,C}),t.ok(y)}else n.if((0,rx.checkMissingProp)(t,e,v)),(0,rx.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=He(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,Qst.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,rx.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};Ij.default=Zst;var Nj={};Object.defineProperty(Nj,"__esModule",{value:!0});var sx=Tr(),eat={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,sx.str)(MK||(MK=Pe(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,sx._)(OK||(OK=Pe(["{limit: ","}"])),n)}},tat={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:eat,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?sx.operators.GT:sx.operators.LT;t.fail$data((0,sx._)(IK||(IK=Pe(["",".length "," ",""])),e,r,i))}};Nj.default=tat;var Fj={},ax={};Object.defineProperty(ax,"__esModule",{value:!0});var $ge=kge;$ge.code='require("ajv/dist/runtime/equal").default',ax.default=$ge,Object.defineProperty(Fj,"__esModule",{value:!0});var Pj=ex,Qa=Tr(),nat=zr,iat=ax,rat={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Qa.str)(NK||(NK=Pe(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Qa._)(FK||(FK=Pe(["{i: ",", j: ","}"])),e,i)}},oat={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:rat,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,Pj.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Qa._)(RK||(RK=Pe(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Qa._)(jK||(jK=Pe([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Qa._)(PK||(PK=Pe([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,Pj.checkDataTypes)(c,p,a.opts.strictNumbers,Pj.DataType.Wrong),g=n.const("indices",(0,Qa._)(LK||(LK=Pe(["{}"]))));n.for((0,Qa._)(BK||(BK=Pe([";","--;"])),h),function(){n.let(p,(0,Qa._)($K||($K=Pe(["","[","]"])),e,h)),n.if(m,(0,Qa._)(VK||(VK=Pe(["continue"])))),c.length>1&&n.if((0,Qa._)(HK||(HK=Pe(["typeof ",' == "string"'])),p),(0,Qa._)(UK||(UK=Pe(["",' += "_"'])),p)),n.if((0,Qa._)(zK||(zK=Pe(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Qa._)(GK||(GK=Pe(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Qa._)(WK||(WK=Pe(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,nat.useFunc)(n,iat.default),m=n.name("outer");n.label(m).for((0,Qa._)(qK||(qK=Pe([";","--;"])),h),function(){return n.for((0,Qa._)(YK||(YK=Pe([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Qa._)(XK||(XK=Pe(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};Fj.default=oat;var Rj={};Object.defineProperty(Rj,"__esModule",{value:!0});var jj=Tr(),sat=zr,aat=ax,lat={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,jj._)(JK||(JK=Pe(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==wn(o)?t.fail$data((0,jj._)(KK||(KK=Pe(["!","(",", ",")"])),(0,sat.useFunc)(n,aat.default),e,r)):t.fail((0,jj._)(QK||(QK=Pe([""," !== ",""])),o,e))}};Rj.default=lat;var Lj={};Object.defineProperty(Lj,"__esModule",{value:!0});var lx=Tr(),cat=zr,uat=ax,dat={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,lx._)(ZK||(ZK=Pe(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,cat.useFunc)(n,uat.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,lx._)(eQ||(eQ=Pe(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=lx.or.apply(void 0,ui(r.map(function(h,f){return p=d,"object"===wn(g=r[m=f])&&null!==g?(0,lx._)(tQ||(tQ=Pe(["","(",", ","[","])"])),u(),e,p,m):(0,lx._)(nQ||(nQ=Pe([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};Lj.default=dat,Object.defineProperty(kj,"__esModule",{value:!0}),kj.default=[Dj.default,Tj.default,Ej.default,Mj.default,Oj.default,Ij.default,Nj.default,Fj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Rj.default,Lj.default];var Bj={},h1={};Object.defineProperty(h1,"__esModule",{value:!0}),h1.validateAdditionalItems=void 0;var Cg=Tr(),$j=zr,wat={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Cg.str)(iQ||(iQ=Pe(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Cg._)(rQ||(rQ=Pe(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Vge(t,i):(0,$j.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Vge(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,Cg._)(oQ||(oQ=Pe(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,Cg._)(sQ||(sQ=Pe([""," <= ",""])),a,n.length));else if("object"==wn(i)&&!(0,$j.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,Cg._)(aQ||(aQ=Pe([""," <= ",""])),a,n.length));e.if((0,Cg.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:$j.Type.Num},c),s.allErrors||e.if((0,Cg.not)(c),function(){return e.break()})});var c}),t.ok(l)}}h1.validateAdditionalItems=Vge,h1.default=wat;var Vj={},f1={};Object.defineProperty(f1,"__esModule",{value:!0}),f1.validateTuple=void 0;var Hge=Tr(),gT=zr,Cat=gd(),Sat={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Uge(t,"additionalItems",n);e.items=!0,(0,gT.alwaysValidSchema)(e,n)||t.ok((0,Cat.validateArray)(t))}};function Uge(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,gT.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=gT.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Hge._)(lQ||(lQ=Pe(["",".length"])),o));e.forEach(function(d,h){(0,gT.alwaysValidSchema)(a,d)||(i.if((0,Hge._)(cQ||(cQ=Pe([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}f1.validateTuple=Uge,f1.default=Sat,Object.defineProperty(Vj,"__esModule",{value:!0});var kat=f1,Dat={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,kat.validateTuple)(t,"items")}};Vj.default=Dat;var Hj={};Object.defineProperty(Hj,"__esModule",{value:!0});var zge=Tr(),Tat=zr,Eat=gd(),Aat=h1,Mat={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,zge.str)(uQ||(uQ=Pe(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,zge._)(dQ||(dQ=Pe(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,Tat.alwaysValidSchema)(i,n)||(r?(0,Aat.validateAdditionalItems)(t,r):t.ok((0,Eat.validateArray)(t)))}};Hj.default=Mat;var Uj={};Object.defineProperty(Uj,"__esModule",{value:!0});var _u=Tr(),vT=zr,Oat={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,_u.str)(hQ||(hQ=Pe(["must contain at least "," valid item(s)"])),e):(0,_u.str)(fQ||(fQ=Pe(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,_u._)(pQ||(pQ=Pe(["{minContains: ","}"])),e):(0,_u._)(mQ||(mQ=Pe(["{minContains: ",", maxContains: ","}"])),e,i)}},Iat={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Oat,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,_u._)(gQ||(gQ=Pe(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,vT.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,vT.alwaysValidSchema)(a,r)){var d=(0,_u._)(vQ||(vQ=Pe([""," >= ",""])),u,n);return void 0!==e&&(d=(0,_u._)(yQ||(yQ=Pe([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,_u._)(_Q||(_Q=Pe(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,vT.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,_u._)(bQ||(bQ=Pe(["","++"])),v)),void(void 0===e?i.if((0,_u._)(xQ||(xQ=Pe([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,_u._)(wQ||(wQ=Pe([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,_u._)(CQ||(CQ=Pe([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:vT.Type.Num,compositeRule:!0},m),g()})}}};Uj.default=Iat;var Gge={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=Tr(),e=zr,i=gd();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(SQ||(SQ=Pe(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(kQ||(kQ=Pe(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Jn(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,b=He(g);try{for(b.s();!(y=b.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(D){b.e(D)}finally{b.f()}}):(c.if((0,n._)(DQ||(DQ=Pe([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Gge);var zj={};Object.defineProperty(zj,"__esModule",{value:!0});var Wge=Tr(),Nat=zr,Fat={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Wge._)(TQ||(TQ=Pe(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,Nat.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Wge.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};zj.default=Fat;var yT={};Object.defineProperty(yT,"__esModule",{value:!0});var _T=gd(),_d=Tr(),Pat=Vp(),bT=zr,Rat={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,_d._)(EQ||(EQ=Pe(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,bT.alwaysValidSchema)(s,e)){var c=(0,_T.allSchemaProperties)(i.properties),u=(0,_T.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,bT.schemaRefOrVal)(s,i.properties,"properties");g=(0,_T.isOwnProperty)(n,v,m)}else g=c.length?_d.or.apply(void 0,ui(c.map(function(y){return(0,_d._)(MQ||(MQ=Pe([""," === ",""])),m,y)}))):_d.nil;return u.length&&(g=_d.or.apply(void 0,[g].concat(ui(u.map(function(y){return(0,_d._)(OQ||(OQ=Pe(["",".test(",")"])),(0,_T.usePattern)(t,y),m)}))))),(0,_d.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,_d._)(AQ||(AQ=Pe([""," === ",""])),o,Pat.default.errors))}function d(p){n.code((0,_d._)(IQ||(IQ=Pe(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==wn(e)&&!(0,bT.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,_d.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,_d.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:bT.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};yT.default=Rat;var Gj={};Object.defineProperty(Gj,"__esModule",{value:!0});var jat=sT(),qge=gd(),Wj=zr,Yge=yT,Lat={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Yge.default.code(new jat.KeywordCxt(o,Yge.default,"additionalProperties"));var s,a=(0,qge.allSchemaProperties)(e),l=He(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=Wj.mergeEvaluated.props(n,(0,Wj.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,Wj.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=He(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,qge.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};Gj.default=Lat;var qj={};Object.defineProperty(qj,"__esModule",{value:!0});var Xge=gd(),xT=Tr(),Jge=zr,Kge=zr,Bat={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,Xge.allSchemaProperties)(e),l=a.filter(function(p){return(0,Jge.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof xT.Name||(o.props=(0,Kge.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=He(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,Jge.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,xT._)(NQ||(NQ=Pe(["",".test(",")"])),(0,Xge.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Kge.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,xT._)(FQ||(FQ=Pe(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,xT.not)(u),function(){return n.break()})})})}}};qj.default=Bat;var Yj={};Object.defineProperty(Yj,"__esModule",{value:!0});var $at=zr,Vat={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,$at.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};Yj.default=Vat;var Xj={};Object.defineProperty(Xj,"__esModule",{value:!0});var Hat={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:gd().validateUnion,error:{message:"must match a schema in anyOf"}};Xj.default=Hat;var Jj={};Object.defineProperty(Jj,"__esModule",{value:!0});var wT=Tr(),Uat=zr,zat={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,wT._)(PQ||(PQ=Pe(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Uat.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,wT._)(RQ||(RQ=Pe([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,wT._)(jQ||(jQ=Pe(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,wT.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};Jj.default=zat;var Kj={};Object.defineProperty(Kj,"__esModule",{value:!0});var Gat=zr,Wat={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Gat.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};Kj.default=Wat;var Qj={};Object.defineProperty(Qj,"__esModule",{value:!0});var CT=Tr(),Qge=zr,qat={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,CT.str)(LQ||(LQ=Pe(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,CT._)(BQ||(BQ=Pe(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Qge.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=Zge(i,"then"),o=Zge(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,CT.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,CT._)($Q||($Q=Pe(["",""])),d)):t.setParams({ifClause:d})}}}};function Zge(t,n){var e=t.schema[n];return void 0!==e&&!(0,Qge.alwaysValidSchema)(t,e)}Qj.default=qat;var Zj={};Object.defineProperty(Zj,"__esModule",{value:!0});var Yat=zr,Xat={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,Yat.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};Zj.default=Xat,Object.defineProperty(Bj,"__esModule",{value:!0});var Jat=h1,Kat=Vj,Qat=f1,Zat=Hj,elt=Uj,tlt=Gge,nlt=zj,ilt=yT,rlt=Gj,olt=qj,slt=Yj,alt=Xj,llt=Jj,clt=Kj,ult=Qj,dlt=Zj;Bj.default=function(){var n=[slt.default,alt.default,llt.default,clt.default,ult.default,dlt.default,nlt.default,ilt.default,tlt.default,rlt.default,olt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Kat.default,Zat.default):n.push(Jat.default,Qat.default),n.push(elt.default),n};var eL={},tL={};Object.defineProperty(tL,"__esModule",{value:!0});var Ps=Tr(),hlt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,Ps.str)(VQ||(VQ=Pe(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,Ps._)(HQ||(HQ=Pe(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,Ps._)(UQ||(UQ=Pe(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,Ps._)(zQ||(zQ=Pe(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,Ps._)(GQ||(GQ=Pe(["",'.type || "string"'])),f)).assign(m,(0,Ps._)(WQ||(WQ=Pe(["",".validate"])),f))},function(){return e.assign(p,(0,Ps._)(qQ||(qQ=Pe(['"string"'])))).assign(m,f)}),t.fail$data((0,Ps.or)(!1===l.strictSchema?Ps.nil:(0,Ps._)(YQ||(YQ=Pe([""," && !",""])),s,m),(g=u.$async?(0,Ps._)(XQ||(XQ=Pe(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,Ps._)(JQ||(JQ=Pe(["","(",")"])),m,i),v=(0,Ps._)(KQ||(KQ=Pe(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,Ps._)(QQ||(QQ=Pe([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Jn(function(v){var y=v instanceof RegExp?(0,Ps.regexpCode)(v):l.code.formats?(0,Ps._)(ZQ||(ZQ=Pe(["","",""])),l.code.formats,(0,Ps.getProperty)(o)):void 0,b=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=wn(v)||v instanceof RegExp?["string",v,b]:[v.type||"string",v.validate,(0,Ps._)(eZ||(eZ=Pe(["",".validate"])),b)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==wn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ps._)(tZ||(tZ=Pe(["await ","(",")"])),g,i)}return(0,Ps._)("function"==typeof m?nZ||(nZ=Pe(["","(",")"])):iZ||(iZ=Pe(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};tL.default=hlt,Object.defineProperty(eL,"__esModule",{value:!0}),eL.default=[tL.default];var p1={};Object.defineProperty(p1,"__esModule",{value:!0}),p1.contentVocabulary=p1.metadataVocabulary=void 0,p1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],p1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(wj,"__esModule",{value:!0});var glt=eL,eve=p1,vlt=[Cj.default,kj.default,(0,Bj.default)(),glt.default,eve.metadataVocabulary,eve.contentVocabulary];wj.default=vlt;var nL={},tve={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(tve),Object.defineProperty(nL,"__esModule",{value:!0});var m1=Tr(),iL=tve,nve=sc,ylt=zr,_lt={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===iL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,m1._)(rZ||(rZ=Pe(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,m1._)(oZ||(oZ=Pe(["","",""])),e,(0,m1.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,m1.Name),h}n.if((0,m1._)(sZ||(sZ=Pe(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=C(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",b="Expref",C="Pipe",B="EQ",z="GT",j="LT",U="GTE",G="LTE",X="NE",oe="Flatten",P="Star",W="Filter",J="Dot",pe="Lbrace",A="Lbracket",N="Lparen",F="Literal",q={".":J,"*":P,",":p,":":m,"{":pe,"}":g,"]":h,"(":N,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},ce={" ":!0,"\t":!0,"\n":!0};function ve($){return $>="0"&&$<="9"||"-"===$}function je(){}je.prototype={tokenize:function($){var ae,le,Re,Ze,Ve=[];for(this._current=0;this._current<$.length;)if((Ze=$[this._current])>="a"&&Ze<="z"||Ze>="A"&&Ze<="Z"||"_"===Ze)ae=this._current,le=this._consumeUnquotedIdentifier($),Ve.push({type:u,value:le,start:ae});else if(void 0!==q[$[this._current]])Ve.push({type:q[$[this._current]],value:$[this._current],start:this._current}),this._current++;else if(ve($[this._current]))Re=this._consumeNumber($),Ve.push(Re);else if("["===$[this._current])Re=this._consumeLBracket($),Ve.push(Re);else if('"'===$[this._current])ae=this._current,le=this._consumeQuotedIdentifier($),Ve.push({type:d,value:le,start:ae});else if("'"===$[this._current])ae=this._current,le=this._consumeRawStringLiteral($),Ve.push({type:F,value:le,start:ae});else if("`"===$[this._current]){ae=this._current;var Ct=this._consumeLiteral($);Ve.push({type:F,value:Ct,start:ae})}else if(void 0!==V[$[this._current]])Ve.push(this._consumeOperator($));else if(void 0!==ce[$[this._current]])this._current++;else if("&"===$[this._current])ae=this._current,this._current++,"&"===$[this._current]?(this._current++,Ve.push({type:"And",value:"&&",start:ae})):Ve.push({type:b,value:"&",start:ae});else{if("|"!==$[this._current]){var Ot=new Error("Unknown character:"+$[this._current]);throw Ot.name="LexerError",Ot}ae=this._current,this._current++,"|"===$[this._current]?(this._current++,Ve.push({type:"Or",value:"||",start:ae})):Ve.push({type:C,value:"|",start:ae})}return Ve},_consumeUnquotedIdentifier:function($){var ae,le=this._current;for(this._current++;this._current<$.length&&((ae=$[this._current])>="a"&&ae<="z"||ae>="A"&&ae<="Z"||ae>="0"&&ae<="9"||"_"===ae);)this._current++;return $.slice(le,this._current)},_consumeQuotedIdentifier:function($){var ae=this._current;this._current++;for(var le=$.length;'"'!==$[this._current]&&this._current"===le?"="===$[this._current]?(this._current++,{type:U,value:">=",start:ae}):{type:z,value:">",start:ae}:"="===le&&"="===$[this._current]?(this._current++,{type:B,value:"==",start:ae}):void 0},_consumeLiteral:function($){this._current++;for(var ae,le=this._current,Re=$.length;"`"!==$[this._current]&&this._current=0||["true","false","null"].indexOf($)>=0)return!0;if(!("-0123456789".indexOf($[0])>=0))return!1;try{return JSON.parse($),!0}catch{return!1}}};var Te={};function et(){}function We($){this.runtime=$}function st($){this._interpreter=$,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}Te.EOF=0,Te.UnquotedIdentifier=0,Te.QuotedIdentifier=0,Te.Rbracket=0,Te.Rparen=0,Te.Comma=0,Te.Rbrace=0,Te.Number=0,Te.Current=0,Te.Expref=0,Te.Pipe=1,Te.Or=2,Te.And=3,Te.EQ=5,Te.GT=5,Te.LT=5,Te.GTE=5,Te.LTE=5,Te.NE=5,Te.Flatten=9,Te.Star=20,Te.Filter=21,Te.Dot=40,Te.Not=45,Te.Lbrace=50,Te.Lbracket=55,Te.Lparen=60,et.prototype={parse:function($){this._loadTokens($),this.index=0;var ae=this.expression(0);if("EOF"!==this._lookahead(0)){var le=this._lookaheadToken(0),Re=new Error("Unexpected token type: "+le.type+", value: "+le.value);throw Re.name="ParserError",Re}return ae},_loadTokens:function($){var ae=(new je).tokenize($);ae.push({type:"EOF",value:"",start:$.length}),this.tokens=ae},expression:function($){var ae=this._lookaheadToken(0);this._advance();for(var le=this.nud(ae),Re=this._lookahead(0);$=0?this.expression($):ae===A?(this._match(A),this._parseMultiselectList()):ae===pe?(this._match(pe),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function($){var ae;if(Te[this._lookahead(0)]<10)ae={type:"Identity"};else if(this._lookahead(0)===A)ae=this.expression($);else if(this._lookahead(0)===W)ae=this.expression($);else{if(this._lookahead(0)!==J){var le=this._lookaheadToken(0),Re=new Error("Sytanx error, unexpected token: "+le.value+"("+le.type+")");throw Re.name="ParserError",Re}this._match(J),ae=this._parseDotRHS($)}return ae},_parseMultiselectList:function(){for(var $=[];this._lookahead(0)!==h;){var ae=this.expression(0);if($.push(ae),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:$}},_parseMultiselectHash:function(){for(var $,ae,le,Re=[],Ze=[u,d];;){if($=this._lookaheadToken(0),Ze.indexOf($.type)<0)throw new Error("Expecting an identifier token, got: "+$.type);if(ae=$.value,this._advance(),this._match(m),le={type:"KeyValuePair",name:ae,value:this.expression(0)},Re.push(le),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Re}}},We.prototype={search:function($,ae){return this.visit($,ae)},visit:function($,ae){var le,Re,Ze,Ve,Ct,Ot,yn,Xn,on;switch($.type){case"Field":return null!==ae&&e(ae)?void 0===(Ot=ae[$.name])?null:Ot:null;case"Subexpression":for(Ze=this.visit($.children[0],ae),on=1;on<$.children.length;on++)if(null===(Ze=this.visit($.children[1],Ze)))return null;return Ze;case"IndexExpression":return yn=this.visit($.children[0],ae),this.visit($.children[1],yn);case"Index":if(!n(ae))return null;var Ri=$.value;return Ri<0&&(Ri=ae.length+Ri),void 0===(Ze=ae[Ri])&&(Ze=null),Ze;case"Slice":if(!n(ae))return null;var hn=$.children.slice(0),vr=this.computeSliceParams(ae.length,hn),Er=vr[0],fr=vr[1],wr=vr[2];if(Ze=[],wr>0)for(on=Er;onfr;on+=wr)Ze.push(ae[on]);return Ze;case"Projection":var Si=this.visit($.children[0],ae);if(!n(Si))return null;for(Xn=[],on=0;onCt;break;case U:Ze=Ve>=Ct;break;case j:Ze=Ve=$&&(ae=le<0?$-1:$),ae}},st.prototype={callFunction:function($,ae){var le=this.functionTable[$];if(void 0===le)throw new Error("Unknown function: "+$+"()");return this._validateArgs($,ae,le._signature),le._func.call(this,ae)},_validateArgs:function($,ae,le){var Re,Ze,Ve,Ct;if(le[le.length-1].variadic){if(ae.length=0;Re--)le+=ae[Re];return le}var Ze=$[0].slice(0);return Ze.reverse(),Ze},_functionAbs:function($){return Math.abs($[0])},_functionCeil:function($){return Math.ceil($[0])},_functionAvg:function($){for(var ae=0,le=$[0],Re=0;Re=0},_functionFloor:function($){return Math.floor($[0])},_functionLength:function($){return e($[0])?Object.keys($[0]).length:$[0].length},_functionMap:function($){for(var ae=[],le=this._interpreter,Re=$[0],Ze=$[1],Ve=0;Ve0){if(this._getTypeName($[0][0])===s)return Math.max.apply(Math,$[0]);for(var ae=$[0],le=ae[0],Re=1;Re0){if(this._getTypeName($[0][0])===s)return Math.min.apply(Math,$[0]);for(var ae=$[0],le=ae[0],Re=1;Rehn?1:RiCt&&(Ct=le,ae=Ze[Ot]);return ae},_functionMinBy:function($){for(var ae,le,Ze=$[0],Ve=this.createKeyFunction($[1],[s,a]),Ct=1/0,Ot=0;Ot1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var Slt=function(){function t(n,e,i,r){rL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=ST(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=ST(p,4),b=m[3];void 0===b&&(b=1),o.rgba=[m[0],m[1],m[2],b]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return oL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return ove(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return ove(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=Clt[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=ST(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),klt=function(){function t(){rL(this,t),this._events=[]}return oL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function sL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function Ch(t,n){return(n||document).querySelector(t)}function sve(t){t.preventDefault(),t.stopPropagation()}function aL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&sve(o),i(o))})}var ave=function(){function t(n){rL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new klt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return oL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),aL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(sve(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new Slt(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=Ch(".picker_hue",o),this._domSL=Ch(".picker_sl",o),this._domA=Ch(".picker_alpha",o),this._domEdit=Ch(".picker_editor input",o),this._domSample=Ch(".picker_sample",o),this._domOkay=Ch(".picker_done button",o),this._domCancel=Ch(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),sL(r,this._domH,function(l,c){return e._setHSLA(l)}),sL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&sL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),aL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),aL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=Ch(".picker_selector",this._domH),d=Ch(".picker_selector",l),h=Ch(".picker_selector",c);b(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,b(0,d,i[1]),C(0,d,1-i[2]),l.style.color=o,C(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function b(D,E,B){E.style.left=100*B+"%"}function C(D,E,B){E.style.top=100*B+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),lL=document.createElement("style");lL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(lL),ave.StyleElement=lL;var Dlt=Object.freeze({__proto__:null,default:ave});const Tlt=["editor"];function Elt(t,n){if(1&t&&(_(0,"ngb-alert",38),xe(1,"img",39),_(2,"h6",40),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while modifying storage object: ",e.error,"")}}function Alt(t,n){1&t&&(_(0,"ngb-alert",41),xe(1,"img",42),_(2,"h6",40),O(3,"Storage object was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Mlt(t,n){1&t&&(_(0,"span"),O(1,"Save as a copy"),x())}function Olt(t,n){1&t&&O(0,"Save")}function Ilt(t,n){if(1&t&&(_(0,"button",43),te(1,Mlt,2,0,"span",44),te(2,Olt,1,0,"ng-template",null,45,Xo),x()),2&t){const e=sa(3),i=L();S("disabled",i.updating),w(1),S("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const cL=function(){return["/storage"]},Nlt=function(t){return{collection:t}},Flt=function(t,n){return{collection:t,key:n}},Plt=function(t,n,e){return{collection:t,key:n,user_id:e}},uL=function(t){return{"is-invalid":t}},ux=function(t){return{active:t}};let Rlt=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;editor;jsonEditor;error="";object;objectForm;updating=!1;updated=!1;ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",qr.required],keyname:["",qr.required],user_id:["",qr.required],permission_read:[{value:0,disabled:!1},qr.required],permission_write:[{value:0,disabled:!1},qr.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Tlt,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:88,vars:60,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["id","permission_read","name","permission_read",1,"btn-group","btn-group-toggle"],[1,"btn","btn-outline-secondary",3,"ngClass"],["formControlName","permission_read","type","radio",3,"value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["id","permission_write","name","permission_write",1,"btn-group","btn-group-toggle"],["formControlName","permission_write","type","radio",3,"value"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Storage Object"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),O(6,"Storage"),x(),_(7,"li",4)(8,"a",5),O(9),x()(),_(10,"li",4)(11,"a",5),O(12),x()(),_(13,"li",4)(14,"a",5),O(15),x()()()()(),te(16,Elt,4,2,"ngb-alert",6),te(17,Alt,4,1,"ngb-alert",7),_(18,"form",8),ke("ngSubmit",function(){return r.updateObject()}),_(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),O(23,"Collection"),x()(),xe(24,"input",13),_(25,"div",14),O(26,"Collection is required"),x()(),_(27,"div",10)(28,"div",11)(29,"label",15),O(30,"Key"),x()(),xe(31,"input",16),_(32,"div",14),O(33,"Key is required"),x()()(),_(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),O(38,"User ID"),x()(),xe(39,"input",18),_(40,"div",14),O(41,"User ID is required"),x()(),_(42,"div",19)(43,"div",11)(44,"label",20),O(45,"Read Permission"),x()(),_(46,"div",21)(47,"label",22),xe(48,"input",23),O(49," No Read "),x(),_(50,"label",22),xe(51,"input",23),O(52," Owner Read "),x(),_(53,"label",22),xe(54,"input",23),O(55," Public Read "),x()()()(),_(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),O(60,"Version"),x()(),xe(61,"input",25),x(),_(62,"div",19)(63,"div",11)(64,"label",26),O(65,"Write Permission"),x()(),_(66,"div",27)(67,"label",22),xe(68,"input",28),O(69," No Write "),x(),_(70,"label",22),xe(71,"input",28),O(72," Owner Write "),x()()()(),_(73,"div",29)(74,"div",10)(75,"div",11)(76,"label",30),O(77,"Create Time"),x()(),xe(78,"input",31),x(),_(79,"div",10)(80,"div",11)(81,"label",32),O(82,"Update Time"),x()(),xe(83,"input",33),x()(),_(84,"div",34),xe(85,"div",35,36),x(),te(87,Ilt,4,3,"button",37),x()),2&i&&(w(8),S("routerLink",cl(32,cL))("queryParams",Zi(33,Nlt,r.object.collection)),w(1),wt(r.object.collection),w(2),S("routerLink",cl(35,cL))("queryParams",Rr(36,Flt,r.object.collection,r.object.key)),w(1),wt(r.object.key),w(2),S("routerLink",cl(39,cL))("queryParams",ty(40,Plt,r.object.collection,r.object.key,r.object.user_id)),w(1),wt(r.object.user_id),w(1),S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.objectForm),w(6),S("ngClass",Zi(44,uL,r.f.collection.dirty&&r.f.collection.errors)),w(1),S("hidden",r.f.collection.disabled||r.f.collection.valid||r.f.collection.pristine),w(6),S("ngClass",Zi(46,uL,r.f.keyname.dirty&&r.f.keyname.errors)),w(1),S("hidden",r.f.keyname.disabled||r.f.keyname.valid||r.f.keyname.pristine),w(7),S("ngClass",Zi(48,uL,r.f.user_id.dirty&&r.f.user_id.errors)),w(1),S("hidden",r.f.user_id.disabled||r.f.user_id.valid||r.f.user_id.pristine),w(7),S("ngClass",Zi(50,ux,0==r.f.permission_read.value)),w(1),S("value",0),w(2),S("ngClass",Zi(52,ux,1==r.f.permission_read.value)),w(1),S("value",1),w(2),S("ngClass",Zi(54,ux,2==r.f.permission_read.value)),w(1),S("value",2),w(7),S("value",r.object.version),w(6),S("ngClass",Zi(56,ux,0==r.f.permission_write.value)),w(1),S("value",0),w(2),S("ngClass",Zi(58,ux,1==r.f.permission_write.value)),w(1),S("value",1),w(7),S("value",r.object.create_time),w(5),S("value",r.object.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Ru,Of,xn,yo,fa,Us,B3,da,ha,qh,Ts,zs],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),jlt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Llt(t,n){if(1&t&&(_(0,"ngb-alert",18),xe(1,"img",19),_(2,"h6",20),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Blt(t,n){1&t&&(_(0,"th",21),O(1,"Remove"),x())}function $lt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"Yes"),x()}}function Vlt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"No"),x()}}function Hlt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"Yes"),x()}}function Ult(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"No"),x()}}function zlt(t,n){if(1&t){const e=_t();_(0,"td",26)(1,"button",27),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteLeaderboard(r,s,a))}),O(2,"Delete"),x()()}}function Glt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(2),x(),_(3,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(4),x(),_(5,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(6),x(),_(7,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(8),x(),te(9,$lt,2,0,"td",23),te(10,Vlt,2,0,"td",23),te(11,Hlt,2,0,"td",23),te(12,Ult,2,0,"td",23),te(13,zlt,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.id),w(2),wt(i.orderString[e.sort_order]),w(2),wt(i.operatorString[e.operator]),w(2),wt(""===e.reset_schedule?"-":e.reset_schedule),w(1),S("ngIf",e.authoritative),w(1),S("ngIf",!e.authoritative),w(1),S("ngIf",e.tournament),w(1),S("ngIf",!e.tournament),w(1),S("ngIf",i.deleteAllowed())}}function Wlt(t,n){1&t&&(_(0,"tr")(1,"td",28),O(2,"No leaderboards were found."),x()())}let qlt=(()=>{class t{route;router;authService;consoleService;deleteConfirmService;error="";leaderboards=[];nextCursor="";leaderboardsCount=0;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};constructor(e,i,r,o,s){this.route=e,this.router=i,this.authService=r,this.consoleService=o,this.deleteConfirmService=s}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ho),ge(Ai),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),O(4,"Leaderboards"),x(),_(5,"h6",4),O(6),x()(),_(7,"div",5)(8,"div",6)(9,"button",7),ke("click",function(){return r.search(0)}),xe(10,"img",8),x(),_(11,"button",7),ke("click",function(){return r.search(1)}),xe(12,"img",9),x()()()()(),te(13,Llt,4,2,"ngb-alert",10),_(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),O(18,"Leaderboard ID"),x(),_(19,"th",13),O(20,"Sort Order"),x(),_(21,"th",13),O(22,"Operator"),x(),_(23,"th",13),O(24,"Reset Schedule"),x(),_(25,"th",14),O(26,"Authoritative"),x(),_(27,"th",14),O(28,"Tournament"),x(),te(29,Blt,2,0,"th",15),x()(),_(30,"tbody"),te(31,Glt,14,9,"tr",16),te(32,Wlt,3,0,"tr",17),x()()),2&i&&(w(6),bn("",r.leaderboardsCount," leaderboards found."),w(3),S("disabled",0===r.leaderboards.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(16),S("ngIf",r.deleteAllowed()),w(2),S("ngForOf",r.leaderboards),w(1),S("ngIf",0===r.leaderboards.length))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Ylt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xlt(t,n){if(1&t&&(_(0,"ngb-alert",31),xe(1,"img",32),_(2,"h6",33),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying accounts: ",e.error,"")}}function Jlt(t,n){if(1&t){const e=_t();_(0,"ngb-alert",31),xe(1,"img",32),_(2,"h6",33),O(3,"Query ongoing..."),x(),_(4,"button",34),ke("click",function(){return ze(e),Ge(L().cancelQuery())}),O(5,"Cancel!"),x()()}2&t&&S("dismissible",!1)}function Klt(t,n){1&t&&(_(0,"th",35),O(1,"Remove"),x())}function Qlt(t,n){1&t&&(_(0,"tr")(1,"td",36),O(2,"No users found - change the filter criteria or add new user accounts."),x()())}function Zlt(t,n){1&t&&xe(0,"td")}function ect(t,n){if(1&t){const e=_t();_(0,"td",39)(1,"button",40),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteAccount(r,s,a))}),O(2,"Delete"),x()()}}function tct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(6),x(),_(7,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(8),x(),te(9,Zlt,1,0,"td",29),te(10,ect,3,0,"td",38),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.id),w(2),wt(e.username),w(2),wt(e.display_name),w(2),wt(e.update_time),w(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let nct=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";accountsCount=0;accounts=[];nextCursor="";prevCursor="";searchForm;querySubject;ongoingQuery=!1;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.querySubject=new fn,this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}ngOnDestroy(){this.querySubject.next(),this.querySubject.complete()}search(e){this.ongoingQuery&&this.querySubject.next(),this.ongoingQuery=!0;let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).pipe(ns(this.querySubject)).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"}),this.ongoingQuery=!1},o=>{this.error=o,this.ongoingQuery=!1})}cancelQuery(){this.querySubject.next(),this.ongoingQuery=!1}deleteAccount(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:46,vars:10,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button",1,"btn","btn-danger",3,"click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Accounts"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6),xe(9,"input",7),_(10,"div",8)(11,"span",9),ke("click",function(){return r.f.filter.setValue(r.systemUserId)}),xe(12,"img",10),x()(),_(13,"div",8)(14,"div",11)(15,"button",12),ke("click",function(){return r.f.filter_type.setValue(0),r.search(0)}),O(16,"Search"),x(),_(17,"div",13),xe(18,"button",14),_(19,"div",15)(20,"button",16),ke("click",function(){return r.f.filter_type.setValue(1),r.search(0)}),O(21,"Tombstones"),x()()()()()()()(),_(22,"div",17)(23,"div",18)(24,"button",19),ke("click",function(){return r.search(0)}),xe(25,"img",20),x(),_(26,"button",19),ke("click",function(){return r.search(1)}),xe(27,"img",21),x()()()()(),te(28,Xlt,4,2,"ngb-alert",22),te(29,Jlt,6,1,"ngb-alert",22),_(30,"div",23)(31,"table",24)(32,"thead",25)(33,"tr")(34,"th",26),O(35,"User ID"),x(),_(36,"th"),O(37,"Username"),x(),_(38,"th"),O(39,"Display Name"),x(),_(40,"th",27),O(41,"Last Update"),x(),te(42,Klt,2,0,"th",28),x()(),_(43,"tbody"),te(44,Qlt,3,0,"tr",29),te(45,tct,11,6,"tr",30),x()()()),2&i&&(w(3),bn("",r.accountsCount," accounts found."),w(4),S("formGroup",r.searchForm),w(11),S("disabled",!r.f.filter.value||""===r.f.filter.value),w(6),S("disabled",0===r.accounts.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(1),S("ngIf",r.ongoingQuery),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.accounts.length),w(1),S("ngForOf",r.accounts))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),ict=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rct(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().exportAccount(r))}),xe(1,"img",16),O(2,"Export"),x()}}function oct(t,n){1&t&&(_(0,"span"),O(1,"Unban"),x())}function sct(t,n){1&t&&(_(0,"span"),O(1,"Ban"),x())}function act(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().banUnbanAccount(r))}),xe(1,"img",17),te(2,oct,2,0,"span",18),te(3,sct,2,0,"span",18),x()}if(2&t){const e=L();w(2),S("ngIf",e.account.disable_time),w(1),S("ngIf",!e.account.disable_time)}}function lct(t,n){if(1&t){const e=_t();_(0,"button",19),ke("click",function(r){return ze(e),Ge(L().deleteAccount(r,!1))}),xe(1,"img",20),O(2,"Delete"),x()}}function cct(t,n){if(1&t){const e=_t();_(0,"button",19),ke("click",function(r){return ze(e),Ge(L().deleteAccount(r,!0))}),xe(1,"img",21),O(2,"Recorded delete"),x()}}function uct(t,n){if(1&t&&(_(0,"ngb-alert",22),xe(1,"img",23),_(2,"h6",24),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const dct=function(t,n){return["/accounts",t,n]};function hct(t,n){if(1&t&&(_(0,"div"),Cl(1,25),_(2,"a",26),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,dct,i.account.user.id,e.path)),w(1),wt(e.label)}}const fct=function(){return["/accounts"]},pct=function(){return["/storage"]},mct=function(t){return{user_id:t}};let gct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;account;error="";views=[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,XI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Account"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Account"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,rct,3,0,"button",7),te(12,act,4,2,"button",7),te(13,lct,3,0,"button",8),te(14,cct,3,0,"button",8),x()(),te(15,uct,4,2,"ngb-alert",9),_(16,"nav",10,11),te(18,hct,4,6,"div",12),_(19,"div"),Cl(20,13),_(21,"a",14),O(22," Storage "),x(),Sl(),x()(),xe(23,"router-outlet")),2&i&&(w(6),S("routerLink",cl(10,fct)),w(3),wt(r.account.user.id),w(2),S("ngIf",r.exportAllowed()),w(1),S("ngIf",r.banAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views),w(3),S("routerLink",cl(11,pct))("queryParams",Zi(12,mct,r.account.user.id)))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),vct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const yct=["editor"];function _ct(t,n){if(1&t&&(_(0,"ngb-alert",29),xe(1,"img",30),_(2,"h6",31),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function bct(t,n){1&t&&(_(0,"ngb-alert",32),xe(1,"img",33),_(2,"h6",31),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function xct(t,n){1&t&&(_(0,"button",34),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}const wct=function(t){return{"is-invalid":t}};let Cct=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",qr.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(yct,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,_ct,4,2,"ngb-alert",0),te(1,bct,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateAccount()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"User ID"),x()(),xe(8,"input",7),x(),_(9,"div",4)(10,"div",5)(11,"label",8),O(12,"Username"),x()(),xe(13,"input",9),_(14,"div",10),O(15,"Username is required"),x()()(),_(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),O(20,"Display Name"),x()(),xe(21,"input",12),x(),_(22,"div",13)(23,"div",5)(24,"label",14),O(25,"Avatar URL"),x()(),xe(26,"input",15),x()(),_(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),O(31,"Location"),x()(),xe(32,"input",17),x(),_(33,"div",13)(34,"div",5)(35,"label",18),O(36,"Timezone"),x()(),xe(37,"input",19),x()(),_(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),O(42,"Create Time"),x()(),xe(43,"input",22),x(),_(44,"div",4)(45,"div",5)(46,"label",23),O(47,"Update Time"),x()(),xe(48,"input",24),x()(),_(49,"div",25),xe(50,"div",26,27),x(),te(52,xct,2,1,"button",28),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.accountForm),w(6),S("value",r.account.user.id),w(5),S("ngClass",Zi(9,wct,r.f.username.dirty&&r.f.username.errors)),w(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),w(29),S("value",r.account.user.create_time),w(5),S("value",r.account.user.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Of,xn,yo,fa,Us,da,ha,qh,Ts,zs]})}return t})();function Sct(t,n){if(1&t&&(_(0,"ngb-alert",36),xe(1,"img",37),_(2,"h6",38),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function kct(t,n){1&t&&(_(0,"ngb-alert",39),xe(1,"img",40),_(2,"h6",38),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Dct(t,n){if(1&t&&(_(0,"option",41),O(1),x()),2&t){const e=n.$implicit,i=n.index;Ph("value",i),S("selected",0===i),w(1),wt(e.id)}}function Tct(t,n){1&t&&(_(0,"button",42),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}let Ect=(()=>{class t{route;router;consoleService;authService;formBuilder;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,Sct,4,2,"ngb-alert",0),te(1,kct,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateAccount()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"Device IDs"),x()(),_(8,"div",7)(9,"button",8),ke("click",function(){return r.copyDeviceIdToClipboard(r.f.selected_device_id_index.value)}),xe(10,"img",9),O(11," Copy "),x(),_(12,"select",10),te(13,Dct,2,3,"option",11),x(),_(14,"div",12)(15,"button",13),ke("click",function(s){return r.unlinkDeviceId(s)}),O(16,"Unlink"),x()()()(),_(17,"div",4)(18,"div",5)(19,"label",14),O(20,"Custom ID"),x()(),_(21,"div",7),xe(22,"input",15),_(23,"div",12)(24,"button",13),ke("click",function(s){return r.unlinkCustomID(s)}),O(25,"Unlink"),x()()()()(),_(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),O(30,"Facebook ID"),x()(),_(31,"div",7),xe(32,"input",17),_(33,"div",12)(34,"button",13),ke("click",function(s){return r.unlinkFacebook(s)}),O(35,"Unlink"),x()()()(),_(36,"div",18)(37,"div",5)(38,"label",19),O(39,"FB Instant Game ID"),x()(),_(40,"div",7),xe(41,"input",20),_(42,"div",12)(43,"button",13),ke("click",function(s){return r.unlinkFacebookInstantGames(s)}),O(44,"Unlink"),x()()()()(),_(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),O(49,"Apple ID"),x()(),_(50,"div",7),xe(51,"input",22),_(52,"div",12)(53,"button",13),ke("click",function(s){return r.unlinkApple(s)}),O(54,"Unlink"),x()()()(),_(55,"div",18)(56,"div",5)(57,"label",23),O(58,"GameCenter ID"),x()(),_(59,"div",7),xe(60,"input",24),_(61,"div",12)(62,"button",13),ke("click",function(s){return r.unlinkGameCenter(s)}),O(63,"Unlink"),x()()()()(),_(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),O(68,"Google ID"),x()(),_(69,"div",7),xe(70,"input",26),_(71,"div",12)(72,"button",13),ke("click",function(s){return r.unlinkGoogle(s)}),O(73,"Unlink"),x()()()(),_(74,"div",4)(75,"div",5)(76,"label",27),O(77,"Steam ID"),x()(),_(78,"div",7),xe(79,"input",28),_(80,"div",12)(81,"button",13),ke("click",function(s){return r.unlinkSteam(s)}),O(82,"Unlink"),x()()()()(),_(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),O(87,"Email"),x(),xe(88,"br"),x(),xe(89,"input",30),x(),_(90,"div",4)(91,"div",5)(92,"label",31),O(93,"Password"),x()(),xe(94,"input",32),x()(),_(95,"div",33)(96,"div",4),xe(97,"div",5),_(98,"span",34),O(99),x()(),xe(100,"div",4),x(),te(101,Tct,2,1,"button",35),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.accountForm),w(11),S("ngForOf",r.account.devices),w(2),S("disabled",!r.updateAllowed()||0===r.account.devices.length),w(7),S("value",r.account.custom_id),w(2),S("disabled",!r.updateAllowed()||!r.account.custom_id||""===r.account.custom_id),w(8),S("value",r.account.user.facebook_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_id||""===r.account.user.facebook_id),w(7),S("value",r.account.user.facebook_instant_game_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_instant_game_id||""===r.account.user.facebook_instant_game_id),w(8),S("value",r.account.user.apple_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.apple_id||""===r.account.user.apple_id),w(7),S("value",r.account.user.gamecenter_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.gamecenter_id||""===r.account.user.gamecenter_id),w(8),S("value",r.account.user.google_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.google_id||""===r.account.user.google_id),w(7),S("value",r.account.user.steam_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.steam_id||""===r.account.user.steam_id),w(18),bn("Verification Status: ",null===r.account.verify_time?"Not Verified":"Verified",""),w(2),S("ngIf",r.updateAllowed()))},dependencies:[Un,xn,yo,fa,HC,UC,Us,kv,da,ha,Ts,zs],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})}return t})();const Act=["editor"];function Mct(t,n){if(1&t&&(_(0,"ngb-alert",24),xe(1,"img",25),_(2,"h6",26),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Oct(t,n){1&t&&(_(0,"ngb-alert",27),xe(1,"img",28),_(2,"h6",26),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Ict(t,n){if(1&t){const e=_t();_(0,"button",29),ke("click",function(){return ze(e),Ge(L().updateWallet())}),O(1,"Save"),x()}2&t&&S("disabled",L().updating)}function Nct(t,n){1&t&&(_(0,"th",30),O(1,"Remove"),x())}function Fct(t,n){1&t&&(_(0,"tr")(1,"td",31),O(2,"No wallet ledger items found."),x()())}function Pct(t,n){1&t&&xe(0,"div",37)}function Rct(t,n){1&t&&xe(0,"div",38)}function jct(t,n){if(1&t){const e=_t();_(0,"td")(1,"button",39),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteLedgerItem(r,s,a))}),O(2,"Delete"),x()()}}function Lct(t,n){if(1&t&&(_(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),O(4),x()()()()),2&t){const e=L().$implicit;w(4),wt(e.metadata)}}function Bct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",32),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),te(3,Pct,1,0,"div",33),te(4,Rct,1,0,"div",34),x(),O(5),x(),_(6,"td",35)(7,"pre",36),O(8),x()(),_(9,"td"),O(10),x(),te(11,jct,3,0,"td",22),x(),te(12,Lct,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.walletLedgerMetadataOpen[e]),w(1),S("ngIf",r.walletLedgerMetadataOpen[e]),w(1),bn(" ",i.id," "),w(3),wt(i.changeset),w(2),wt(i.update_time),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.walletLedgerMetadataOpen[e])}}let $ct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;editor;jsonEditor;error="";account;walletLedger=[];walletLedgerMetadataOpen=[];updating=!1;updated=!1;nextCursor="";prevCursor="";limit=100;userID;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Act,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(te(0,Mct,4,2,"ngb-alert",0),te(1,Oct,4,1,"ngb-alert",1),_(2,"div",2),xe(3,"div",3,4),x(),te(5,Ict,2,1,"button",5),xe(6,"hr",6),_(7,"div",7)(8,"div",8),xe(9,"div",9),_(10,"div",10)(11,"div",11)(12,"button",12),ke("click",function(){return r.loadData("")}),xe(13,"img",13),x(),_(14,"button",12),ke("click",function(){return r.loadData(r.prevCursor)}),xe(15,"img",14),x(),_(16,"button",12),ke("click",function(){return r.loadData(r.nextCursor)}),xe(17,"img",15),x()()()()(),_(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),O(23,"ID"),x(),_(24,"th"),O(25,"Changeset"),x(),_(26,"th",20),O(27,"Update Time"),x(),te(28,Nct,2,0,"th",21),x()(),_(29,"tbody"),te(30,Fct,3,0,"tr",22),te(31,Bct,13,7,"ng-template",23),x()()()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(4),S("ngIf",r.updateAllowed()),w(7),S("disabled",0===r.walletLedger.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(12),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.walletLedger.length),w(1),S("ngForOf",r.walletLedger))},dependencies:[Un,xn,yo],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})}return t})(),Vct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hct(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Uct(t,n){1&t&&(_(0,"th",13),O(1,"Remove"),x())}function zct(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No friends found."),x()())}function Gct(t,n){1&t&&(_(0,"span"),O(1,"Friend (0)"),x())}function Wct(t,n){1&t&&(_(0,"span"),O(1,"Invite Sent (1)"),x())}function qct(t,n){1&t&&(_(0,"span"),O(1,"Invite Received (2)"),x())}function Yct(t,n){1&t&&(_(0,"span"),O(1,"Blocked (3)"),x())}function Xct(t,n){if(1&t){const e=_t();_(0,"td",17)(1,"button",18),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteFriend(r,s,a))}),O(2,"Delete"),x()()}}function Jct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),O(2),x(),_(3,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),O(4),x(),_(5,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),te(6,Gct,2,0,"span",8),te(7,Wct,2,0,"span",8),te(8,qct,2,0,"span",8),te(9,Yct,2,0,"span",8),x(),_(10,"td"),O(11),x(),te(12,Xct,3,0,"td",16),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.user.id),w(2),wt(e.user.username),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(2),wt(e.update_time),w(1),S("ngIf",i.deleteAllowed())}}let Kct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;error="";account;friends=[];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})})}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,Hct,4,2,"ngb-alert",0),_(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),O(6,"User ID"),x(),_(7,"th"),O(8,"Username"),x(),_(9,"th",5),O(10,"State"),x(),_(11,"th",6),O(12,"Update Time"),x(),te(13,Uct,2,0,"th",7),x()(),_(14,"tbody"),te(15,zct,3,0,"tr",8),te(16,Jct,13,8,"tr",9),x()()()),2&i&&(S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.friends.length),w(1),S("ngForOf",r.friends))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Qct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zct(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function eut(t,n){1&t&&(_(0,"th",13),O(1,"Remove"),x())}function tut(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No group membership found."),x()())}function nut(t,n){1&t&&(_(0,"span"),O(1,"Superadmin (0)"),x())}function iut(t,n){1&t&&(_(0,"span"),O(1,"Admin (1)"),x())}function rut(t,n){1&t&&(_(0,"span"),O(1,"Member (2)"),x())}function out(t,n){1&t&&(_(0,"span"),O(1,"Join Request (3)"),x())}function sut(t,n){1&t&&(_(0,"span"),O(1,"Banned (4)"),x())}function aut(t,n){if(1&t){const e=_t();_(0,"td")(1,"button",16),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroupUser(r,s,a))}),O(2,"Delete"),x()()}}function lut(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),te(6,nut,2,0,"span",8),te(7,iut,2,0,"span",8),te(8,rut,2,0,"span",8),te(9,out,2,0,"span",8),te(10,sut,2,0,"span",8),x(),_(11,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(12),x(),te(13,aut,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.group.id),w(2),wt(e.group.name),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(1),S("ngIf",4===e.state),w(2),wt(e.group.update_time),w(1),S("ngIf",i.deleteAllowed())}}let cut=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;error="";account;groups=[];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,Zct,4,2,"ngb-alert",0),_(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),O(6,"Group ID"),x(),_(7,"th"),O(8,"Name"),x(),_(9,"th",5),O(10,"State"),x(),_(11,"th",6),O(12,"Update Time"),x(),te(13,eut,2,0,"th",7),x()(),_(14,"tbody"),te(15,tut,3,0,"tr",8),te(16,lut,14,9,"tr",9),x()()()),2&i&&(S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.groups.length),w(1),S("ngForOf",r.groups))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),uut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dut=["editor"];function hut(t,n){if(1&t&&(_(0,"ngb-alert",34),xe(1,"img",35),_(2,"h6",36),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function fut(t,n){1&t&&(_(0,"ngb-alert",37),xe(1,"img",38),_(2,"h6",36),O(3,"Group was modified successfully."),x()()),2&t&&S("dismissible",!1)}function put(t,n){1&t&&(_(0,"button",39),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}const mut=function(t){return["/accounts",t]},gut=function(t){return{"is-invalid":t}};let vut=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";group;groupForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",qr.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(dut,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,hut,4,2,"ngb-alert",0),te(1,fut,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateGroup()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"Group ID"),x()(),xe(8,"input",7),x(),_(9,"div",4)(10,"div",5)(11,"label",8),O(12,"Creator ID"),x()(),_(13,"a",9),xe(14,"input",10),x()()(),_(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),O(19,"Name"),x()(),xe(20,"input",12),_(21,"div",13),O(22,"Name is required"),x()(),_(23,"div",4)(24,"div",5)(25,"label",14),O(26,"Description"),x()(),xe(27,"input",15),x()(),_(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),O(32,"Avatar URL"),x()(),xe(33,"input",18),x(),_(34,"div",4)(35,"div",5)(36,"label",19),O(37,"Language"),x()(),xe(38,"input",20),x()(),_(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),O(43,"Members"),x()(),xe(44,"input",21),x(),_(45,"div",16)(46,"div",5)(47,"label",22),O(48,"Max Count"),x()(),xe(49,"input",23),x()(),_(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),O(54,"Open"),x()(),xe(55,"input",24),x()(),_(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),O(60,"Create Time"),x()(),xe(61,"input",27),x(),_(62,"div",4)(63,"div",5)(64,"label",28),O(65,"Update Time"),x()(),xe(66,"input",29),x()(),_(67,"div",30),xe(68,"div",31,32),x(),te(70,put,2,1,"button",33),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.groupForm),w(6),S("value",r.group.id),w(5),S("routerLink",Zi(12,mut,r.group.creator_id)),w(1),S("value",r.group.creator_id),w(6),S("ngClass",Zi(14,gut,r.f.name.dirty&&r.f.name.errors)),w(1),S("hidden",r.f.name.disabled||r.f.name.valid||r.f.name.pristine),w(23),S("value",r.group.edge_count),w(17),S("value",r.group.create_time),w(5),S("value",r.group.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Ru,Of,xn,yo,fa,Us,OC,da,ha,qh,Ts,zs]})}return t})();function yut(t,n){if(1&t&&(_(0,"ngb-alert",13),xe(1,"img",14),_(2,"h6",15),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function _ut(t,n){1&t&&(_(0,"span"),O(1,"Add by membership state"),x())}function but(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L(2);w(1),wt(e.activeState)}}function xut(t,n){if(1&t){const e=_t();_(0,"button",20),ke("click",function(){const o=ze(e).$implicit;return Ge(L(2).activeState=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function wut(t,n){if(1&t&&(_(0,"div",16)(1,"button",17),te(2,_ut,2,0,"span",11),te(3,but,2,1,"span",11),x(),_(4,"div",18),te(5,xut,2,1,"button",19),x()()),2&t){const e=L();w(2),S("ngIf",!e.activeState||""===e.activeState),w(1),S("ngIf",e.activeState&&""!==e.activeState),w(2),S("ngForOf",e.states)}}function Cut(t,n){if(1&t){const e=_t();_(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),xe(5,"input",26),_(6,"div",27)(7,"div",28)(8,"button",29),ke("click",function(){return ze(e),Ge(L().add())}),O(9,"Add"),x()()()()()()()()}if(2&t){const e=L();w(3),S("formGroup",e.addForm)}}function Sut(t,n){1&t&&(_(0,"th",30),O(1,"Demote"),x())}function kut(t,n){1&t&&(_(0,"th",30),O(1,"Promote"),x())}function Dut(t,n){1&t&&(_(0,"th",31),O(1,"Remove"),x())}function Tut(t,n){1&t&&(_(0,"tr")(1,"td",32),O(2,"No group membership found."),x()())}function Eut(t,n){1&t&&(_(0,"span"),O(1,"Superadmin (0)"),x())}function Aut(t,n){1&t&&(_(0,"span"),O(1,"Admin (1)"),x())}function Mut(t,n){1&t&&(_(0,"span"),O(1,"Member (2)"),x())}function Out(t,n){1&t&&(_(0,"span"),O(1,"Join Request (3)"),x())}function Iut(t,n){1&t&&(_(0,"span"),O(1,"Banned (4)"),x())}function Nut(t,n){if(1&t){const e=_t();_(0,"td",36)(1,"button",37),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().demoteGroupUser(r,s,a))}),lt(),_(2,"svg",38),xe(3,"path",39),x()()()}}function Fut(t,n){if(1&t){const e=_t();_(0,"td",36)(1,"button",37),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().promoteGroupUser(r,s,a))}),lt(),_(2,"svg",40),xe(3,"path",41),x()()()}}function Put(t,n){if(1&t){const e=_t();_(0,"td",42)(1,"button",43),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroupUser(r,s,a))}),O(2,"Delete"),x()()}}function Rut(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),te(6,Eut,2,0,"span",11),te(7,Aut,2,0,"span",11),te(8,Mut,2,0,"span",11),te(9,Out,2,0,"span",11),te(10,Iut,2,0,"span",11),x(),_(11,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(12),x(),te(13,Nut,4,0,"td",34),te(14,Fut,4,0,"td",34),te(15,Put,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.user.id),w(2),wt(e.user.username),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(1),S("ngIf",4===e.state),w(2),wt(e.user.update_time),w(1),S("ngIf",i.editionAllowed()),w(1),S("ngIf",i.editionAllowed()),w(1),S("ngIf",i.editionAllowed())}}let jut=(()=>{class t{route;router;consoleService;formBuilder;authService;error="";group;members=[];activeState="Add Member";states=["Add Member","Join"];addForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge($a),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,yut,4,2,"ngb-alert",0),te(1,wut,6,3,"div",1),te(2,Cut,10,1,"div",2),_(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),O(8,"User ID"),x(),_(9,"th"),O(10,"Name"),x(),_(11,"th",7),O(12,"State"),x(),_(13,"th",8),O(14,"Update Time"),x(),te(15,Sut,2,0,"th",9),te(16,kut,2,0,"th",9),te(17,Dut,2,0,"th",10),x()(),_(18,"tbody"),te(19,Tut,3,0,"tr",11),te(20,Rut,16,11,"tr",12),x()()()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",!r.group.open&&r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(13),S("ngIf",r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(2),S("ngIf",0===r.members.length),w(1),S("ngForOf",r.members))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),Lut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function But(t,n){if(1&t&&(_(0,"ngb-alert",28),xe(1,"img",29),_(2,"h6",30),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function $ut(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),wt(e.activeType)}}function Vut(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeType=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function Hut(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),wt(e.activeNode)}}function Uut(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeNode=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function zut(t,n){1&t&&(_(0,"tr")(1,"td",32),O(2,"No realtime matches were found."),x()())}function Gut(t,n){1&t&&xe(0,"div",40)}function Wut(t,n){1&t&&xe(0,"div",41)}function qut(t,n){if(1&t){const e=_t();_(0,"div",37),ke("click",function(){ze(e);const r=L(),o=r.index,s=r.$implicit,a=L();return a.getMatchState(o,s),Ge(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),te(1,Gut,1,0,"div",38),te(2,Wut,1,0,"div",39),x()}if(2&t){const e=L().index,i=L();w(1),S("ngIf",!i.matchStatesOpen[e]),w(1),S("ngIf",i.matchStatesOpen[e])}}function Yut(t,n){1&t&&xe(0,"div",42)}function Xut(t,n){1&t&&(_(0,"span"),O(1,"Yes"),x())}function Jut(t,n){1&t&&(_(0,"span"),O(1,"No"),x())}function Kut(t,n){1&t&&xe(0,"img",51)}function Qut(t,n){if(1&t&&(_(0,"div")(1,"small")(2,"b"),O(3,"Current Tick"),x()(),_(4,"pre",47)(5,"small"),O(6),x()(),_(7,"small")(8,"b"),O(9,"Match State"),x()(),_(10,"pre",47)(11,"small"),O(12),x()()()),2&t){const e=L(2).index,i=L();w(6),wt(i.matchStates[e].tick),w(6),wt(i.matchStates[e].state)}}function Zut(t,n){1&t&&xe(0,"img",51)}function edt(t,n){if(1&t&&(_(0,"pre",47)(1,"small"),O(2),x()()),2&t){const e=L(2).index,i=L();w(2),wt(i.getMatchPresencesString(i.matchStates[e].presences))}}function tdt(t,n){if(1&t&&(_(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),O(6,"Match Label"),x()(),_(7,"pre",47)(8,"small"),O(9),x()()(),_(10,"div",48),te(11,Kut,1,0,"img",49),te(12,Qut,13,2,"div",7),x(),_(13,"div",48)(14,"small")(15,"b"),O(16,"Match Presences"),x()(),te(17,Zut,1,0,"img",49),te(18,edt,3,1,"pre",50),x()()()()),2&t){const e=L(),i=e.$implicit,r=e.index,o=L();w(9),wt(i.api_match.label),w(2),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),S("ngIf",null!==o.matchStates[r]),w(5),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),S("ngIf",null!==o.matchStates[r])}}function ndt(t,n){if(1&t&&(_(0,"tr")(1,"td"),te(2,qut,3,2,"div",33),te(3,Yut,1,0,"div",34),O(4),x(),_(5,"td"),O(6),x(),_(7,"td",35),te(8,Xut,2,0,"span",7),te(9,Jut,2,0,"span",7),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x()(),te(16,tdt,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=L();w(2),S("ngIf",i.api_match.authoritative),w(1),S("ngIf",!i.api_match.authoritative),w(1),bn(" ",i.api_match.match_id," "),w(2),wt(i.api_match.size),w(2),S("ngIf",i.api_match.authoritative),w(1),S("ngIf",!i.api_match.authoritative),w(2),wt(i.node),w(2),wt(i.api_match.handler_name),w(2),wt(i.api_match.authoritative?i.api_match.tick_rate:"-"),w(1),S("ngIf",r.matchStatesOpen[e])}}let idt=(()=>{class t{route;router;formBuilder;consoleService;error="";matches=[];matchStates=[];matchStatesOpen=[];updated=!1;searchForm1;searchForm2;searchForm3;type;activeType="All";types=["All","Authoritative","Relayed"];activeNode="All Nodes";nodes=["All Nodes"];constructor(e,i,r,o){this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));const i=e.get("type");this.type=Number(i);const r=e.get("node");if(this.route.data.subscribe(o=>{o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1===this.type||2===this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,lve(this.consoleService,e,0===e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge($a),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Active Matches"),x(),_(2,"h6",1),O(3),x(),te(4,But,4,2,"ngb-alert",2),_(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),te(9,$ut,2,1,"span",7),x(),_(10,"div",8),te(11,Vut,2,1,"button",9),x()()(),_(12,"div",10)(13,"button",11),ke("click",function(){return r.search()}),O(14,"Search"),x()()(),_(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),ke("ngSubmit",function(){return r.search()}),_(19,"div",16),xe(20,"input",17),x()(),_(21,"form",15),ke("ngSubmit",function(){return r.search()}),_(22,"div",16),xe(23,"input",17),x()(),_(24,"form",15),ke("ngSubmit",function(){return r.search()}),_(25,"div",16),xe(26,"input",18),_(27,"div",10)(28,"div",5)(29,"button",19),te(30,Hut,2,1,"span",7),x(),_(31,"div",8),te(32,Uut,2,1,"button",9),x()()()()()()()(),_(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),O(39,"Match ID"),x()(),_(40,"th",23),O(41,"Presence Count"),x(),_(42,"th",24),O(43,"Authoritative"),x(),_(44,"th",24),O(45,"Node"),x(),_(46,"th",25),O(47,"Handler Name"),x(),_(48,"th",26),O(49,"Tick Rate"),x()()(),_(50,"tbody"),te(51,zut,3,0,"tr",7),te(52,ndt,17,10,"ng-template",27),x()()()),2&i&&(w(3),bn("",r.matches.length," running matches found."),w(1),S("ngIf",r.error),w(5),S("ngIf",r.activeType&&""!==r.activeType),w(2),S("ngForOf",r.types),w(7),S("hidden","All"!==r.activeType)("formGroup",r.searchForm1),w(3),S("hidden","Relayed"!==r.activeType)("formGroup",r.searchForm2),w(3),S("hidden","Authoritative"!==r.activeType)("formGroup",r.searchForm3),w(6),S("ngIf",r.activeNode&&""!==r.activeNode),w(2),S("ngForOf",r.nodes),w(6),Vn("pl-3",r.matches.length>0),w(13),S("ngIf",0===r.matches.length),w(1),S("ngForOf",r.matches))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),rdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));return lve(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))))}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lve(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return Hn(null)}let odt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(it(r=>Hn(r.nodes.map(o=>o.name)))).pipe(Jl(r=>(e.data={...e.data,error:r},Hn([]))))}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sdt(t,n){if(1&t&&(_(0,"ngb-alert",25),xe(1,"img",26),_(2,"h6",27),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying groups: ",e.error,"")}}function adt(t,n){1&t&&(_(0,"th",28),O(1,"Remove"),x())}function ldt(t,n){1&t&&(_(0,"tr")(1,"td",29),O(2,"No groups found - change the filter criteria or add new user groups."),x()())}function cdt(t,n){1&t&&xe(0,"td")}function udt(t,n){if(1&t){const e=_t();_(0,"td",32)(1,"button",33),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroup(r,s,a))}),O(2,"Delete"),x()()}}function ddt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(2),x(),_(3,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(4),x(),_(5,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(6),x(),te(7,cdt,1,0,"td",23),te(8,udt,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=L();w(2),wt(e.id),w(2),wt(e.name),w(2),wt(e.update_time),w(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let hdt=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";groupsCount=0;groups=[];nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Groups"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6),xe(9,"input",7),_(10,"div",8)(11,"div",9)(12,"button",10),ke("click",function(){return r.search(0)}),O(13,"Search"),x()()()()()(),_(14,"div",11)(15,"div",12)(16,"button",13),ke("click",function(){return r.search(0)}),xe(17,"img",14),x(),_(18,"button",13),ke("click",function(){return r.search(1)}),xe(19,"img",15),x()()()()(),te(20,sdt,4,2,"ngb-alert",16),_(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),O(26,"Group ID"),x(),_(27,"th"),O(28,"Name"),x(),_(29,"th",21),O(30,"Last Update"),x(),te(31,adt,2,0,"th",22),x()(),_(32,"tbody"),te(33,ldt,3,0,"tr",23),te(34,ddt,9,5,"tr",24),x()()()),2&i&&(w(3),bn("",r.groupsCount," groups found."),w(4),S("formGroup",r.searchForm),w(9),S("disabled",0===r.groups.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(11),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.groups.length),w(1),S("ngForOf",r.groups))},dependencies:[Un,xn,yo,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),fdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pdt(t,n){if(1&t){const e=_t();_(0,"button",13),ke("click",function(r){return ze(e),Ge(L().exportGroup(r))}),xe(1,"img",14),O(2,"Export"),x()}}function mdt(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().deleteGroup(r,!1))}),xe(1,"img",16),O(2,"Delete"),x()}}function gdt(t,n){if(1&t&&(_(0,"ngb-alert",17),xe(1,"img",18),_(2,"h6",19),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const vdt=function(t,n){return["/groups",t,n]};function ydt(t,n){if(1&t&&(_(0,"div"),Cl(1,20),_(2,"a",21),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,vdt,i.group.id,e.path)),w(1),wt(e.label)}}const _dt=function(){return["/groups"]};let bdt=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;group;error="";views=[{label:"Details",path:"details"},{label:"Members",path:"members"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,XI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Group"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Group"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,pdt,3,0,"button",7),te(12,mdt,3,0,"button",8),x()(),te(13,gdt,4,2,"ngb-alert",9),_(14,"nav",10,11),te(16,ydt,4,6,"div",12),x(),xe(17,"router-outlet")),2&i&&(w(6),S("routerLink",cl(6,_dt)),w(3),wt(r.group.id),w(2),S("ngIf",r.exportAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),xdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wdt(t,n){if(1&t){const e=_t();_(0,"button",12),ke("click",function(r){return ze(e),Ge(L().deleteLeaderboard(r))}),xe(1,"img",13),O(2,"Delete Leaderboard"),x()}}function Cdt(t,n){if(1&t&&(_(0,"ngb-alert",14),xe(1,"img",15),_(2,"h6",16),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const Sdt=function(t,n){return["/leaderboards",t,n]};function kdt(t,n){if(1&t&&(_(0,"div"),Cl(1,17),_(2,"a",18),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,Sdt,i.leaderboard.id,e.path)),w(1),wt(e.label)}}const Ddt=function(){return["/leaderboards"]};let Tdt=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;leaderboard;error="";views=[{label:"Details",path:"details"},{label:"Records",path:"records"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Leaderboard"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Leaderboards"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,wdt,3,0,"button",7),x()(),te(12,Cdt,4,2,"ngb-alert",8),_(13,"nav",9,10),te(15,kdt,4,6,"div",11),x(),xe(16,"router-outlet")),2&i&&(w(6),S("routerLink",cl(5,Ddt)),w(3),wt(r.leaderboard.id),w(2),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),Edt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Adt=["editor"];function Mdt(t,n){if(1&t&&(_(0,"ngb-alert",24),xe(1,"img",25),_(2,"h6",26),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Odt(t,n){if(1&t&&(_(0,"div",27)(1,"h6"),O(2,"Tournament"),x(),xe(3,"hr",28),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),O(8,"Title"),x()(),xe(9,"input",30),x(),_(10,"div",3)(11,"div",4)(12,"label",31),O(13,"Description"),x()(),xe(14,"input",32),x()(),_(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),O(19,"Category"),x()(),xe(20,"input",34),x(),_(21,"div",3)(22,"div",4)(23,"label",35),O(24,"Max Num Score"),x()(),xe(25,"input",36),x()(),_(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),O(30,"Size"),x()(),xe(31,"input",38),x(),_(32,"div",3)(33,"div",4)(34,"label",39),O(35,"Max Size"),x()(),xe(36,"input",40),x()(),_(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),O(41,"Duration"),x()(),xe(42,"input",42),x(),_(43,"div",3)(44,"div",4)(45,"label",43),O(46,"Join Required"),x()(),xe(47,"input",44),x()(),_(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),O(52,"Start Time"),x()(),xe(53,"input",46),x(),_(54,"div",3)(55,"div",4)(56,"label",47),O(57,"End Time"),x()(),xe(58,"input",48),x()(),_(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),O(63,"Start Active"),x()(),xe(64,"input",50),x(),_(65,"div",3)(66,"div",4)(67,"label",51),O(68,"End Active"),x()(),xe(69,"input",52),x()()()),2&t){const e=L();w(9),S("value",e.leaderboard.title),w(5),S("value",e.leaderboard.description),w(6),S("value",e.leaderboard.category),w(5),S("value",e.leaderboard.max_num_score),w(6),S("value",e.leaderboard.size),w(5),S("value",e.leaderboard.max_size),w(6),S("value",e.leaderboard.duration),w(5),S("value",e.leaderboard.join_required),w(6),S("value",e.leaderboard.start_time),w(5),S("value",e.leaderboard.end_time),w(6),S("value",e.leaderboard.start_active),w(5),S("value",e.leaderboard.end_active)}}let Idt=(()=>{class t{route;editor;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};jsonEditor;leaderboard;error="";constructor(e){this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}static \u0275fac=function(i){return new(i||t)(ge(Vr))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Adt,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(i,r){1&i&&(te(0,Mdt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),O(6,"ID"),x()(),xe(7,"input",6),x(),_(8,"div",3)(9,"div",4)(10,"label",7),O(11,"Authoritative"),x()(),xe(12,"input",8),x()(),_(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),O(17,"Sort Order"),x()(),xe(18,"input",10),x(),_(19,"div",3)(20,"div",4)(21,"label",11),O(22,"Operator"),x()(),xe(23,"input",12),x()(),_(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),O(28,"Reset Schedule"),x()(),xe(29,"input",14),x(),_(30,"div",3)(31,"div",4)(32,"label",15),O(33,"Create Time"),x()(),xe(34,"input",16),x()(),_(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),O(39,"Prev Reset"),x()(),xe(40,"input",18),x(),_(41,"div",3)(42,"div",4)(43,"label",15),O(44,"Next Reset"),x()(),xe(45,"input",19),x()()(),te(46,Odt,70,12,"div",20),_(47,"div",21),xe(48,"div",22,23),x()),2&i&&(S("ngIf",r.error),w(7),S("value",r.leaderboard.id),w(5),S("value",r.leaderboard.authoritative),w(6),S("value",r.orderString[r.leaderboard.sort_order]),w(5),S("value",r.operatorString[r.leaderboard.operator]),w(6),S("value",r.leaderboard.reset_schedule),w(5),S("value",r.leaderboard.create_time),w(6),S("value",r.leaderboard.prev_reset),w(5),S("value",r.leaderboard.next_reset),w(1),S("ngIf",r.leaderboard.tournament))},dependencies:[xn,yo],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})();function Ndt(t,n){if(1&t&&(_(0,"ngb-alert",19),xe(1,"img",20),_(2,"h6",21),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Fdt(t,n){1&t&&(_(0,"th",22),O(1,"Remove"),x())}function Pdt(t,n){1&t&&(_(0,"tr")(1,"td",23),O(2,"No records found."),x()())}function Rdt(t,n){1&t&&xe(0,"div",28)}function jdt(t,n){1&t&&xe(0,"div",29)}function Ldt(t,n){if(1&t){const e=_t();_(0,"td",30)(1,"button",31),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteRecord(r,s,a))}),O(2,"Delete"),x()()}}function Bdt(t,n){if(1&t&&(_(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),O(4),x()()()()),2&t){const e=L().$implicit;w(4),wt(e.metadata)}}function $dt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",24),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),te(3,Rdt,1,0,"div",25),te(4,jdt,1,0,"div",26),x(),O(5),x(),_(6,"td"),O(7),x(),_(8,"td"),O(9),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x(),te(18,Ldt,3,0,"td",27),x(),te(19,Bdt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.recordsMetadataOpen[e]),w(1),S("ngIf",r.recordsMetadataOpen[e]),w(1),bn(" ",i.owner_id," "),w(2),wt(i.username),w(2),wt(i.score),w(2),wt(i.subscore),w(2),wt(i.rank),w(2),wt(i.num_score),w(2),wt(i.expiry_time?i.expiry_time:"-"),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.recordsMetadataOpen[e])}}let Vdt=(()=>{class t{route;consoleService;authService;deleteConfirmService;error="";leaderboard;records=[];recordsMetadataOpen=[];nextCursor="";prevCursor="";constructor(e,i,r,o){this.route=e,this.consoleService=i,this.authService=r,this.deleteConfirmService=o}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(te(0,Ndt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadRecords(0)}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadRecords(-1)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadRecords(1)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),O(17,"Owner ID"),x(),_(18,"th"),O(19,"Username"),x(),_(20,"th",14),O(21,"Score"),x(),_(22,"th",14),O(23,"Subscore"),x(),_(24,"th",14),O(25,"Rank"),x(),_(26,"th",14),O(27,"No. of scores"),x(),_(28,"th",15),O(29,"Expiry Time"),x(),te(30,Fdt,2,0,"th",16),x()(),_(31,"tbody"),te(32,Pdt,3,0,"tr",17),te(33,$dt,20,11,"ng-template",18),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.records.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(20),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.records.length),w(1),S("ngForOf",r.records))},dependencies:[Un,xn,yo]})}return t})(),Hdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Udt=["editorReq"],zdt=["editorVars"],Gdt=["editorRes"];function Wdt(t,n){if(1&t&&(_(0,"ngb-alert",27),xe(1,"img",28),_(2,"h6",29),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error invoking RPC call: ",e.error,"")}}function qdt(t,n){if(1&t&&(_(0,"option",30),O(1),x()),2&t){const e=n.$implicit;Ph("value",e.method),w(1),wt(e.method)}}function Ydt(t,n){if(1&t&&(_(0,"option",30),O(1),x()),2&t){const e=n.$implicit;Ph("value",e.method),w(1),wt(e.method)}}function Xdt(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){return ze(e),Ge(L().addSessionVars())}),O(1,"Add Session Variables"),x()}}let Jdt=(()=>{class t{route;router;consoleService;formBuilder;editorReq;editorVars;editorRes;jsonEditorReq;jsonEditorVars;jsonEditorRes;error="";rpcEndpoints=[];endpoints=[];endpointCallForm;addVars=!1;constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",qr.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditorReq=new $p({target:this.editorReq.nativeElement,props:{mode:Uo.text,readOnly:!0}}),this.jsonEditorVars=new $p({target:this.editorVars.nativeElement,props:{mode:Uo.text}}),this.jsonEditorRes=new $p({target:this.editorRes.nativeElement,props:{mode:Uo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=Zm(this.jsonEditorReq.get()).text}catch(s){return void(this.error=s)}let i={};try{const s=Zm(this.jsonEditorVars.get()).text;if(""!==s){const a=JSON.parse(s);Object.keys(a).forEach(l=>{if("string"!=typeof l)throw new Error(`Invalid session variables: ${l} must be a string`);if("string"!=typeof a[l])throw new Error(`Invalid session variables: ${a[l]} must be a string`)}),i=a}}catch(s){return void(this.error=s)}const r={user_id:this.f.user_id.value,body:e,session_vars:i};let o=null;o=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,r):this.consoleService.callApiEndpoint("",this.f.method.value,r),o.subscribe(s=>{if(s.error_message&&""!==s.error_message)this.jsonEditorRes.set({json:s.error_message});else{e="";try{e=""===s.body?s.body:JSON.stringify(JSON.parse(s.body),null,2)}catch(a){return void(this.error=a)}this.jsonEditorRes.set({text:e})}},s=>{this.jsonEditorRes.set({text:""}),this.error=s})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditorReq){if(!e||""===e)return this.jsonEditorReq.set({text:""}),void this.jsonEditorReq.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditorReq.set({text:i}),this.jsonEditorReq.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}addSessionVars(){this.addVars=!0,this.jsonEditorVars.set({json:{"":"","":""}})}get f(){return this.endpointCallForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&(wo(Udt,5),wo(zdt,5),wo(Gdt,5)),2&i){let o;Tn(o=En())&&(r.editorReq=o.first),Tn(o=En())&&(r.editorVars=o.first),Tn(o=En())&&(r.editorRes=o.first)}},decls:43,vars:8,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],[1,"row","mb-3",3,"hidden"],[1,"col-md-6","py-3"],[1,"text-muted","pt-2"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","200px"],["editorVars",""],[1,"row","mb-3"],[1,"col-lg-6","py-3"],[2,"height","500px"],["editorReq",""],["editorRes",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"API Explorer"),x(),te(2,Wdt,4,2,"ngb-alert",1),_(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),ke("ngSubmit",function(){return r.sendRequest()}),_(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),O(11,"Select Endpoint"),x(),te(12,qdt,2,2,"option",10),_(13,"option",11),O(14,"----"),x(),te(15,Ydt,2,2,"option",10),x()(),xe(16,"input",12),_(17,"div",13)(18,"button",14),O(19,"Send Request"),x()()()()()()(),te(20,Xdt,2,0,"button",15),_(21,"div",16)(22,"div",17)(23,"h5"),O(24,"Session Vars"),x(),_(25,"div",18),O(26,"Add variables as object of string to string key-value pairs."),x(),_(27,"div",19),xe(28,"div",20,21),x()()(),_(30,"div",22)(31,"div",23)(32,"h5"),O(33,"Request Body"),x(),_(34,"div",19),xe(35,"div",24,25),x()(),_(37,"div",23)(38,"h5"),O(39,"Response"),x(),_(40,"div",19),xe(41,"div",24,26),x()()()),2&i&&(w(2),S("ngIf",r.error),w(4),S("formGroup",r.endpointCallForm),w(4),S("value",""),w(2),S("ngForOf",r.rpcEndpoints),w(3),S("ngForOf",r.endpoints),w(3),S("disabled",r.f.method.invalid),w(2),S("ngIf",!r.addVars),w(1),S("hidden",!r.addVars))},dependencies:[Un,xn,yo,fa,HC,UC,Us,kv,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})}return t})(),Kdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qdt(t,n){if(1&t&&(_(0,"ngb-alert",16),xe(1,"img",17),_(2,"h6",18),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Zdt(t,n){1&t&&(_(0,"th"),O(1,"User ID"),x())}function eht(t,n){1&t&&xe(0,"div",23)}function tht(t,n){1&t&&xe(0,"div",24)}function nht(t,n){if(1&t&&(_(0,"td"),O(1),x()),2&t){const e=L().$implicit;w(1),wt(e.user_id)}}function iht(t,n){if(1&t&&(_(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),O(6,"Provider Response"),x()()(),_(7,"div")(8,"pre",28)(9,"small"),O(10),x()()()()()()),2&t){const e=L().$implicit;w(10),wt(e.provider_response)}}function rht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",19),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),te(3,eht,1,0,"div",20),te(4,tht,1,0,"div",21),x(),O(5),x(),te(6,nht,2,1,"td",13),_(7,"td"),O(8),x(),_(9,"td"),O(10),x(),_(11,"td"),O(12),x(),_(13,"td"),O(14),x(),_(15,"td"),O(16),x()(),te(17,iht,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.purchasesRowsOpen[e]),w(1),S("ngIf",r.purchasesRowsOpen[e]),w(1),bn(" ",i.transaction_id," "),w(1),S("ngIf",!r.userId),w(2),wt(i.product_id),w(2),wt(r.getStoreText(i.store)),w(2),wt(i.purchase_time),w(2),wt(i.create_time),w(2),wt(r.getRefundText(i.refund_time)),w(1),S("ngIf",r.purchasesRowsOpen[e])}}function oht(t,n){1&t&&(_(0,"tr")(1,"td",29),O(2,"No purchases were found."),x()())}let cve=(()=>{class t{route;consoleService;purchases=[];purchasesRowsOpen=[];error="";nextCursor="";prevCursor="";userId;limit=100;transactionId;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){const e=this.route?.parent?.snapshot?.paramMap?.get("id")??"";e&&(this.userId=e),this.route.data.subscribe(i=>{this.purchases=i[0].validated_purchases,this.nextCursor=i[0].cursor,this.prevCursor=i[0].prev_cursor})}ngOnChanges(e){e.transactionId.firstChange||(this.transactionId?(this.transactionId=this.transactionId.trim(),this.consoleService.getPurchase("",this.transactionId).subscribe(i=>{this.purchases=[i]},i=>{this.error=i})):""===this.transactionId&&this.loadData(""))}loadData(e){this.error="",this.consoleService.listPurchases("",this.userId,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(zy[e])}getRefundText(e){return"1970-01-01T00:00:00Z"===e?"":e}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["app-purchases"]],inputs:{transactionId:["transaction_id","transactionId"]},features:[ei],decls:32,vars:7,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[4,"ngIf"],[2,"width","180px"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","6"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","6",1,"text-muted"]],template:function(i,r){1&i&&(te(0,Qdt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadData("")}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadData(r.prevCursor)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadData(r.nextCursor)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),O(17,"Transaction ID"),x(),te(18,Zdt,2,0,"th",13),_(19,"th"),O(20,"Product ID"),x(),_(21,"th"),O(22,"Store"),x(),_(23,"th",14),O(24,"Purchase Time"),x(),_(25,"th",14),O(26,"Create Time"),x(),_(27,"th",14),O(28,"Refund Time"),x()()(),_(29,"tbody"),te(30,rht,18,10,"ng-template",15),te(31,oht,3,0,"tr",13),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.purchases.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(8),S("ngIf",!r.userId),w(12),S("ngForOf",r.purchases),w(1),S("ngIf",0===r.purchases.length))},dependencies:[Un,xn,yo]})}return t})(),uve=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent?.paramMap?.get("id")??"";return this.consoleService.listPurchases("",r,100,"")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sht(t,n){1&t&&(_(0,"span"),O(1,"Filter by type"),x())}function aht(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),wt(e.activeFilter)}}function lht(t,n){if(1&t){const e=_t();_(0,"button",39),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeFilter=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),wt(e)}}function cht(t,n){if(1&t&&(_(0,"h6"),O(1),x()),2&t){const e=L();w(1),bn("Showing results for chat room label: ",e.f1.label.value,"")}}const uht=function(t){return["/groups",t]};function dht(t,n){if(1&t&&(_(0,"h6"),O(1,"Showing results for group ID: "),_(2,"a",40),O(3),x()()),2&t){const e=L();w(2),S("routerLink",Zi(2,uht,e.route.snapshot.queryParamMap.get("group_id"))),w(1),wt(e.f2.group_id.value)}}const dve=function(t){return["/accounts",t]};function hht(t,n){if(1&t&&(_(0,"h6"),O(1,"Showing results for user IDs: "),_(2,"a",40),O(3),x(),O(4,", "),_(5,"a",40),O(6),x()()),2&t){const e=L();w(2),S("routerLink",Zi(4,dve,e.route.snapshot.queryParamMap.get("user_id_one"))),w(1),wt(e.f3.user_id_one.value),w(2),S("routerLink",Zi(6,dve,e.route.snapshot.queryParamMap.get("user_id_two"))),w(1),wt(e.f3.user_id_two.value)}}function fht(t,n){if(1&t&&(_(0,"ngb-alert",41),xe(1,"img",42),_(2,"h6",43),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying messages: ",e.error,"")}}function pht(t,n){1&t&&(_(0,"th",44),O(1,"Remove"),x())}function mht(t,n){if(1&t&&(_(0,"tr")(1,"td",45),O(2,"No messages found."),x()()),2&t){const e=L();w(1),ft("colspan",e.deleteAllowed()?6:5)}}function ght(t,n){1&t&&xe(0,"div",54)}function vht(t,n){1&t&&xe(0,"div",55)}function yht(t,n){1&t&&xe(0,"td")}function _ht(t,n){if(1&t){const e=_t();_(0,"td",56)(1,"button",57),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteMessage(r,s,a))}),O(2,"Delete"),x()()}}function bht(t,n){if(1&t&&(_(0,"tr",58)(1,"td"),O(2),x()()),2&t){const e=L().$implicit,i=L();w(1),ft("colspan",i.deleteAllowed()?6:5),w(1),bn(" ",e.content," ")}}function xht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td"),O(2),x(),_(3,"td",46),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",47),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(6),x(),_(7,"td",48)(8,"div",49),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),te(9,ght,1,0,"div",50),te(10,vht,1,0,"div",51),x(),O(11),x(),_(12,"td"),O(13),x(),te(14,yht,1,0,"td",3),te(15,_ht,3,0,"td",52),x(),te(16,bht,3,2,"tr",53)}if(2&t){const e=n.$implicit,i=n.index,r=L();w(2),wt(e.code),w(2),wt(e.sender_id),w(2),wt(e.username),w(3),S("ngIf",!r.messageStatesOpen[i]),w(1),S("ngIf",r.messageStatesOpen[i]),w(1),bn(" ",e.content," "),w(2),wt(e.create_time),w(1),S("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),w(1),S("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),w(1),S("ngIf",r.messageStatesOpen[i])}}function wht(t,n){if(1&t&&(_(0,"ngb-alert",59),xe(1,"img",42),_(2,"h6",43),O(3,"Failed to delete data."),x(),_(4,"p",60),O(5),x()()),2&t){const e=L();S("dismissible",!1),w(5),wt(e.deleteError)}}function Cht(t,n){if(1&t){const e=_t();_(0,"ngb-alert",61),ke("close",function(){return ze(e),Ge(L().deleteSuccess=!1)}),xe(1,"img",62),_(2,"h6",43),O(3),x()()}if(2&t){const e=L();S("dismissible",!0),w(3),Af("",e.totalDeleted," messages ",e.totalDeleted>0?"successfully":""," deleted.")}}function Sht(t,n){if(1&t){const e=_t();_(0,"button",63),ke("click",function(){return ze(e),Ge(L().deleteData())}),O(1,"Delete messages"),x()}2&t&&S("disabled",L().deleting)}let kht=(()=>{class t{route;router;consoleService;authService;formBuilder;modalService;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";messages=[];nextCursor="";searchForm1;searchForm2;searchForm3;type;confirmDeleteForm;deleteError="";deleteSuccess=!1;deleting=!1;totalDeleted=0;activeFilter="";filters=["Chat Room","Group Chat","Direct Chat"];messageStatesOpen=[];constructor(e,i,r,o,s,a,l){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.deleteConfirmService=l,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",qr.compose([qr.required,qr.pattern("DELETE")])],numberValueControl:{title:"Choose how many days to retain:",id:"days"},days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");const i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2===this.type||3===this.type||4===this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}deleteData(){this.deleteConfirmService.openDeleteConfirmModal(e=>{this.deleteError="",this.deleting=!0;const i=new Date,r=Number(e.days);i.setDate(i.getDate()-r),this.consoleService.deleteChannelMessages("",i.toISOString(),null).subscribe(o=>{this.totalDeleted=Number(o.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const s=this.route.snapshot.queryParamMap,a=s.get("type");let l=s.get("label");l||(l="0");const c=s.get("group_id"),u=s.get("user_id_one"),d=s.get("user_id_two");let h=s.get("cursor");h||(h=""),a&&this.updateMessages(Number(a),l,c,u,d,h)},o=>{this.deleting=!1,this.deleteError=o})},this.confirmDeleteForm,"Delete messages","Are you sure you want to delete all messages before retain days?")}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(m2),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:68,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Chat Messages"),x(),_(2,"div",1)(3,"button",2),te(4,sht,2,0,"span",3),te(5,aht,2,1,"span",3),x(),_(6,"div",4),te(7,lht,2,1,"button",5),x()(),_(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),xe(13,"input",11),_(14,"div",12)(15,"div",13)(16,"button",14),ke("click",function(){return r.type=2,r.search(0)}),O(17,"Search"),x()()()()(),_(18,"form",9)(19,"div",10),xe(20,"input",15),_(21,"div",12)(22,"div",13)(23,"button",14),ke("click",function(){return r.type=3,r.search(0)}),O(24,"Search "),x()()()()(),_(25,"form",9)(26,"div",10),xe(27,"input",16),_(28,"div",12)(29,"span",17),ke("click",function(){return r.f3.user_id_one.setValue(r.systemUserId)}),xe(30,"img",18),x()(),xe(31,"input",19),_(32,"div",12)(33,"div",13)(34,"button",14),ke("click",function(){return r.type=4,r.search(0)}),O(35,"Search "),x()()()()()(),_(36,"div",20)(37,"div",21)(38,"button",22),ke("click",function(){return r.search(0)}),xe(39,"img",23),x(),_(40,"button",22),ke("click",function(){return r.search(1)}),xe(41,"img",24),x()()()()(),te(42,cht,2,1,"h6",3),te(43,dht,4,4,"h6",3),te(44,hht,7,8,"h6",3),te(45,fht,4,2,"ngb-alert",25),_(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),O(51,"Code"),x(),_(52,"th",30),O(53,"Sender ID"),x(),_(54,"th",31),O(55,"Username"),x(),_(56,"th"),O(57,"Content"),x(),_(58,"th",32),O(59,"Create Time"),x(),te(60,pht,2,0,"th",33),x()(),_(61,"tbody"),te(62,mht,3,1,"tr",3),te(63,xht,17,10,"ng-template",34),x()()(),te(64,wht,6,2,"ngb-alert",35),te(65,Cht,4,3,"ngb-alert",36),_(66,"div",37),te(67,Sht,2,1,"button",38),x()),2&i&&(w(4),S("ngIf",!r.activeFilter||""===r.activeFilter),w(1),S("ngIf",r.activeFilter&&""!==r.activeFilter),w(2),S("ngForOf",r.filters),w(4),S("hidden","Chat Room"!==r.activeFilter)("formGroup",r.searchForm1),w(7),S("hidden","Group Chat"!==r.activeFilter)("formGroup",r.searchForm2),w(7),S("hidden","Direct Chat"!==r.activeFilter)("formGroup",r.searchForm3),w(13),S("disabled",0===r.messages.length),w(2),S("disabled",""===r.nextCursor||null===r.nextCursor),w(2),S("ngIf",0!=r.messages.length&&""===r.error&&2==r.type),w(1),S("ngIf",0!=r.messages.length&&""===r.error&&3==r.type),w(1),S("ngIf",0!=r.messages.length&&""===r.error&&4==r.type),w(1),S("ngIf",r.error),w(15),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.messages.length),w(1),S("ngForOf",r.messages),w(1),S("ngIf",r.deleteError),w(1),S("ngIf",r.deleteSuccess),w(2),S("ngIf",r.deleteMessagesAllowed()))},dependencies:[Ru,Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})}return t})(),Dht=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));default:return Hn(null)}}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tht(t,n){if(1&t&&(_(0,"ngb-alert",16),xe(1,"img",17),_(2,"h6",18),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Eht(t,n){1&t&&xe(0,"div",23)}function Aht(t,n){1&t&&xe(0,"div",24)}function Mht(t,n){if(1&t&&(_(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),O(6,"Provider Response"),x()()(),_(7,"div")(8,"pre",28)(9,"small"),O(10),x()()(),_(11,"div",29)(12,"small")(13,"b"),O(14,"Provider Notification"),x()()(),_(15,"div")(16,"pre",28)(17,"small"),O(18),x()()()()()()),2&t){const e=L().$implicit;w(10),wt(e.provider_response),w(8),wt(e.provider_notification)}}function Oht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",19),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.subscriptionsRowOpen[o]=!s.subscriptionsRowOpen[o])}),te(3,Eht,1,0,"div",20),te(4,Aht,1,0,"div",21),x(),O(5),x(),_(6,"td"),O(7),x(),_(8,"td"),O(9),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x()(),te(18,Mht,19,2,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.subscriptionsRowOpen[e]),w(1),S("ngIf",r.subscriptionsRowOpen[e]),w(1),bn(" ",i.product_id," "),w(2),wt(i.original_transaction_id),w(2),wt(r.getStoreText(i.store)),w(2),wt(i.purchase_time),w(2),wt(i.expiry_time),w(2),wt(i.create_time),w(2),wt(r.getRefundText(i.refund_time)),w(1),S("ngIf",r.subscriptionsRowOpen[e])}}function Iht(t,n){1&t&&(_(0,"tr")(1,"td",30),O(2,"No subscriptions were found."),x()())}let hve=(()=>{class t{route;consoleService;subscriptions=[];subscriptionsRowOpen=[];error="";nextCursor="";prevCursor="";userId;limit=100;originalTransactionId;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){const e=this.route?.parent?.snapshot?.paramMap?.get("id")??"";e&&(this.userId=e),this.userId=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(i=>{this.subscriptions=i[0].validated_subscriptions,this.nextCursor=i[0].cursor,this.prevCursor=i[0].prev_cursor})}ngOnChanges(e){e.originalTransactionId.firstChange||(this.originalTransactionId?(this.originalTransactionId=this.originalTransactionId.trim(),this.consoleService.getSubscription("",this.originalTransactionId).subscribe(i=>{this.subscriptions=[i]},i=>{this.error=i})):""===this.originalTransactionId&&this.loadData(""))}loadData(e){this.error="",this.consoleService.listSubscriptions("",this.userId,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.subscriptionsRowOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(zy[e])}getRefundText(e){return"1970-01-01T00:00:00Z"===e?"":e}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["app-subscriptions"]],inputs:{originalTransactionId:["original_transaction_id","originalTransactionId"]},features:[ei],decls:33,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],[1,"pt-2"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(te(0,Tht,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadData("")}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadData(r.prevCursor)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadData(r.nextCursor)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),O(17,"Product ID"),x(),_(18,"th"),O(19,"Original Transaction ID"),x(),_(20,"th"),O(21,"Store"),x(),_(22,"th",13),O(23,"Purchase Time"),x(),_(24,"th",13),O(25,"Expiry Time"),x(),_(26,"th",13),O(27,"Create Time"),x(),_(28,"th",13),O(29,"Refund Time"),x()()(),_(30,"tbody"),te(31,Oht,19,10,"ng-template",14),te(32,Iht,3,0,"tr",15),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.subscriptions.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(21),S("ngForOf",r.subscriptions),w(1),S("ngIf",0===r.subscriptions.length))},dependencies:[Un,xn,yo]})}return t})(),fve=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent?.paramMap?.get("id")??"";return this.consoleService.listSubscriptions("",r,100,"")}static \u0275fac=function(i){return new(i||t)(xt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nht=(()=>{class t{formBuilder;transactionId;searchForm;constructor(e){this.formBuilder=e}ngOnInit(){this.searchForm=this.formBuilder.group({transaction_id:[""]})}search(){this.transactionId=this.f.transaction_id.value}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:12,vars:2,consts:[[1,"pb-1"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","transaction_id","placeholder","Search by transaction_id (purchaseToken for Play Store purchases)",1,"form-control","border-right-0"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[3,"transaction_id"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Purchases"),x(),_(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4),ke("ngSubmit",function(){return r.search()}),_(6,"div",5),xe(7,"input",6),_(8,"div",7)(9,"button",8),ke("click",function(){return r.search()}),O(10,"Search"),x()()()()()()(),xe(11,"app-purchases",9)),2&i&&(w(5),S("formGroup",r.searchForm),w(6),S("transaction_id",r.transactionId))},dependencies:[fa,Us,da,ha,Ts,zs,cve],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Fht=(()=>{class t{formBuilder;originalTransactionId;searchForm;constructor(e){this.formBuilder=e}ngOnInit(){this.searchForm=this.formBuilder.group({original_transaction_id:[""]})}search(){this.originalTransactionId=this.f.original_transaction_id.value}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:13,vars:2,consts:[[1,"pb-1"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","original_transaction_id","placeholder","Search by original_transaction_id (purchaseToken for Play Store purchases)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[3,"original_transaction_id"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Subscriptions"),x(),_(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4),ke("ngSubmit",function(){return r.search()}),_(6,"div",5),xe(7,"input",6),_(8,"div",7)(9,"div",8)(10,"button",9),ke("click",function(){return r.search()}),O(11,"Search"),x()()()()()()()(),xe(12,"app-subscriptions",10)),2&i&&(w(5),S("formGroup",r.searchForm),w(7),S("original_transaction_id",r.originalTransactionId))},dependencies:[fa,Us,da,ha,Ts,zs,hve],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})();function pve(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function mve(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){pve(o,i,r,s,a,"next",l)}function a(l){pve(o,i,r,s,a,"throw",l)}s(void 0)})}}var dL=ue(3259);const Pht=["qrcElement"];let Rht=(()=>{class t{constructor(e,i){this.renderer=e,this.sanitizer=i,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new ot,this.context=null}ngOnChanges(){var e=this;return mve(function*(){yield e.createQRCode()})()}isValidQrCodeText(e){return!1===this.allowEmptyString?!(typeof e>"u"||""===e||"null"===e||null===e):!(typeof e>"u")}toDataURL(e){return new Promise((i,r)=>{(0,dL.hz)(this.qrdata,e,(o,s)=>{o?r(o):i(s)})})}toCanvas(e,i){return new Promise((r,o)=>{(0,dL.rT)(e,this.qrdata,i,s=>{s?o(s):r("success")})})}toSVG(e){return new Promise((i,r)=>{(0,dL.toString)(this.qrdata,e,(o,s)=>{o?r(o):i(s)})})}renderElement(e){for(const i of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,i);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){var e=this;return mve(function*(){e.version&&e.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),e.version=40):e.version&&e.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),e.version=1):void 0!==e.version&&isNaN(e.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),e.version=void 0);try{if(!e.isValidQrCodeText(e.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");e.isValidQrCodeText(e.qrdata)&&""===e.qrdata&&(e.qrdata=" ");const i={color:{dark:e.colorDark,light:e.colorLight},errorCorrectionLevel:e.errorCorrectionLevel,margin:e.margin,scale:e.scale,version:e.version,width:e.width},r=e.imageSrc,o=e.imageHeight||40,s=e.imageWidth||40;switch(e.elementType){case"canvas":const a=e.renderer.createElement("canvas");e.context=a.getContext("2d"),e.toCanvas(a,i).then(()=>{if(e.ariaLabel&&e.renderer.setAttribute(a,"aria-label",`${e.ariaLabel}`),e.title&&e.renderer.setAttribute(a,"title",`${e.title}`),r&&e.context){e.centerImage=new Image(s,o),r!==e.centerImage.src&&(e.centerImage.src=r),o!==e.centerImage.height&&(e.centerImage.height=o),s!==e.centerImage.width&&(e.centerImage.width=s);const u=e.centerImage;u&&(u.onload=()=>{e.context?.drawImage(u,a.width/2-s/2,a.height/2-o/2,s,o)})}e.renderElement(a),e.emitQRCodeURL(a)}).catch(u=>{console.error("[angularx-qrcode] canvas error:",u)});break;case"svg":const l=e.renderer.createElement("div");e.toSVG(i).then(u=>{e.renderer.setProperty(l,"innerHTML",u);const d=l.firstChild;e.renderer.setAttribute(d,"height",`${e.width}`),e.renderer.setAttribute(d,"width",`${e.width}`),e.renderElement(d),e.emitQRCodeURL(d)}).catch(u=>{console.error("[angularx-qrcode] svg error:",u)});break;default:const c=e.renderer.createElement("img");e.toDataURL(i).then(u=>{e.alt&&c.setAttribute("alt",e.alt),e.ariaLabel&&c.setAttribute("aria-label",e.ariaLabel),c.setAttribute("src",u),e.title&&c.setAttribute("title",e.title),e.renderElement(c),e.emitQRCodeURL(c)}).catch(u=>{console.error("[angularx-qrcode] img/url error:",u)})}}catch(i){console.error("[angularx-qrcode] Error generating QR Code:",i.message)}})()}emitQRCodeURL(e){const i=e.constructor.name;if(i===SVGSVGElement.name){const s=new Blob([e.outerHTML],{type:"image/svg+xml"}),a=URL.createObjectURL(s),l=this.sanitizer.bypassSecurityTrustUrl(a);return void this.qrCodeURL.emit(l)}let r="";i===HTMLCanvasElement.name&&(r=e.toDataURL("image/png")),i===HTMLImageElement.name&&(r=e.src),fetch(r).then(o=>o.blob()).then(o=>URL.createObjectURL(o)).then(o=>this.sanitizer.bypassSecurityTrustUrl(o)).then(o=>{this.qrCodeURL.emit(o)}).catch(o=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+o)})}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(wM))},t.\u0275cmp=Vt({type:t,selectors:[["qrcode"]],viewQuery:function(e,i){if(1&e&&wo(Pht,7),2&e){let r;Tn(r=En())&&(i.qrcElement=r.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[ei],decls:2,vars:2,consts:[["qrcElement",""]],template:function(e,i){1&e&&xe(0,"div",null,0),2&e&&Au(i.cssClass)},encapsulation:2,changeDetection:0}),t})(),jht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();function Lht(t,n){if(1&t&&(_(0,"ngb-alert",6)(1,"h6",7),O(2),x()()),2&t){const e=L();S("dismissible",!1),w(2),wt(e.error)}}const Bht=function(t){return{"was-validated":t}},$ht=function(t){return{"is-invalid":t}};function Vht(t,n){if(1&t){const e=_t();Cl(0),_(1,"div")(2,"h5",8),O(3,"Instructions"),x(),_(4,"form",9),ke("ngSubmit",function(){return ze(e),Ge(L().onSubmit())}),_(5,"ol")(6,"div",10)(7,"li"),O(8,"Install an Authenticator app and use it to scan the QR code. "),_(9,"div"),O(10," e.g. "),_(11,"a",11),O(12,"Google Authenticator"),x(),O(13," or "),_(14,"a",12),O(15,"Authy"),x(),O(16,". "),x()()(),_(17,"div",10)(18,"li"),O(19,"Scan the QR code with your authenticator app. "),xe(20,"qrcode",13),x()(),_(21,"div",10)(22,"li")(23,"label",14),O(24,"Insert 6-digit code from your authenticator app."),x(),xe(25,"input",15),x()(),_(26,"button",16),O(27,"Verify"),x()()()(),Sl()}if(2&t){const e=L();w(4),S("formGroup",e.codeForm)("ngClass",Zi(7,Bht,e.submitted)),w(16),S("qrdata",e.mfaUrl())("width",256)("errorCorrectionLevel","M"),w(5),S("ngClass",Zi(9,$ht,e.f.code.dirty&&e.f.code.errors)),w(1),S("disabled",!e.codeForm.valid||e.submitted)}}function Hht(t,n){1&t&&(_(0,"div",20),O(1," Multi-factor authentication has been successfully set up. Please download the recovery codes and keep them in a safe place. "),x())}function Uht(t,n){if(1&t){const e=_t();_(0,"div"),te(1,Hht,2,0,"div",17),_(2,"button",18),ke("click",function(){return ze(e),Ge(L().downloadRecoveryCodes())}),O(3,"Download Recovery Codes"),x(),_(4,"button",19),ke("click",function(){return ze(e),Ge(L().router.navigateByUrl("/"))}),O(5,"Continue to Dashboard"),x()()}if(2&t){const e=L();w(1),S("ngIf",!e.error&&e.recoveryCodes),w(3),S("disabled",!e.downloadClicked)}}let gve=(()=>{class t{formBuilder;consoleService;authService;router;required;codeForm;mfaCode;submitted=!1;downloadClicked=!1;recoveryCodes;error="";constructor(e,i,r,o){this.formBuilder=e,this.consoleService=i,this.authService=r,this.router=o}ngOnInit(){this.codeForm=this.formBuilder.group({code:["",qr.required]}),this.mfaCode=this.authService.mfa}onSubmit(){this.submitted=!0,this.error="",!this.codeForm.invalid&&this.authService.mfaSet(this.f.code.value).subscribe(e=>{this.codeForm.reset(),this.submitted=!1,this.recoveryCodes=e.recovery_codes},e=>{this.error=e,this.submitted=!1})}mfaUrl(){return decodeURIComponent(this.mfaCode.mfa_url)}get f(){return this.codeForm.controls}downloadRecoveryCodes(){const e=this.recoveryCodes.map((r,o)=>o%2==0?"\n"+r:r),i=document.createElement("a");i.href=window.URL.createObjectURL(new Blob([e.join(" ").trim()],{type:"text/plain"})),i.download="nakama_mfa_recovery_codes.txt",i.click(),window.URL.revokeObjectURL(i.href),this.downloadClicked=!0}static \u0275fac=function(i){return new(i||t)(ge(HH),ge(Ai),ge(Ho),ge(yr))};static \u0275cmp=Vt({type:t,selectors:[["mfa-setup"]],inputs:{required:"required"},decls:8,vars:3,consts:[[1,"login-title","mb-4"],[1,"container"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row"],[4,"ngIf","ngIfElse"],["recoveryCodesBlock",""],["type","danger",1,"mb-3",3,"dismissible"],[1,"mr-2","d-inline","font-weight-bold"],[2,"font-size","23px"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group"],["href","https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2","target","blank","rel","noopener noreferrer"],["href","https://authy.com/download/","target","blank","rel","noopener noreferrer"],[3,"qrdata","width","errorCorrectionLevel"],["for","code",1,"d-inline"],["type","code","id","code","formControlName","code","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["class","alert alert-success mb-4","role","alert",4,"ngIf"],[1,"btn","btn-primary","btn-lg","btn-block","mb-4",3,"click"],["href","/",1,"btn","btn-outline-primary","btn-lg","btn-block",3,"disabled","click"],["role","alert",1,"alert","alert-success","mb-4"]],template:function(i,r){if(1&i&&(_(0,"h3",0),O(1,"Setup Multi-Factor Authentication"),x(),_(2,"div",1),te(3,Lht,3,2,"ngb-alert",2),_(4,"div",3),te(5,Vht,28,11,"ng-container",4),te(6,Uht,6,2,"ng-template",null,5,Xo),x()()),2&i){const o=sa(7);w(3),S("ngIf",r.error),w(2),S("ngIf",!r.recoveryCodes)("ngIfElse",o)}},dependencies:[Of,xn,yo,fa,Us,da,ha,qh,Ts,zs,Rht]})}return t})();const zht=[{path:"",component:n4e,canActivate:[x3e],canActivateChild:[i4e],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:fVe,resolve:[pVe]},{path:"config",component:WVe,resolve:[qVe]},{path:"users",component:ZVe,resolve:[eHe]},{path:"modules",component:pHe,resolve:[mHe]},{path:"storage",component:SHe,resolve:[kHe,DHe],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Rlt,resolve:[jlt],pathMatch:"full"},{path:"leaderboards",component:qlt,resolve:[Ylt]},{path:"leaderboards/:id",component:Tdt,resolve:[Edt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:Idt,resolve:[]},{path:"records",component:Vdt,resolve:[Hdt]}]},{path:"matches",component:idt,resolve:[rdt,odt]},{path:"groups",component:hdt,resolve:[fdt]},{path:"groups/:id",component:bdt,resolve:[xdt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:vut,resolve:[]},{path:"members",component:jut,resolve:[Lut],runGuardsAndResolvers:"always"}]},{path:"accounts",component:nct,resolve:[ict]},{path:"accounts/:id",component:gct,resolve:[vct],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:Cct,resolve:[]},{path:"authentication",component:Ect,resolve:[]},{path:"wallet",component:$ct,resolve:[Vct]},{path:"friends",component:Kct,resolve:[Qct]},{path:"groups",component:cut,resolve:[uut]},{path:"purchases",component:cve,resolve:[uve]},{path:"subscriptions",component:hve,resolve:[fve]}]},{path:"apiexplorer",component:Jdt,resolve:[Kdt]},{path:"chat",component:kht,resolve:[Dht]},{path:"purchases",component:Nht,resolve:[uve]},{path:"subscriptions",component:Fht,resolve:[fve]},{path:"settings/mfa",component:gve,resolve:[]}]},{path:"login",component:_3e,canActivate:[b3e],children:[{path:"mfa",component:gve,resolve:[]}]},{path:"**",redirectTo:""}];let Ght=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ii({type:t});static \u0275inj=Di({imports:[$V.forRoot(zht,{useHash:!0}),$V]})}return t})(),Wht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Vt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"router-outlet")},dependencies:[Vf]})}return t})();new class Yht extends Vd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Jht=1;const Kht=Promise.resolve(),kT={};function vve(t){return t in kT&&(delete kT[t],!0)}const yve={setImmediate(t){const n=Jht++;return kT[n]=!0,Kht.then(()=>vve(n)&&t()),n},clearImmediate(t){vve(t)}};new class Zht extends Vd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=yve.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(yve.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Aft=new Yn("ng-select-selection-model");function Mft(){return new Oft}class Oft{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}let Ift=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[{provide:Aft,useValue:Mft}],imports:[If]}),t})(),Nft=(()=>{class t{authenticationService;constructor(e){this.authenticationService=e}intercept(e,i){const r=this.authenticationService.session;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}static \u0275fac=function(i){return new(i||t)(xt(Ho))};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),Fft=(()=>{class t{authenticationService;router;constructor(e,i){this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Jl(r=>{if(401===r.status)this.authenticationService.logout().subscribe({next:()=>{this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}});else{if(403===r.status)return Rf(r);r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`)}return Rf(r.error.message||r.statusText)}))}static \u0275fac=function(i){return new(i||t)(xt(Ho),xt(yr))};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),Pft=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ii({type:t,bootstrap:[Wht]});static \u0275inj=Di({providers:[p3e,Lz,{provide:XC,useValue:{host:document.location.origin,timeout:15e3}},{provide:X3,useClass:Nft,multi:!0},{provide:X3,useClass:Fft,multi:!0}],imports:[EVe,Ght,bM,zDe,d3e,WPe,W9e,UMe.forRoot({apiKey:"dHl7FTjJ9icepBjEdOCcyMFQYL1BBiQO",debug:!1,loadOnInitialization:!0}),GDe,$Me,BMe,Ift,jht]})}return t})();jSe().bootstrapModule(Pft).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},5343:(Et,Xe)=>{"use strict";Xe.byteLength=function we(T){var I=Se(T),Ae=I[1];return 3*(I[0]+Ae)/4-Ae},Xe.toByteArray=function K(T){var I,Zt,Z=Se(T),Ae=Z[0],Ue=Z[1],ut=new de(function se(T,I,Z){return 3*(I+Z)/4-Z}(0,Ae,Ue)),ht=0,yt=Ue>0?Ae-4:Ae;for(Zt=0;Zt>16&255,ut[ht++]=I>>8&255,ut[ht++]=255&I;return 2===Ue&&(I=be[T.charCodeAt(Zt)]<<2|be[T.charCodeAt(Zt+1)]>>4,ut[ht++]=255&I),1===Ue&&(I=be[T.charCodeAt(Zt)]<<10|be[T.charCodeAt(Zt+1)]<<4|be[T.charCodeAt(Zt+2)]>>2,ut[ht++]=I>>8&255,ut[ht++]=255&I),ut},Xe.fromByteArray=function k(T){for(var I,Z=T.length,Ae=Z%3,Ue=[],ht=0,yt=Z-Ae;htyt?yt:ht+16383));return 1===Ae?Ue.push(ue[(I=T[Z-1])>>2]+ue[I<<4&63]+"=="):2===Ae&&Ue.push(ue[(I=(T[Z-2]<<8)+T[Z-1])>>10]+ue[I>>4&63]+ue[I<<2&63]+"="),Ue.join("")};for(var ue=[],be=[],de=typeof Uint8Array<"u"?Uint8Array:Array,ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=0,ee=ye.length;he0)throw new Error("Invalid string. Length must be a multiple of 4");var Z=T.indexOf("=");return-1===Z&&(Z=I),[Z,Z===I?0:4-Z%4]}function re(T){return ue[T>>18&63]+ue[T>>12&63]+ue[T>>6&63]+ue[63&T]}function ie(T,I,Z){for(var Ue=[],ut=I;ut{"use strict";var de=ue(5343),ye=ue(8461),he="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Xe.lW=se,Xe.h2=50;var ee=2147483647;function we(Ne){if(Ne>ee)throw new RangeError('The value "'+Ne+'" is invalid for option "size"');var Y=new Uint8Array(Ne);return Object.setPrototypeOf(Y,se.prototype),Y}function se(Ne,Y,ne){if("number"==typeof Ne){if("string"==typeof Y)throw new TypeError('The "string" argument must be of type string. Received type number');return k(Ne)}return K(Ne,Y,ne)}function K(Ne,Y,ne){if("string"==typeof Ne)return function T(Ne,Y){if(("string"!=typeof Y||""===Y)&&(Y="utf8"),!se.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var ne=0|yt(Ne,Y),Le=we(ne),it=Le.write(Ne,Y);return it!==ne&&(Le=Le.slice(0,it)),Le}(Ne,Y);if(ArrayBuffer.isView(Ne))return function Z(Ne){if(wa(Ne,Uint8Array)){var Y=new Uint8Array(Ne);return Ae(Y.buffer,Y.byteOffset,Y.byteLength)}return I(Ne)}(Ne);if(null==Ne)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne);if(wa(Ne,ArrayBuffer)||Ne&&wa(Ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(wa(Ne,SharedArrayBuffer)||Ne&&wa(Ne.buffer,SharedArrayBuffer)))return Ae(Ne,Y,ne);if("number"==typeof Ne)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=Ne.valueOf&&Ne.valueOf();if(null!=Le&&Le!==Ne)return se.from(Le,Y,ne);var it=function Ue(Ne){if(se.isBuffer(Ne)){var Y=0|ut(Ne.length),ne=we(Y);return 0===ne.length||Ne.copy(ne,0,0,Y),ne}return void 0!==Ne.length?"number"!=typeof Ne.length||ho(Ne.length)?we(0):I(Ne):"Buffer"===Ne.type&&Array.isArray(Ne.data)?I(Ne.data):void 0}(Ne);if(it)return it;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Ne[Symbol.toPrimitive])return se.from(Ne[Symbol.toPrimitive]("string"),Y,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne)}function re(Ne){if("number"!=typeof Ne)throw new TypeError('"size" argument must be of type number');if(Ne<0)throw new RangeError('The value "'+Ne+'" is invalid for option "size"')}function k(Ne){return re(Ne),we(Ne<0?0:0|ut(Ne))}function I(Ne){for(var Y=Ne.length<0?0:0|ut(Ne.length),ne=we(Y),Le=0;Le=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return 0|Ne}function yt(Ne,Y){if(se.isBuffer(Ne))return Ne.length;if(ArrayBuffer.isView(Ne)||wa(Ne,ArrayBuffer))return Ne.byteLength;if("string"!=typeof Ne)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ne);var ne=Ne.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===ne)return 0;for(var it=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return ds(Ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ne;case"hex":return ne>>>1;case"base64":return Cu(Ne).length;default:if(it)return Le?-1:ds(Ne).length;Y=(""+Y).toLowerCase(),it=!0}}function Zt(Ne,Y,ne){var Le=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===ne||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0)<=(Y>>>=0))return"";for(Ne||(Ne="utf8");;)switch(Ne){case"hex":return cc(this,Y,ne);case"utf8":case"utf-8":return $t(this,Y,ne);case"ascii":return Zn(this,Y,ne);case"latin1":case"binary":return yl(this,Y,ne);case"base64":return fi(this,Y,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return uo(this,Y,ne);default:if(Le)throw new TypeError("Unknown encoding: "+Ne);Ne=(Ne+"").toLowerCase(),Le=!0}}function Wt(Ne,Y,ne){var Le=Ne[Y];Ne[Y]=Ne[ne],Ne[ne]=Le}function Qt(Ne,Y,ne,Le,it){if(0===Ne.length)return-1;if("string"==typeof ne?(Le=ne,ne=0):ne>2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ho(ne=+ne)&&(ne=it?0:Ne.length-1),ne<0&&(ne=Ne.length+ne),ne>=Ne.length){if(it)return-1;ne=Ne.length-1}else if(ne<0){if(!it)return-1;ne=0}if("string"==typeof Y&&(Y=se.from(Y,Le)),se.isBuffer(Y))return 0===Y.length?-1:An(Ne,Y,ne,Le,it);if("number"==typeof Y)return Y&=255,"function"==typeof Uint8Array.prototype.indexOf?it?Uint8Array.prototype.indexOf.call(Ne,Y,ne):Uint8Array.prototype.lastIndexOf.call(Ne,Y,ne):An(Ne,[Y],ne,Le,it);throw new TypeError("val must be string, number or Buffer")}function An(Ne,Y,ne,Le,it){var at,qt=1,nn=Ne.length,ar=Y.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(Ne.length<2||Y.length<2)return-1;qt=2,nn/=2,ar/=2,ne/=2}function M(vn,_e){return 1===qt?vn[_e]:vn.readUInt16BE(_e*qt)}if(it){var Mt=-1;for(at=ne;atnn&&(ne=nn-ar),at=ne;at>=0;at--){for(var Yt=!0,zt=0;ztit&&(Le=it):Le=it;var qt=Y.length;Le>qt/2&&(Le=qt/2);for(var nn=0;nn>8,qt.push(ne%256),qt.push(Le);return qt}(Y,Ne.length-ne),Ne,ne,Le)}function fi(Ne,Y,ne){return de.fromByteArray(0===Y&&ne===Ne.length?Ne:Ne.slice(Y,ne))}function $t(Ne,Y,ne){ne=Math.min(Ne.length,ne);for(var Le=[],it=Y;it239?4:qt>223?3:qt>191?2:1;if(it+ar<=ne)switch(ar){case 1:qt<128&&(nn=qt);break;case 2:128==(192&(M=Ne[it+1]))&&(Yt=(31&qt)<<6|63&M)>127&&(nn=Yt);break;case 3:at=Ne[it+2],128==(192&(M=Ne[it+1]))&&128==(192&at)&&(Yt=(15&qt)<<12|(63&M)<<6|63&at)>2047&&(Yt<55296||Yt>57343)&&(nn=Yt);break;case 4:at=Ne[it+2],Mt=Ne[it+3],128==(192&(M=Ne[it+1]))&&128==(192&at)&&128==(192&Mt)&&(Yt=(15&qt)<<18|(63&M)<<12|(63&at)<<6|63&Mt)>65535&&Yt<1114112&&(nn=Yt)}null===nn?(nn=65533,ar=1):nn>65535&&(Le.push((nn-=65536)>>>10&1023|55296),nn=56320|1023&nn),Le.push(nn),it+=ar}return function tl(Ne){var Y=Ne.length;if(Y<=ta)return String.fromCharCode.apply(String,Ne);for(var ne="",Le=0;Leit.length?se.from(nn).copy(it,qt):Uint8Array.prototype.set.call(it,nn,qt);else{if(!se.isBuffer(nn))throw new TypeError('"list" argument must be an Array of Buffers');nn.copy(it,qt)}qt+=nn.length}return it},se.byteLength=yt,se.prototype._isBuffer=!0,se.prototype.swap16=function(){var Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(Y+=" ... "),""},he&&(se.prototype[he]=se.prototype.inspect),se.prototype.compare=function(Y,ne,Le,it,qt){if(wa(Y,Uint8Array)&&(Y=se.from(Y,Y.offset,Y.byteLength)),!se.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(void 0===ne&&(ne=0),void 0===Le&&(Le=Y?Y.length:0),void 0===it&&(it=0),void 0===qt&&(qt=this.length),ne<0||Le>Y.length||it<0||qt>this.length)throw new RangeError("out of range index");if(it>=qt&&ne>=Le)return 0;if(it>=qt)return-1;if(ne>=Le)return 1;if(this===Y)return 0;for(var nn=(qt>>>=0)-(it>>>=0),ar=(Le>>>=0)-(ne>>>=0),M=Math.min(nn,ar),at=this.slice(it,qt),Mt=Y.slice(ne,Le),Yt=0;Yt>>=0,isFinite(Le)?(Le>>>=0,void 0===it&&(it="utf8")):(it=Le,Le=void 0)}var qt=this.length-ne;if((void 0===Le||Le>qt)&&(Le=qt),Y.length>0&&(Le<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");for(var nn=!1;;)switch(it){case"hex":return Cn(this,Y,ne,Le);case"utf8":case"utf-8":return Sn(this,Y,ne,Le);case"ascii":case"latin1":case"binary":return mi(this,Y,ne,Le);case"base64":return fn(this,Y,ne,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qn(this,Y,ne,Le);default:if(nn)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),nn=!0}},se.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ta=4096;function Zn(Ne,Y,ne){var Le="";ne=Math.min(Ne.length,ne);for(var it=Y;itLe)&&(ne=Le);for(var it="",qt=Y;qtne)throw new RangeError("Trying to access beyond buffer length")}function Gr(Ne,Y,ne,Le,it,qt){if(!se.isBuffer(Ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>it||YNe.length)throw new RangeError("Index out of range")}function Ss(Ne,Y,ne,Le,it,qt){if(ne+Le>Ne.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function Wr(Ne,Y,ne,Le,it){return Y=+Y,ne>>>=0,it||Ss(Ne,0,ne,4),ye.write(Ne,Y,ne,Le,23,4),ne+4}function na(Ne,Y,ne,Le,it){return Y=+Y,ne>>>=0,it||Ss(Ne,0,ne,8),ye.write(Ne,Y,ne,Le,52,8),ne+8}se.prototype.slice=function(Y,ne){var Le=this.length;(Y=~~Y)<0?(Y+=Le)<0&&(Y=0):Y>Le&&(Y=Le),(ne=void 0===ne?Le:~~ne)<0?(ne+=Le)<0&&(ne=0):ne>Le&&(ne=Le),ne>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y],qt=1,nn=0;++nn>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y+--ne],qt=1;ne>0&&(qt*=256);)it+=this[Y+--ne]*qt;return it},se.prototype.readUint8=se.prototype.readUInt8=function(Y,ne){return Y>>>=0,ne||Kr(Y,1,this.length),this[Y]},se.prototype.readUint16LE=se.prototype.readUInt16LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,2,this.length),this[Y]|this[Y+1]<<8},se.prototype.readUint16BE=se.prototype.readUInt16BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,2,this.length),this[Y]<<8|this[Y+1]},se.prototype.readUint32LE=se.prototype.readUInt32LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},se.prototype.readUint32BE=se.prototype.readUInt32BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},se.prototype.readIntLE=function(Y,ne,Le){Y>>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y],qt=1,nn=0;++nn=(qt*=128)&&(it-=Math.pow(2,8*ne)),it},se.prototype.readIntBE=function(Y,ne,Le){Y>>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=ne,qt=1,nn=this[Y+--it];it>0&&(qt*=256);)nn+=this[Y+--it]*qt;return nn>=(qt*=128)&&(nn-=Math.pow(2,8*ne)),nn},se.prototype.readInt8=function(Y,ne){return Y>>>=0,ne||Kr(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},se.prototype.readInt16LE=function(Y,ne){Y>>>=0,ne||Kr(Y,2,this.length);var Le=this[Y]|this[Y+1]<<8;return 32768&Le?4294901760|Le:Le},se.prototype.readInt16BE=function(Y,ne){Y>>>=0,ne||Kr(Y,2,this.length);var Le=this[Y+1]|this[Y]<<8;return 32768&Le?4294901760|Le:Le},se.prototype.readInt32LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},se.prototype.readInt32BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},se.prototype.readFloatLE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),ye.read(this,Y,!0,23,4)},se.prototype.readFloatBE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),ye.read(this,Y,!1,23,4)},se.prototype.readDoubleLE=function(Y,ne){return Y>>>=0,ne||Kr(Y,8,this.length),ye.read(this,Y,!0,52,8)},se.prototype.readDoubleBE=function(Y,ne){return Y>>>=0,ne||Kr(Y,8,this.length),ye.read(this,Y,!1,52,8)},se.prototype.writeUintLE=se.prototype.writeUIntLE=function(Y,ne,Le,it){Y=+Y,ne>>>=0,Le>>>=0,it||Gr(this,Y,ne,Le,Math.pow(2,8*Le)-1,0);var nn=1,ar=0;for(this[ne]=255&Y;++ar>>=0,Le>>>=0,it||Gr(this,Y,ne,Le,Math.pow(2,8*Le)-1,0);var nn=Le-1,ar=1;for(this[ne+nn]=255&Y;--nn>=0&&(ar*=256);)this[ne+nn]=Y/ar&255;return ne+Le},se.prototype.writeUint8=se.prototype.writeUInt8=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,1,255,0),this[ne]=255&Y,ne+1},se.prototype.writeUint16LE=se.prototype.writeUInt16LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,65535,0),this[ne]=255&Y,this[ne+1]=Y>>>8,ne+2},se.prototype.writeUint16BE=se.prototype.writeUInt16BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,65535,0),this[ne]=Y>>>8,this[ne+1]=255&Y,ne+2},se.prototype.writeUint32LE=se.prototype.writeUInt32LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,4294967295,0),this[ne+3]=Y>>>24,this[ne+2]=Y>>>16,this[ne+1]=Y>>>8,this[ne]=255&Y,ne+4},se.prototype.writeUint32BE=se.prototype.writeUInt32BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,4294967295,0),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=255&Y,ne+4},se.prototype.writeIntLE=function(Y,ne,Le,it){if(Y=+Y,ne>>>=0,!it){var qt=Math.pow(2,8*Le-1);Gr(this,Y,ne,Le,qt-1,-qt)}var nn=0,ar=1,M=0;for(this[ne]=255&Y;++nn>0)-M&255;return ne+Le},se.prototype.writeIntBE=function(Y,ne,Le,it){if(Y=+Y,ne>>>=0,!it){var qt=Math.pow(2,8*Le-1);Gr(this,Y,ne,Le,qt-1,-qt)}var nn=Le-1,ar=1,M=0;for(this[ne+nn]=255&Y;--nn>=0&&(ar*=256);)Y<0&&0===M&&0!==this[ne+nn+1]&&(M=1),this[ne+nn]=(Y/ar>>0)-M&255;return ne+Le},se.prototype.writeInt8=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,1,127,-128),Y<0&&(Y=255+Y+1),this[ne]=255&Y,ne+1},se.prototype.writeInt16LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,32767,-32768),this[ne]=255&Y,this[ne+1]=Y>>>8,ne+2},se.prototype.writeInt16BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,32767,-32768),this[ne]=Y>>>8,this[ne+1]=255&Y,ne+2},se.prototype.writeInt32LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,2147483647,-2147483648),this[ne]=255&Y,this[ne+1]=Y>>>8,this[ne+2]=Y>>>16,this[ne+3]=Y>>>24,ne+4},se.prototype.writeInt32BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=255&Y,ne+4},se.prototype.writeFloatLE=function(Y,ne,Le){return Wr(this,Y,ne,!0,Le)},se.prototype.writeFloatBE=function(Y,ne,Le){return Wr(this,Y,ne,!1,Le)},se.prototype.writeDoubleLE=function(Y,ne,Le){return na(this,Y,ne,!0,Le)},se.prototype.writeDoubleBE=function(Y,ne,Le){return na(this,Y,ne,!1,Le)},se.prototype.copy=function(Y,ne,Le,it){if(!se.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!it&&0!==it&&(it=this.length),ne>=Y.length&&(ne=Y.length),ne||(ne=0),it>0&&it=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),Y.length-ne>>=0,Le=void 0===Le?this.length:Le>>>0,Y||(Y=0),"number"==typeof Y)for(nn=ne;nn55295&&ne<57344){if(!it){if(ne>56319){(Y-=3)>-1&&qt.push(239,191,189);continue}if(nn+1===Le){(Y-=3)>-1&&qt.push(239,191,189);continue}it=ne;continue}if(ne<56320){(Y-=3)>-1&&qt.push(239,191,189),it=ne;continue}ne=65536+(it-55296<<10|ne-56320)}else it&&(Y-=3)>-1&&qt.push(239,191,189);if(it=null,ne<128){if((Y-=1)<0)break;qt.push(ne)}else if(ne<2048){if((Y-=2)<0)break;qt.push(ne>>6|192,63&ne|128)}else if(ne<65536){if((Y-=3)<0)break;qt.push(ne>>12|224,ne>>6&63|128,63&ne|128)}else{if(!(ne<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;qt.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,63&ne|128)}}return qt}function Cu(Ne){return de.toByteArray(function Ls(Ne){if((Ne=(Ne=Ne.split("=")[0]).trim().replace(nl,"")).length<2)return"";for(;Ne.length%4!=0;)Ne+="=";return Ne}(Ne))}function il(Ne,Y,ne,Le){for(var it=0;it=Y.length||it>=Ne.length);++it)Y[it+ne]=Ne[it];return it}function wa(Ne,Y){return Ne instanceof Y||null!=Ne&&null!=Ne.constructor&&null!=Ne.constructor.name&&Ne.constructor.name===Y.name}function ho(Ne){return Ne!=Ne}var Hl=function(){for(var Ne="0123456789abcdef",Y=new Array(256),ne=0;ne<16;++ne)for(var Le=16*ne,it=0;it<16;++it)Y[Le+it]=Ne[ne]+Ne[it];return Y}()},4901:Et=>{"use strict";var Xe={single_source_shortest_paths:function(ue,be,de){var ye={},he={};he[be]=0;var Se,we,se,K,re,k,ee=Xe.PriorityQueue.make();for(ee.push(be,0);!ee.empty();)for(se in K=(Se=ee.pop()).cost,re=ue[we=Se.value]||{})re.hasOwnProperty(se)&&(k=K+re[se],(typeof he[se]>"u"||he[se]>k)&&(he[se]=k,ee.push(se,k),ye[se]=we));if(typeof de<"u"&&typeof he[de]>"u"){var Z=["Could not find a path from ",be," to ",de,"."].join("");throw new Error(Z)}return ye},extract_shortest_path_from_predecessor_list:function(ue,be){for(var de=[],ye=be;ye;)de.push(ye),ye=ue[ye];return de.reverse(),de},find_path:function(ue,be,de){var ye=Xe.single_source_shortest_paths(ue,be,de);return Xe.extract_shortest_path_from_predecessor_list(ye,de)},PriorityQueue:{make:function(ue){var ye,be=Xe.PriorityQueue,de={};for(ye in ue=ue||{},be)be.hasOwnProperty(ye)&&(de[ye]=be[ye]);return de.queue=[],de.sorter=ue.sorter||be.default_sorter,de},default_sorter:function(ue,be){return ue.cost-be.cost},push:function(ue,be){this.queue.push({value:ue,cost:be}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Et.exports=Xe},8419:Et=>{"use strict";Et.exports=function(ue){for(var be=[],de=ue.length,ye=0;ye=55296&&he<=56319&&de>ye+1){var ee=ue.charCodeAt(ye+1);ee>=56320&&ee<=57343&&(he=1024*(he-55296)+ee-56320+65536,ye+=1)}he<128?be.push(he):he<2048?(be.push(he>>6|192),be.push(63&he|128)):he<55296||he>=57344&&he<65536?(be.push(he>>12|224),be.push(he>>6&63|128),be.push(63&he|128)):he>=65536&&he<=1114111?(be.push(he>>18|240),be.push(he>>12&63|128),be.push(he>>6&63|128),be.push(63&he|128)):be.push(239,191,189)}return new Uint8Array(be).buffer}},7797:function(Et){Et.exports=function(Xe){var ue={};function be(de){if(ue[de])return ue[de].exports;var ye=ue[de]={exports:{},id:de,loaded:!1};return Xe[de].call(ye.exports,ye,ye.exports,be),ye.loaded=!0,ye.exports}return be.m=Xe,be.c=ue,be.p="",be(0)}([function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(1),ye=be(3),he=be(8),ee=be(15);function Se(ie,k,T){var I=null,Z=function(Qt,An){T&&T(Qt,An),I&&I.visit(Qt,An)},Ae="function"==typeof T?Z:null,Ue=!1;if(k){var ut="boolean"==typeof k.attachComment&&k.attachComment;((Ue="boolean"==typeof k.comment&&k.comment)||ut)&&((I=new de.CommentHandler).attach=ut,k.comment=!0,Ae=Z)}var yt,ht=!1;k&&"string"==typeof k.sourceType&&(ht="module"===k.sourceType),yt=k&&"boolean"==typeof k.jsx&&k.jsx?new ye.JSXParser(ie,k,Ae):new he.Parser(ie,k,Ae);var Wt=ht?yt.parseModule():yt.parseScript();return Ue&&I&&(Wt.comments=I.comments),yt.config.tokens&&(Wt.tokens=yt.tokens),yt.config.tolerant&&(Wt.errors=yt.errorHandler.errors),Wt}ue.parse=Se,ue.parseModule=function we(ie,k,T){var I=k||{};return I.sourceType="module",Se(ie,I,T)},ue.parseScript=function se(ie,k,T){var I=k||{};return I.sourceType="script",Se(ie,I,T)},ue.tokenize=function K(ie,k,T){var Z,I=new ee.Tokenizer(ie,k);Z=[];try{for(;;){var Ae=I.getNextToken();if(!Ae)break;T&&(Ae=T(Ae)),Z.push(Ae)}}catch(Ue){I.errorHandler.tolerate(Ue)}return I.errorHandler.tolerant&&(Z.errors=I.errors()),Z};var re=be(2);ue.Syntax=re.Syntax,ue.version="4.0.1"},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(2),ye=function(){function he(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return he.prototype.insertInnerComments=function(ee,Se){if(ee.type===de.Syntax.BlockStatement&&0===ee.body.length){for(var we=[],se=this.leading.length-1;se>=0;--se){var K=this.leading[se];Se.end.offset>=K.start&&(we.unshift(K.comment),this.leading.splice(se,1),this.trailing.splice(se,1))}we.length&&(ee.innerComments=we)}},he.prototype.findTrailingComments=function(ee){var Se=[];if(this.trailing.length>0){for(var we=this.trailing.length-1;we>=0;--we){var se=this.trailing[we];se.start>=ee.end.offset&&Se.unshift(se.comment)}return this.trailing.length=0,Se}var K=this.stack[this.stack.length-1];if(K&&K.node.trailingComments){var re=K.node.trailingComments[0];re&&re.range[0]>=ee.end.offset&&(Se=K.node.trailingComments,delete K.node.trailingComments)}return Se},he.prototype.findLeadingComments=function(ee){for(var we,Se=[];this.stack.length>0&&(se=this.stack[this.stack.length-1])&&se.start>=ee.start.offset;)we=se.node,this.stack.pop();if(we){for(var re=(we.leadingComments?we.leadingComments.length:0)-1;re>=0;--re){var ie=we.leadingComments[re];ie.range[1]<=ee.start.offset&&(Se.unshift(ie),we.leadingComments.splice(re,1))}return we.leadingComments&&0===we.leadingComments.length&&delete we.leadingComments,Se}for(re=this.leading.length-1;re>=0;--re){var se;(se=this.leading[re]).start<=ee.start.offset&&(Se.unshift(se.comment),this.leading.splice(re,1))}return Se},he.prototype.visitNode=function(ee,Se){if(!(ee.type===de.Syntax.Program&&ee.body.length>0)){this.insertInnerComments(ee,Se);var we=this.findTrailingComments(Se),se=this.findLeadingComments(Se);se.length>0&&(ee.leadingComments=se),we.length>0&&(ee.trailingComments=we),this.stack.push({node:ee,start:Se.start.offset})}},he.prototype.visitComment=function(ee,Se){var we="L"===ee.type[0]?"Line":"Block",se={type:we,value:ee.value};if(ee.range&&(se.range=ee.range),ee.loc&&(se.loc=ee.loc),this.comments.push(se),this.attach){var K={comment:{type:we,value:ee.value,range:[Se.start.offset,Se.end.offset]},start:Se.start.offset};ee.loc&&(K.comment.loc=ee.loc),ee.type=we,this.leading.push(K),this.trailing.push(K)}},he.prototype.visit=function(ee,Se){"LineComment"===ee.type||"BlockComment"===ee.type?this.visitComment(ee,Se):this.attach&&this.visitNode(ee,Se)},he}();ue.CommentHandler=ye},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Xe,ue,be){"use strict";var k,de=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,I){T.__proto__=I}||function(T,I){for(var Z in I)I.hasOwnProperty(Z)&&(T[Z]=I[Z])},function(T,I){function Z(){this.constructor=T}k(T,I),T.prototype=null===I?Object.create(I):(Z.prototype=I.prototype,new Z)});Object.defineProperty(ue,"__esModule",{value:!0});var ye=be(4),he=be(5),ee=be(6),Se=be(7),we=be(8),se=be(13),K=be(14);function re(k){var T;switch(k.type){case ee.JSXSyntax.JSXIdentifier:T=k.name;break;case ee.JSXSyntax.JSXNamespacedName:var Z=k;T=re(Z.namespace)+":"+re(Z.name);break;case ee.JSXSyntax.JSXMemberExpression:var Ae=k;T=re(Ae.object)+"."+re(Ae.property)}return T}se.TokenName[100]="JSXIdentifier",se.TokenName[101]="JSXText";var ie=function(k){function T(I,Z,Ae){return k.call(this,I,Z,Ae)||this}return de(T,k),T.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():k.prototype.parsePrimaryExpression.call(this)},T.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},T.prototype.finishJSX=function(){this.nextToken()},T.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},T.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.scanXHTMLEntity=function(I){for(var Z="&",Ae=!0,Ue=!1,ut=!1,ht=!1;!this.scanner.eof()&&Ae&&!Ue;){var yt=this.scanner.source[this.scanner.index];if(yt===I)break;if(Ue=";"===yt,Z+=yt,++this.scanner.index,!Ue)switch(Z.length){case 2:ut="#"===yt;break;case 3:ut&&(Ae=(ht="x"===yt)||ye.Character.isDecimalDigit(yt.charCodeAt(0)),ut=ut&&!ht);break;default:Ae=(Ae=Ae&&!(ut&&!ye.Character.isDecimalDigit(yt.charCodeAt(0))))&&!(ht&&!ye.Character.isHexDigit(yt.charCodeAt(0)))}}if(Ae&&Ue&&Z.length>2){var Zt=Z.substr(1,Z.length-2);ut&&Zt.length>1?Z=String.fromCharCode(parseInt(Zt.substr(1),10)):ht&&Zt.length>2?Z=String.fromCharCode(parseInt("0"+Zt.substr(1),16)):!ut&&!ht&&K.XHTMLEntities[Zt]&&(Z=K.XHTMLEntities[Zt])}return Z},T.prototype.lexJSX=function(){var I=this.scanner.source.charCodeAt(this.scanner.index);if(60===I||62===I||47===I||58===I||61===I||123===I||125===I)return{type:7,value:Z=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===I||39===I){for(var Ae=this.scanner.index,Ue=this.scanner.source[this.scanner.index++],ut="";!this.scanner.eof()&&(ht=this.scanner.source[this.scanner.index++])!==Ue;)ut+="&"===ht?this.scanXHTMLEntity(Ue):ht;return{type:8,value:ut,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(46===I){var Z,yt=this.scanner.source.charCodeAt(this.scanner.index+1),Zt=this.scanner.source.charCodeAt(this.scanner.index+2);return Ae=this.scanner.index,this.scanner.index+=(Z=46===yt&&46===Zt?"...":".").length,{type:7,value:Z,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(96===I)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(ye.Character.isIdentifierStart(I)&&92!==I){for(Ae=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var ht=this.scanner.source.charCodeAt(this.scanner.index);if(ye.Character.isIdentifierPart(ht)&&92!==ht)++this.scanner.index;else{if(45!==ht)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Ae,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}return this.scanner.lex()},T.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var I=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(I)),I},T.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var I=this.scanner.index,Z="";!this.scanner.eof();){var Ae=this.scanner.source[this.scanner.index];if("{"===Ae||"<"===Ae)break;++this.scanner.index,Z+=Ae,ye.Character.isLineTerminator(Ae.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Ae&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Ue={type:101,value:Z,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:I,end:this.scanner.index};return Z.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Ue)),Ue},T.prototype.peekJSXToken=function(){var I=this.scanner.saveState();this.scanner.scanComments();var Z=this.lexJSX();return this.scanner.restoreState(I),Z},T.prototype.expectJSX=function(I){var Z=this.nextJSXToken();(7!==Z.type||Z.value!==I)&&this.throwUnexpectedToken(Z)},T.prototype.matchJSX=function(I){var Z=this.peekJSXToken();return 7===Z.type&&Z.value===I},T.prototype.parseJSXIdentifier=function(){var I=this.createJSXNode(),Z=this.nextJSXToken();return 100!==Z.type&&this.throwUnexpectedToken(Z),this.finalize(I,new he.JSXIdentifier(Z.value))},T.prototype.parseJSXElementName=function(){var I=this.createJSXNode(),Z=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ae=Z;this.expectJSX(":");var Ue=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXNamespacedName(Ae,Ue))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var ut=Z;this.expectJSX(".");var ht=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXMemberExpression(ut,ht))}return Z},T.prototype.parseJSXAttributeName=function(){var Z,I=this.createJSXNode(),Ae=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ue=Ae;this.expectJSX(":");var ut=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXNamespacedName(Ue,ut))}else Z=Ae;return Z},T.prototype.parseJSXStringLiteralAttribute=function(){var I=this.createJSXNode(),Z=this.nextJSXToken();8!==Z.type&&this.throwUnexpectedToken(Z);var Ae=this.getTokenRaw(Z);return this.finalize(I,new Se.Literal(Z.value,Ae))},T.prototype.parseJSXExpressionAttribute=function(){var I=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var Z=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(I,new he.JSXExpressionContainer(Z))},T.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},T.prototype.parseJSXNameValueAttribute=function(){var I=this.createJSXNode(),Z=this.parseJSXAttributeName(),Ae=null;return this.matchJSX("=")&&(this.expectJSX("="),Ae=this.parseJSXAttributeValue()),this.finalize(I,new he.JSXAttribute(Z,Ae))},T.prototype.parseJSXSpreadAttribute=function(){var I=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var Z=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(I,new he.JSXSpreadAttribute(Z))},T.prototype.parseJSXAttributes=function(){for(var I=[];!this.matchJSX("/")&&!this.matchJSX(">");){var Z=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();I.push(Z)}return I},T.prototype.parseJSXOpeningElement=function(){var I=this.createJSXNode();this.expectJSX("<");var Z=this.parseJSXElementName(),Ae=this.parseJSXAttributes(),Ue=this.matchJSX("/");return Ue&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(I,new he.JSXOpeningElement(Z,Ue,Ae))},T.prototype.parseJSXBoundaryElement=function(){var I=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var Z=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(I,new he.JSXClosingElement(Z))}var Ae=this.parseJSXElementName(),Ue=this.parseJSXAttributes(),ut=this.matchJSX("/");return ut&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(I,new he.JSXOpeningElement(Ae,ut,Ue))},T.prototype.parseJSXEmptyExpression=function(){var I=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(I,new he.JSXEmptyExpression)},T.prototype.parseJSXExpressionContainer=function(){var Z,I=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(Z=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),Z=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(I,new he.JSXExpressionContainer(Z))},T.prototype.parseJSXChildren=function(){for(var I=[];!this.scanner.eof();){var Z=this.createJSXChildNode(),Ae=this.nextJSXText();if(Ae.start0))break;ht=this.finalize(I.node,new he.JSXElement(I.opening,I.children,I.closing)),(I=Z[Z.length-1]).children.push(ht),Z.pop()}}return I},T.prototype.parseJSXElement=function(){var I=this.createJSXNode(),Z=this.parseJSXOpeningElement(),Ae=[],Ue=null;if(!Z.selfClosing){var ut=this.parseComplexJSXElement({node:I,opening:Z,closing:Ue,children:Ae});Ae=ut.children,Ue=ut.closing}return this.finalize(I,new he.JSXElement(Z,Ae,Ue))},T.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var I=this.parseJSXElement();return this.finishJSX(),I},T.prototype.isStartOfExpression=function(){return k.prototype.isStartOfExpression.call(this)||this.match("<")},T}(we.Parser);ue.JSXParser=ie},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var be={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};ue.Character={fromCodePoint:function(de){return de<65536?String.fromCharCode(de):String.fromCharCode(55296+(de-65536>>10))+String.fromCharCode(56320+(de-65536&1023))},isWhiteSpace:function(de){return 32===de||9===de||11===de||12===de||160===de||de>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(de)>=0},isLineTerminator:function(de){return 10===de||13===de||8232===de||8233===de},isIdentifierStart:function(de){return 36===de||95===de||de>=65&&de<=90||de>=97&&de<=122||92===de||de>=128&&be.NonAsciiIdentifierStart.test(ue.Character.fromCodePoint(de))},isIdentifierPart:function(de){return 36===de||95===de||de>=65&&de<=90||de>=97&&de<=122||de>=48&&de<=57||92===de||de>=128&&be.NonAsciiIdentifierPart.test(ue.Character.fromCodePoint(de))},isDecimalDigit:function(de){return de>=48&&de<=57},isHexDigit:function(de){return de>=48&&de<=57||de>=65&&de<=70||de>=97&&de<=102},isOctalDigit:function(de){return de>=48&&de<=55}}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(6);ue.JSXClosingElement=function I(Z){this.type=de.JSXSyntax.JSXClosingElement,this.name=Z},ue.JSXElement=function I(Z,Ae,Ue){this.type=de.JSXSyntax.JSXElement,this.openingElement=Z,this.children=Ae,this.closingElement=Ue},ue.JSXEmptyExpression=function I(){this.type=de.JSXSyntax.JSXEmptyExpression},ue.JSXExpressionContainer=function I(Z){this.type=de.JSXSyntax.JSXExpressionContainer,this.expression=Z},ue.JSXIdentifier=function I(Z){this.type=de.JSXSyntax.JSXIdentifier,this.name=Z},ue.JSXMemberExpression=function I(Z,Ae){this.type=de.JSXSyntax.JSXMemberExpression,this.object=Z,this.property=Ae},ue.JSXAttribute=function I(Z,Ae){this.type=de.JSXSyntax.JSXAttribute,this.name=Z,this.value=Ae},ue.JSXNamespacedName=function I(Z,Ae){this.type=de.JSXSyntax.JSXNamespacedName,this.namespace=Z,this.name=Ae},ue.JSXOpeningElement=function I(Z,Ae,Ue){this.type=de.JSXSyntax.JSXOpeningElement,this.name=Z,this.selfClosing=Ae,this.attributes=Ue},ue.JSXSpreadAttribute=function I(Z){this.type=de.JSXSyntax.JSXSpreadAttribute,this.argument=Z},ue.JSXText=function I(Z,Ae){this.type=de.JSXSyntax.JSXText,this.value=Z,this.raw=Ae}},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(2);ue.ArrayExpression=function Je(Qe){this.type=de.Syntax.ArrayExpression,this.elements=Qe},ue.ArrayPattern=function Je(Qe){this.type=de.Syntax.ArrayPattern,this.elements=Qe},ue.ArrowFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.ArrowFunctionExpression,this.id=null,this.params=Qe,this.body=St,this.generator=!1,this.expression=kn,this.async=!1},ue.AssignmentExpression=function Je(Qe,St,kn){this.type=de.Syntax.AssignmentExpression,this.operator=Qe,this.left=St,this.right=kn},ue.AssignmentPattern=function Je(Qe,St){this.type=de.Syntax.AssignmentPattern,this.left=Qe,this.right=St},ue.AsyncArrowFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.ArrowFunctionExpression,this.id=null,this.params=Qe,this.body=St,this.generator=!1,this.expression=kn,this.async=!0},ue.AsyncFunctionDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.FunctionDeclaration,this.id=Qe,this.params=St,this.body=kn,this.generator=!1,this.expression=!1,this.async=!0},ue.AsyncFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.FunctionExpression,this.id=Qe,this.params=St,this.body=kn,this.generator=!1,this.expression=!1,this.async=!0},ue.AwaitExpression=function Je(Qe){this.type=de.Syntax.AwaitExpression,this.argument=Qe},ue.BinaryExpression=function Je(Qe,St,kn){this.type="||"===Qe||"&&"===Qe?de.Syntax.LogicalExpression:de.Syntax.BinaryExpression,this.operator=Qe,this.left=St,this.right=kn},ue.BlockStatement=function Je(Qe){this.type=de.Syntax.BlockStatement,this.body=Qe},ue.BreakStatement=function Je(Qe){this.type=de.Syntax.BreakStatement,this.label=Qe},ue.CallExpression=function Je(Qe,St){this.type=de.Syntax.CallExpression,this.callee=Qe,this.arguments=St},ue.CatchClause=function Je(Qe,St){this.type=de.Syntax.CatchClause,this.param=Qe,this.body=St},ue.ClassBody=function Je(Qe){this.type=de.Syntax.ClassBody,this.body=Qe},ue.ClassDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.ClassDeclaration,this.id=Qe,this.superClass=St,this.body=kn},ue.ClassExpression=function Je(Qe,St,kn){this.type=de.Syntax.ClassExpression,this.id=Qe,this.superClass=St,this.body=kn},ue.ComputedMemberExpression=function Je(Qe,St){this.type=de.Syntax.MemberExpression,this.computed=!0,this.object=Qe,this.property=St},ue.ConditionalExpression=function Je(Qe,St,kn){this.type=de.Syntax.ConditionalExpression,this.test=Qe,this.consequent=St,this.alternate=kn},ue.ContinueStatement=function Je(Qe){this.type=de.Syntax.ContinueStatement,this.label=Qe},ue.DebuggerStatement=function Je(){this.type=de.Syntax.DebuggerStatement},ue.Directive=function Je(Qe,St){this.type=de.Syntax.ExpressionStatement,this.expression=Qe,this.directive=St},ue.DoWhileStatement=function Je(Qe,St){this.type=de.Syntax.DoWhileStatement,this.body=Qe,this.test=St},ue.EmptyStatement=function Je(){this.type=de.Syntax.EmptyStatement},ue.ExportAllDeclaration=function Je(Qe){this.type=de.Syntax.ExportAllDeclaration,this.source=Qe},ue.ExportDefaultDeclaration=function Je(Qe){this.type=de.Syntax.ExportDefaultDeclaration,this.declaration=Qe},ue.ExportNamedDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.ExportNamedDeclaration,this.declaration=Qe,this.specifiers=St,this.source=kn},ue.ExportSpecifier=function Je(Qe,St){this.type=de.Syntax.ExportSpecifier,this.exported=St,this.local=Qe},ue.ExpressionStatement=function Je(Qe){this.type=de.Syntax.ExpressionStatement,this.expression=Qe},ue.ForInStatement=function Je(Qe,St,kn){this.type=de.Syntax.ForInStatement,this.left=Qe,this.right=St,this.body=kn,this.each=!1},ue.ForOfStatement=function Je(Qe,St,kn){this.type=de.Syntax.ForOfStatement,this.left=Qe,this.right=St,this.body=kn},ue.ForStatement=function Je(Qe,St,kn,Br){this.type=de.Syntax.ForStatement,this.init=Qe,this.test=St,this.update=kn,this.body=Br},ue.FunctionDeclaration=function Je(Qe,St,kn,Br){this.type=de.Syntax.FunctionDeclaration,this.id=Qe,this.params=St,this.body=kn,this.generator=Br,this.expression=!1,this.async=!1},ue.FunctionExpression=function Je(Qe,St,kn,Br){this.type=de.Syntax.FunctionExpression,this.id=Qe,this.params=St,this.body=kn,this.generator=Br,this.expression=!1,this.async=!1},ue.Identifier=function Je(Qe){this.type=de.Syntax.Identifier,this.name=Qe},ue.IfStatement=function Je(Qe,St,kn){this.type=de.Syntax.IfStatement,this.test=Qe,this.consequent=St,this.alternate=kn},ue.ImportDeclaration=function Je(Qe,St){this.type=de.Syntax.ImportDeclaration,this.specifiers=Qe,this.source=St},ue.ImportDefaultSpecifier=function Je(Qe){this.type=de.Syntax.ImportDefaultSpecifier,this.local=Qe},ue.ImportNamespaceSpecifier=function Je(Qe){this.type=de.Syntax.ImportNamespaceSpecifier,this.local=Qe},ue.ImportSpecifier=function Je(Qe,St){this.type=de.Syntax.ImportSpecifier,this.local=Qe,this.imported=St},ue.LabeledStatement=function Je(Qe,St){this.type=de.Syntax.LabeledStatement,this.label=Qe,this.body=St},ue.Literal=function Je(Qe,St){this.type=de.Syntax.Literal,this.value=Qe,this.raw=St},ue.MetaProperty=function Je(Qe,St){this.type=de.Syntax.MetaProperty,this.meta=Qe,this.property=St},ue.MethodDefinition=function Je(Qe,St,kn,Br,g1){this.type=de.Syntax.MethodDefinition,this.key=Qe,this.computed=St,this.value=kn,this.kind=Br,this.static=g1},ue.Module=function Je(Qe){this.type=de.Syntax.Program,this.body=Qe,this.sourceType="module"},ue.NewExpression=function Je(Qe,St){this.type=de.Syntax.NewExpression,this.callee=Qe,this.arguments=St},ue.ObjectExpression=function Je(Qe){this.type=de.Syntax.ObjectExpression,this.properties=Qe},ue.ObjectPattern=function Je(Qe){this.type=de.Syntax.ObjectPattern,this.properties=Qe},ue.Property=function Je(Qe,St,kn,Br,g1,ji){this.type=de.Syntax.Property,this.key=St,this.computed=kn,this.value=Br,this.kind=Qe,this.method=g1,this.shorthand=ji},ue.RegexLiteral=function Je(Qe,St,kn,Br){this.type=de.Syntax.Literal,this.value=Qe,this.raw=St,this.regex={pattern:kn,flags:Br}},ue.RestElement=function Je(Qe){this.type=de.Syntax.RestElement,this.argument=Qe},ue.ReturnStatement=function Je(Qe){this.type=de.Syntax.ReturnStatement,this.argument=Qe},ue.Script=function Je(Qe){this.type=de.Syntax.Program,this.body=Qe,this.sourceType="script"},ue.SequenceExpression=function Je(Qe){this.type=de.Syntax.SequenceExpression,this.expressions=Qe},ue.SpreadElement=function Je(Qe){this.type=de.Syntax.SpreadElement,this.argument=Qe},ue.StaticMemberExpression=function Je(Qe,St){this.type=de.Syntax.MemberExpression,this.computed=!1,this.object=Qe,this.property=St},ue.Super=function Je(){this.type=de.Syntax.Super},ue.SwitchCase=function Je(Qe,St){this.type=de.Syntax.SwitchCase,this.test=Qe,this.consequent=St},ue.SwitchStatement=function Je(Qe,St){this.type=de.Syntax.SwitchStatement,this.discriminant=Qe,this.cases=St},ue.TaggedTemplateExpression=function Je(Qe,St){this.type=de.Syntax.TaggedTemplateExpression,this.tag=Qe,this.quasi=St},ue.TemplateElement=function Je(Qe,St){this.type=de.Syntax.TemplateElement,this.value=Qe,this.tail=St},ue.TemplateLiteral=function Je(Qe,St){this.type=de.Syntax.TemplateLiteral,this.quasis=Qe,this.expressions=St},ue.ThisExpression=function Je(){this.type=de.Syntax.ThisExpression},ue.ThrowStatement=function Je(Qe){this.type=de.Syntax.ThrowStatement,this.argument=Qe},ue.TryStatement=function Je(Qe,St,kn){this.type=de.Syntax.TryStatement,this.block=Qe,this.handler=St,this.finalizer=kn},ue.UnaryExpression=function Je(Qe,St){this.type=de.Syntax.UnaryExpression,this.operator=Qe,this.argument=St,this.prefix=!0},ue.UpdateExpression=function Je(Qe,St,kn){this.type=de.Syntax.UpdateExpression,this.operator=Qe,this.argument=St,this.prefix=kn},ue.VariableDeclaration=function Je(Qe,St){this.type=de.Syntax.VariableDeclaration,this.declarations=Qe,this.kind=St},ue.VariableDeclarator=function Je(Qe,St){this.type=de.Syntax.VariableDeclarator,this.id=Qe,this.init=St},ue.WhileStatement=function Je(Qe,St){this.type=de.Syntax.WhileStatement,this.test=Qe,this.body=St},ue.WithStatement=function Je(Qe,St){this.type=de.Syntax.WithStatement,this.object=Qe,this.body=St},ue.YieldExpression=function Je(Qe,St){this.type=de.Syntax.YieldExpression,this.argument=Qe,this.delegate=St}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(9),ye=be(10),he=be(11),ee=be(7),Se=be(12),we=be(2),se=be(13),K="ArrowParameterPlaceHolder",re=function(){function ie(k,T,I){void 0===T&&(T={}),this.config={range:"boolean"==typeof T.range&&T.range,loc:"boolean"==typeof T.loc&&T.loc,source:null,tokens:"boolean"==typeof T.tokens&&T.tokens,comment:"boolean"==typeof T.comment&&T.comment,tolerant:"boolean"==typeof T.tolerant&&T.tolerant},this.config.loc&&T.source&&null!==T.source&&(this.config.source=String(T.source)),this.delegate=I,this.errorHandler=new ye.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new Se.Scanner(k,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return ie.prototype.throwError=function(k){for(var T=[],I=1;I0&&this.delegate)for(var T=0;T>="===k||">>>="===k||"&="===k||"^="===k||"|="===k},ie.prototype.isolateCoverGrammar=function(k){var T=this.context.isBindingElement,I=this.context.isAssignmentTarget,Z=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=k.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=T,this.context.isAssignmentTarget=I,this.context.firstCoverInitializedNameError=Z,Ae},ie.prototype.inheritCoverGrammar=function(k){var T=this.context.isBindingElement,I=this.context.isAssignmentTarget,Z=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=k.call(this);return this.context.isBindingElement=this.context.isBindingElement&&T,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&I,this.context.firstCoverInitializedNameError=Z||this.context.firstCoverInitializedNameError,Ae},ie.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},ie.prototype.parsePrimaryExpression=function(){var T,I,Z,k=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),T=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(k,new ee.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal(I.value,Z));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal("true"===I.value,Z));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal(null,Z));break;case 10:T=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,T=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":T=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":T=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,I=this.nextRegexToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.RegexLiteral(I.regex,Z,I.pattern,I.flags));break;default:T=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?T=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?T=this.finalize(k,new ee.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?T=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),T=this.finalize(k,new ee.ThisExpression)):T=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:T=this.throwUnexpectedToken(this.nextToken())}return T},ie.prototype.parseSpreadElement=function(){var k=this.createNode();this.expect("...");var T=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(k,new ee.SpreadElement(T))},ie.prototype.parseArrayInitializer=function(){var k=this.createNode(),T=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else if(this.match("...")){var I=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),T.push(I)}else T.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(k,new ee.ArrayExpression(T))},ie.prototype.parsePropertyMethod=function(k){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var T=this.context.strict,I=this.context.allowStrictDirective;this.context.allowStrictDirective=k.simple;var Z=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&k.firstRestricted&&this.tolerateUnexpectedToken(k.firstRestricted,k.message),this.context.strict&&k.stricted&&this.tolerateUnexpectedToken(k.stricted,k.message),this.context.strict=T,this.context.allowStrictDirective=I,Z},ie.prototype.parsePropertyMethodFunction=function(){var T=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters(),Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(T,new ee.FunctionExpression(null,Z.params,Ae,!1))},ie.prototype.parsePropertyMethodAsyncFunction=function(){var k=this.createNode(),T=this.context.allowYield,I=this.context.await;this.context.allowYield=!1,this.context.await=!0;var Z=this.parseFormalParameters(),Ae=this.parsePropertyMethod(Z);return this.context.allowYield=T,this.context.await=I,this.finalize(k,new ee.AsyncFunctionExpression(null,Z.params,Ae))},ie.prototype.parseObjectPropertyKey=function(){var I,k=this.createNode(),T=this.nextToken();switch(T.type){case 8:case 6:this.context.strict&&T.octal&&this.tolerateUnexpectedToken(T,he.Messages.StrictOctalLiteral);var Z=this.getTokenRaw(T);I=this.finalize(k,new ee.Literal(T.value,Z));break;case 3:case 1:case 5:case 4:I=this.finalize(k,new ee.Identifier(T.value));break;case 7:"["===T.value?(I=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):I=this.throwUnexpectedToken(T);break;default:I=this.throwUnexpectedToken(T)}return I},ie.prototype.isPropertyKey=function(k,T){return k.type===we.Syntax.Identifier&&k.name===T||k.type===we.Syntax.Literal&&k.value===T},ie.prototype.parseObjectProperty=function(k){var Z,T=this.createNode(),I=this.lookahead,Ae=null,Ue=null,ut=!1,ht=!1,yt=!1,Zt=!1;if(3===I.type){var Wt=I.value;this.nextToken(),ut=this.match("["),Ae=(Zt=!(this.hasLineTerminator||"async"!==Wt||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(T,new ee.Identifier(Wt))}else this.match("*")?this.nextToken():(ut=this.match("["),Ae=this.parseObjectPropertyKey());var Qt=this.qualifiedPropertyName(this.lookahead);if(3===I.type&&!Zt&&"get"===I.value&&Qt)Z="get",ut=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Ue=this.parseGetterMethod();else if(3===I.type&&!Zt&&"set"===I.value&&Qt)Z="set",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseSetterMethod();else if(7===I.type&&"*"===I.value&&Qt)Z="init",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseGeneratorMethod(),ht=!0;else if(Ae||this.throwUnexpectedToken(this.lookahead),Z="init",this.match(":")&&!Zt)!ut&&this.isPropertyKey(Ae,"__proto__")&&(k.value&&this.tolerateError(he.Messages.DuplicateProtoProperty),k.value=!0),this.nextToken(),Ue=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Ue=Zt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),ht=!0;else if(3===I.type)if(Wt=this.finalize(T,new ee.Identifier(I.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),yt=!0;var An=this.isolateCoverGrammar(this.parseAssignmentExpression);Ue=this.finalize(T,new ee.AssignmentPattern(Wt,An))}else yt=!0,Ue=Wt;else this.throwUnexpectedToken(this.nextToken());return this.finalize(T,new ee.Property(Z,Ae,ut,Ue,ht,yt))},ie.prototype.parseObjectInitializer=function(){var k=this.createNode();this.expect("{");for(var T=[],I={value:!1};!this.match("}");)T.push(this.parseObjectProperty(I)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(k,new ee.ObjectExpression(T))},ie.prototype.parseTemplateHead=function(){de.assert(this.lookahead.head,"Template literal must start with a template head");var k=this.createNode(),T=this.nextToken();return this.finalize(k,new ee.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ie.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var k=this.createNode(),T=this.nextToken();return this.finalize(k,new ee.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ie.prototype.parseTemplateLiteral=function(){var k=this.createNode(),T=[],I=[],Z=this.parseTemplateHead();for(I.push(Z);!Z.tail;)T.push(this.parseExpression()),Z=this.parseTemplateElement(),I.push(Z);return this.finalize(k,new ee.TemplateLiteral(I,T))},ie.prototype.reinterpretExpressionAsPattern=function(k){switch(k.type){case we.Syntax.Identifier:case we.Syntax.MemberExpression:case we.Syntax.RestElement:case we.Syntax.AssignmentPattern:break;case we.Syntax.SpreadElement:k.type=we.Syntax.RestElement,this.reinterpretExpressionAsPattern(k.argument);break;case we.Syntax.ArrayExpression:k.type=we.Syntax.ArrayPattern;for(var T=0;T")||this.expect("=>"),k={type:K,params:[],async:!1};else{var T=this.lookahead,I=[];if(this.match("..."))k=this.parseRestElement(I),this.expect(")"),this.match("=>")||this.expect("=>"),k={type:K,params:[k],async:!1};else{var Z=!1;if(this.context.isBindingElement=!0,k=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Ae=[];for(this.context.isAssignmentTarget=!1,Ae.push(k);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Ue=0;Ue")||this.expect("=>"),this.context.isBindingElement=!1,Ue=0;Ue")&&(k.type===we.Syntax.Identifier&&"yield"===k.name&&(Z=!0,k={type:K,params:[k],async:!1}),!Z)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),k.type===we.Syntax.SequenceExpression)for(Ue=0;Ue")){for(var ht=0;ht0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Ae=[k,this.lookahead],Ue=T,ut=this.isolateCoverGrammar(this.parseExponentiationExpression),ht=[Ue,I.value,ut],yt=[Z];!((Z=this.binaryPrecedence(this.lookahead))<=0);){for(;ht.length>2&&Z<=yt[yt.length-1];){ut=ht.pop();var Zt=ht.pop();yt.pop(),Ue=ht.pop(),Ae.pop();var Wt=this.startNode(Ae[Ae.length-1]);ht.push(this.finalize(Wt,new ee.BinaryExpression(Zt,Ue,ut)))}ht.push(this.nextToken().value),yt.push(Z),Ae.push(this.lookahead),ht.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Qt=ht.length-1;T=ht[Qt];for(var An=Ae.pop();Qt>1;){var Cn=Ae.pop();Wt=this.startNode(Cn,An&&An.lineStart),T=this.finalize(Wt,new ee.BinaryExpression(Zt=ht[Qt-1],ht[Qt-2],T)),Qt-=2,An=Cn}}return T},ie.prototype.parseConditionalExpression=function(){var k=this.lookahead,T=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var I=this.context.allowIn;this.context.allowIn=!0;var Z=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=I,this.expect(":");var Ae=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(k),new ee.ConditionalExpression(T,Z,Ae)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return T},ie.prototype.checkPatternParam=function(k,T){switch(T.type){case we.Syntax.Identifier:this.validateParam(k,T,T.name);break;case we.Syntax.RestElement:this.checkPatternParam(k,T.argument);break;case we.Syntax.AssignmentPattern:this.checkPatternParam(k,T.left);break;case we.Syntax.ArrayPattern:for(var I=0;I")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Ae=k.async,Ue=this.reinterpretAsCoverFormalsList(k);if(Ue){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var ut=this.context.strict,ht=this.context.allowStrictDirective;this.context.allowStrictDirective=Ue.simple;var yt=this.context.allowYield,Zt=this.context.await;this.context.allowYield=!0,this.context.await=Ae;var Wt=this.startNode(T);this.expect("=>");var Qt=void 0;if(this.match("{")){var An=this.context.allowIn;this.context.allowIn=!0,Qt=this.parseFunctionSourceElements(),this.context.allowIn=An}else Qt=this.isolateCoverGrammar(this.parseAssignmentExpression);var Cn=Qt.type!==we.Syntax.BlockStatement;this.context.strict&&Ue.firstRestricted&&this.throwUnexpectedToken(Ue.firstRestricted,Ue.message),this.context.strict&&Ue.stricted&&this.tolerateUnexpectedToken(Ue.stricted,Ue.message),k=this.finalize(Wt,Ae?new ee.AsyncArrowFunctionExpression(Ue.params,Qt,Cn):new ee.ArrowFunctionExpression(Ue.params,Qt,Cn)),this.context.strict=ut,this.context.allowStrictDirective=ht,this.context.allowYield=yt,this.context.await=Zt}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(he.Messages.InvalidLHSInAssignment),this.context.strict&&k.type===we.Syntax.Identifier){var Sn=k;this.scanner.isRestrictedWord(Sn.name)&&this.tolerateUnexpectedToken(I,he.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(Sn.name)&&this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(k):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var mi=(I=this.nextToken()).value,fn=this.isolateCoverGrammar(this.parseAssignmentExpression);k=this.finalize(this.startNode(T),new ee.AssignmentExpression(mi,k,fn)),this.context.firstCoverInitializedNameError=null}}return k},ie.prototype.parseExpression=function(){var k=this.lookahead,T=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var I=[];for(I.push(T);2!==this.lookahead.type&&this.match(",");)this.nextToken(),I.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(k),new ee.SequenceExpression(I))}return T},ie.prototype.parseStatementListItem=function(){var k;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalExportDeclaration),k=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalImportDeclaration),k=this.parseImportDeclaration();break;case"const":k=this.parseLexicalDeclaration({inFor:!1});break;case"function":k=this.parseFunctionDeclaration();break;case"class":k=this.parseClassDeclaration();break;case"let":k=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:k=this.parseStatement()}else k=this.parseStatement();return k},ie.prototype.parseBlock=function(){var k=this.createNode();this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseStatementListItem());return this.expect("}"),this.finalize(k,new ee.BlockStatement(T))},ie.prototype.parseLexicalBinding=function(k,T){var I=this.createNode(),Ae=this.parsePattern([],k);this.context.strict&&Ae.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(Ae.name)&&this.tolerateError(he.Messages.StrictVarName);var Ue=null;return"const"===k?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Ue=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(he.Messages.DeclarationMissingInitializer,"const")):(!T.inFor&&Ae.type!==we.Syntax.Identifier||this.match("="))&&(this.expect("="),Ue=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(I,new ee.VariableDeclarator(Ae,Ue))},ie.prototype.parseBindingList=function(k,T){for(var I=[this.parseLexicalBinding(k,T)];this.match(",");)this.nextToken(),I.push(this.parseLexicalBinding(k,T));return I},ie.prototype.isLexicalDeclaration=function(){var k=this.scanner.saveState();this.scanner.scanComments();var T=this.scanner.lex();return this.scanner.restoreState(k),3===T.type||7===T.type&&"["===T.value||7===T.type&&"{"===T.value||4===T.type&&"let"===T.value||4===T.type&&"yield"===T.value},ie.prototype.parseLexicalDeclaration=function(k){var T=this.createNode(),I=this.nextToken().value;de.assert("let"===I||"const"===I,"Lexical declaration must be either let or const");var Z=this.parseBindingList(I,k);return this.consumeSemicolon(),this.finalize(T,new ee.VariableDeclaration(Z,I))},ie.prototype.parseBindingRestElement=function(k,T){var I=this.createNode();this.expect("...");var Z=this.parsePattern(k,T);return this.finalize(I,new ee.RestElement(Z))},ie.prototype.parseArrayPattern=function(k,T){var I=this.createNode();this.expect("[");for(var Z=[];!this.match("]");)if(this.match(","))this.nextToken(),Z.push(null);else{if(this.match("...")){Z.push(this.parseBindingRestElement(k,T));break}Z.push(this.parsePatternWithDefault(k,T)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(I,new ee.ArrayPattern(Z))},ie.prototype.parsePropertyPattern=function(k,T){var ut,ht,I=this.createNode(),Z=!1,Ae=!1;if(3===this.lookahead.type){var yt=this.lookahead;ut=this.parseVariableIdentifier();var Zt=this.finalize(I,new ee.Identifier(yt.value));if(this.match("=")){k.push(yt),Ae=!0,this.nextToken();var Wt=this.parseAssignmentExpression();ht=this.finalize(this.startNode(yt),new ee.AssignmentPattern(Zt,Wt))}else this.match(":")?(this.expect(":"),ht=this.parsePatternWithDefault(k,T)):(k.push(yt),Ae=!0,ht=Zt)}else Z=this.match("["),ut=this.parseObjectPropertyKey(),this.expect(":"),ht=this.parsePatternWithDefault(k,T);return this.finalize(I,new ee.Property("init",ut,Z,ht,!1,Ae))},ie.prototype.parseObjectPattern=function(k,T){var I=this.createNode(),Z=[];for(this.expect("{");!this.match("}");)Z.push(this.parsePropertyPattern(k,T)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(I,new ee.ObjectPattern(Z))},ie.prototype.parsePattern=function(k,T){var I;return this.match("[")?I=this.parseArrayPattern(k,T):this.match("{")?I=this.parseObjectPattern(k,T):(this.matchKeyword("let")&&("const"===T||"let"===T)&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.LetInLexicalBinding),k.push(this.lookahead),I=this.parseVariableIdentifier(T)),I},ie.prototype.parsePatternWithDefault=function(k,T){var I=this.lookahead,Z=this.parsePattern(k,T);if(this.match("=")){this.nextToken();var Ae=this.context.allowYield;this.context.allowYield=!0;var Ue=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Ae,Z=this.finalize(this.startNode(I),new ee.AssignmentPattern(Z,Ue))}return Z},ie.prototype.parseVariableIdentifier=function(k){var T=this.createNode(),I=this.nextToken();return 4===I.type&&"yield"===I.value?this.context.strict?this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(I):3!==I.type?this.context.strict&&4===I.type&&this.scanner.isStrictModeReservedWord(I.value)?this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord):(this.context.strict||"let"!==I.value||"var"!==k)&&this.throwUnexpectedToken(I):(this.context.isModule||this.context.await)&&3===I.type&&"await"===I.value&&this.tolerateUnexpectedToken(I),this.finalize(T,new ee.Identifier(I.value))},ie.prototype.parseVariableDeclaration=function(k){var T=this.createNode(),Z=this.parsePattern([],"var");this.context.strict&&Z.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(Z.name)&&this.tolerateError(he.Messages.StrictVarName);var Ae=null;return this.match("=")?(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseAssignmentExpression)):Z.type!==we.Syntax.Identifier&&!k.inFor&&this.expect("="),this.finalize(T,new ee.VariableDeclarator(Z,Ae))},ie.prototype.parseVariableDeclarationList=function(k){var T={inFor:k.inFor},I=[];for(I.push(this.parseVariableDeclaration(T));this.match(",");)this.nextToken(),I.push(this.parseVariableDeclaration(T));return I},ie.prototype.parseVariableStatement=function(){var k=this.createNode();this.expectKeyword("var");var T=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(k,new ee.VariableDeclaration(T,"var"))},ie.prototype.parseEmptyStatement=function(){var k=this.createNode();return this.expect(";"),this.finalize(k,new ee.EmptyStatement)},ie.prototype.parseExpressionStatement=function(){var k=this.createNode(),T=this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ExpressionStatement(T))},ie.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(he.Messages.StrictFunction),this.parseStatement()},ie.prototype.parseIfStatement=function(){var T,k=this.createNode(),I=null;this.expectKeyword("if"),this.expect("(");var Z=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement)):(this.expect(")"),T=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),I=this.parseIfClause())),this.finalize(k,new ee.IfStatement(Z,T,I))},ie.prototype.parseDoWhileStatement=function(){var k=this.createNode();this.expectKeyword("do");var T=this.context.inIteration;this.context.inIteration=!0;var I=this.parseStatement();this.context.inIteration=T,this.expectKeyword("while"),this.expect("(");var Z=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(k,new ee.DoWhileStatement(I,Z))},ie.prototype.parseWhileStatement=function(){var T,k=this.createNode();this.expectKeyword("while"),this.expect("(");var I=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement);else{this.expect(")");var Z=this.context.inIteration;this.context.inIteration=!0,T=this.parseStatement(),this.context.inIteration=Z}return this.finalize(k,new ee.WhileStatement(I,T))},ie.prototype.parseForStatement=function(){var Ae,Ue,Cn,k=null,T=null,I=null,Z=!0,ut=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){k=this.createNode(),this.nextToken();var ht=this.context.allowIn;this.context.allowIn=!1;var yt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=ht,1===yt.length&&this.matchKeyword("in")){var Zt=yt[0];Zt.init&&(Zt.id.type===we.Syntax.ArrayPattern||Zt.id.type===we.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(he.Messages.ForInOfLoopInitializer,"for-in"),k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null}else 1===yt.length&&null===yt[0].init&&this.matchContextualKeyword("of")?(k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.nextToken(),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1):(k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){k=this.createNode();var Wt=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(ht=this.context.allowIn,this.context.allowIn=!1,yt=this.parseBindingList(Wt,{inFor:!0}),this.context.allowIn=ht,1===yt.length&&null===yt[0].init&&this.matchKeyword("in")?(k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null):1===yt.length&&null===yt[0].init&&this.matchContextualKeyword("of")?(k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)),this.nextToken(),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1):(this.consumeSemicolon(),k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)))):(k=this.finalize(k,new ee.Identifier(Wt)),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null)}else{var Qt=this.lookahead;if(ht=this.context.allowIn,this.context.allowIn=!1,k=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=ht,this.matchKeyword("in"))(!this.context.isAssignmentTarget||k.type===we.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(k),Ae=k,Ue=this.parseExpression(),k=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||k.type===we.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(k),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1;else{if(this.match(",")){for(var An=[k];this.match(",");)this.nextToken(),An.push(this.isolateCoverGrammar(this.parseAssignmentExpression));k=this.finalize(this.startNode(Qt),new ee.SequenceExpression(An))}this.expect(";")}}if(typeof Ae>"u"&&(this.match(";")||(T=this.parseExpression()),this.expect(";"),this.match(")")||(I=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Cn=this.finalize(this.createNode(),new ee.EmptyStatement);else{this.expect(")");var Sn=this.context.inIteration;this.context.inIteration=!0,Cn=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=Sn}return this.finalize(ut,typeof Ae>"u"?new ee.ForStatement(k,T,I,Cn):Z?new ee.ForInStatement(Ae,Ue,Cn):new ee.ForOfStatement(Ae,Ue,Cn))},ie.prototype.parseContinueStatement=function(){var k=this.createNode();this.expectKeyword("continue");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var I=this.parseVariableIdentifier();T=I,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+I.name)||this.throwError(he.Messages.UnknownLabel,I.name)}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&this.throwError(he.Messages.IllegalContinue),this.finalize(k,new ee.ContinueStatement(T))},ie.prototype.parseBreakStatement=function(){var k=this.createNode();this.expectKeyword("break");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var I=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+I.name)||this.throwError(he.Messages.UnknownLabel,I.name),T=I}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(he.Messages.IllegalBreak),this.finalize(k,new ee.BreakStatement(T))},ie.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(he.Messages.IllegalReturn);var k=this.createNode();this.expectKeyword("return");var I=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ReturnStatement(I))},ie.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(he.Messages.StrictModeWith);var T,k=this.createNode();this.expectKeyword("with"),this.expect("(");var I=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement)):(this.expect(")"),T=this.parseStatement()),this.finalize(k,new ee.WithStatement(I,T))},ie.prototype.parseSwitchCase=function(){var T,k=this.createNode();this.matchKeyword("default")?(this.nextToken(),T=null):(this.expectKeyword("case"),T=this.parseExpression()),this.expect(":");for(var I=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)I.push(this.parseStatementListItem());return this.finalize(k,new ee.SwitchCase(T,I))},ie.prototype.parseSwitchStatement=function(){var k=this.createNode();this.expectKeyword("switch"),this.expect("(");var T=this.parseExpression();this.expect(")");var I=this.context.inSwitch;this.context.inSwitch=!0;var Z=[],Ae=!1;for(this.expect("{");!this.match("}");){var Ue=this.parseSwitchCase();null===Ue.test&&(Ae&&this.throwError(he.Messages.MultipleDefaultsInSwitch),Ae=!0),Z.push(Ue)}return this.expect("}"),this.context.inSwitch=I,this.finalize(k,new ee.SwitchStatement(T,Z))},ie.prototype.parseLabelledStatement=function(){var I,k=this.createNode(),T=this.parseExpression();if(T.type===we.Syntax.Identifier&&this.match(":")){this.nextToken();var Z=T,Ae="$"+Z.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Ae)&&this.throwError(he.Messages.Redeclaration,"Label",Z.name),this.context.labelSet[Ae]=!0;var Ue=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Ue=this.parseClassDeclaration();else if(this.matchKeyword("function")){var ut=this.lookahead,ht=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(ut,he.Messages.StrictFunction):ht.generator&&this.tolerateUnexpectedToken(ut,he.Messages.GeneratorInLegacyContext),Ue=ht}else Ue=this.parseStatement();delete this.context.labelSet[Ae],I=new ee.LabeledStatement(Z,Ue)}else this.consumeSemicolon(),I=new ee.ExpressionStatement(T);return this.finalize(k,I)},ie.prototype.parseThrowStatement=function(){var k=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(he.Messages.NewlineAfterThrow);var T=this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ThrowStatement(T))},ie.prototype.parseCatchClause=function(){var k=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var T=[],I=this.parsePattern(T),Z={},Ae=0;Ae0&&this.tolerateError(he.Messages.BadGetterArity);var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,false))},ie.prototype.parseSetterMethod=function(){var k=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters();1!==Z.params.length?this.tolerateError(he.Messages.BadSetterArity):Z.params[0]instanceof ee.RestElement&&this.tolerateError(he.Messages.BadSetterRestParameter);var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,false))},ie.prototype.parseGeneratorMethod=function(){var k=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters();this.context.allowYield=!1;var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,!0))},ie.prototype.isStartOfExpression=function(){var k=!0,T=this.lookahead.value;switch(this.lookahead.type){case 7:k="["===T||"("===T||"{"===T||"+"===T||"-"===T||"!"===T||"~"===T||"++"===T||"--"===T||"/"===T||"/="===T;break;case 4:k="class"===T||"delete"===T||"function"===T||"let"===T||"new"===T||"super"===T||"this"===T||"typeof"===T||"void"===T||"yield"===T}return k},ie.prototype.parseYieldExpression=function(){var k=this.createNode();this.expectKeyword("yield");var T=null,I=!1;if(!this.hasLineTerminator){var Z=this.context.allowYield;this.context.allowYield=!1,(I=this.match("*"))?(this.nextToken(),T=this.parseAssignmentExpression()):this.isStartOfExpression()&&(T=this.parseAssignmentExpression()),this.context.allowYield=Z}return this.finalize(k,new ee.YieldExpression(T,I))},ie.prototype.parseClassElement=function(k){var T=this.lookahead,I=this.createNode(),Z="",Ae=null,Ue=null,ut=!1,ht=!1,yt=!1,Zt=!1;if(this.match("*"))this.nextToken();else if(ut=this.match("["),"static"===(Ae=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(T=this.lookahead,yt=!0,ut=this.match("["),this.match("*")?this.nextToken():Ae=this.parseObjectPropertyKey()),3===T.type&&!this.hasLineTerminator&&"async"===T.value){var Qt=this.lookahead.value;":"!==Qt&&"("!==Qt&&"*"!==Qt&&(Zt=!0,T=this.lookahead,Ae=this.parseObjectPropertyKey(),3===T.type&&"constructor"===T.value&&this.tolerateUnexpectedToken(T,he.Messages.ConstructorIsAsync))}var An=this.qualifiedPropertyName(this.lookahead);return 3===T.type?"get"===T.value&&An?(Z="get",ut=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Ue=this.parseGetterMethod()):"set"===T.value&&An&&(Z="set",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseSetterMethod()):7===T.type&&"*"===T.value&&An&&(Z="init",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseGeneratorMethod(),ht=!0),!Z&&Ae&&this.match("(")&&(Z="init",Ue=Zt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),ht=!0),Z||this.throwUnexpectedToken(this.lookahead),"init"===Z&&(Z="method"),ut||(yt&&this.isPropertyKey(Ae,"prototype")&&this.throwUnexpectedToken(T,he.Messages.StaticPrototype),!yt&&this.isPropertyKey(Ae,"constructor")&&(("method"!==Z||!ht||Ue&&Ue.generator)&&this.throwUnexpectedToken(T,he.Messages.ConstructorSpecialMethod),k.value?this.throwUnexpectedToken(T,he.Messages.DuplicateConstructor):k.value=!0,Z="constructor")),this.finalize(I,new ee.MethodDefinition(Ae,ut,Ue,Z,yt))},ie.prototype.parseClassElementList=function(){var k=[],T={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():k.push(this.parseClassElement(T));return this.expect("}"),k},ie.prototype.parseClassBody=function(){var k=this.createNode(),T=this.parseClassElementList();return this.finalize(k,new ee.ClassBody(T))},ie.prototype.parseClassDeclaration=function(k){var T=this.createNode(),I=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var Z=k&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Ae=null;this.matchKeyword("extends")&&(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ue=this.parseClassBody();return this.context.strict=I,this.finalize(T,new ee.ClassDeclaration(Z,Ae,Ue))},ie.prototype.parseClassExpression=function(){var k=this.createNode(),T=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var I=3===this.lookahead.type?this.parseVariableIdentifier():null,Z=null;this.matchKeyword("extends")&&(this.nextToken(),Z=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ae=this.parseClassBody();return this.context.strict=T,this.finalize(k,new ee.ClassExpression(I,Z,Ae))},ie.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var k=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(k,new ee.Module(T))},ie.prototype.parseScript=function(){for(var k=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(k,new ee.Script(T))},ie.prototype.parseModuleSpecifier=function(){var k=this.createNode();8!==this.lookahead.type&&this.throwError(he.Messages.InvalidModuleSpecifier);var T=this.nextToken(),I=this.getTokenRaw(T);return this.finalize(k,new ee.Literal(T.value,I))},ie.prototype.parseImportSpecifier=function(){var T,I,k=this.createNode();return 3===this.lookahead.type?(I=T=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),I=this.parseVariableIdentifier())):(I=T=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),I=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(k,new ee.ImportSpecifier(I,T))},ie.prototype.parseNamedImports=function(){this.expect("{");for(var k=[];!this.match("}");)k.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),k},ie.prototype.parseImportDefaultSpecifier=function(){var k=this.createNode(),T=this.parseIdentifierName();return this.finalize(k,new ee.ImportDefaultSpecifier(T))},ie.prototype.parseImportNamespaceSpecifier=function(){var k=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(he.Messages.NoAsAfterImportNamespace),this.nextToken();var T=this.parseIdentifierName();return this.finalize(k,new ee.ImportNamespaceSpecifier(T))},ie.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalImportDeclaration);var k=this.createNode();this.expectKeyword("import");var T,I=[];return 8===this.lookahead.type||(this.match("{")?I=I.concat(this.parseNamedImports()):this.match("*")?I.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(I.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?I.push(this.parseImportNamespaceSpecifier()):this.match("{")?I=I.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),T=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(k,new ee.ImportDeclaration(I,T))},ie.prototype.parseExportSpecifier=function(){var k=this.createNode(),T=this.parseIdentifierName(),I=T;return this.matchContextualKeyword("as")&&(this.nextToken(),I=this.parseIdentifierName()),this.finalize(k,new ee.ExportSpecifier(T,I))},ie.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalExportDeclaration);var T,k=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var I=this.parseFunctionDeclaration(!0);T=this.finalize(k,new ee.ExportDefaultDeclaration(I))}else this.matchKeyword("class")?(I=this.parseClassDeclaration(!0),T=this.finalize(k,new ee.ExportDefaultDeclaration(I))):this.matchContextualKeyword("async")?(I=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),T=this.finalize(k,new ee.ExportDefaultDeclaration(I))):(this.matchContextualKeyword("from")&&this.throwError(he.Messages.UnexpectedToken,this.lookahead.value),I=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),T=this.finalize(k,new ee.ExportDefaultDeclaration(I)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Ae=this.parseModuleSpecifier();this.consumeSemicolon(),T=this.finalize(k,new ee.ExportAllDeclaration(Ae))}else if(4===this.lookahead.type){switch(I=void 0,this.lookahead.value){case"let":case"const":I=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":I=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}T=this.finalize(k,new ee.ExportNamedDeclaration(I,[],null))}else if(this.matchAsyncFunction())I=this.parseFunctionDeclaration(),T=this.finalize(k,new ee.ExportNamedDeclaration(I,[],null));else{var Ue=[],ut=null,ht=!1;for(this.expect("{");!this.match("}");)ht=ht||this.matchKeyword("default"),Ue.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),ut=this.parseModuleSpecifier(),this.consumeSemicolon()):ht?this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),T=this.finalize(k,new ee.ExportNamedDeclaration(null,Ue,ut))}return T},ie}();ue.Parser=re},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.assert=function be(de,ye){if(!de)throw new Error("ASSERT: "+ye)}},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var be=function(){function de(){this.errors=[],this.tolerant=!1}return de.prototype.recordError=function(ye){this.errors.push(ye)},de.prototype.tolerate=function(ye){if(!this.tolerant)throw ye;this.recordError(ye)},de.prototype.constructError=function(ye,he){var ee=new Error(ye);try{throw ee}catch(Se){Object.create&&Object.defineProperty&&(ee=Object.create(Se),Object.defineProperty(ee,"column",{value:he}))}return ee},de.prototype.createError=function(ye,he,ee,Se){var se=this.constructError("Line "+he+": "+Se,ee);return se.index=ye,se.lineNumber=he,se.description=Se,se},de.prototype.throwError=function(ye,he,ee,Se){throw this.createError(ye,he,ee,Se)},de.prototype.tolerateError=function(ye,he,ee,Se){var we=this.createError(ye,he,ee,Se);if(!this.tolerant)throw we;this.recordError(we)},de}();ue.ErrorHandler=be},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(9),ye=be(4),he=be(11);function ee(se){return"0123456789abcdef".indexOf(se.toLowerCase())}function Se(se){return"01234567".indexOf(se)}var we=function(){function se(K,re){this.source=K,this.errorHandler=re,this.trackComment=!1,this.isModule=!1,this.length=K.length,this.index=0,this.lineNumber=K.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return se.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},se.prototype.restoreState=function(K){this.index=K.index,this.lineNumber=K.lineNumber,this.lineStart=K.lineStart},se.prototype.eof=function(){return this.index>=this.length},se.prototype.throwUnexpectedToken=function(K){return void 0===K&&(K=he.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,K)},se.prototype.tolerateUnexpectedToken=function(K){void 0===K&&(K=he.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,K)},se.prototype.skipSingleLineComment=function(K){var ie,k,re=[];for(this.trackComment&&(re=[],ie=this.index-K,k={start:{line:this.lineNumber,column:this.index-this.lineStart-K},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(++this.index,ye.Character.isLineTerminator(T))return this.trackComment&&(k.end={line:this.lineNumber,column:this.index-this.lineStart-1},re.push({multiLine:!1,slice:[ie+K,this.index-1],range:[ie,this.index-1],loc:k})),13===T&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,re}return this.trackComment&&(k.end={line:this.lineNumber,column:this.index-this.lineStart},re.push({multiLine:!1,slice:[ie+K,this.index],range:[ie,this.index],loc:k})),re},se.prototype.skipMultiLineComment=function(){var re,ie,K=[];for(this.trackComment&&(K=[],re=this.index-2,ie={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var k=this.source.charCodeAt(this.index);if(ye.Character.isLineTerminator(k))13===k&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===k){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(ie.end={line:this.lineNumber,column:this.index-this.lineStart},K.push({multiLine:!0,slice:[re+2,this.index-2],range:[re,this.index],loc:ie})),K;++this.index}else++this.index}return this.trackComment&&(ie.end={line:this.lineNumber,column:this.index-this.lineStart},K.push({multiLine:!0,slice:[re+2,this.index],range:[re,this.index],loc:ie})),this.tolerateUnexpectedToken(),K},se.prototype.scanComments=function(){var K;this.trackComment&&(K=[]);for(var re=0===this.index;!this.eof();){var ie=this.source.charCodeAt(this.index);if(ye.Character.isWhiteSpace(ie))++this.index;else if(ye.Character.isLineTerminator(ie))++this.index,13===ie&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,re=!0;else if(47===ie)if(47===(ie=this.source.charCodeAt(this.index+1))){this.index+=2;var k=this.skipSingleLineComment(2);this.trackComment&&(K=K.concat(k)),re=!0}else{if(42!==ie)break;this.index+=2,k=this.skipMultiLineComment(),this.trackComment&&(K=K.concat(k))}else if(re&&45===ie){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,k=this.skipSingleLineComment(3),this.trackComment&&(K=K.concat(k))}else{if(60!==ie||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,k=this.skipSingleLineComment(4),this.trackComment&&(K=K.concat(k))}}return K},se.prototype.isFutureReservedWord=function(K){switch(K){case"enum":case"export":case"import":case"super":return!0;default:return!1}},se.prototype.isStrictModeReservedWord=function(K){switch(K){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},se.prototype.isRestrictedWord=function(K){return"eval"===K||"arguments"===K},se.prototype.isKeyword=function(K){switch(K.length){case 2:return"if"===K||"in"===K||"do"===K;case 3:return"var"===K||"for"===K||"new"===K||"try"===K||"let"===K;case 4:return"this"===K||"else"===K||"case"===K||"void"===K||"with"===K||"enum"===K;case 5:return"while"===K||"break"===K||"catch"===K||"throw"===K||"const"===K||"yield"===K||"class"===K||"super"===K;case 6:return"return"===K||"typeof"===K||"delete"===K||"switch"===K||"export"===K||"import"===K;case 7:return"default"===K||"finally"===K||"extends"===K;case 8:return"function"===K||"continue"===K||"debugger"===K;case 10:return"instanceof"===K;default:return!1}},se.prototype.codePointAt=function(K){var re=this.source.charCodeAt(K);if(re>=55296&&re<=56319){var ie=this.source.charCodeAt(K+1);ie>=56320&&ie<=57343&&(re=1024*(re-55296)+ie-56320+65536)}return re},se.prototype.scanHexEscape=function(K){for(var re="u"===K?4:2,ie=0,k=0;k1114111||"}"!==K)&&this.throwUnexpectedToken(),ye.Character.fromCodePoint(re)},se.prototype.getIdentifier=function(){for(var K=this.index++;!this.eof();){var re=this.source.charCodeAt(this.index);if(92===re)return this.index=K,this.getComplexIdentifier();if(re>=55296&&re<57343)return this.index=K,this.getComplexIdentifier();if(!ye.Character.isIdentifierPart(re))break;++this.index}return this.source.slice(K,this.index)},se.prototype.getComplexIdentifier=function(){var ie,K=this.codePointAt(this.index),re=ye.Character.fromCodePoint(K);for(this.index+=re.length,92===K&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ie=this.scanUnicodeCodePointEscape()):(null===(ie=this.scanHexEscape("u"))||"\\"===ie||!ye.Character.isIdentifierStart(ie.charCodeAt(0)))&&this.throwUnexpectedToken(),re=ie);!this.eof()&&(K=this.codePointAt(this.index),ye.Character.isIdentifierPart(K));)re+=ie=ye.Character.fromCodePoint(K),this.index+=ie.length,92===K&&(re=re.substr(0,re.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ie=this.scanUnicodeCodePointEscape()):(null===(ie=this.scanHexEscape("u"))||"\\"===ie||!ye.Character.isIdentifierPart(ie.charCodeAt(0)))&&this.throwUnexpectedToken(),re+=ie);return re},se.prototype.octalToDecimal=function(K){var re="0"!==K,ie=Se(K);return!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(re=!0,ie=8*ie+Se(this.source[this.index++]),"0123".indexOf(K)>=0&&!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ie=8*ie+Se(this.source[this.index++]))),{code:ie,octal:re}},se.prototype.scanIdentifier=function(){var K,re=this.index,ie=92===this.source.charCodeAt(re)?this.getComplexIdentifier():this.getIdentifier();if(3!=(K=1===ie.length?3:this.isKeyword(ie)?4:"null"===ie?5:"true"===ie||"false"===ie?1:3)&&re+ie.length!==this.index){var k=this.index;this.index=re,this.tolerateUnexpectedToken(he.Messages.InvalidEscapedReservedWord),this.index=k}return{type:K,value:ie,lineNumber:this.lineNumber,lineStart:this.lineStart,start:re,end:this.index}},se.prototype.scanPunctuator=function(){var K=this.index,re=this.source[this.index];switch(re){case"(":case"{":"{"===re&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,re="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(re=this.source.substr(this.index,4))?this.index+=4:"==="===(re=re.substr(0,3))||"!=="===re||">>>"===re||"<<="===re||">>="===re||"**="===re?this.index+=3:"&&"===(re=re.substr(0,2))||"||"===re||"=="===re||"!="===re||"+="===re||"-="===re||"*="===re||"/="===re||"++"===re||"--"===re||"<<"===re||">>"===re||"&="===re||"|="===re||"^="===re||"%="===re||"<="===re||">="===re||"=>"===re||"**"===re?this.index+=2:"<>=!+-*%&|^/".indexOf(re=this.source[this.index])>=0&&++this.index}return this.index===K&&this.throwUnexpectedToken(),{type:7,value:re,lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanHexLiteral=function(K){for(var re="";!this.eof()&&ye.Character.isHexDigit(this.source.charCodeAt(this.index));)re+=this.source[this.index++];return 0===re.length&&this.throwUnexpectedToken(),ye.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+re,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanBinaryLiteral=function(K){for(var ie,re="";!this.eof()&&("0"===(ie=this.source[this.index])||"1"===ie);)re+=this.source[this.index++];return 0===re.length&&this.throwUnexpectedToken(),this.eof()||(ie=this.source.charCodeAt(this.index),(ye.Character.isIdentifierStart(ie)||ye.Character.isDecimalDigit(ie))&&this.throwUnexpectedToken()),{type:6,value:parseInt(re,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanOctalLiteral=function(K,re){var ie="",k=!1;for(ye.Character.isOctalDigit(K.charCodeAt(0))?(k=!0,ie="0"+this.source[this.index++]):++this.index;!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index));)ie+=this.source[this.index++];return!k&&0===ie.length&&this.throwUnexpectedToken(),(ye.Character.isIdentifierStart(this.source.charCodeAt(this.index))||ye.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(ie,8),octal:k,lineNumber:this.lineNumber,lineStart:this.lineStart,start:re,end:this.index}},se.prototype.isImplicitOctalLiteral=function(){for(var K=this.index+1;K=0&&(k=k.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(I,Z,Ae){var Ue=parseInt(Z||Ae,16);return Ue>1114111&&T.throwUnexpectedToken(he.Messages.InvalidRegExp),Ue<=65535?String.fromCharCode(Ue):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(k)}catch{this.throwUnexpectedToken(he.Messages.InvalidRegExp)}try{return new RegExp(K,re)}catch{return null}},se.prototype.scanRegExpBody=function(){var K=this.source[this.index];de.assert("/"===K,"Regular expression literal must start with a slash");for(var re=this.source[this.index++],ie=!1,k=!1;!this.eof();)if(re+=K=this.source[this.index++],"\\"===K)K=this.source[this.index++],ye.Character.isLineTerminator(K.charCodeAt(0))&&this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),re+=K;else if(ye.Character.isLineTerminator(K.charCodeAt(0)))this.throwUnexpectedToken(he.Messages.UnterminatedRegExp);else if(ie)"]"===K&&(ie=!1);else{if("/"===K){k=!0;break}"["===K&&(ie=!0)}return k||this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),re.substr(1,re.length-2)},se.prototype.scanRegExpFlags=function(){for(var re="";!this.eof();){var ie=this.source[this.index];if(!ye.Character.isIdentifierPart(ie.charCodeAt(0)))break;if(++this.index,"\\"!==ie||this.eof())re+=ie;else if("u"===(ie=this.source[this.index])){++this.index;var k=this.index,T=this.scanHexEscape("u");if(null!==T)for(re+=T;k=55296&&K<57343&&ye.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},se}();ue.Scanner=we},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.TokenName={},ue.TokenName[1]="Boolean",ue.TokenName[2]="",ue.TokenName[3]="Identifier",ue.TokenName[4]="Keyword",ue.TokenName[5]="Null",ue.TokenName[6]="Numeric",ue.TokenName[7]="Punctuator",ue.TokenName[8]="String",ue.TokenName[9]="RegularExpression",ue.TokenName[10]="Template"},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(10),ye=be(12),he=be(13),ee=function(){function we(){this.values=[],this.curly=this.paren=-1}return we.prototype.beforeFunctionExpression=function(se){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(se)>=0},we.prototype.isRegexStart=function(){var se=this.values[this.values.length-1],K=null!==se;switch(se){case"this":case"]":K=!1;break;case")":var re=this.values[this.paren-1];K="if"===re||"while"===re||"for"===re||"with"===re;break;case"}":if(K=!1,"function"===this.values[this.curly-3])K=!!(ie=this.values[this.curly-4])&&!this.beforeFunctionExpression(ie);else if("function"===this.values[this.curly-4]){var ie;K=!(ie=this.values[this.curly-5])||!this.beforeFunctionExpression(ie)}}return K},we.prototype.push=function(se){7===se.type||4===se.type?("{"===se.value?this.curly=this.values.length:"("===se.value&&(this.paren=this.values.length),this.values.push(se.value)):this.values.push(null)},we}(),Se=function(){function we(se,K){this.errorHandler=new de.ErrorHandler,this.errorHandler.tolerant=!!K&&"boolean"==typeof K.tolerant&&K.tolerant,this.scanner=new ye.Scanner(se,this.errorHandler),this.scanner.trackComment=!!K&&"boolean"==typeof K.comment&&K.comment,this.trackRange=!!K&&"boolean"==typeof K.range&&K.range,this.trackLoc=!!K&&"boolean"==typeof K.loc&&K.loc,this.buffer=[],this.reader=new ee}return we.prototype.errors=function(){return this.errorHandler.errors},we.prototype.getNextToken=function(){if(0===this.buffer.length){var se=this.scanner.scanComments();if(this.scanner.trackComment)for(var K=0;K=ie.status}function Se(re){try{re.dispatchEvent(new MouseEvent("click"))}catch{var ie=document.createEvent("MouseEvents");ie.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),re.dispatchEvent(ie)}}var we="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,se=we.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),K=we.saveAs||("object"!=typeof window||window!==we?function(){}:"download"in HTMLAnchorElement.prototype&&!se?function(re,ie,k){var T=we.URL||we.webkitURL,I=document.createElement("a");I.download=ie=ie||re.name||"download",I.rel="noopener","string"==typeof re?(I.href=re,I.origin===location.origin?Se(I):ee(I.href)?he(re,ie,k):Se(I,I.target="_blank")):(I.href=T.createObjectURL(re),setTimeout(function(){T.revokeObjectURL(I.href)},4e4),setTimeout(function(){Se(I)},0))}:"msSaveOrOpenBlob"in navigator?function(re,ie,k){if(ie=ie||re.name||"download","string"!=typeof re)navigator.msSaveOrOpenBlob(function ye(re,ie){return typeof ie>"u"?ie={autoBom:!1}:"object"!=typeof ie&&(console.warn("Deprecated: Expected third argument to be a object"),ie={autoBom:!ie}),ie.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(re.type)?new Blob(["\ufeff",re],{type:re.type}):re}(re,k),ie);else if(ee(re))he(re,ie,k);else{var T=document.createElement("a");T.href=re,T.target="_blank",setTimeout(function(){Se(T)})}}:function(re,ie,k,T){if((T=T||open("","_blank"))&&(T.document.title=T.document.body.innerText="downloading..."),"string"==typeof re)return he(re,ie,k);var I="application/octet-stream"===re.type,Z=/constructor/i.test(we.HTMLElement)||we.safari,Ae=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ae||I&&Z||se)&&typeof FileReader<"u"){var Ue=new FileReader;Ue.onloadend=function(){var yt=Ue.result;yt=Ae?yt:yt.replace(/^data:[^;]*;/,"data:attachment/file;"),T?T.location.href=yt:location=yt,T=null},Ue.readAsDataURL(re)}else{var ut=we.URL||we.webkitURL,ht=ut.createObjectURL(re);T?T.location=ht:location.href=ht,T=null,setTimeout(function(){ut.revokeObjectURL(ht)},4e4)}});we.saveAs=K.saveAs=K,Et.exports=K})?ue.apply(Xe,[]):ue)&&(Et.exports=de)},8461:(Et,Xe)=>{Xe.read=function(ue,be,de,ye,he){var ee,Se,we=8*he-ye-1,se=(1<>1,re=-7,ie=de?he-1:0,k=de?-1:1,T=ue[be+ie];for(ie+=k,ee=T&(1<<-re)-1,T>>=-re,re+=we;re>0;ee=256*ee+ue[be+ie],ie+=k,re-=8);for(Se=ee&(1<<-re)-1,ee>>=-re,re+=ye;re>0;Se=256*Se+ue[be+ie],ie+=k,re-=8);if(0===ee)ee=1-K;else{if(ee===se)return Se?NaN:1/0*(T?-1:1);Se+=Math.pow(2,ye),ee-=K}return(T?-1:1)*Se*Math.pow(2,ee-ye)},Xe.write=function(ue,be,de,ye,he,ee){var Se,we,se,K=8*ee-he-1,re=(1<>1,k=23===he?Math.pow(2,-24)-Math.pow(2,-77):0,T=ye?0:ee-1,I=ye?1:-1,Z=be<0||0===be&&1/be<0?1:0;for(be=Math.abs(be),isNaN(be)||be===1/0?(we=isNaN(be)?1:0,Se=re):(Se=Math.floor(Math.log(be)/Math.LN2),be*(se=Math.pow(2,-Se))<1&&(Se--,se*=2),(be+=Se+ie>=1?k/se:k*Math.pow(2,1-ie))*se>=2&&(Se++,se/=2),Se+ie>=re?(we=0,Se=re):Se+ie>=1?(we=(be*se-1)*Math.pow(2,he),Se+=ie):(we=be*Math.pow(2,ie-1)*Math.pow(2,he),Se=0));he>=8;ue[de+T]=255&we,T+=I,we/=256,he-=8);for(Se=Se<0;ue[de+T]=255&Se,T+=I,Se/=256,K-=8);ue[de+T-I]|=128*Z}},1870:(Et,Xe,ue)=>{"use strict";var be=ue(5133);Et.exports=be},5133:(Et,Xe,ue)=>{"use strict";var be=ue(7840),de=ue(34);function ye(he){return function(){throw new Error("Function "+he+" is deprecated and cannot be used.")}}Et.exports.Type=ue(7647),Et.exports.Schema=ue(372),Et.exports.FAILSAFE_SCHEMA=ue(8746),Et.exports.JSON_SCHEMA=ue(7147),Et.exports.CORE_SCHEMA=ue(3192),Et.exports.DEFAULT_SAFE_SCHEMA=ue(3031),Et.exports.DEFAULT_FULL_SCHEMA=ue(7094),Et.exports.load=be.load,Et.exports.loadAll=be.loadAll,Et.exports.safeLoad=be.safeLoad,Et.exports.safeLoadAll=be.safeLoadAll,Et.exports.dump=de.dump,Et.exports.safeDump=de.safeDump,Et.exports.YAMLException=ue(314),Et.exports.MINIMAL_SCHEMA=ue(8746),Et.exports.SAFE_SCHEMA=ue(3031),Et.exports.DEFAULT_SCHEMA=ue(7094),Et.exports.scan=ye("scan"),Et.exports.parse=ye("parse"),Et.exports.compose=ye("compose"),Et.exports.addConstructor=ye("addConstructor")},997:Et=>{"use strict";function Xe(ee){return typeof ee>"u"||null===ee}Et.exports.isNothing=Xe,Et.exports.isObject=function ue(ee){return"object"==typeof ee&&null!==ee},Et.exports.toArray=function be(ee){return Array.isArray(ee)?ee:Xe(ee)?[]:[ee]},Et.exports.repeat=function ye(ee,Se){var se,we="";for(se=0;se{"use strict";var be=ue(997),de=ue(314),ye=ue(7094),he=ue(3031),ee=Object.prototype.toString,Se=Object.prototype.hasOwnProperty,we=9,se=10,K=13,re=32,ie=33,k=34,T=35,I=37,Z=38,Ae=39,Ue=42,ut=44,ht=45,yt=58,Zt=61,Wt=62,Qt=63,An=64,Cn=91,Sn=93,mi=96,fn=123,qn=124,fi=125,$t={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},ta=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Zn(_e){var bt,Pt,tn;if(bt=_e.toString(16).toUpperCase(),_e<=255)Pt="x",tn=2;else if(_e<=65535)Pt="u",tn=4;else{if(!(_e<=4294967295))throw new de("code point within a string may not be greater than 0xFFFFFFFF");Pt="U",tn=8}return"\\"+Pt+be.repeat("0",tn-bt.length)+bt}function yl(_e){this.schema=_e.schema||ye,this.indent=Math.max(1,_e.indent||2),this.noArrayIndent=_e.noArrayIndent||!1,this.skipInvalid=_e.skipInvalid||!1,this.flowLevel=be.isNothing(_e.flowLevel)?-1:_e.flowLevel,this.styleMap=function tl(_e,bt){var Pt,tn,Kt,Lt,pn,Jt,Je;if(null===bt)return{};for(Pt={},Kt=0,Lt=(tn=Object.keys(bt)).length;Kt0?_e.charCodeAt(Lt-1):null,Br=Br&&na(pn,Jt)}else{for(Lt=0;Lt<_e.length;Lt++){if((pn=_e.charCodeAt(Lt))===se)Je=!0,St&&(Qe=Qe||Lt-kn-1>tn&&" "!==_e[kn+1],kn=Lt);else if(!Ss(pn))return il;Jt=Lt>0?_e.charCodeAt(Lt-1):null,Br=Br&&na(pn,Jt)}Qe=Qe||St&&Lt-kn-1>tn&&" "!==_e[kn+1]}return Je||Qe?Pt>9&&Ls(_e)?il:Qe?Cu:Vl:Br&&!Kt(_e)?ds:ia}(bt,tn||_e.flowLevel>-1&&Pt>=_e.flowLevel,_e.indent,Lt,function Jt(Je){return function Kr(_e,bt){var Pt,tn;for(Pt=0,tn=_e.implicitTypes.length;Pt"+Hl(bt,_e.indent)+Ne(cc(function Y(_e,bt){for(var Lt,pn,Pt=/(\n+)([^\n]*)/g,tn=(Qe=void 0,Qe=_e.indexOf("\n"),Pt.lastIndex=Qe=-1!==Qe?Qe:_e.length,ne(_e.slice(0,Qe),bt)),Kt="\n"===_e[0]||" "===_e[0];pn=Pt.exec(_e);){var Je=pn[2];Lt=" "===Je[0],tn+=pn[1]+(Kt||Lt||""===Je?"":"\n")+ne(Je,bt),Kt=Lt}var Qe;return tn}(bt,Lt),Kt));case il:return'"'+function Le(_e){for(var Pt,tn,Kt,bt="",Lt=0;Lt<_e.length;Lt++)(Pt=_e.charCodeAt(Lt))>=55296&&Pt<=56319&&(tn=_e.charCodeAt(Lt+1))>=56320&&tn<=57343?(bt+=Zn(1024*(Pt-55296)+tn-56320+65536),Lt++):bt+=!(Kt=$t[Pt])&&Ss(Pt)?_e[Lt]:Kt||Zn(Pt);return bt}(bt)+'"';default:throw new de("impossible error: invalid scalar style")}}()}function Hl(_e,bt){var Pt=Ls(_e)?String(bt):"",tn="\n"===_e[_e.length-1];return Pt+(!tn||"\n"!==_e[_e.length-2]&&"\n"!==_e?tn?"":"-":"+")+"\n"}function Ne(_e){return"\n"===_e[_e.length-1]?_e.slice(0,-1):_e}function ne(_e,bt){if(""===_e||" "===_e[0])return _e;for(var tn,Lt,Pt=/ [^ ]/g,Kt=0,pn=0,Jt=0,Je="";tn=Pt.exec(_e);)(Jt=tn.index)-Kt>bt&&(Je+="\n"+_e.slice(Kt,Lt=pn>Kt?pn:Jt),Kt=Lt+1),pn=Jt;return Je+="\n",(Je+=_e.length-Kt>bt&&pn>Kt?_e.slice(Kt,pn)+"\n"+_e.slice(pn+1):_e.slice(Kt)).slice(1)}function M(_e,bt,Pt){var tn,Kt,Lt,pn,Jt,Je;for(Lt=0,pn=(Kt=Pt?_e.explicitTypes:_e.implicitTypes).length;Lt tag resolver accepts not "'+Je+'" style');tn=Jt.represent[Je](bt,Je)}_e.dump=tn}return!0}return!1}function at(_e,bt,Pt,tn,Kt,Lt){_e.tag=null,_e.dump=Pt,M(_e,Pt,!1)||M(_e,Pt,!0);var pn=ee.call(_e.dump);tn&&(tn=_e.flowLevel<0||_e.flowLevel>bt);var Je,Qe,Jt="[object Object]"===pn||"[object Array]"===pn;if(Jt&&(Qe=-1!==(Je=_e.duplicates.indexOf(Pt))),(null!==_e.tag&&"?"!==_e.tag||Qe||2!==_e.indent&&bt>0)&&(Kt=!1),Qe&&_e.usedDuplicates[Je])_e.dump="*ref_"+Je;else{if(Jt&&Qe&&!_e.usedDuplicates[Je]&&(_e.usedDuplicates[Je]=!0),"[object Object]"===pn)tn&&0!==Object.keys(_e.dump).length?(function ar(_e,bt,Pt,tn){var Jt,Je,Qe,St,kn,Br,Kt="",Lt=_e.tag,pn=Object.keys(Pt);if(!0===_e.sortKeys)pn.sort();else if("function"==typeof _e.sortKeys)pn.sort(_e.sortKeys);else if(_e.sortKeys)throw new de("sortKeys must be a boolean or a function");for(Jt=0,Je=pn.length;Jt1024)&&(_e.dump&&se===_e.dump.charCodeAt(0)?Br+="?":Br+="? "),Br+=_e.dump,kn&&(Br+=uo(_e,bt)),at(_e,bt+1,St,!0,kn)&&(_e.dump&&se===_e.dump.charCodeAt(0)?Br+=":":Br+=": ",Kt+=Br+=_e.dump));_e.tag=Lt,_e.dump=Kt||"{}"}(_e,bt,_e.dump,Kt),Qe&&(_e.dump="&ref_"+Je+_e.dump)):(function nn(_e,bt,Pt){var pn,Jt,Je,Qe,St,tn="",Kt=_e.tag,Lt=Object.keys(Pt);for(pn=0,Jt=Lt.length;pn1024&&(St+="? "),St+=_e.dump+(_e.condenseFlow?'"':"")+":"+(_e.condenseFlow?"":" "),at(_e,bt,Qe,!1,!1)&&(tn+=St+=_e.dump));_e.tag=Kt,_e.dump="{"+tn+"}"}(_e,bt,_e.dump),Qe&&(_e.dump="&ref_"+Je+" "+_e.dump));else if("[object Array]"===pn){var St=_e.noArrayIndent&&bt>0?bt-1:bt;tn&&0!==_e.dump.length?(function qt(_e,bt,Pt,tn){var pn,Jt,Kt="",Lt=_e.tag;for(pn=0,Jt=Pt.length;pn "+_e.dump)}return!0}function Mt(_e,bt){var Kt,Lt,Pt=[],tn=[];for(Yt(_e,Pt,tn),Kt=0,Lt=tn.length;Kt{"use strict";function Xe(ue,be){Error.call(this),this.name="YAMLException",this.reason=ue,this.mark=be,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Xe.prototype=Object.create(Error.prototype)).constructor=Xe,Xe.prototype.toString=function(be){var de=this.name+": ";return de+=this.reason||"(unknown reason)",!be&&this.mark&&(de+=" "+this.mark.toString()),de},Et.exports=Xe},7840:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(314),ye=ue(48),he=ue(3031),ee=ue(7094),Se=Object.prototype.hasOwnProperty,we=1,se=2,K=3,re=4,ie=1,k=2,T=3,I=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Z=/[\x85\u2028\u2029]/,Ae=/[,\[\]\{\}]/,Ue=/^(?:!|!!|![a-z\-]+!)$/i,ut=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ht(M){return Object.prototype.toString.call(M)}function yt(M){return 10===M||13===M}function Zt(M){return 9===M||32===M}function Wt(M){return 9===M||32===M||10===M||13===M}function Qt(M){return 44===M||91===M||93===M||123===M||125===M}function An(M){var at;return 48<=M&&M<=57?M-48:97<=(at=32|M)&&at<=102?at-97+10:-1}function Cn(M){return 120===M?2:117===M?4:85===M?8:0}function Sn(M){return 48<=M&&M<=57?M-48:-1}function mi(M){return 48===M?"\0":97===M?"\x07":98===M?"\b":116===M||9===M?"\t":110===M?"\n":118===M?"\v":102===M?"\f":114===M?"\r":101===M?"\x1b":32===M?" ":34===M?'"':47===M?"/":92===M?"\\":78===M?"\x85":95===M?"\xa0":76===M?"\u2028":80===M?"\u2029":""}function fn(M){return M<=65535?String.fromCharCode(M):String.fromCharCode(55296+(M-65536>>10),56320+(M-65536&1023))}for(var qn=new Array(256),fi=new Array(256),$t=0;$t<256;$t++)qn[$t]=mi($t)?1:0,fi[$t]=mi($t);function ta(M,at){this.input=M,this.filename=at.filename||null,this.schema=at.schema||ee,this.onWarning=at.onWarning||null,this.legacy=at.legacy||!1,this.json=at.json||!1,this.listener=at.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=M.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function tl(M,at){return new de(at,new ye(M.filename,M.input,M.position,M.line,M.position-M.lineStart))}function Zn(M,at){throw tl(M,at)}function yl(M,at){M.onWarning&&M.onWarning.call(null,tl(M,at))}var cc={YAML:function(at,Mt,Yt){var zt,vn,_e;null!==at.version&&Zn(at,"duplication of %YAML directive"),1!==Yt.length&&Zn(at,"YAML directive accepts exactly one argument"),null===(zt=/^([0-9]+)\.([0-9]+)$/.exec(Yt[0]))&&Zn(at,"ill-formed argument of the YAML directive"),vn=parseInt(zt[1],10),_e=parseInt(zt[2],10),1!==vn&&Zn(at,"unacceptable YAML version of the document"),at.version=Yt[0],at.checkLineBreaks=_e<2,1!==_e&&2!==_e&&yl(at,"unsupported YAML version of the document")},TAG:function(at,Mt,Yt){var zt,vn;2!==Yt.length&&Zn(at,"TAG directive accepts exactly two arguments"),vn=Yt[1],Ue.test(zt=Yt[0])||Zn(at,"ill-formed tag handle (first argument) of the TAG directive"),Se.call(at.tagMap,zt)&&Zn(at,'there is a previously declared suffix for "'+zt+'" tag handle'),ut.test(vn)||Zn(at,"ill-formed tag prefix (second argument) of the TAG directive"),at.tagMap[zt]=vn}};function uo(M,at,Mt,Yt){var zt,vn,_e,bt;if(at1&&(M.result+=be.repeat("\n",at-1))}function il(M,at){var Mt,Pt,Yt=M.tag,zt=M.anchor,vn=[],bt=!1;for(null!==M.anchor&&(M.anchorMap[M.anchor]=vn),Pt=M.input.charCodeAt(M.position);0!==Pt&&45===Pt&&Wt(M.input.charCodeAt(M.position+1));)if(bt=!0,M.position++,Wr(M,!0,-1)&&M.lineIndent<=at)vn.push(null),Pt=M.input.charCodeAt(M.position);else if(Mt=M.line,Y(M,at,K,!1,!0),vn.push(M.result),Wr(M,!0,-1),Pt=M.input.charCodeAt(M.position),(M.line===Mt||M.lineIndent>at)&&0!==Pt)Zn(M,"bad indentation of a sequence entry");else if(M.lineIndentat?Pt=1:M.lineIndent===at?Pt=0:M.lineIndentat?Pt=1:M.lineIndent===at?Pt=0:M.lineIndentat)&&(Y(M,at,re,!0,zt)&&(Je?pn=M.result:Jt=M.result),Je||(Gr(M,tn,Kt,Lt,pn,Jt,vn,_e),Lt=pn=Jt=null),Wr(M,!0,-1),St=M.input.charCodeAt(M.position)),M.lineIndent>at&&0!==St)Zn(M,"bad indentation of a mapping entry");else if(M.lineIndent=0))break;0===Kt?Zn(M,"bad explicit indentation width of a block scalar; it cannot be less than one"):_e?Zn(M,"repeat of an indentation width identifier"):(bt=at+Kt-1,_e=!0)}if(Zt(Lt)){do{Lt=M.input.charCodeAt(++M.position)}while(Zt(Lt));if(35===Lt)do{Lt=M.input.charCodeAt(++M.position)}while(!yt(Lt)&&0!==Lt)}for(;0!==Lt;){for(Ss(M),M.lineIndent=0,Lt=M.input.charCodeAt(M.position);(!_e||M.lineIndentbt&&(bt=M.lineIndent),yt(Lt))Pt++;else{if(M.lineIndent0){for(zt=_e,vn=0;zt>0;zt--)(_e=An(bt=M.input.charCodeAt(++M.position)))>=0?vn=(vn<<4)+_e:Zn(M,"expected hexadecimal character");M.result+=fn(vn),M.position++}else Zn(M,"unknown escape sequence");Mt=Yt=M.position}else yt(bt)?(uo(M,Mt,Yt,!0),nl(M,Wr(M,!1,at)),Mt=Yt=M.position):M.position===M.lineStart&&na(M)?Zn(M,"unexpected end of the document within a double quoted scalar"):(M.position++,Yt=M.position)}Zn(M,"unexpected end of the stream within a double quoted scalar")}(M,Je)?Kt=!0:function Ne(M){var at,Mt,Yt;if(42!==(Yt=M.input.charCodeAt(M.position)))return!1;for(Yt=M.input.charCodeAt(++M.position),at=M.position;0!==Yt&&!Wt(Yt)&&!Qt(Yt);)Yt=M.input.charCodeAt(++M.position);return M.position===at&&Zn(M,"name of an alias node must contain at least one character"),Mt=M.input.slice(at,M.position),Se.call(M.anchorMap,Mt)||Zn(M,'unidentified alias "'+Mt+'"'),M.result=M.anchorMap[Mt],Wr(M,!0,-1),!0}(M)?(Kt=!0,(null!==M.tag||null!==M.anchor)&&Zn(M,"alias node should not have any properties")):function Ls(M,at,Mt){var zt,vn,_e,bt,Pt,tn,Kt,Jt,Lt=M.kind,pn=M.result;if(Wt(Jt=M.input.charCodeAt(M.position))||Qt(Jt)||35===Jt||38===Jt||42===Jt||33===Jt||124===Jt||62===Jt||39===Jt||34===Jt||37===Jt||64===Jt||96===Jt||(63===Jt||45===Jt)&&(Wt(zt=M.input.charCodeAt(M.position+1))||Mt&&Qt(zt)))return!1;for(M.kind="scalar",M.result="",vn=_e=M.position,bt=!1;0!==Jt;){if(58===Jt){if(Wt(zt=M.input.charCodeAt(M.position+1))||Mt&&Qt(zt))break}else if(35===Jt){if(Wt(M.input.charCodeAt(M.position-1)))break}else{if(M.position===M.lineStart&&na(M)||Mt&&Qt(Jt))break;if(yt(Jt)){if(Pt=M.line,tn=M.lineStart,Kt=M.lineIndent,Wr(M,!1,-1),M.lineIndent>=at){bt=!0,Jt=M.input.charCodeAt(M.position);continue}M.position=_e,M.line=Pt,M.lineStart=tn,M.lineIndent=Kt;break}}bt&&(uo(M,vn,_e,!1),nl(M,M.line-Pt),vn=_e=M.position,bt=!1),Zt(Jt)||(_e=M.position+1),Jt=M.input.charCodeAt(++M.position)}return uo(M,vn,_e,!1),!!M.result||(M.kind=Lt,M.result=pn,!1)}(M,Je,we===Mt)&&(Kt=!0,null===M.tag&&(M.tag="?")),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):0===Pt&&(Kt=bt&&il(M,Qe))),null!==M.tag&&"!"!==M.tag)if("?"===M.tag){for(null!==M.result&&"scalar"!==M.kind&&Zn(M,'unacceptable node kind for ! tag; it should be "scalar", not "'+M.kind+'"'),Lt=0,pn=M.implicitTypes.length;Lt tag; it should be "'+Jt.kind+'", not "'+M.kind+'"'),Jt.resolve(M.result)?(M.result=Jt.construct(M.result),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):Zn(M,"cannot resolve a node with !<"+M.tag+"> explicit tag")):Zn(M,"unknown tag !<"+M.tag+">");return null!==M.listener&&M.listener("close",M),null!==M.tag||null!==M.anchor||Kt}function ne(M){var Mt,Yt,zt,_e,at=M.position,vn=!1;for(M.version=null,M.checkLineBreaks=M.legacy,M.tagMap={},M.anchorMap={};0!==(_e=M.input.charCodeAt(M.position))&&(Wr(M,!0,-1),_e=M.input.charCodeAt(M.position),!(M.lineIndent>0||37!==_e));){for(vn=!0,_e=M.input.charCodeAt(++M.position),Mt=M.position;0!==_e&&!Wt(_e);)_e=M.input.charCodeAt(++M.position);for(zt=[],(Yt=M.input.slice(Mt,M.position)).length<1&&Zn(M,"directive name must not be less than one character in length");0!==_e;){for(;Zt(_e);)_e=M.input.charCodeAt(++M.position);if(35===_e){do{_e=M.input.charCodeAt(++M.position)}while(0!==_e&&!yt(_e));break}if(yt(_e))break;for(Mt=M.position;0!==_e&&!Wt(_e);)_e=M.input.charCodeAt(++M.position);zt.push(M.input.slice(Mt,M.position))}0!==_e&&Ss(M),Se.call(cc,Yt)?cc[Yt](M,Yt,zt):yl(M,'unknown document directive "'+Yt+'"')}Wr(M,!0,-1),0===M.lineIndent&&45===M.input.charCodeAt(M.position)&&45===M.input.charCodeAt(M.position+1)&&45===M.input.charCodeAt(M.position+2)?(M.position+=3,Wr(M,!0,-1)):vn&&Zn(M,"directives end mark is expected"),Y(M,M.lineIndent-1,re,!1,!0),Wr(M,!0,-1),M.checkLineBreaks&&Z.test(M.input.slice(at,M.position))&&yl(M,"non-ASCII line breaks are interpreted as content"),M.documents.push(M.result),M.position===M.lineStart&&na(M)?46===M.input.charCodeAt(M.position)&&(M.position+=3,Wr(M,!0,-1)):M.position"u"&&(Mt=at,at=null);var Yt=Le(M,Mt);if("function"!=typeof at)return Yt;for(var zt=0,vn=Yt.length;zt"u"&&(Mt=at,at=null),it(M,at,be.extend({schema:he},Mt))},Et.exports.safeLoad=function ar(M,at){return qt(M,be.extend({schema:he},at))}},48:(Et,Xe,ue)=>{"use strict";var be=ue(997);function de(ye,he,ee,Se,we){this.name=ye,this.buffer=he,this.position=ee,this.line=Se,this.column=we}de.prototype.getSnippet=function(he,ee){var Se,we,se,K,re;if(!this.buffer)return null;for(he=he||4,ee=ee||75,Se="",we=this.position;we>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(we-1));)if(this.position-(we-=1)>ee/2-1){Se=" ... ",we+=5;break}for(se="",K=this.position;Kee/2-1){se=" ... ",K-=5;break}return re=this.buffer.slice(we,K),be.repeat(" ",he)+Se+re+se+"\n"+be.repeat(" ",he+this.position-we+Se.length)+"^"},de.prototype.toString=function(he){var ee,Se="";return this.name&&(Se+='in "'+this.name+'" '),Se+="at line "+(this.line+1)+", column "+(this.column+1),he||(ee=this.getSnippet())&&(Se+=":\n"+ee),Se},Et.exports=de},372:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(314),ye=ue(7647);function he(we,se,K){var re=[];return we.include.forEach(function(ie){K=he(ie,se,K)}),we[se].forEach(function(ie){K.forEach(function(k,T){k.tag===ie.tag&&k.kind===ie.kind&&re.push(T)}),K.push(ie)}),K.filter(function(ie,k){return-1===re.indexOf(k)})}function Se(we){this.include=we.include||[],this.implicit=we.implicit||[],this.explicit=we.explicit||[],this.implicit.forEach(function(se){if(se.loadKind&&"scalar"!==se.loadKind)throw new de("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=he(this,"implicit",[]),this.compiledExplicit=he(this,"explicit",[]),this.compiledTypeMap=function ee(){var se,K,we={scalar:{},sequence:{},mapping:{},fallback:{}};function re(ie){we[ie.kind][ie.tag]=we.fallback[ie.tag]=ie}for(se=0,K=arguments.length;se{"use strict";var be=ue(372);Et.exports=new be({include:[ue(7147)]})},7094:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=be.DEFAULT=new be({include:[ue(3031)],explicit:[ue(8771),ue(632),ue(716)]})},3031:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({include:[ue(3192)],implicit:[ue(6934),ue(9996)],explicit:[ue(6486),ue(7166),ue(7711),ue(8738)]})},8746:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({explicit:[ue(3464),ue(2322),ue(3071)]})},7147:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({include:[ue(8746)],implicit:[ue(9568),ue(8911),ue(7877),ue(8615)]})},7647:(Et,Xe,ue)=>{"use strict";var be=ue(314),de=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ye=["scalar","sequence","mapping"];Et.exports=function ee(Se,we){if(we=we||{},Object.keys(we).forEach(function(se){if(-1===de.indexOf(se))throw new be('Unknown option "'+se+'" is met in definition of "'+Se+'" YAML type.')}),this.tag=Se,this.kind=we.kind||null,this.resolve=we.resolve||function(){return!0},this.construct=we.construct||function(se){return se},this.instanceOf=we.instanceOf||null,this.predicate=we.predicate||null,this.represent=we.represent||null,this.defaultStyle=we.defaultStyle||null,this.styleAliases=function he(Se){var we={};return null!==Se&&Object.keys(Se).forEach(function(se){Se[se].forEach(function(K){we[String(K)]=se})}),we}(we.styleAliases||null),-1===ye.indexOf(this.kind))throw new be('Unknown kind "'+this.kind+'" is specified for "'+Se+'" YAML type.')}},6486:(Et,Xe,ue)=>{"use strict";var be;try{be=ue(3172).lW}catch{}var ye=ue(7647),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Et.exports=new ye("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function ee(K){if(null===K)return!1;var re,ie,k=0,T=K.length,I=he;for(ie=0;ie64)){if(re<0)return!1;k+=6}return k%8==0},construct:function Se(K){var re,ie,k=K.replace(/[\r\n=]/g,""),T=k.length,I=he,Z=0,Ae=[];for(re=0;re>16&255),Ae.push(Z>>8&255),Ae.push(255&Z)),Z=Z<<6|I.indexOf(k.charAt(re));return 0==(ie=T%4*6)?(Ae.push(Z>>16&255),Ae.push(Z>>8&255),Ae.push(255&Z)):18===ie?(Ae.push(Z>>10&255),Ae.push(Z>>2&255)):12===ie&&Ae.push(Z>>4&255),be?be.from?be.from(Ae):new be(Ae):Ae},predicate:function se(K){return be&&be.isBuffer(K)},represent:function we(K){var k,T,re="",ie=0,I=K.length,Z=he;for(k=0;k>18&63],re+=Z[ie>>12&63],re+=Z[ie>>6&63],re+=Z[63&ie]),ie=(ie<<8)+K[k];return 0==(T=I%3)?(re+=Z[ie>>18&63],re+=Z[ie>>12&63],re+=Z[ie>>6&63],re+=Z[63&ie]):2===T?(re+=Z[ie>>10&63],re+=Z[ie>>4&63],re+=Z[ie<<2&63],re+=Z[64]):1===T&&(re+=Z[ie>>2&63],re+=Z[ie<<4&63],re+=Z[64],re+=Z[64]),re}})},8911:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function de(ee){if(null===ee)return!1;var Se=ee.length;return 4===Se&&("true"===ee||"True"===ee||"TRUE"===ee)||5===Se&&("false"===ee||"False"===ee||"FALSE"===ee)},construct:function ye(ee){return"true"===ee||"True"===ee||"TRUE"===ee},predicate:function he(ee){return"[object Boolean]"===Object.prototype.toString.call(ee)},represent:{lowercase:function(ee){return ee?"true":"false"},uppercase:function(ee){return ee?"TRUE":"FALSE"},camelcase:function(ee){return ee?"True":"False"}},defaultStyle:"lowercase"})},8615:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(7647),ye=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Se=/^[-+]?[0-9]+e/;Et.exports=new de("tag:yaml.org,2002:float",{kind:"scalar",resolve:function he(K){return!(null===K||!ye.test(K)||"_"===K[K.length-1])},construct:function ee(K){var re,ie,k,T;return ie="-"===(re=K.replace(/_/g,"").toLowerCase())[0]?-1:1,T=[],"+-".indexOf(re[0])>=0&&(re=re.slice(1)),".inf"===re?1===ie?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===re?NaN:re.indexOf(":")>=0?(re.split(":").forEach(function(I){T.unshift(parseFloat(I,10))}),re=0,k=1,T.forEach(function(I){re+=I*k,k*=60}),ie*re):ie*parseFloat(re,10)},predicate:function se(K){return"[object Number]"===Object.prototype.toString.call(K)&&(K%1!=0||be.isNegativeZero(K))},represent:function we(K,re){var ie;if(isNaN(K))switch(re){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===K)switch(re){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===K)switch(re){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(be.isNegativeZero(K))return"-0.0";return ie=K.toString(10),Se.test(ie)?ie.replace("e",".e"):ie},defaultStyle:"lowercase"})},7877:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(7647);function ye(K){return 48<=K&&K<=57||65<=K&&K<=70||97<=K&&K<=102}function he(K){return 48<=K&&K<=55}function ee(K){return 48<=K&&K<=57}Et.exports=new de("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Se(K){if(null===K)return!1;var T,re=K.length,ie=0,k=!1;if(!re)return!1;if(("-"===(T=K[ie])||"+"===T)&&(T=K[++ie]),"0"===T){if(ie+1===re)return!0;if("b"===(T=K[++ie])){for(ie++;ie=0?"0b"+K.toString(2):"-0b"+K.toString(2).slice(1)},octal:function(K){return K>=0?"0"+K.toString(8):"-0"+K.toString(8).slice(1)},decimal:function(K){return K.toString(10)},hexadecimal:function(K){return K>=0?"0x"+K.toString(16).toUpperCase():"-0x"+K.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Et,Xe,ue)=>{"use strict";var be;try{be=ue(7797)}catch{typeof window<"u"&&(be=window.esprima)}var ye=ue(7647);Et.exports=new ye("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function he(se){if(null===se)return!1;try{var re=be.parse("("+se+")",{range:!0});return!("Program"!==re.type||1!==re.body.length||"ExpressionStatement"!==re.body[0].type||"ArrowFunctionExpression"!==re.body[0].expression.type&&"FunctionExpression"!==re.body[0].expression.type)}catch{return!1}},construct:function ee(se){var k,K="("+se+")",re=be.parse(K,{range:!0}),ie=[];if("Program"!==re.type||1!==re.body.length||"ExpressionStatement"!==re.body[0].type||"ArrowFunctionExpression"!==re.body[0].expression.type&&"FunctionExpression"!==re.body[0].expression.type)throw new Error("Failed to resolve function");return re.body[0].expression.params.forEach(function(T){ie.push(T.name)}),k=re.body[0].expression.body.range,new Function(ie,"BlockStatement"===re.body[0].expression.body.type?K.slice(k[0]+1,k[1]-1):"return "+K.slice(k[0],k[1]))},predicate:function we(se){return"[object Function]"===Object.prototype.toString.call(se)},represent:function Se(se){return se.toString()}})},632:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function de(Se){if(null===Se||0===Se.length)return!1;var we=Se,se=/\/([gim]*)$/.exec(Se),K="";return!("/"===we[0]&&(se&&(K=se[1]),K.length>3||"/"!==we[we.length-K.length-1]))},construct:function ye(Se){var we=Se,se=/\/([gim]*)$/.exec(Se),K="";return"/"===we[0]&&(se&&(K=se[1]),we=we.slice(1,we.length-K.length-1)),new RegExp(we,K)},predicate:function ee(Se){return"[object RegExp]"===Object.prototype.toString.call(Se)},represent:function he(Se){var we="/"+Se.source+"/";return Se.global&&(we+="g"),Se.multiline&&(we+="m"),Se.ignoreCase&&(we+="i"),we}})},8771:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function de(){return!0},construct:function ye(){},predicate:function ee(Se){return typeof Se>"u"},represent:function he(){return""}})},3071:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:map",{kind:"mapping",construct:function(de){return null!==de?de:{}}})},9996:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function de(ye){return"<<"===ye||null===ye}})},9568:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:null",{kind:"scalar",resolve:function de(ee){if(null===ee)return!0;var Se=ee.length;return 1===Se&&"~"===ee||4===Se&&("null"===ee||"Null"===ee||"NULL"===ee)},construct:function ye(){return null},predicate:function he(ee){return null===ee},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},7166:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=Object.prototype.hasOwnProperty,ye=Object.prototype.toString;Et.exports=new be("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function he(Se){if(null===Se)return!0;var se,K,re,ie,k,we=[],T=Se;for(se=0,K=T.length;se{"use strict";var be=ue(7647),de=Object.prototype.toString;Et.exports=new be("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function ye(ee){if(null===ee)return!0;var Se,we,se,K,re,ie=ee;for(re=new Array(ie.length),Se=0,we=ie.length;Se{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(de){return null!==de?de:[]}})},8738:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=Object.prototype.hasOwnProperty;Et.exports=new be("tag:yaml.org,2002:set",{kind:"mapping",resolve:function ye(ee){if(null===ee)return!0;var Se,we=ee;for(Se in we)if(de.call(we,Se)&&null!==we[Se])return!1;return!0},construct:function he(ee){return null!==ee?ee:{}}})},3464:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:str",{kind:"scalar",construct:function(de){return null!==de?de:""}})},6934:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ye=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Et.exports=new be("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function he(we){return null!==we&&(null!==de.exec(we)||null!==ye.exec(we))},construct:function ee(we){var se,K,re,ie,k,T,I,ht,Z=0,Ae=null;if(null===(se=de.exec(we))&&(se=ye.exec(we)),null===se)throw new Error("Date resolve error");if(K=+se[1],re=+se[2]-1,ie=+se[3],!se[4])return new Date(Date.UTC(K,re,ie));if(k=+se[4],T=+se[5],I=+se[6],se[7]){for(Z=se[7].slice(0,3);Z.length<3;)Z+="0";Z=+Z}return se[9]&&(Ae=6e4*(60*+se[10]+ +(se[11]||0)),"-"===se[9]&&(Ae=-Ae)),ht=new Date(Date.UTC(K,re,ie,k,T,I,Z)),Ae&&ht.setTime(ht.getTime()-Ae),ht},instanceOf:Date,represent:function Se(we){return we.toISOString()}})},3259:(Et,Xe,ue)=>{const de=ue(8695),ye=ue(1465),he=ue(3210),ee=ue(2334);function Se(we,se,K,re,ie){const k=[].slice.call(arguments,1),T=k.length,I="function"==typeof k[T-1];if(!I&&!de())throw new Error("Callback required as last argument");if(!I){if(T<1)throw new Error("Too few arguments provided");return 1===T?(K=se,se=re=void 0):2===T&&!se.getContext&&(re=K,K=se,se=void 0),new Promise(function(Z,Ae){try{const Ue=ye.create(K,re);Z(we(Ue,se,re))}catch(Ue){Ae(Ue)}})}if(T<2)throw new Error("Too few arguments provided");2===T?(ie=K,K=se,se=re=void 0):3===T&&(se.getContext&&typeof ie>"u"?(ie=re,re=void 0):(ie=re,re=K,K=se,se=void 0));try{const Z=ye.create(K,re);ie(null,we(Z,se,re))}catch(Z){ie(Z)}}Xe.rT=Se.bind(null,he.render),Xe.hz=Se.bind(null,he.renderToDataURL),Xe.toString=Se.bind(null,function(we,se,K){return ee.render(we,K)})},8695:Et=>{Et.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Et,Xe,ue)=>{const be=ue(4792).getSymbolSize;Xe.getRowColCoords=function(ye){if(1===ye)return[];const he=Math.floor(ye/7)+2,ee=be(ye),Se=145===ee?26:2*Math.ceil((ee-13)/(2*he-2)),we=[ee-7];for(let se=1;se{const be=ue(4016),de=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ye(he){this.mode=be.ALPHANUMERIC,this.data=he}ye.getBitsLength=function(ee){return 11*Math.floor(ee/2)+ee%2*6},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(ee){let Se;for(Se=0;Se+2<=this.data.length;Se+=2){let we=45*de.indexOf(this.data[Se]);we+=de.indexOf(this.data[Se+1]),ee.put(we,11)}this.data.length%2&&ee.put(de.indexOf(this.data[Se]),6)},Et.exports=ye},2118:Et=>{function Xe(){this.buffer=[],this.length=0}Xe.prototype={get:function(ue){const be=Math.floor(ue/8);return 1==(this.buffer[be]>>>7-ue%8&1)},put:function(ue,be){for(let de=0;de>>be-de-1&1))},getLengthInBits:function(){return this.length},putBit:function(ue){const be=Math.floor(this.length/8);this.buffer.length<=be&&this.buffer.push(0),ue&&(this.buffer[be]|=128>>>this.length%8),this.length++}},Et.exports=Xe},4425:Et=>{function Xe(ue){if(!ue||ue<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=ue,this.data=new Uint8Array(ue*ue),this.reservedBit=new Uint8Array(ue*ue)}Xe.prototype.set=function(ue,be,de,ye){const he=ue*this.size+be;this.data[he]=de,ye&&(this.reservedBit[he]=!0)},Xe.prototype.get=function(ue,be){return this.data[ue*this.size+be]},Xe.prototype.xor=function(ue,be,de){this.data[ue*this.size+be]^=de},Xe.prototype.isReserved=function(ue,be){return this.reservedBit[ue*this.size+be]},Et.exports=Xe},5663:(Et,Xe,ue)=>{const be=ue(8419),de=ue(4016);function ye(he){this.mode=de.BYTE,"string"==typeof he&&(he=be(he)),this.data=new Uint8Array(he)}ye.getBitsLength=function(ee){return 8*ee},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(he){for(let ee=0,Se=this.data.length;ee{const be=ue(2259),de=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],ye=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Xe.getBlocksCount=function(ee,Se){switch(Se){case be.L:return de[4*(ee-1)+0];case be.M:return de[4*(ee-1)+1];case be.Q:return de[4*(ee-1)+2];case be.H:return de[4*(ee-1)+3];default:return}},Xe.getTotalCodewordsCount=function(ee,Se){switch(Se){case be.L:return ye[4*(ee-1)+0];case be.M:return ye[4*(ee-1)+1];case be.Q:return ye[4*(ee-1)+2];case be.H:return ye[4*(ee-1)+3];default:return}}},2259:(Et,Xe)=>{Xe.L={bit:1},Xe.M={bit:0},Xe.Q={bit:3},Xe.H={bit:2},Xe.isValid=function(de){return de&&typeof de.bit<"u"&&de.bit>=0&&de.bit<4},Xe.from=function(de,ye){if(Xe.isValid(de))return de;try{return function ue(be){if("string"!=typeof be)throw new Error("Param is not a string");switch(be.toLowerCase()){case"l":case"low":return Xe.L;case"m":case"medium":return Xe.M;case"q":case"quartile":return Xe.Q;case"h":case"high":return Xe.H;default:throw new Error("Unknown EC Level: "+be)}}(de)}catch{return ye}}},3114:(Et,Xe,ue)=>{const be=ue(4792).getSymbolSize;Xe.getPositions=function(he){const ee=be(he);return[[0,0],[ee-7,0],[0,ee-7]]}},7078:(Et,Xe,ue)=>{const be=ue(4792),he=be.getBCHDigit(1335);Xe.getEncodedBits=function(Se,we){const se=Se.bit<<3|we;let K=se<<10;for(;be.getBCHDigit(K)-he>=0;)K^=1335<{const ue=new Uint8Array(512),be=new Uint8Array(256);(function(){let ye=1;for(let he=0;he<255;he++)ue[he]=ye,be[ye]=he,ye<<=1,256&ye&&(ye^=285);for(let he=255;he<512;he++)ue[he]=ue[he-255]})(),Xe.log=function(ye){if(ye<1)throw new Error("log("+ye+")");return be[ye]},Xe.exp=function(ye){return ue[ye]},Xe.mul=function(ye,he){return 0===ye||0===he?0:ue[be[ye]+be[he]]}},449:(Et,Xe,ue)=>{const be=ue(4016),de=ue(4792);function ye(he){this.mode=be.KANJI,this.data=he}ye.getBitsLength=function(ee){return 13*ee},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(he){let ee;for(ee=0;ee=33088&&Se<=40956)Se-=33088;else{if(!(Se>=57408&&Se<=60351))throw new Error("Invalid SJIS character: "+this.data[ee]+"\nMake sure your charset is UTF-8");Se-=49472}Se=192*(Se>>>8&255)+(255&Se),he.put(Se,13)}},Et.exports=ye},3667:(Et,Xe)=>{Xe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function be(de,ye,he){switch(de){case Xe.Patterns.PATTERN000:return(ye+he)%2==0;case Xe.Patterns.PATTERN001:return ye%2==0;case Xe.Patterns.PATTERN010:return he%3==0;case Xe.Patterns.PATTERN011:return(ye+he)%3==0;case Xe.Patterns.PATTERN100:return(Math.floor(ye/2)+Math.floor(he/3))%2==0;case Xe.Patterns.PATTERN101:return ye*he%2+ye*he%3==0;case Xe.Patterns.PATTERN110:return(ye*he%2+ye*he%3)%2==0;case Xe.Patterns.PATTERN111:return(ye*he%3+(ye+he)%2)%2==0;default:throw new Error("bad maskPattern:"+de)}}Xe.isValid=function(ye){return null!=ye&&""!==ye&&!isNaN(ye)&&ye>=0&&ye<=7},Xe.from=function(ye){return Xe.isValid(ye)?parseInt(ye,10):void 0},Xe.getPenaltyN1=function(ye){const he=ye.size;let ee=0,Se=0,we=0,se=null,K=null;for(let re=0;re=5&&(ee+=Se-5+3),se=k,Se=1),k=ye.get(ie,re),k===K?we++:(we>=5&&(ee+=we-5+3),K=k,we=1)}Se>=5&&(ee+=Se-5+3),we>=5&&(ee+=we-5+3)}return ee},Xe.getPenaltyN2=function(ye){const he=ye.size;let ee=0;for(let Se=0;Se=10&&(1488===Se||93===Se)&&ee++,we=we<<1&2047|ye.get(K,se),K>=10&&(1488===we||93===we)&&ee++}return 40*ee},Xe.getPenaltyN4=function(ye){let he=0;const ee=ye.data.length;for(let we=0;we{const be=ue(4406),de=ue(2699);Xe.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Xe.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Xe.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Xe.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Xe.MIXED={bit:-1},Xe.getCharCountIndicator=function(ee,Se){if(!ee.ccBits)throw new Error("Invalid mode: "+ee);if(!be.isValid(Se))throw new Error("Invalid version: "+Se);return Se>=1&&Se<10?ee.ccBits[0]:Se<27?ee.ccBits[1]:ee.ccBits[2]},Xe.getBestModeForData=function(ee){return de.testNumeric(ee)?Xe.NUMERIC:de.testAlphanumeric(ee)?Xe.ALPHANUMERIC:de.testKanji(ee)?Xe.KANJI:Xe.BYTE},Xe.toString=function(ee){if(ee&&ee.id)return ee.id;throw new Error("Invalid mode")},Xe.isValid=function(ee){return ee&&ee.bit&&ee.ccBits},Xe.from=function(ee,Se){if(Xe.isValid(ee))return ee;try{return function ye(he){if("string"!=typeof he)throw new Error("Param is not a string");switch(he.toLowerCase()){case"numeric":return Xe.NUMERIC;case"alphanumeric":return Xe.ALPHANUMERIC;case"kanji":return Xe.KANJI;case"byte":return Xe.BYTE;default:throw new Error("Unknown mode: "+he)}}(ee)}catch{return Se}}},7783:(Et,Xe,ue)=>{const be=ue(4016);function de(ye){this.mode=be.NUMERIC,this.data=ye.toString()}de.getBitsLength=function(he){return 10*Math.floor(he/3)+(he%3?he%3*3+1:0)},de.prototype.getLength=function(){return this.data.length},de.prototype.getBitsLength=function(){return de.getBitsLength(this.data.length)},de.prototype.write=function(he){let ee,Se,we;for(ee=0;ee+3<=this.data.length;ee+=3)Se=this.data.substr(ee,3),we=parseInt(Se,10),he.put(we,10);const se=this.data.length-ee;se>0&&(Se=this.data.substr(ee),we=parseInt(Se,10),he.put(we,3*se+1))},Et.exports=de},1106:(Et,Xe,ue)=>{const be=ue(5339);Xe.mul=function(ye,he){const ee=new Uint8Array(ye.length+he.length-1);for(let Se=0;Se=0;){const Se=ee[0];for(let se=0;se{const be=ue(4792),de=ue(2259),ye=ue(2118),he=ue(4425),ee=ue(6221),Se=ue(3114),we=ue(3667),se=ue(4655),K=ue(2636),re=ue(2088),ie=ue(7078),k=ue(4016),T=ue(2033);function ut(Qt,An,Cn){const Sn=Qt.size,mi=ie.getEncodedBits(An,Cn);let fn,qn;for(fn=0;fn<15;fn++)qn=1==(mi>>fn&1),Qt.set(fn<6?fn:fn<8?fn+1:Sn-15+fn,8,qn,!0),Qt.set(8,fn<8?Sn-fn-1:fn<9?15-fn-1+1:15-fn-1,qn,!0);Qt.set(Sn-8,8,1,!0)}function Wt(Qt,An,Cn,Sn){let mi;if(Array.isArray(Qt))mi=T.fromArray(Qt);else{if("string"!=typeof Qt)throw new Error("Invalid data");{let ta=An;if(!ta){const tl=T.rawSplit(Qt);ta=re.getBestVersionForData(tl,Cn)}mi=T.fromString(Qt,ta||40)}}const fn=re.getBestVersionForData(mi,Cn);if(!fn)throw new Error("The amount of data is too big to be stored in a QR Code");if(An){if(An=0&&fi<=6&&(0===$t||6===$t)||$t>=0&&$t<=6&&(0===fi||6===fi)||fi>=2&&fi<=4&&$t>=2&&$t<=4,!0)}}($t,An),function Z(Qt){const An=Qt.size;for(let Cn=8;Cn=7&&function Ue(Qt,An){const Cn=Qt.size,Sn=re.getEncodedBits(An);let mi,fn,qn;for(let fi=0;fi<18;fi++)mi=Math.floor(fi/3),fn=fi%3+Cn-8-3,qn=1==(Sn>>fi&1),Qt.set(mi,fn,qn,!0),Qt.set(fn,mi,qn,!0)}($t,An),function ht(Qt,An){const Cn=Qt.size;let Sn=-1,mi=Cn-1,fn=7,qn=0;for(let fi=Cn-1;fi>0;fi-=2)for(6===fi&&fi--;;){for(let $t=0;$t<2;$t++)if(!Qt.isReserved(mi,fi-$t)){let ta=!1;qn>>fn&1)),Qt.set(mi,fi-$t,ta),fn--,-1===fn&&(qn++,fn=7)}if(mi+=Sn,mi<0||Cn<=mi){mi-=Sn,Sn=-Sn;break}}}($t,qn),isNaN(Sn)&&(Sn=we.getBestMask($t,ut.bind(null,$t,Cn))),we.applyMask(Sn,$t),ut($t,Cn,Sn),{modules:$t,version:An,errorCorrectionLevel:Cn,maskPattern:Sn,segments:mi}}Xe.create=function(An,Cn){if(typeof An>"u"||""===An)throw new Error("No input text");let mi,fn,Sn=de.M;return typeof Cn<"u"&&(Sn=de.from(Cn.errorCorrectionLevel,de.M),mi=re.from(Cn.version),fn=we.from(Cn.maskPattern),Cn.toSJISFunc&&be.setToSJISFunction(Cn.toSJISFunc)),Wt(An,mi,Sn,fn)}},2636:(Et,Xe,ue)=>{const be=ue(1106);function de(ye){this.genPoly=void 0,this.degree=ye,this.degree&&this.initialize(this.degree)}de.prototype.initialize=function(he){this.degree=he,this.genPoly=be.generateECPolynomial(this.degree)},de.prototype.encode=function(he){if(!this.genPoly)throw new Error("Encoder not initialized");const ee=new Uint8Array(he.length+this.degree);ee.set(he);const Se=be.mod(ee,this.genPoly),we=this.degree-Se.length;if(we>0){const se=new Uint8Array(this.degree);return se.set(Se,we),se}return Se},Et.exports=de},2699:(Et,Xe)=>{let de="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";de=de.replace(/u/g,"\\u");const ye="(?:(?![A-Z0-9 $%*+\\-./:]|"+de+")(?:.|[\r\n]))+";Xe.KANJI=new RegExp(de,"g"),Xe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Xe.BYTE=new RegExp(ye,"g"),Xe.NUMERIC=new RegExp("[0-9]+","g"),Xe.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const he=new RegExp("^"+de+"$"),ee=new RegExp("^[0-9]+$"),Se=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Xe.testKanji=function(se){return he.test(se)},Xe.testNumeric=function(se){return ee.test(se)},Xe.testAlphanumeric=function(se){return Se.test(se)}},2033:(Et,Xe,ue)=>{const be=ue(4016),de=ue(7783),ye=ue(2424),he=ue(5663),ee=ue(449),Se=ue(2699),we=ue(4792),se=ue(4901);function K(Ue){return unescape(encodeURIComponent(Ue)).length}function re(Ue,ut,ht){const yt=[];let Zt;for(;null!==(Zt=Ue.exec(ht));)yt.push({data:Zt[0],index:Zt.index,mode:ut,length:Zt[0].length});return yt}function ie(Ue){const ut=re(Se.NUMERIC,be.NUMERIC,Ue),ht=re(Se.ALPHANUMERIC,be.ALPHANUMERIC,Ue);let yt,Zt;return we.isKanjiModeEnabled()?(yt=re(Se.BYTE,be.BYTE,Ue),Zt=re(Se.KANJI,be.KANJI,Ue)):(yt=re(Se.BYTE_KANJI,be.BYTE,Ue),Zt=[]),ut.concat(ht,yt,Zt).sort(function(Qt,An){return Qt.index-An.index}).map(function(Qt){return{data:Qt.data,mode:Qt.mode,length:Qt.length}})}function k(Ue,ut){switch(ut){case be.NUMERIC:return de.getBitsLength(Ue);case be.ALPHANUMERIC:return ye.getBitsLength(Ue);case be.KANJI:return ee.getBitsLength(Ue);case be.BYTE:return he.getBitsLength(Ue)}}function Ae(Ue,ut){let ht;const yt=be.getBestModeForData(Ue);if(ht=be.from(ut,yt),ht!==be.BYTE&&ht.bit=0?ut[ut.length-1]:null;return yt&&yt.mode===ht.mode?(ut[ut.length-1].data+=ht.data,ut):(ut.push(ht),ut)},[])}(An))},Xe.rawSplit=function(ut){return Xe.fromArray(ie(ut,we.isKanjiModeEnabled()))}},4792:(Et,Xe)=>{let ue;const be=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Xe.getSymbolSize=function(ye){if(!ye)throw new Error('"version" cannot be null or undefined');if(ye<1||ye>40)throw new Error('"version" should be in range from 1 to 40');return 4*ye+17},Xe.getSymbolTotalCodewords=function(ye){return be[ye]},Xe.getBCHDigit=function(de){let ye=0;for(;0!==de;)ye++,de>>>=1;return ye},Xe.setToSJISFunction=function(ye){if("function"!=typeof ye)throw new Error('"toSJISFunc" is not a valid function.');ue=ye},Xe.isKanjiModeEnabled=function(){return typeof ue<"u"},Xe.toSJIS=function(ye){return ue(ye)}},4406:(Et,Xe)=>{Xe.isValid=function(be){return!isNaN(be)&&be>=1&&be<=40}},2088:(Et,Xe,ue)=>{const be=ue(4792),de=ue(4655),ye=ue(2259),he=ue(4016),ee=ue(4406),we=be.getBCHDigit(7973);function K(k,T){return he.getCharCountIndicator(k,T)+4}function re(k,T){let I=0;return k.forEach(function(Z){const Ae=K(Z.mode,T);I+=Ae+Z.getBitsLength()}),I}Xe.from=function(T,I){return ee.isValid(T)?parseInt(T,10):I},Xe.getCapacity=function(T,I,Z){if(!ee.isValid(T))throw new Error("Invalid QR Code version");typeof Z>"u"&&(Z=he.BYTE);const ut=8*(be.getSymbolTotalCodewords(T)-de.getTotalCodewordsCount(T,I));if(Z===he.MIXED)return ut;const ht=ut-K(Z,T);switch(Z){case he.NUMERIC:return Math.floor(ht/10*3);case he.ALPHANUMERIC:return Math.floor(ht/11*2);case he.KANJI:return Math.floor(ht/13);default:return Math.floor(ht/8)}},Xe.getBestVersionForData=function(T,I){let Z;const Ae=ye.from(I,ye.M);if(Array.isArray(T)){if(T.length>1)return function ie(k,T){for(let I=1;I<=40;I++)if(re(k,I)<=Xe.getCapacity(I,T,he.MIXED))return I}(T,Ae);if(0===T.length)return 1;Z=T[0]}else Z=T;return function se(k,T,I){for(let Z=1;Z<=40;Z++)if(T<=Xe.getCapacity(Z,I,k))return Z}(Z.mode,Z.getLength(),Ae)},Xe.getEncodedBits=function(T){if(!ee.isValid(T)||T<7)throw new Error("Invalid QR Code version");let I=T<<12;for(;be.getBCHDigit(I)-we>=0;)I^=7973<{const be=ue(6355);Xe.render=function(ee,Se,we){let se=we,K=Se;typeof se>"u"&&(!Se||!Se.getContext)&&(se=Se,Se=void 0),Se||(K=function ye(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),se=be.getOptions(se);const re=be.getImageWidth(ee.modules.size,se),ie=K.getContext("2d"),k=ie.createImageData(re,re);return be.qrToImageData(k.data,ee,se),function de(he,ee,Se){he.clearRect(0,0,ee.width,ee.height),ee.style||(ee.style={}),ee.height=Se,ee.width=Se,ee.style.height=Se+"px",ee.style.width=Se+"px"}(ie,K,re),ie.putImageData(k,0,0),K},Xe.renderToDataURL=function(ee,Se,we){let se=we;return typeof se>"u"&&(!Se||!Se.getContext)&&(se=Se,Se=void 0),se||(se={}),Xe.render(ee,Se,se).toDataURL(se.type||"image/png",(se.rendererOpts||{}).quality)}},2334:(Et,Xe,ue)=>{const be=ue(6355);function de(ee,Se){const we=ee.a/255,se=Se+'="'+ee.hex+'"';return we<1?se+" "+Se+'-opacity="'+we.toFixed(2).slice(1)+'"':se}function ye(ee,Se,we){let se=ee+Se;return typeof we<"u"&&(se+=" "+we),se}Xe.render=function(Se,we,se){const K=be.getOptions(we),re=Se.modules.size,ie=Se.modules.data,k=re+2*K.margin,T=K.color.light.a?"':"",I="0&&T>0&&ee[k-1]||(se+=re?ye("M",T+we,.5+I+we):ye("m",K,0),K=0,re=!1),T+1',Ue=''+T+I+"\n";return"function"==typeof se&&se(null,Ue),Ue}},6355:(Et,Xe)=>{function ue(be){if("number"==typeof be&&(be=be.toString()),"string"!=typeof be)throw new Error("Color should be defined as hex string");let de=be.slice().replace("#","").split("");if(de.length<3||5===de.length||de.length>8)throw new Error("Invalid hex color: "+be);(3===de.length||4===de.length)&&(de=Array.prototype.concat.apply([],de.map(function(he){return[he,he]}))),6===de.length&&de.push("F","F");const ye=parseInt(de.join(""),16);return{r:ye>>24&255,g:ye>>16&255,b:ye>>8&255,a:255&ye,hex:"#"+de.slice(0,6).join("")}}Xe.getOptions=function(de){de||(de={}),de.color||(de.color={});const he=de.width&&de.width>=21?de.width:void 0;return{width:he,scale:he?4:de.scale||4,margin:typeof de.margin>"u"||null===de.margin||de.margin<0?4:de.margin,color:{dark:ue(de.color.dark||"#000000ff"),light:ue(de.color.light||"#ffffffff")},type:de.type,rendererOpts:de.rendererOpts||{}}},Xe.getScale=function(de,ye){return ye.width&&ye.width>=de+2*ye.margin?ye.width/(de+2*ye.margin):ye.scale},Xe.getImageWidth=function(de,ye){const he=Xe.getScale(de,ye);return Math.floor((de+2*ye.margin)*he)},Xe.qrToImageData=function(de,ye,he){const ee=ye.modules.size,Se=ye.modules.data,we=Xe.getScale(ee,he),se=Math.floor((ee+2*he.margin)*we),K=he.margin*we,re=[he.color.light,he.color.dark];for(let ie=0;ie=K&&k>=K&&ie{Et(Et.s=5349)}]); \ No newline at end of file diff --git a/console/ui/dist/prod/static/main.a7c08c4dfc636938.js b/console/ui/dist/prod/static/main.a7c08c4dfc636938.js new file mode 100644 index 000000000..e257949ef --- /dev/null +++ b/console/ui/dist/prod/static/main.a7c08c4dfc636938.js @@ -0,0 +1 @@ +(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{5349:(Et,Xe,ue)=>{"use strict";function be(t){return"function"==typeof t}let de=!1;const ye={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else de&&console.log("RxJS: Back to a better error behavior. Thank you. <3");de=t},get useDeprecatedSynchronousErrorHandling(){return de}};function he(t){setTimeout(()=>{throw t},0)}const ee={closed:!0,next(t){},error(t){if(ye.useDeprecatedSynchronousErrorHandling)throw t;he(t)},complete(){}},Se=Array.isArray||(t=>t&&"number"==typeof t.length);function we(t){return null!==t&&"object"==typeof t}const K=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class re{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof re)e.remove(this);else if(null!==e)for(let s=0;sn.concat(e instanceof K?e.errors:e),[])}re.EMPTY=((t=new re).closed=!0,t);const k="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class I extends re{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ee;break;case 1:if(!n){this.destination=ee;break}if("object"==typeof n){n instanceof I?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new Z(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new Z(this,n,e,i)}}[k](){return this}static create(n,e,i){const r=new I(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class Z extends I{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;be(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==ee&&(s=Object.create(e),be(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ye.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ye;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):he(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;he(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);ye.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),ye.useDeprecatedSynchronousErrorHandling)throw i;he(i)}}__tryOrSetError(n,e,i){if(!ye.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return ye.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(he(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const ut="function"==typeof Symbol&&Symbol.observable||"@@observable";function ht(t){return t}function Zt(t){return 0===t.length?ht:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let Wt=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function Ue(t,n,e){if(t){if(t instanceof I)return t;if(t[k])return t[k]()}return t||n||e?new I(t,n,e):new I(ee)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||ye.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ye.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ye.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Ae(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof I?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Qt(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[ut](){return this}pipe(...e){return 0===e.length?this:Zt(e)(this)}toPromise(e){return new(e=Qt(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Qt(t){if(t||(t=ye.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Cn=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Sn extends re{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class mi extends I{constructor(n){super(n),this.destination=n}}let fn=(()=>{class t extends Wt{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[k](){return new mi(this)}lift(e){const i=new qn(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Cn;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew qn(n,e),t})();class qn extends fn{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):re.EMPTY}}function fi(t){return t&&"function"==typeof t.schedule}function $t(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ta(t,n))}}class ta{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new tl(n,this.project,this.thisArg))}}class tl extends I{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Zn=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function na(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const nl=t=>{if(t&&"function"==typeof t[ut])return(t=>n=>{const e=t[ut]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Wr(t))return Zn(t);if(na(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,he),n))(t);if(t&&"function"==typeof t[uo])return(t=>n=>{const e=t[uo]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${we(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function ia(t,n){return new Wt(e=>{const i=new re;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function ho(t,n){return n?function wa(t,n){if(null!=t){if(function Cu(t){return t&&"function"==typeof t[ut]}(t))return function Ls(t,n){return new Wt(e=>{const i=new re;return i.add(n.schedule(()=>{const r=t[ut]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(na(t))return function ds(t,n){return new Wt(e=>{const i=new re;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(Wr(t))return ia(t,n);if(function il(t){return t&&"function"==typeof t[uo]}(t)||"string"==typeof t)return function Vl(t,n){if(!t)throw new Error("Iterable cannot be null");return new Wt(e=>{const i=new re;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[uo](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof Wt?t:new Wt(nl(t))}class Hl extends I{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Y extends I{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Le(t,n){if(n.closed)return;if(t instanceof Wt)return t.subscribe(n);let e;try{e=nl(t)(n)}catch(i){n.error(i)}return e}function it(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(it((r,o)=>ho(t(r,o)).pipe($t((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new qt(t,e)))}class qt{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new nn(n,this.project,this.concurrent))}}class nn extends Y{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function M(t=Number.POSITIVE_INFINITY){return it(ht,t)}function at(t,n){return n?ia(t,n):new Wt(Zn(t))}function Mt(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return fi(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof Wt?t[0]:M(n)(at(t,e))}function Yt(){return function(n){return n.lift(new zt(n))}}class zt{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new vn(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class vn extends I{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class _e extends Wt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new re,n.add(this.source.subscribe(new Pt(this.getSubject(),this))),n.closed&&(this._connection=null,n=re.EMPTY)),n}refCount(){return Yt()(this)}}const xt=(()=>{const t=_e.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Pt extends mi{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class pn{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function Jt(){return new fn}function Je(){return t=>Yt()(function Lt(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new pn(r,n));const o=Object.create(i,xt);return o.source=i,o.subjectFactory=r,o}}(Jt)(t))}function Qe(t){for(let n in t)if(t[n]===Qe)return n;throw Error("Could not find renamed property on target object.")}function St(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function kn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(kn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Br(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const g1=Qe({__forward_ref__:Qe});function ji(t){return t.__forward_ref__=ji,t.toString=function(){return kn(this())},t}function Mi(t){return ET(t)?t():t}function ET(t){return"function"==typeof t&&t.hasOwnProperty(g1)&&t.__forward_ref__===ji}function AT(t){return t&&!!t.\u0275providers}const fx="https://g.co/ng/security#xss";class jt extends Error{constructor(n,e){super(px(n,e)),this.code=n}}function px(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function Gi(t){return"string"==typeof t?t:null==t?"":String(t)}function mx(t,n){throw new jt(-201,!1)}function io(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}function It(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Di(t){return{providers:t.providers||[],imports:t.imports||[]}}function gx(t){return hL(t,vx)||hL(t,pL)}function hL(t,n){return t.hasOwnProperty(n)?t[n]:null}function fL(t){return t&&(t.hasOwnProperty(MT)||t.hasOwnProperty(Ave))?t[MT]:null}const vx=Qe({\u0275prov:Qe}),MT=Qe({\u0275inj:Qe}),pL=Qe({ngInjectableDef:Qe}),Ave=Qe({ngInjectorDef:Qe});var Oi=(()=>((Oi=Oi||{})[Oi.Default=0]="Default",Oi[Oi.Host=1]="Host",Oi[Oi.Self=2]="Self",Oi[Oi.SkipSelf=4]="SkipSelf",Oi[Oi.Optional=8]="Optional",Oi))();let OT;function Hc(t){const n=OT;return OT=t,n}function mL(t,n,e){const i=gx(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Oi.Optional?null:void 0!==n?n:void mx(kn(t))}const Bo=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),v1={},IT="__NG_DI_FLAG__",yx="ngTempTokenPath",Ove="ngTokenPath",Ive=/\n/gm,Nve="\u0275",gL="__source";let y1;function kg(t){const n=y1;return y1=t,n}function Fve(t,n=Oi.Default){if(void 0===y1)throw new jt(-203,!1);return null===y1?mL(t,void 0,n):y1.get(t,n&Oi.Optional?null:void 0,n)}function wt(t,n=Oi.Default){return(function Mve(){return OT}()||Fve)(Mi(t),n)}function Vi(t,n=Oi.Default){return wt(t,_x(n))}function _x(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function NT(t){const n=[];for(let e=0;e((Ed=Ed||{})[Ed.OnPush=0]="OnPush",Ed[Ed.Default=1]="Default",Ed))(),Su=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Su||(Su={})),Su))();const Th={},Qr=[],bx=Qe({\u0275cmp:Qe}),FT=Qe({\u0275dir:Qe}),PT=Qe({\u0275pipe:Qe}),yL=Qe({\u0275mod:Qe}),Eh=Qe({\u0275fac:Qe}),b1=Qe({__NG_ELEMENT_ID__:Qe});let Lve=0;function Vt(t){return Dh(()=>{const n=bL(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ed.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Su.Emulated,id:"c"+Lve++,styles:t.styles||Qr,_:null,schemas:t.schemas||null,tView:null};xL(e);const i=t.dependencies;return e.directiveDefs=xx(i,!1),e.pipeDefs=xx(i,!0),e})}function $ve(t){return ro(t)||rl(t)}function Vve(t){return null!==t}function Ii(t){return Dh(()=>({type:t.type,bootstrap:t.bootstrap||Qr,declarations:t.declarations||Qr,imports:t.imports||Qr,exports:t.exports||Qr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function _L(t,n){if(null==t)return Th;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function un(t){return Dh(()=>{const n=bL(t);return xL(n),n})}function _l(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ro(t){return t[bx]||null}function rl(t){return t[FT]||null}function Ul(t){return t[PT]||null}function dc(t,n){const e=t[yL]||null;if(!e&&!0===n)throw new Error(`Type ${kn(t)} does not have '\u0275mod' property.`);return e}function bL(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||Qr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_L(t.inputs,n),outputs:_L(t.outputs)}}function xL(t){t.features?.forEach(n=>n(t))}function xx(t,n){if(!t)return null;const e=n?Ul:$ve;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(Vve)}const Ah=0,$n=1,ir=2,hs=3,ku=4,zp=5,ol=6,Tg=7,ks=8,wx=9,Cx=10,lr=11,RT=12,x1=13,wL=14,Eg=15,sl=16,w1=17,Ag=18,Ad=19,C1=20,CL=21,$o=22,jT=1,SL=2,Sx=7,kx=8,Mg=9,bl=10;function hc(t){return Array.isArray(t)&&"object"==typeof t[jT]}function Du(t){return Array.isArray(t)&&!0===t[jT]}function LT(t){return 0!=(4&t.flags)}function S1(t){return t.componentOffset>-1}function Dx(t){return 1==(1&t.flags)}function Tu(t){return!!t.template}function Uve(t){return 0!=(256&t[ir])}function Gp(t,n){return t.hasOwnProperty(Eh)?t[Eh]:null}class Wve{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ei(){return TL}function TL(t){return t.type.prototype.ngOnChanges&&(t.setInput=Yve),qve}function qve(){const t=AL(this),n=t?.current;if(n){const e=t.previous;if(e===Th)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Yve(t,n,e,i){const r=this.declaredInputs[e],o=AL(t)||function Xve(t,n){return t[EL]=n}(t,{previous:Th,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Wve(l&&l.currentValue,n,a===Th),t[i]=n}ei.ngInherit=!0;const EL="__ngSimpleChanges__";function AL(t){return t[EL]||null}const Uc=function(t,n,e){},ML="svg";function Na(t){for(;Array.isArray(t);)t=t[Ah];return t}function Tx(t,n){return Na(n[t])}function fc(t,n){return Na(n[t.index])}function IL(t,n){return t.data[n]}function Og(t,n){return t[n]}function zl(t,n){const e=n[t];return hc(e)?e:e[Ah]}function Ex(t){return 64==(64&t[ir])}function Sf(t,n){return null==n?null:t[n]}function NL(t){t[Ag]=0}function $T(t,n){t[zp]+=n;let e=t,i=t[hs];for(;null!==i&&(1===n&&1===e[zp]||-1===n&&0===e[zp]);)i[zp]+=n,e=i,i=i[hs]}const Wi={lFrame:UL(null),bindingsEnabled:!0};function PL(){return Wi.bindingsEnabled}function Xt(){return Wi.lFrame.lView}function $r(){return Wi.lFrame.tView}function ze(t){return Wi.lFrame.contextLView=t,t[ks]}function Ge(t){return Wi.lFrame.contextLView=null,t}function Fa(){let t=RL();for(;null!==t&&64===t.type;)t=t.parent;return t}function RL(){return Wi.lFrame.currentTNode}function k1(){const t=Wi.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function Md(t,n){const e=Wi.lFrame;e.currentTNode=t,e.isParent=n}function VT(){return Wi.lFrame.isParent}function HT(){Wi.lFrame.isParent=!1}function xl(){const t=Wi.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Mh(){return Wi.lFrame.bindingIndex}function Ig(){return Wi.lFrame.bindingIndex++}function Oh(t){const n=Wi.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function BL(t){Wi.lFrame.inI18n=t}function l0e(t,n){const e=Wi.lFrame;e.bindingIndex=e.bindingRootIndex=t,UT(n)}function UT(t){Wi.lFrame.currentDirectiveIndex=t}function $L(){return Wi.lFrame.currentQueryIndex}function GT(t){Wi.lFrame.currentQueryIndex=t}function u0e(t){const n=t[$n];return 2===n.type?n.declTNode:1===n.type?t[ol]:null}function VL(t,n,e){if(e&Oi.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Oi.Host||(r=u0e(o),null===r||(o=o[Eg],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Wi.lFrame=HL();return i.currentTNode=n,i.lView=t,!0}function WT(t){const n=HL(),e=t[$n];Wi.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function HL(){const t=Wi.lFrame,n=null===t?null:t.child;return null===n?UL(t):n}function UL(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function zL(){const t=Wi.lFrame;return Wi.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const GL=zL;function qT(){const t=zL();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function wl(){return Wi.lFrame.selectedIndex}function Wp(t){Wi.lFrame.selectedIndex=t}function es(){const t=Wi.lFrame;return IL(t.tView,t.selectedIndex)}function lt(){Wi.lFrame.currentNamespace=ML}function qp(){!function p0e(){Wi.lFrame.currentNamespace=null}()}function Ax(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[Ag]+=65536),(a>11>16&&(3&t[ir])===n){t[ir]+=2048,Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}else{Uc(4,a,o);try{o.call(a)}finally{Uc(5,a,o)}}}const Ng=-1;class D1{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function JT(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[Eg],e--;return i}let KT=!0;function Fx(t){const n=KT;return KT=t,n}const KL=255,QL=5;let w0e=0;const Od={};function Px(t,n){const e=ZL(t,n);if(-1!==e)return e;const i=n[$n];i.firstCreatePass&&(t.injectorIndex=n.length,QT(i.data,t),QT(n,null),QT(i.blueprint,null));const r=ZT(t,n),o=t.injectorIndex;if(JL(r)){const s=Ix(r),a=Nx(r,n),l=a[$n].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function QT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function ZL(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ZT(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=s5(r),null===i)return Ng;if(e++,r=r[Eg],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return Ng}function eE(t,n,e){!function C0e(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(b1)&&(i=e[b1]),null==i&&(i=e[b1]=w0e++);const r=i&KL;n.data[t+(r>>QL)]|=1<=0?n&KL:T0e:n}(e);if("function"==typeof o){if(!VL(n,t,i))return i&Oi.Host?e5(r,0,i):t5(n,e,i,r);try{const s=o(i);if(null!=s||i&Oi.Optional)return s;mx()}finally{GL()}}else if("number"==typeof o){let s=null,a=ZL(t,n),l=Ng,c=i&Oi.Host?n[sl][ol]:null;for((-1===a||i&Oi.SkipSelf)&&(l=-1===a?ZT(t,n):n[a+8],l!==Ng&&o5(i,!1)?(s=n[$n],a=Ix(l),n=Nx(l,n)):a=-1);-1!==a;){const u=n[$n];if(r5(o,a,u.data)){const d=k0e(a,n,e,s,i,c);if(d!==Od)return d}l=n[a+8],l!==Ng&&o5(i,n[$n].data[a+8]===c)&&r5(o,a,n)?(s=u,a=Ix(l),n=Nx(l,n)):a=-1}}return r}function k0e(t,n,e,i,r,o){const s=n[$n],a=s.data[t+8],u=Rx(a,s,e,null==i?S1(a)&&KT:i!=s&&0!=(3&a.type),r&Oi.Host&&o===a);return null!==u?Yp(n,s,u,a):Od}function Rx(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,h=r?a+u:t.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&Tu(f)&&f.type===e)return l}return null}function Yp(t,n,e,i){let r=t[e];const o=n.data;if(function y0e(t){return t instanceof D1}(r)){const s=r;s.resolving&&function wve(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new jt(-200,`Circular dependency in DI detected for ${t}${e}`)}(function no(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Gi(t)}(o[e]));const a=Fx(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Hc(s.injectImpl):null;VL(t,i,Oi.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function g0e(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=TL(n);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&Hc(l),Fx(a),s.resolving=!1,GL()}}return r}function r5(t,n,e){return!!(e[n+(t>>QL)]&1<{const n=t.prototype.constructor,e=n[Eh]||tE(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Eh]||tE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function tE(t){return ET(t)?()=>{const n=tE(Mi(t));return n&&n()}:Gp(t)}function s5(t){const n=t[$n],e=n.type;return 2===e?n.declTNode:1===e?t[ol]:null}function kf(t){return function S0e(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function nE(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Rg)?l[Rg]:Object.defineProperty(l,Rg,{value:[]})[Rg];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Yn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=It({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xp(t,n){t.forEach(e=>Array.isArray(e)?Xp(e,n):n(e))}function l5(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function jx(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function M1(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function I0e(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function rE(t,n){const e=Bg(t,n);if(e>=0)return t[1|e]}function Bg(t,n){return function c5(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<((Gl=Gl||{})[Gl.Important=1]="Important",Gl[Gl.DashCase=2]="DashCase",Gl))();const K0e=/^>|^->||--!>|)/,Z0e="\u200b$1\u200b";const uE=new Map;let e1e=0;const hE="__ngContext__";function al(t,n){hc(n)?(t[hE]=n[C1],function n1e(t){uE.set(t[C1],t)}(n)):t[hE]=n}let fE;function pE(t,n){return fE(t,n)}function R1(t){const n=t[hs];return Du(n)?n[hs]:n}function mE(t){return A5(t[x1])}function gE(t){return A5(t[ku])}function A5(t){for(;null!==t&&!Du(t);)t=t[ku];return t}function Vg(t,n,e,i,r){if(null!=i){let o,s=!1;Du(i)?o=i:hc(i)&&(s=!0,i=i[Ah]);const a=Na(i);0===t&&null!==e?null==r?P5(n,e,a):Jp(n,e,a,r||null,!0):1===t&&null!==e?Jp(n,e,a,r||null,!0):2===t?CE(n,a,s):3===t&&n.destroyNode(a),null!=o&&function k1e(t,n,e,i,r){const o=e[Sx];o!==Na(e)&&Vg(n,t,i,o,r);for(let a=bl;an.replace(Q0e,Z0e))}(n))}function yE(t,n,e){return t.createElement(n,e)}function O5(t,n){const e=t[Mg],i=e.indexOf(n),r=n[hs];512&n[ir]&&(n[ir]&=-513,$T(r,-1)),e.splice(i,1)}function _E(t,n){if(t.length<=bl)return;const e=bl+n,i=t[e];if(i){const r=i[w1];null!==r&&r!==t&&O5(r,i),n>0&&(t[e-1][ku]=i[ku]);const o=jx(t,bl+n);!function p1e(t,n){j1(t,n,n[lr],2,null,null),n[Ah]=null,n[ol]=null}(i[$n],i);const s=o[Ad];null!==s&&s.detachView(o[$n]),i[hs]=null,i[ku]=null,i[ir]&=-65}return i}function I5(t,n){if(!(128&n[ir])){const e=n[lr];e.destroyNode&&j1(t,n,e,3,null,null),function v1e(t){let n=t[x1];if(!n)return bE(t[$n],t);for(;n;){let e=null;if(hc(n))e=n[x1];else{const i=n[bl];i&&(e=i)}if(!e){for(;n&&!n[ku]&&n!==t;)hc(n)&&bE(n[$n],n),n=n[hs];null===n&&(n=t),hc(n)&&bE(n[$n],n),e=n&&n[ku]}n=e}}(n)}}function bE(t,n){if(!(128&n[ir])){n[ir]&=-65,n[ir]|=128,function x1e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===Su.None||o===Su.Emulated)return null}return fc(i,e)}}function Jp(t,n,e,i,r){t.insertBefore(n,e,i,r)}function P5(t,n,e){t.appendChild(n,e)}function R5(t,n,e,i,r){null!==i?Jp(t,n,e,i,r):P5(t,n,e)}function Vx(t,n){return t.parentNode(n)}function j5(t,n,e){return B5(t,n,e)}function L5(t,n,e){return 40&t.type?fc(t,e):null}let xE,zx,DE,Gx,B5=L5;function $5(t,n){B5=t,xE=n}function Hx(t,n,e,i){const r=N5(t,i,n),o=n[lr],a=j5(i.parent||n[ol],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return zx}()?.createHTML(t)||t}function G5(){return void 0!==DE?DE:typeof document<"u"?document:void 0}function TE(){if(void 0===Gx&&(Gx=null,Bo.trustedTypes))try{Gx=Bo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Gx}function W5(t){return TE()?.createHTML(t)||t}function Y5(t){return TE()?.createScriptURL(t)||t}class Kp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${fx})`}}class I1e extends Kp{getTypeName(){return"HTML"}}class N1e extends Kp{getTypeName(){return"Style"}}class F1e extends Kp{getTypeName(){return"Script"}}class P1e extends Kp{getTypeName(){return"URL"}}class R1e extends Kp{getTypeName(){return"ResourceURL"}}function mc(t){return t instanceof Kp?t.changingThisBreaksApplicationSecurity:t}function Id(t,n){const e=function j1e(t){return t instanceof Kp&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${fx})`)}return e===n}function X5(t){const n=new z1e(t);return function G1e(){try{return!!(new window.DOMParser).parseFromString(Hg(""),"text/html")}catch{return!1}}()?new U1e(n):n}class U1e{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Hg(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class z1e{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Hg(n),e}}const W1e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wx(t){return(t=String(t)).match(W1e)?t:"unsafe:"+t}function Ih(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function L1(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const J5=Ih("area,br,col,hr,img,wbr"),K5=Ih("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Q5=Ih("rp,rt"),EE=L1(J5,L1(K5,Ih("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),L1(Q5,Ih("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),L1(Q5,K5)),AE=Ih("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Z5=L1(AE,Ih("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ih("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),q1e=Ih("script,style,template");class Y1e{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!EE.hasOwnProperty(e))return this.sanitizedSomething=!0,!q1e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();EE.hasOwnProperty(e)&&!J5.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(e8(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const X1e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,J1e=/([^\#-~ |!])/g;function e8(t){return t.replace(/&/g,"&").replace(X1e,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(J1e,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let qx;function t8(t,n){let e=null;try{qx=qx||X5(t);let i=n?String(n):"";e=qx.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=qx.getInertBodyElement(i)}while(i!==o);return Hg((new Y1e).sanitizeChildren(ME(e)||e))}finally{if(e){const i=ME(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function ME(t){return"content"in t&&function K1e(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var To=(()=>((To=To||{})[To.NONE=0]="NONE",To[To.HTML=1]="HTML",To[To.STYLE=2]="STYLE",To[To.SCRIPT=3]="SCRIPT",To[To.URL=4]="URL",To[To.RESOURCE_URL=5]="RESOURCE_URL",To))();function Yx(t){const n=$1();return n?W5(n.sanitize(To.HTML,t)||""):Id(t,"HTML")?W5(mc(t)):t8(G5(),Gi(t))}function B1(t){const n=$1();return n?n.sanitize(To.URL,t)||"":Id(t,"URL")?mc(t):Wx(Gi(t))}function n8(t){const n=$1();if(n)return Y5(n.sanitize(To.RESOURCE_URL,t)||"");if(Id(t,"ResourceURL"))return Y5(mc(t));throw new jt(904,!1)}function $1(){const t=Xt();return t&&t[RT]}const Xx=new Yn("ENVIRONMENT_INITIALIZER"),r8=new Yn("INJECTOR",-1),o8=new Yn("INJECTOR_DEF_TYPES");class s8{get(n,e=v1){if(e===v1){const i=new Error(`NullInjectorError: No provider for ${kn(n)}!`);throw i.name="NullInjectorError",i}return e}}function rye(...t){return{\u0275providers:a8(0,t),\u0275fromNgModule:!0}}function a8(t,...n){const e=[],i=new Set;let r;return Xp(n,o=>{const s=o;OE(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&l8(r,e),e}function l8(t,n){for(let e=0;e{n.push(o)})}}function OE(t,n,e,i){if(!(t=Mi(t)))return!1;let r=null,o=fL(t);const s=!o&&ro(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=fL(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)OE(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Xp(o.imports,u=>{OE(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&l8(c,n)}if(!a){const c=Gp(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Qr},{provide:o8,useValue:r,multi:!0},{provide:Xx,useValue:()=>wt(r),multi:!0})}const l=o.providers;null==l||a||IE(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function IE(t,n){for(let e of t)AT(e)&&(e=e.\u0275providers),Array.isArray(e)?IE(e,n):n(e)}const oye=Qe({provide:String,useValue:Qe});function NE(t){return null!==t&&"object"==typeof t&&oye in t}function Qp(t){return"function"==typeof t}const FE=new Yn("Set Injector scope."),Jx={},aye={};let PE;function Kx(){return void 0===PE&&(PE=new s8),PE}class Gc{}class d8 extends Gc{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,jE(n,s=>this.processProvider(s)),this.records.set(r8,Ug(void 0,this)),r.has("environment")&&this.records.set(Gc,Ug(void 0,this));const o=this.records.get(FE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(o8.multi,Qr,Oi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=kg(this),i=Hc(void 0);try{return n()}finally{kg(e),Hc(i)}}get(n,e=v1,i=Oi.Default){this.assertNotDestroyed(),i=_x(i);const r=kg(this),o=Hc(void 0);try{if(!(i&Oi.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function hye(t){return"function"==typeof t||"object"==typeof t&&t instanceof Yn}(n)&&gx(n);a=l&&this.injectableDefInScope(l)?Ug(RE(n),Jx):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Oi.Self?Kx():this.parent).get(n,e=i&Oi.Optional&&e===v1?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[yx]=s[yx]||[]).unshift(kn(n)),r)throw s;return function Rve(t,n,e,i){const r=t[yx];throw n[gL]&&r.unshift(n[gL]),t.message=function jve(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Nve?t.slice(2):t;let r=kn(n);if(Array.isArray(n))r=n.map(kn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):kn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(Ive,"\n ")}`}("\n"+t.message,r,e,i),t[Ove]=r,t[yx]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Hc(o),kg(r)}}resolveInjectorInitializers(){const n=kg(this),e=Hc(void 0);try{const i=this.get(Xx.multi,Qr,Oi.Self);for(const r of i)r()}finally{kg(n),Hc(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(kn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new jt(205,!1)}processProvider(n){let e=Qp(n=Mi(n))?n:Mi(n&&n.provide);const i=function cye(t){return NE(t)?Ug(void 0,t.useValue):Ug(h8(t),Jx)}(n);if(Qp(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ug(void 0,Jx,!0),r.factory=()=>NT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Jx&&(e.value=aye,e.value=e.factory()),"object"==typeof e.value&&e.value&&function dye(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Mi(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function RE(t){const n=gx(t),e=null!==n?n.factory:Gp(t);if(null!==e)return e;if(t instanceof Yn)throw new jt(204,!1);if(t instanceof Function)return function lye(t){const n=t.length;if(n>0)throw M1(n,"?"),new jt(204,!1);const e=function Eve(t){return t&&(t[vx]||t[pL])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new jt(204,!1)}function h8(t,n,e){let i;if(Qp(t)){const r=Mi(t);return Gp(r)||RE(r)}if(NE(t))i=()=>Mi(t.useValue);else if(function u8(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...NT(t.deps||[]));else if(function c8(t){return!(!t||!t.useExisting)}(t))i=()=>wt(Mi(t.useExisting));else{const r=Mi(t&&(t.useClass||t.provide));if(!function uye(t){return!!t.deps}(t))return Gp(r)||RE(r);i=()=>new r(...NT(t.deps))}return i}function Ug(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function jE(t,n){for(const e of t)Array.isArray(e)?jE(e,n):e&&AT(e)?jE(e.\u0275providers,n):n(e)}class fye{}class f8{}class mye{resolveComponentFactory(n){throw function pye(t){const n=Error(`No component factory found for ${kn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let zg=(()=>{class t{}return t.NULL=new mye,t})();function gye(){return Gg(Fa(),Xt())}function Gg(t,n){return new Ni(fc(t,n))}let Ni=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=gye,t})();function vye(t){return t instanceof Ni?t.nativeElement:t}class Wg{}let oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function yye(){const t=Xt(),e=zl(Fa().index,t);return(hc(e)?e:t)[lr]}(),t})(),_ye=(()=>{class t{}return t.\u0275prov=It({token:t,providedIn:"root",factory:()=>null}),t})();class V1{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const bye=new V1("15.2.9"),LE={},BE="ngOriginalError";function $E(t){return t[BE]}class qg{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&$E(n);for(;e&&$E(e);)e=$E(e);return e||null}}function m8(t){return t.ownerDocument.defaultView}function Nh(t){return t instanceof Function?t():t}function v8(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const y8="ng-template";function Mye(t,n,e){let i=0,r=!0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==v8(f,c,0)||2&i&&c!==h){if(Eu(i))return!1;s=!0}}}}else{if(!s&&!Eu(i)&&!Eu(l))return!1;if(s&&Eu(l))continue;s=!1,i=l|1&i}}return Eu(i)||s}function Eu(t){return 0==(1&t)}function Nye(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Eu(s)&&(n+=x8(o,r),r=""),i=s,o=o||!Eu(i);e++}return""!==r&&(n+=x8(o,r)),n}const qi={};function w(t){w8($r(),Xt(),wl()+t,!1)}function w8(t,n,e,i){if(!i)if(3==(3&n[ir])){const o=t.preOrderCheckHooks;null!==o&&Mx(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Ox(n,o,0,e)}Wp(e)}function D8(t,n=null,e=null,i){const r=T8(t,n,e,i);return r.resolveInjectorInitializers(),r}function T8(t,n=null,e=null,i,r=new Set){const o=[e||Qr,rye(t)];return i=i||("object"==typeof t?void 0:kn(t)),new d8(o,n||Kx(),i||null,r)}let Ca=(()=>{class t{static create(e,i){if(Array.isArray(e))return D8({name:""},i,e,"");{const r=e.name??"";return D8({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=v1,t.NULL=new s8,t.\u0275prov=It({token:t,providedIn:"any",factory:()=>wt(r8)}),t.__NG_ELEMENT_ID__=-1,t})();function ge(t,n=Oi.Default){const e=Xt();return null===e?wt(t,n):n5(Fa(),e,Mi(t),n)}function P8(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i$o&&w8(t,n,$o,!1),Uc(s?2:0,r),e(i,r)}finally{Wp(o),Uc(s?3:1,r)}}function qE(t,n,e){if(LT(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,H1(t,e,r.hostVars,qi),r)}function ZE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Gi(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function k_e(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l0&&eA(e)}}function eA(t){for(let i=mE(t);null!==i;i=gE(i))for(let r=bl;r0&&eA(o)}const e=t[$n].components;if(null!==e)for(let i=0;i0&&eA(r)}}function M_e(t,n){const e=zl(n,t),i=e[$n];(function O_e(t,n){for(let e=n.length;e-1&&(_E(n,i),jx(e,i))}this._attachedToViewContainer=!1}I5(this._lView[$n],this._lView)}onDestroy(n){L8(this._lView[$n],this._lView,null,n)}markForCheck(){nw(this._cdRefInjectingView||this._lView)}detach(){this._lView[ir]&=-65}reattach(){this._lView[ir]|=64}detectChanges(){iw(this._lView[$n],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new jt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function g1e(t,n){j1(t,n,n[lr],2,null,null)}(this._lView[$n],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new jt(902,!1);this._appRef=n}}class I_e extends U1{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;iw(n[$n],n,n[ks],!1)}checkNoChanges(){}get context(){return null}}class Y8 extends zg{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ro(n);return new z1(e,this.ngModule)}}function X8(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class F_e{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=_x(i);const r=this.injector.get(n,LE,i);return r!==LE||e===LE?r:this.parentInjector.get(n,e,i)}}class z1 extends f8{get inputs(){return X8(this.componentDef.inputs)}get outputs(){return X8(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function Bye(t){return t.map(Lye).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Gc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new F_e(n,o):n,a=s.get(Wg,null);if(null===a)throw new jt(407,!1);const l=s.get(_ye,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function c_e(t,n,e){return t.selectRootElement(n,e===Su.ShadowDom)}(c,i,this.componentDef.encapsulation):yE(c,u,function N_e(t){const n=t.toLowerCase();return"svg"===n?ML:"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,f=JE(0,null,null,1,0,null,null,null,null,null),p=Zx(null,f,null,h,null,null,a,c,l,s,null);let m,g;WT(p);try{const v=this.componentDef;let y,b=null;v.findHostDirectiveDefs?(y=[],b=new Map,v.findHostDirectiveDefs(v,y,b),y.push(v)):y=[v];const C=function R_e(t,n){const e=t[$n],i=$o;return t[i]=n,Jg(e,i,2,"#host",null)}(p,d),D=function j_e(t,n,e,i,r,o,s,a){const l=r[$n];!function L_e(t,n,e,i){for(const r of t)n.mergedAttrs=T1(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(rw(n,n.mergedAttrs,!0),null!==e&&z5(i,e,n))}(i,t,n,s);const c=o.createRenderer(n,e),u=Zx(r,j8(e),null,e.onPush?32:16,r[t.index],t,o,c,a||null,null,null);return l.firstCreatePass&&QE(l,t,i.length-1),tw(r,u),r[t.index]=u}(C,d,v,y,p,a,c);g=IL(f,$o),d&&function $_e(t,n,e,i){if(i)JT(t,e,["ng-version",bye.full]);else{const{attrs:r,classes:o}=function $ye(t){const n=[],e=[];let i=1,r=2;for(;i0&&U5(t,e,o.join(" "))}}(c,v,d,i),void 0!==e&&function V_e(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=T1(r.hostAttrs,e=T1(e,r.hostAttrs))}}(i)}function iA(t){return t===Th?{}:t===Qr?[]:t}function z_e(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function G_e(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function W_e(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function G1(t){return n=>{n.findHostDirectiveDefs=K8,n.hostDirectives=(Array.isArray(t)?t:t()).map(e=>"function"==typeof e?{directive:Mi(e),inputs:Th,outputs:Th}:{directive:Mi(e.directive),inputs:Q8(e.inputs),outputs:Q8(e.outputs)})}}function K8(t,n,e){if(null!==t.hostDirectives)for(const i of t.hostDirectives){const r=rl(i.directive);J_e(r.declaredInputs,i.inputs),K8(r,n,e),e.set(r,i),n.push(r)}}function Q8(t){if(void 0===t||0===t.length)return Th;const n={};for(let e=0;es(Na(C[i.index])):i.index;let b=null;if(!s&&a&&(b=function obe(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,h=!1;else{o=p6(i,n,u,o,!1);const C=e.listen(g,r,o);d.push(o,C),c&&c.push(r,y,v,v+1)}}else o=p6(i,n,u,o,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?zl(t.index,n):n);let l=f6(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=f6(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function L(t=1){return function d0e(t){return(Wi.lFrame.contextLView=function h0e(t,n){for(;t>0;)n=n[Eg],t--;return n}(t,Wi.lFrame.contextLView))[ks]}(t)}function sbe(t,n){let e=null;const i=function Fye(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function aA(t){return 2|t}function tm(t){return(131068&t)>>2}function lA(t,n){return-131069&t|n<<2}function cA(t){return 1|t}function C6(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?Ef(o):tm(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];hbe(t[a],n)&&(l=!0,t[a+1]=i?cA(u):aA(u)),a=i?Ef(u):tm(u)}l&&(t[e+1]=i?aA(o):cA(o))}function hbe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Bg(t,n)>=0}const aa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function S6(t){return t.substring(aa.key,aa.keyEnd)}function k6(t,n){const e=aa.textEnd;return e===n?-1:(n=aa.keyEnd=function gbe(t,n,e){for(;n32;)n++;return n}(t,aa.key=n,e),sv(t,n,e))}function sv(t,n,e){for(;n=0;e=k6(n,e))pc(t,S6(n),!0)}function Mu(t,n,e,i){const r=Xt(),o=$r(),s=Oh(2);o.firstUpdatePass&&O6(o,t,s,i),n!==qi&&ll(r,s,n)&&N6(o,o.data[wl()],r,r[lr],t,r[s+1]=function Tbe(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=kn(mc(t)))),t}(n,e),i,s)}function Ou(t,n,e,i){const r=$r(),o=Oh(2);r.firstUpdatePass&&O6(r,null,o,i);const s=Xt();if(e!==qi&&ll(s,o,e)){const a=r.data[wl()];if(P6(a,i)&&!M6(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Br(l,e||"")),oA(r,a,s,e,i)}else!function Dbe(t,n,e,i,r,o,s,a){r===qi&&(r=Qr);let l=0,c=0,u=0=t.expandoStartIndex}function O6(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[wl()],s=M6(t,e);P6(o,i)&&null===n&&!s&&(n=!1),n=function bbe(t,n,e,i){const r=function zT(t){const n=Wi.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Y1(e=uA(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=uA(r,t,n,e,i),null===o){let l=function xbe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==tm(i))return t[Ef(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=uA(null,t,n,l[1],i),l=Y1(l,n.attrs,i),function wbe(t,n,e,i){t[Ef(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function Cbe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const h=Ef(t[a+1]);t[i+1]=lw(h,a),0!==h&&(t[h+1]=lA(t[h+1],i)),t[a+1]=function lbe(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=lw(a,0),0!==a&&(t[a+1]=lA(t[a+1],i)),a=i;else t[i+1]=lw(l,0),0===a?a=i:t[l+1]=lA(t[l+1],i),l=i;c&&(t[i+1]=aA(t[i+1])),C6(t,u,i,!0),C6(t,u,i,!1),function dbe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Bg(o,n)>=0&&(e[i+1]=cA(e[i+1]))}(n,u,t,i,o),s=lw(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function uA(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===qi&&(h=d?Qr:void 0);let f=d?rE(h,i):u===i?h:void 0;if(c&&!cw(f)&&(f=rE(l,i)),cw(f)&&(a=f,s))return a;const p=t[r+1];r=s?Ef(p):tm(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=rE(l,i))}return a}function cw(t){return void 0!==t}function P6(t,n){return 0!=(t.flags&(n?8:16))}function O(t,n=""){const e=Xt(),i=$r(),r=t+$o,o=i.firstCreatePass?Jg(i,r,1,n,null):i.data[r],s=e[r]=vE(e[lr],n);Hx(i,e,s,o),Md(o,!1)}function bt(t){return bn("",t,""),bt}function bn(t,n,e){const i=Xt(),r=Qg(i,t,n,e);return r!==qi&&Fh(i,wl(),r),bn}function Af(t,n,e,i,r){const o=Xt(),s=Zg(o,t,n,e,i,r);return s!==qi&&Fh(o,wl(),s),Af}function ql(t,n,e){const i=Xt();return ll(i,Ig(),n)&&gc($r(),es(),i,t,n,i[lr],e,!0),ql}const nm=void 0;var Gbe=["en",[["a","p"],["AM","PM"],nm],[["AM","PM"],nm,nm],[["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"]],nm,[["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"]],nm,[["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}",nm,"{1} 'at' {0}",nm],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function zbe(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let av={};function kl(t){const n=function Wbe(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=nB(n);if(e)return e;const i=n.split("-")[0];if(e=nB(i),e)return e;if("en"===i)return Gbe;throw new jt(701,!1)}function nB(t){return t in av||(av[t]=Bo.ng&&Bo.ng.common&&Bo.ng.common.locales&&Bo.ng.common.locales[t]),av[t]}var Nn=(()=>((Nn=Nn||{})[Nn.LocaleId=0]="LocaleId",Nn[Nn.DayPeriodsFormat=1]="DayPeriodsFormat",Nn[Nn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Nn[Nn.DaysFormat=3]="DaysFormat",Nn[Nn.DaysStandalone=4]="DaysStandalone",Nn[Nn.MonthsFormat=5]="MonthsFormat",Nn[Nn.MonthsStandalone=6]="MonthsStandalone",Nn[Nn.Eras=7]="Eras",Nn[Nn.FirstDayOfWeek=8]="FirstDayOfWeek",Nn[Nn.WeekendRange=9]="WeekendRange",Nn[Nn.DateFormat=10]="DateFormat",Nn[Nn.TimeFormat=11]="TimeFormat",Nn[Nn.DateTimeFormat=12]="DateTimeFormat",Nn[Nn.NumberSymbols=13]="NumberSymbols",Nn[Nn.NumberFormats=14]="NumberFormats",Nn[Nn.CurrencyCode=15]="CurrencyCode",Nn[Nn.CurrencySymbol=16]="CurrencySymbol",Nn[Nn.CurrencyName=17]="CurrencyName",Nn[Nn.Currencies=18]="Currencies",Nn[Nn.Directionality=19]="Directionality",Nn[Nn.PluralCase=20]="PluralCase",Nn[Nn.ExtraData=21]="ExtraData",Nn))();const qbe=["zero","one","two","few","many"],lv="en-US",uw={marker:"element"},dw={marker:"ICU"};var fs=(()=>((fs=fs||{})[fs.SHIFT=2]="SHIFT",fs[fs.APPEND_EAGERLY=1]="APPEND_EAGERLY",fs[fs.COMMENT=2]="COMMENT",fs))();let iB=lv;function rB(t){(function Vc(t,n){null==t&&io(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(iB=t.toLowerCase().replace(/_/g,"-"))}function oB(t,n,e){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?L5(t,0,e):Na(e[r])}function sB(t,n,e,i,r){const o=n.insertBeforeIndex;if(Array.isArray(o)){let s=i,a=null;if(3&n.type||(a=s,s=r),null!==s&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];lB(i)||Kbe(i,n)&&null===Qbe(i)&&Zbe(i,n.index)}}function lB(t){return!(64&t.type)}function Kbe(t,n){return lB(n)||t.index>n.index}function Qbe(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function Zbe(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:($5(oB,sB),t.insertBeforeIndex=n)}function X1(t,n){const e=t.data[n];return null===e||"string"==typeof e?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function nxe(t,n,e){const i=GE(t,e,64,null,null);return aB(n,i),i}function hw(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}function cB(t){return t>>>17}function uB(t){return(131070&t)>>>1}let J1=0,K1=0;function hB(t,n,e,i){const r=e[lr];let s,o=null;for(let a=0;a>>1,e),null,null,f,p,null)}else switch(l){case dw:const c=n[++a],u=n[++a];null===e[u]&&al(e[u]=f1e(r,c),e);break;case uw:const d=n[++a],h=n[++a];null===e[h]&&al(e[h]=yE(r,d,null),e)}}}function fB(t,n,e,i,r){for(let o=0;o>>2;switch(3&u){case 1:const h=e[++c],f=e[++c],p=t.data[d];"string"==typeof p?ZE(n[lr],n[d],null,p,h,l,f):gc(t,p,n,h,l,n[lr],f,!1);break;case 0:const m=n[d];null!==m&&M5(n[lr],m,l);break;case 2:axe(t,X1(t,d),n,l);break;case 3:pB(t,X1(t,d),i,n)}}}}else{const l=e[o+1];if(l>0&&3==(3&l)){const u=X1(t,l>>>2);n[u.currentCaseLViewIndex]<0&&pB(t,u,i,n)}}o+=a}}function pB(t,n,e,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=J1;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),fB(t,i,n.update[r],e,o)}}function axe(t,n,e,i){const r=function lxe(t,n){let e=t.cases.indexOf(n);if(-1===e)switch(t.type){case 1:{const i=function Ybe(t,n){const e=function tB(t){return kl(t)[Nn.PluralCase]}(n)(parseInt(t,10)),i=qbe[e];return void 0!==i?i:"other"}(n,function Jbe(){return iB}());e=t.cases.indexOf(i),-1===e&&"other"!==i&&(e=t.cases.indexOf("other"));break}case 0:e=t.cases.indexOf("other")}return-1===e?null:e}(n,i);if(hw(n,e)!==r&&(mB(t,n,e),e[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const s=e[n.anchorIdx];s&&hB(t,n.create[r],e,s)}}function mB(t,n,e){let i=hw(n,e);if(null!==i){const r=n.remove[i];for(let o=0;o0){const a=Tx(s,e);null!==a&&CE(e[lr],a)}else mB(t,X1(t,~s),e)}}}function cxe(){const t=[];let e,i,n=-1;function o(a,l){n=0;const c=hw(a,l);i=null!==c?a.remove[c]:Qr}function s(){if(n0?e[a]:(t.push(n,i),o(e[$n].data[~a],e),s())}return 0===t.length?null:(i=t.pop(),n=t.pop(),s())}return function r(a,l){for(e=l;t.length;)t.pop();return o(a.value,l),s}}const fw=/\ufffd(\d+):?\d*\ufffd/gi,dxe=/\ufffd(\d+)\ufffd/,vB=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Q1="\ufffd",hxe=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,fxe=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,pxe=/\uE500/g;function yB(t,n,e,i,r,o,s){const a=H1(t,i,1,null);let l=a<e.length&&e.push(l)}return{type:i,mainBinding:r,cases:n,values:e}}function dA(t){if(!t)return[];let n=0;const e=[],i=[],r=/[{}]/g;let o;for(r.lastIndex=0;o=r.exec(t);){const a=o.index;if("}"==o[0]){if(e.pop(),0==e.length){const l=t.substring(n,a);vB.test(l)?i.push(wxe(l)):i.push(l),n=a+1}}else{if(0==e.length){const l=t.substring(n,a);i.push(l),n=a+1}e.push("{")}}const s=t.substring(n);return i.push(s),i}function Cxe(t,n,e,i,r,o,s,a){const l=[],c=[],u=[];n.cases.push(o),n.create.push(l),n.remove.push(c),n.update.push(u);const h=X5(G5()).getInertBodyElement(s),f=ME(h)||h;return f?wB(t,n,e,i,l,c,u,f,r,a,0):0}function wB(t,n,e,i,r,o,s,a,l,c,u){let d=0,h=a.firstChild;for(;h;){const f=H1(t,e,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,m=p.tagName.toLowerCase();if(EE.hasOwnProperty(m)){hA(r,uw,m,l,f),t.data[f]=m;const b=p.attributes;for(let C=0;C>>fs.SHIFT;let d=t[u];null===d&&(d=t[u]=(s&fs.COMMENT)===fs.COMMENT?r.createComment(a):vE(r,a)),c&&null!==e&&Jp(r,e,d,i,!1)}})(r,l.create,u,a&&8&a.type?r[a.index]:null),BL(!0)}function Pa(t,n,e){kB(t,n,e),function DB(){BL(!1)}()}function cv(t){return function rxe(t){t&&(J1|=1<0){const i=t.data[e];fB(t,n,Array.isArray(i)?i:i.update,Mh()-K1-1,J1)}J1=0,K1=0}($r(),Xt(),t+$o)}function fA(t,n,e,i,r){if(t=Mi(t),Array.isArray(t))for(let o=0;o>20;if(Qp(t)||!t.multi){const f=new D1(l,r,ge),p=mA(a,n,r?u:u+h,d);-1===p?(eE(Px(c,s),o,a),pA(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=mA(a,n,u+h,d),p=mA(a,n,u,u+h),g=p>=0&&e[p];if(r&&!g||!r&&!(f>=0&&e[f])){eE(Px(c,s),o,a);const v=function Vxe(t,n,e,i,r){const o=new D1(t,e,ge);return o.multi=[],o.index=n,o.componentProviders=0,TB(o,r,i&&!e),o}(r?$xe:Bxe,e.length,r,i,l);!r&&g&&(e[p].providerFactory=v),pA(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else pA(o,t,f>-1?f:p,TB(e[r?p:f],l,!r&&i));!r&&i&&g&&e[p].componentProviders++}}}function pA(t,n,e,i){const r=Qp(n),o=function sye(t){return!!t.useClass}(n);if(r||o){const l=(o?Mi(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function TB(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function mA(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Lxe(t,n,e){const i=$r();if(i.firstCreatePass){const r=Tu(t);fA(e,i.data,i.blueprint,r,!0),fA(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class uv{}class EB{}class AB extends uv{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Y8(this);const i=dc(n);this._bootstrapComponents=Nh(i.bootstrap),this._r3Injector=T8(n,e,[{provide:uv,useValue:this},{provide:zg,useValue:this.componentFactoryResolver}],kn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class vA extends EB{constructor(n){super(),this.moduleType=n}create(n){return new AB(this.moduleType,n)}}class Uxe extends uv{constructor(n,e,i){super(),this.componentFactoryResolver=new Y8(this),this.instance=null;const r=new d8([...n,{provide:uv,useValue:this},{provide:zg,useValue:this.componentFactoryResolver}],e||Kx(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function pw(t,n,e=null){return new Uxe(t,n,e).injector}let zxe=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=a8(0,e.type),r=i.length>0?pw([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=It({token:t,providedIn:"environment",factory:()=>new t(wt(Gc))}),t})();function Bs(t){t.getStandaloneInjector=n=>n.get(zxe).getOrCreateStandaloneInjector(t)}function cl(t,n,e){const i=xl()+t,r=Xt();return r[i]===qi?Fd(r,i,e?n.call(e):n()):function W1(t,n){return t[n]}(r,i)}function Zi(t,n,e,i){return RB(Xt(),xl(),t,n,e,i)}function Rr(t,n,e,i,r){return function jB(t,n,e,i,r,o,s){const a=n+e;return Zp(t,a,r,o)?Fd(t,a+2,s?i.call(s,r,o):i(r,o)):ny(t,a+2)}(Xt(),xl(),t,n,e,i,r)}function ty(t,n,e,i,r,o){return function LB(t,n,e,i,r,o,s,a){const l=n+e;return function aw(t,n,e,i,r){const o=Zp(t,n,e,i);return ll(t,n+2,r)||o}(t,l,r,o,s)?Fd(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):ny(t,l+3)}(Xt(),xl(),t,n,e,i,r,o)}function ny(t,n){const e=t[n];return e===qi?void 0:e}function RB(t,n,e,i,r,o){const s=n+e;return ll(t,s,r)?Fd(t,s+1,o?i.call(o,r):i(r)):ny(t,s+1)}function _A(t,n){const e=$r();let i;const r=t+$o;e.firstCreatePass?(i=function owe(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Gp(i.type)),s=Hc(ge);try{const a=Fx(!1),l=o();return Fx(a),function nbe(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Xt(),r,l),l}finally{Hc(s)}}function bA(t,n,e){const i=t+$o,r=Xt(),o=Og(r,i);return function iy(t,n){return t[$n].data[n].pure}(r,i)?RB(r,xl(),n,o.transform,e,o):o.transform(e)}function xA(t){return n=>{setTimeout(t,void 0,n)}}const ot=class uwe extends fn{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=xA(o),r&&(r=xA(r)),s&&(s=xA(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof re&&n.add(a),a}};function dwe(){return this._results[Symbol.iterator]()}class wA{get changes(){return this._changes||(this._changes=new ot)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=wA.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=dwe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function zc(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function M0e(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=pwe,t})();const hwe=fo,fwe=class extends hwe{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tView,r=Zx(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[w1]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Ad];return null!==s&&(r[Ad]=s.createEmbeddedView(i)),WE(i,r,n),new U1(r)}};function pwe(){return mw(Fa(),Xt())}function mw(t,n){return 4&t.type?new fwe(n,t,Gg(t,n)):null}let Yl=(()=>{class t{}return t.__NG_ELEMENT_ID__=mwe,t})();function mwe(){return UB(Fa(),Xt())}const gwe=Yl,VB=class extends gwe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Gg(this._hostTNode,this._hostLView)}get injector(){return new Fg(this._hostTNode,this._hostLView)}get parentInjector(){const n=ZT(this._hostTNode,this._hostLView);if(JL(n)){const e=Nx(n,this._hostLView),i=Ix(n);return new Fg(e[$n].data[i+8],e)}return new Fg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=HB(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-bl}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function A1(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new z1(ro(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Gc,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[$n];if(function e0e(t){return Du(t[hs])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[hs],h=new VB(d,d[ol],d[hs]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function y1e(t,n,e,i){const r=bl+i,o=e.length;i>0&&(e[r-1][ku]=n),i0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=bl;d{class t{constructor(e){this.appInits=e,this.resolve=vw,this.reject=vw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(wt(yw,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oy=new Yn("AppId",{providedIn:"root",factory:function h$(){return`${FA()}${FA()}${FA()}`}});function FA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const f$=new Yn("Platform Initializer"),sy=new Yn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),p$=new Yn("AnimationModuleType");let Hwe=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const vc=new Yn("LocaleId",{providedIn:"root",factory:()=>Vi(vc,Oi.Optional|Oi.SkipSelf)||function Uwe(){return typeof $localize<"u"&&$localize.locale||lv}()});class Gwe{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let m$=(()=>{class t{compileModuleSync(e){return new vA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Nh(dc(e).declarations).reduce((s,a)=>{const l=ro(a);return l&&s.push(new z1(l)),s},[]);return new Gwe(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ywe=(()=>Promise.resolve(0))();function PA(t){typeof Zone>"u"?Ywe.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ur{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ot(!1),this.onMicrotaskEmpty=new ot(!1),this.onStable=new ot(!1),this.onError=new ot(!1),typeof Zone>"u")throw new jt(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Xwe(){let t=Bo.requestAnimationFrame,n=Bo.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Qwe(t){const n=()=>{!function Kwe(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Bo,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,jA(t),t.isCheckStableRunning=!0,RA(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),jA(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return y$(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),_$(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return y$(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),_$(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,jA(t),RA(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ur.isInAngularZone())throw new jt(909,!1)}static assertNotInAngularZone(){if(ur.isInAngularZone())throw new jt(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Jwe,vw,vw);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Jwe={};function RA(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function jA(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function y$(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _$(t){t._nesting--,RA(t)}class Zwe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ot,this.onMicrotaskEmpty=new ot,this.onStable=new ot,this.onError=new ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const b$=new Yn(""),bw=new Yn("");let $A,LA=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$A||(function eCe(t){$A=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ur.assertNotInAngularZone(),PA(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())PA(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(wt(ur),wt(BA),wt(bw))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),BA=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return $A?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Rh=!1;let Mf=null;const x$=new Yn("AllowMultipleToken"),VA=new Yn("PlatformDestroyListeners"),w$=new Yn("appBootstrapListener");class C${constructor(n,e){this.name=n,this.token=e}}function k$(t,n,e=[]){const i=`Platform: ${n}`,r=new Yn(i);return(o=[])=>{let s=HA();if(!s||s.injector.get(x$,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function iCe(t){if(Mf&&!Mf.get(x$,!1))throw new jt(400,!1);Mf=t;const n=t.get(T$);(function S$(t){const n=t.get(f$,null);n&&n.forEach(e=>e())})(t)}(function D$(t=[],n){return Ca.create({name:n,providers:[{provide:FE,useValue:"platform"},{provide:VA,useValue:new Set([()=>Mf=null])},...t]})}(a,i))}return function oCe(t){const n=HA();if(!n)throw new jt(401,!1);return n}()}}function HA(){return Mf?.get(T$)??null}let T$=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function A$(t,n){let e;return e="noop"===t?new Zwe:("zone.js"===t?void 0:t)||new ur(n),e}(i?.ngZone,function E$(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:ur,useValue:r}];return r.run(()=>{const s=Ca.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(qg,null);if(!l)throw new jt(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{xw(this._modules,a),c.unsubscribe()})}),function M$(t,n,e){try{const i=e();return q1(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(_w);return c.runInitializers(),c.donePromise.then(()=>(rB(a.injector.get(vc,lv)||lv),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=O$({},i);return function tCe(t,n,e){const i=new vA(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(jh);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new jt(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new jt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(VA,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(wt(Ca))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function O$(t,n){return Array.isArray(n)?n.reduce(O$,t):{...t,...n}}let jh=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Wt(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Wt(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ur.assertNotInAngularZone(),PA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ur.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Mt(o,s.pipe(Je()))}bootstrap(e,i){const r=e instanceof f8;if(!this._injector.get(_w).done){!r&&function Dg(t){const n=ro(t)||rl(t)||Ul(t);return null!==n&&n.standalone}(e);throw new jt(405,Rh)}let s;s=r?e:this._injector.get(zg).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function nCe(t){return t.isBoundToModule}(s)?void 0:this._injector.get(uv),c=s.create(Ca.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(b$,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),xw(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new jt(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;xw(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(w$,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>xw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new jt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(wt(ur),wt(Gc),wt(qg))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xw(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let $s=(()=>{class t{}return t.__NG_ELEMENT_ID__=aCe,t})();function aCe(t){return function lCe(t,n,e){if(S1(t)&&!e){const i=zl(t.index,n);return new U1(i,i)}return 47&t.type?new U1(n[sl],n):null}(Fa(),Xt(),16==(16&t))}class R${constructor(){}supports(n){return sw(n)}create(n){return new pCe(n)}}const fCe=(t,n)=>n;class pCe{constructor(n){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=n||fCe}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new mCe(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new j$),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new j$),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class mCe{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gCe{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class j${constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new gCe,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function L$(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new yCe(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class yCe{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $$(){return new Sw([new R$])}let Sw=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||$$()),deps:[[t,new I1,new O1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new jt(901,!1)}}return t.\u0275prov=It({token:t,providedIn:"root",factory:$$}),t})();function V$(){return new ay([new B$])}let ay=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||V$()),deps:[[t,new I1,new O1]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new jt(901,!1)}}return t.\u0275prov=It({token:t,providedIn:"root",factory:V$}),t})();const xCe=k$(null,"core",[]);let wCe=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(wt(jh))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();function fv(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function qA(t,n){const e=ro(t),i=n.elementInjector||Kx();return new z1(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let YA=null;function Lh(){return YA}class kCe{}const vo=new Yn("DocumentToken");let XA=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function DCe(){return wt(H$)}()},providedIn:"platform"}),t})();const TCe=new Yn("Location Initialized");let H$=(()=>{class t extends XA{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Lh().getBaseHref(this._doc)}onPopState(e){const i=Lh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Lh().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){U$()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){U$()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:function(){return function ECe(){return new H$(wt(vo))}()},providedIn:"platform"}),t})();function U$(){return!!window.history.pushState}function JA(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function z$(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Bh(t){return t&&"?"!==t[0]?"?"+t:t}let rm=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(W$)},providedIn:"root"}),t})();const G$=new Yn("appBaseHref");let W$=(()=>{class t extends rm{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Vi(vo).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return JA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Bh(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Bh(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Bh(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(wt(XA),wt(G$,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ACe=(()=>{class t extends rm{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=JA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Bh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Bh(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(wt(XA),wt(G$,8))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),KA=(()=>{class t{constructor(e){this._subject=new ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function ICe(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(z$(q$(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Bh(i))}normalize(e){return t.stripTrailingSlash(function OCe(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,q$(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Bh(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Bh(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Bh,t.joinWithSlash=JA,t.stripTrailingSlash=z$,t.\u0275fac=function(e){return new(e||t)(wt(rm))},t.\u0275prov=It({token:t,factory:function(){return function MCe(){return new KA(wt(rm))}()},providedIn:"root"}),t})();function q$(t){return t.replace(/\/index.html$/,"")}var Xl=(()=>((Xl=Xl||{})[Xl.Decimal=0]="Decimal",Xl[Xl.Percent=1]="Percent",Xl[Xl.Currency=2]="Currency",Xl[Xl.Scientific=3]="Scientific",Xl))(),Vo=(()=>((Vo=Vo||{})[Vo.Format=0]="Format",Vo[Vo.Standalone=1]="Standalone",Vo))(),Yi=(()=>((Yi=Yi||{})[Yi.Narrow=0]="Narrow",Yi[Yi.Abbreviated=1]="Abbreviated",Yi[Yi.Wide=2]="Wide",Yi[Yi.Short=3]="Short",Yi))(),ts=(()=>((ts=ts||{})[ts.Short=0]="Short",ts[ts.Medium=1]="Medium",ts[ts.Long=2]="Long",ts[ts.Full=3]="Full",ts))(),Ei=(()=>((Ei=Ei||{})[Ei.Decimal=0]="Decimal",Ei[Ei.Group=1]="Group",Ei[Ei.List=2]="List",Ei[Ei.PercentSign=3]="PercentSign",Ei[Ei.PlusSign=4]="PlusSign",Ei[Ei.MinusSign=5]="MinusSign",Ei[Ei.Exponential=6]="Exponential",Ei[Ei.SuperscriptingExponent=7]="SuperscriptingExponent",Ei[Ei.PerMille=8]="PerMille",Ei[Ei.Infinity=9]="Infinity",Ei[Ei.NaN=10]="NaN",Ei[Ei.TimeSeparator=11]="TimeSeparator",Ei[Ei.CurrencyDecimal=12]="CurrencyDecimal",Ei[Ei.CurrencyGroup=13]="CurrencyGroup",Ei))();function X$(t,n,e){const i=kl(t),o=Yc([i[Nn.DayPeriodsFormat],i[Nn.DayPeriodsStandalone]],n);return Yc(o,e)}function J$(t,n,e){const i=kl(t),o=Yc([i[Nn.DaysFormat],i[Nn.DaysStandalone]],n);return Yc(o,e)}function QA(t,n,e){const i=kl(t),o=Yc([i[Nn.MonthsFormat],i[Nn.MonthsStandalone]],n);return Yc(o,e)}function kw(t,n){return Yc(kl(t)[Nn.DateFormat],n)}function Dw(t,n){return Yc(kl(t)[Nn.TimeFormat],n)}function Tw(t,n){return Yc(kl(t)[Nn.DateTimeFormat],n)}function qc(t,n){const e=kl(t),i=e[Nn.NumberSymbols][n];if(typeof i>"u"){if(n===Ei.CurrencyDecimal)return e[Nn.NumberSymbols][Ei.Decimal];if(n===Ei.CurrencyGroup)return e[Nn.NumberSymbols][Ei.Group]}return i}function K$(t){if(!t[Nn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Nn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Yc(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function eM(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const HCe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ly={},UCe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var la=(()=>((la=la||{})[la.Short=0]="Short",la[la.ShortGMT=1]="ShortGMT",la[la.Long=2]="Long",la[la.Extended=3]="Extended",la))(),Fi=(()=>((Fi=Fi||{})[Fi.FullYear=0]="FullYear",Fi[Fi.Month=1]="Month",Fi[Fi.Date=2]="Date",Fi[Fi.Hours=3]="Hours",Fi[Fi.Minutes=4]="Minutes",Fi[Fi.Seconds=5]="Seconds",Fi[Fi.FractionalSeconds=6]="FractionalSeconds",Fi[Fi.Day=7]="Day",Fi))(),rr=(()=>((rr=rr||{})[rr.DayPeriods=0]="DayPeriods",rr[rr.Days=1]="Days",rr[rr.Months=2]="Months",rr[rr.Eras=3]="Eras",rr))();function Q$(t,n,e,i){let r=function QCe(t){if(t7(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Ew(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(HCe))return function ZCe(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!t7(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=$h(e,n)||n;let a,s=[];for(;n;){if(a=UCe.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=e7(i,l),r=function KCe(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function JCe(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(e7(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function XCe(t){if(nM[t])return nM[t];let n;switch(t){case"G":case"GG":case"GGG":n=Eo(rr.Eras,Yi.Abbreviated);break;case"GGGG":n=Eo(rr.Eras,Yi.Wide);break;case"GGGGG":n=Eo(rr.Eras,Yi.Narrow);break;case"y":n=Hs(Fi.FullYear,1,0,!1,!0);break;case"yy":n=Hs(Fi.FullYear,2,0,!0,!0);break;case"yyy":n=Hs(Fi.FullYear,3,0,!1,!0);break;case"yyyy":n=Hs(Fi.FullYear,4,0,!1,!0);break;case"Y":n=Iw(1);break;case"YY":n=Iw(2,!0);break;case"YYY":n=Iw(3);break;case"YYYY":n=Iw(4);break;case"M":case"L":n=Hs(Fi.Month,1,1);break;case"MM":case"LL":n=Hs(Fi.Month,2,1);break;case"MMM":n=Eo(rr.Months,Yi.Abbreviated);break;case"MMMM":n=Eo(rr.Months,Yi.Wide);break;case"MMMMM":n=Eo(rr.Months,Yi.Narrow);break;case"LLL":n=Eo(rr.Months,Yi.Abbreviated,Vo.Standalone);break;case"LLLL":n=Eo(rr.Months,Yi.Wide,Vo.Standalone);break;case"LLLLL":n=Eo(rr.Months,Yi.Narrow,Vo.Standalone);break;case"w":n=tM(1);break;case"ww":n=tM(2);break;case"W":n=tM(1,!0);break;case"d":n=Hs(Fi.Date,1);break;case"dd":n=Hs(Fi.Date,2);break;case"c":case"cc":n=Hs(Fi.Day,1);break;case"ccc":n=Eo(rr.Days,Yi.Abbreviated,Vo.Standalone);break;case"cccc":n=Eo(rr.Days,Yi.Wide,Vo.Standalone);break;case"ccccc":n=Eo(rr.Days,Yi.Narrow,Vo.Standalone);break;case"cccccc":n=Eo(rr.Days,Yi.Short,Vo.Standalone);break;case"E":case"EE":case"EEE":n=Eo(rr.Days,Yi.Abbreviated);break;case"EEEE":n=Eo(rr.Days,Yi.Wide);break;case"EEEEE":n=Eo(rr.Days,Yi.Narrow);break;case"EEEEEE":n=Eo(rr.Days,Yi.Short);break;case"a":case"aa":case"aaa":n=Eo(rr.DayPeriods,Yi.Abbreviated);break;case"aaaa":n=Eo(rr.DayPeriods,Yi.Wide);break;case"aaaaa":n=Eo(rr.DayPeriods,Yi.Narrow);break;case"b":case"bb":case"bbb":n=Eo(rr.DayPeriods,Yi.Abbreviated,Vo.Standalone,!0);break;case"bbbb":n=Eo(rr.DayPeriods,Yi.Wide,Vo.Standalone,!0);break;case"bbbbb":n=Eo(rr.DayPeriods,Yi.Narrow,Vo.Standalone,!0);break;case"B":case"BB":case"BBB":n=Eo(rr.DayPeriods,Yi.Abbreviated,Vo.Format,!0);break;case"BBBB":n=Eo(rr.DayPeriods,Yi.Wide,Vo.Format,!0);break;case"BBBBB":n=Eo(rr.DayPeriods,Yi.Narrow,Vo.Format,!0);break;case"h":n=Hs(Fi.Hours,1,-12);break;case"hh":n=Hs(Fi.Hours,2,-12);break;case"H":n=Hs(Fi.Hours,1);break;case"HH":n=Hs(Fi.Hours,2);break;case"m":n=Hs(Fi.Minutes,1);break;case"mm":n=Hs(Fi.Minutes,2);break;case"s":n=Hs(Fi.Seconds,1);break;case"ss":n=Hs(Fi.Seconds,2);break;case"S":n=Hs(Fi.FractionalSeconds,1);break;case"SS":n=Hs(Fi.FractionalSeconds,2);break;case"SSS":n=Hs(Fi.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Mw(la.Short);break;case"ZZZZZ":n=Mw(la.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Mw(la.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Mw(la.Long);break;default:return null}return nM[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Ew(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function $h(t,n){const e=function NCe(t){return kl(t)[Nn.LocaleId]}(t);if(ly[e]=ly[e]||{},ly[e][n])return ly[e][n];let i="";switch(n){case"shortDate":i=kw(t,ts.Short);break;case"mediumDate":i=kw(t,ts.Medium);break;case"longDate":i=kw(t,ts.Long);break;case"fullDate":i=kw(t,ts.Full);break;case"shortTime":i=Dw(t,ts.Short);break;case"mediumTime":i=Dw(t,ts.Medium);break;case"longTime":i=Dw(t,ts.Long);break;case"fullTime":i=Dw(t,ts.Full);break;case"short":const r=$h(t,"shortTime"),o=$h(t,"shortDate");i=Aw(Tw(t,ts.Short),[r,o]);break;case"medium":const s=$h(t,"mediumTime"),a=$h(t,"mediumDate");i=Aw(Tw(t,ts.Medium),[s,a]);break;case"long":const l=$h(t,"longTime"),c=$h(t,"longDate");i=Aw(Tw(t,ts.Long),[l,c]);break;case"full":const u=$h(t,"fullTime"),d=$h(t,"fullDate");i=Aw(Tw(t,ts.Full),[u,d])}return i&&(ly[e][n]=i),i}function Aw(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Nu(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Fi.Hours)0===a&&-12===e&&(a=12);else if(t===Fi.FractionalSeconds)return function zCe(t,n){return Nu(t,3).substring(0,n)}(a,n);const l=qc(s,Ei.MinusSign);return Nu(a,n,l,i,r)}}function Eo(t,n,e=Vo.Format,i=!1){return function(r,o){return function WCe(t,n,e,i,r,o){switch(e){case rr.Months:return QA(n,r,i)[t.getMonth()];case rr.Days:return J$(n,r,i)[t.getDay()];case rr.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function jCe(t){const n=kl(t);return K$(n),(n[Nn.ExtraData][2]||[]).map(i=>"string"==typeof i?eM(i):[eM(i[0]),eM(i[1])])}(n),u=function LCe(t,n,e){const i=kl(t);K$(i);const o=Yc([i[Nn.ExtraData][0],i[Nn.ExtraData][1]],n)||[];return Yc(o,e)||[]}(n,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,m=s>=f.hours&&a>=f.minutes,g=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case la.Short:return(r>=0?"+":"")+Nu(s,2,o)+Nu(Math.abs(r%60),2,o);case la.ShortGMT:return"GMT"+(r>=0?"+":"")+Nu(s,1,o);case la.Long:return"GMT"+(r>=0?"+":"")+Nu(s,2,o)+":"+Nu(Math.abs(r%60),2,o);case la.Extended:return 0===i?"Z":(r>=0?"+":"")+Nu(s,2,o)+":"+Nu(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const qCe=0,Ow=4;function Z$(t){return Ew(t.getFullYear(),t.getMonth(),t.getDate()+(Ow-t.getDay()))}function tM(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=Z$(e),s=function YCe(t){const n=Ew(t,qCe,1).getDay();return Ew(t,0,1+(n<=Ow?Ow:Ow+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Nu(r,t,qc(i,Ei.MinusSign))}}function Iw(t,n=!1){return function(e,i){return Nu(Z$(e).getFullYear(),t,qc(i,Ei.MinusSign),n)}}const nM={};function e7(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function t7(t){return t instanceof Date&&!isNaN(t.valueOf())}const e2e=/^(\d+)?\.((\d+)(-(\d+))?)?$/,n7=22,Nw=".",cy="0",t2e=";",n2e=",",iM="#";function sM(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function o7(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const lM=/\s+/,s7=[];let Of=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=s7,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(lM):s7}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(lM):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(lM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(ge(Sw),ge(ay),ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class h2e{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Un=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new h2e(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),c7(a,r)}});for(let r=0,o=i.length;r{c7(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo),ge(Sw))},t.\u0275dir=un({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function c7(t,n){t.context.$implicit=n.item}let xn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new p2e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){u7("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){u7("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo))},t.\u0275dir=un({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class p2e{constructor(){this.$implicit=null,this.ngIf=null}}function u7(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${kn(n)}'.`)}class cM{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Fw=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),d7=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new cM(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl),ge(fo),ge(Fw,9))},t.\u0275dir=un({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),f7=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Gl.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ay),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Fu=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(ge(Yl))},t.\u0275dir=un({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ei]}),t})();let m7=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!function uM(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function o2e(t,n,e){return function rM(t,n,e,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function l2e(t){let i,r,o,s,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf(Nw))>-1&&(n=n.replace(Nw,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===cy;o++);if(o===(a=n.length))i=[0],r=1;else{for(a--;n.charAt(a)===cy;)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(n.charAt(o))}return r>n7&&(i=i.splice(0,n7-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);s&&(c=function a2e(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(o){const y=o.match(e2e);if(null===y)throw new Error(`${o} is not a valid digit info`);const b=y[1],C=y[3],D=y[5];null!=b&&(u=sM(b)),null!=C&&(d=sM(C)),null!=D?h=sM(D):null!=C&&d>h&&(h=d)}!function c2e(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(n,r),e);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=c?p.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,h);let f=c.digits,p=c.integerLen;const m=c.exponent;let g=[];for(l=f.every(y=>!y);p0?g=f.splice(p,f.length):(g=f,f=[0]);const v=[];for(f.length>=n.lgSize&&v.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)v.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(qc(e,i)),g.length&&(a+=qc(e,r)+g.join("")),m&&(a+=qc(e,Ei.Exponential)+"+"+m)}else a=qc(e,Ei.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function oM(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(t2e),r=i[0],o=i[1],s=-1!==r.indexOf(Nw)?r.split(Nw):[r.substring(0,r.lastIndexOf(cy)+1),r.substring(r.lastIndexOf(cy)+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf(iM));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();const g7="browser";function v7(t){return t===g7}let V2e=(()=>{class t{}return t.\u0275prov=It({token:t,providedIn:"root",factory:()=>new H2e(wt(vo),window)}),t})();class H2e{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function U2e(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=y7(this.window.history)||y7(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function y7(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class _7{}class gSe extends kCe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class pM extends gSe{static makeCurrent(){!function SCe(t){YA||(YA=t)}(new pM)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function vSe(){return dy=dy||document.querySelector("base"),dy?dy.getAttribute("href"):null}();return null==e?null:function ySe(t){jw=jw||document.createElement("a"),jw.setAttribute("href",t);const n=jw.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){dy=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return o7(document.cookie,n)}}let jw,dy=null;const S7=new Yn("TRANSITION_ID"),bSe=[{provide:yw,useFactory:function _Se(t,n,e){return()=>{e.get(_w).donePromise.then(()=>{const i=Lh(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const Lw=new Yn("EventManagerPlugins");let Bw=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),hy=(()=>{class t extends D7{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const mM={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gM=/%COMP%/g,A7=new Yn("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function M7(t,n){return n.flat(100).map(e=>e.replace(gM,t))}function O7(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let $w=(()=>{class t{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new vM(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof F7?r.applyToHost(e):r instanceof yM&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(i.encapsulation){case Su.Emulated:o=new F7(s,a,i,this.appId,l);break;case Su.ShadowDom:return new ASe(s,a,e,i);default:o=new yM(s,a,i,l)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(wt(Bw),wt(hy),wt(oy),wt(A7))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class vM{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(mM[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(N7(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(N7(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=mM[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=mM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Gl.DashCase|Gl.Important)?n.style.setProperty(e,i,r&Gl.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Gl.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,O7(i)):this.eventManager.addEventListener(n,e,O7(i))}}function N7(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class ASe extends vM{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=M7(r.id,r.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class yM extends vM{constructor(n,e,i,r,o=i.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=M7(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class F7 extends yM{constructor(n,e,i,r,o){const s=r+"-"+i.id;super(n,e,i,o,s),this.contentAttr=function DSe(t){return"_ngcontent-%COMP%".replace(gM,t)}(s),this.hostAttr=function TSe(t){return"_nghost-%COMP%".replace(gM,t)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let MSe=(()=>{class t extends k7{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const P7=["alt","control","meta","shift"],OSe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ISe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let NSe=(()=>{class t extends k7{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Lh().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),P7.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=OSe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),P7.forEach(s=>{s!==r&&(0,ISe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const j7=[{provide:sy,useValue:g7},{provide:f$,useValue:function FSe(){pM.makeCurrent()},multi:!0},{provide:vo,useFactory:function RSe(){return function O1e(t){DE=t}(document),document},deps:[]}],jSe=k$(xCe,"browser",j7),L7=new Yn(""),B7=[{provide:bw,useClass:class xSe{addToWindow(n){Bo.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Bo.getAllAngularTestabilities=()=>n.getAllTestabilities(),Bo.getAllAngularRootElements=()=>n.getAllRootElements(),Bo.frameworkStabilizers||(Bo.frameworkStabilizers=[]),Bo.frameworkStabilizers.push(i=>{const r=Bo.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Lh().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:b$,useClass:LA,deps:[ur,BA,bw]},{provide:LA,useClass:LA,deps:[ur,BA,bw]}],$7=[{provide:FE,useValue:"root"},{provide:qg,useFactory:function PSe(){return new qg},deps:[]},{provide:Lw,useClass:MSe,multi:!0,deps:[vo,ur,sy]},{provide:Lw,useClass:NSe,multi:!0,deps:[vo]},{provide:$w,useClass:$w,deps:[Bw,hy,oy,A7]},{provide:Wg,useExisting:$w},{provide:D7,useExisting:hy},{provide:hy,useClass:hy,deps:[vo]},{provide:Bw,useClass:Bw,deps:[Lw,ur]},{provide:_7,useClass:wSe,deps:[]},[]];let bM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:oy,useValue:e.appId},{provide:S7,useExisting:oy},bSe]}}}return t.\u0275fac=function(e){return new(e||t)(wt(L7,12))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[...$7,...B7],imports:[If,wCe]}),t})(),V7=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function BSe(){return new V7(wt(vo))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let wM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new(e||t):wt(z7),i},providedIn:"root"}),t})(),z7=(()=>{class t extends wM{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case To.NONE:return i;case To.HTML:return Id(i,"HTML")?mc(i):t8(this._doc,String(i)).toString();case To.STYLE:return Id(i,"Style")?mc(i):i;case To.SCRIPT:if(Id(i,"Script"))return mc(i);throw new Error("unsafe value used in a script context");case To.URL:return Id(i,"URL")?mc(i):Wx(String(i));case To.RESOURCE_URL:if(Id(i,"ResourceURL"))return mc(i);throw new Error(`unsafe value used in a resource URL context (see ${fx})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${fx})`)}}bypassSecurityTrustHtml(e){return function L1e(t){return new I1e(t)}(e)}bypassSecurityTrustStyle(e){return function B1e(t){return new N1e(t)}(e)}bypassSecurityTrustScript(e){return function $1e(t){return new F1e(t)}(e)}bypassSecurityTrustUrl(e){return function V1e(t){return new P1e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function H1e(t){return new R1e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function zSe(t){return new z7(t.get(vo))}(wt(Ca)),i},providedIn:"root"}),t})();class G7{}class GSe{}const Vh="*";function ul(t,n){return{type:7,name:t,definitions:n,options:{}}}function Ra(t,n=null){return{type:4,styles:n,timings:t}}function W7(t,n=null){return{type:2,steps:t,options:n}}function Or(t){return{type:6,styles:t,offset:null}}function ja(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function q7(t){Promise.resolve().then(t)}class fy{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){q7(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Y7{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?q7(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const CM="!";function X7(t){return new jt(3e3,!1)}function Dke(){return typeof window<"u"&&typeof window.document<"u"}function SM(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ff(t){switch(t.length){case 0:return new fy;case 1:return t[0];default:return new Y7(t)}}function J7(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,v=p;if("offset"!==m)switch(g=n.normalizePropertyName(g,s),v){case CM:v=r.get(m);break;case Vh:v=o.get(m);break;default:v=n.normalizeStyleValue(m,g,v,s)}f.set(g,v)}),h||a.push(f),c=f,l=d}),s.length)throw function pke(t){return new jt(3502,!1)}();return a}function kM(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&DM(e,"start",t)));break;case"done":t.onDone(()=>i(e&&DM(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&DM(e,"destroy",t)))}}function DM(t,n,e){const o=TM(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function TM(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function yc(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function K7(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let EM=(t,n)=>!1,Q7=(t,n,e)=>[],Z7=null;function AM(t){const n=t.parentNode||t.host;return n===Z7?null:n}(SM()||typeof Element<"u")&&(Dke()?(Z7=(()=>document.documentElement)(),EM=(t,n)=>{for(;n;){if(n===t)return!0;n=AM(n)}return!1}):EM=(t,n)=>t.contains(n),Q7=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let om=null,e9=!1;const t9=EM,n9=Q7;let i9=(()=>{class t{validateStyleProperty(e){return function Eke(t){om||(om=function Ake(){return typeof document<"u"?document.body:null}()||{},e9=!!om.style&&"WebkitAppearance"in om.style);let n=!0;return om.style&&!function Tke(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in om.style,!n&&e9&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in om.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return t9(e,i)}getParentElement(e){return AM(e)}query(e,i,r){return n9(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new fy(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),MM=(()=>{class t{}return t.NOOP=new i9,t})();const Mke=1e3,OM="ng-enter",Vw="ng-leave",Hw="ng-trigger",Uw=".ng-trigger",o9="ng-animating",IM=".ng-animating";function Hh(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:NM(parseFloat(n[1]),n[2])}function NM(t,n){return"s"===n?t*Mke:t}function zw(t,n,e){return t.hasOwnProperty("duration")?t:function Ike(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(X7()),{duration:0,delay:0,easing:""};r=NM(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=NM(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function WSe(){return new jt(3100,!1)}()),a=!0),o<0&&(n.push(function qSe(){return new jt(3101,!1)}()),a=!0),a&&n.splice(l,0,X7())}return{duration:r,delay:o,easing:s}}(t,n,e)}function py(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function s9(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Pf(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function l9(t,n,e){return e?n+":"+e+";":""}function c9(t){let n="";for(let e=0;e{const o=PM(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),SM()&&c9(t))}function sm(t,n){t.style&&(n.forEach((e,i)=>{const r=PM(i);t.style[r]=""}),SM()&&c9(t))}function my(t){return Array.isArray(t)?1==t.length?t[0]:W7(t):t}const FM=new RegExp("{{\\s*(.+?)\\s*}}","g");function u9(t){let n=[];if("string"==typeof t){let e;for(;e=FM.exec(t);)n.push(e[1]);FM.lastIndex=0}return n}function gy(t,n,e){const i=t.toString(),r=i.replace(FM,(o,s)=>{let a=n[s];return null==a&&(e.push(function XSe(t){return new jt(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function Gw(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const Pke=/-+([a-z0-9])/g;function PM(t){return t.replace(Pke,(...n)=>n[1].toUpperCase())}function Rke(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _c(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function JSe(t){return new jt(3004,!1)}()}}function d9(t,n){return window.getComputedStyle(t)[n]}const Yw="*";function Hke(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Uke(t,n,e){if(":"==t[0]){const l=function zke(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function cke(t){return new jt(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(h9(r,s));"<"==o[0]&&!(r==Yw&&s==Yw)&&n.push(h9(s,r))}(i,e,n)):e.push(t),e}const Xw=new Set(["true","1"]),Jw=new Set(["false","0"]);function h9(t,n){const e=Xw.has(t)||Jw.has(t),i=Xw.has(n)||Jw.has(n);return(r,o)=>{let s=t==Yw||t==r,a=n==Yw||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Xw.has(t):Jw.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Xw.has(n):Jw.has(n)),s&&a}}const Gke=new RegExp("s*:selfs*,?","g");function RM(t,n,e,i){return new Wke(t).build(n,e,i)}class Wke{constructor(n){this._driver=n}build(n,e,i){const r=new Xke(e);return this._resetContextStyleTimingState(r),_c(this,my(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function QSe(){return new jt(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function ZSe(){return new jt(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{u9(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Gw(o.values()),e.errors.push(function eke(t,n){return new jt(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=_c(this,my(n.animation),e);return{type:1,matchers:Hke(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:am(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>_c(this,i,e)),options:am(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=_c(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:am(n.options)}}visitAnimate(n,e){const i=function Kke(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return jM(zw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=jM(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=zw(e,n);return jM(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Or({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Or(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Vh?i.push(a):e.errors.push(new jt(3002,!1)):i.push(s9(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function nke(t,n,e,i,r){return new jt(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function Fke(t,n,e){const i=n.params||{},r=u9(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function YSe(t){return new jt(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function ike(){return new jt(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(v=>{const y=this._makeStyleAst(v,e);let b=null!=y.offset?y.offset:function Jke(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(y.styles),C=0;return null!=b&&(o++,C=y.offset=b),l=l||C<0||C>1,a=a||C0&&o{const b=h>0?y==f?1:h*y:s[y],C=b*g;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(v,e),v.offset=b,i.styles.push(v)}),i}visitReference(n,e){return{type:8,animation:_c(this,my(n.animation),e),options:am(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:am(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:am(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function qke(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Gke,"")),t=t.replace(/@\*/g,Uw).replace(/@\w+/g,e=>Uw+"-"+e.slice(1)).replace(/:animating/g,IM),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,yc(e.collectedStyles,e.currentQuerySelector,new Map);const a=_c(this,my(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:am(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function ake(){return new jt(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:zw(n.timings,e.errors,!0);return{type:12,animation:_c(this,my(n.animation),e),timings:i,options:null}}}class Xke{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function am(t){return t?(t=py(t)).params&&(t.params=function Yke(t){return t?py(t):null}(t.params)):t={},t}function jM(t,n,e){return{duration:t,delay:n,easing:e}}function LM(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Kw{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const eDe=new RegExp(":enter","g"),nDe=new RegExp(":leave","g");function BM(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new iDe).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class iDe{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Kw;const d=new $M(n,e,c,r,o,u,[]);d.options=l;const h=l.delay?Hh(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),_c(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===e){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[LM(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Hh(gy(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Hh(i.duration):null,a=null!=i.delay?Hh(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),_c(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qw);const s=Hh(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>_c(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Hh(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),_c(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return zw(e.params?gy(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Hh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Qw);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),_c(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;_c(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Qw={};class $M{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Zw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Hh(i.duration)),null!=i.delay&&(r.delay=Hh(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=gy(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new $M(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Qw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new rDe(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(eDe,"."+this._enterClassName)).replace(nDe,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function lke(t){return new jt(3014,!1)}()),a}}class Zw{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Zw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vh),this._currentKeyframe.set(e,Vh);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function oDe(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,Vh)}else Pf(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=gy(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Vh),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Pf(a,new Map,this._backFill);c.forEach((u,d)=>{u===CM?n.add(d):u===Vh&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?Gw(n.values()):[],s=e.size?Gw(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return LM(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class rDe extends Zw{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Pf(n[0]);l.set("offset",0),o.push(l);const c=Pf(n[0]);c.set("offset",m9(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=Pf(n[d]);const f=h.get("offset");h.set("offset",m9((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return LM(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function m9(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class VM{}const sDe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class aDe extends VM{normalizePropertyName(n,e){return PM(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(sDe.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function KSe(t,n){return new jt(3005,!1)}())}return s+o}}function g9(t,n,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const HM={};class v9{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function lDe(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||HM,p=this.buildStyles(i,a&&a.params||HM,d),m=l&&l.params||HM,g=this.buildStyles(r,m,d),v=new Set,y=new Map,b=new Map,C="void"===r,D={params:cDe(m,h),delay:this.ast.options?.delay},E=u?[]:BM(n,e,this.ast.animation,o,s,p,g,D,c,d);let B=0;if(E.forEach(j=>{B=Math.max(j.duration+j.delay,B)}),d.length)return g9(e,this._triggerName,i,r,C,p,g,[],[],y,b,B,d);E.forEach(j=>{const U=j.element,G=yc(y,U,new Set);j.preStyleProps.forEach(oe=>G.add(oe));const X=yc(b,U,new Set);j.postStyleProps.forEach(oe=>X.add(oe)),U!==e&&v.add(U)});const z=Gw(v.values());return g9(e,this._triggerName,i,r,C,p,g,E,z,y,b,B)}}function cDe(t,n){const e=py(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class uDe{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=py(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=gy(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class hDe{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new uDe(r.style,r.options&&r.options.params||{},i))}),y9(this.states,"true","1"),y9(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new v9(n,r,this.states))}),this.fallbackTransition=function fDe(t,n,e){return new v9(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function y9(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const pDe=new Kw;class mDe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=[],o=RM(this._driver,e,i,r);if(i.length)throw function mke(t){return new jt(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=J7(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=BM(this._driver,e,o,OM,Vw,new Map,new Map,i,pDe,r),s.forEach(u=>{const d=yc(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function gke(){return new jt(3300,!1)}()),s=[]),r.length)throw function vke(t){return new jt(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Vh))})});const c=Ff(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function yke(t){return new jt(3301,!1)}();return e}listen(n,e,i,r){const o=TM(e,"","","");return kM(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const _9="ng-animate-queued",UM="ng-animate-disabled",bDe=[],b9={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xDe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xc="__ng_removed";class zM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function kDe(t){return t??null}(i?n.value:n),i){const o=py(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const vy="void",GM=new zM(vy);class wDe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Jc(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function _ke(t,n){return new jt(3302,!1)}();if(null==i||0==i.length)throw function bke(t){return new jt(3303,!1)}();if(!function DDe(t){return"start"==t||"done"==t}(i))throw function xke(t,n){return new jt(3400,!1)}();const o=yc(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=yc(this._engine.statesByElement,n,new Map);return a.has(e)||(Jc(n,Hw),Jc(n,Hw+"-"+e),a.set(e,GM)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function wke(t){return new jt(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new WM(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Jc(n,Hw),Jc(n,Hw+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new zM(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=GM),c.value!==vy&&l.value===c.value){if(!function ADe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{sm(n,g),jd(n,v)})}return}const h=yc(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Jc(n,_9),s.onStart(()=>{pv(n,_9)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let v=g.indexOf(s);v>=0&&g.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Uw,!0);i.forEach(r=>{if(r[Xc])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,vy,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Ff(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||GM,u=new zM(vy),d=new WM(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Xc];(!o||o===b9)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Jc(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=TM(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,kM(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class CDe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new wDe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(eC(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!eC(e))return;const o=e[Xc];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Jc(n,UM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),pv(n,UM))}removeNode(n,e,i,r){if(eC(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Xc]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return eC(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Uw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,IM,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ff(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Xc];if(e&&e.setForRemoval){if(n[Xc]=b9,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(UM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ff(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function Cke(t){return new jt(3402,!1)}()}_flushAnimations(n,e){const i=new Kw,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(J=>{u.add(J);const H=this.driver.query(J,".ng-animate-queued",!0);for(let pe=0;pe{const pe=OM+m++;p.set(H,pe),J.forEach(A=>Jc(A,pe))});const g=[],v=new Set,y=new Set;for(let J=0;Jv.add(A)):y.add(H))}const b=new Map,C=C9(h,Array.from(v));C.forEach((J,H)=>{const pe=Vw+m++;b.set(H,pe),J.forEach(A=>Jc(A,pe))}),n.push(()=>{f.forEach((J,H)=>{const pe=p.get(H);J.forEach(A=>pv(A,pe))}),C.forEach((J,H)=>{const pe=b.get(H);J.forEach(A=>pv(A,pe))}),g.forEach(J=>{this.processLeaveNode(J)})});const D=[],E=[];for(let J=this._namespaceList.length-1;J>=0;J--)this._namespaceList[J].drainQueuedTransitions(e).forEach(pe=>{const A=pe.player,N=pe.element;if(D.push(A),this.collectedEnterElements.length){const Te=N[Xc];if(Te&&Te.setForMove){if(Te.previousTriggersValues&&Te.previousTriggersValues.has(pe.triggerName)){const et=Te.previousTriggersValues.get(pe.triggerName),We=this.statesByElement.get(pe.element);if(We&&We.has(pe.triggerName)){const st=We.get(pe.triggerName);st.value=et,We.set(pe.triggerName,st)}}return void A.destroy()}}const F=!d||!this.driver.containsElement(d,N),q=b.get(N),V=p.get(N),ce=this._buildInstruction(pe,i,V,q,F);if(ce.errors&&ce.errors.length)return void E.push(ce);if(F)return A.onStart(()=>sm(N,ce.fromStyles)),A.onDestroy(()=>jd(N,ce.toStyles)),void r.push(A);if(pe.isFallbackTransition)return A.onStart(()=>sm(N,ce.fromStyles)),A.onDestroy(()=>jd(N,ce.toStyles)),void r.push(A);const ve=[];ce.timelines.forEach(Te=>{Te.stretchStartingKeyframe=!0,this.disabledNodes.has(Te.element)||ve.push(Te)}),ce.timelines=ve,i.append(N,ce.timelines),s.push({instruction:ce,player:A,element:N}),ce.queriedElements.forEach(Te=>yc(a,Te,[]).push(A)),ce.preStyleProps.forEach((Te,et)=>{if(Te.size){let We=l.get(et);We||l.set(et,We=new Set),Te.forEach((st,$)=>We.add($))}}),ce.postStyleProps.forEach((Te,et)=>{let We=c.get(et);We||c.set(et,We=new Set),Te.forEach((st,$)=>We.add($))})});if(E.length){const J=[];E.forEach(H=>{J.push(function Ske(t,n){return new jt(3505,!1)}())}),D.forEach(H=>H.destroy()),this.reportError(J)}const B=new Map,z=new Map;s.forEach(J=>{const H=J.element;i.has(H)&&(z.set(H,H),this._beforeAnimationBuild(J.player.namespaceId,J.instruction,B))}),r.forEach(J=>{const H=J.element;this._getPreviousPlayers(H,!1,J.namespaceId,J.triggerName,null).forEach(A=>{yc(B,H,[]).push(A),A.destroy()})});const j=g.filter(J=>k9(J,l,c)),U=new Map;w9(U,this.driver,y,c,Vh).forEach(J=>{k9(J,l,c)&&j.push(J)});const X=new Map;f.forEach((J,H)=>{w9(X,this.driver,new Set(J),l,CM)}),j.forEach(J=>{const H=U.get(J),pe=X.get(J);U.set(J,new Map([...Array.from(H?.entries()??[]),...Array.from(pe?.entries()??[])]))});const oe=[],P=[],W={};s.forEach(J=>{const{element:H,player:pe,instruction:A}=J;if(i.has(H)){if(u.has(H))return pe.onDestroy(()=>jd(H,A.toStyles)),pe.disabled=!0,pe.overrideTotalTime(A.totalTime),void r.push(pe);let N=W;if(z.size>1){let q=H;const V=[];for(;q=q.parentNode;){const ce=z.get(q);if(ce){N=ce;break}V.push(q)}V.forEach(ce=>z.set(ce,N))}const F=this._buildAnimation(pe.namespaceId,A,B,o,X,U);if(pe.setRealPlayer(F),N===W)oe.push(pe);else{const q=this.playersByElement.get(N);q&&q.length&&(pe.parentPlayer=Ff(q)),r.push(pe)}}else sm(H,A.fromStyles),pe.onDestroy(()=>jd(H,A.toStyles)),P.push(pe),u.has(H)&&r.push(pe)}),P.forEach(J=>{const H=o.get(J.element);if(H&&H.length){const pe=Ff(H);J.setRealPlayer(pe)}}),r.forEach(J=>{J.parentPlayer?J.syncPlayerEvents(J.parentPlayer):J.destroy()});for(let J=0;J!F.destroyed);N.length?TDe(this,H,N):this.processLeaveNode(H)}return g.length=0,oe.forEach(J=>{this.players.push(J),J.onDone(()=>{J.destroy();const H=this.players.indexOf(J);this.players.splice(H,1)}),J.play()}),oe}elementContainsData(n,e){let i=!1;const r=e[Xc];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==vy;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=yc(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}sm(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const m=p.element;u.add(m);const g=m[Xc];if(g&&g.removedBeforeQueried)return new fy(p.duration,p.delay);const v=m!==l,y=function EDe(t){const n=[];return S9(t,n),n}((i.get(m)||bDe).map(B=>B.getRealPlayer())).filter(B=>!!B.element&&B.element===m),b=o.get(m),C=s.get(m),D=J7(0,this._normalizer,0,p.keyframes,b,C),E=this._buildPlayer(p,D,y);if(p.subTimeline&&r&&d.add(m),v){const B=new WM(n,a,m);B.setRealPlayer(E),c.push(B)}return E});c.forEach(p=>{yc(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function SDe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Jc(p,o9));const f=Ff(h);return f.onDestroy(()=>{u.forEach(p=>pv(p,o9)),jd(l,e.toStyles)}),d.forEach(p=>{yc(r,p,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new fy(n.duration,n.delay)}}class WM{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new fy,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>kM(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){yc(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function eC(t){return t&&1===t.nodeType}function x9(t,n){const e=t.style.display;return t.style.display=n??"none",e}function w9(t,n,e,i,r){const o=[];e.forEach(l=>o.push(x9(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Xc]=xDe,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>x9(l,o[a++])),s}function C9(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?i:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);l!==i&&e.get(l).push(a)}),e}function Jc(t,n){t.classList?.add(n)}function pv(t,n){t.classList?.remove(n)}function TDe(t,n,e){Ff(e).onDone(()=>t.processLeaveNode(n))}function S9(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class tC{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new CDe(n,e,i),this._timelineEngine=new mDe(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=[],u=RM(this._driver,o,l,c);if(l.length)throw function fke(t,n){return new jt(3404,!1)}();a=function dDe(t,n,e){return new hDe(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=K7(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=K7(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ODe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&jd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jd(this._element,this._initialStyles),this._endStyles&&(jd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sm(this._element,this._endStyles),this._endStyles=null),jd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function qM(t){let n=null;return t.forEach((e,i)=>{(function IDe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class D9{constructor(n,e,i,r){this.element=n,this.keyframes=e,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._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:d9(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class NDe{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return t9(n,e)}getParentElement(n){return AM(n)}query(n,e,i){return n9(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof D9);(function jke(t,n){return 0===t||0===n})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function Nke(t){return t.length?t[0]instanceof Map?t:t.map(n=>s9(n)):[]}(e).map(f=>Pf(f));d=function Lke(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,d9(t,a)))}}return n}(n,d,c);const h=function MDe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=qM(n[0]),n.length>1&&(i=qM(n[n.length-1]))):n instanceof Map&&(e=qM(n)),e||i?new ODe(t,e,i):null}(n,d);return new D9(n,d,l,h)}}let FDe=(()=>{class t extends G7{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Su.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?W7(e):e;return T9(this._renderer,null,i,"register",[r]),new PDe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(wt(Wg),wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class PDe extends GSe{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new RDe(this._id,n,e||{},this._renderer)}}class RDe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return T9(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function T9(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const E9="@.disabled";let jDe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new A9("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new LDe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(wt(Wg),wt(tC),wt(ur))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();class A9{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==E9?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class LDe extends A9{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==E9?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function BDe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function $De(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let VDe=(()=>{class t extends tC{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(wt(vo),wt(MM),wt(VM),wt(jh))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const M9=[{provide:G7,useClass:FDe},{provide:VM,useFactory:function HDe(){return new aDe}},{provide:tC,useClass:VDe},{provide:Wg,useFactory:function UDe(t,n,e){return new jDe(t,n,e)},deps:[$w,tC,ur]}],YM=[{provide:MM,useFactory:()=>new NDe},{provide:p$,useValue:"BrowserAnimations"},...M9],XM=[{provide:MM,useClass:i9},{provide:p$,useValue:"NoopAnimations"},...M9];let zDe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?XM:YM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:YM,imports:[bM]}),t})(),GDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:XM,imports:[bM]}),t})();function Hn(...t){let n=t[t.length-1];return fi(n)?(t.pop(),ia(t,n)):at(t)}class ca extends fn{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Cn;return this._value}next(n){super.next(this._value=n)}}const iC=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class JM extends I{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class WDe extends I{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function KM(t,n,e,i,r=new WDe(t,e,i)){if(!r.closed)return n instanceof Wt?n.subscribe(r):nl(n)(r)}const O9={};function rC(...t){let n,e;return fi(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Se(t[0])&&(t=t[0]),at(t,e).lift(new qDe(n))}class qDe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new YDe(n,this.resultSelector))}}class YDe extends JM{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(O9),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function sC(t){return t?function JDe(t){return new Wt(n=>t.schedule(()=>n.complete()))}(t):Uh}function I9(t){return new Wt(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?ho(e):sC()).subscribe(n)})}function Rf(t,n){return new Wt(n?e=>n.schedule(KDe,0,{error:t,subscriber:e}):e=>e.error(t))}function KDe({error:t,subscriber:n}){n.error(t)}function bc(t,n){return"function"==typeof n?e=>e.pipe(bc((i,r)=>ho(t(i,r)).pipe($t((o,s)=>n(i,o,r,s))))):e=>e.lift(new QDe(t))}class QDe{constructor(n){this.project=n}call(n,e){return e.subscribe(new ZDe(n,this.project))}}class ZDe extends Y{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Hl(this),r=this.destination;r.add(i),this.innerSubscription=Le(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const N9=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function ua(t){return n=>0===t?sC():n.lift(new eTe(t))}class eTe{constructor(n){if(this.total=n,this.total<0)throw new N9}call(n,e){return e.subscribe(new tTe(n,this.total))}}class tTe extends I{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function aC(...t){const n=t[t.length-1];return fi(n)?(t.pop(),e=>oC(t,e,n)):e=>oC(t,e)}function ps(t,n){return function(i){return i.lift(new nTe(t,n))}}class nTe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new iTe(n,this.predicate,this.thisArg))}}class iTe extends I{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function lC(t=null){return n=>n.lift(new rTe(t))}class rTe{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new oTe(n,this.defaultValue))}}class oTe extends I{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function F9(t=lTe){return n=>n.lift(new sTe(t))}class sTe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new aTe(n,this.errorFactory))}}class aTe extends I{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function lTe(){return new iC}function jf(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ps((r,o)=>t(r,o,i)):ht,ua(1),e?lC(n):F9(()=>new iC))}function Lf(t,n){return it(t,n,1)}function zh(){}function ms(t,n,e){return function(r){return r.lift(new cTe(t,n,e))}}class cTe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new uTe(n,this.nextOrObserver,this.error,this.complete))}}class uTe extends I{constructor(n,e,i,r){super(n),this._tapNext=zh,this._tapError=zh,this._tapComplete=zh,this._tapError=i||zh,this._tapComplete=r||zh,be(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||zh,this._tapError=e.error||zh,this._tapComplete=e.complete||zh)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Jl(t){return function(e){const i=new dTe(t),r=e.lift(i);return i.caught=r}}class dTe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new hTe(n,this.selector,this.caught))}}class hTe extends Y{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Hl(this);this.add(i);const r=Le(e,i);r!==i&&this.add(r)}}}function P9(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new fTe(t,n,e))}}class fTe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new pTe(n,this.accumulator,this.seed,this.hasSeed))}}class pTe extends I{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function QM(t){return function(e){return 0===t?sC():e.lift(new mTe(t))}}class mTe{constructor(n){if(this.total=n,this.total<0)throw new N9}call(n,e){return e.subscribe(new gTe(n,this.total))}}class gTe extends I{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(t?ps((r,o)=>t(r,o,i)):ht,QM(1),e?lC(n):F9(()=>new iC))}class yTe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new _Te(n,this.predicate,this.inclusive))}}class _Te extends I{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class xTe{constructor(n){this.value=n}call(n,e){return e.subscribe(new wTe(n,this.value))}}class wTe extends I{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function ZM(t){return n=>n.lift(new CTe(t))}class CTe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new STe(n,this.callback))}}class STe extends I{constructor(n,e){super(n),this.add(new re(e))}}const Ki="primary",yy=Symbol("RouteTitle");class kTe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mv(t){return new kTe(t)}function DTe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function L9(t){return Array.prototype.concat.apply([],t)}function B9(t){return t.length>0?t[t.length-1]:null}function La(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Bf(t){return sA(t)?t:q1(t)?ho(Promise.resolve(t)):Hn(t)}const cC=!1,ETe={exact:function H9(t,n,e){if(!lm(t.segments,n.segments)||!uC(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!H9(t.children[i],n.children[i],e))return!1;return!0},subset:U9},$9={exact:function ATe(t,n){return Ld(t,n)},subset:function MTe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>j9(t[e],n[e]))},ignored:()=>!0};function V9(t,n,e){return ETe[e.paths](t.root,n.root,e.matrixParams)&&$9[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function U9(t,n,e){return z9(t,n,n.segments,e)}function z9(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!lm(r,e)||n.hasChildren()||!uC(r,e,i))}if(t.segments.length===e.length){if(!lm(t.segments,e)||!uC(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!U9(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(lm(t.segments,r)&&uC(t.segments,r,i)&&t.children[Ki])&&z9(t.children[Ki],n,o,i)}}function uC(t,n,e){return n.every((i,r)=>$9[e](t[r].parameters,i.parameters))}class $f{constructor(n=new pr([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mv(this.queryParams)),this._queryParamMap}toString(){return NTe.serialize(this)}}class pr{constructor(n,e){this.segments=n,this.children=e,this.parent=null,La(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dC(this)}}class _y{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mv(this.parameters)),this._parameterMap}toString(){return q9(this)}}function lm(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let by=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return new e3},providedIn:"root"}),t})();class e3{parse(n){const e=new HTe(n);return new $f(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${xy(n.root,!0)}`,i=function RTe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${hC(e)}=${hC(r)}`).join("&"):`${hC(e)}=${hC(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function FTe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const NTe=new e3;function dC(t){return t.segments.map(n=>q9(n)).join("/")}function xy(t,n){if(!t.hasChildren())return dC(t);if(n){const e=t.children[Ki]?xy(t.children[Ki],!1):"",i=[];return La(t.children,(r,o)=>{o!==Ki&&i.push(`${o}:${xy(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function ITe(t,n){let e=[];return La(t.children,(i,r)=>{r===Ki&&(e=e.concat(n(i,r)))}),La(t.children,(i,r)=>{r!==Ki&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===Ki?[xy(t.children[Ki],!1)]:[`${r}:${xy(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ki]?`${dC(t)}/${e[0]}`:`${dC(t)}/(${e.join("//")})`}}function G9(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hC(t){return G9(t).replace(/%3B/gi,";")}function t3(t){return G9(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fC(t){return decodeURIComponent(t)}function W9(t){return fC(t.replace(/\+/g,"%20"))}function q9(t){return`${t3(t.path)}${function PTe(t){return Object.keys(t).map(n=>`;${t3(n)}=${t3(t[n])}`).join("")}(t.parameters)}`}const jTe=/^[^\/()?;=#]+/;function pC(t){const n=t.match(jTe);return n?n[0]:""}const LTe=/^[^=?&#]+/,$Te=/^[^&#]+/;class HTe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pr([],{}):new pr([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Ki]=new pr(n,e)),i}parseSegment(){const n=pC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new jt(4009,cC);return this.capture(n),new _y(fC(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=pC(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=pC(this.remaining);r&&(i=r,this.capture(i))}n[fC(e)]=fC(i)}parseQueryParam(n){const e=function BTe(t){const n=t.match(LTe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function VTe(t){const n=t.match($Te);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=W9(e),o=W9(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=pC(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new jt(4010,cC);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Ki);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ki]:new pr([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new jt(4011,cC)}}function n3(t){return t.segments.length>0?new pr([],{[Ki]:t}):t}function mC(t){const n={};for(const i of Object.keys(t.children)){const o=mC(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function UTe(t){if(1===t.numberOfChildren&&t.children[Ki]){const n=t.children[Ki];return new pr(t.segments.concat(n.segments),n.children)}return t}(new pr(t.segments,n))}function cm(t){return t instanceof $f}const r3=!1;function zTe(t,n,e,i,r){if(0===e.length)return gv(n.root,n.root,n.root,i,r);const o=function Q9(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new K9(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return La(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new K9(e,n,i)}(e);return o.toRoot()?gv(n.root,n.root,new pr([],{}),i,r):function s(l){const c=function WTe(t,n,e,i){if(t.isAbsolute)return new vv(n.root,!0,0);if(-1===i)return new vv(e,e===n.root,0);return function Z9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new jt(4005,r3&&"Invalid number of '../'");r=i.segments.length}return new vv(i,!1,r-o)}(e,i+(wy(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),u=c.processChildren?yv(c.segmentGroup,c.index,o.commands):o3(c.segmentGroup,c.index,o.commands);return gv(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function wy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Cy(t){return"object"==typeof t&&null!=t&&t.outlets}function gv(t,n,e,i,r){let s,o={};i&&La(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:J9(t,n,e);const a=n3(mC(s));return new $f(a,o,r)}function J9(t,n,e){const i={};return La(t.children,(r,o)=>{i[o]=r===n?e:J9(r,n,e)}),new pr(t.segments,i)}class K9{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&wy(i[0]))throw new jt(4003,r3&&"Root segment cannot have matrix parameters");const r=i.find(Cy);if(r&&r!==B9(i))throw new jt(4004,r3&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vv{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function o3(t,n,e){if(t||(t=new pr([],{})),0===t.segments.length&&t.hasChildren())return yv(t,n,e);const i=function YTe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(Cy(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!tV(l,c,s))return o;i+=2}else{if(!tV(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=o3(t.children[s],n,o))}),La(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new pr(t.segments,r)}}function s3(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=s3(new pr([],{}),0,e))}),n}function eV(t){const n={};return La(t,(e,i)=>n[i]=`${e}`),n}function tV(t,n,e){return t==e.path&&Ld(n,e.parameters)}const Sy="imperative";class Bd{constructor(n,e){this.id=n,this.url=e}}class gC extends Bd{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gh extends Bd{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ky extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vC extends Bd{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class yC extends Bd{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class JTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QTe extends Bd{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ZTe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eEe extends Bd{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tEe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nEe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iEe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rEe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oEe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sEe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nV{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let cEe=(()=>{class t{createUrlTree(e,i,r,o,s,a){return zTe(e||i.root,r,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),dEe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(n){return cEe.\u0275fac(n)},providedIn:"root"}),t})();class iV{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=a3(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=a3(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=l3(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return l3(n,this._root).map(e=>e.value)}}function a3(t,n){if(t===n.value)return n;for(const e of n.children){const i=a3(t,e);if(i)return i}return null}function l3(t,n){if(t===n.value)return[n];for(const e of n.children){const i=l3(t,e);if(i.length)return i.unshift(n),i}return[]}class Wh{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function _v(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class rV extends iV{constructor(n,e){super(n),this.snapshot=e,c3(this,n)}toString(){return this.snapshot.toString()}}function oV(t,n){const e=function hEe(t,n){const s=new _C([],{},{},"",{},Ki,n,null,t.root,-1,{});return new aV("",new Wh(s,[]))}(t,n),i=new ca([new _y("",{})]),r=new ca({}),o=new ca({}),s=new ca({}),a=new ca(""),l=new Vr(i,r,s,a,o,Ki,n,e.root);return l.snapshot=e.root,new rV(new Wh(l,[]),e)}class Vr{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe($t(c=>c[yy]))??Hn(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($t(n=>mv(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($t(n=>mv(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sV(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function fEe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class _C{get title(){return this.data?.[yy]}constructor(n,e,i,r,o,s,a,l,c,u,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=mv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class aV extends iV{constructor(n,e){super(e),this.url=n,c3(this,e)}toString(){return lV(this._root)}}function c3(t,n){n.value._routerState=t,n.children.forEach(e=>c3(t,e))}function lV(t){const n=t.children.length>0?` { ${t.children.map(lV).join(", ")} } `:"";return`${t.value}${n}`}function u3(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ld(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Ld(n.params,e.params)||t.params.next(e.params),function TTe(t,n){if(t.length!==n.length)return!1;for(let e=0;eLd(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||d3(t.parent,n.parent))}function Dy(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function mEe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Dy(t,i,r);return Dy(t,i)})}(t,n,e);return new Wh(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Dy(t,a)),s}}const i=function gEe(t){return new Vr(new ca(t.url),new ca(t.params),new ca(t.queryParams),new ca(t.fragment),new ca(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>Dy(t,o));return new Wh(i,r)}}const h3="ngNavigationCancelingError";function cV(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=cm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=uV(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function uV(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[h3]=!0,i.cancellationCode=n,e&&(i.url=e),i}function dV(t){return hV(t)&&cm(t.url)}function hV(t){return t&&t[h3]}class vEe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ty,this.attachRef=null}}let Ty=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new vEe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const bC=!1;let Vf=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ki,this.activateEvents=new ot,this.deactivateEvents=new ot,this.attachEvents=new ot,this.detachEvents=new ot,this.parentContexts=Vi(Ty),this.location=Vi(Yl),this.changeDetector=Vi($s),this.environmentInjector=Vi(Gc)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new jt(4012,bC);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new jt(4012,bC);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new jt(4012,bC);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new jt(4013,bC);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yEe(e,a,r.injector);if(i&&function _Ee(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ei]}),t})();class yEe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Vr?this.route:n===Ty?this.childContexts:this.parent.get(n,e)}}let f3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ng-component"]],standalone:!0,features:[Bs],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"router-outlet")},dependencies:[Vf],encapsulation:2}),t})();function fV(t,n){return t.providers&&!t._injector&&(t._injector=pw(t.providers,n,`Route: ${t.path}`)),t._injector??n}function m3(t){const n=t.children&&t.children.map(m3),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ki&&(e.component=f3),e}function Kc(t){return t.outlet||Ki}function pV(t,n){const e=t.filter(i=>Kc(i)===n);return e.push(...t.filter(i=>Kc(i)!==n)),e}function Ey(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class SEe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),u3(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=_v(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),La(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=_v(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=_v(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=_v(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new sEe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new rEe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(u3(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),u3(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ey(r.snapshot),l=a?.get(zg)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class mV{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class xC{constructor(n,e){this.component=n,this.route=e}}function kEe(t,n,e){const i=t._root;return Ay(i,n?n._root:null,e,[i.value])}function bv(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Tve(t){return null!==gx(t)}(t)?n.get(t):t:i}function Ay(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=_v(n);return t.children.forEach(s=>{(function TEe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function EEe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!lm(t.url,n.url);case"pathParamsOrQueryParamsChange":return!lm(t.url,n.url)||!Ld(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!d3(t,n)||!Ld(t.queryParams,n.queryParams);default:return!d3(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new mV(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ay(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new xC(a.outlet.component,s))}else s&&My(n,a,r),r.canActivateChecks.push(new mV(i)),Ay(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),La(o,(s,a)=>My(s,e.getContext(a),r)),r}function My(t,n,e){const i=_v(t),r=t.value;La(i,(o,s)=>{My(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new xC(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Oy(t){return"function"==typeof t}function g3(t){return t instanceof iC||"EmptyError"===t?.name}const wC=Symbol("INITIAL_VALUE");function xv(){return bc(t=>rC(t.map(n=>n.pipe(ua(1),aC(wC)))).pipe($t(n=>{for(const e of n)if(!0!==e){if(e===wC)return wC;if(!1===e||e instanceof $f)return e}return!0}),ps(n=>n!==wC),ua(1)))}function gV(t){return function yt(...t){return Zt(t)}(ms(n=>{if(cm(n))throw cV(0,n)}),$t(n=>!0===n))}const v3={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vV(t,n,e,i,r){const o=y3(t,n,e);return o.matched?function GEe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Hn(r.map(s=>{const a=bv(s,t);return Bf(function FEe(t){return t&&Oy(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(xv(),gV()):Hn(!0)}(i=fV(n,i),n,e).pipe($t(s=>!0===s?o:{...v3})):Hn(o)}function y3(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...v3}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||DTe)(e,t,n);if(!r)return{...v3};const o={};La(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function CC(t,n,e,i){if(e.length>0&&function YEe(t,n,e){return e.some(i=>SC(t,n,i)&&Kc(i)!==Ki)}(t,e,i)){const o=new pr(n,function qEe(t,n,e,i){const r={};r[Ki]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Kc(o)!==Ki){const s=new pr([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Kc(o)]=s}return r}(t,n,i,new pr(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function XEe(t,n,e){return e.some(i=>SC(t,n,i))}(t,e,i)){const o=new pr(t.segments,function WEe(t,n,e,i,r){const o={};for(const s of i)if(SC(t,e,s)&&!r[Kc(s)]){const a=new pr([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[Kc(s)]=a}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new pr(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function SC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function yV(t,n,e,i){return!!(Kc(t)===i||i!==Ki&&SC(n,e,t))&&("**"===t.path||y3(n,t,e).matched)}function _V(t,n,e){return 0===n.length&&!t.children[e]}const kC=!1;class DC{constructor(n){this.segmentGroup=n||null}}class bV{constructor(n){this.urlTree=n}}function Iy(t){return Rf(new DC(t))}function xV(t){return Rf(new bV(t))}function JEe(t){return Rf(new jt(4e3,kC&&`Only absolute redirects can have named outlets. redirectTo: '${t}'`))}class ZEe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=CC(this.urlTree.root,[],[],this.config).segmentGroup,e=new pr(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Ki).pipe($t(o=>this.createUrlTree(mC(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Jl(o=>{if(o instanceof bV)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof DC?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Ki).pipe($t(r=>this.createUrlTree(mC(r),n.queryParams,n.fragment))).pipe(Jl(r=>{throw r instanceof DC?this.noMatchError(r):r}))}noMatchError(n){return new jt(4002,kC&&`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=n3(n);return new $f(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe($t(o=>new pr([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return ho(r).pipe(Lf(o=>{const s=i.children[o],a=pV(e,o);return this.expandSegmentGroup(n,a,s,o).pipe($t(l=>({segment:l,outlet:o})))}),P9((o,s)=>(o[s.outlet]=s.segment,o),{}),R9())}expandSegment(n,e,i,r,o,s){return ho(i).pipe(Lf(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(Jl(c=>{if(c instanceof DC)return Hn(null);throw c}))),jf(a=>!!a),Jl((a,l)=>{if(g3(a))return _V(e,r,o)?Hn(new pr([],{})):Iy(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return yV(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):Iy(e):Iy(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?xV(o):this.lineralizeSegments(i,o).pipe(it(s=>{const a=new pr(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=y3(e,r,o);if(!a)return Iy(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?xV(d):this.lineralizeSegments(r,d).pipe(it(h=>this.expandSegment(n,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=fV(i,n),i.loadChildren?(i._loadedRoutes?Hn({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe($t(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new pr(r,{})))):Hn(new pr(r,{}))):vV(e,i,r,n).pipe(bc(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(it(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:f,slicedSegments:p}=CC(e,a,l,h),m=new pr(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe($t(b=>new pr(a,b)));if(0===h.length&&0===p.length)return Hn(new pr(a,{}));const g=Kc(i)===o;return this.expandSegment(d,m,h,p,g?Ki:o,!0).pipe($t(y=>new pr(a.concat(y.segments),y.children)))})):Iy(e)))}getChildConfig(n,e,i){return e.children?Hn({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Hn({routes:e._loadedRoutes,injector:e._loadedInjector}):function zEe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Hn(!0):Hn(r.map(s=>{const a=bv(s,t);return Bf(function MEe(t){return t&&Oy(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(xv(),gV())}(n,e,i).pipe(it(r=>r?this.configLoader.loadChildren(n,e).pipe(ms(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function KEe(t){return Rf(uV(kC&&`Cannot load children because the guard of the route "path: '${t.path}'" returned false`,3))}(e))):Hn({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Hn(i);if(r.numberOfChildren>1||!r.children[Ki])return JEe(n.redirectTo);r=r.children[Ki]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new $f(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return La(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return La(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new pr(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new jt(4001,kC&&`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class tAe{}class rAe{constructor(n,e,i,r,o,s,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=CC(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ki).pipe($t(e=>{if(null===e)return null;const i=new _C([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ki,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Wh(i,e),o=new aV(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=sV(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return ho(Object.keys(i.children)).pipe(Lf(r=>{const o=i.children[r],s=pV(e,r);return this.processSegmentGroup(n,s,o,r)}),P9((r,o)=>r&&o?(r.push(...o),r):null),function vTe(t,n=!1){return e=>e.lift(new yTe(t,n))}(r=>null!==r),lC(null),R9(),$t(r=>{if(null===r)return null;const o=CV(r);return function oAe(t){t.sort((n,e)=>n.value.outlet===Ki?-1:e.value.outlet===Ki?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return ho(e).pipe(Lf(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),jf(s=>!!s),Jl(s=>{if(g3(s))return _V(i,r,o)?Hn([]):Hn(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!yV(e,i,r,o))return Hn(null);let s;if("**"===e.path){const a=r.length>0?B9(r).parameters:{},l=kV(i)+r.length;s=Hn({snapshot:new _C(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DV(e),Kc(e),e.component??e._loadedComponent??null,e,SV(i),l,TV(e)),consumedSegments:[],remainingSegments:[]})}else s=vV(i,e,r,n).pipe($t(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=kV(i)+l.length;return{snapshot:new _C(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DV(e),Kc(e),e.component??e._loadedComponent??null,e,SV(i),d,TV(e)),consumedSegments:l,remainingSegments:c}}));return s.pipe(bc(a=>{if(null===a)return Hn(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function sAe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=CC(i,c,u,h.filter(g=>void 0===g.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe($t(g=>null===g?null:[new Wh(l,g)]));if(0===h.length&&0===p.length)return Hn([new Wh(l,[])]);const m=Kc(e)===o;return this.processSegment(d,h,f,p,m?Ki:o).pipe($t(g=>null===g?null:[new Wh(l,g)]))}))}}function aAe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function CV(t){const n=[],e=new Set;for(const i of t){if(!aAe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=CV(i.children);n.push(new Wh(i.value,r))}return n.filter(i=>!e.has(i))}function SV(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function kV(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function DV(t){return t.data||{}}function TV(t){return t.resolve||{}}function EV(t){return"string"==typeof t.title||null===t.title}function _3(t){return bc(n=>{const e=t(n);return e?ho(e).pipe($t(()=>n)):Hn(n)})}const wv=new Yn("ROUTES");let b3=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Vi(m$)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Hn(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Bf(e.loadComponent()).pipe($t(MV),ms(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ZM(()=>{this.componentLoaders.delete(e)})),r=new _e(i,()=>new fn).pipe(Yt());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Hn({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe($t(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=L9(l.get(wv,[],Oi.Self|Oi.Optional)));return{routes:c.map(m3),injector:l}}),ZM(()=>{this.childrenLoaders.delete(i)})),s=new _e(o,()=>new fn).pipe(Yt());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Bf(e()).pipe($t(MV),it(i=>i instanceof EB||Array.isArray(i)?Hn(i):ho(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function MV(t){return function mAe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let EC=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new fn,this.configLoader=Vi(b3),this.environmentInjector=Vi(Gc),this.urlSerializer=Vi(by),this.rootContexts=Vi(Ty),this.navigationId=0,this.afterPreactivation=()=>Hn(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new nEe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new tEe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new ca({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Sy,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ps(i=>0!==i.id),$t(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),bc(i=>{let r=!1,o=!1;return Hn(i).pipe(ms(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),bc(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new vC(s.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Uh}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return OV(s.source)&&(e.browserUrlTree=s.extractedUrl),Hn(s).pipe(bc(u=>{const d=this.transitions?.getValue();return this.events.next(new gC(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Uh:Promise.resolve(u)}),function eAe(t,n,e,i){return bc(r=>function QEe(t,n,e,i,r){return new ZEe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe($t(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),ms(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function cAe(t,n,e,i,r){return it(o=>function iAe(t,n,e,i,r,o,s="emptyOnly"){return new rAe(t,n,e,i,r,s,o).recognize().pipe(bc(a=>null===a?function nAe(t){return new Wt(n=>n.error(t))}(new tAe):Hn(a)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe($t(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),ms(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(h,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new JTe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:f,extras:p}=s,m=new gC(u,this.urlSerializer.serialize(d),h,f);this.events.next(m);const g=oV(d,this.rootComponentType).snapshot;return Hn(i={...s,targetSnapshot:g,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new vC(s.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Uh}}),ms(s=>{const a=new KTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),$t(s=>i={...s,guards:kEe(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function REe(t,n){return it(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Hn({...e,guardsResult:!0}):function jEe(t,n,e,i){return ho(t).pipe(it(r=>function UEe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Hn(o.map(a=>{const l=Ey(n)??r,c=bv(a,l);return Bf(function NEe(t){return t&&Oy(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(jf())})).pipe(xv()):Hn(!0)}(r.component,r.route,e,n,i)),jf(r=>!0!==r,!0))}(s,i,r,t).pipe(it(a=>a&&function AEe(t){return"boolean"==typeof t}(a)?function LEe(t,n,e,i){return ho(n).pipe(Lf(r=>oC(function $Ee(t,n){return null!==t&&n&&n(new iEe(t)),Hn(!0)}(r.route.parent,i),function BEe(t,n){return null!==t&&n&&n(new oEe(t)),Hn(!0)}(r.route,i),function HEe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function DEe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>I9(()=>Hn(s.guards.map(l=>{const c=Ey(s.node)??e,u=bv(l,c);return Bf(function IEe(t){return t&&Oy(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(jf())})).pipe(xv())));return Hn(o).pipe(xv())}(t,r.path,e),function VEe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Hn(!0);const r=i.map(o=>I9(()=>{const s=Ey(n)??e,a=bv(o,s);return Bf(function OEe(t){return t&&Oy(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(jf())}));return Hn(r).pipe(xv())}(t,r.route,e))),jf(r=>!0!==r,!0))}(i,o,t,n):Hn(a)),$t(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ms(s=>{if(i.guardsResult=s.guardsResult,cm(s.guardsResult))throw cV(0,s.guardsResult);const a=new QTe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),ps(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),_3(s=>{if(s.guards.canActivateChecks.length)return Hn(s).pipe(ms(a=>{const l=new ZTe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),bc(a=>{let l=!1;return Hn(a).pipe(function uAe(t,n){return it(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Hn(e);let o=0;return ho(r).pipe(Lf(s=>function dAe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!EV(r)&&(o[yy]=r.title),function hAe(t,n,e,i){const r=function fAe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return Hn({});const o={};return ho(r).pipe(it(s=>function pAe(t,n,e,i){const r=Ey(n)??i,o=bv(t,r);return Bf(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(jf(),ms(a=>{o[s]=a}))),QM(1),function bTe(t){return n=>n.lift(new xTe(t))}(o),Jl(s=>g3(s)?Uh:Rf(s)))}(o,t,n,i).pipe($t(s=>(t._resolvedData=s,t.data=sV(t,e).resolve,r&&EV(r)&&(t.data[yy]=r.title),null)))}(s.route,i,t,n)),ms(()=>o++),QM(1),it(s=>o===r.length?Hn(e):Uh))})}(e.paramsInheritanceStrategy,this.environmentInjector),ms({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ms(a=>{const l=new eEe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),_3(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(ms(u=>{l.component=u}),$t(()=>{})));for(const u of l.children)c.push(...a(u));return c};return rC(a(s.targetSnapshot.root)).pipe(lC(),ua(1))}),_3(()=>this.afterPreactivation()),$t(s=>{const a=function pEe(t,n,e){const i=Dy(t,n._root,e?e._root:void 0);return new rV(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),ms(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>$t(i=>(new SEe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),ua(1),ms({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Gh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),ZM(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Jl(s=>{if(o=!0,hV(s)){dV(s)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new ky(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),dV(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||OV(i.source)};e.scheduleNavigation(l,Sy,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new yC(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(s))}catch(l){i.reject(l)}}return Uh}))}))}cancelNavigationTransition(e,i,r){const o=new ky(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function OV(t){return t!==Sy}let IV=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ki);return i}getResolvedTitleForRoute(e){return e.data[yy]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(gAe)},providedIn:"root"}),t})(),gAe=(()=>{class t extends IV{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(wt(V7))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(_Ae)},providedIn:"root"}),t})();class yAe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let _Ae=(()=>{class t extends yAe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const AC=new Yn("",{providedIn:"root",factory:()=>({})});let xAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return Vi(wAe)},providedIn:"root"}),t})(),wAe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function CAe(t){throw t}function SAe(t,n,e){return n.parse("/")}const kAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},DAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let yr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Vi(Hwe),this.isNgZoneEnabled=!1,this.options=Vi(AC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||CAe,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||SAe,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Vi(xAe),this.routeReuseStrategy=Vi(vAe),this.urlCreationStrategy=Vi(dEe),this.titleStrategy=Vi(IV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=L9(Vi(wv,{optional:!0})??[]),this.navigationTransitions=Vi(EC),this.urlSerializer=Vi(by),this.location=Vi(KA),this.isNgZoneEnabled=Vi(ur)instanceof ur&&ur.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new $f,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=oV(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Sy,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(m3),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=cm(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Sy,null,i)}navigate(e,i={skipLocationChange:!1}){return function TAe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ru=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new fn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Gh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=fv(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=fv(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=fv(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function i8(t,n,e){return function nye(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?n8:B1}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(ge(yr),ge(Vr),kf("tabindex"),ge(oa),ge(Ni),ge(rm))},t.\u0275dir=un({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&ke("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&ft("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[ei]}),t})(),Ny=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ot,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Gh&&this.update()})}ngAfterContentInit(){Hn(this.links.changes,Hn(null)).pipe(M()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=ho(e).pipe(M()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function EAe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(yr),ge(Ni),ge(oa),ge($s),ge(Ru,8))},t.\u0275dir=un({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Ru,5),2&e){let o;Tn(o=En())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ei]}),t})();class NV{}let AAe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ps(e=>e instanceof Gh),Lf(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=pw(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ho(r).pipe(M())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Hn(null);const o=r.pipe(it(s=>null===s?Hn(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?ho([o,this.loader.loadComponent(i)]).pipe(M()):o})}}return t.\u0275fac=function(e){return new(e||t)(wt(yr),wt(m$),wt(Gc),wt(NV),wt(b3))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const w3=new Yn("");let FV=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof gC?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof nV&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new nV(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function F8(){throw new Error("invalid")}()},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();var xc=(()=>((xc=xc||{})[xc.COMPLETE=0]="COMPLETE",xc[xc.FAILED=1]="FAILED",xc[xc.REDIRECTING=2]="REDIRECTING",xc))();const Cv=!1;function Hf(t,n){return{\u0275kind:t,\u0275providers:n}}const C3=new Yn("",{providedIn:"root",factory:()=>!1});function RV(){const t=Vi(Ca);return n=>{const e=t.get(jh);if(n!==e.components[0])return;const i=t.get(yr),r=t.get(jV);1===t.get(S3)&&i.initialNavigation(),t.get(LV,null,Oi.Optional)?.setUpPreloading(),t.get(w3,null,Oi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const jV=new Yn(Cv?"bootstrap done indicator":"",{factory:()=>new fn}),S3=new Yn(Cv?"initial navigation":"",{providedIn:"root",factory:()=>1});function FAe(){let t=[];return t=Cv?[{provide:Xx,multi:!0,useFactory:()=>{const n=Vi(yr);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function aEe(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Hf(1,t)}const LV=new Yn(Cv?"router preloader":"");function PAe(t){return Hf(0,[{provide:LV,useExisting:AAe},{provide:NV,useExisting:t}])}const Fy=!1,BV=new Yn(Fy?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),RAe=[KA,{provide:by,useClass:e3},yr,Ty,{provide:Vr,useFactory:function PV(t){return t.routerState.root},deps:[yr]},b3,Fy?{provide:C3,useValue:!0}:[]];function jAe(){return new C$("Router",yr)}let $V=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[RAe,Fy&&i?.enableTracing?FAe().\u0275providers:[],{provide:wv,multi:!0,useValue:e},{provide:BV,useFactory:VAe,deps:[[yr,new O1,new I1]]},{provide:AC,useValue:i||{}},i?.useHash?{provide:rm,useClass:ACe}:{provide:rm,useClass:W$},{provide:w3,useFactory:()=>{const t=Vi(V2e),n=Vi(ur),e=Vi(AC),i=Vi(EC),r=Vi(by);return e.scrollOffset&&t.setOffset(e.scrollOffset),new FV(r,i,t,n,e)}},i?.preloadingStrategy?PAe(i.preloadingStrategy).\u0275providers:[],{provide:C$,multi:!0,useFactory:jAe},i?.initialNavigation?HAe(i):[],[{provide:VV,useFactory:RV},{provide:w$,multi:!0,useExisting:VV}]]}}static forChild(e){return{ngModule:t,providers:[{provide:wv,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(wt(BV,8))},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[f3]}),t})();function VAe(t){if(Fy&&t)throw new jt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function HAe(t){return["disabled"===t.initialNavigation?Hf(3,[{provide:yw,multi:!0,useFactory:()=>{const n=Vi(yr);return()=>{n.setUpLocationChangeListener()}}},{provide:S3,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Hf(2,[{provide:S3,useValue:0},{provide:yw,multi:!0,deps:[Ca],useFactory:n=>{const e=n.get(TCe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(yr),o=n.get(jV);(function MAe(t,n){t.events.pipe(ps(e=>e instanceof Gh||e instanceof ky||e instanceof yC||e instanceof vC),$t(e=>e instanceof Gh||e instanceof vC?xc.COMPLETE:e instanceof ky&&(0===e.code||1===e.code)?xc.REDIRECTING:xc.FAILED),ps(e=>e!==xc.REDIRECTING),ua(1)).subscribe(()=>{n()})})(r,()=>{i(!0)}),n.get(EC).afterPreactivation=()=>(i(!0),o.closed?Hn(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const VV=new Yn(Fy?"Router Initializer":"");function MC(t,n){return new Wt(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let HV=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni))},t.\u0275dir=un({type:t}),t})(),um=(()=>{class t extends HV{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,features:[wi]}),t})();const Kl=new Yn("NgValueAccessor"),GAe={provide:Kl,useExisting:ji(()=>OC),multi:!0};let OC=(()=>{class t extends um{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&ke("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[oo([GAe]),wi]}),t})();const WAe={provide:Kl,useExisting:ji(()=>Us),multi:!0},YAe=new Yn("CompositionEventMode");let Us=(()=>{class t extends HV{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qAe(){const t=Lh()?Lh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni),ge(YAe,8))},t.\u0275dir=un({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ke("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[oo([WAe]),wi]}),t})();const XAe=!1;function Uf(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function UV(t){return null!=t&&"number"==typeof t.length}const Ba=new Yn("NgValidators"),zf=new Yn("NgAsyncValidators"),JAe=/^(?=.{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 qr{static min(n){return zV(n)}static max(n){return function GV(t){return n=>{if(Uf(n.value)||Uf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return WV(n)}static requiredTrue(n){return function qV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function YV(t){return Uf(t.value)||JAe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function XV(t){return n=>Uf(n.value)||!UV(n.value)?null:n.value.lengthUV(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function KV(t){if(!t)return IC;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Uf(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return iH(n)}static composeAsync(n){return rH(n)}}function zV(t){return n=>{if(Uf(n.value)||Uf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function tH(t,n){return n.map(e=>e(t))}function nH(t){return t.map(n=>function KAe(t){return!t.validate}(n)?n:e=>n.validate(e))}function iH(t){if(!t)return null;const n=t.filter(QV);return 0==n.length?null:function(e){return eH(tH(e,n))}}function k3(t){return null!=t?iH(nH(t)):null}function rH(t){if(!t)return null;const n=t.filter(QV);return 0==n.length?null:function(e){return function zAe(...t){if(1===t.length){const n=t[0];if(Se(n))return MC(n,null);if(we(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return MC(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return MC(t=1===t.length&&Se(t[0])?t[0]:t,null).pipe($t(e=>n(...e)))}return MC(t,null)}(tH(e,n).map(ZV)).pipe($t(eH))}}function D3(t){return null!=t?rH(nH(t)):null}function oH(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function sH(t){return t._rawValidators}function aH(t){return t._rawAsyncValidators}function T3(t){return t?Array.isArray(t)?t:[t]:[]}function NC(t,n){return Array.isArray(t)?t.includes(n):t===n}function lH(t,n){const e=T3(n);return T3(t).forEach(r=>{NC(e,r)||e.push(r)}),e}function cH(t,n){return T3(n).filter(e=>!NC(t,e))}class uH{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(n){this._rawValidators=n||[],this._composedValidatorFn=k3(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=D3(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Tl extends uH{get formDirective(){return null}get path(){return null}}class Gf extends uH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class dH{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let da=(()=>{class t extends dH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(Gf,2))},t.\u0275dir=un({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Vn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[wi]}),t})(),ha=(()=>{class t extends dH{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(ge(Tl,10))},t.\u0275dir=un({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Vn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[wi]}),t})();function hH(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const M3=!1,Py="VALID",PC="INVALID",Sv="PENDING",Ry="DISABLED";function O3(t){return(RC(t)?t.validators:t)||null}function I3(t,n){return(RC(n)?n.asyncValidators:t)||null}function RC(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function fH(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new jt(1e3,M3?function tMe(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!i[e])throw new jt(1001,M3?function nMe(t,n){return`Cannot find form control ${hH(t,n)}`}(n,e):"")}function pH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new jt(1002,M3?function iMe(t,n){return`Must supply a value for form control ${hH(t,n)}`}(n,r):"")})}class jC{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Py}get invalid(){return this.status===PC}get pending(){return this.status==Sv}get disabled(){return this.status===Ry}get enabled(){return this.status!==Ry}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(lH(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(lH(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(cH(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(cH(n,this._rawAsyncValidators))}hasValidator(n){return NC(this._rawValidators,n)}hasAsyncValidator(n){return NC(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Sv,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ry,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Py,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Py||this.status===Sv)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ry:Py}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Sv,this._hasOwnPendingAsyncValidator=!0;const e=ZV(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?Ry:this.errors?PC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Sv)?Sv:this._anyControlsHaveStatus(PC)?PC:Py}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){RC(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function rMe(t){return Array.isArray(t)?k3(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function oMe(t){return Array.isArray(t)?D3(t):t||null}(this._rawAsyncValidators)}}class jy extends jC{constructor(n,e,i){super(O3(e),I3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){pH(this,!0,n),Object.keys(n).forEach(i=>{fH(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class mH extends jy{}const dm=new Yn("CallSetDisabledState",{providedIn:"root",factory:()=>Ly}),Ly="always";function By(t,n,e=Ly){N3(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function aMe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&gH(t,n)})}(t,n),function cMe(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function lMe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&gH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function sMe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function BC(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),VC(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $C(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function N3(t,n){const e=sH(t);null!==n.validator?t.setValidators(oH(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=aH(t);null!==n.asyncValidator?t.setAsyncValidators(oH(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();$C(n._rawValidators,r),$C(n._rawAsyncValidators,r)}function VC(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=sH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=aH(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return $C(n._rawValidators,i),$C(n._rawAsyncValidators,i),e}function gH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _H(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function bH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vy=class extends jC{constructor(n=null,e,i){super(O3(e),I3(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),RC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=bH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){_H(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){_H(this._onDisabledChange,n)}_forEachChild(n){}_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(n){bH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let fa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const yMe={provide:Kl,useExisting:ji(()=>L3),multi:!0};let L3=(()=>{class t extends um{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ke("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[oo([yMe]),wi]}),t})();const _Me={provide:Kl,useExisting:ji(()=>B3),multi:!0};let kH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),bMe=(()=>{class t{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:kH}),t})(),B3=(()=>{class t extends um{constructor(e,i,r,o){super(e,i),this._registry=r,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Vi(dm,{optional:!0})??Ly}ngOnInit(){this._control=this._injector.get(Gf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(Ni),ge(bMe),ge(Ca))},t.\u0275dir=un({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&ke("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[oo([_Me]),wi]}),t})();const $3=new Yn("NgModelWithFormControlWarning"),CMe={provide:Tl,useExisting:ji(()=>Ts)};let Ts=(()=>{class t extends Tl{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(VC(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 i=this.form.get(e.path);return By(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){BC(e.control||null,e,!1),function fMe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function yH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(BC(i||null,e),(t=>t instanceof Vy)(r)&&(By(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function vH(t,n){N3(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function uMe(t,n){return VC(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){N3(this.form,this),this._oldForm&&VC(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(ge(Ba,10),ge(zf,10),ge(dm,8))},t.\u0275dir=un({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ke("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oo([CMe]),wi,ei]}),t})();const DMe={provide:Gf,useExisting:ji(()=>zs)};let zs=(()=>{class t extends Gf{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ot,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function R3(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Us?e=o:function hMe(t){return Object.getPrototypeOf(t.constructor)===um}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._added||this._setUpControl(),function P3(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(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 function LC(t,n){return[...n.path,t]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(ge(Tl,13),ge(Ba,10),ge(zf,10),ge(Kl,10),ge($3,8))},t.\u0275dir=un({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[oo([DMe]),wi,ei]}),t})();const TMe={provide:Kl,useExisting:ji(()=>kv),multi:!0};function AH(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let kv=(()=>{class t extends um{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=AH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function EMe(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&ke("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[oo([TMe]),wi]}),t})(),HC=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(AH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(kv,9))},t.\u0275dir=un({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const AMe={provide:Kl,useExisting:ji(()=>U3),multi:!0};function MH(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let U3=(()=>{class t extends um{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(MH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(MH(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(U3,9))},t.\u0275dir=un({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();let hm=(()=>{class t{constructor(){this._validator=IC}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):IC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,features:[ei]}),t})();const IMe={provide:Ba,useExisting:ji(()=>z3),multi:!0};let z3=(()=>{class t extends hm{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function IH(t){return"number"==typeof t?t:parseFloat(t)}(e),this.createValidator=e=>zV(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&ft("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[oo([IMe]),wi]}),t})();const NMe={provide:Ba,useExisting:ji(()=>qh),multi:!0};let qh=(()=>{class t extends hm{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=fv,this.createValidator=e=>WV}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=un({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ft("required",i._enabled?"":null)},inputs:{required:"required"},features:[oo([NMe]),wi]}),t})(),BH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[kH]}),t})();class $H extends jC{constructor(n,e,i){super(O3(e),I3(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){pH(this,!1,n),n.forEach((i,r)=>{fH(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function VH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let HH=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return VH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new jy(r,o)}record(e,i=null){const r=this._reduceControls(e);return new mH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(VH(i)?o=i:(o.validators=i,o.asyncValidators=r),new Vy(e,{...o,nonNullable:!0})):new Vy(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new $H(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Vy||e instanceof jC?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$a=(()=>{class t extends HH{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),BMe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:dm,useValue:e.callSetDisabledState??Ly}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[BH]}),t})(),$Me=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:dm,useValue:e.callSetDisabledState??Ly}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[BH]}),t})();const UH=new Yn("ngx-segment-analytics.config"),VMe={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};let zH=(()=>{class t{analytics;static \u0275fac=function(i){return new(i||t)};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),zC=(()=>{class t{_w;_doc;_config;constructor(e,i,r){if(this._w=e,this._doc=i,this._config={...VMe,...r},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=o=>(...s)=>(s.unshift(o),this._w.analytics.push(s),this._w.analytics),this._w.analytics.methods.forEach(o=>{this._w.analytics[o]=this._w.analytics.factory(o)}),this._w.analytics.load=(o,s)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",o);const l=this._doc.getElementsByTagName("script")[0];l.parentNode.insertBefore(a,l),this._w.analytics._loadOptions=s},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(e,i){this._w.analytics.load(e,i),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(e,i,r){return new Promise(o=>{this._w.analytics.identify(e,i,r,s=>o(this))})}track(e,i,r){return new Promise(o=>{this._w.analytics.track(e,i,r,s=>o(this))})}page(e,i,r,o){return new Promise(s=>{this._w.analytics.page(e,i,r,o,a=>s(this))})}group(e,i){return new Promise(r=>{this._w.analytics.group(e,i,o=>r(this))})}alias(e,i,r){return new Promise(o=>{this._w.analytics.alias(e,i,r,s=>o(this))})}ready(){return new Promise(e=>{this._w.analytics.ready(i=>e(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(e){this._w.analytics.setAnonymousId(e)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(e){this._w.analytics.debug(e)}on(e,i){this._w.analytics.on(e,i)}trackLink(e,i,r){this._w.analytics.trackLink(e,i,r)}trackForm(e,i,r){this._w.analytics.trackForm(e,i,r)}timeout(e){this._w.analytics.timeout(e)}addSourceMiddleware(e){this._w.analytics.addSourceMiddleware(e)}addDestinationMiddleware(e,...i){this._w.analytics.addDestinationMiddleware(e,...i)}register(...e){return this._w.analytics.register(...e)}get plugins(){return this._w.analytics.plugins}static \u0275fac=function(i){return new(i||t)(wt(zH),wt(vo),wt(UH))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function HMe(t){return v7(t)?window:{}}let UMe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:UH,useValue:e},zC]}}constructor(e){if(e)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}static \u0275fac=function(i){return new(i||t)(wt(t,12))};static \u0275mod=Ii({type:t});static \u0275inj=Di({providers:[{provide:zH,useFactory:HMe,deps:[sy]}],imports:[If]})}return t})();class GC{}class G3{}class ju{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{let r;if(r="string"==typeof i?[i]:"number"==typeof i?[i.toString()]:i.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof ju?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new ju;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ju?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class zMe{encodeKey(n){return GH(n)}encodeValue(n){return GH(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const WMe=/%(\d[a-f0-9])/gi,qMe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function GH(t){return encodeURIComponent(t).replace(WMe,(n,e)=>qMe[e]??n)}function WC(t){return`${t}`}class Mn{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new zMe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GMe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(WC):[WC(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Mn({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(WC(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(WC(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class YMe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function WH(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function qH(t){return typeof Blob<"u"&&t instanceof Blob}function YH(t){return typeof FormData<"u"&&t instanceof FormData}class Hy{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function XMe(t){switch(t){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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new ju),this.context||(this.context=new YMe),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Hy(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Gs=(()=>((Gs=Gs||{})[Gs.Sent=0]="Sent",Gs[Gs.UploadProgress=1]="UploadProgress",Gs[Gs.ResponseHeader=2]="ResponseHeader",Gs[Gs.DownloadProgress=3]="DownloadProgress",Gs[Gs.Response=4]="Response",Gs[Gs.User=5]="User",Gs))();class W3{constructor(n,e=200,i="OK"){this.headers=n.headers||new ju,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class q3 extends W3{constructor(n={}){super(n),this.type=Gs.ResponseHeader}clone(n={}){return new q3({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qC extends W3{constructor(n={}){super(n),this.type=Gs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new qC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class XH extends W3{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Y3(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let YC=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Hy)o=e;else{let l,c;l=r.headers instanceof ju?r.headers:new ju(r.headers),r.params&&(c=r.params instanceof Mn?r.params:new Mn({fromObject:r.params})),o=new Hy(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Hn(o).pipe(Lf(l=>this.handler.handle(l)));if(e instanceof Hy||"events"===r.observe)return s;const a=s.pipe(ps(l=>l instanceof qC));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe($t(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe($t(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($t(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Mn).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Y3(r,i))}post(e,i,r={}){return this.request("POST",e,Y3(r,i))}put(e,i,r={}){return this.request("PUT",e,Y3(r,i))}}return t.\u0275fac=function(e){return new(e||t)(wt(GC))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();function JH(t,n){return n(t)}function KMe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const X3=new Yn("HTTP_INTERCEPTORS"),Uy=new Yn("HTTP_INTERCEPTOR_FNS");function ZMe(){let t=null;return(n,e)=>(null===t&&(t=(Vi(X3,{optional:!0})??[]).reduceRight(KMe,JH)),t(n,e))}let KH=(()=>{class t extends GC{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Uy)));this.chain=i.reduceRight((r,o)=>function QMe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),JH)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(wt(G3),wt(Gc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const i3e=/^\)\]\}',?\n/;let ZH=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Wt(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new ju(r.getAllResponseHeaders()),m=function r3e(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new q3({headers:p,status:r.status,statusText:f,url:m}),s},l=()=>{let{headers:f,status:p,statusText:m,url:g}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let y=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const b=v;v=v.replace(i3e,"");try{v=""!==v?JSON.parse(v):null}catch(C){v=b,y&&(y=!1,v={error:C,text:v})}}y?(i.next(new qC({body:v,headers:f,status:p,statusText:m,url:g||void 0})),i.complete()):i.error(new XH({error:v,headers:f,status:p,statusText:m,url:g||void 0}))},c=f=>{const{url:p}=a(),m=new XH({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Gs.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Gs.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:Gs.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(wt(_7))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const J3=new Yn("XSRF_ENABLED"),eU=new Yn("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tU=new Yn("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nU{}let a3e=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=o7(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(wt(vo),wt(sy),wt(eU))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();function l3e(t,n){const e=t.url.toLowerCase();if(!Vi(J3)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Vi(nU).getToken(),r=Vi(tU);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Es=(()=>((Es=Es||{})[Es.Interceptors=0]="Interceptors",Es[Es.LegacyInterceptors=1]="LegacyInterceptors",Es[Es.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Es[Es.NoXsrfProtection=3]="NoXsrfProtection",Es[Es.JsonpSupport=4]="JsonpSupport",Es[Es.RequestsMadeViaParent=5]="RequestsMadeViaParent",Es))();function Dv(t,n){return{\u0275kind:t,\u0275providers:n}}function c3e(...t){const n=[YC,ZH,KH,{provide:GC,useExisting:KH},{provide:G3,useExisting:ZH},{provide:Uy,useValue:l3e,multi:!0},{provide:J3,useValue:!0},{provide:nU,useClass:a3e}];for(const e of t)n.push(...e.\u0275providers);return function iye(t){return{\u0275providers:t}}(n)}const iU=new Yn("LEGACY_INTERCEPTOR_FN");let d3e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[c3e(Dv(Es.LegacyInterceptors,[{provide:iU,useFactory:ZMe},{provide:Uy,useExisting:iU,multi:!0}]))]}),t})();var ri=(()=>(function(t){t[t.USER_ROLE_UNKNOWN=0]="USER_ROLE_UNKNOWN",t[t.USER_ROLE_ADMIN=1]="USER_ROLE_ADMIN",t[t.USER_ROLE_DEVELOPER=2]="USER_ROLE_DEVELOPER",t[t.USER_ROLE_MAINTAINER=3]="USER_ROLE_MAINTAINER",t[t.USER_ROLE_READONLY=4]="USER_ROLE_READONLY"}(ri||(ri={})),ri))(),zy=(()=>(function(t){t[t.APPLE_APP_STORE=0]="APPLE_APP_STORE",t[t.GOOGLE_PLAY_STORE=1]="GOOGLE_PLAY_STORE",t[t.HUAWEI_APP_GALLERY=2]="HUAWEI_APP_GALLERY",t[t.FACEBOOK_INSTANT_STORE=3]="FACEBOOK_INSTANT_STORE"}(zy||(zy={})),zy))();class XC{host;timeoutMs}let Ai=(()=>{class t{httpClient;config;constructor(e,i){this.httpClient=e,this.config=i||{host:"http://127.0.0.1:7120",timeoutMs:5e3}}deleteAccounts(e){let r=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+"/v2/console/account",{params:r,headers:this.getTokenAuthHeaders(e)})}listAccounts(e,i,r,o){let a=new Mn({encoder:new zn});return i&&(a=a.set("filter",i)),(r||!1===r)&&(a=a.set("tombstones",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/account",{params:a,headers:this.getTokenAuthHeaders(e)})}getWalletLedger(e,i,r,o){const s=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet`;let a=new Mn({encoder:new zn});return r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}deleteAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return(r||!1===r)&&(s=s.set("record_deletion",String(r))),this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateAccount(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}banAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/ban`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}exportAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/export`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getFriends(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteFriend(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/friend/${r=encodeURIComponent(String(r))}`;let s=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}getGroups(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/group`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteGroupUser(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/group/${r=encodeURIComponent(String(r))}`;let s=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}unbanAccount(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unban`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkApple(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/apple`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkCustom(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/custom`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkDevice(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/device`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}unlinkEmail(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/email`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebook(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebook`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkFacebookInstantGame(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/facebookinstantgame`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGameCenter(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/gamecenter`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkGoogle(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/google`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}unlinkSteam(e,i){const r=`/v2/console/account/${i=encodeURIComponent(String(i))}/unlink/steam`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteWalletLedger(e,i,r){const o=`/v2/console/account/${i=encodeURIComponent(String(i))}/wallet/${r=encodeURIComponent(String(r))}`;let s=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteAllData(e){let r=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+"/v2/console/all",{params:r,headers:this.getTokenAuthHeaders(e)})}listApiEndpoints(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/api/endpoints",{params:r,headers:this.getTokenAuthHeaders(e)})}callRpcEndpoint(e,i,r){const o=`/v2/console/api/endpoints/rpc/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}callApiEndpoint(e,i,r){const o=`/v2/console/api/endpoints/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}authenticate(e){let r=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+"/v2/console/authenticate",e,{params:r})}authenticateLogout(e,i){let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/logout",i,{params:o,headers:this.getTokenAuthHeaders(e)})}authenticateMFASetup(e,i){let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+"/v2/console/authenticate/mfa",i,{params:o,headers:this.getTokenAuthHeaders(e)})}listChannelMessages(e,i,r,o,s,a,l){let u=new Mn({encoder:new zn});return i&&(u=u.set("type",i)),r&&(u=u.set("label",r)),o&&(u=u.set("group_id",o)),s&&(u=u.set("user_id_one",s)),a&&(u=u.set("user_id_two",a)),l&&(u=u.set("cursor",l)),this.httpClient.get(this.config.host+"/v2/console/channel",{params:u,headers:this.getTokenAuthHeaders(e)})}getConfig(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/config",{params:r,headers:this.getTokenAuthHeaders(e)})}listGroups(e,i,r){let s=new Mn({encoder:new zn});return i&&(s=s.set("filter",i)),r&&(s=s.set("cursor",r)),this.httpClient.get(this.config.host+"/v2/console/group",{params:s,headers:this.getTokenAuthHeaders(e)})}demoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/demote`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}promoteGroupMember(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/account/${r=encodeURIComponent(String(r))}/promote`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}addGroupUsers(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}/add`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}deleteGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}updateGroup(e,i,r){const o=`/v2/console/group/${i=encodeURIComponent(String(i))}`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}exportGroup(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/export`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getMembers(e,i){const r=`/v2/console/group/${i=encodeURIComponent(String(i))}/member`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getPurchase(e,i){const r=`/v2/console/iap/purchase/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getSubscription(e,i){const r=`/v2/console/iap/subscription/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}listLeaderboards(e,i){let o=new Mn({encoder:new zn});return i&&(o=o.set("cursor",i)),this.httpClient.get(this.config.host+"/v2/console/leaderboard",{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getLeaderboard(e,i){const r=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteLeaderboardRecord(e,i,r){const o=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/owner/${r=encodeURIComponent(String(r))}`;let s=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+o,{params:s,headers:this.getTokenAuthHeaders(e)})}listLeaderboardRecords(e,i,r,o,s,a){const l=`/v2/console/leaderboard/${i=encodeURIComponent(String(i))}/records`;let c=new Mn({encoder:new zn});return r&&r.forEach(u=>c=c.append("owner_ids",String(u))),o&&(c=c.set("limit",String(o))),s&&(c=c.set("cursor",s)),a&&(c=c.set("expiry",a)),this.httpClient.get(this.config.host+l,{params:c,headers:this.getTokenAuthHeaders(e)})}listMatches(e,i,r,o,s,a,l,c,u){let h=new Mn({encoder:new zn});return i&&(h=h.set("limit",String(i))),(r||!1===r)&&(h=h.set("authoritative",String(r))),o&&(h=h.set("label",o)),s&&(h=h.set("min_size",String(s))),a&&(h=h.set("max_size",String(a))),l&&(h=h.set("match_id",l)),c&&(h=h.set("query",c)),u&&(h=h.set("node",u)),this.httpClient.get(this.config.host+"/v2/console/match",{params:h,headers:this.getTokenAuthHeaders(e)})}getMatchState(e,i){const r=`/v2/console/match/${i=encodeURIComponent(String(i))}/state`;let o=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}deleteChannelMessages(e,i,r){let s=new Mn({encoder:new zn});return i&&(s=s.set("before",i)),r&&r.forEach(a=>s=s.append("ids",String(a))),this.httpClient.delete(this.config.host+"/v2/console/message",{params:s,headers:this.getTokenAuthHeaders(e)})}listPurchases(e,i,r,o){let a=new Mn({encoder:new zn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/purchase",{params:a,headers:this.getTokenAuthHeaders(e)})}getRuntime(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/runtime",{params:r,headers:this.getTokenAuthHeaders(e)})}getStatus(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/status",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorage(e){let r=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+"/v2/console/storage",{params:r,headers:this.getTokenAuthHeaders(e)})}listStorage(e,i,r,o,s){let l=new Mn({encoder:new zn});return i&&(l=l.set("user_id",i)),r&&(l=l.set("key",r)),o&&(l=l.set("collection",o)),s&&(l=l.set("cursor",s)),this.httpClient.get(this.config.host+"/v2/console/storage",{params:l,headers:this.getTokenAuthHeaders(e)})}listStorageCollections(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/storage/collections",{params:r,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new Mn({encoder:new zn});return s&&(l=l.set("version",s)),this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}getStorage(e,i,r,o){const s=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let a=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+s,{params:a,headers:this.getTokenAuthHeaders(e)})}writeStorageObject(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}`;let l=new Mn({encoder:new zn});return this.httpClient.put(this.config.host+a,s,{params:l,headers:this.getTokenAuthHeaders(e)})}deleteStorageObject2(e,i,r,o,s){const a=`/v2/console/storage/${i=encodeURIComponent(String(i))}/${r=encodeURIComponent(String(r))}/${o=encodeURIComponent(String(o))}/${s=encodeURIComponent(String(s))}`;let l=new Mn({encoder:new zn});return this.httpClient.delete(this.config.host+a,{params:l,headers:this.getTokenAuthHeaders(e)})}listSubscriptions(e,i,r,o){let a=new Mn({encoder:new zn});return i&&(a=a.set("user_id",i)),r&&(a=a.set("limit",String(r))),o&&(a=a.set("cursor",o)),this.httpClient.get(this.config.host+"/v2/console/subscription",{params:a,headers:this.getTokenAuthHeaders(e)})}deleteUser(e,i){let o=new Mn({encoder:new zn});return i&&(o=o.set("username",i)),this.httpClient.delete(this.config.host+"/v2/console/user",{params:o,headers:this.getTokenAuthHeaders(e)})}listUsers(e){let r=new Mn({encoder:new zn});return this.httpClient.get(this.config.host+"/v2/console/user",{params:r,headers:this.getTokenAuthHeaders(e)})}addUser(e,i){let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+"/v2/console/user",i,{params:o,headers:this.getTokenAuthHeaders(e)})}requireUserMfa(e,i,r){const o=`/v2/console/user/${i=encodeURIComponent(String(i))}/mfa/require`;let s=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+o,r,{params:s,headers:this.getTokenAuthHeaders(e)})}resetUserMfa(e,i){const r=`/v2/console/user/${i=encodeURIComponent(String(i))}/mfa/reset`;let o=new Mn({encoder:new zn});return this.httpClient.post(this.config.host+r,{params:o,headers:this.getTokenAuthHeaders(e)})}getTokenAuthHeaders(e){return(new ju).set("Authorization","Bearer "+e)}getBasicAuthHeaders(e,i){return(new ju).set("Authorization","Basic "+btoa(e+":"+i))}static \u0275fac=function(i){return new(i||t)(wt(YC),wt(XC,8))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class zn{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const rU=new Yn("window"),p3e=[{provide:rU,useFactory:()=>window}],JC="currentSession";let Ho=(()=>{class t{window;segment;http;consoleService;config;currentSessionSubject;currentSession;constructor(e,i,r,o,s){this.window=e,this.segment=i,this.http=r,this.consoleService=o,this.config=s;const a=JSON.parse(localStorage.getItem(JC));a&&this.segmentIdentify(a),this.currentSessionSubject=new ca(a),this.currentSession=this.currentSessionSubject.asObservable()}get session(){return this.currentSessionSubject.getValue()}get username(){return this.claims.usn}get sessionRole(){switch(this.claims.rol){case 1:return ri.USER_ROLE_ADMIN;case 2:return ri.USER_ROLE_DEVELOPER;case 3:return ri.USER_ROLE_MAINTAINER;case 4:return ri.USER_ROLE_READONLY;default:return ri.USER_ROLE_UNKNOWN}}get claims(){const e=this.currentSessionSubject.getValue().token;return this.decodeJWT(e)}get mfa(){const e=this.currentSessionSubject.getValue().mfa_code;return e?this.decodeJWT(e):null}get mfaRequired(){return this?.mfa?.mfa_required||!1}login(e,i,r){return this.http.post(this.config.host+"/v2/console/authenticate",{username:e,password:i,mfa:r},{observe:"response"}).pipe(ms(s=>{localStorage.setItem(JC,JSON.stringify(s.body)),this.currentSessionSubject.next(s.body),this.segmentIdentify(s.body)}))}logout(){return this.currentSessionSubject.getValue()?this.consoleService.authenticateLogout("",{token:this.currentSessionSubject.getValue()?.token}).pipe(ms(()=>{localStorage.removeItem(JC),this.currentSessionSubject.next(null)})):Uh}decodeJWT(e){const{1:i}=e.split("."),r=i.replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(window.atob(r).split("").map(s=>`%${`00${s.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""));return JSON.parse(o)}mfaSet(e){return this.consoleService.authenticateMFASetup("",{mfa:this.session.mfa_code,code:e}).pipe(ms(()=>{this.session.mfa_code=null,localStorage.setItem(JC,JSON.stringify(this.session)),this.currentSessionSubject.next(this.session)}))}segmentIdentify(e){const r=this.decodeJWT(e.token);this.segment.identify(null,{username:r.usn,email:r.ema,cookie:r.cki})}static \u0275fac=function(i){return new(i||t)(wt(rU),wt(zC),wt(YC),wt(Ai),wt(XC))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function m3e(t,n){if(1&t&&(_(0,"div",32),O(1),x()),2&t){const e=L(2);w(1),bn(" ",e.error," ")}}const g3e=function(t){return{"was-validated":t}},K3=function(t){return{"is-invalid":t}};function v3e(t,n){if(1&t){const e=_t();_(0,"div",18)(1,"h3",19),O(2,"Sign in to continue to the Nakama Dashboard"),x(),te(3,m3e,2,1,"div",20),_(4,"form",21),ke("ngSubmit",function(){return ze(e),Ge(L().onSubmit())}),_(5,"div",22)(6,"label",23),O(7,"Username"),x(),xe(8,"input",24),_(9,"div",25),O(10,"Please enter a username."),x()(),_(11,"div",22)(12,"label",26),O(13,"Password"),x(),xe(14,"input",27),_(15,"div",25),O(16,"Password must be at least 8 characters."),x()(),_(17,"div",28)(18,"label",29),O(19,"MFA Code"),x(),xe(20,"input",30),_(21,"div",25),O(22,"Code must contain 6 digits."),x()(),_(23,"button",31),O(24),x()()()}if(2&t){const e=L();w(3),S("ngIf",e.error),w(1),S("formGroup",e.loginForm)("ngClass",Zi(12,g3e,e.submitted)),w(4),S("ngClass",Zi(14,K3,e.f.username.dirty&&e.f.username.errors)),w(1),S("hidden",e.f.username.disabled||e.f.username.pristine||e.f.username.valid),w(5),S("ngClass",Zi(16,K3,e.f.password.dirty&&e.f.password.errors)),w(1),S("hidden",e.f.password.disabled||e.f.password.pristine||e.f.password.valid),w(2),S("hidden",!e.mfaEnabled),w(3),S("ngClass",Zi(18,K3,e.f.code.dirty&&e.f.code.errors)),w(1),S("hidden",e.f.code.disabled||e.f.code.pristine||e.f.code.valid),w(2),S("disabled",!e.loginForm.valid),w(1),bt(e.mfaEnabled?"Verify":"Login")}}function y3e(t,n){1&t&&xe(0,"router-outlet")}let _3e=(()=>{class t{router;segment;formBuilder;route;authService;error="";loginForm;submitted;mfaEnabled=!1;returnUrl;constructor(e,i,r,o,s){this.router=e,this.segment=i,this.formBuilder=r,this.route=o,this.authService=s}ngOnInit(){this.segment.page("/login"),this.loginForm=this.formBuilder.group({username:["",qr.compose([qr.required])],password:["",qr.compose([qr.required,qr.minLength(8)])],code:[{value:"",disabled:!0},qr.compose([qr.required,qr.minLength(6),qr.maxLength(8)])]}),this.returnUrl=this.route.snapshot.queryParams.next||"/"}onSubmit(){this.submitted=!0,this.error="",!this.loginForm.invalid&&this.authService.login(this.f.username.value,this.f.password.value,this.f.code.value).subscribe(e=>{this.loginForm.reset(),this.submitted=!1,e.body.mfa_code&&this.authService.mfaRequired?this.router.navigate(["mfa"],{relativeTo:this.route}):this.router.navigate([this.returnUrl])},e=>{403===e.status?(this.mfaEnabled=!0,this.f.username.disable(),this.f.password.disable(),this.f.code.enable()):(this.error=e,this.submitted=!1)})}get f(){return this.loginForm.controls}static \u0275fac=function(i){return new(i||t)(ge(yr),ge(zC),ge($a),ge(Vr),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:37,vars:2,consts:[[1,"d-flex","flex-column","flex-lg-row","h-100","relative"],["src","/static/svg/logo-white.svg","alt","Nakama Logo","width","175","height","43",1,"logo"],[1,"login-panel"],[1,"align-self-center","login-form"],["class","px-4",4,"ngIf","ngIfElse"],["mfa",""],[1,"heroic-stack"],[1,""],["src","/static/svg/hiro-logo.svg","alt","Hiro Logo","width","110","height","50",1,"mb-3"],["href","https://www.youtube.com/playlist?list=PLOAExZcDNj9sWny_J8J5ARkxDTwAV0i6f&utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Reconstructing%20Fun%20Sign-In","target","_blank"],["href","https://heroiclabs.com/hiro/?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Hiro%20Sign-In","target","_blank",1,"login-link"],["src","/static/svg/satori-logo.svg","alt","Satori Logo","width","134","height","50",1,"mb-3"],["href","https://heroiclabs.com/satori/?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Satori%20Sign-In","target","_blank",1,"login-link"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/calendar.svg","alt","Calendar"],[1,"font-weight-bold","ml-2",2,"font-size","20px"],["href","https://heroiclabs.com/bookademo?utm_source=NOSS%20Sign-In&utm_medium=Banner&utm_campaign=NOSS%20Book%20a%20Demo%20Sign-In","target","_blank",1,"login-link-pink"],["src","/static/svg/phone.svg","alt","Phone"],[1,"px-4"],[1,"login-title","mb-4"],["class","alert alert-warning","role","alert",4,"ngIf"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group"],["for","username"],["type","text","id","username","formControlName","username","required","","autofocus","",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","password"],["type","password","id","password","formControlName","password","required","",1,"form-control",3,"ngClass"],[1,"form-group",3,"hidden"],["for","code"],["type","code","id","code","formControlName","code","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["role","alert",1,"alert","alert-warning"]],template:function(i,r){if(1&i&&(_(0,"div",0),xe(1,"img",1),_(2,"div",2)(3,"div",3),te(4,v3e,25,20,"div",4),te(5,y3e,1,0,"ng-template",null,5,Xo),x()(),_(7,"div",2)(8,"div",6)(9,"div",7),xe(10,"img",8),_(11,"p"),O(12,"A metagame framework built on Nakama to add virtual store, rewards, event leaderboards and much more rapidly and flexibly to your game. "),_(13,"a",9),O(14,"RECONSTRUCTING FUN"),x(),O(15," on YouTube shows you how."),x(),_(16,"a",10),O(17,"Explore Hiro"),x()(),xe(18,"hr"),_(19,"div",7),xe(20,"img",11),_(21,"p"),O(22,"LiveOps for your live services game. Live events, Experiments, Feature Flags, Audience Segmentation and Analytics built to work independently but beautifully with Nakama."),x(),_(23,"a",12),O(24,"Explore Satori"),x()(),xe(25,"hr"),_(26,"div")(27,"div",13),xe(28,"img",14),_(29,"span",15),O(30,"Working at a Game Studio?"),x()(),_(31,"p"),O(32,"Ready to take your game development to the next level? Contact us for a free 45 minute demo call."),x(),_(33,"a",16),xe(34,"img",17),_(35,"span"),O(36,"Schedule a call with us"),x()()()()()()),2&i){const o=sa(6);w(4),S("ngIf",!r.router.url.endsWith("mfa"))("ngIfElse",o)}},dependencies:[Vf,Of,xn,fa,Us,da,ha,qh,Ts,zs],styles:[".logo[_ngcontent-%COMP%]{position:absolute;top:10px;left:15px}@media (min-width: 992px){.logo[_ngcontent-%COMP%]{top:40px;left:30px}}.login-form[_ngcontent-%COMP%]{margin:100px auto auto;max-width:600px}@media (min-width: 992px){.login-form[_ngcontent-%COMP%]{width:485px;margin:auto}}.login-title[_ngcontent-%COMP%]{font-size:28px;font-weight:300}.login-panel[_ngcontent-%COMP%]{flex:1 1 0;display:flex}.login-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:300;font-size:20px}.heroic-stack[_ngcontent-%COMP%]{padding:0 1.5rem;max-width:600px;margin:70px auto 40px}@media (min-width: 992px){.heroic-stack[_ngcontent-%COMP%]{max-width:660px;padding:0 15px;margin:auto}}.login-link[_ngcontent-%COMP%], .login-link-pink[_ngcontent-%COMP%]{display:inline-flex;padding:15px;font-size:15px;border:1px;border-radius:5px;border:1px solid}.login-link[_ngcontent-%COMP%]{color:#4739c5;border-color:#4739c51a}hr[_ngcontent-%COMP%]{border:2px solid rgba(217,217,217,.2);margin-top:20px;margin-bottom:40px}.login-link-pink[_ngcontent-%COMP%]{border-color:#b421b41a;background:#FFF6FF;color:#b421b4}.login-link-pink[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:15px}"]})}return t})(),b3e=(()=>{class t{authService;router;constructor(e,i){this.authService=e,this.router=i}canActivate(e,i){return!(this.authService.session&&!this.authService.session.mfa_code&&!this.authService.mfaRequired)||(this.router.navigate(["/"]),!1)}static \u0275fac=function(i){return new(i||t)(wt(Ho),wt(yr))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x3e=(()=>{class t{router;authService;constructor(e,i){this.router=e,this.authService=i}canActivate(e,i){const r=this.authService.session;return r?!r||!this.authService.mfaRequired||(this.router.navigate(["/login/mfa"],{queryParams:{next:i.url}}),!1):(this.router.navigate(["/login"],{queryParams:{next:i.url}}),!1)}canActivateChild(e,i){return this.canActivate(e,i)}static \u0275fac=function(i){return new(i||t)(wt(yr),wt(Ho))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class w3e extends re{constructor(n,e){super()}schedule(n,e=0){return this}}class Q3 extends w3e{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let oU=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Vd extends oU{constructor(n,e=oU.now){super(n,()=>Vd.delegate&&Vd.delegate!==this?Vd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Vd.delegate&&Vd.delegate!==this?Vd.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const KC=new Vd(Q3);class S3e{constructor(n,e,i,r){this.bufferTimeSpan=n,this.bufferCreationInterval=e,this.maxBufferSize=i,this.scheduler=r}call(n,e){return e.subscribe(new D3e(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class k3e{constructor(){this.buffer=[]}}class D3e extends I{constructor(n,e,i,r,o){super(n),this.bufferTimeSpan=e,this.bufferCreationInterval=i,this.maxBufferSize=r,this.scheduler=o,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==i||i<0,this.timespanOnly)this.add(s.closeAction=o.schedule(sU,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const l={bufferTimeSpan:e,bufferCreationInterval:i,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(aU,e,{subscriber:this,context:s})),this.add(o.schedule(T3e,i,l))}}_next(n){const e=this.contexts,i=e.length;let r;for(let o=0;o0;){const i=n.shift();e.next(i.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const e=n.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){n=this.openContext();const i=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(sU,i,{subscriber:this,context:n,bufferTimeSpan:i}))}}openContext(){const n=new k3e;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const e=this.contexts;(e?e.indexOf(n):-1)>=0&&e.splice(e.indexOf(n),1)}}function sU(t){const n=t.subscriber,e=t.context;e&&n.closeContext(e),n.closed||(t.context=n.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function T3e(t){const{bufferCreationInterval:n,bufferTimeSpan:e,subscriber:i,scheduler:r}=t,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(aU,e,{subscriber:i,context:o})),this.schedule(t,n))}function aU(t){const{subscriber:n,context:e}=t;n.closeContext(e)}function QC(t,n){return e=>e.lift(new E3e(t,n))}class E3e{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new A3e(n,this.compare,this.keySelector))}}class A3e extends I{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:r}=this;e=r?r(n):n}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}function Va(t,n,e,i){return be(e)&&(i=e,e=void 0),i?Va(t,n,e).pipe($t(r=>Se(r)?i(...r):i(r))):new Wt(r=>{lU(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function lU(t,n,e,i,r){let o;if(function I3e(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function O3e(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function M3e(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s=0}function Gy(t=0,n,e){let i=-1;return cU(n)?i=Number(n)<1?1:Number(n):fi(n)&&(e=n),fi(e)||(e=KC),new Wt(r=>{const o=cU(t)?t:+t-e.now();return e.schedule(N3e,o,{index:0,period:i,subscriber:r})})}function N3e(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function uU(...t){if(1===t.length){if(!Se(t[0]))return t[0];t=t[0]}return at(t,void 0).lift(new F3e)}class F3e{call(n,e){return e.subscribe(new P3e(n))}}class P3e extends JM{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class $3e extends Y{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[uo](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Le(this.observable,new Hl(this))}}function ns(t){return n=>n.lift(new H3e(t))}class H3e{constructor(n){this.notifier=n}call(n,e){const i=new U3e(n),r=Le(this.notifier,new Hl(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class U3e extends Y{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Z3(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new z3e(t,e))}}class z3e{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new G3e(n,this.observables,this.project))}}class G3e extends JM{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class Lu{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Hn(this.value);case"E":return Rf(this.error);case"C":return sC()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Lu("N",n):Lu.undefinedValueNotification}static createError(n){return new Lu("E",void 0,n)}static createComplete(){return Lu.completeNotification}}function eO(t,n=KC){const i=function W3e(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new q3e(i,n))}Lu.completeNotification=new Lu("C"),Lu.undefinedValueNotification=new Lu("N",void 0);class q3e{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new tO(n,this.delay,this.scheduler))}}class tO extends I{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(tO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new Y3e(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Lu.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Lu.createComplete()),this.unsubscribe()}}class Y3e{constructor(n,e){this.time=n,this.notification=e}}class J3e{constructor(n){this.total=n}call(n,e){return e.subscribe(new K3e(n,this.total))}}class K3e extends I{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}var Q3e={left:"right",right:"left",bottom:"top",top:"bottom"};function e2(t){return t.replace(/left|right|bottom|top/g,function(n){return Q3e[n]})}function Hd(t){return t.split("-")[0]}var Z3e={start:"end",end:"start"};function hU(t){return t.replace(/start|end/g,function(n){return Z3e[n]})}var wc="top",Bu="bottom",$u="right",Cc="left",nO="auto",Wy=[wc,Bu,$u,Cc],Tv="start",qy="end",eOe="clippingParents",fU="viewport",Yy="popper",tOe="reference",pU=Wy.reduce(function(t,n){return t.concat([n+"-"+Tv,n+"-"+qy])},[]),mU=[].concat(Wy,[nO]).reduce(function(t,n){return t.concat([n,n+"-"+Tv,n+"-"+qy])},[]),dOe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sc(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function fm(t){return t instanceof Sc(t).Element||t instanceof Element}function Qc(t){return t instanceof Sc(t).HTMLElement||t instanceof HTMLElement}function iO(t){return!(typeof ShadowRoot>"u")&&(t instanceof Sc(t).ShadowRoot||t instanceof ShadowRoot)}function Wf(t){return((fm(t)?t.ownerDocument:t.document)||window.document).documentElement}var pm=Math.max,t2=Math.min,Ev=Math.round;function rO(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function gU(){return!/^((?!chrome|android).)*safari/i.test(rO())}function Av(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&Qc(t)&&(r=t.offsetWidth>0&&Ev(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ev(i.height)/t.offsetHeight||1);var a=(fm(t)?Sc(t):window).visualViewport,l=!gU()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function oO(t){var n=Sc(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function sO(t){return Av(Wf(t)).left+oO(t).scrollLeft}function Yh(t){return Sc(t).getComputedStyle(t)}function Ud(t){return t?(t.nodeName||"").toLowerCase():null}function n2(t){return"html"===Ud(t)?t:t.assignedSlot||t.parentNode||(iO(t)?t.host:null)||Wf(t)}function aO(t){var n=Yh(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function vU(t){return["html","body","#document"].indexOf(Ud(t))>=0?t.ownerDocument.body:Qc(t)&&aO(t)?t:vU(n2(t))}function Xy(t,n){var e;void 0===n&&(n=[]);var i=vU(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Sc(i),s=r?[o].concat(o.visualViewport||[],aO(i)?i:[]):i,a=n.concat(s);return r?a:a.concat(Xy(n2(s)))}function pOe(t){return["table","td","th"].indexOf(Ud(t))>=0}function yU(t){return Qc(t)&&"fixed"!==Yh(t).position?t.offsetParent:null}function Jy(t){for(var n=Sc(t),e=yU(t);e&&pOe(e)&&"static"===Yh(e).position;)e=yU(e);return e&&("html"===Ud(e)||"body"===Ud(e)&&"static"===Yh(e).position)?n:e||function mOe(t){var n=/firefox/i.test(rO());if(/Trident/i.test(rO())&&Qc(t)&&"fixed"===Yh(t).position)return null;var r=n2(t);for(iO(r)&&(r=r.host);Qc(r)&&["html","body"].indexOf(Ud(r))<0;){var o=Yh(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||n}function _U(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&iO(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function lO(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function bU(t,n,e){return n===fU?lO(function hOe(t,n){var e=Sc(t),i=Wf(t),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=gU();(c||!c&&"fixed"===n)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+sO(t),y:l}}(t,e)):fm(n)?function gOe(t,n){var e=Av(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):lO(function fOe(t){var n,e=Wf(t),i=oO(t),r=null==(n=t.ownerDocument)?void 0:n.body,o=pm(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=pm(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+sO(t),l=-i.scrollTop;return"rtl"===Yh(r||e).direction&&(a+=pm(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Wf(t)))}function Mv(t){return t.split("-")[1]}function cO(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xU(t){var l,n=t.reference,e=t.element,i=t.placement,r=i?Hd(i):null,o=i?Mv(i):null,s=n.x+n.width/2-e.width/2,a=n.y+n.height/2-e.height/2;switch(r){case wc:l={x:s,y:n.y-e.height};break;case Bu:l={x:s,y:n.y+n.height};break;case $u:l={x:n.x+n.width,y:a};break;case Cc:l={x:n.x-e.width,y:a};break;default:l={x:n.x,y:n.y}}var c=r?cO(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Tv:l[c]=l[c]-(n[u]/2-e[u]/2);break;case qy:l[c]=l[c]+(n[u]/2-e[u]/2)}}return l}function CU(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function SU(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function uO(t,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?eOe:a,c=n.rootBoundary,u=void 0===c?fU:c,d=n.elementContext,h=void 0===d?Yy:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=CU("number"!=typeof g?g:SU(g,Wy)),b=t.rects.popper,C=t.elements[p?h===Yy?tOe:Yy:h],D=function yOe(t,n,e,i){var r="clippingParents"===n?function vOe(t){var n=Xy(n2(t)),i=["absolute","fixed"].indexOf(Yh(t).position)>=0&&Qc(t)?Jy(t):t;return fm(i)?n.filter(function(r){return fm(r)&&_U(r,i)&&"body"!==Ud(r)}):[]}(t):[].concat(n),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=bU(t,c,i);return l.top=pm(u.top,l.top),l.right=t2(u.right,l.right),l.bottom=t2(u.bottom,l.bottom),l.left=pm(u.left,l.left),l},bU(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(fm(C)?C:C.contextElement||Wf(t.elements.popper),l,u,s),E=Av(t.elements.reference),B=xU({reference:E,element:b,strategy:"absolute",placement:r}),z=lO(Object.assign({},b,B)),j=h===Yy?z:E,U={top:D.top-j.top+v.top,bottom:j.bottom-D.bottom+v.bottom,left:D.left-j.left+v.left,right:j.right-D.right+v.right},G=t.modifiersData.offset;if(h===Yy&&G){var X=G[r];Object.keys(U).forEach(function(oe){var P=[$u,Bu].indexOf(oe)>=0?1:-1,W=[wc,Bu].indexOf(oe)>=0?"y":"x";U[oe]+=X[W]*P})}return U}const wOe={name:"flip",enabled:!0,phase:"main",fn:function xOe(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,f=e.flipVariations,p=void 0===f||f,m=e.allowedAutoPlacements,g=n.options.placement,v=Hd(g),b=l||(v!==g&&p?function bOe(t){if(Hd(t)===nO)return[];var n=e2(t);return[hU(t),n,hU(n)]}(g):[e2(g)]),C=[g].concat(b).reduce(function(ce,ve){return ce.concat(Hd(ve)===nO?function _Oe(t,n){void 0===n&&(n={});var r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?mU:l,u=Mv(n.placement),d=u?a?pU:pU.filter(function(p){return Mv(p)===u}):Wy,h=d.filter(function(p){return c.indexOf(p)>=0});0===h.length&&(h=d);var f=h.reduce(function(p,m){return p[m]=uO(t,{placement:m,boundary:r,rootBoundary:o,padding:s})[Hd(m)],p},{});return Object.keys(f).sort(function(p,m){return f[p]-f[m]})}(n,{placement:ve,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):ve)},[]),D=n.rects.reference,E=n.rects.popper,B=new Map,z=!0,j=C[0],U=0;U=0,W=P?"width":"height",J=uO(n,{placement:G,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),H=P?oe?$u:Cc:oe?Bu:wc;D[W]>E[W]&&(H=e2(H));var pe=e2(H),A=[];if(o&&A.push(J[X]<=0),a&&A.push(J[H]<=0,J[pe]<=0),A.every(function(ce){return ce})){j=G,z=!1;break}B.set(G,A)}if(z)for(var F=function(ve){var je=C.find(function(Te){var et=B.get(Te);if(et)return et.slice(0,ve).every(function(We){return We})});if(je)return j=je,"break"},q=p?3:1;q>0&&"break"!==F(q);q--);n.placement!==j&&(n.modifiersData[i]._skip=!0,n.placement=j,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ky(t,n,e){return pm(t,t2(n,e))}function dO(t){var n=Av(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const DOe={name:"preventOverflow",enabled:!0,phase:"main",fn:function kOe(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,f=void 0===h||h,p=e.tetherOffset,m=void 0===p?0:p,g=uO(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),v=Hd(n.placement),y=Mv(n.placement),b=!y,C=cO(v),D=function COe(t){return"x"===t?"y":"x"}(C),E=n.modifiersData.popperOffsets,B=n.rects.reference,z=n.rects.popper,j="function"==typeof m?m(Object.assign({},n.rects,{placement:n.placement})):m,U="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),G=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(E){if(o){var oe,P="y"===C?wc:Cc,W="y"===C?Bu:$u,J="y"===C?"height":"width",H=E[C],pe=H+g[P],A=H-g[W],N=f?-z[J]/2:0,F=y===Tv?B[J]:z[J],q=y===Tv?-z[J]:-B[J],V=n.elements.arrow,ce=f&&V?dO(V):{width:0,height:0},ve=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},je=ve[P],Te=ve[W],et=Ky(0,B[J],ce[J]),We=b?B[J]/2-N-et-je-U.mainAxis:F-et-je-U.mainAxis,st=b?-B[J]/2+N+et+Te+U.mainAxis:q+et+Te+U.mainAxis,$=n.elements.arrow&&Jy(n.elements.arrow),le=null!=(oe=G?.[C])?oe:0,Ze=H+st-le,Ve=Ky(f?t2(pe,H+We-le-($?"y"===C?$.clientTop||0:$.clientLeft||0:0)):pe,H,f?pm(A,Ze):A);E[C]=Ve,X[C]=Ve-H}if(a){var Ct,Xn=E[D],on="y"===D?"height":"width",Ri=Xn+g["x"===C?wc:Cc],hn=Xn-g["x"===C?Bu:$u],vr=-1!==[wc,Cc].indexOf(v),Er=null!=(Ct=G?.[D])?Ct:0,fr=vr?Ri:Xn-B[on]-z[on]-Er+U.altAxis,wr=vr?Xn+B[on]+z[on]-Er-U.altAxis:hn,Si=f&&vr?function SOe(t,n,e){var i=Ky(t,n,e);return i>e?e:i}(fr,Xn,wr):Ky(f?fr:Ri,Xn,f?wr:hn);E[D]=Si,X[D]=Si-Xn}n.modifiersData[i]=X}},requiresIfExists:["offset"]};const MOe={name:"arrow",enabled:!0,phase:"main",fn:function EOe(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=Hd(e.placement),l=cO(a),u=[Cc,$u].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(n,e){return CU("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:SU(n,Wy))}(r.padding,e),h=dO(o),f="y"===l?wc:Cc,p="y"===l?Bu:$u,m=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],g=s[l]-e.rects.reference[l],v=Jy(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,E=y/2-h[u]/2+(m/2-g/2),B=Ky(d[f],E,y-h[u]-d[p]);e.modifiersData[i]=((n={})[l]=B,n.centerOffset=B-E,n)}},effect:function AOe(t){var n=t.state,i=t.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||_U(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function FOe(t,n,e){void 0===e&&(e=!1);var i=Qc(n),r=Qc(n)&&function NOe(t){var n=t.getBoundingClientRect(),e=Ev(n.width)/t.offsetWidth||1,i=Ev(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),o=Wf(n),s=Av(t,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==Ud(n)||aO(o))&&(a=function IOe(t){return t!==Sc(t)&&Qc(t)?function OOe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):oO(t)}(n)),Qc(n)?((l=Av(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):o&&(l.x=sO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function POe(t){var n=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=n.get(a);l&&r(l)}}),i.push(o)}return t.forEach(function(o){n.set(o.name,o)}),t.forEach(function(o){e.has(o.name)||r(o)}),i}function jOe(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var kU={placement:"bottom",modifiers:[],strategy:"absolute"};function DU(){for(var t=arguments.length,n=new Array(t),e=0;e=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Cc,$u].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,n.rects,o),u},{}),a=s[n.placement],c=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=a.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[i]=s}};function tIe(t,n){}function nIe(t,n){if(1&t&&(_(0,"button",3),O(1),te(2,tIe,0,0,"ng-template",4),x()),2&t){const e=n.$implicit;S("ngbPanelToggle",e),w(1),bn(" ",e.title," "),w(1),S("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function iIe(t,n){}function rIe(t,n){}function oIe(t,n){if(1&t){const e=_t();_(0,"div",8),ke("ngbRef",function(r){return ze(e),Ge(L().$implicit.panelDiv=r)}),_(1,"div",9),te(2,rIe,0,0,"ng-template",4),x()()}if(2&t){const e=L().$implicit;Ph("id",e.id),ft("aria-labelledby",e.id+"-header"),w(2),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const sIe=function(t,n){return{$implicit:t,opened:n}};function aIe(t,n){if(1&t&&(_(0,"div")(1,"div",5),te(2,iIe,0,0,"ng-template",6),x(),te(3,oIe,3,3,"div",7),x()),2&t){const e=n.$implicit,i=L(),r=sa(1);Au("accordion-item "+(e.cardClass||"")),w(1),Au("accordion-header "+(e.type?"bg-"+e.type:i.type?"bg-"+i.type:"")),em("id","",e.id,"-header"),w(1),S("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||r)("ngTemplateOutletContext",Rr(8,sIe,e,e.isOpen)),w(1),S("ngIf",!i.destroyOnHide||e.isOpen||e.transitionRunning)}}function lIe(t,n){if(1&t){const e=_t();_(0,"button",1),ke("click",function(){return ze(e),Ge(L().close())}),x()}}const Qy=["*"];function cIe(t,n){if(1&t){const e=_t();_(0,"button",6),ke("click",function(){const o=ze(e).$implicit,s=L();return s.focus(),Ge(s.select(o.id,s.NgbSlideEventSource.INDICATOR))}),x()}if(2&t){const e=n.$implicit,i=L();Vn("active",e.id===i.activeId),ft("aria-labelledby","slide-"+e.id)("aria-controls","slide-"+e.id)("aria-selected",e.id===i.activeId)}}function uIe(t,n){}function dIe(t,n){if(1&t&&(_(0,"div",7)(1,"span",8),Pa(2,9),x(),te(3,uIe,0,0,"ng-template",10),x()),2&t){const e=n.$implicit,i=n.index,r=n.count;S("id","slide-"+e.id),w(2),cv(i+1)(r),ey(2),w(1),S("ngTemplateOutlet",e.tplRef)}}function hIe(t,n){if(1&t){const e=_t();_(0,"button",11),ke("click",function(){return ze(e),Ge(L().arrowLeft())}),xe(1,"span",12),_(2,"span",8),Pa(3,13),x()()}}function fIe(t,n){if(1&t){const e=_t();_(0,"button",14),ke("click",function(){return ze(e),Ge(L().arrowRight())}),xe(1,"span",15),_(2,"span",8),Pa(3,16),x()()}}const pIe=["ngbDatepickerDayView",""],mIe=["month"],gIe=["year"];function vIe(t,n){if(1&t&&(_(0,"option",5),O(1),x()),2&t){const e=n.$implicit,i=L();S("value",e),ft("aria-label",i.i18n.getMonthFullName(e,i.date.year)),w(1),bt(i.i18n.getMonthShortName(e,i.date.year))}}function yIe(t,n){if(1&t&&(_(0,"option",5),O(1),x()),2&t){const e=n.$implicit,i=L();S("value",e),w(1),bt(i.i18n.getYearNumerals(e))}}function _Ie(t,n){if(1&t){const e=_t();_(0,"ngb-datepicker-navigation-select",7),ke("select",function(r){return ze(e),Ge(L().select.emit(r))}),x()}if(2&t){const e=L();S("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function bIe(t,n){1&t&&xe(0,"div",0)}function xIe(t,n){1&t&&xe(0,"div",0)}function wIe(t,n){if(1&t&&(te(0,bIe,1,0,"div",9),_(1,"div",10),O(2),x(),te(3,xIe,1,0,"div",9)),2&t){const e=n.$implicit,i=n.index,r=L(2);S("ngIf",i>0),w(2),bn(" ",r.i18n.getMonthLabel(e.firstDate)," "),w(1),S("ngIf",i!==r.months.length-1)}}function CIe(t,n){1&t&&te(0,wIe,4,3,"ng-template",8),2&t&&S("ngForOf",L().months)}function SIe(t,n){if(1&t&&(_(0,"div",5),O(1),x()),2&t){const e=L(2);w(1),bt(e.i18n.getWeekLabel())}}function kIe(t,n){if(1&t&&(_(0,"div",6),O(1),x()),2&t){const e=n.$implicit;w(1),bt(e)}}function DIe(t,n){if(1&t&&(_(0,"div",2),te(1,SIe,2,1,"div",3),te(2,kIe,2,1,"div",4),x()),2&t){const e=L();w(1),S("ngIf",e.datepicker.showWeekNumbers),w(1),S("ngForOf",e.viewModel.weekdays)}}function TIe(t,n){if(1&t&&(_(0,"div",11),O(1),x()),2&t){const e=L(2).$implicit,i=L();w(1),bt(i.i18n.getWeekNumerals(e.number))}}function EIe(t,n){}function AIe(t,n){if(1&t&&te(0,EIe,0,0,"ng-template",14),2&t){const e=L().$implicit;S("ngTemplateOutlet",L(3).datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function MIe(t,n){if(1&t){const e=_t();_(0,"div",12),ke("click",function(r){const s=ze(e).$implicit;return L(3).doSelect(s),Ge(r.preventDefault())}),te(1,AIe,1,2,"ng-template",13),x()}if(2&t){const e=n.$implicit;Vn("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),S("tabindex",e.tabindex),ft("aria-label",e.ariaLabel),w(1),S("ngIf",!e.hidden)}}function OIe(t,n){if(1&t&&(_(0,"div",8),te(1,TIe,2,1,"div",9),te(2,MIe,2,9,"div",10),x()),2&t){const e=L().$implicit,i=L();w(1),S("ngIf",i.datepicker.showWeekNumbers),w(1),S("ngForOf",e.days)}}function IIe(t,n){1&t&&te(0,OIe,3,2,"div",7),2&t&&S("ngIf",!n.$implicit.collapsed)}const NIe=["defaultDayTemplate"],FIe=["content"];function PIe(t,n){if(1&t&&xe(0,"div",8),2&t){const i=n.currentMonth,r=n.selected,o=n.disabled,s=n.focused;S("date",n.date)("currentMonth",i)("selected",r)("disabled",o)("focused",s)}}function RIe(t,n){if(1&t&&(_(0,"div",13),O(1),x()),2&t){const e=L().$implicit,i=L(2);w(1),bn(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function jIe(t,n){if(1&t&&(_(0,"div",10),te(1,RIe,2,1,"div",11),xe(2,"ngb-datepicker-month",12),x()),2&t){const e=n.$implicit,i=L(2);w(1),S("ngIf","none"===i.navigation||i.displayMonths>1&&"select"===i.navigation),w(1),S("month",e.firstDate)}}function LIe(t,n){1&t&&te(0,jIe,3,2,"div",9),2&t&&S("ngForOf",L().model.months)}function BIe(t,n){if(1&t){const e=_t();_(0,"ngb-datepicker-navigation",14),ke("navigate",function(r){return ze(e),Ge(L().onNavigateEvent(r))})("select",function(r){return ze(e),Ge(L().onNavigateDateSelect(r))}),x()}if(2&t){const e=L();S("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function $Ie(t,n){}function VIe(t,n){}const EU=function(t){return{$implicit:t}},HIe=["dialog"],UIe=["ngbNavOutlet",""];function zIe(t,n){}function GIe(t,n){if(1&t&&(_(0,"div",2),te(1,zIe,0,0,"ng-template",3),x()),2&t){const e=L().$implicit,i=L();S("item",e)("nav",i.nav)("role",i.paneRole),w(1),S("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",Zi(5,EU,e.active||i.isPanelTransitioning(e)))}}function WIe(t,n){if(1&t&&te(0,GIe,2,7,"div",1),2&t){const e=n.$implicit,i=L();S("ngIf",e.isPanelInDom()||i.isPanelTransitioning(e))}}function qIe(t,n){1&t&&(_(0,"span",9),Pa(1,10),x())}function YIe(t,n){1&t&&(_(0,"span",9),Pa(1,11),x())}function XIe(t,n){1&t&&(_(0,"span",9),Pa(1,12),x())}function JIe(t,n){1&t&&(_(0,"span",9),Pa(1,13),x())}function KIe(t,n){1&t&&O(0,"...")}function QIe(t,n){1&t&&O(0),2&t&&bt(n.$implicit)}function ZIe(t,n){}const eNe=function(t){return{disabled:!0,currentPage:t}};function tNe(t,n){if(1&t&&(_(0,"a",18),te(1,ZIe,0,0,"ng-template",8),x()),2&t){const e=L(2).$implicit,i=L(),r=sa(9);w(1),S("ngTemplateOutlet",(null==i.tplEllipsis?null:i.tplEllipsis.templateRef)||r)("ngTemplateOutletContext",Zi(2,eNe,e))}}function nNe(t,n){}const iNe=function(t,n,e){return{disabled:t,$implicit:n,currentPage:e}};function rNe(t,n){if(1&t){const e=_t();_(0,"a",19),ke("click",function(r){ze(e);const o=L().$implicit;return L(2).selectPage(o),Ge(r.preventDefault())}),te(1,nNe,0,0,"ng-template",8),x()}if(2&t){const e=L().$implicit,i=L(),r=i.disabled,o=i.$implicit,s=L(),a=sa(11);ft("tabindex",r?"-1":null)("aria-disabled",r?"true":null),w(1),S("ngTemplateOutlet",(null==s.tplNumber?null:s.tplNumber.templateRef)||a)("ngTemplateOutletContext",ty(4,iNe,r,e,o))}}function oNe(t,n){if(1&t&&(_(0,"li",15),te(1,tNe,2,4,"a",16),te(2,rNe,2,8,"a",17),x()),2&t){const e=n.$implicit,i=L(),r=i.$implicit,o=i.disabled,s=L();Vn("active",e===r)("disabled",s.isEllipsis(e)||o),ft("aria-current",e===r?"page":null),w(1),S("ngIf",s.isEllipsis(e)),w(1),S("ngIf",!s.isEllipsis(e))}}function sNe(t,n){1&t&&te(0,oNe,3,7,"li",14),2&t&&S("ngForOf",n.pages)}function aNe(t,n){}const hO=function(t,n){return{disabled:t,currentPage:n}};function lNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",20),ke("click",function(r){return ze(e),L().selectPage(1),Ge(r.preventDefault())}),te(2,aNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(1);Vn("disabled",e.previousDisabled()),w(1),ft("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.previousDisabled(),e.page))}}function cNe(t,n){}const uNe=function(t){return{disabled:t}};function dNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",21),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.page-1),Ge(r.preventDefault())}),te(2,cNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(3);Vn("disabled",e.previousDisabled()),w(1),ft("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||i)("ngTemplateOutletContext",Zi(6,uNe,e.previousDisabled()))}}function hNe(t,n){}function fNe(t,n){}function pNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",22),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.page+1),Ge(r.preventDefault())}),te(2,fNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(5);Vn("disabled",e.nextDisabled()),w(1),ft("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.nextDisabled(),e.page))}}function mNe(t,n){}function gNe(t,n){if(1&t){const e=_t();_(0,"li",15)(1,"a",23),ke("click",function(r){ze(e);const o=L();return o.selectPage(o.pageCount),Ge(r.preventDefault())}),te(2,mNe,0,0,"ng-template",8),x()()}if(2&t){const e=L(),i=sa(7);Vn("disabled",e.nextDisabled()),w(1),ft("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),w(1),S("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||i)("ngTemplateOutletContext",Rr(6,hO,e.nextDisabled(),e.page))}}const vNe=function(t,n,e){return{$implicit:t,pages:n,disabled:e}};function bNe(t,n){if(1&t&&(_(0,"span"),Pa(1,1),_A(2,"percent"),x()),2&t){const e=L();w(2),cv(bA(2,1,e.getValue()/e.max)),ey(1)}}function xNe(t,n){1&t&&O(0),2&t&&bt(100===n.fill?"\u2605":"\u2606")}function wNe(t,n){}function CNe(t,n){if(1&t){const e=_t();_(0,"span",2),O(1),x(),_(2,"span",3),ke("mouseenter",function(){const o=ze(e).index;return Ge(L().enter(o+1))})("click",function(){const o=ze(e).index;return Ge(L().handleClick(o+1))}),te(3,wNe,0,0,"ng-template",4),x()}if(2&t){const e=n.index,i=L(),r=sa(1);w(1),bn("(",e=12)("ngIfElse",e)}}function RNe(t,n){if(1&t&&(_(0,"strong",3),O(1),x()),2&t){const e=L();w(1),bt(e.header)}}function jNe(t,n){}function LNe(t,n){if(1&t){const e=_t();_(0,"div",4),te(1,jNe,0,0,"ng-template",5),_(2,"button",6),ke("click",function(){return ze(e),Ge(L().hide())}),x()()}if(2&t){const e=L(),i=sa(1);w(1),S("ngTemplateOutlet",e.contentHeaderTpl||i)}}function BNe(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L().$implicit;Au(L().highlightClass),w(1),bt(e)}}function $Ne(t,n){1&t&&O(0),2&t&&bt(L().$implicit)}function VNe(t,n){if(1&t&&(te(0,BNe,2,3,"span",1),te(1,$Ne,1,1,"ng-template",null,2,Xo)),2&t){const e=n.odd,i=sa(2);S("ngIf",e)("ngIfElse",i)}}function Ha(t){return parseInt(`${t}`,10)}function AU(t){return null!=t?`${t}`:""}function r2(t,n,e=0){return Math.max(Math.min(t,n),e)}function mm(t){return"string"==typeof t}function gs(t){return!isNaN(Ha(t))}function is(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function gm(t){return null!=t}function Ov(t){return gs(t)?`0${t}`.slice(-2):""}function OU(t,n){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(n)>=0}function Iv(t){return(t||document.body).getBoundingClientRect()}function IU(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const NU={animation:!0,transitionTimerDelayMs:5},YNe=()=>{},{transitionTimerDelayMs:XNe}=NU,Zy=new Map,pa=(t,n,e,i)=>{let r=i.context||{};const o=Zy.get(n);if(o)switch(i.runningTransition){case"continue":return Uh;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Zy.delete(n)}const s=e(n,i.animation,r)||YNe;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),Hn(void 0).pipe(function WNe(t){return n=>new Wt(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const a=new fn,l=new fn,c=a.pipe(function V3e(...t){return n=>oC(n,Hn(...t))}(!0));Zy.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function qNe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const d=Va(n,"transitionend").pipe(ns(c),ps(({target:f})=>f===n));uU(Gy(u+XNe).pipe(ns(c)),d,l).pipe(ns(c)).subscribe(()=>{Zy.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()},fO=(t,n,e)=>{let{direction:i,maxSize:r,dimension:o}=e;const{classList:s}=t;function a(){s.add("collapse"),"show"===i?s.add("show"):s.remove("show")}if(n)return r||(r=function KNe(t,n){if(typeof navigator>"u")return"0px";const{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[n]="";const r=t.getBoundingClientRect()[n]+"px";return i||e.remove("show"),r}(t,o),e.maxSize=r,t.style[o]="show"!==i?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),Iv(t),s.add("collapsing")),t.style[o]="show"===i?r:"0px",()=>{a(),s.remove("collapsing"),t.style[o]=""};a()};let qf=(()=>{class t{constructor(){this.animation=NU.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),FU=(()=>{class t{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),QNe=0,pO=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),PU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),RU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),mO=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+QNe++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ot,this.hidden=new ot}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["ngb-panel"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,PU,4),Ti(r,pO,4),Ti(r,RU,4)),2&e){let o;Tn(o=En())&&(i.titleTpls=o),Tn(o=En())&&(i.headerTpls=o),Tn(o=En())&&(i.contentTpls=o)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),ZNe=(()=>{class t{constructor(e){this._El=e,this.ngbRef=new ot}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),jU=(()=>{class t{constructor(e,i){this.accordion=e,this.panel=i}set ngbPanelToggle(e){e&&(this.panel=e)}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>gO)),ge(mO,9))},t.\u0275dir=un({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,i){1&e&&ke("click",function(){return i.accordion.toggle(i.panel.id)}),2&e&&(ql("disabled",i.panel.disabled),ft("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),Vn("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),gO=(()=>{class t{constructor(e,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ot,this.shown=new ot,this.hidden=new ot,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const i=this._findPanelById(e);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){mm(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{this.panels.forEach(e=>{const i=e.panelDiv;i?e.initClassDone||(e.initClassDone=!0,pa(this._ngZone,i,fO,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide",dimension:"height"}})):e.initClassDone=!1})})}_changeOpenState(e,i){if(null!=e&&!e.disabled&&e.isOpen!==i){let r=!1;this.panelChange.emit({panelId:e.id,nextState:i,preventDefault:()=>{r=!0}}),r||(e.isOpen=i,e.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,i=!0){this.panels.forEach(r=>{r.id!==e&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(e){return this.panels.find(i=>i.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&pa(this._ngZone,i.panelDiv,fO,{animation:e,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{i.transitionRunning=!1;const{id:o}=i;i.isOpen?(i.shown.emit(),this.shown.emit(o)):(i.hidden.emit(),this.hidden.emit(o))})})}}return t.\u0275fac=function(e){return new(e||t)(ge(FU),ge(ur),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-accordion"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,mO,4),2&e){let o;Tn(o=En())&&(i.panels=o)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,i){2&e&&ft("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[Bs],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(e,i){1&e&&(te(0,nIe,3,3,"ng-template",0,1,Xo),te(2,aIe,4,11,"ng-template",2)),2&e&&(w(2),S("ngForOf",i.panels))},dependencies:[Un,Fu,jU,ZNe,pO,xn],encapsulation:2}),t})(),VU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[gO]}),t})();const oFe=({classList:t})=>{t.remove("show")};let sFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yo=(()=>{class t{constructor(e,i,r,o){this._renderer=i,this._element=r,this._zone=o,this.closed=new ot,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=pa(this._zone,this._element.nativeElement,oFe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const i=e.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(ge(sFe),ge(oa),ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,i){2&e&&Vn("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[ei,Bs],ngContentSelectors:Qy,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Df(),Tf(0),te(1,lIe,1,0,"button",0)),2&e&&(w(1),S("ngIf",i.dismissible))},dependencies:[xn],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),HU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[yo]}),t})();var Yf=(()=>(function(t){t.START="start",t.END="end"}(Yf||(Yf={})),Yf))();const UU=({classList:t})=>t.contains("carousel-item-start")||t.contains("carousel-item-end"),e_=t=>{t.remove("carousel-item-start"),t.remove("carousel-item-end")},o2=t=>{e_(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},aFe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(UU(t)?e_(i):(i.add("carousel-item-"+(e===Yf.START?"next":"prev")),Iv(t),i.add("carousel-item-"+e)),()=>{o2(i),i.add("active")}):(e_(i),o2(i),void i.add("active"))},lFe=(t,n,{direction:e})=>{const{classList:i}=t;return n?(UU(t)?e_(i):i.add("carousel-item-"+e),()=>{o2(i),i.remove("active")}):(e_(i),o2(i),void i.remove("active"))};let cFe=(()=>{class t{constructor(e){this._ngbConfig=e,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uFe=0,dFe=(()=>{class t{constructor(e){this.tplRef=e,this.id="ngb-slide-"+uFe++,this.slid=new ot}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"},standalone:!0}),t})(),hFe=(()=>{class t{constructor(e,i,r,o,s){this._platformId=i,this._ngZone=r,this._cd=o,this._container=s,this.NgbSlideEventSource=ym,this._destroy$=new fn,this._interval$=new ca(0),this._mouseHover$=new ca(!1),this._focused$=new ca(!1),this._pauseOnHover$=new ca(!1),this._pauseOnFocus$=new ca(!1),this._pause$=new ca(!1),this._wrap$=new ca(!1),this.slide=new ot,this.slid=new ot,this._transitionIds=null,this.animation=e.animation,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.pauseOnFocus=e.pauseOnFocus,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(e){this._pauseOnFocus$.next(e)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(e){this._mouseHover$.next(e)}get mouseHover(){return this._mouseHover$.value}set focused(e){this._focused$.next(e)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(ym.ARROW_LEFT)}arrowRight(){this.focus(),this.next(ym.ARROW_RIGHT)}ngAfterContentInit(){v7(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const e=rC([this.slide.pipe($t(i=>i.current),aC(this.activeId)),this._wrap$,this.slides.changes.pipe(aC(null))]).pipe($t(([i,r])=>{const o=this.slides.toArray(),s=this._getSlideIdxById(i);return r?o.length>1:si||r&&o||s&&a||!c?0:l),QC(),bc(i=>i>0?Gy(i,i):dU),ns(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(ym.TIMER)))}),this.slides.changes.pipe(ns(this._destroy$)).subscribe(()=>{this._transitionIds?.forEach(e=>(t=>{Zy.get(t)?.complete()})(this._getSlideElement(e))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{for(const{id:e}of this.slides){const i=this._getSlideElement(e);e===this.activeId?i.classList.add("active"):i.classList.remove("active")}})})}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const e=this._getSlideElement(this.activeId);e&&e.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(e,i){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),i)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),Yf.END,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),Yf.START,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(e,i,r){const o=this._transitionIds;if(o&&(o[0]!==e||o[1]!==this.activeId))return;let s=this._getSlideById(e);if(s&&s.id!==this.activeId){this._transitionIds=[this.activeId,e],this.slide.emit({prev:this.activeId,current:s.id,direction:i,paused:this._pause$.value,source:r});const a={animation:this.animation,runningTransition:"stop",context:{direction:i}},l=[],c=this._getSlideById(this.activeId);if(c){const f=pa(this._ngZone,this._getSlideElement(c.id),lFe,a);f.subscribe(()=>{c.slid.emit({isShown:!1,direction:i,source:r})}),l.push(f)}const u=this.activeId;this.activeId=s.id;const d=this._getSlideById(this.activeId),h=pa(this._ngZone,this._getSlideElement(s.id),aFe,a);h.subscribe(()=>{d?.slid.emit({isShown:!0,direction:i,source:r})}),l.push(h),ZC(...l).pipe(ua(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:u,current:s.id,direction:i,paused:this._pause$.value,source:r})})}this._cd.markForCheck()}_getSlideEventDirection(e,i){return this._getSlideIdxById(e)>this._getSlideIdxById(i)?Yf.END:Yf.START}_getSlideById(e){return this.slides.find(i=>i.id===e)||null}_getSlideIdxById(e){const i=this._getSlideById(e);return null!=i?this.slides.toArray().indexOf(i):-1}_getNextSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return r===i.length-1?this.wrap?i[0].id:i[i.length-1].id:i[r+1].id}_getPrevSlide(e){const i=this.slides.toArray(),r=this._getSlideIdxById(e);return 0===r?this.wrap?i[i.length-1].id:i[0].id:i[r-1].id}_getSlideElement(e){return this._container.nativeElement.querySelector(`#slide-${e}`)}}return t.\u0275fac=function(e){return new(e||t)(ge(cFe),ge(sy),ge(ur),ge($s),ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-carousel"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,dFe,4),2&e){let o;Tn(o=En())&&(i.slides=o)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(e,i){1&e&&ke("keydown.arrowLeft",function(){return i.keyboard&&i.arrowLeft()})("keydown.arrowRight",function(){return i.keyboard&&i.arrowRight()})("mouseenter",function(){return i.mouseHover=!0})("mouseleave",function(){return i.mouseHover=!1})("focusin",function(){return i.focused=!0})("focusout",function(){return i.focused=!1}),2&e&&(ft("aria-activedescendant","slide-"+i.activeId),cr("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],standalone:!0,features:[Bs],decls:6,vars:6,consts:function(){let n,e,i;return n=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,e=$localize`:@@ngb.carousel.previous:Previous`,i=$localize`:@@ngb.carousel.next:Next`,[["role","tablist",1,"carousel-indicators"],["type","button","data-bs-target","","role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","type","button",3,"click",4,"ngIf"],["class","carousel-control-next","type","button",3,"click",4,"ngIf"],["type","button","data-bs-target","","role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"visually-hidden"],n,[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],e,["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],i]},template:function(e,i){1&e&&(_(0,"div",0),te(1,cIe,1,5,"button",1),x(),_(2,"div",2),te(3,dIe,4,4,"div",3),x(),te(4,hIe,4,0,"button",4),te(5,fIe,4,0,"button",5)),2&e&&(Vn("visually-hidden",!i.showNavigationIndicators),w(1),S("ngForOf",i.slides),w(2),S("ngForOf",i.slides),w(1),S("ngIf",i.showNavigationArrows),w(1),S("ngIf",i.showNavigationArrows))},dependencies:[Un,Fu,xn],encapsulation:2,changeDetection:0}),t})();var ym=(()=>(function(t){t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator"}(ym||(ym={})),ym))();let zU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[hFe]}),t})(),GU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();class ma{constructor(n,e,i){this.year=is(n)?n:null,this.month=is(e)?e:null,this.day=is(i)?i:null}static from(n){return n instanceof ma?n:n?new ma(n.year,n.month,n.day):null}equals(n){return null!=n&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return!!n&&(this.year===n.year?this.month===n.month?this.day!==n.day&&this.dayn.day:this.month>n.month:this.year>n.year)}}function Nv(t,n){return!function fFe(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}(t,n)}function WU(t,n){return!(!t&&!n||t&&n&&t.year===n.year&&t.month===n.month)}function s2(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function yO(t,n){const{minDate:e,maxDate:i,disabled:r,markDisabled:o}=n;return!(null==t||r||o&&o(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function qU(t){return new ma(t.getFullYear(),t.getMonth()+1,t.getDate())}function a2(t){const n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}let l2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function wFe(){return new CFe}()},providedIn:"root"}),t})(),CFe=(()=>{class t extends l2{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",r=1){let o=a2(e),s=!0,a=o.getMonth();switch(i){case"y":o.setFullYear(o.getFullYear()+r);break;case"m":a+=r,o.setMonth(a),a%=12,a<0&&(a+=12);break;case"d":o.setDate(o.getDate()+r),s=!1;break;default:return e}return s&&o.getMonth()!==a&&o.setDate(0),qU(o)}getPrev(e,i="d",r=1){return this.getNext(e,i,-r)}getWeekday(e){let r=a2(e).getDay();return 0===r?7:r}getWeekNumber(e,i){7===i&&(i=0);const s=a2(e[(11-i)%7]);s.setDate(s.getDate()+4-(s.getDay()||7));const a=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((a-s.getTime())/864e5)/7)+1}getToday(){return qU(new Date)}isValid(e){if(!(e&&is(e.year)&&is(e.month)&&is(e.day)&&0!==e.year))return!1;const i=a2(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function SFe(t){return new kFe(t)}(wt(vc)),i},providedIn:"root"}),t})(),kFe=(()=>{class t extends _m{constructor(e){super(),this._locale=e,this._monthsShort=QA(e,Vo.Standalone,Yi.Abbreviated),this._monthsFull=QA(e,Vo.Standalone,Yi.Wide)}getWeekdayLabel(e,i){const r=J$(this._locale,Vo.Standalone,void 0===i?Yi.Short:i);return r.map((s,a)=>r[(a+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){return Q$(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(wt(vc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),_O=(()=>{class t{constructor(e,i){this._calendar=e,this._i18n=i,this._VALIDATORS={dayTemplateData:r=>{if(this._state.dayTemplateData!==r)return{dayTemplateData:r}},displayMonths:r=>{if(is(r=Ha(r))&&r>0&&this._state.displayMonths!==r)return{displayMonths:r}},disabled:r=>{if(this._state.disabled!==r)return{disabled:r}},firstDayOfWeek:r=>{if(is(r=Ha(r))&&r>=0&&this._state.firstDayOfWeek!==r)return{firstDayOfWeek:r}},focusVisible:r=>{if(this._state.focusVisible!==r&&!this._state.disabled)return{focusVisible:r}},markDisabled:r=>{if(this._state.markDisabled!==r)return{markDisabled:r}},maxDate:r=>{const o=this.toValidDate(r,null);if(Nv(this._state.maxDate,o))return{maxDate:o}},minDate:r=>{const o=this.toValidDate(r,null);if(Nv(this._state.minDate,o))return{minDate:o}},navigation:r=>{if(this._state.navigation!==r)return{navigation:r}},outsideDays:r=>{if(this._state.outsideDays!==r)return{outsideDays:r}},weekdays:r=>{const o=!0===r||!1===r?Yi.Short:r,s=!0!==r&&!1!==r||r;if(this._state.weekdayWidth!==o||this._state.weekdaysVisible!==s)return{weekdayWidth:o,weekdaysVisible:s}}},this._model$=new fn,this._dateSelect$=new fn,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:Yi.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(ps(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(ps(e=>null!==e))}set(e){let i=Object.keys(e).map(r=>this._VALIDATORS[r](e[r])).reduce((r,o)=>({...r,...o}),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){const i=this.toValidDate(e,null);null!=i&&!this._state.disabled&&Nv(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){yO(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const i=this.toValidDate(e,this._calendar.getToday());null!=i&&!this._state.disabled&&(!this._state.firstDate||WU(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){const r=this.toValidDate(e,null);null!=r&&!this._state.disabled&&(Nv(this._state.selectedDate,r)&&this._nextState({selectedDate:r}),i.emitEvent&&yO(r,this._state)&&this._dateSelect$.next(r))}toValidDate(e,i){const r=ma.from(e);return void 0===i&&(i=this._calendar.getToday()),this._calendar.isValid(r)?r:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){const{months:i,displayMonths:r,selectedDate:o,focusDate:s,focusVisible:a,disabled:l,outsideDays:c}=e;e.months.forEach(u=>{u.weeks.forEach(d=>{d.days.forEach(h=>{s&&(h.context.focused=s.equals(h.date)&&a),h.tabindex=!l&&s&&h.date.equals(s)&&s.month===u.number?0:-1,!0===l&&(h.context.disabled=!0),void 0!==o&&(h.context.selected=null!==o&&o.equals(h.date)),u.number!==h.date.month&&(h.hidden="hidden"===c||"collapsed"===c||r>1&&h.date.after(i[0].firstDate)&&h.date.before(i[r-1].lastDate))})})})}_updateState(e){const i=Object.assign({},this._state,e);let r=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(function pFe(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}(i.minDate,i.maxDate),i.focusDate=s2(i.focusDate,i.minDate,i.maxDate),i.firstDate=s2(i.firstDate,i.minDate,i.maxDate),r=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(r=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=s2(i.focusDate,i.minDate,i.maxDate),r=i.focusDate,0!==i.months.length&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=s2(i.firstDate,i.minDate,i.maxDate),r=i.firstDate),r){const s=function _Fe(t,n,e,i,r){const{displayMonths:o,months:s}=e,a=s.splice(0,s.length);return Array.from({length:o},(c,u)=>{const d=Object.assign(t.getNext(n,"m",u),{day:1});if(s[u]=null,!r){const h=a.findIndex(f=>f.firstDate.equals(d));-1!==h&&(s[u]=a.splice(h,1)[0])}return d}).forEach((c,u)=>{null===s[u]&&(s[u]=function bFe(t,n,e,i,r={}){const{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u,weekdayWidth:d,weekdaysVisible:h}=e,f=t.getToday();r.firstDate=null,r.lastDate=null,r.number=n.month,r.year=n.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],n=function xFe(t,n,e){const i=t.getDaysPerWeek(),r=new ma(n.year,n.month,1),o=t.getWeekday(r)%i;return t.getPrev(r,"d",(i+o-e)%i)}(t,n,l),h||(r.weekdays.length=0);for(let p=0;pv.date),l),m.collapsed="collapsed"===u&&g[0].date.month!==r.number&&g[g.length-1].date.month!==r.number}return r}(t,c,e,i,a.shift()||{}))}),s}(this._calendar,r,i,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e);i.months=s,i.firstDate=s[0].firstDate,i.lastDate=s[s.length-1].lastDate,"selectedDate"in e&&!yO(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=r);const a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;"select"===i.navigation?(("minDate"in e||"maxDate"in e||0===i.selectBoxes.years.length||a)&&(i.selectBoxes.years=function gFe(t,n,e){if(!t)return[];const i=n?Math.max(n.year,t.year-500):t.year-10,o=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,s=Array(o);for(let a=0;as===e.month);r=r.slice(o)}if(i&&n.year===i.year){const o=r.findIndex(s=>s===i.month);r=r.slice(0,o+1)}return r}(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},("arrows"===i.navigation||"select"===i.navigation)&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||function yFe(t,n,e){const i=Object.assign(t.getPrev(n,"m"),{day:1});return null!=e&&(i.year===e.year&&i.month(function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(Fv||(Fv={})),Fv))();let DFe=(()=>{class t{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m))},t.\u0275cmp=Vt({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,i){2&e&&Vn("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[Bs],attrs:pIe,decls:1,vars:1,template:function(e,i){1&e&&O(0),2&e&&bt(i.i18n.getDayNumerals(i.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),TFe=(()=>{class t{constructor(e,i){this.i18n=e,this._renderer=i,this.select=new ot,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new ma(this.date.year,Ha(e),1))}changeYear(e){this.select.emit(new ma(Ha(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(ge(_m),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,i){if(1&e&&(wo(mIe,7,Ni),wo(gIe,7,Ni)),2&e){let r;Tn(r=En())&&(i.monthSelect=r.first),Tn(r=En())&&(i.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[Bs],decls:6,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.select-month:Select month`,e=$localize`:@@ngb.datepicker.select-month:Select month`,i=$localize`:@@ngb.datepicker.select-year:Select year`,r=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",n,"title",e,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",i,"title",r,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,i){1&e&&(_(0,"select",0,1),ke("change",function(o){return i.changeMonth(o.target.value)}),te(2,vIe,2,3,"option",2),x(),_(3,"select",3,4),ke("change",function(o){return i.changeYear(o.target.value)}),te(5,yIe,2,2,"option",2),x()),2&e&&(S("disabled",i.disabled),w(2),S("ngForOf",i.months),w(1),S("disabled",i.disabled),w(2),S("ngForOf",i.years))},dependencies:[Un],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),t})(),EFe=(()=>{class t{constructor(e){this.i18n=e,this.navigation=Fv,this.months=[],this.navigate=new ot,this.select=new ot}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[Bs],decls:8,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.previous-month:Previous month`,e=$localize`:@@ngb.datepicker.previous-month:Previous month`,i=$localize`:@@ngb.datepicker.next-month:Next month`,r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",n,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",i,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,i){1&e&&(_(0,"div",0)(1,"button",1),ke("click",function(o){return i.onClickPrev(o)}),xe(2,"span",2),x()(),te(3,_Ie,1,4,"ngb-datepicker-navigation-select",3),te(4,CIe,1,1,null,4),_(5,"div",5)(6,"button",6),ke("click",function(o){return i.onClickNext(o)}),xe(7,"span",2),x()()),2&e&&(w(1),S("disabled",i.prevDisabled),w(2),S("ngIf",i.showSelect),w(1),S("ngIf",!i.showSelect),w(2),S("disabled",i.nextDisabled))},dependencies:[xn,Un,TFe],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),t})();var jr=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(jr||(jr={})),jr))();let AFe=(()=>{class t{processKey(e,i){const{state:r,calendar:o}=i;switch(e.which){case jr.PageUp:i.focusDate(o.getPrev(r.focusedDate,e.shiftKey?"y":"m",1));break;case jr.PageDown:i.focusDate(o.getNext(r.focusedDate,e.shiftKey?"y":"m",1));break;case jr.End:i.focusDate(e.shiftKey?r.maxDate:r.lastDate);break;case jr.Home:i.focusDate(e.shiftKey?r.minDate:r.firstDate);break;case jr.ArrowLeft:i.focusDate(o.getPrev(r.focusedDate,"d",1));break;case jr.ArrowUp:i.focusDate(o.getPrev(r.focusedDate,"d",o.getDaysPerWeek()));break;case jr.ArrowRight:i.focusDate(o.getNext(r.focusedDate,"d",1));break;case jr.ArrowDown:i.focusDate(o.getNext(r.focusedDate,"d",o.getDaysPerWeek()));break;case jr.Enter:case jr.Space:i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bO=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=Yi.Short}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function MFe(){return new OFe}()},providedIn:"root"}),t})(),OFe=(()=>{class t extends xO{fromModel(e){return e&&is(e.year)&&is(e.month)&&is(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&is(e.year)&&is(e.month)&&is(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),YU=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0}),t})(),wO=(()=>{class t{constructor(e,i,r,o){this.i18n=e,this.datepicker=i,this._keyboardService=r,this._service=o}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}}return t.\u0275fac=function(e){return new(e||t)(ge(_m),ge(ji(()=>c2)),ge(AFe),ge(_O))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,i){1&e&&ke("keydown",function(o){return i.onKeyDown(o)})},inputs:{month:"month"},standalone:!0,features:[Bs],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(te(0,DIe,3,2,"div",0),te(1,IIe,1,1,"ng-template",1)),2&e&&(S("ngIf",i.viewModel.weekdays.length>0),w(1),S("ngForOf",i.viewModel.weeks))},dependencies:[xn,Un,Fu],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),t})(),c2=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this._service=e,this._calendar=i,this._i18n=r,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=c,this.injector=Vi(Ca),this._controlValue=null,this._destroyed$=new fn,this._publicState={},this.navigate=new ot,this.dateSelect=new ot,this.onChange=u=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(u=>this[u]=o[u]),e.dateSelect$.pipe(ns(this._destroyed$)).subscribe(u=>{this.dateSelect.emit(u)}),e.model$.pipe(ns(this._destroyed$)).subscribe(u=>{const d=u.firstDate,h=this.model?this.model.firstDate:null;this._publicState={maxDate:u.maxDate,minDate:u.minDate,firstDate:u.firstDate,lastDate:u.lastDate,focusedDate:u.focusDate,months:u.months.map(v=>v.firstDate)};let f=!1;if(!d.equals(h)&&(this.navigate.emit({current:h?{year:h.year,month:h.month}:null,next:{year:d.year,month:d.month},preventDefault:()=>f=!0}),f&&null!==h))return void this._service.open(h);const p=u.selectedDate,m=u.focusDate,g=this.model?this.model.focusDate:null;this.model=u,Nv(p,this._controlValue)&&(this._controlValue=p,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(p))),Nv(m,g)&&g&&u.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(ma.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(ma.from(e?e.day?e:{...e,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Va(this._contentEl.nativeElement,"focusin"),i=Va(this._contentEl.nativeElement,"focusout"),{nativeElement:r}=this._elementRef;Mt(e,i).pipe(ps(({target:o,relatedTarget:s})=>!(OU(o,"ngb-dp-day")&&OU(s,"ngb-dp-day")&&r.contains(o)&&r.contains(s))),ns(this._destroyed$)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===o})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(r=>r in e).forEach(r=>i[r]=this[r]),this._service.set(i),"startDate"in e){const{currentValue:r,previousValue:o}=e.startDate;WU(o,r)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Fv.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Fv.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=ma.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(ge(_O),ge(l2),ge(_m),ge(bO),ge($s),ge(Ni),ge(xO),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,YU,7),2&e){let o;Tn(o=En())&&(i.contentTemplateFromContent=o.first)}},viewQuery:function(e,i){if(1&e&&(wo(NIe,7),wo(FIe,7)),2&e){let r;Tn(r=En())&&(i._defaultDayTemplate=r.first),Tn(r=En())&&(i._contentEl=r.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("disabled",i.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0},_O]),ei,Bs],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,i){if(1&e&&(te(0,PIe,1,5,"ng-template",null,0,Xo),te(2,LIe,1,1,"ng-template",null,1,Xo),_(4,"div",2),te(5,BIe,1,7,"ngb-datepicker-navigation",3),x(),_(6,"div",4,5),te(8,$Ie,0,0,"ng-template",6),x(),te(9,VIe,0,0,"ng-template",7)),2&e){const r=sa(3);w(5),S("ngIf","none"!==i.navigation),w(1),Vn("ngb-dp-months",!i.contentTemplate),w(2),S("ngTemplateOutlet",i.contentTemplate||(null==i.contentTemplateFromContent?null:i.contentTemplateFromContent.templateRef)||r)("ngTemplateOutletContext",Zi(7,EU,i))("ngTemplateOutletInjector",i.injector),w(1),S("ngTemplateOutlet",i.footerTemplate)}},dependencies:[xn,Un,Fu,DFe,wO,EFe],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),t})();const u2=(t,n)=>!!n&&n.some(e=>e.contains(t)),XU=(t,n)=>!n||null!=function GNe(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),IFe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),NFe=t=>IFe?()=>setTimeout(()=>t(),100):t;function CO(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular(NFe(()=>{const c=Va(n,"keydown").pipe(ns(r),ps(h=>h.which===jr.Escape),ms(h=>h.preventDefault())),u=Va(n,"mousedown").pipe($t(h=>{const f=h.target;return 2!==h.button&&!u2(f,s)&&("inside"===e?u2(f,o)&&XU(f,a):"outside"===e?!u2(f,o):XU(f,a)||!u2(f,o))}),ns(r)),d=Va(n,"mouseup").pipe(Z3(u),ps(([h,f])=>f),eO(0),ns(r));uU([c.pipe($t(h=>0)),d.pipe($t(h=>1))]).subscribe(h=>t.run(()=>i(h)))}))}const JU=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function KU(t){const n=Array.from(t.querySelectorAll(JU)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}let FFe=(()=>{class t{constructor(e){this._element=e.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const PFe=/\s+/,RFe=/ +/gi,jFe={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},BFe=/^left/,$Fe=/^right/,VFe=/^start/,HFe=/^end/;function ZU({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(PFe),o=i.findIndex(c=>"auto"===c);o>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==i.find(u=>-1!==u.search("^"+c))&&i.splice(o++,1,c)});const s=i.map(c=>function LFe(t,n){const[e,i]=jFe[t];return n&&i||e}(c,e.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const u=new RegExp(n+"(-[a-z]+)*","gi"),d=c.elements.popper,h=c.placement;let f=d.className;f=f.replace(u,""),f+=` ${function UFe(t,n){let[e,i]=n.split("-");const r=e.replace(BFe,"start").replace($Fe,"end");let o=[r];if(i){let s=i;("left"===e||"right"===e)&&(s=s.replace(VFe,"top").replace(HFe,"bottom")),o.push(`${r}-${s}`)}return t&&(o=o.map(s=>`${t}-${s}`)),o.join(" ")}(n,h)}`,f=f.trim().replace(RFe," "),d.className=f}},wOe,DOe,MOe,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function ez(t){return t}function SO(){const t=Vi(FFe);let n=null;return{createPopper(e){if(!n){let r=(e.updatePopperOptions||ez)(ZU(e,t));n=KOe(e.hostElement,e.targetElement,r)}},update(){n&&n.update()},setOptions(e){if(n){let r=(e.updatePopperOptions||ez)(ZU(e,t));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}new Date(1882,10,12),new Date(2174,10,25);let cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[c2,wO]}),t})(),ePe=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Xf=(()=>{class t{constructor(e,i){this.elementRef=e,this._renderer=i,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(e,i){2&e&&(ql("tabIndex",i.disabled?-1:0),Vn("disabled",i.disabled))},inputs:{disabled:"disabled"},standalone:!0}),t})(),Jf=(()=>{class t{constructor(e,i){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Xf,4),2&e){let o;Tn(o=En())&&(i.menuItems=o)}},hostVars:4,hostBindings:function(e,i){1&e&&ke("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Enter",function(o){return i.dropdown.onKeyDown(o)})("keydown.Space",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&Vn("dropdown-menu",!0)("show",i.dropdown.isOpen())},standalone:!0}),t})(),p2=(()=>{class t{constructor(e,i){this.dropdown=e,this.nativeElement=i.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){2&e&&ft("aria-expanded",i.dropdown.isOpen())},standalone:!0}),t})(),wm=(()=>{class t extends p2{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>Hu)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,i){1&e&&ke("click",function(){return i.dropdown.toggle()})("keydown.ArrowUp",function(o){return i.dropdown.onKeyDown(o)})("keydown.ArrowDown",function(o){return i.dropdown.onKeyDown(o)})("keydown.Home",function(o){return i.dropdown.onKeyDown(o)})("keydown.End",function(o){return i.dropdown.onKeyDown(o)})("keydown.Tab",function(o){return i.dropdown.onKeyDown(o)})("keydown.Shift.Tab",function(o){return i.dropdown.onKeyDown(o)}),2&e&&ft("aria-expanded",i.dropdown.isOpen())},standalone:!0,features:[oo([{provide:p2,useExisting:ji(()=>t)}]),wi]}),t})(),Hu=(()=>{class t{constructor(e,i,r,o,s,a){this._changeDetector=e,this._document=r,this._ngZone=o,this._elementRef=s,this._renderer=a,this._destroyCloseHandlers$=new fn,this._bodyContainer=null,this._open=!1,this.openChange=new ot,this.placement=i.placement,this.popperOptions=i.popperOptions,this.container=i.container,this.autoClose=i.autoClose,this._positioning=SO(),this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic"}ngAfterContentInit(){this._ngZone.onStable.pipe(ua(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),e.dropdownClass){const{currentValue:i,previousValue:r}=e.dropdownClass;this._applyCustomDropdownClass(i,r)}e.autoClose&&this._open&&(this.autoClose=e.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:e=>this.popperOptions(function nz(t){return n=>(n.modifiers.push(eIe,{name:"offset",options:{offset:()=>t}}),n)}([0,2])(e))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),CO(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(e){const i=e.which,r=this._getMenuElements();let o=-1,s=null;const a=this._isEventFromToggle(e);if(!a&&r.length&&r.forEach((l,c)=>{l.contains(e.target)&&(s=l),l===this._document.activeElement&&(o=c)}),i!==jr.Space&&i!==jr.Enter){if(i!==jr.Tab){if(a||s){if(this.open(),r.length){switch(i){case jr.ArrowDown:o=Math.min(o+1,r.length-1);break;case jr.ArrowUp:if(this._isDropup()&&-1===o){o=r.length-1;break}o=Math.max(o-1,0);break;case jr.Home:o=0;break;case jr.End:o=r.length-1}r[o].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const l=this._menu.nativeElement.querySelectorAll(JU);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Va(e.target,"focusout").pipe(ua(1)).subscribe(({relatedTarget:l})=>{this._elementRef.nativeElement.contains(l)||this.close()})}}else s&&(!0===this.autoClose||"inside"===this.autoClose)&&Va(s,"click").pipe(ua(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(i=>!i.disabled).map(i=>i.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;this._menu&&e.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const i=this._renderer,r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||i.createElement("div");i.setStyle(o,"position","absolute"),i.setStyle(r,"position","static"),i.setStyle(o,"z-index","1055"),i.appendChild(o,r),i.appendChild(this._document.body,o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){const r="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;r&&(i&&this._renderer.removeClass(r,i),e&&this._renderer.addClass(r,e))}_applyPlacementClasses(e){const i=this._menu;if(i){e||(e=this._getFirstPlacement(this.placement));const r=this._renderer,o=this._elementRef.nativeElement;r.removeClass(o,"dropup"),r.removeClass(o,"dropdown");const{nativeElement:s}=i;"static"===this.display?(i.placement=null,r.setAttribute(s,"data-bs-popper","static")):(i.placement=e,r.removeAttribute(s,"data-bs-popper"));const a=-1!==e.search("^top")?"dropup":"dropdown";r.addClass(o,a);const l=this._bodyContainer;l&&(r.removeClass(l,"dropup"),r.removeClass(l,"dropdown"),r.addClass(l,a))}}}return t.\u0275fac=function(e){return new(e||t)(ge($s),ge(ePe),ge(vo),ge(ur),ge(Ni),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Jf,5),Ti(r,p2,5)),2&e){let o;Tn(o=En())&&(i._menu=o.first),Tn(o=En())&&(i._anchor=o.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("show",i.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[ei]}),t})(),uz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();class Cm{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class tPe{constructor(n,e,i,r,o,s){this._componentType=n,this._injector=e,this._viewContainerRef=i,this._renderer=r,this._ngZone=o,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,o=this._ngZone.onStable.pipe(ua(1),it(()=>pa(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(n=!1){return this._windowRef?pa(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(ms(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Hn(void 0)}_getContentRef(n,e){if(n){if(n instanceof fo){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new Cm([i.rootNodes],i)}return new Cm([[this._renderer.createText(`${n}`)]])}return new Cm([])}}let nPe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{pa(this._zone,this._el.nativeElement,(e,i)=>{i&&Iv(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return pa(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(Au("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Vn("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Bs],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class dz{update(n){}close(n){}dismiss(n){}}const iPe=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],rPe=["animation","backdropClass"];class oPe{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new fn,this._dismissed=new fn,this._hidden=new fn,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}_applyWindowOptions(n,e){iPe.forEach(i=>{gm(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){rPe.forEach(i=>{gm(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(ns(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(ns(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function MU(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Hn(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ZC(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var i_=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(i_||(i_={})),i_))();let sPe=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new fn,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ot,this.shown=new fn,this.hidden=new fn}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":mm(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=ZC(pa(this._zone,e,()=>e.classList.remove("show"),i),pa(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};ZC(pa(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Iv(o),o.classList.add("show")},e),pa(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Va(e,"keydown").pipe(ns(this._closed$),ps(r=>r.which===jr.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(i_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Va(this._dialogEl.nativeElement,"mousedown").pipe(ns(this._closed$),ms(()=>i=!1),bc(()=>Va(e,"mouseup").pipe(ns(this._closed$),ua(1))),ps(({target:r})=>e===r)).subscribe(()=>{i=!0}),Va(e,"click").pipe(ns(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(i_.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=KU(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&pa(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(ge(vo),ge(Ni),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&wo(HIe,7),2&e){let r;Tn(r=En())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(ft("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Au("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Vn("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Df(),_(0,"div",0,1)(2,"div",2),Tf(3),x()()),2&e&&Au("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),aPe=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(e>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=o}}}return t.\u0275fac=function(e){return new(e||t)(wt(vo))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lPe=(()=>{class t{constructor(e,i,r,o,s,a,l){this._applicationRef=e,this._injector=i,this._environmentInjector=r,this._document=o,this._scrollBar=s,this._rendererFactory=a,this._ngZone=l,this._activeWindowCmptHasChanged=new fn,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ot,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Va(n,"focusin").pipe(ns(e),$t(o=>o.target));Va(n,"keydown").pipe(ns(e),ps(o=>o.which===jr.Tab),Z3(r)).subscribe(([o,s])=>{const[a,l]=KU(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Va(n,"click").pipe(ns(e),Z3(r),$t(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const o=r.container instanceof HTMLElement?r.container:gm(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new dz,l=(e=r.injector||e).get(Gc,null)||this._environmentInjector,c=this._getContentRef(e,l,i,a,r);let u=!1!==r.backdrop?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,c.nodes),h=new oPe(d,c,u,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(ua(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{h.close(f)},a.dismiss=f=>{h.dismiss(f)},a.update=f=>{h.update(f)},h.update(r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=qA(nPe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=qA(sPe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,o,s){return r?r instanceof fo?this._createFromTemplateRef(r,o):mm(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new Cm([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new Cm([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Cm([[i]])}_createFromComponent(e,i,r,o,s){const l=qA(r,{environmentInjector:i,elementInjector:Ca.create({providers:[{provide:dz,useValue:o}],parent:e})}),c=l.location.nativeElement;return s.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new Cm([[c]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(wt(jh),wt(Ca),wt(Gc),wt(vo),wt(aPe),wt(Wg),wt(ur))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m2=(()=>{class t{constructor(e,i,r){this._injector=e,this._modalStack=i,this._config=r}open(e,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(wt(Ca),wt(lPe),wt(cPe))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[m2]}),t})(),uPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fz=t=>gm(t)&&""!==t;let dPe=0,pz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbNavContent",""]],standalone:!0}),t})(),Xh=(()=>{class t{constructor(e,i){this._nav=e,this.elementRef=i,this.disabled=!1,this.shown=new ot,this.hidden=new ot}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){gm(this.domId)||(this.domId="ngb-nav-"+dPe++)}get active(){return this._nav.activeId===this.id}get id(){return fz(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(gm(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(ge(ji(()=>zd)),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,r){if(1&e&&Ti(r,pz,4),2&e){let o;Tn(o=En())&&(i.contentTpls=o)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0}),t})(),zd=(()=>{class t{constructor(e,i,r,o){this.role=e,this._cd=r,this._document=o,this.activeIdChange=new ot,this.shown=new ot,this.hidden=new ot,this.destroy$=new fn,this.navItemChange$=new fn,this.navChange=new ot,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,r=this.links.filter(a=>!a.navItem.disabled),{length:o}=r;let s=-1;if(r.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(i){case jr.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case jr.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case jr.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case jr.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case jr.Home:s=0;break;case jr.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(r[s].navItem.id),r[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!gm(this.activeId)){const e=this.items.first?this.items.first.id:null;fz(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(ns(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let r=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{r=!0}}),r||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(kf("role"),ge(uPe),ge($s),ge(vo))},t.\u0275dir=un({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Xh,4),Ti(r,Kf,5)),2&e){let o;Tn(o=En())&&(i.items=o),Tn(o=En())&&(i.links=o)}},hostVars:6,hostBindings:function(e,i){1&e&&ke("keydown.arrowLeft",function(o){return i.onKeyDown(o)})("keydown.arrowRight",function(o){return i.onKeyDown(o)})("keydown.arrowDown",function(o){return i.onKeyDown(o)})("keydown.arrowUp",function(o){return i.onKeyDown(o)})("keydown.Home",function(o){return i.onKeyDown(o)})("keydown.End",function(o){return i.onKeyDown(o)}),2&e&&(ft("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),Vn("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[ei]}),t})(),Kf=(()=>{class t{constructor(e,i,r,o){this.role=e,this.navItem=i,this.nav=r,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(kf("role"),ge(Xh),ge(zd),ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(e,i){2&e&&(ql("id",i.navItem.domId),ft("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),Vn("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))},standalone:!0}),t})(),r_=(()=>{class t{constructor(e,i){this.navItem=e,this.nav=i}}return t.\u0275fac=function(e){return new(e||t)(ge(Xh),ge(zd))},t.\u0275dir=un({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(e,i){1&e&&ke("click",function(o){return i.nav.click(i.navItem),o.preventDefault()})},standalone:!0,features:[G1([Kf])]}),t})();const pPe=({classList:t})=>(t.remove("show"),()=>t.remove("active")),mPe=(t,n)=>{n&&Iv(t),t.classList.add("show")};let EO=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275dir=un({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,i){2&e&&(ql("id",i.item.panelDomId),ft("role",i.role?i.role:i.nav.roles?"tabpanel":void 0)("aria-labelledby",i.item.domId),Vn("fade",i.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0}),t})(),mz=(()=>{class t{constructor(e,i){this._cd=e,this._ngZone=i,this._activePane=null}isPanelTransitioning(e){return this._activePane?.item===e}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ns(this.nav.destroy$),aC(this._activePane?.item||null),QC(),function X3e(t){return n=>n.lift(new J3e(t))}(1)).subscribe(e=>{const i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?pa(this._ngZone,this._activePane.elRef.nativeElement,pPe,i).subscribe(()=>{const r=this._activePane?.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),pa(this._ngZone,this._activePane.elRef.nativeElement,mPe,i).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.elRef.nativeElement.classList.add("show"),this._activePane?.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(ge($s),ge(ur))},t.\u0275cmp=Vt({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,i){if(1&e&&wo(EO,5),2&e){let r;Tn(r=En())&&(i._panes=r)}},hostVars:2,hostBindings:function(e,i){2&e&&Vn("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},standalone:!0,features:[Bs],attrs:UIe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&te(0,WIe,1,1,"ng-template",0),2&e&&S("ngForOf",i.nav.items)},dependencies:[EO,Un,xn,Fu],encapsulation:2,changeDetection:0}),t})(),gz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[mz]}),t})(),gPe=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]],standalone:!0}),t})(),yz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationFirst",""]],standalone:!0}),t})(),_z=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationLast",""]],standalone:!0}),t})(),bz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationNext",""]],standalone:!0}),t})(),xz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationNumber",""]],standalone:!0}),t})(),wz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]],standalone:!0}),t})(),Cz=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["ng-template","ngbPaginationPages",""]],standalone:!0}),t})(),Sz=(()=>{class t{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new ot(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),i0&&this.pageCount>this.maxSize){let i=0,r=this.pageCount;[i,r]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(i,r),this._applyEllipses(i,r)}}}return t.\u0275fac=function(e){return new(e||t)(ge(gPe))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-pagination"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,vz,5),Ti(r,yz,5),Ti(r,_z,5),Ti(r,bz,5),Ti(r,xz,5),Ti(r,wz,5),Ti(r,Cz,5)),2&e){let o;Tn(o=En())&&(i.tplEllipsis=o.first),Tn(o=En())&&(i.tplFirst=o.first),Tn(o=En())&&(i.tplLast=o.first),Tn(o=En())&&(i.tplNext=o.first),Tn(o=En())&&(i.tplNumber=o.first),Tn(o=En())&&(i.tplPrevious=o.first),Tn(o=En())&&(i.tplPages=o.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},standalone:!0,features:[ei,Bs],decls:20,vars:12,consts:function(){let n,e,i,r,o,s,a,l;return n=$localize`:@@ngb.pagination.first:««`,e=$localize`:@@ngb.pagination.previous:«`,i=$localize`:@@ngb.pagination.next:»`,r=$localize`:@@ngb.pagination.last:»»`,o=$localize`:@@ngb.pagination.first-aria:First`,s=$localize`:@@ngb.pagination.previous-aria:Previous`,a=$localize`:@@ngb.pagination.next-aria:Next`,l=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],n,e,i,r,["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"],["aria-label",l,"href","",1,"page-link",3,"click"]]},template:function(e,i){if(1&e&&(te(0,qIe,2,0,"ng-template",null,0,Xo),te(2,YIe,2,0,"ng-template",null,1,Xo),te(4,XIe,2,0,"ng-template",null,2,Xo),te(6,JIe,2,0,"ng-template",null,3,Xo),te(8,KIe,1,0,"ng-template",null,4,Xo),te(10,QIe,1,1,"ng-template",null,5,Xo),te(12,sNe,1,1,"ng-template",null,6,Xo),_(14,"ul"),te(15,lNe,3,9,"li",7),te(16,dNe,3,8,"li",7),te(17,hNe,0,0,"ng-template",8),te(18,pNe,3,9,"li",7),te(19,gNe,3,9,"li",7),x()),2&e){const r=sa(13);w(14),Au("pagination"+(i.size?" pagination-"+i.size:"")),w(1),S("ngIf",i.boundaryLinks),w(1),S("ngIf",i.directionLinks),w(1),S("ngTemplateOutlet",(null==i.tplPages?null:i.tplPages.templateRef)||r)("ngTemplateOutletContext",ty(8,vNe,i.page,i.pages,i.disabled)),w(1),S("ngIf",i.directionLinks),w(1),S("ngIf",i.boundaryLinks)}},dependencies:[xn,Un,Fu],encapsulation:2,changeDetection:0}),t})(),kz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Sz]}),t})();class vPe{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const yPe={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Dz=t=>t>0?eO(t):n=>n;let Tz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),CPe=(()=>{class t{constructor(){this.max=100,this.animated=!1,this.ariaLabel="progress bar",this.striped=!1,this.showValue=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SPe=(()=>{class t{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.ariaLabel=e.ariaLabel,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!gs(e)||e<=0?100:e}get max(){return this._max}getValue(){return r2(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}}return t.\u0275fac=function(e){return new(e||t)(ge(CPe))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:5,hostBindings:function(e,i){2&e&&(ft("aria-valuenow",i.getValue())("aria-valuemax",i.max)("aria-label",i.ariaLabel),cr("height",i.height))},inputs:{max:"max",animated:"animated",ariaLabel:"ariaLabel",striped:"striped",showValue:"showValue",textType:"textType",type:"type",value:"value",height:"height"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:3,vars:11,consts:function(){let n;return n=$localize`:@@ngb.progressbar.value:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[4,"ngIf"],n]},template:function(e,i){1&e&&(Df(),_(0,"div"),te(1,bNe,3,3,"span",0),Tf(2),x()),2&e&&(function z6(t,n,e,i,r){Ou(pc,Rd,Zg(Xt(),t,n,e,i,r),!0)}("progress-bar",i.type?i.textType?" bg-"+i.type:" text-bg-"+i.type:"","",i.textType?" text-"+i.textType:"",""),cr("width",i.getPercentValue(),"%"),Vn("progress-bar-animated",i.animated)("progress-bar-striped",i.striped),w(1),S("ngIf",i.showValue))},dependencies:[xn,m7],encapsulation:2,changeDetection:0}),t})(),Ez=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[SPe]}),t})(),kPe=(()=>{class t{constructor(){this.max=10,this.readonly=!1,this.resettable=!1,this.tabindex=0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DPe=(()=>{class t{constructor(e,i){this._changeDetectorRef=i,this.contexts=[],this.disabled=!1,this.hover=new ot,this.leave=new ot,this.rateChange=new ot(!0),this.onChange=r=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly,this.tabindex=e.tabindex}ariaValueText(e,i){return`${e} out of ${i}`}isInteractive(){return!this.readonly&&!this.disabled}enter(e){this.isInteractive()&&this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.isInteractive()&&this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case jr.ArrowDown:case jr.ArrowLeft:this.update(this.rate-1);break;case jr.ArrowUp:case jr.ArrowRight:this.update(this.rate+1);break;case jr.Home:this.update(0);break;case jr.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate),e.max&&this._updateMax()}ngOnInit(){this._setupContexts(),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,i=!0){const r=r2(e,this.max,0);this.isInteractive()&&this.rate!==r&&(this.rate=r,this.rateChange.emit(this.rate)),i&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_updateState(e){this.nextRate=e,this.contexts.forEach((i,r)=>i.fill=Math.round(100*r2(e-r,1,0)))}_updateMax(){this.max>0&&(this._setupContexts(),this.update(this.rate))}_setupContexts(){this.contexts=Array.from({length:this.max},(e,i)=>({fill:0,index:i}))}}return t.\u0275fac=function(e){return new(e||t)(ge(kPe),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-rating"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,fo,5),2&e){let o;Tn(o=En())&&(i.starTemplateFromContent=o.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,i){1&e&&ke("blur",function(){return i.handleBlur()})("keydown",function(o){return i.handleKeyDown(o)})("mouseleave",function(){return i.reset()}),2&e&&(ql("tabindex",i.disabled?-1:i.tabindex),ft("aria-valuemax",i.max)("aria-valuenow",i.nextRate)("aria-valuetext",i.ariaValueText(i.nextRate,i.max))("aria-disabled",!!i.readonly||null))},inputs:{max:"max",rate:"rate",readonly:"readonly",resettable:"resettable",starTemplate:"starTemplate",tabindex:"tabindex",ariaValueText:"ariaValueText"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0}]),ei,Bs],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"visually-hidden"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(te(0,xNe,1,1,"ng-template",null,0,Xo),te(2,CNe,4,5,"ng-template",1)),2&e&&(w(2),S("ngForOf",i.contexts))},dependencies:[Un,Fu],encapsulation:2,changeDetection:0}),t})(),Az=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[DPe]}),t})();class Mz{constructor(n,e,i){this.hour=Ha(n),this.minute=Ha(e),this.second=Ha(i)}changeHour(n=1){this.updateHour((isNaN(this.hour)?0:this.hour)+n)}updateHour(n){this.hour=gs(n)?(n<0?24+n:n)%24:NaN}changeMinute(n=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+n)}updateMinute(n){gs(n)?(this.minute=n%60<0?60+n%60:n%60,this.changeHour(Math.floor(n/60))):this.minute=NaN}changeSecond(n=1){this.updateSecond((isNaN(this.second)?0:this.second)+n)}updateSecond(n){gs(n)?(this.second=n<0?60+n%60:n%60,this.changeMinute(Math.floor(n/60))):this.second=NaN}isValid(n=!0){return gs(this.hour)&&gs(this.minute)&&(!n||gs(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let TPe=(()=>{class t{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(){return function EPe(){return new APe}()},providedIn:"root"}),t})(),APe=(()=>{class t extends Oz{fromModel(e){return e&&is(e.hour)&&is(e.minute)?{hour:e.hour,minute:e.minute,second:is(e.second)?e.second:null}:null}toModel(e){return e&&is(e.hour)&&is(e.minute)?{hour:e.hour,minute:e.minute,second:is(e.second)?e.second:null}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),Iz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return i=e?new e:function MPe(t){return new OPe(t)}(wt(vc)),i},providedIn:"root"}),t})(),OPe=(()=>{class t extends Iz{constructor(e){super(),this._periods=X$(e,Vo.Standalone,Yi.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return t.\u0275fac=function(e){return new(e||t)(wt(vc))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})();const IPe=/[^0-9]/g;let NPe=(()=>{class t{constructor(e,i,r,o){this._config=e,this._ngbTimeAdapter=i,this._cd=r,this.i18n=o,this.onChange=s=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=is(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=is(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=is(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const i=this._ngbTimeAdapter.fromModel(e);this.model=i?new Mz(i.hour,i.minute,i.second):new Mz,!this.seconds&&(!i||!gs(i.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model?.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model?.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model?.changeSecond(e),this.propagateModelChange()}updateHour(e){const i=!!this.model&&this.model.hour>=12,r=Ha(e);this.model?.updateHour(this.meridian&&(i&&r<12||!i&&12===r)?r+12:r),this.propagateModelChange()}updateMinute(e){this.model?.updateMinute(Ha(e)),this.propagateModelChange()}updateSecond(e){this.model?.updateSecond(Ha(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(IPe,"")}formatHour(e){return gs(e)?Ov(this.meridian?e%12==0?12:e%12:e%24):Ov(NaN)}formatMinSec(e){return Ov(gs(e)?e:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!gs(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model?.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return t.\u0275fac=function(e){return new(e||t)(ge(TPe),ge(Oz),ge($s),ge(Iz))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},exportAs:["ngbTimepicker"],standalone:!0,features:[oo([{provide:Kl,useExisting:ji(()=>t),multi:!0}]),ei,Bs],decls:16,vars:25,consts:function(){let n,e,i,r,o,s,a,l,c,u,d,h,f,p;return n=$localize`:@@ngb.timepicker.HH:HH`,e=$localize`:@@ngb.timepicker.hours:Hours`,i=$localize`:@@ngb.timepicker.MM:MM`,r=$localize`:@@ngb.timepicker.minutes:Minutes`,o=$localize`:@@ngb.timepicker.increment-hours:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hours:Decrement hours`,a=$localize`:@@ngb.timepicker.increment-minutes:Increment minutes`,l=$localize`:@@ngb.timepicker.decrement-minutes:Decrement minutes`,c=$localize`:@@ngb.timepicker.SS:SS`,u=$localize`:@@ngb.timepicker.seconds:Seconds`,d=$localize`:@@ngb.timepicker.increment-seconds:Increment seconds`,h=$localize`:@@ngb.timepicker.decrement-seconds:Decrement seconds`,f=$localize`:@@ngb.timepicker.PM:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AM:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",i,"aria-label",r,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"visually-hidden"],o,[1,"chevron","ngb-tp-chevron","bottom"],s,a,l,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",c,"aria-label",u,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],d,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],f,p]},template:function(e,i){1&e&&(_(0,"fieldset",0)(1,"div",1)(2,"div",2),te(3,SNe,4,7,"button",3),_(4,"input",4),ke("change",function(o){return i.updateHour(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeHour(i.hourStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeHour(-i.hourStep),o.preventDefault()}),x(),te(5,kNe,4,7,"button",3),x(),_(6,"div",5),O(7,":"),x(),_(8,"div",6),te(9,DNe,4,7,"button",3),_(10,"input",7),ke("change",function(o){return i.updateMinute(o.target.value)})("blur",function(){return i.handleBlur()})("input",function(o){return i.formatInput(o.target)})("keydown.ArrowUp",function(o){return i.changeMinute(i.minuteStep),o.preventDefault()})("keydown.ArrowDown",function(o){return i.changeMinute(-i.minuteStep),o.preventDefault()}),x(),te(11,TNe,4,7,"button",3),x(),te(12,ENe,2,0,"div",8),te(13,ONe,4,9,"div",9),te(14,INe,1,0,"div",8),te(15,PNe,5,9,"div",10),x()()),2&e&&(Vn("disabled",i.disabled),S("disabled",i.disabled),w(3),S("ngIf",i.spinners),w(1),Vn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatHour(null==i.model?null:i.model.hour))("readOnly",i.readonlyInputs)("disabled",i.disabled),w(1),S("ngIf",i.spinners),w(4),S("ngIf",i.spinners),w(1),Vn("form-control-sm",i.isSmallSize)("form-control-lg",i.isLargeSize),S("value",i.formatMinSec(null==i.model?null:i.model.minute))("readOnly",i.readonlyInputs)("disabled",i.disabled),w(1),S("ngIf",i.spinners),w(1),S("ngIf",i.seconds),w(1),S("ngIf",i.seconds),w(1),S("ngIf",i.meridian),w(1),S("ngIf",i.meridian))},dependencies:[xn],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n'],encapsulation:2}),t})(),Nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[NPe]}),t})();const FPe=(t,n)=>{const{classList:e}=t;if(n)return e.add("fade"),Iv(t),e.add("show","showing"),()=>{e.remove("showing")};e.add("show")},PPe=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")});let RPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=un({type:t,selectors:[["","ngbToastHeader",""]],standalone:!0}),t})(),LPe=(()=>{class t{constructor(e,i,r,o){this.ariaLive=e,this._zone=r,this._element=o,this.contentHeaderTpl=null,this.shown=new ot,this.hidden=new ot,null==this.ariaLive&&(this.ariaLive=i.ariaLive),this.delay=i.delay,this.autohide=i.autohide,this.animation=i.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(ua(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const e=pa(this._zone,this._element.nativeElement,PPe,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){const e=pa(this._zone,this._element.nativeElement,FPe,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}return t.\u0275fac=function(e){return new(e||t)(kf("aria-live"),ge(RPe),ge(ur),ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["ngb-toast"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,jPe,7,fo),2&e){let o;Tn(o=En())&&(i.contentHeaderTpl=o.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(e,i){2&e&&(ft("aria-live",i.ariaLive),Vn("fade",i.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[ei,Bs],ngContentSelectors:Qy,decls:5,vars:1,consts:function(){let n;return n=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(e,i){1&e&&(Df(),te(0,RNe,2,1,"ng-template",null,0,Xo),te(2,LNe,3,1,"ng-template",1),_(3,"div",2),Tf(4),x()),2&e&&(w(2),S("ngIf",i.contentHeaderTpl||i.header))},dependencies:[xn,Fu],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2}),t})(),Fz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[LPe]}),t})(),BPe=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(wt(qf))},t.\u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$Pe=0,VPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(e,i){2&e&&(ql("id",i.id),Au("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Vn("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[Bs],ngContentSelectors:Qy,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Df(),xe(0,"div",0),_(1,"div",1),Tf(2),x())},encapsulation:2,changeDetection:0}),t})(),HPe=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u){this._elementRef=e,this._renderer=i,this._ngZone=a,this._document=l,this._changeDetector=c,this.shown=new ot,this.hidden=new ot,this._ngbTooltipWindowId="ngb-tooltip-"+$Pe++,this._windowRef=null,this.animation=s.animation,this.autoClose=s.autoClose,this.placement=s.placement,this.popperOptions=s.popperOptions,this.triggers=s.triggers,this.container=s.container,this.disableTooltip=s.disableTooltip,this.tooltipClass=s.tooltipClass,this.openDelay=s.openDelay,this.closeDelay=s.closeDelay,this._popupService=new tPe(VPe,r,o,i,this._ngZone,u),this._positioning=SO()}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:o=>this.popperOptions(o)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),CO(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(e=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(e).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function wPe(t,n,e,i,r,o,s=0,a=0){const l=function _Pe(t,n=yPe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(o=>o.split(":")).map(o=>{let s=n[o[0]]||o;return new vPe(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function bPe(t,n,e,i){return new Wt(r=>{const o=[],s=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return e.forEach(c=>{c.open===c.close?o.push(t.listen(n,c.open,l)):o.push(t.listen(n,c.open,s),t.listen(n,c.close,a))}),()=>{o.forEach(c=>c())}})}(t,n,l,i).pipe(function xPe(t,n,e){return i=>{let r=null;const o=i.pipe($t(l=>({open:l})),ps(l=>{const c=e();return c===l.open||r&&r.open!==c?(r&&r.open!==l.open&&(r=null),!1):(r=l,!0)}),Je());return Mt(o.pipe(ps(l=>l.open),Dz(t)),o.pipe(ps(l=>!l.open),Dz(n))).pipe(ps(l=>l===r&&(r=null,l.open!==e())),$t(l=>l.open))}}(s,a,i)).subscribe(u=>u?r():o());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(mm(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa),ge(Ca),ge(Yl),ge(BPe),ge(ur),ge(vo),ge($s),ge(jh))},t.\u0275dir=un({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[ei]}),t})(),Pz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})(),UPe=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const i=AU(this.result),r=Array.isArray(this.term)?this.term:[this.term],o=c=>this.accentSensitive?c:IU(c),s=r.map(c=>function zNe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(o(AU(c)))).filter(c=>c),a=this.accentSensitive?i:IU(i),l=s.length?a.split(new RegExp(`(${s.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=l;else{let c=0;this.parts=l.map(u=>i.substring(c,c+=u.length))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[ei,Bs],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,i){1&e&&te(0,VNe,3,2,"ng-template",0),2&e&&S("ngForOf",i.parts)},dependencies:[xn,Un],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0}),t})();new Yn("live announcer delay",{providedIn:"root",factory:function zPe(){return 100}});let Rz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[UPe]}),t})(),jz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();const GPe=[VU,HU,zU,GU,cz,uz,hz,gz,jz,kz,Tz,Ez,Az,Nz,Fz,Pz,Rz];let WPe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[GPe,VU,HU,zU,GU,cz,uz,hz,gz,jz,kz,Tz,Ez,Az,Nz,Fz,Pz,Rz]}),t})(),Lz=(()=>{class t{restrictedPages=new Map([["users",ri.USER_ROLE_ADMIN],["config",ri.USER_ROLE_DEVELOPER],["modules",ri.USER_ROLE_DEVELOPER],["apiexplorer",ri.USER_ROLE_DEVELOPER]]);static \u0275fac=function(i){return new(i||t)};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qPe(t,n){if(1&t&&(Cl(0,5),_(1,"a",31),xe(2,"img",32),_(3,"span",12),O(4),x()(),Sl()),2&t){const e=L().$implicit;S("ngbNavItem",e.navItem),w(1),S("routerLink",e.routerLink),w(1),em("src","/static/svg/",e.icon,".svg",B1),w(2),bt(e.label)}}function YPe(t,n){if(1&t&&te(0,qPe,5,4,"ng-container",24),2&t){const e=n.$implicit;S("ngIf",L().getSessionRole()<=e.minRole)}}const XPe=function(){return["/settings/mfa"]};function JPe(t,n){1&t&&(Cl(0,5),_(1,"a",31),xe(2,"img",33),_(3,"span",12),O(4,"MFA Setup"),x()(),Sl()),2&t&&(S("ngbNavItem","mfasetup"),w(1),S("routerLink",cl(2,XPe)))}function KPe(t,n){if(1&t&&(_(0,"div",34)(1,"h2",35),xe(2,"img",36),O(3,"An error has occurred!"),x(),_(4,"h6",37),O(5),x(),_(6,"p"),O(7,"Please refresh the page to try again."),x()()),2&t){const e=L();w(5),bt(e.error)}}function QPe(t,n){1&t&&(_(0,"div",38),xe(1,"img",39),x())}function ZPe(t,n){1&t&&xe(0,"router-outlet")}const e4e=function(){return["/"]},t4e=function(){return["/login"]};let n4e=(()=>{class t{route;router;segment;authService;UserRole=ri;routerSub;segmentRouterSub;loading=!0;error="";routes=[{navItem:"status",routerLink:["/status"],label:"Status",minRole:ri.USER_ROLE_READONLY,icon:"status"},{navItem:"users",routerLink:["/users"],label:"User Management",minRole:ri.USER_ROLE_ADMIN,icon:"user-management"},{navItem:"config",routerLink:["/config"],label:"Configuration",minRole:ri.USER_ROLE_DEVELOPER,icon:"configuration"},{navItem:"modules",routerLink:["/modules"],label:"Runtime Modules",minRole:ri.USER_ROLE_DEVELOPER,separator:!0,icon:"runtime-modules"},{navItem:"accounts",routerLink:["/accounts"],label:"Accounts",minRole:ri.USER_ROLE_READONLY,icon:"accounts"},{navItem:"groups",routerLink:["/groups"],label:"Groups",minRole:ri.USER_ROLE_READONLY,icon:"groups"},{navItem:"storage",routerLink:["/storage"],label:"Storage",minRole:ri.USER_ROLE_READONLY,icon:"storage"},{navItem:"leaderboards",routerLink:["/leaderboards"],label:"Leaderboards",minRole:ri.USER_ROLE_READONLY,icon:"leaderboard"},{navItem:"chat",routerLink:["/chat"],label:"Chat Messages",minRole:ri.USER_ROLE_READONLY,icon:"chat"},{navItem:"purchases",routerLink:["/purchases"],label:"Purchases",minRole:ri.USER_ROLE_READONLY,icon:""},{navItem:"subscriptions",routerLink:["/subscriptions"],label:"Subscriptions",minRole:ri.USER_ROLE_READONLY,icon:""},{navItem:"matches",routerLink:["/matches"],label:"Matches",minRole:ri.USER_ROLE_READONLY,icon:"running-matches"},{navItem:"apiexplorer",routerLink:["/apiexplorer"],label:"API Explorer",minRole:ri.USER_ROLE_DEVELOPER,icon:"api-explorer"}];constructor(e,i,r,o){this.route=e,this.router=i,this.segment=r,this.authService=o,this.loading=!1,this.routerSub=this.router.events.pipe(function C3e(t){let n=arguments.length,e=KC;fi(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],n--);let i=null;n>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return n>=3&&(r=arguments[2]),function(s){return s.lift(new S3e(t,i,r,e))}}(2e3)).subscribe(s=>{if(0===s.length)return;const a=s[s.length-1];a instanceof gC&&(this.loading=!0),a instanceof Gh&&(this.loading=!1),a instanceof ky&&(this.loading=!1),a instanceof yC&&(this.loading=!1,this.error=a.error)}),this.segmentRouterSub=i.events.pipe(QC((s,a)=>!(a instanceof Gh)||s.url===a.url)).subscribe(s=>{s&&r.page(s.url)})}ngOnInit(){this.route.data.subscribe(e=>{this.error=e.error?e.error:""})}getSessionRole(){return this.authService.sessionRole}getUsername(){return this.authService.username}isMfaEnabled(){return!this.authService.session?.mfa_code}logout(){this.authService.logout().subscribe(()=>{this.router.navigate(["/login"])})}ngOnDestroy(){this.segmentRouterSub.unsubscribe(),this.routerSub.unsubscribe()}onSidebarNavChange(e){}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(zC),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:50,vars:12,consts:[[1,"container-fluid"],[1,"row"],["ngbNav","",1,"col-md-2","d-none","d-md-block","sidebar","position-fixed","px-0",3,"navChange"],["sidenav","ngbNav"],[1,"flex-column","text-uppercase"],[3,"ngbNavItem"],[3,"routerLink"],["src","/static/svg/logo.svg","alt","","width","175","height","",1,"logo-full","mx-3","mt-3","mb-1"],["src","/static/svg/logo-icon.svg","alt","","width","32","height","",1,"logo-icon","mx-3","mt-3","mb-1"],["ngFor","",3,"ngForOf"],["href","http://heroiclabs.com/cloud?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Heroic%20Cloud%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/heroiccloud.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"link-text"],["href","https://heroiclabs.com/hiro/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Hiro%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/hiro.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/satori/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Satori%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/satori.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/docs/nakama/getting-started/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Documentation%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/docs.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://forum.heroiclabs.com","target","_blank",1,"nav-link"],["src","/static/svg/forum.svg","alt","","width","24","height","",1,"link-icon","mr-1"],["href","https://heroiclabs.com/blog/?utm_source=NOSS%20Secure&utm_medium=Banner&utm_campaign=NOSS%20Blog%20Secure","target","_blank",1,"nav-link"],["src","/static/svg/blog.svg","alt","","width","24","height","",1,"link-icon","mr-1"],[1,"logged-in-as","nav-link","disabled"],[3,"ngbNavItem",4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink","click"],["src","/static/svg/log-out.svg","alt","","width","24","height","",1,"mr-1"],["role","main",1,"ml-sm-auto","col-md-10","col-lg-10","main-extended","px-4","py-4"],["class","mx-auto",4,"ngIf"],["class","loading mx-auto",4,"ngIf"],[4,"ngIf"],["ngbNavLink","","routerLinkActive","active",3,"routerLink"],["alt","","width","24","height","",1,"link-icon","mr-1",3,"src"],["src","/static/svg/configuration.svg","alt","","width","24","height","",1,"mr-1"],[1,"mx-auto"],[1,"pb-2"],["src","/static/svg/red-triangle.svg",1,"mr-2",2,"width","1em","height","1em"],[1,"mr-2","d-inline","font-weight-bold"],[1,"loading","mx-auto"],["src","/static/spinner.svg",1,"p-1","loading"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1)(2,"nav",2,3),ke("navChange",function(s){return r.onSidebarNavChange(s)}),_(4,"div",4),Cl(5,5),_(6,"a",6),xe(7,"img",7)(8,"img",8),x(),Sl(),xe(9,"hr"),te(10,YPe,1,1,"ng-template",9),xe(11,"hr"),_(12,"a",10),xe(13,"img",11),_(14,"span",12),O(15,"Heroic Cloud"),x()(),_(16,"a",13),xe(17,"img",14),_(18,"span",12),O(19,"Hiro"),x()(),_(20,"a",15),xe(21,"img",16),_(22,"span",12),O(23,"Satori"),x()(),xe(24,"hr"),_(25,"a",17),xe(26,"img",18),_(27,"span",12),O(28,"Documentation"),x()(),_(29,"a",19),xe(30,"img",20),_(31,"span",12),O(32,"Forum"),x()(),_(33,"a",21),xe(34,"img",22),_(35,"span",12),O(36,"Heroic Labs Blog"),x()(),xe(37,"hr"),_(38,"div",23),O(39),x(),te(40,JPe,5,3,"ng-container",24),Cl(41,5),_(42,"a",25),ke("click",function(){return r.logout()}),xe(43,"img",26),_(44,"span",12),O(45,"Logout"),x()(),Sl(),x()(),_(46,"main",27),te(47,KPe,8,1,"div",28),te(48,QPe,2,0,"div",29),te(49,ZPe,1,0,"router-outlet",30),x()()()),2&i&&(w(5),S("ngbNavItem","logo"),w(1),S("routerLink",cl(10,e4e)),w(4),S("ngForOf",r.routes),w(29),bn("Logged in as: ",r.getUsername(),""),w(1),S("ngIf",!r.isMfaEnabled()),w(1),S("ngbNavItem","logout"),w(1),S("routerLink",cl(11,t4e)),w(5),S("ngIf",r.error),w(1),S("ngIf",!r.error&&r.loading),w(1),S("ngIf",!r.error&&!r.loading))},dependencies:[Vf,Ru,Ny,Un,xn,zd,Xh,r_,Kf],styles:[".nav-link.no-active[_ngcontent-%COMP%]{background-color:transparent!important}.nav-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-color:#708090}.sidebar[_ngcontent-%COMP%]{background-color:#333564;position:fixed;top:0;bottom:0;left:0;z-index:100;font-family:Montserrat,sans-serif;overflow-y:auto}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#fff;font-size:12px;letter-spacing:.1em;opacity:.6;font-weight:500!important}.sidebar[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{opacity:1;background-color:#e1e1e11a}.sidebar[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-color:#fff;opacity:.2}.active[_ngcontent-%COMP%]{opacity:1}.nav-link.active[_ngcontent-%COMP%]{opacity:1;color:#a69bff}.navbar-collapse[_ngcontent-%COMP%]{letter-spacing:0;text-transform:capitalize}.logo-icon[_ngcontent-%COMP%]{display:none}.link-text[_ngcontent-%COMP%]{padding-left:4px}@media screen and (max-width: 1200px){.main-extended[_ngcontent-%COMP%]{width:94.333333%!important;max-width:94.333333%!important;flex:0 0 94.333333%!important}.sidebar[_ngcontent-%COMP%]{min-width:65px!important;width:5.66%!important;max-width:5.66%!important}.sidebar[_ngcontent-%COMP%] .logo-full[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%] .logo-icon[_ngcontent-%COMP%]{display:block}.sidebar[_ngcontent-%COMP%] .link-icon[_ngcontent-%COMP%]{width:30px;color:#fff}.sidebar[_ngcontent-%COMP%] .link-text[_ngcontent-%COMP%], .sidebar[_ngcontent-%COMP%] .logged-in-as[_ngcontent-%COMP%]{display:none}}"]})}return t})(),i4e=(()=>{class t{authService;router;globals;constructor(e,i,r){this.authService=e,this.router=i,this.globals=r}canActivate(e,i){return!0}canActivateChild(e,i){const r=this.globals.restrictedPages.get(e.url[0].path);return!(null!==r&&r{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ca.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class l4e extends a4e{}"function"==typeof SuppressedError&&SuppressedError;class N4e{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new F4e(n,this.dueTime,this.scheduler))}}class F4e extends I{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P4e,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function P4e(t){t.debouncedNext()}function R4e(){}function FO(t){return null==t?R4e:function(){return this.querySelector(t)}}function L4e(){return[]}function Hz(t){return null==t?L4e:function(){return this.querySelectorAll(t)}}function Uz(t){return function(){return this.matches(t)}}function zz(t){return new Array(t.length)}function g2(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}g2.prototype={constructor:g2,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Gz="$";function U4e(t,n,e,i,r,o){for(var a,s=0,l=n.length,c=o.length;sn?1:t>=n?0:NaN}var PO="http://www.w3.org/1999/xhtml";const Wz={svg:"http://www.w3.org/2000/svg",xhtml:PO,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function v2(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Wz.hasOwnProperty(n)?{space:Wz[n],local:t}:t}function rRe(t){return function(){this.removeAttribute(t)}}function oRe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function sRe(t,n){return function(){this.setAttribute(t,n)}}function aRe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function lRe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function cRe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function qz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function dRe(t){return function(){this.style.removeProperty(t)}}function hRe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function fRe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function Rv(t,n){return t.style.getPropertyValue(n)||qz(t).getComputedStyle(t,null).getPropertyValue(n)}function mRe(t){return function(){delete this[t]}}function gRe(t,n){return function(){this[t]=n}}function vRe(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Yz(t){return t.trim().split(/^|\s+/)}function RO(t){return t.classList||new Xz(t)}function Xz(t){this._node=t,this._names=Yz(t.getAttribute("class")||"")}function Jz(t,n){for(var e=RO(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Zz={},Ur=null;function qRe(t,n,e){return t=eG(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function eG(t,n,e){return function(i){var r=Ur;Ur=i;try{t.call(this,this.__data__,n,e)}finally{Ur=r}}}function XRe(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=b&&(b=y+1);!(D=g[b])&&++b=0;)(s=i[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function J4e(t){function n(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}t||(t=K4e);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?dRe:"function"==typeof n?fRe:hRe)(t,n,e??"")):Rv(this.node(),t)},property:function yRe(t,n){return arguments.length>1?this.each((null==n?mRe:"function"==typeof n?vRe:gRe)(t,n)):this.node()[t]},classed:function wRe(t,n){var e=Yz(t+"");if(arguments.length<2){for(var i=RO(this.node()),r=-1,o=e.length;++r=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}(t+""),o=i.length;if(!(arguments.length<2)){for(a=n?JRe:XRe,null==e&&(e=!1),r=0;r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}(t+"",e),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?b2(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?b2(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=lje.exec(t))?new Dc(n[1],n[2],n[3],1):(n=cje.exec(t))?new Dc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=uje.exec(t))?b2(n[1],n[2],n[3],n[4]):(n=dje.exec(t))?b2(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=hje.exec(t))?pG(n[1],n[2]/100,n[3]/100,1):(n=fje.exec(t))?pG(n[1],n[2]/100,n[3]/100,n[4]):lG.hasOwnProperty(t)?dG(lG[t]):"transparent"===t?new Dc(NaN,NaN,NaN,0):null}function dG(t){return new Dc(t>>16&255,t>>8&255,255&t,1)}function b2(t,n,e,i){return i<=0&&(t=n=e=NaN),new Dc(t,n,e,i)}function u_(t,n,e,i){return 1===arguments.length?function mje(t){return t instanceof a_||(t=Sm(t)),t?new Dc((t=t.rgb()).r,t.g,t.b,t.opacity):new Dc}(t):new Dc(t,n,e,i??1)}function Dc(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function hG(){return"#"+BO(this.r)+BO(this.g)+BO(this.b)}function fG(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function BO(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function pG(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Wd(t,n,e,i)}function mG(t){if(t instanceof Wd)return new Wd(t.h,t.s,t.l,t.opacity);if(t instanceof a_||(t=Sm(t)),!t)return new Wd;if(t instanceof Wd)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=n===o?(e-i)/a+6*(e0&&l<1?0:s,new Wd(s,a,l,t.opacity)}function Wd(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function $O(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function gG(t,n,e,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*i+s*r)/6}function VO(t){return function(){return t}}function yG(t,n){var e=n-t;return e?function vG(t,n){return function(e){return t+e*n}}(t,e):VO(isNaN(t)?n:t)}LO(a_,Sm,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:cG,formatHex:cG,formatHsl:function pje(){return mG(this).formatHsl()},formatRgb:uG,toString:uG}),LO(Dc,u_,aG(a_,{brighter:function(t){return t=null==t?_2:Math.pow(_2,t),new Dc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Dc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hG,formatHex:hG,formatRgb:fG,toString:fG})),LO(Wd,function gje(t,n,e,i){return 1===arguments.length?mG(t):new Wd(t,n,e,i??1)},aG(a_,{brighter:function(t){return t=null==t?_2:Math.pow(_2,t),new Wd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Wd(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new Dc($O(t>=240?t-240:t+120,r,i),$O(t,r,i),$O(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const x2=function t(n){var e=function bje(t){return 1==(t=+t)?yG:function(n,e){return e-n?function _je(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):VO(isNaN(n)?e:n)}}(n);function i(r,o){var s=e((r=u_(r)).r,(o=u_(o)).r),a=e(r.g,o.g),l=e(r.b,o.b),c=yG(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function _G(t){return function(n){var s,a,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(s=0;s=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return gG((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Uu(i,r)})),e=UO.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--Lv}()}finally{Lv=0,function Ije(){for(var t,e,n=w2,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:w2=e);f_=t,zO(i)}(),Dm=0}}function Oje(){var t=p_.now(),n=t-C2;n>SG&&(S2-=n,C2=t)}function zO(t){Lv||(d_&&(d_=clearTimeout(d_)),t-Dm>24?(t<1/0&&(d_=setTimeout(TG,t-p_.now()-S2)),h_&&(h_=clearInterval(h_))):(h_||(C2=p_.now(),h_=setInterval(Oje,SG)),Lv=1,kG(TG)))}function EG(t,n,e){var i=new D2;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}D2.prototype=DG.prototype={constructor:D2,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?k2():+e)+(null==n?0:+n),!this._next&&f_!==this&&(f_?f_._next=this:w2=this,f_=this),this._call=t,this._time=e,zO()},stop:function(){this._call&&(this._call=null,this._time=1/0,zO())}};var Nje=sG("start","end","cancel","interrupt"),Fje=[],AG=0,MG=1,GO=2,T2=3,OG=4,WO=5,E2=6;function A2(t,n,e,i,r,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function Pje(t,n,e){var r,i=t.__transition;function s(c){var u,d,h,f;if(e.state!==MG)return l();for(u in i)if((f=i[u]).name===e.name){if(f.state===T2)return EG(s);f.state===OG?(f.state=E2,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uAG)throw new Error("too late; already scheduled");return e}function Jh(t,n){var e=zu(t,n);if(e.state>T2)throw new Error("too late; already running");return e}function zu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function YO(t,n){var i,r,s,e=t.__transition,o=!0;if(e){for(s in n=null==n?null:n+"",e)(i=e[s]).name===n?(r=i.state>GO&&i.state180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(r(d)+"rotate(",null,i)-2,x:Uu(c,u)})):u&&d.push(r(d)+"rotate("+u+i)}(c.rotate,u.rotate,d,h),function a(c,u,d,h){c!==u?h.push({i:d.push(r(d)+"skewX(",null,i)-2,x:Uu(c,u)}):u&&d.push(r(d)+"skewX("+u+i)}(c.skewX,u.skewX,d,h),function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(r(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Uu(c,d)},{i:m-2,x:Uu(u,h)})}else(1!==d||1!==h)&&f.push(r(f)+"scale("+d+","+h+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var g,p=-1,m=h.length;++p=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?qO:Jh;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(n,e),s.on=r}}(e,t,n))},attr:function Jje(t,n){var e=v2(t),i="transform"===e?$je:RG;return this.attrTween(t,"function"==typeof n?(e.local?Xje:Yje)(e,i,KO(this,"attr."+t,n)):null==n?(e.local?Gje:zje)(e):(e.local?qje:Wje)(e,i,n))},attrTween:function tLe(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=v2(t);return this.tween(e,(i.local?Zje:eLe)(i,n))},style:function kLe(t,n,e){var i="transform"==(t+="")?Bje:RG;return null==n?this.styleTween(t,function xLe(t,n){var e,i,r;return function(){var o=Rv(this,t),s=(this.style.removeProperty(t),Rv(this,t));return o===s?null:o===e&&s===i?r:r=n(e=o,i=s)}}(t,i)).on("end.style."+t,jG(t)):"function"==typeof n?this.styleTween(t,function CLe(t,n,e){var i,r,o;return function(){var s=Rv(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=Rv(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=n(i=s,a))}}(t,i,KO(this,"style."+t,n))).each(function SLe(t,n){var e,i,r,a,o="style."+n,s="end."+o;return function(){var l=Jh(this,t),c=l.on,u=null==l.value[o]?a||(a=jG(n)):void 0;(c!==e||r!==u)&&(i=(e=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function wLe(t,n,e){var i,o,r=e+"";return function(){var s=Rv(this,t);return s===r?null:s===i?o:o=n(i=s,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function ELe(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,function TLe(t,n,e){var i,r;function o(){var s=n.apply(this,arguments);return s!==r&&(i=(r=s)&&function DLe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}(t,s,e)),i}return o._value=n,o}(t,n,e??""))},text:function OLe(t){return this.tween("text","function"==typeof t?function MLe(t){return function(){var n=t(this);this.textContent=n??""}}(KO(this,"text",t)):function ALe(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function FLe(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function NLe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function ILe(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return i._value=t,i}(t))},remove:function gLe(){return this.on("end.remove",function mLe(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function Uje(t,n){var e=this._id;if(t+="",arguments.length<2){for(var s,i=zu(this.node(),e).tween,r=0,o=i.length;r0&&(j=U-N),C<0?pe=A-F:C>0&&(X=oe-F),y=tI,$.attr("cursor",Qh.selection),Re());break;default:return}eI()},!0).on("keyup.brush",function Ct(){switch(Ur.keyCode){case 16:V&&(ce=ve=V=!1,Re());break;case 18:y===Vv&&(b<0?W=J:b>0&&(j=U),C<0?pe=A:C>0&&(X=oe),y=$v,Re());break;case 32:y===tI&&(Ur.altKey?(b&&(W=J-N*b,j=U+N*b),C&&(pe=A-F*C,X=oe+F*C),y=Vv):(b<0?W=J:b>0&&(j=U),C<0?pe=A:C>0&&(X=oe),y=$v),$.attr("cursor",Qh[v]),Re());break;default:return}eI()},!0),function oje(t){var n=t.document.documentElement,e=Sa(t).on("dragstart.drag",jO,!0);"onselectstart"in n?e.on("selectstart.drag",jO,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Ur.view)}BG(),YO(g),c.call(g),We.start()}function le(){var Ot=je(g);V&&!ce&&!ve&&(Math.abs(Ot[0]-et[0])>Math.abs(Ot[1]-et[1])?ve=!0:ce=!0),et=Ot,q=!0,eI(),Re()}function Re(){var Ot;switch(N=et[0]-Te[0],F=et[1]-Te[1],y){case tI:case $G:b&&(N=Math.max(z-j,Math.min(P-W,N)),U=j+N,J=W+N),C&&(F=Math.max(G-X,Math.min(H-pe,F)),oe=X+F,A=pe+F);break;case $v:b<0?(N=Math.max(z-j,Math.min(P-j,N)),U=j+N,J=W):b>0&&(N=Math.max(z-W,Math.min(P-W,N)),U=j,J=W+N),C<0?(F=Math.max(G-X,Math.min(H-X,F)),oe=X+F,A=pe):C>0&&(F=Math.max(G-pe,Math.min(H-pe,F)),oe=X,A=pe+F);break;case Vv:b&&(U=Math.max(z,Math.min(P,j-N*b)),J=Math.max(z,Math.min(P,W+N*b))),C&&(oe=Math.max(G,Math.min(H,X-F*C)),A=Math.max(G,Math.min(H,pe+F*C)))}Jn?1:t>=n?0:NaN}function sI(t){let n=t,e=t;function i(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)<0?l=u+1:c=u}return l}return 1===t.length&&(n=(s,a)=>t(s)-a,e=function ZLe(t){return(n,e)=>oI(t(n),e)}(t)),{left:i,center:function o(s,a,l,c){null==l&&(l=0),null==c&&(c=s.length);const u=i(s,a,l,c-1);return u>l&&n(s[u-1],a)>-n(s[u],a)?u-1:u},right:function r(s,a,l,c){for(null==l&&(l=0),null==c&&(c=s.length);l>>1;e(s[u],a)>0?c=u:l=u+1}return l}}}var aI=Math.sqrt(50),lI=Math.sqrt(10),cI=Math.sqrt(2);function zG(t,n,e){var i=(n-t)/Math.max(0,e),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=aI?10:o>=lI?5:o>=cI?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=aI?10:o>=lI?5:o>=cI?2:1)}function uI(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=aI?r*=10:o>=lI?r*=5:o>=cI&&(r*=2),n0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return fI.setTime(+o),pI.setTime(+s),t(fI),t(pI),Math.floor(e(fI,pI))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var N2=ka(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});N2.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ka(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):N2:null};const t5e=N2;var WG=ka(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Zh)},function(t,n){return(n-t)/Zh},function(t){return t.getUTCSeconds()});const v_=WG;var qG=ka(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zh)},function(t,n){t.setTime(+t+n*Zc)},function(t,n){return(n-t)/Zc},function(t){return t.getMinutes()});const YG=qG;var XG=ka(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zh-t.getMinutes()*Zc)},function(t,n){t.setTime(+t+n*ef)},function(t,n){return(n-t)/ef},function(t){return t.getHours()});const JG=XG;var KG=ka(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zc)/Tm,t=>t.getDate()-1);const QG=KG;function Em(t){return ka(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Zc)/dI})}var mI=Em(0),ZG=(Em(1),Em(2),Em(3),Em(4),Em(5),Em(6),ka(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const eW=ZG;var gI=ka(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});gI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ka(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const tW=gI;var nW=ka(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Zc)},function(t,n){return(n-t)/Zc},function(t){return t.getUTCMinutes()});const l5e=nW;var iW=ka(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*ef)},function(t,n){return(n-t)/ef},function(t){return t.getUTCHours()});const c5e=iW;var rW=ka(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Tm},function(t){return t.getUTCDate()-1});const u5e=rW;function Am(t){return ka(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/dI})}var oW=Am(0),sW=(Am(1),Am(2),Am(3),Am(4),Am(5),Am(6),ka(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const v5e=sW;var vI=ka(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});vI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ka(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const y5e=vI;function aW(t,n,e,i,r,o){const s=[[v_,1,Zh],[v_,5,5*Zh],[v_,15,15*Zh],[v_,30,30*Zh],[o,1,Zc],[o,5,5*Zc],[o,15,15*Zc],[o,30,30*Zc],[r,1,ef],[r,3,3*ef],[r,6,6*ef],[r,12,12*ef],[i,1,Tm],[i,2,2*Tm],[e,1,dI],[n,1,GG],[n,3,3*GG],[t,1,hI]];function l(c,u,d){const h=Math.abs(u-c)/d,f=sI(([,,g])=>g).right(s,h);if(f===s.length)return t.every(uI(c/hI,u/hI,d));if(0===f)return t5e.every(Math.max(uI(c,u,d),1));const[p,m]=s[h/s[f-1][2]0))return l;do{l.push(c=new Date(+o)),n(o,a),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,a){if(s>=s)if(a<0)for(;++a<=0;)for(;n(s,-1),!o(s););else for(;--a>=0;)for(;n(s,1),!o(s););})},e&&(r.count=function(o,s){return yI.setTime(+o),_I.setTime(+s),t(yI),t(_I),Math.floor(e(yI,_I))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(s){return i(s)%o==0}:function(s){return r.count(0,s)%o==0}):r:null}),r}var lW=6e4,uW=6048e5;function Mm(t){return tf(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/uW})}var dW=Mm(0),F2=Mm(1),Hv=(Mm(2),Mm(3),Mm(4)),hW=(Mm(5),Mm(6),tf(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const fW=hW;function Om(t){return tf(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*lW)/uW})}var pW=Om(0),P2=Om(1),Uv=(Om(2),Om(3),Om(4)),mW=(Om(5),Om(6),tf(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*lW)/864e5},function(t){return t.getDate()-1}));const gW=mW;var bI=tf(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});bI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tf(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const y_=bI;var xI=tf(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});xI.every=function(t){return isFinite(t=Math.floor(t))&&t>0?tf(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const __=xI;function wI(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function CI(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function b_(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var zv,OW,vW={"-":"",_:" ",0:"0"},Da=/^\s*\d+/,M5e=/^%/,O5e=/[\\^$*+?|[\]().{}]/g;function Yr(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function L5e(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function B5e(t,n,e){var i=Da.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function $5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function bW(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function V5e(t,n,e){var i=Da.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function xW(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function H5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function U5e(t,n,e){var i=Da.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function z5e(t,n,e){var i=Da.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function G5e(t,n,e){var i=Da.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function W5e(t,n,e){var i=M5e.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function q5e(t,n,e){var i=Da.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Y5e(t,n,e){var i=Da.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function wW(t,n){return Yr(t.getDate(),n,2)}function X5e(t,n){return Yr(t.getHours(),n,2)}function J5e(t,n){return Yr(t.getHours()%12||12,n,2)}function K5e(t,n){return Yr(1+gW.count(y_(t),t),n,3)}function CW(t,n){return Yr(t.getMilliseconds(),n,3)}function Q5e(t,n){return CW(t,n)+"000"}function Z5e(t,n){return Yr(t.getMonth()+1,n,2)}function e8e(t,n){return Yr(t.getMinutes(),n,2)}function t8e(t,n){return Yr(t.getSeconds(),n,2)}function n8e(t){var n=t.getDay();return 0===n?7:n}function i8e(t,n){return Yr(pW.count(y_(t)-1,t),n,2)}function SW(t){var n=t.getDay();return n>=4||0===n?Uv(t):Uv.ceil(t)}function r8e(t,n){return t=SW(t),Yr(Uv.count(y_(t),t)+(4===y_(t).getDay()),n,2)}function o8e(t){return t.getDay()}function s8e(t,n){return Yr(P2.count(y_(t)-1,t),n,2)}function a8e(t,n){return Yr(t.getFullYear()%100,n,2)}function l8e(t,n){return Yr((t=SW(t)).getFullYear()%100,n,2)}function c8e(t,n){return Yr(t.getFullYear()%1e4,n,4)}function u8e(t,n){var e=t.getDay();return Yr((t=e>=4||0===e?Uv(t):Uv.ceil(t)).getFullYear()%1e4,n,4)}function d8e(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Yr(n/60|0,"0",2)+Yr(n%60,"0",2)}function kW(t,n){return Yr(t.getUTCDate(),n,2)}function h8e(t,n){return Yr(t.getUTCHours(),n,2)}function f8e(t,n){return Yr(t.getUTCHours()%12||12,n,2)}function p8e(t,n){return Yr(1+fW.count(__(t),t),n,3)}function DW(t,n){return Yr(t.getUTCMilliseconds(),n,3)}function m8e(t,n){return DW(t,n)+"000"}function g8e(t,n){return Yr(t.getUTCMonth()+1,n,2)}function v8e(t,n){return Yr(t.getUTCMinutes(),n,2)}function y8e(t,n){return Yr(t.getUTCSeconds(),n,2)}function _8e(t){var n=t.getUTCDay();return 0===n?7:n}function b8e(t,n){return Yr(dW.count(__(t)-1,t),n,2)}function TW(t){var n=t.getUTCDay();return n>=4||0===n?Hv(t):Hv.ceil(t)}function x8e(t,n){return t=TW(t),Yr(Hv.count(__(t),t)+(4===__(t).getUTCDay()),n,2)}function w8e(t){return t.getUTCDay()}function C8e(t,n){return Yr(F2.count(__(t)-1,t),n,2)}function S8e(t,n){return Yr(t.getUTCFullYear()%100,n,2)}function k8e(t,n){return Yr((t=TW(t)).getUTCFullYear()%100,n,2)}function D8e(t,n){return Yr(t.getUTCFullYear()%1e4,n,4)}function T8e(t,n){var e=t.getUTCDay();return Yr((t=e>=4||0===e?Hv(t):Hv.ceil(t)).getUTCFullYear()%1e4,n,4)}function E8e(){return"+0000"}function EW(){return"%"}function AW(t){return+t}function MW(t){return Math.floor(+t/1e3)}function IW(t){return null===t?NaN:+t}!function I8e(t){zv=function A5e(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=x_(r),u=w_(r),d=x_(o),h=w_(o),f=x_(s),p=w_(s),m=x_(a),g=w_(a),v=x_(l),y=w_(l),b={a:function H(We){return s[We.getDay()]},A:function pe(We){return o[We.getDay()]},b:function A(We){return l[We.getMonth()]},B:function N(We){return a[We.getMonth()]},c:null,d:wW,e:wW,f:Q5e,g:l8e,G:u8e,H:X5e,I:J5e,j:K5e,L:CW,m:Z5e,M:e8e,p:function F(We){return r[+(We.getHours()>=12)]},q:function q(We){return 1+~~(We.getMonth()/3)},Q:AW,s:MW,S:t8e,u:n8e,U:i8e,V:r8e,w:o8e,W:s8e,x:null,X:null,y:a8e,Y:c8e,Z:d8e,"%":EW},C={a:function V(We){return s[We.getUTCDay()]},A:function ce(We){return o[We.getUTCDay()]},b:function ve(We){return l[We.getUTCMonth()]},B:function je(We){return a[We.getUTCMonth()]},c:null,d:kW,e:kW,f:m8e,g:k8e,G:T8e,H:h8e,I:f8e,j:p8e,L:DW,m:g8e,M:v8e,p:function Te(We){return r[+(We.getUTCHours()>=12)]},q:function et(We){return 1+~~(We.getUTCMonth()/3)},Q:AW,s:MW,S:y8e,u:_8e,U:b8e,V:x8e,w:w8e,W:C8e,x:null,X:null,y:S8e,Y:D8e,Z:E8e,"%":EW},D={a:function U(We,st,$){var ae=f.exec(st.slice($));return ae?(We.w=p[ae[0].toLowerCase()],$+ae[0].length):-1},A:function G(We,st,$){var ae=d.exec(st.slice($));return ae?(We.w=h[ae[0].toLowerCase()],$+ae[0].length):-1},b:function X(We,st,$){var ae=v.exec(st.slice($));return ae?(We.m=y[ae[0].toLowerCase()],$+ae[0].length):-1},B:function oe(We,st,$){var ae=m.exec(st.slice($));return ae?(We.m=g[ae[0].toLowerCase()],$+ae[0].length):-1},c:function P(We,st,$){return z(We,n,st,$)},d:bW,e:bW,f:G5e,g:_W,G:yW,H:xW,I:xW,j:V5e,L:z5e,m:$5e,M:H5e,p:function j(We,st,$){var ae=c.exec(st.slice($));return ae?(We.p=u[ae[0].toLowerCase()],$+ae[0].length):-1},q:B5e,Q:q5e,s:Y5e,S:U5e,u:F5e,U:P5e,V:R5e,w:N5e,W:j5e,x:function W(We,st,$){return z(We,e,st,$)},X:function J(We,st,$){return z(We,i,st,$)},y:_W,Y:yW,Z:L5e,"%":W5e};function E(We,st){return function($){var Ve,Ct,Ot,ae=[],le=-1,Re=0,Ze=We.length;for($ instanceof Date||($=new Date(+$));++le53)return null;"w"in ae||(ae.w=1),"Z"in ae?(Ze=(Re=CI(b_(ae.y,0,1))).getUTCDay(),Re=Ze>4||0===Ze?F2.ceil(Re):F2(Re),Re=fW.offset(Re,7*(ae.V-1)),ae.y=Re.getUTCFullYear(),ae.m=Re.getUTCMonth(),ae.d=Re.getUTCDate()+(ae.w+6)%7):(Ze=(Re=wI(b_(ae.y,0,1))).getDay(),Re=Ze>4||0===Ze?P2.ceil(Re):P2(Re),Re=gW.offset(Re,7*(ae.V-1)),ae.y=Re.getFullYear(),ae.m=Re.getMonth(),ae.d=Re.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),Ze="Z"in ae?CI(b_(ae.y,0,1)).getUTCDay():wI(b_(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+7*ae.W-(Ze+5)%7:ae.w+7*ae.U-(Ze+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,CI(ae)):wI(ae)}}function z(We,st,$,ae){for(var Ve,Ct,le=0,Re=st.length,Ze=$.length;le=Ze)return-1;if(37===(Ve=st.charCodeAt(le++))){if(Ve=st.charAt(le++),!(Ct=D[Ve in vW?st.charAt(le++):Ve])||(ae=Ct(We,$,ae))<0)return-1}else if(Ve!=$.charCodeAt(ae++))return-1}return ae}return b.x=E(e,b),b.X=E(i,b),b.c=E(n,b),C.x=E(e,C),C.X=E(i,C),C.c=E(n,C),{format:function(We){var st=E(We+="",b);return st.toString=function(){return We},st},parse:function(We){var st=B(We+="",!1);return st.toString=function(){return We},st},utcFormat:function(We){var st=E(We+="",C);return st.toString=function(){return We},st},utcParse:function(We){var st=B(We+="",!0);return st.toString=function(){return We},st}}}(t),OW=zv.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const N8e=sI(oI).right,FW=(sI(IW),N8e);function F8e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function R8e(t){return+t}var PW=[0,1];function Gv(t){return t}function SI(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function P8e(t){return function(){return t}}(isNaN(n)?NaN:.5)}function L8e(t,n,e){var i=t[0],r=t[1],o=n[0],s=n[1];return rn&&(e=t,t=n,n=e),function(i){return Math.max(t,Math.min(n,i))}}(t[0],t[h-1])),a=h>2?B8e:L8e,l=c=null,d}function d(h){return null==h||isNaN(h=+h)?o:(l||(l=a(t.map(i),n,e)))(i(s(h)))}return d.invert=function(h){return s(r((c||(c=a(n,t.map(i),Uu)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,R8e),u()):t.slice()},d.range=function(h){return arguments.length?(n=Array.from(h),u()):n.slice()},d.rangeRound=function(h){return n=Array.from(h),e=F8e,u()},d.clamp=function(h){return arguments.length?(s=!!h||Gv,u()):s!==Gv},d.interpolate=function(h){return arguments.length?(e=h,u()):e},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,f){return i=h,r=f,u()}}()(Gv,Gv)}function C_(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function H8e(t){return new Date(t)}function U8e(t){return t instanceof Date?+t:+new Date(+t)}function LW(t,n,e,i,r,o,s,a,l,c){var u=jW(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),C=c("%Y");function D(E){return(l(E)=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function R2(t){if(!(n=z8e.exec(t)))throw new Error("invalid format: "+t);var n;return new kI({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function kI(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function j2(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function Wv(t){return(t=j2(Math.abs(t)))?t[1]:NaN}function $W(t,n){var e=j2(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}R2.prototype=kI.prototype,kI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const VW={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function G8e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return $W(100*t,n)},r:$W,s:function J8e(t,n){var e=j2(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(BW=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+j2(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function HW(t){return t}var L2,DI,GW,UW=Array.prototype.map,zW=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function n6e(t){var n=t.domain;return t.ticks=function(e){var i=n();return function e5e(t,n,e){var i,o,s,a,r=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((i=n0){let l=Math.round(t/a),c=Math.round(n/a);for(l*an&&--c,s=new Array(o=c-l+1);++rn&&--c,s=new Array(o=c-l+1);++r0;){if((c=zG(s,a,e))===l)return i[r]=s,i[o]=a,n(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c}l=c}return t},t}function Co(){var t=jW();return t.copy=function(){return RW(t,Co())},C_.apply(t,arguments),n6e(t)}function WW(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;for(var i=-1,r=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(r);++i0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}}(UW.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?HW:function Y8e(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(UW.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(d){var h=(d=R2(d)).fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,b=d.precision,C=d.trim,D=d.type;"n"===D?(y=!0,D="g"):VW[D]||(void 0===b&&(b=12),C=!0,D="g"),(g||"0"===h&&"="===f)&&(g=!0,h="0",f="=");var E="$"===m?e:"#"===m&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",B="$"===m?i:/[%p]/.test(D)?s:"",z=VW[D],j=/[defgprs%]/.test(D);function U(G){var P,W,J,X=E,oe=B;if("c"===D)oe=z(G)+oe,G="";else{var H=(G=+G)<0||1/G<0;if(G=isNaN(G)?l:z(Math.abs(G),b),C&&(G=function X8e(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(G)),H&&0==+G&&"+"!==p&&(H=!1),X=(H?"("===p?p:a:"-"===p||"("===p?"":p)+X,oe=("s"===D?zW[8+BW/3]:"")+oe+(H&&"("===p?")":""),j)for(P=-1,W=G.length;++P(J=G.charCodeAt(P))||J>57){oe=(46===J?r+G.slice(P+1):G.slice(P))+oe,G=G.slice(0,P);break}}y&&!g&&(G=n(G,1/0));var pe=X.length+G.length+oe.length,A=pe>1)+X+G+oe+A.slice(pe);break;default:G=A+X+G+oe}return o(G)}return b=void 0===b?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),U.toString=function(){return d+""},U}return{format:c,formatPrefix:function u(d,h){var f=c(((d=R2(d)).type="f",d)),p=3*Math.max(-8,Math.min(8,Math.floor(Wv(h)/3))),m=Math.pow(10,-p),g=zW[8+p/3];return function(v){return f(m*v)+g}}}}(t),DI=L2.format,GW=L2.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const qW=Symbol("implicit");function TI(){var t=new Map,n=[],e=[],i=qW;function r(o){var s=o+"",a=t.get(s);if(!a){if(i!==qW)return i;t.set(s,a=n.push(o))}return e[(a-1)%e.length]}return r.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Map;for(const s of o){const a=s+"";t.has(a)||t.set(a,n.push(s))}return r},r.range=function(o){return arguments.length?(e=Array.from(o),r):e.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return TI(n,e).unknown(i)},C_.apply(r,arguments),r}function Ua(){var o,s,t=TI().unknown(void 0),n=t.domain,e=t.range,i=0,r=1,a=!1,l=0,c=0,u=.5;function d(){var h=n().length,f=r=1)return+e(t[i-1],i-1,t);var i,r=(i-1)*n,o=Math.floor(r),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(r-o)}}function XW(){var i,t=[],n=[],e=[];function r(){var s=0,a=Math.max(1,n.length);for(e=new Array(a-1);++s0?e[a-1]:t[0],aPm)if(Math.abs(u*a-l*c)>Pm&&r){var h=e-o,f=i-s,p=a*a+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((EI-Math.acos((p+d-m)/(2*g*v)))/2),b=y/v,C=y/g;Math.abs(b-1)>Pm&&(this._+="L"+(t+b*c)+","+(n+b*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=t+C*a)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+s,c=n+a,u=1^o,d=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Pm||Math.abs(this._y1-c)>Pm)&&(this._+="L"+l+","+c),e&&(d<0&&(d=d%AI+AI),d>r6e?this._+="A"+e+","+e+",0,1,"+u+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Pm&&(this._+="A"+e+","+e+",0,"+ +(d>=EI)+","+u+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const OI=KW;function _o(t){return function(){return t}}function QW(t){return t[0]}function ZW(t){return t[1]}function B2(){var t=QW,n=ZW,e=_o(!0),i=null,r=Fm,o=null;function s(a){var l,u,h,c=a.length,d=!1;for(null==i&&(o=r(h=OI())),l=0;l<=c;++l)!(l=h;--f)a.point(y[f],b[f]);a.lineEnd(),a.areaEnd()}g&&(y[d]=+t(m,d,u),b[d]=+e(m,d,u),a.point(n?+n(m,d,u):y[d],i?+i(m,d,u):b[d]))}if(v)return a=null,v+""||null}function c(){return B2().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t="function"==typeof u?u:_o(+u),n=null,l):t},l.x0=function(u){return arguments.length?(t="function"==typeof u?u:_o(+u),l):t},l.x1=function(u){return arguments.length?(n=null==u?null:"function"==typeof u?u:_o(+u),l):n},l.y=function(u){return arguments.length?(e="function"==typeof u?u:_o(+u),i=null,l):e},l.y0=function(u){return arguments.length?(e="function"==typeof u?u:_o(+u),l):e},l.y1=function(u){return arguments.length?(i=null==u?null:"function"==typeof u?u:_o(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(u){return arguments.length?(r="function"==typeof u?u:_o(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,null!=o&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(null==u?o=a=null:a=s(o=u),l):o},l}function eq(){}function II(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function tq(t,n){this._context=t,this._k=(1-n)/6}function nq(t,n){this._context=t,this._k=(1-n)/6}function iq(t){this._curve=t}function w6e(t,n,e,i,r){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a=0;)n+=e[i].value;else n=1;t.value=n}function lq(t,n){var r,s,a,l,c,e=new T_(t),i=+t.value&&(e.value=t.value),o=[e];for(null==n&&(n=H6e);r=o.pop();)if(i&&(r.value=+r.data.value),(a=n(r.data))&&(c=a.length))for(r.children=new Array(c),l=c-1;l>=0;--l)o.push(s=r.children[l]=new T_(a[l])),s.parent=r,s.depth=r.depth+1;return e.eachBefore(cq)}function H6e(t){return t.children}function U6e(t){t.data=t.data.data}function cq(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function T_(t){this.data=t,this.depth=this.height=0,this.parent=null}tq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:II(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:II(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new tq(i,n)}return e.tension=function(i){return t(+i)},e}(0),nq.prototype={areaStart:eq,areaEnd:eq,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:II(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new nq(i,n)}return e.tension=function(i){return t(+i)},e}(0),function rq(t){function n(e){return new iq(t(e))}return n._curve=t,n}(Fm),iq.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,r,o,s,a){!function k6e(t,n,e,i,r,o){for(var l,c,f,p,g,v,y,b,C,D,E,s=[],a=n.children,u=0,d=0,h=a.length,m=n.value;uy&&(y=c),E=g*g*D,(b=Math.max(y/E,E/v))>C){g-=c;break}C=b}s.push(l={value:g,dice:f1?i:1)},e}((1+Math.sqrt(5))/2),T_.prototype=lq.prototype={constructor:T_,count:function A6e(){return this.eachAfter(E6e)},each:function M6e(t){var e,r,o,s,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),r=n.children)for(o=0,s=r.length;o=0;--r)e.push(i[r]);return this},sum:function N6e(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e})},sort:function F6e(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function P6e(t){for(var n=this,e=function R6e(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;for(t=e.pop(),n=i.pop();t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function j6e(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function L6e(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function B6e(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function $6e(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function V6e(){return lq(this).eachBefore(U6e)}};const Y6e=["caretElm"];function X6e(t,n){}const J6e=function(t){return{model:t}};function K6e(t,n){if(1&t&&(_(0,"span"),te(1,X6e,0,0,"ng-template",5),x()),2&t){const e=L();w(1),S("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Zi(2,J6e,e.context))}}function Q6e(t,n){1&t&&xe(0,"span",6),2&t&&S("innerHTML",L().title,Yx)}function Z6e(t,n){if(1&t&&(lt(),qp(),xe(0,"ngx-charts-scale-legend",4)),2&t){const e=L();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("valueRange",e.legendOptions.domain)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)}}function eBe(t,n){if(1&t){const e=_t();lt(),qp(),_(0,"ngx-charts-legend",5),ke("labelClick",function(r){return ze(e),Ge(L().legendLabelClick.emit(r))})("labelActivate",function(r){return ze(e),Ge(L().legendLabelActivate.emit(r))})("labelDeactivate",function(r){return ze(e),Ge(L().legendLabelDeactivate.emit(r))}),x()}if(2&t){const e=L();S("horizontal",e.legendOptions&&"below"===e.legendOptions.position)("data",e.legendOptions.domain)("title",e.legendOptions.title)("colors",e.legendOptions.colors)("height",e.view[1])("width",e.legendWidth)("activeEntries",e.activeEntries)}}const hq=["*"],tBe=["ngx-charts-axis-label",""],fq=["ticksel"],nBe=["ngx-charts-x-axis-ticks",""];function iBe(t,n){if(1&t&&(lt(),_(0,"g",3)(1,"title"),O(2),x(),_(3,"text",4),O(4),x()()),2&t){const e=n.$implicit,i=L();ft("transform",i.tickTransform(e)),w(2),bt(i.tickFormat(e)),w(1),cr("font-size","12px"),ft("text-anchor",i.textAnchor)("transform",i.textTransform),w(1),bn(" ",i.tickTrim(i.tickFormat(e))," ")}}function rBe(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"line",6),x()),2&t){const e=L(2);ft("transform",e.gridLineTransform()),w(1),ft("y1",-e.gridLineHeight)}}function oBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,rBe,2,2,"g",5),x()),2&t){const e=n.$implicit,i=L();ft("transform",i.tickTransform(e)),w(1),S("ngIf",i.showGridLines)}}const sBe=["ngx-charts-x-axis",""];function aBe(t,n){if(1&t){const e=_t();lt(),_(0,"g",2),ke("dimensionsChanged",function(r){return ze(e),Ge(L().emitTicksHeight(r))}),x()}if(2&t){const e=L();S("trimTicks",e.trimTicks)("rotateTicks",e.rotateTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickStroke",e.tickStroke)("scale",e.xScale)("orient",e.xOrient)("showGridLines",e.showGridLines)("gridLineHeight",e.dims.height)("width",e.dims.width)("tickValues",e.ticks)}}function lBe(t,n){if(1&t&&(lt(),xe(0,"g",3)),2&t){const e=L();S("label",e.labelText)("offset",e.labelOffset)("orient","bottom")("height",e.dims.height)("width",e.dims.width)}}const cBe=["ngx-charts-y-axis-ticks",""];function uBe(t,n){if(1&t&&(lt(),_(0,"g",4)(1,"title"),O(2),x(),_(3,"text",5),O(4),x()()),2&t){const e=n.$implicit,i=L();ft("transform",i.transform(e)),w(2),bt(i.tickFormat(e)),w(1),cr("font-size","12px"),ft("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),w(1),bn(" ",i.tickTrim(i.tickFormat(e))," ")}}function dBe(t,n){if(1&t&&(lt(),xe(0,"path",6)),2&t){const e=L();ft("d",e.referenceAreaPath)("transform",e.gridLineTransform())}}function hBe(t,n){1&t&&(lt(),xe(0,"line",9)),2&t&&ft("x2",L(3).gridLineWidth)}function fBe(t,n){1&t&&(lt(),xe(0,"line",9)),2&t&&ft("x2",-L(3).gridLineWidth)}function pBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,hBe,1,1,"line",8),te(2,fBe,1,1,"line",8),x()),2&t){const e=L(2);ft("transform",e.gridLineTransform()),w(1),S("ngIf","left"===e.orient),w(1),S("ngIf","right"===e.orient)}}function mBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,pBe,3,3,"g",7),x()),2&t){const e=n.$implicit,i=L();ft("transform",i.transform(e)),w(1),S("ngIf",i.showGridLines)}}function gBe(t,n){if(1&t&&(lt(),_(0,"g")(1,"title"),O(2),x(),_(3,"text",11),O(4),x()()),2&t){const e=L(2).$implicit,i=L();w(2),bt(i.tickTrim(i.tickFormat(e.value))),w(1),ft("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),w(1),bn(" ",e.name," ")}}function vBe(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"line",10),te(2,gBe,5,6,"g",7),x()),2&t){const e=L().$implicit,i=L();ft("transform",i.transform(e.value)),w(1),ft("x2",i.gridLineWidth)("transform",i.gridLineTransform()),w(1),S("ngIf",i.showRefLabels)}}function yBe(t,n){if(1&t&&(lt(),_(0,"g"),te(1,vBe,3,4,"g",7),x()),2&t){const e=L();w(1),S("ngIf",e.showRefLines)}}const _Be=["ngx-charts-y-axis",""];function bBe(t,n){if(1&t){const e=_t();lt(),_(0,"g",2),ke("dimensionsChanged",function(r){return ze(e),Ge(L().emitTicksWidth(r))}),x()}if(2&t){const e=L();S("trimTicks",e.trimTicks)("maxTickLength",e.maxTickLength)("tickFormatting",e.tickFormatting)("tickArguments",e.tickArguments)("tickValues",e.ticks)("tickStroke",e.tickStroke)("scale",e.yScale)("orient",e.yOrient)("showGridLines",e.showGridLines)("gridLineWidth",e.dims.width)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)("height",e.dims.height)}}function xBe(t,n){if(1&t&&(lt(),xe(0,"g",3)),2&t){const e=L();S("label",e.labelText)("offset",e.labelOffset)("orient",e.yOrient)("height",e.dims.height)("width",e.dims.width)}}const wBe=["ngx-charts-circle-series",""];function CBe(t,n){if(1&t&&(lt(),xe(0,"rect",4)),2&t){const e=L(2);S("@animationState","active"),ft("x",e.circle.cx-e.circle.radius)("y",e.circle.cy)("width",2*e.circle.radius)("height",e.circle.height)("fill",e.gradientFill)}}const SBe=function(t){return{name:t}};function kBe(t,n){if(1&t){const e=_t();lt(),_(0,"g")(1,"defs"),xe(2,"g",1),x(),te(3,CBe,1,6,"rect",2),_(4,"g",3),ke("select",function(){ze(e);const r=L();return Ge(r.onClick(r.circle.data))})("activate",function(){return ze(e),Ge(L().activateCircle())})("deactivate",function(){return ze(e),Ge(L().deactivateCircle())}),x()()}if(2&t){const e=L();w(2),S("name",e.gradientId)("stops",e.circle.gradientStops),w(1),S("ngIf",e.barVisible&&"standard"===e.type),w(1),Vn("active",e.isActive(Zi(18,SBe,e.circle.seriesName))),S("cx",e.circle.cx)("cy",e.circle.cy)("r",e.circle.radius)("fill",e.circle.color)("pointerEvents",0===e.circle.value?"none":"all")("data",e.circle.value)("classNames",e.circle.classNames)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",e.tooltipTemplate?void 0:e.getTooltipText(e.circle))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",e.circle.data)}}const DBe=["ngx-charts-circle",""],MBe=["ngx-charts-svg-linear-gradient",""];function OBe(t,n){if(1&t&&(lt(),xe(0,"stop")),2&t){const e=n.$implicit;cr("stop-color",e.color)("stop-opacity",e.opacity),ft("offset",e.offset+"%")}}const FBe=["ngx-charts-area",""];function PBe(t,n){if(1&t&&(lt(),_(0,"defs"),xe(1,"g",2),x()),2&t){const e=L();w(1),S("name",e.gradientId)("stops",e.gradientStops)}}const jBe=["tooltipAnchor"],LBe=["ngx-charts-tooltip-area",""];function BBe(t,n){if(1&t&&(_(0,"div",6),xe(1,"span",7),O(2),x()),2&t){const e=n.$implicit,i=L(2);w(1),cr("background-color",e.color),w(1),bn(" ",i.getToolTipText(e)," ")}}function $Be(t,n){if(1&t&&(lt(),qp(),_(0,"div",4),te(1,BBe,3,3,"div",5),x()),2&t){const e=n.model;w(1),S("ngForOf",e)}}const VBe=["ngx-charts-timeline",""];function HBe(t,n){if(1&t&&(_(0,"header",4)(1,"span",5),O(2),x()()),2&t){const e=L();w(2),bt(e.title)}}function UBe(t,n){if(1&t){const e=_t();_(0,"li",6)(1,"ngx-charts-legend-entry",7),ke("select",function(r){return ze(e),Ge(L().labelClick.emit(r))})("activate",function(r){return ze(e),Ge(L().activate(r))})("deactivate",function(r){return ze(e),Ge(L().deactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=L();w(1),S("label",e.label)("formattedLabel",e.formattedLabel)("color",e.color)("isActive",i.isActive(e))}}const Ws=["tooltipTemplate"],z2=["seriesTooltipTemplate"],Ao=function(t,n){return[t,n]},d7e=["ngx-charts-line",""];function h7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",7),ke("dimensionsChanged",function(r){return ze(e),Ge(L().updateXAxisHeight(r))}),x()}if(2&t){const e=L();S("xScale",e.xScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showXAxisLabel)("labelText",e.xAxisLabel)("trimTicks",e.trimXAxisTicks)("rotateTicks",e.rotateXAxisTicks)("maxTickLength",e.maxXAxisTickLength)("tickFormatting",e.xAxisTickFormatting)("ticks",e.xAxisTicks)}}function f7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",8),ke("dimensionsChanged",function(r){return ze(e),Ge(L().updateYAxisWidth(r))}),x()}if(2&t){const e=L();S("yScale",e.yScale)("dims",e.dims)("showGridLines",e.showGridLines)("showLabel",e.showYAxisLabel)("labelText",e.yAxisLabel)("trimTicks",e.trimYAxisTicks)("maxTickLength",e.maxYAxisTickLength)("tickFormatting",e.yAxisTickFormatting)("ticks",e.yAxisTicks)("referenceLines",e.referenceLines)("showRefLines",e.showRefLines)("showRefLabels",e.showRefLabels)}}function p7e(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"g",9),x()),2&t){const e=n.$implicit,i=L();S("@animationState","active"),w(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function m7e(t,n){if(1&t){const e=_t();lt(),_(0,"g")(1,"g",13),ke("select",function(r){return ze(e),Ge(L(2).onClick(r))})("activate",function(r){return ze(e),Ge(L(2).onActivate(r))})("deactivate",function(r){return ze(e),Ge(L(2).onDeactivate(r))}),x()()}if(2&t){const e=n.$implicit,i=L(2);w(1),S("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function g7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",10),ke("mouseleave",function(){return ze(e),Ge(L().hideCircles())}),_(1,"g",11),ke("hover",function(r){return ze(e),Ge(L().updateHoveredVertical(r))}),x(),te(2,m7e,2,9,"g",12),x()}if(2&t){const e=L();w(1),S("dims",e.dims)("xSet",e.xSet)("xScale",e.xScale)("yScale",e.yScale)("results",e.results)("colors",e.colors)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.seriesTooltipTemplate),w(1),S("ngForOf",e.results)}}function v7e(t,n){if(1&t&&(lt(),_(0,"g"),xe(1,"g",15),x()),2&t){const e=n.$implicit,i=L(2);w(1),S("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",e)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function y7e(t,n){if(1&t){const e=_t();lt(),_(0,"g",14),ke("onDomainChange",function(r){return ze(e),Ge(L().updateDomain(r))}),te(1,v7e,2,8,"g",4),x()}if(2&t){const e=L();S("results",e.results)("view",Rr(10,Ao,e.timelineWidth,e.height))("height",e.timelineHeight)("scheme",e.scheme)("customColors",e.customColors)("scaleType",e.scaleType)("legend",e.legend),ft("transform",e.timelineTransform),w(1),S("ngForOf",e.results)("ngForTrackBy",e.trackBy)}}const _7e=["ngx-charts-line-series",""];function b7e(t,n){if(1&t&&(lt(),xe(0,"g",4)),2&t){const e=L();S("name",e.gradientId)("stops",e.gradientStops)}}function x7e(t,n){if(1&t&&(lt(),xe(0,"g",5)),2&t){const e=L();Vn("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),S("data",e.data)("path",e.outerPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",e.rangeFillOpacity)("animations",e.animations)}}let vq=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function g9e(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),s=new l4e(o,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Bz(e),l=s.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(wt(jh),wt(zg),wt(Ca))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function v9e(t,n,e){e=e||{};let i,r,o,s=null,a=0;function l(){a=!1===e.leading?0:+new Date,s=null,o=t.apply(i,r)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const u=n-(c-a);return i=this,r=arguments,u<=0?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):!s&&!1!==e.trailing&&(s=setTimeout(l,u)),o}}function y9e(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:v9e(o.value,t,n)}),this[r]}}}}var qs=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(qs||(qs={})),qs))();const Qf=7;function yq(t,n,e){return"top"===e?t.top-Qf:"bottom"===e?t.top+t.height-n.height+Qf:"center"===e?t.top+t.height/2-n.height/2:void 0}function _q(t,n,e){return"left"===e?t.left-Qf:"right"===e?t.left+t.width-n.width+Qf:"center"===e?t.left+t.width/2-n.width/2:void 0}class Tc{static calculateVerticalAlignment(n,e,i){let r=yq(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;"top"===r&&(o=n.height/2-i.height/2+Qf),"bottom"===r&&(o=e.height-n.height/2-i.height/2-Qf),"center"===r&&(o=e.height/2-i.height/2);const s=yq(n,e,r);return s+e.height>window.innerHeight&&(o+=s+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=_q(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;"left"===r&&(o=n.width/2-i.width/2+Qf),"right"===r&&(o=e.width-n.width/2-i.width/2-Qf),"center"===r&&(o=e.width/2-i.width/2);const s=_q(n,e,r);return s+e.width>window.innerWidth&&(o+=s+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return"right"===i&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),"left"===i&&n.left-e.width-r<0&&(o=!0),"top"===i&&n.top-e.height-r<0&&(o=!0),"bottom"===i&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let s=0,a=0;return n===qs.right?(a=-7,s=Tc.calculateVerticalCaret(i,e,r,o)):n===qs.left?(a=e.width,s=Tc.calculateVerticalCaret(i,e,r,o)):n===qs.top?(s=e.height,a=Tc.calculateHorizontalCaret(i,e,r,o)):n===qs.bottom&&(s=-7,a=Tc.calculateHorizontalCaret(i,e,r,o)),{top:s,left:a}}static positionContent(n,e,i,r,o){let s=0,a=0;return n===qs.right?(a=i.left+i.width+r,s=Tc.calculateVerticalAlignment(i,e,o)):n===qs.left?(a=i.left-e.width-r,s=Tc.calculateVerticalAlignment(i,e,o)):n===qs.top?(s=i.top-e.height-r,a=Tc.calculateHorizontalAlignment(i,e,o)):n===qs.bottom&&(s=i.top+i.height+r,a=Tc.calculateHorizontalAlignment(i,e,o)),{top:s,left:a}}static determinePlacement(n,e,i,r){if(Tc.shouldFlip(i,e,n,r)){if(n===qs.right)return qs.left;if(n===qs.left)return qs.right;if(n===qs.top)return qs.bottom;if(n===qs.bottom)return qs.top}return n}}let _9e=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:s}=Tc.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${s}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:s,left:a}=Tc.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${s}px`),this.renderer.setStyle(r,"left",`${a}px`)}checkFlip(e,i){this.placement=Tc.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&wo(Y6e,5),2&e){let r;Tn(r=En())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ke("resize",function(){return i.onWindowResize()},0,m8),2&e&&Au(i.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(_(0,"div"),xe(1,"span",0,1),_(3,"div",2),te(4,K6e,2,4,"span",3),te(5,Q6e,1,1,"span",4),x()()),2&e&&(w(1),function U6(t,n,e){Ou(pc,Rd,Qg(Xt(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),S("hidden",!i.showCaret),w(3),S("ngIf",!i.title),w(1),S("ngIf",i.title))},dependencies:[xn,Fu],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function $z(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o}([y9e(100)],t.prototype,"onWindowResize",null),t})();class b9e{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}let PI=(()=>{class t extends b9e{constructor(e){super(e),this.type=_9e}}return t.\u0275fac=function(e){return new(e||t)(wt(vq))},t.\u0275prov=It({token:t,factory:t.\u0275fac}),t})(),rs=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new ot,this.legendLabelActivate=new ot,this.legendLabelDeactivate=new ot}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[oo([PI]),ei],ngContentSelectors:hq,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,i){1&e&&(Df(),_(0,"div",0),lt(),_(1,"svg",1),Tf(2),x(),te(3,Z6e,1,5,"ngx-charts-scale-legend",2),te(4,eBe,1,7,"ngx-charts-legend",3),x()),2&e&&(cr("width",i.view[0],"px"),S("@animationState","active")("@.disabled",!i.animations),w(1),ft("width",i.chartWidth)("height",i.view[1]),w(2),S("ngIf",i.showLegend&&"scaleLegend"===i.legendType),w(1),S("ngIf",i.showLegend&&"legend"===i.legendType))},dependencies:function(){return[xn,Oq,Nq]},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({opacity:0}),Ra("500ms 100ms",Or({opacity:1}))])])]},changeDetection:0}),t})(),x9e=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new ot,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:r}=this.element.nativeElement;i&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur))},t.\u0275dir=un({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),os=(()=>{class t{constructor(e,i,r){this.chartElement=e,this.zone=i,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new ot}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new x9e(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(e){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const r=this.chartElement.nativeElement;if(null!==r.parentNode){const o=r.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}formatDates(){for(let e=0;ee.lift(new N4e(t,n))}(200)).subscribe(r=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}cloneData(e){const i=[];for(const r of e){const o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(const s of r.series){const a=Object.assign({},s);o.series.push(a)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),i.push(o)}return i}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge(ur),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[ei],decls:1,vars:0,template:function(e,i){1&e&&xe(0,"div")},encapsulation:2}),t})(),RI=(()=>{class t{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[ei],attrs:tBe,decls:2,vars:6,template:function(e,i){1&e&&(lt(),_(0,"text"),O(1),x()),2&e&&(ft("stroke-width",i.strokeWidth)("x",i.x)("y",i.y)("text-anchor",i.textAnchor)("transform",i.transform),w(1),bn(" ",i.label," "))},encapsulation:2,changeDetection:0}),t})();function Zf(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function bq(t,n){if(t.length>n){const e=[],i=Math.floor(t.length/n);for(let r=0;r{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new ot,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()};const i=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(r){return this.scale(r)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",i&&0!==i?(this.textTransform=`rotate(${i})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(e){let i=0;this.maxTicksLength=0;for(let c=0;cthis.maxTicksLength&&(this.maxTicksLength=d)}const s=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let a=s;const l=Math.floor(this.width/e.length);for(;a>l&&i>-90;)i-=30,a=Math.cos(i*(Math.PI/180))*s;return i}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=bq(e,i)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?Zf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&wo(fq,5),2&e){let r;Tn(r=En())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:nBe,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,i){1&e&&(lt(),_(0,"g",null,0),te(2,iBe,5,7,"g",1),x(),te(3,oBe,2,2,"g",2)),2&e&&(w(2),S("ngForOf",i.ticks),w(1),S("ngForOf",i.ticks))},dependencies:[Un,xn],encapsulation:2,changeDetection:0}),t})(),Zl=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new ot,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const i=e+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,i){if(1&e&&wo(xq,5),2&e){let r;Tn(r=En())&&(i.ticksComponent=r.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:sBe,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(lt(),_(0,"g"),te(1,aBe,1,12,"g",0),te(2,lBe,1,5,"g",1),x()),2&e&&(ft("class",i.xAxisClassName)("transform",i.transform),w(1),S("ngIf",i.xScale),w(1),S("ngIf",i.showLabel))},dependencies:[xn,RI,xq],encapsulation:2,changeDetection:0}),t})();let wq=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new ot,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){let e;const i="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(r){return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()},this.adjustedScale=e.bandwidth?function(r){return e(r)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(r){return"translate("+this.adjustedScale(r)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*i,this.y1=this.tickSpacing*i,this.dy=i<0?"0em":".71em";break;case"left":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em";break;case"right":this.transform=function(r){return"translate(0,"+this.adjustedScale(r)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-i,this.x1=this.tickSpacing*-i,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=function nf(t,n,e,i,r,[o,s,a,l]){let c="";return c=`M${[t+r,n]}`,c+="h"+((e=0===(e=Math.floor(e))?1:e)-2*r),c+=s?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,c+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),c+=l?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,c+="h"+(2*r-e),c+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,c+="v"+(2*r-i),c+=o?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,c+="z",c}(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const i=this.getMaxTicks(20),r=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[r]):(e=this.scale.domain(),e=bq(e,i)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?Zf(e,this.maxTickLength):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,i){if(1&e&&wo(fq,5),2&e){let r;Tn(r=En())&&(i.ticksElement=r.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:cBe,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,i){1&e&&(lt(),_(0,"g",null,0),te(2,uBe,5,9,"g",1),x(),te(3,dBe,1,2,"path",2),te(4,mBe,2,2,"g",3),te(5,yBe,2,1,"g",3)),2&e&&(w(2),S("ngForOf",i.ticks),w(1),S("ngIf",i.referenceLineLength>1&&i.refMax&&i.refMin&&i.showRefLines),w(1),S("ngForOf",i.ticks),w(1),S("ngForOf",i.referenceLines))},dependencies:[Un,xn],encapsulation:2,changeDetection:0}),t})(),El=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new ot,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,i){if(1&e&&wo(wq,5),2&e){let r;Tn(r=En())&&(i.ticksComponent=r.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[ei],attrs:_Be,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,i){1&e&&(lt(),_(0,"g"),te(1,bBe,1,14,"g",0),te(2,xBe,1,5,"g",1),x()),2&e&&(ft("class",i.yAxisClassName)("transform",i.transform),w(1),S("ngIf",i.yScale),w(1),S("ngIf",i.showLabel))},dependencies:[xn,RI,wq],encapsulation:2,changeDetection:0}),t})(),Cq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[If]}),t})();var G2=(()=>(function(t){t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip"}(G2||(G2={})),G2))(),W2=(()=>(function(t){t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right"}(W2||(W2={})),W2))(),ep=(()=>(function(t){t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover"}(ep||(ep={})),ep))();let Gu=(()=>{class t{constructor(e,i,r){this.tooltipService=e,this.viewContainerRef=i,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=qs.top,this.tooltipAlignment=W2.center,this.tooltipType=G2.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ep.all,this.tooltipImmediateExit=!1,this.show=new ot,this.hide=new ot}get listensForFocus(){return this.tooltipShowEvent===ep.all||this.tooltipShowEvent===ep.focus}get listensForHover(){return this.tooltipShowEvent===ep.all||this.tooltipShowEvent===ep.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const r=this.createBoundOptions();this.component=this.tooltipService.create(r),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(ge(PI),ge(Yl),ge(oa))},t.\u0275dir=un({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&ke("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),Sq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[vq,PI],imports:[If]}),t})();function za(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function ga(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}const kq={};function Al(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,kq[t]?Al():(kq[t]=!0,t)}let $I,E_=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.select=new ot,this.activate=new ot,this.deactivate=new ot,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(e){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(i=>{const r=i.name;return r&&this.visibleValue&&r.toString()===this.visibleValue.toString()&&void 0!==i.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,i){const r=this.data.name,o=e.value,s=e.name,a=za(s);let l;l=this.xScale("time"===this.scaleType?s:"linear"===this.scaleType?Number(s):s);const c=this.yScale("standard"===this.type?o:e.d1),d=this.yScale.range()[0]-c;let f;return f=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?o:e.d1:r),{classNames:[`circle-data-${i}`],value:o,label:s,data:Object.assign({},e,{series:r,value:o,name:s}),cx:l,cy:c,radius:5,height:d,tooltipLabel:a,color:f,opacity:1,seriesName:r,gradientStops:this.getGradientStops(f),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:i,seriesName:r,min:o,max:s}){return`\n ${ga(r)} \u2022 ${ga(e)}\n ${i.toLocaleString()}${this.getTooltipMinMaxText(o,s)}\n `}getTooltipMinMaxText(e,i){if(void 0!==e||void 0!==i){let r=" (";return void 0!==e?(void 0===i&&(r+="\u2265"),r+=e.toLocaleString(),void 0!==i&&(r+=" - ")):void 0!==i&&(r+="\u2264"),void 0!==i&&(r+=i.toLocaleString()),r+=")",r}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:wBe,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(e,i){1&e&&te(0,kBe,5,20,"g",0),2&e&&S("ngIf",i.circle)},dependencies:function(){return[xn,Gu,q2,jm]},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({opacity:0}),Ra(250,Or({opacity:1}))])])]},changeDetection:0}),t})(),q2=(()=>{class t{constructor(){this.select=new ot,this.activate=new ot,this.deactivate=new ot}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(e,i){1&e&&ke("click",function(){return i.onClick()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[ei],attrs:DBe,decls:1,vars:8,template:function(e,i){1&e&&(lt(),xe(0,"circle")),2&e&&ft("cx",i.cx)("cy",i.cy)("r",i.r)("fill",i.fill)("stroke",i.stroke)("opacity",i.circleOpacity)("class",i.classNames)("pointer-events",i.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),jm=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[ei],attrs:MBe,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(lt(),_(0,"linearGradient",0),te(1,OBe,1,5,"stop",1),x()),2&e&&(S("id",i.name),ft("x1",i.x1)("y1",i.y1)("x2",i.x2)("y2",i.y2),w(1),S("ngForOf",i.stops))},dependencies:[Un],encapsulation:2,changeDetection:0}),t})(),BI=(()=>{class t{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new ot,this.initialized=!1,this.hasGradient=!1,this.element=e.nativeElement}ngOnChanges(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Al().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const e=Sa(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[ei],attrs:FBe,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(e,i){1&e&&(te(0,PBe,2,2,"defs",0),lt(),xe(1,"path",1)),2&e&&(S("ngIf",i.gradient),w(1),cr("opacity",i.opacity),ft("d",i.areaPath)("fill",i.gradient?i.gradientFill:i.fill))},dependencies:[xn,jm],encapsulation:2,changeDetection:0}),t})();typeof window<"u"?$I=window:typeof global<"u"&&($I=global);const Mq=$I.MouseEvent;function VI(t,n=!1,e=!0){if("function"==typeof Mq)return new Mq(t,{bubbles:n,cancelable:e});{const i=document.createEvent("MouseEvent");return i.initEvent(t,n,e),i}}let A_=(()=>{class t{constructor(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new ot}getValues(e){const i=[];for(const r of this.results){const o=r.series.find(a=>a.name.toString()===e.toString());let s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){const a=o.name;let c,l=o.value;if(this.showPercentage&&(l=(o.d1-o.d0).toFixed(2)+"%"),"linear"===this.colors.scaleType){let d=l;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(r.name);const u=Object.assign({},o,{value:l,name:a,series:s,min:o.min,max:o.max,color:c});i.push(u)}}return i}mouseMove(e){const i=e.pageX-e.target.getBoundingClientRect().left,r=this.findClosestPointIndex(i),o=this.xSet[r];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const s=VI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(s),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let i=0,r=this.xSet.length-1,o=Number.MAX_VALUE,s=0;for(;i<=r;){const a=(i+r)/2|0,l=this.xScale(this.xSet[a]),c=Math.abs(l-e);if(ce)){o=0,s=a;break}r=a-1}}return s}showTooltip(){const e=VI("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=VI("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let i="";return i+=void 0!==e.series?e.series:"???",i+=": ",void 0!==e.value&&(i+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(i+=" (",void 0!==e.min?(void 0===e.max&&(i+="\u2265"),i+=e.min.toLocaleString(),void 0!==e.max&&(i+=" - ")):void 0!==e.max&&(i+="\u2264"),void 0!==e.max&&(i+=e.max.toLocaleString()),i+=")"),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(e,i){if(1&e&&wo(jBe,5),2&e){let r;Tn(r=En())&&(i.tooltipAnchor=r.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:LBe,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","'auto'",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(e,i){if(1&e&&(lt(),_(0,"g")(1,"rect",0),ke("mousemove",function(o){return i.mouseMove(o)})("mouseleave",function(){return i.hideTooltip()}),x(),te(2,$Be,2,1,"ng-template",null,1,Xo),xe(4,"rect",2,3),x()),2&e){const r=sa(3);w(1),ft("x",0)("width",i.dims.width)("height",i.dims.height),w(3),cr("opacity",i.anchorOpacity)("pointer-events","none"),S("@animationState",0!==i.anchorOpacity?"active":"inactive")("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",i.tooltipTemplate?i.tooltipTemplate:r)("tooltipContext",i.anchorValues)("tooltipImmediateExit",!0),ft("x",i.anchorPos)("width",1)("height",i.dims.height)}},dependencies:[Un,Gu],encapsulation:2,data:{animation:[ul("animationState",[ja("inactive => active",[Or({opacity:0}),Ra(250,Or({opacity:.7}))]),ja("active => inactive",[Or({opacity:.7}),Ra(250,Or({opacity:0}))])])]},changeDetection:0}),t})(),M_=(()=>{class t{constructor(e,i){this.cd=i,this.height=50,this.select=new ot,this.onDomainChange=new ot,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+Al().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const r of this.results)for(const o of r.series)e.includes(o.name)||e.push(o.name);let i=[];return"time"===this.scaleType?i=[Math.min(...e),Math.max(...e)]:"linear"===this.scaleType?(e=e.map(s=>Number(s)),i=[Math.min(...e),Math.max(...e)]):i=e,i}getXScale(){let e;return"time"===this.scaleType?e=Im().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?e=Co().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(e=Nm().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,i=this.view[0];this.brush=function QLe(){return rI(O2)}().extent([[0,0],[i,e]]).on("brush end",()=>{const o=(Ur.selection||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(o),this.cd.markForCheck()}),Sa(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),Sa(this.element).select(".brush").call(this.brush),Sa(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni),ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[ei],attrs:VBe,ngContentSelectors:hq,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(e,i){1&e&&(Df(),lt(),_(0,"g",0)(1,"filter"),xe(2,"feColorMatrix",1),x(),_(3,"g",2),Tf(4),x(),xe(5,"rect",3)(6,"g",4),x()),2&e&&(ft("transform",i.transform),w(1),ft("id",i.filterId),w(4),ft("width",i.view[0])("height",i.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Oq=(()=>{class t{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new ot,this.labelActivate=new ot,this.labelDeactivate=new ot,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const i of this.data){const r=za(i);-1===e.findIndex(s=>s.label===r)&&e.push({label:i,formattedLabel:r,color:this.colors.getColor(i)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.label===r.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,i){return i.label}}return t.\u0275fac=function(e){return new(e||t)(ge($s))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[ei],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,i){1&e&&(_(0,"div"),te(1,HBe,3,1,"header",0),_(2,"div",1)(3,"ul",2),te(4,UBe,2,4,"li",3),x()()()),2&e&&(cr("width",i.width,"px"),w(1),S("ngIf",(null==i.title?null:i.title.length)>0),w(2),cr("max-height",i.height-45,"px"),Vn("horizontal-legend",i.horizontal),w(1),S("ngForOf",i.legendEntries)("ngForTrackBy",i.trackBy))},dependencies:function(){return[Un,xn,Iq]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Iq=(()=>{class t{constructor(){this.isActive=!1,this.select=new ot,this.activate=new ot,this.deactivate=new ot,this.toggle=new ot}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,i){1&e&&ke("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,i){1&e&&(_(0,"span",0),ke("click",function(){return i.select.emit(i.formattedLabel)}),_(1,"span",1),ke("click",function(){return i.toggle.emit(i.formattedLabel)}),x(),_(2,"span",2),O(3),x()()),2&e&&(Vn("active",i.isActive),S("title",i.formattedLabel),w(1),cr("background-color",i.color),w(2),bn(" ",i.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Nq=(()=>{class t{constructor(e){this.sanitizer=e,this.horizontal=!1}ngOnChanges(e){const i=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${i})`)}gradientString(e,i){i.push(1);const r=[];return e.reverse().forEach((o,s)=>{r.push(`${o} ${Math.round(100*i[s])}%`)}),r.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(ge(wM))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[ei],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,i){1&e&&(_(0,"div",0)(1,"div",1)(2,"span"),O(3),x()(),xe(4,"div",2),_(5,"div",1)(6,"span"),O(7),x()()()),2&e&&(cr("height",i.horizontal?void 0:i.height,"px")("width",i.width,"px"),Vn("horizontal-legend",i.horizontal),w(3),bt(i.valueRange[1].toLocaleString()),w(1),cr("background",i.gradient),w(3),bt(i.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[If,Cq,Sq,If,Cq,Sq]}),t})();let Pq=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class ys{constructor(n,e,i,r){"string"==typeof n&&(n=Pq.find(o=>o.name===n)),this.colorDomain=n.domain,this.scaleType=e,this.domain=i,this.customColors=r,this.scale=this.generateColorScheme(n,e,this.domain)}generateColorScheme(n,e,i){let r;if("string"==typeof n&&(n=Pq.find(o=>o.name===n)),"quantile"===e)r=XW().range(n.domain).domain(i);else if("ordinal"===e)r=TI().range(n.domain).domain(i);else if("linear"===e){const o=[...n.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const s=WW(0,1,1/o.length);r=Co().domain(s).range(o)}return r}getColor(n){if(null==n)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Co().domain(this.domain).range([0,1]);return this.scale(e(n))}{if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(r=>r.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}getLinearGradientStops(n,e){void 0===e&&(e=this.domain[0]);const i=Co().domain(this.domain).range([0,1]),r=Ua().domain(this.colorDomain).range([0,1]),o=this.getColor(n),s=i(e),a=this.getColor(e),l=i(n);let c=1,u=s;const d=[];for(d.push({color:a,offset:s,originalOffset:s,opacity:1});u=(l-r.bandwidth()).toFixed(4))break;d.push({color:h,offset:f,opacity:1}),u=f,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:l,opacity:1}),l===s)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const h of d)h.offset=(h.offset-s)/(l-s)*100;return d}}let w9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),jq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),S9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),T9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),$q=(()=>{class t{constructor(e){this.element=e,this.fill="none",this.animations=!0,this.select=new ot,this.initialized=!1}ngOnChanges(e){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const e=Sa(this.element.nativeElement).select(".line");this.animations?e.transition().duration(750).attr("d",this.path):e.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(ge(Ni))},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[ei],attrs:d7e,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(e,i){1&e&&(lt(),xe(0,"path",0)),2&e&&(S("@animationState","active"),ft("d",i.initialPath)("fill",i.fill)("stroke",i.stroke))},encapsulation:2,data:{animation:[ul("animationState",[ja(":enter",[Or({strokeDasharray:2e3,strokeDashoffset:2e3}),Ra(1e3,Or({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),E9e=(()=>{class t extends os{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition="right",this.showGridLines=!0,this.curve=Fm,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new ot,this.deactivate=new ot,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=function vs({width:t,height:n,margins:e,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:l=!1,showLegend:c=!1,legendType:u="ordinal",legendPosition:d="right",columns:h=12}){let f=e[3],p=t,m=n-e[0]-e[2];return c&&"right"===d&&(h-="ordinal"===u?2:1),p=p*h/12,p=p-e[1]-e[3],i&&(m-=5,m-=o,a&&(m-=30)),r&&(p-=5,p-=s,f+=s,f+=10,l&&(p-=30,f+=30)),p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Al().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let e=function X2(t){const n=new Set;for(const e of t)for(const i of e.series)n.add(i.name);return Array.from(n)}(this.results);this.scaleType=function tp(t,n=!0){return n&&t.every(r=>r instanceof Date)?"time":t.every(i=>"number"==typeof i)?"linear":"ordinal"}(e);let r,o,i=[];return"linear"===this.scaleType&&(e=e.map(s=>Number(s))),("time"===this.scaleType||"linear"===this.scaleType)&&(r=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),"time"===this.scaleType?(i=[new Date(r),new Date(o)],this.xSet=[...e].sort((s,a)=>{const l=s.getTime(),c=a.getTime();return l>c?1:c>l?-1:0})):"linear"===this.scaleType?(i=[r,o],this.xSet=[...e].sort((s,a)=>s-a)):(i=e,this.xSet=e),i}getYDomain(){const e=[];for(const s of this.results)for(const a of s.series)e.indexOf(a.value)<0&&e.push(a.value),void 0!==a.min&&(this.hasRange=!0,e.indexOf(a.min)<0&&e.push(a.min)),void 0!==a.max&&(this.hasRange=!0,e.indexOf(a.max)<0&&e.push(a.max));const i=[...e];return this.autoScale||i.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...i),this.yScaleMax?this.yScaleMax:Math.max(...i)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,i){let r;return"time"===this.scaleType?r=Im().range([0,i]).domain(e):"linear"===this.scaleType?(r=Co().range([0,i]).domain(e),this.roundDomains&&(r=r.nice())):"ordinal"===this.scaleType&&(r=Nm().range([0,i]).padding(.1).domain(e)),r}getYScale(e,i){const r=Co().range([i,0]).domain(e);return this.roundDomains?r.nice():r}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e){this.select.emit(e)}trackBy(e,i){return i.name}setColors(){let e;e="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new ys(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.deactivateAll(),!(this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value)>-1)&&(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.findIndex(r=>r.name===e.name&&r.value===e.value);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=Vt({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(e,i,r){if(1&e&&(Ti(r,Ws,5),Ti(r,z2,5)),2&e){let o;Tn(o=En())&&(i.tooltipTemplate=o.first),Tn(o=En())&&(i.seriesTooltipTemplate=o.first)}},hostBindings:function(e,i){1&e&&ke("mouseleave",function(){return i.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[wi],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(e,i){1&e&&(_(0,"ngx-charts-chart",0),ke("legendLabelClick",function(o){return i.onClick(o)})("legendLabelActivate",function(o){return i.onActivate(o)})("legendLabelDeactivate",function(o){return i.onDeactivate(o)}),lt(),_(1,"defs")(2,"clipPath"),xe(3,"rect"),x()(),_(4,"g",1),te(5,h7e,1,10,"g",2),te(6,f7e,1,12,"g",3),_(7,"g"),te(8,p7e,2,11,"g",4),te(9,g7e,3,9,"g",5),x()(),te(10,y7e,2,13,"g",6),x()),2&e&&(S("view",Rr(17,Ao,i.width,i.height))("showLegend",i.legend)("legendOptions",i.legendOptions)("activeEntries",i.activeEntries)("animations",i.animations),w(2),ft("id",i.clipPathId),w(1),ft("width",i.dims.width+10)("height",i.dims.height+10)("transform","translate(-5, -5)"),w(1),ft("transform",i.transform),w(1),S("ngIf",i.xAxis),w(1),S("ngIf",i.yAxis),w(1),ft("clip-path",i.clipPath),w(1),S("ngForOf",i.results)("ngForTrackBy",i.trackBy),w(1),S("ngIf",!i.tooltipDisabled),w(1),S("ngIf",i.timeline&&"ordinal"!=i.scaleType))},dependencies:function(){return[Un,xn,Zl,El,A_,rs,E_,M_,A9e]},styles:[".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,data:{animation:[ul("animationState",[ja(":leave",[Or({opacity:1}),Ra(500,Or({opacity:0}))])])]},changeDetection:0}),t})(),A9e=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(e){this.update()}update(){this.updateGradients();const e=this.sortData(this.data.series),i=this.getLineGenerator();this.path=i(e)||"";const r=this.getAreaGenerator();if(this.areaPath=r(e)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(e)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(l=>l.value),s=Math.max(...o);s===Math.min(...o)&&(this.stroke=this.colors.getColor(s))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return B2().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y(e=>this.yScale(e.value)).curve(this.curve)}getRangeGenerator(){return qv().x(e=>{const i=e.name;let r;return r=this.xScale("time"===this.scaleType?i:"linear"===this.scaleType?Number(i):i),r}).y0(e=>this.yScale("number"==typeof e.min?e.min:e.value)).y1(e=>this.yScale("number"==typeof e.max?e.max:e.value)).curve(this.curve)}getAreaGenerator(){return qv().x(i=>this.xScale(i.name)).y0(()=>this.yScale.range()[0]).y1(i=>this.yScale(i.value)).curve(this.curve)}sortData(e){return"linear"===this.scaleType?function HI(t,n,e="asc"){return t.sort((i,r)=>"asc"===e?i[n]-r[n]:r[n]-i[n])}(e,"name"):"time"===this.scaleType?function zI(t,n,e="asc"){return t.sort((i,r)=>{const o=i[n].getTime(),s=r[n].getTime();return"asc"===e?o>s?1:s>o?-1:0:o>s?-1:s>o?1:0})}(e,"name"):function UI(t,n,e="asc",i){return t.sort((r,o)=>{const a=o[n],l=i.indexOf(r[n]),c=i.indexOf(a);return"asc"===e?l-c:c-l})}(e,"name","asc",this.xScale.domain())}updateGradients(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Al().toString(),this.gradientUrl=`url(#${this.gradientId})`;const e=this.data.series.map(o=>o.value),i=Math.max(...e),r=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(i,r),this.areaGradientStops=this.colors.getLinearGradientStops(i)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(r=>e.name===r.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(r=>e.name===r.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Vt({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[ei],attrs:_7e,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(e,i){1&e&&(lt(),_(0,"g")(1,"defs"),te(2,b7e,1,2,"g",0),x(),xe(3,"g",1)(4,"g",2),te(5,x7e,1,9,"g",3),x()),2&e&&(w(2),S("ngIf",i.hasGradient),w(1),Vn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.areaPath)("fill",i.hasGradient?i.gradientUrl:i.colors.getColor(i.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",i.areaGradientStops)("animations",i.animations),w(1),Vn("active",i.isActive(i.data))("inactive",i.isInactive(i.data)),S("data",i.data)("path",i.path)("stroke",i.stroke)("animations",i.animations),w(1),S("ngIf",i.hasRange))},dependencies:[xn,BI,jm,$q],encapsulation:2,changeDetection:0}),t})(),Vq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})();Math;let YI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),F9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,YI,Vq]}),t})(),L9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),V9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu]}),t})(),z9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,YI,jq]}),t})(),W9e=(()=>{class t{constructor(){!function G9e(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({imports:[Wu,w9e,jq,S9e,T9e,Vq,F9e,L9e,YI,V9e,z9e]}),t})();function q9e(t,n){if(1&t&&(_(0,"ngb-alert",19),xe(1,"img",20),_(2,"h6",21),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Y9e(t,n){1&t&&xe(0,"img",31)}function X9e(t,n){1&t&&xe(0,"img",32)}function J9e(t,n){1&t&&xe(0,"img",33)}function K9e(t,n){1&t&&xe(0,"img",34)}function Q9e(t,n){if(1&t&&(_(0,"tr",24)(1,"td"),Cl(2,25),te(3,Y9e,1,0,"img",26),te(4,X9e,1,0,"img",27),te(5,J9e,1,0,"img",28),te(6,K9e,1,0,"img",29),Sl(),_(7,"span"),O(8),x()(),_(9,"td"),O(10),_(11,"span",30),O(12),x()(),_(13,"td"),O(14),_(15,"span",30),O(16),x()(),_(17,"td"),O(18),_(19,"span",30),O(20),x()(),_(21,"td"),O(22),_(23,"span",30),O(24),x()()()),2&t){const e=n.$implicit,i=L(2);w(2),S("ngSwitch",e.health),w(1),S("ngSwitchCase",0),w(1),S("ngSwitchCase",1),w(1),S("ngSwitchCase",2),w(1),S("ngSwitchCase",3),w(2),bt(e.name),w(2),bn("",e.session_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxSessionCount()-e.session_count," delta)"),w(2),bn("",e.presence_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxPresenceCount()-e.presence_count," delta)"),w(2),bn("",e.match_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxMatchCount()-e.match_count," delta)"),w(2),bn("",e.goroutine_count," "),w(1),S("hidden",!i.showDelta),w(1),bn("(",i.getMaxGoroutineCount()-e.goroutine_count," delta)")}}function Z9e(t,n){if(1&t&&(_(0,"tbody"),te(1,Q9e,25,18,"tr",22),_(2,"tr",3),xe(3,"td",23),_(4,"th",3),O(5),x(),_(6,"th",3),O(7),x(),_(8,"th",3),O(9),x(),_(10,"th",3),O(11),x()()()),2&t){const e=L();w(1),S("ngForOf",e.statusData.nodes),w(4),bt(e.getTotalSessionCount()),w(2),bt(e.getMaxPresenceCount()),w(2),bt(e.getTotalMatchCount()),w(2),bt(e.getTotalGorountineCount())}}function eVe(t,n){if(1&t&&(_(0,"option",35),O(1),x()),2&t){const e=n.$implicit,i=L();Ph("value",e),w(1),bt(i.ranges[e])}}const Q2=function(t){return{"background-color":t}};function tVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function nVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,tVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function iVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",37),te(2,nVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.latencyGraphData)}}function rVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function oVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,rVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function sVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",43),te(2,oVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.rateGraphData)}}function aVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function lVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,aVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function cVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",44),te(2,lVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.inputGraphData)}}function uVe(t,n){if(1&t&&(_(0,"span"),xe(1,"br")(2,"span",41),_(3,"span",42),O(4),x()()),2&t){const e=n.$implicit;w(2),S("ngStyle",Zi(3,Q2,e.color)),w(2),Af("",e.series,": ",e.value,"")}}function dVe(t,n){if(1&t&&(_(0,"div",39),O(1),te(2,uVe,5,5,"span",40),x()),2&t){const e=n.model;w(1),bn(" ",e[0].name.toLocaleString()," "),w(1),S("ngForOf",e)}}function hVe(t,n){if(1&t&&(_(0,"div",36)(1,"ngx-charts-line-chart",45),te(2,dVe,3,2,"ng-template",null,38,Xo),x()()),2&t){const e=L();w(1),S("scheme",e.colorScheme)("legend",!1)("showXAxisLabel",!1)("showYAxisLabel",!1)("animations",!1)("timeline",!1)("autoScale",!1)("xAxis",!0)("yAxis",!0)("yScaleMin",0)("roundDomains",!0)("results",e.outputGraphData)}}let fVe=(()=>{class t{route;consoleService;formBuilder;error="";showDelta=!1;statusData;rateGraphData=[];latencyGraphData=[];inputGraphData=[];outputGraphData=[];rangeForm;ranges={1:"last 1 minute",10:"last 10 minutes",30:"last 30 minutes",60:"last 1 hour",1440:"last 24 hours"};rangesKeys=Object.keys(this.ranges).map(e=>+e);colorScheme={domain:["#5AA454","#E44D25","#1e59cf","#7aa3e5","#a8385d","#d0bd00"]};samples=60;refreshTimer;$refreshTimer;constructor(e,i,r){this.route=e,this.consoleService=i,this.formBuilder=r}ngOnInit(){this.rangeForm=this.formBuilder.group({rangeMinutes:[10]}),this.route.data.subscribe(e=>{this.initData(e[0]),this.refresh(),this.refreshTimer=Gy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(r=>this.refresh())},e=>{this.error=e})}refresh(){this.consoleService.getStatus("").subscribe(e=>{this.statusData=e,this.rateGraphData=this.updateData(this.rateGraphData,"avg_rate_sec",e),this.latencyGraphData=this.updateData(this.latencyGraphData,"avg_latency_ms",e),this.inputGraphData=this.updateData(this.inputGraphData,"avg_input_kbs",e),this.outputGraphData=this.updateData(this.outputGraphData,"avg_output_kbs",e)})}generateSeries(){let e=new Date;e.setMilliseconds(0);const i=[];for(let r=0;r({name:r,value:0}))}initData(e){const i=this.generateSeries();this.latencyGraphData=e.map(r=>({name:r,series:i})),this.rateGraphData=e.map(r=>({name:r,series:i})),this.inputGraphData=e.map(r=>({name:r,series:i})),this.outputGraphData=e.map(r=>({name:r,series:i}))}updateData(e,i,r){const o=r.nodes,s=[],a=r.timestamp,l=e.map(d=>d.name),c=o.map(d=>d.name),u=this.diff(l,c);for(const d of e)u.includes(d.name)&&s.push({name:d.name,series:this.shiftData(d.series,0,a)});for(const d of o){let h=[],f={};const p=e.find(m=>m.name===d.name)?.series;h=this.shiftData(p||this.generateSeries(),d[i],a),f={name:d.name,series:h},s.push(f)}return s}shiftData(e,i,r){const o=e.slice(1);return o.push({name:new Date(r),value:i}),o}getPeriod(){return Math.floor(60*this.f.rangeMinutes.value/this.samples)}setRange(e){this.rangeForm.reset({rangeMinutes:+e.target.value}),this.reset()}reset(){this.consoleService.getStatus("").subscribe(e=>{this.initData(e.nodes.map(i=>i.name)),this.$refreshTimer?.unsubscribe(),this.refreshTimer=Gy(0,1e3*this.getPeriod()),this.$refreshTimer=this.refreshTimer.subscribe(i=>this.refresh())},e=>{this.error=e})}diff(e,i){const r=new Set(e);for(const o of i)r.delete(o);return Array.from(r)}get f(){return this.rangeForm.controls}ngOnDestroy(){this.$refreshTimer.unsubscribe()}getTotalSessionCount(){return this.statusData.nodes.reduce((e,i)=>e+i.session_count,0)}getMaxSessionCount(){return Math.max(...this.statusData.nodes.map(e=>e.session_count))}getMaxPresenceCount(){return Math.max(...this.statusData.nodes.map(e=>e.presence_count))}getMaxMatchCount(){return Math.max(...this.statusData.nodes.map(e=>e.match_count))}getTotalMatchCount(){return this.statusData.nodes.reduce((e,i)=>e+i.match_count,0)}getMaxGoroutineCount(){return Math.max(...this.statusData.nodes.map(e=>e.goroutine_count))}getTotalGorountineCount(){return this.statusData.nodes.reduce((e,i)=>e+i.goroutine_count,0)}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["app-status"]],decls:62,vars:10,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"status-table","table","table-sm","table-striped","mb-4",3,"mouseover","mouseout"],[1,"thead-light"],["scope","col"],[4,"ngIf"],[3,"formGroup"],[1,"row","no-gutters","justify-content-end"],[1,"col-12","text-right"],["ngbDropdown","","role","group",1,"btn-group"],["formControlName","rangeMinutes",1,"custom-select","custom-select-sm","ml-3",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-6","d-inline-flex","justify-content-between","align-items-center"],[1,"graph-title"],[1,"d-inline"],[1,"col-6"],["class","graph",4,"ngIf"],[1,"row","mt-4"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","clickable",4,"ngFor","ngForOf"],[1,"border-0"],[1,"clickable"],[3,"ngSwitch"],["class","mr-2","src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",4,"ngSwitchCase"],["class","mr-2","src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",4,"ngSwitchCase"],["class","mr-2","src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",4,"ngSwitchCase"],["class","mr-2","src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",4,"ngSwitchCase"],[1,"text-muted","small",3,"hidden"],["src","/static/svg/green-tick.svg","alt","","width","15","height","","ngbTooltip","OK",1,"mr-2"],["src","/static/svg/red-triangle.svg","alt","","width","15","height","","ngbTooltip","Error",1,"mr-2"],["src","/static/blue-spinner.svg","alt","","width","15","height","","ngbTooltip","Connecting",1,"mr-2"],["src","/static/red-spinner.svg","alt","","width","15","height","","ngbTooltip","Disconnecting",1,"mr-2"],[3,"value"],[1,"graph"],["xAxisLabel","Time","yAxisLabel","Latency (ms)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["seriesTooltipTemplate",""],[1,"chart-legend"],[4,"ngFor","ngForOf"],[1,"legend-label-color",3,"ngStyle"],[1,"legend-label-text"],["xAxisLabel","Time","yAxisLabel","Request Count",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Input (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"],["xAxisLabel","Time","yAxisLabel","Output (kb/s)",3,"scheme","legend","showXAxisLabel","showYAxisLabel","animations","timeline","autoScale","xAxis","yAxis","yScaleMin","roundDomains","results"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Status"),x(),te(2,q9e,4,2,"ngb-alert",1),_(3,"table",2),ke("mouseover",function(){return r.showDelta=!0})("mouseout",function(){return r.showDelta=!1}),_(4,"thead",3)(5,"tr")(6,"th",4),O(7,"Node name"),x(),_(8,"th",4),O(9,"Sessions"),x(),_(10,"th",4),O(11,"Presences"),x(),_(12,"th",4),O(13,"Authoritative Matches"),x(),_(14,"th",4),O(15,"Goroutines"),x()()(),te(16,Z9e,12,5,"tbody",5),x(),_(17,"form",6)(18,"div",7)(19,"div",8)(20,"span"),O(21,"View:"),x(),_(22,"div",9)(23,"select",10),ke("change",function(s){return r.setRange(s)}),te(24,eVe,2,2,"option",11),_A(25,"sortNumbers"),x()()()()(),_(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5",15),O(30,"Processing Latency"),x(),_(31,"small"),O(32," (ms)"),x()()(),_(33,"div",13)(34,"div",14)(35,"h5",15),O(36,"Rate"),x(),_(37,"small"),O(38," (rpc/s)"),x()()()(),_(39,"div",12)(40,"div",16),te(41,iVe,4,12,"div",17),x(),_(42,"div",16),te(43,sVe,4,12,"div",17),x()(),_(44,"div",18)(45,"div",13)(46,"div",14)(47,"h5",15),O(48,"Input"),x(),_(49,"small"),O(50," (kb/s)"),x()()(),_(51,"div",13)(52,"div",14)(53,"h5",15),O(54,"Output"),x(),_(55,"small"),O(56," (kb/s)"),x()()()(),_(57,"div",12)(58,"div",16),te(59,cVe,4,12,"div",17),x(),_(60,"div",16),te(61,hVe,4,12,"div",17),x()()),2&i&&(w(2),S("ngIf",r.error),w(14),S("ngIf",r.statusData),w(1),S("formGroup",r.rangeForm),w(7),S("ngForOf",bA(25,8,r.rangesKeys)),w(17),S("ngIf",r.latencyGraphData.length>0),w(2),S("ngIf",r.rateGraphData.length>0),w(16),S("ngIf",r.inputGraphData.length>0),w(2),S("ngIf",r.outputGraphData.length>0))},dependencies:function(){return[Un,xn,f7,Fw,d7,yo,Hu,HPe,E9e,fa,HC,UC,kv,da,ha,Ts,zs,mVe]},styles:[".graph[_ngcontent-%COMP%]{height:450px;border-radius:5px;border:solid 1px #dadae9}.graph-title[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}.table[_ngcontent-%COMP%]{table-layout:fixed}h4[_ngcontent-%COMP%]{margin-bottom:0}.status-table[_ngcontent-%COMP%]{empty-cells:hide}.status-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.status-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em;font-weight:500}.status-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #dadae9;padding:.6em 1em}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%]{border:solid 2px #dadae9;background-color:#f5f5f5}.status-table[_ngcontent-%COMP%] .total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 2px #dadae9}"]})}return t})(),pVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(it(r=>Hn(r.nodes.map(o=>o.name)))).pipe(Jl(r=>(e.data={...e.data,error:r},Hn([]))))}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mVe=(()=>{class t{transform(e){return e.sort((i,r)=>i-r)}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=_l({name:"sortNumbers",type:t,pure:!1})}return t})();var gVe=ue(1870),XI=ue(4327);function vVe(t,n){if(1&t&&(_(0,"div",13)(1,"p")(2,"b"),O(3),x(),xe(4,"input",14),x()()),2&t){const e=L(2);w(3),bt(e.confirmDeleteForm.controls.numberValueControl.value.title),w(1),Ph("formControlName",e.confirmDeleteForm.controls.numberValueControl.value.id)}}const yVe=function(t){return{"is-invalid":t}};function _Ve(t,n){if(1&t&&xe(0,"input",15),2&t){const e=L(2);S("ngClass",Zi(1,yVe,e.f.delete.touched&&e.f.delete.invalid))}}function bVe(t,n){if(1&t&&(_(0,"div",9)(1,"form",10),te(2,vVe,5,2,"div",11),te(3,_Ve,1,3,"input",12),x()()),2&t){const e=L();w(1),S("formGroup",e.confirmDeleteForm),w(1),S("ngIf",e.confirmDeleteForm.controls.numberValueControl),w(1),S("ngIf",e.confirmDeleteForm.controls.delete)}}let xVe=(()=>{class t{confirmed=new ot;canceled=new ot;title="Delete Confirmation";message="Are you sure you want to delete this item?";confirmDeleteForm;closeModal(){this.canceled.emit()}cancel(){this.canceled.emit()}confirm(){(!this.confirmDeleteForm||this.confirmDeleteForm.valid)&&this.confirmed.emit()}get f(){return this.confirmDeleteForm.controls}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Vt({type:t,selectors:[["app-delete-confirm-dialog"]],inputs:{confirmDeleteForm:"confirmDeleteForm"},outputs:{confirmed:"confirmed",canceled:"canceled"},decls:14,vars:3,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-describedby","Close","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","d-flex flex-column justify-content-center",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"click"],[1,"d-flex","flex-column","justify-content-center"],["autocomplete","off",3,"formGroup"],["class","mt-2",4,"ngIf"],["type","text","class","form-control","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",3,"ngClass",4,"ngIf"],[1,"mt-2"],["type","number","value","30","min","0",2,"width","80px",3,"formControlName"],["type","text","id","delete-confirm","placeholder","Type 'DELETE' to confirm","formControlName","delete",1,"form-control",3,"ngClass"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"h4",1),O(2),x(),_(3,"button",2),ke("click",function(){return r.closeModal()}),_(4,"span",3),O(5,"\xd7"),x()()(),_(6,"div",4),O(7),te(8,bVe,4,3,"div",5),x(),_(9,"div",6)(10,"button",7),ke("click",function(){return r.cancel()}),O(11,"Cancel"),x(),_(12,"button",8),ke("click",function(){return r.confirm()}),O(13,"Delete"),x()()),2&i&&(w(2),bt(r.title),w(5),bn(" ",r.message," "),w(1),S("ngIf",r.confirmDeleteForm))},dependencies:[Of,xn,fa,Us,L3,da,ha,z3,Ts,zs]})}return t})(),Ml=(()=>{class t{modalService;required=!1;constructor(e){this.modalService=e}openDeleteConfirmModal(e,i=null,r="",o=""){const a=this.modalService.open(xVe,{backdrop:!1,centered:!0});i&&(a.componentInstance.confirmDeleteForm=i),r&&(a.componentInstance.title=r),o&&(a.componentInstance.message=o),a.componentInstance.confirmed.subscribe(()=>{e(i?.value),a.close()}),a.componentInstance.canceled.subscribe(()=>{a.close()})}static \u0275fac=function(i){return new(i||t)(wt(m2))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wVe=["fileSelector"];function CVe(t,n){if(1&t&&(_(0,"div",8),O(1),x()),2&t){const e=L(2);w(1),bt(e.dropZoneLabel)}}function SVe(t,n){if(1&t){const e=_t();_(0,"div")(1,"input",9),ke("click",function(r){return ze(e),Ge(L(2).openFileSelector(r))}),x()()}if(2&t){const e=L(2);w(1),Ph("value",e.browseBtnLabel),S("className",e.browseBtnClassName)}}function kVe(t,n){if(1&t&&(te(0,CVe,2,1,"div",6),te(1,SVe,2,2,"div",7)),2&t){const e=L();S("ngIf",e.dropZoneLabel),w(1),S("ngIf",e.showBrowseBtn)}}function DVe(t,n){}const TVe=function(t){return{openFileSelector:t}};class Z2{constructor(n,e){this.relativePath=n,this.fileEntry=e}}let Yq=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(ge(fo))},t.\u0275dir=un({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})(),Xq=(()=>{class t{constructor(e,i){this.zone=e,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new ot,this.onFileOver=new ot,this.onFileLeave=new ot,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=r=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",r=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",r=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(e){this.useDragEnter?(this.preventAndStop(e),e.dataTransfer&&(e.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&e.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e),e.dataTransfer.dropEffect="copy")}onDragEnter(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}onDragLeave(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}dropFiles(e){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)){let i;i=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(i)}}uploadFiles(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}checkFiles(e){for(let i=0;il(r)},a=new Z2(s.name,s);this.addToQueue(a)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=Gy(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const i=this.files;this.files=[],this.onFileDrop.emit(i)}})}traverseFileTree(e,i){if(e.isFile){const r=new Z2(i,e);this.files.push(r)}else{i+="/";const r=e.createReader();let o=[];const s=()=>{this.numOfActiveReadEntries++,r.readEntries(a=>{if(a.length)o=o.concat(a),s();else if(0===o.length){const l=new Z2(i,e);this.zone.run(()=>{this.addToQueue(l)})}else for(let l=0;l{this.traverseFileTree(o[l],i+o[l].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const e=this.fileSelector.nativeElement,i=e.parentElement,r=this.getHelperFormElement(),o=this.getFileInputPlaceholderElement();i!==r&&(this.renderer.insertBefore(i,o,e),this.renderer.appendChild(r,e),r.reset(),this.renderer.insertBefore(i,e,o),this.renderer.removeChild(i,o))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(e){return!!e.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(e){this.files.push(e)}preventAndStop(e){e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(ge(ur),ge(oa))},t.\u0275cmp=Vt({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(e,i,r){if(1&e&&Ti(r,Yq,5,fo),2&e){let o;Tn(o=En())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&wo(wVe,7),2&e){let r;Tn(r=En())&&(i.fileSelector=r.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(e,i){if(1&e&&(_(0,"div",0),ke("drop",function(o){return i.dropFiles(o)})("dragover",function(o){return i.onDragOver(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragleave",function(o){return i.onDragLeave(o)}),_(1,"div",1)(2,"input",2,3),ke("change",function(o){return i.uploadFiles(o)}),x(),te(4,kVe,2,2,"ng-template",null,4,Xo),te(6,DVe,0,0,"ng-template",5),x()()),2&e){const r=sa(5);Vn("ngx-file-drop__drop-zone--over",i.isDraggingOverDropZone),S("className",i.dropZoneClassName),w(1),S("className",i.contentClassName),w(1),S("accept",i.accept)("multiple",i.multiple),ft("directory",i.directory||void 0)("webkitdirectory",i.directory||void 0)("mozdirectory",i.directory||void 0)("msdirectory",i.directory||void 0)("odirectory",i.directory||void 0),w(4),S("ngTemplateOutlet",i.contentTemplate||r)("ngTemplateOutletContext",Zi(13,TVe,i.openFileSelector))}},dependencies:[xn,Fu],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),t})(),EVe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t,bootstrap:function(){return[Xq]}}),t.\u0275inj=Di({imports:[If]}),t})();function AVe(t,n){1&t&&(_(0,"ngb-alert",21),xe(1,"img",22),_(2,"h6",23),O(3,"Failed to retrieve configuration."),x()()),2&t&&S("dismissible",!1)}function MVe(t,n){if(1&t&&(_(0,"span",32),O(1),x()),2&t){const e=L(2).$implicit;S("id",e.name),w(1),bt(e.value)}}function OVe(t,n){1&t&&(_(0,"span",33),O(1,"(empty)"),x()),2&t&&S("id",L(2).$implicit.name)}function IVe(t,n){if(1&t&&(_(0,"div",34)(1,"b"),O(2),x(),_(3,"label",26)(4,"a",27),xe(5,"img",10),x()()()),2&t){const e=L(2).index,i=L();w(2),bt(i.flatConfig[e+1].name),w(1),S("for",i.flatConfig[e+1].name),w(1),em("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",i.flatConfig[e+1].name,"",B1)}}function NVe(t,n){if(1&t&&(_(0,"span",32),O(1),x()),2&t){const e=L(3).index,i=L();S("id",i.flatConfig[e+1].name),w(1),bt(i.flatConfig[e+1].value)}}function FVe(t,n){if(1&t&&(_(0,"span",33),O(1,"(empty)"),x()),2&t){const e=L(3).index;S("id",L().flatConfig[e+1].name)}}function PVe(t,n){if(1&t&&(_(0,"div",35),te(1,NVe,2,2,"span",28),te(2,FVe,2,1,"span",29),x()),2&t){const e=L(2).index,i=L();w(1),S("ngIf",!i.isEmpty(i.flatConfig[e+1].value)),w(1),S("ngIf",i.isEmpty(i.flatConfig[e+1].value))}}function RVe(t,n){if(1&t&&(_(0,"div",25)(1,"div",7)(2,"b"),O(3),x(),_(4,"label",26)(5,"a",27),xe(6,"img",10),x()()(),_(7,"div",7),te(8,MVe,2,2,"span",28),te(9,OVe,2,1,"span",29),x(),te(10,IVe,6,3,"div",30),te(11,PVe,3,2,"div",31),x()),2&t){const e=L(),i=e.index,r=e.$implicit,o=L();Vn("border-top-0",i>0),w(3),bt(r.name),w(1),S("for",r.name),w(1),em("href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#",r.value.name,"",B1),w(3),S("ngIf",!o.isEmpty(r.value)),w(1),S("ngIf",o.isEmpty(r.value)),w(1),S("ngIf",i{class t{config;route;httpClient;modalService;consoleService;formBuilder;deleteConfirmService;configError="";uploadError="";deleteError="";jsonConfig;flatConfig;nakamaVersion;file;uploading=!1;uploadSuccess=!1;deleteSuccess=!1;deleting=!1;confirmDeleteForm;apiConfig;constructor(e,i,r,o,s,a,l){this.config=e,this.route=i,this.httpClient=r,this.modalService=o,this.consoleService=s,this.formBuilder=a,this.deleteConfirmService=l,this.apiConfig=e}ngOnInit(){this.route.data.subscribe(e=>{this.nakamaVersion=e[0].server_version;const i=JSON.parse(e[0].config);this.jsonConfig=i,this.flatConfig=this.flattenConfig(i)},e=>{this.configError=e}),this.confirmDeleteForm=this.formBuilder.group({delete:["",qr.compose([qr.required,qr.pattern("DELETE")])]})}flattenConfig(e){const i=[];return this.traverseConfig("",e,i),i.sort((o,s)=>o.name.localeCompare(s.name))}traverseConfig(e,i,r){for(const o in i)"env"!==o&&(Array.isArray(i[o])?r.push({name:e+o,value:i[o].join(", ")}):"object"==typeof i[o]?this.traverseConfig(o+".",i[o],r):r.push({name:e+o,value:i[o]}))}isEmpty(e){return""===e||0===e}exportYaml(){const e=new Blob([(0,gVe.safeDump)(this.jsonConfig)],{type:"text/yaml;charset=utf-8"});XI.saveAs(e,"config.yaml")}dropped(e){this.uploadError="",this.uploadSuccess=!1;for(const i of e)if(i.fileEntry.isFile){const r=i.fileEntry.name.split(".");r.length>1&&["json","csv"].includes(r[r.length-1].toLowerCase())?i.fileEntry.file(a=>{this.uploadFile(a)}):this.uploadError="Invalid file: must have extension .json or .csv"}}uploadFile(e){const i=new FormData;i.append(e.name,e),this.uploading=!0,this.httpClient.post(this.apiConfig.host+"/v2/console/storage/import",i,{headers:{Authorization:"Bearer "}}).subscribe(()=>{this.uploading=!1,this.uploadSuccess=!0},o=>{this.uploading=!1,this.uploadError=o})}deleteData(){this.deleteConfirmService.openDeleteConfirmModal(()=>{this.deleteError="",this.deleting=!0,this.consoleService.deleteAllData("").pipe(eO(2e3)).subscribe(()=>{this.deleting=!1,this.deleteError="",this.deleteSuccess=!0},e=>{this.deleting=!1,this.deleteError=e})},this.confirmDeleteForm,"Delete All Data","Are you sure you want to delete all the database data?")}get f(){return this.confirmDeleteForm.controls}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(ge(XC),ge(Vr),ge(YC),ge(m2),ge(Ai),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:41,vars:11,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"pb-4"],[1,"d-flex","justify-content-between","mb-4","align-items-baseline"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"config-table"],[4,"ngFor","ngForOf"],[1,"row","py-2","border","border-top-0","add-border-larger","mb-5"],[1,"col-lg-3"],[1,"pl-1"],["target","_blank","href","https://heroiclabs.com/docs/nakama/getting-started/configuration/#runtime.env",1,"d-inline"],["src","/static/svg/hint.svg","alt","","width","16","height","16"],[1,"col-lg-9"],[4,"ngIf"],[1,"section-divider","d-flex","mb-4"],["type","success",3,"dismissible","close",4,"ngIf"],["accept",".json,.csv","dropZoneClassName","drop-zone","contentClassName","drop-zone-content","dropZoneLabel","Drop CSV or JSON file here",3,"disabled","onFileDrop"],["ngx-file-drop-content-tmp",""],["role","alert",1,"alert","alert-danger","d-flex","justify-content-between","align-items-center"],["src","/static/svg/red-triangle.svg","alt","","width","16","height",""],[1,"pl-2"],["type","button",1,"btn","btn-danger",3,"disabled","click"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["class","row py-2 border",3,"border-top-0",4,"ngIf"],[1,"row","py-2","border"],[1,"pl-1",3,"for"],["target","_blank",1,"d-inline",3,"href"],["class","text-break-all",3,"id",4,"ngIf"],["class","text-muted",3,"id",4,"ngIf"],["class","col-md-3 left-line",4,"ngIf"],["class","col-md-3",4,"ngIf"],[1,"text-break-all",3,"id"],[1,"text-muted",3,"id"],[1,"col-md-3","left-line"],[1,"col-md-3"],["class","mb-0 text-break-all",4,"ngFor","ngForOf"],[1,"mb-0","text-break-all"],[1,"mb-0","text-muted"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){1&i&&(te(0,AVe,4,1,"ngb-alert",0),_(1,"h2",1),O(2,"Server Configuration"),x(),_(3,"div",2)(4,"h5")(5,"b"),O(6,"Server version:"),x(),O(7),x(),_(8,"button",3),ke("click",function(){return r.exportYaml()}),O(9,"Export Configuration"),x()(),_(10,"div",4),te(11,jVe,2,1,"ng-container",5),_(12,"div",6)(13,"div",7)(14,"b"),O(15,"runtime.env"),x(),_(16,"label",8)(17,"a",9),xe(18,"img",10),x()()(),_(19,"div",11),te(20,BVe,2,1,"div",12),te(21,$Ve,3,0,"div",12),x()()(),_(22,"h5",13),O(23,"Import storage data"),x(),_(24,"p"),O(25,"Import storage objects from a CSV or JSON file by dragging and dropping it below."),x(),te(26,VVe,6,2,"ngb-alert",0),te(27,HVe,4,1,"ngb-alert",14),_(28,"ngx-file-drop",15),ke("onFileDrop",function(s){return r.dropped(s)}),te(29,UVe,2,0,"ng-template",16),x(),_(30,"h5",13),O(31,"Delete all data"),x(),te(32,zVe,6,2,"ngb-alert",0),te(33,GVe,4,1,"ngb-alert",14),_(34,"div",17)(35,"div"),xe(36,"img",18),_(37,"small",19),O(38,"Warning - this operation is not reversible!"),x()(),_(39,"button",20),ke("click",function(){return r.deleteData()}),O(40,"Delete all"),x()()),2&i&&(S("ngIf",r.configError),w(7),bn(" ",r.nakamaVersion,""),w(4),S("ngForOf",r.flatConfig),w(9),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&r.jsonConfig.runtime.env.length>0),w(1),S("ngIf",r.jsonConfig.runtime&&r.jsonConfig.runtime.env&&0===r.jsonConfig.runtime.env.length),w(5),S("ngIf",r.uploadError),w(1),S("ngIf",r.uploadSuccess),w(1),S("disabled",r.uploading),w(4),S("ngIf",r.deleteError),w(1),S("ngIf",r.deleteSuccess),w(6),S("disabled",r.deleting))},dependencies:[Xq,Yq,Un,xn,yo],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.text-break-all[_ngcontent-%COMP%]{word-break:break-all;word-wrap:anywhere}.config-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#fafafc}.config-table[_ngcontent-%COMP%] .left-line[_ngcontent-%COMP%]{border-left:solid 1px #dadae9}"]})}return t})(),qVe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getConfig("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YVe(t,n){if(1&t&&(_(0,"ngb-alert",51),xe(1,"img",52),_(2,"h6",53),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function XVe(t,n){if(1&t&&(_(0,"ngb-alert",54),xe(1,"img",55),_(2,"h6",53),O(3),x()()),2&t){const e=L();S("dismissible",!0),w(3),bt(e.successMessage)}}function JVe(t,n){1&t&&(_(0,"tr")(1,"td",56),O(2,"No additional users are setup. Create a new user below."),x()()),2&t&&(w(1),S("colSpan",5))}function KVe(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td"),O(2),x(),_(3,"td"),O(4),x(),_(5,"td")(6,"span",37),O(7,"Administrator"),x(),_(8,"span",37),O(9,"Developer"),x(),_(10,"span",37),O(11,"Maintainer"),x(),_(12,"span",37),O(13,"View Only"),x()(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x(),_(18,"td",57)(19,"div",35)(20,"button",58),ke("click",function(){const o=ze(e).$implicit;return Ge(L().requireUserMfa(o.username,!0))}),O(21,"Enforce MFA"),x(),_(22,"button",58),ke("click",function(){const o=ze(e).$implicit;return Ge(L().resetUserMfa(o.username))}),O(23,"Reset MFA"),x(),_(24,"button",59),ke("click",function(){const o=ze(e).$implicit;return Ge(L().deleteUser(o.username))}),O(25,"Delete"),x()()()()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.username),w(2),bt(e.email),w(2),S("hidden",e.role!==i.adminRole),w(2),S("hidden",e.role!==i.developerRole),w(2),S("hidden",e.role!==i.maintainerRole),w(2),S("hidden",e.role!==i.readonlyRole),w(3),bt(e.mfa_required),w(2),bt(e.mfa_enabled),w(3),S("disabled",e.mfa_required),w(2),S("disabled",!e.mfa_enabled)}}function QVe(t,n){if(1&t&&(_(0,"ngb-alert",51),xe(1,"img",52),_(2,"h6",53),O(3,"An error occurred:"),x(),_(4,"p",60),O(5),x()()),2&t){const e=L();S("dismissible",!1),w(5),bt(e.userCreateError)}}const JI=function(t){return{"is-invalid":t}};let ZVe=(()=>{class t{route;consoleService;formBuilder;deleteConfirmService;error="";userCreateError="";successMessage="";users=[];createUserForm;adminRole=ri.USER_ROLE_ADMIN;developerRole=ri.USER_ROLE_DEVELOPER;maintainerRole=ri.USER_ROLE_MAINTAINER;readonlyRole=ri.USER_ROLE_READONLY;constructor(e,i,r,o){this.route=e,this.consoleService=i,this.formBuilder=r,this.deleteConfirmService=o}ngOnInit(){this.createUserForm=this.formBuilder.group({username:["",qr.required],email:["",[qr.required,qr.email]],password:["",qr.compose([qr.required,qr.minLength(8)])],role:[+this.readonlyRole,qr.required],mfa:[!0,qr.required],newsletter:[!1]}),this.route.data.subscribe(e=>{const i=e[0];this.users.length=0,this.users.push(...i.users)},e=>{this.error=e})}requireUserMfa(e,i){this.error="",this.consoleService.requireUserMfa("",e,{required:i}).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.error="",this.users.length=0,this.users.push(...r.users),this.successMessage=`User ${e} Multi-factor authentication is now required`,setTimeout(()=>{this.successMessage=""},5e3)},r=>{this.error=r})}resetUserMfa(e){this.error="",this.consoleService.resetUserMfa("",e).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users),this.successMessage=`User ${e} Multi-factor authentication was reset successfully`,setTimeout(()=>{this.successMessage=""},5e3)},i=>{this.error=i})}deleteUser(e){this.error="",this.deleteConfirmService.openDeleteConfirmModal(()=>{this.consoleService.deleteUser("",e).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(i=>{this.error="",this.users.length=0,this.users.push(...i.users)},i=>{this.error=i})})}addUser(){this.userCreateError="",this.createUserForm.disable();let e=ri.USER_ROLE_READONLY;switch(this.f.role.value){case 1:e=ri.USER_ROLE_ADMIN;break;case 2:e=ri.USER_ROLE_DEVELOPER;break;case 3:e=ri.USER_ROLE_MAINTAINER;break;case 4:e=ri.USER_ROLE_READONLY}this.consoleService.addUser("",{username:this.f.username.value,email:this.f.email.value,password:this.f.password.value,role:e,newsletter_subscription:this.f.newsletter.value,mfa_required:this.f.mfa.value}).pipe(it(()=>this.consoleService.listUsers(""))).subscribe(r=>{this.userCreateError="",this.createUserForm.reset({role:+e,mfa:!0}),this.createUserForm.enable(),this.users.length=0,this.users.push(...r.users)},r=>{this.userCreateError=r,this.createUserForm.enable()})}get f(){return this.createUserForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["app-users"]],decls:135,vars:26,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"user-details","mb-5","table","table-bordered","table-sm","table-striped"],[1,"thead-light"],[2,"width","400px"],[2,"width","300px"],[2,"width","90px"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"section-divider","d-flex","mb-4"],[1,"mb-4","alert-permissions",3,"type","dismissible"],[1,"alert-title","font-weight-bold"],[1,"d-flex","flex-wrap","flex-row"],[1,"col","col-md-3","p-4","flex-fill","flex-grow-1"],[1,"d-flex","align-items-center","mb-3"],["src","/static/svg/role-admin.svg","alt","","width","30","height","",1,"mr-2"],[1,"m-0","font-weight-bold"],["src","/static/svg/role-developer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-maintainer.svg","alt","","width","30","height","",1,"mr-2"],["src","/static/svg/role-viewonly.svg","alt","","width","30","height","",1,"mr-2"],[1,"add-border","rounded"],[3,"formGroup","ngSubmit"],[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"col-md-3"],["for","email",1,"d-inline"],[1,"col-md-9","ml-0","p-0"],["type","email","id","email","placeholder","email@example.com","required","","formControlName","email",1,"form-control",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control",3,"ngClass"],["for","password",1,"d-inline"],["type","password","id","password","placeholder","Password","required","","formControlName","password",1,"form-control",3,"ngClass"],[1,"d-inline"],[1,"btn-group"],["disabled","",1,"btn","btn-outline-dark","disabled"],[3,"hidden"],["ngbDropdown","","role","group",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col","d-flex","align-items-center"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","mfa","formControlName","mfa",1,"custom-control-input","mr-2","my-2"],["for","mfa",1,"form-check-label","custom-control-label"],[1,"row","no-gutters","add-border-single-row-bottom","mb-4"],["type","checkbox","id","newsletter","formControlName","newsletter",1,"custom-control-input","mr-2","my-2"],["for","newsletter",1,"form-check-label","custom-control-label"],[1,""],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[1,"text-muted",3,"colSpan"],[2,"width","310px"],["type","button",1,"btn","btn-warning","btn-outline-dark",3,"disabled","click"],["type","button",1,"btn","btn-danger","btn-outline-dark",3,"click"],[1,"mb-0","pl-4"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Management"),x(),te(2,YVe,4,2,"ngb-alert",1),te(3,XVe,4,2,"ngb-alert",2),_(4,"table",3)(5,"thead",4)(6,"tr")(7,"th",5),O(8,"Username"),x(),_(9,"th"),O(10,"Email"),x(),_(11,"th",6),O(12,"Role"),x(),_(13,"th"),O(14,"MFA Required"),x(),_(15,"th"),O(16,"MFA Setup"),x(),_(17,"th",7),O(18,"Action"),x()()(),_(19,"tbody"),te(20,JVe,3,1,"tr",8),te(21,KVe,26,10,"tr",9),x()(),_(22,"h5",10),O(23,"Add new user"),x(),_(24,"ngb-alert",11)(25,"h6",12),O(26,"User roles"),x(),_(27,"div",13)(28,"div",14)(29,"div",15),xe(30,"img",16),_(31,"h6",17),O(32,"Administrator"),x()(),_(33,"small"),O(34," Owners have complete control over the server, its users and resources. "),x()(),_(35,"div",14)(36,"div",15),xe(37,"img",18),_(38,"h6",17),O(39,"Developer"),x()(),_(40,"small"),O(41," Like Administrators, Developers have complete control over the server, resources and data. However they cannot add, change or delete console users. "),x()(),_(42,"div",14)(43,"div",15),xe(44,"img",19),_(45,"h6",17),O(46,"Maintainer"),x()(),_(47,"small"),O(48," Maintainers have access to adding, changing and delete client resources such as accounts, storage and leaderboard records. They don't have access to the API Explorer or the console users. "),x()(),_(49,"div",14)(50,"div",15),xe(51,"img",20),_(52,"h6",17),O(53,"View Only"),x()(),_(54,"small"),O(55," View Only users can only view client resources but cannot make any changes to the data whatsoever. "),x()()()(),te(56,QVe,6,2,"ngb-alert",1),_(57,"div",21)(58,"form",22),ke("ngSubmit",function(){return r.addUser()}),_(59,"div",23)(60,"div",24)(61,"div",25)(62,"label",26),O(63,"Email"),x()(),_(64,"div",27),xe(65,"input",28),_(66,"div",29),O(67,"Email is required"),x()()()(),_(68,"div",23)(69,"div",24)(70,"div",25)(71,"label",30),O(72,"Username"),x()(),_(73,"div",27),xe(74,"input",31),_(75,"div",29),O(76,"Username is required"),x()()()(),_(77,"div",23)(78,"div",24)(79,"div",25)(80,"label",32),O(81,"Password"),x()(),_(82,"div",27),xe(83,"input",33),_(84,"div",29),O(85,"Password is required, must be 8 chars or longer and consist of at least a capital letter, a small letter and a number."),x()()()(),_(86,"div",23)(87,"div",24)(88,"div",25)(89,"label",34),O(90,"Role"),x()(),_(91,"div",27)(92,"div",35)(93,"button",36)(94,"span",37),O(95,"Administrator"),x(),_(96,"span",37),O(97,"Developer"),x(),_(98,"span",37),O(99,"Maintainer"),x(),_(100,"span",37),O(101,"View Only"),x()(),_(102,"div",38),xe(103,"button",39),_(104,"div",40)(105,"button",41),ke("click",function(){return r.f.role.setValue(+r.adminRole)}),O(106,"Administrator"),x(),_(107,"button",41),ke("click",function(){return r.f.role.setValue(+r.developerRole)}),O(108,"Developer"),x(),_(109,"button",41),ke("click",function(){return r.f.role.setValue(+r.maintainerRole)}),O(110,"Maintainer"),x(),_(111,"button",41),ke("click",function(){return r.f.role.setValue(+r.readonlyRole)}),O(112,"View Only"),x()()()(),_(113,"div",29),O(114,"Role is required"),x()()()(),_(115,"div",23)(116,"div",42)(117,"div",25)(118,"label",34),O(119,"Require Multi-factor Authentication"),x()(),_(120,"div",27)(121,"div",43),xe(122,"input",44)(123,"label",45),x()()()(),_(124,"div",46)(125,"div",42),xe(126,"div",25),_(127,"div",27)(128,"div",43),xe(129,"input",47),_(130,"label",48),O(131,"Subscribe to Heroic Labs' newsletters to receive latest updates to Nakama and other news."),x()()()()(),_(132,"div",49)(133,"button",50),O(134,"Save"),x()()()()),2&i&&(w(2),S("ngIf",r.error),w(1),S("ngIf",r.successMessage),w(17),S("ngIf",0===r.users.length),w(1),S("ngForOf",r.users),w(3),S("type","secondary")("dismissible",!1),w(32),S("ngIf",r.userCreateError),w(2),S("formGroup",r.createUserForm),w(7),S("ngClass",Zi(20,JI,r.f.email.dirty&&r.f.email.errors)),w(1),S("hidden",r.f.email.disabled||r.f.email.valid||r.f.email.pristine),w(8),S("ngClass",Zi(22,JI,r.f.username.dirty&&r.f.username.errors)),w(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),w(8),S("ngClass",Zi(24,JI,r.f.password.dirty&&r.f.password.errors)),w(1),S("hidden",r.f.password.disabled||r.f.password.valid||r.f.password.pristine),w(10),S("hidden",r.f.role.value!==+r.adminRole),w(2),S("hidden",r.f.role.value!==+r.developerRole),w(2),S("hidden",r.f.role.value!==+r.maintainerRole),w(2),S("hidden",r.f.role.value!==+r.readonlyRole),w(13),S("hidden",r.f.role.disabled||r.f.role.valid||r.f.role.pristine),w(20),S("disabled",r.createUserForm.invalid))},dependencies:[Of,Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,OC,da,ha,qh,Ts,zs],styles:[".user-details[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.user-details[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.user-details[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.6em 1em}.alert-permissions[_ngcontent-%COMP%]{padding:0}.alert-permissions[_ngcontent-%COMP%] .alert-title[_ngcontent-%COMP%]{padding:1rem}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%]{border-top:solid 1px #dadae9;margin:0}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{border-right:solid 1px #dadae9}.alert-permissions[_ngcontent-%COMP%] .flex-row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:last-child{border-right:none}"]})}return t})(),eHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listUsers("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tHe(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Failed to retrieve runtime information: ",e.error,"")}}function nHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),bt(e.path),w(2),bt(e.mod_time)}}function iHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No Go modules were found."),x(),xe(3,"td"),x())}function rHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),bt(e.path),w(2),bt(e.mod_time)}}function oHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No Lua modules were found."),x(),xe(3,"td"),x())}function sHe(t,n){if(1&t&&(_(0,"tr")(1,"td"),O(2),x(),_(3,"td",13),O(4),x()()),2&t){const e=n.$implicit;w(2),bt(e.path),w(2),bt(e.mod_time)}}function aHe(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No JavaScript modules were found."),x(),xe(3,"td"),x())}const KI=function(){return["/apiexplorer"]},QI=function(t){return{endpoint:t}};function lHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),bt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function cHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No Go RPC functions were found."),x()())}function uHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),bt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function dHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No Lua RPC functions were found."),x()())}function hHe(t,n){if(1&t&&(_(0,"tr")(1,"td")(2,"code"),O(3),x()(),_(4,"td",15)(5,"a",16),O(6,"API Explorer"),x()()()),2&t){const e=n.$implicit;w(3),bt(e),w(2),S("routerLink",cl(3,KI))("queryParams",Zi(4,QI,e))}}function fHe(t,n){1&t&&(_(0,"tr")(1,"td",17),O(2,"No JavaScript RPC functions were found."),x()())}let pHe=(()=>{class t{route;consoleService;error="";runtimeInfo;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){this.route.data.subscribe(e=>{this.runtimeInfo=e[0]},e=>{this.error=e})}ngOnDestroy(){}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"pb-4"],["type","danger",3,"dismissible",4,"ngIf"],[1,"runtime-table","mb-4","table","table-sm","table-bordered","mb-5"],[1,"thead-light"],[2,"width","180px"],[4,"ngFor","ngForOf"],[4,"ngIf"],["colspan","2"],[1,"mb-4","section-divider","d-flex"],[1,"runtime-table","table","table-sm","table-bordered"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","200px"],[1,"text-muted"],[2,"width","180px","text-align","center"],[1,"btn","btn-sm","btn-secondary",3,"routerLink","queryParams"],["colspan","2",1,"text-muted"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Runtime Modules"),x(),te(2,tHe,4,2,"ngb-alert",1),_(3,"table",2)(4,"thead",3)(5,"tr")(6,"th"),O(7,"Go Modules"),x(),_(8,"th",4),O(9,"Last Modified"),x()()(),_(10,"tbody"),te(11,nHe,5,2,"tr",5),te(12,iHe,4,0,"tr",6),x(),_(13,"thead",3)(14,"tr")(15,"th",7),O(16,"Lua Modules"),x()()(),_(17,"tbody"),te(18,rHe,5,2,"tr",5),te(19,oHe,4,0,"tr",6),x(),_(20,"thead",3)(21,"tr")(22,"th",7),O(23,"JavaScript Modules"),x()()(),_(24,"tbody"),te(25,sHe,5,2,"tr",5),te(26,aHe,4,0,"tr",6),x()(),_(27,"h4",8),O(28,"Registered RPC Functions"),x(),_(29,"table",9)(30,"thead",3)(31,"tr")(32,"th",7),O(33,"Go RPC Functions"),x()()(),_(34,"tbody"),te(35,lHe,7,6,"tr",5),te(36,cHe,3,0,"tr",6),x(),_(37,"thead",3)(38,"tr")(39,"th",7),O(40,"Lua RPC Functions"),x()()(),_(41,"tbody"),te(42,uHe,7,6,"tr",5),te(43,dHe,3,0,"tr",6),x(),_(44,"thead",3)(45,"tr")(46,"th",7),O(47,"JavaScript RPC Functions"),x()()(),_(48,"tbody"),te(49,hHe,7,6,"tr",5),te(50,fHe,3,0,"tr",6),x()()),2&i&&(w(2),S("ngIf",r.error),w(9),S("ngForOf",r.runtimeInfo.go_modules),w(1),S("ngIf",0===r.runtimeInfo.go_modules.length),w(6),S("ngForOf",r.runtimeInfo.lua_modules),w(1),S("ngIf",0===r.runtimeInfo.lua_modules.length),w(6),S("ngForOf",r.runtimeInfo.js_modules),w(1),S("ngIf",0===r.runtimeInfo.js_modules.length),w(9),S("ngForOf",r.runtimeInfo.go_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.go_rpc_functions.length),w(6),S("ngForOf",r.runtimeInfo.lua_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.lua_rpc_functions.length),w(6),S("ngForOf",r.runtimeInfo.js_rpc_functions),w(1),S("ngIf",0===r.runtimeInfo.js_rpc_functions.length))},dependencies:[Ru,Un,xn,yo],styles:["label[_ngcontent-%COMP%]{margin-bottom:0}.opaque[_ngcontent-%COMP%]{opacity:40%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.runtime-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fff}.runtime-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6em 1em;font-weight:500}.runtime-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1em;padding-right:1em;vertical-align:middle}"]})}return t})(),mHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getRuntime("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gHe(t,n){1&t&&(_(0,"span"),O(1,"Filter by collection"),x())}function vHe(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),bt(e.f.collection.value)}}function yHe(t,n){if(1&t){const e=_t();_(0,"button",34),ke("click",function(){const o=ze(e).$implicit;return Ge(L().f.collection.setValue(o))}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function _He(t,n){if(1&t&&(_(0,"ngb-alert",35),xe(1,"img",36),_(2,"h6",37),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying storage objects: ",e.error,"")}}function bHe(t,n){1&t&&(_(0,"th",38),O(1,"Remove"),x())}function xHe(t,n){1&t&&(_(0,"tr")(1,"td",39),O(2,"No storage objects found - change the filter criteria or add new objects."),x()())}function wHe(t,n){if(1&t){const e=_t();_(0,"td",42)(1,"button",43),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteObject(r,s,a))}),O(2,"Delete"),x()()}}function CHe(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(2),x(),_(3,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(4),x(),_(5,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(6),x(),_(7,"td",40),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewObject(o))}),O(8),x(),te(9,wHe,3,0,"td",41),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.collection),w(2),bt(e.key),w(2),bt(e.user_id),w(2),bt(e.update_time),w(1),S("ngIf",i.deleteAllowed())}}let SHe=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";collections=[];objects=[];objectCount=0;nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.searchForm=this.formBuilder.group({collection:[""],key:[""],user_id:[""]});const e=this.route.snapshot.queryParamMap;this.f.collection.setValue(e.get("collection")),this.f.key.setValue(e.get("key")),this.f.user_id.setValue(e.get("user_id")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.collection.value||this.f.user_id.value)&&this.search(0),this.route.data.subscribe(i=>{this.collections.length=0,this.collections.push(...i[0].collections),this.objectCount=i[1].total_count,this.nextCursor=i[1].next_cursor,this.prevCursor=i[1].prev_cursor,this.objects.length=0,this.objects.push(...i[1].objects)},i=>{this.error=i})}disableSearch(){return!(!this.f.key.value||""===this.f.key.value||this.f.collection.value&&""!==this.f.collection.value)}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listStorage("",this.f.user_id.value,this.f.key.value,this.f.collection.value,i).subscribe(r=>{this.error="",this.objectCount=r.total_count,this.nextCursor=r.next_cursor,this.objects.length=0,this.objects.push(...r.objects),this.router.navigate([],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteObject(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteStorageObject("",r.collection,r.key,r.user_id,r.version).subscribe(()=>{this.error="",this.objectCount--,this.objects.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}viewObject(e){this.router.navigate(["/storage",e.collection,e.key,e.user_id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:50,vars:15,consts:[[1,"pb-1"],[1,"pb-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius",3,"disabled"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",1,"btn","btn-secondary","text-secondary",3,"hidden","click"],[1,"dropdown-divider",3,"hidden"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","text","formControlName","key","placeholder","Filter by key",1,"form-control"],["type","text","formControlName","user_id","placeholder","Filter by user ID",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Storage Objects"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6)(9,"div",7)(10,"div",8)(11,"button",9),te(12,gHe,2,0,"span",10),te(13,vHe,2,1,"span",10),x(),_(14,"div",11)(15,"button",12),ke("click",function(){return r.f.collection.reset()}),O(16,"\u2718 Deselect collection"),x(),xe(17,"div",13),te(18,yHe,2,1,"button",14),x()()(),xe(19,"input",15)(20,"input",16),_(21,"div",17)(22,"span",18),ke("click",function(){return r.f.user_id.setValue(r.systemUserId)}),xe(23,"img",19),x()(),_(24,"div",17)(25,"button",20),ke("click",function(){return r.search(0)}),O(26,"Search"),x()()()()(),_(27,"div",21)(28,"div",22)(29,"button",23),ke("click",function(){return r.search(0)}),xe(30,"img",24),x(),_(31,"button",23),ke("click",function(){return r.search(1)}),xe(32,"img",25),x()()()()(),te(33,_He,4,2,"ngb-alert",26),_(34,"div",27)(35,"table",28)(36,"thead",29)(37,"tr")(38,"th"),O(39,"Collection Name"),x(),_(40,"th"),O(41,"Key Name"),x(),_(42,"th",30),O(43,"User ID"),x(),_(44,"th",31),O(45,"Last Update"),x(),te(46,bHe,2,0,"th",32),x()(),_(47,"tbody"),te(48,xHe,3,0,"tr",10),te(49,CHe,10,5,"tr",33),x()()()),2&i&&(w(3),bn("",r.objectCount," objects found."),w(4),S("formGroup",r.searchForm),w(4),S("disabled",0===r.collections.length),w(1),S("ngIf",!r.f.collection.value||""===r.f.collection.value),w(1),S("ngIf",r.f.collection.value&&""!==r.f.collection.value),w(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),w(2),S("hidden",!r.f.collection.value||""===r.f.collection.value),w(1),S("ngForOf",r.collections),w(7),S("disabled",r.disableSearch()),w(4),S("disabled",0===r.objects.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.objects.length),w(1),S("ngForOf",r.objects))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),kHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listStorageCollections("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DHe=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("collection"),o=e.queryParamMap.get("key"),s=e.queryParamMap.get("user_id");return this.consoleService.listStorage("",s,o,r,null)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ZI,Jq,Kq,Qq,Zq,eY,tY,nY,iY,rY,oY,sY,aY,lY,cY,uY,dY,hY,fY,pY,mY,gY,vY,yY,_Y,bY,xY,wY,CY,SY,kY,DY,TY,EY,AY,MY,OY,IY,NY,FY,PY,RY,jY,LY,BY,$Y,VY,HY,UY,zY,GY,WY,qY,YY,XY,JY,KY,QY,ZY,eX,tX,nX,iX,rX,oX,sX,aX,lX,cX,uX,dX,hX,fX,pX,mX,gX,vX,yX,_X,bX,xX,wX,CX,SX,kX,DX,TX,EX,AX,MX,OX,IX,NX,FX,PX,RX,jX,LX,BX,$X,VX,HX,UX,zX,GX,WX,qX,YX,XX,JX,KX,QX,ZX,eJ,tJ,nJ,iJ,rJ,oJ,sJ,aJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,mJ,gJ,vJ,yJ,_J,bJ,xJ,wJ,CJ,SJ,kJ,DJ,TJ,EJ,AJ,MJ,OJ,IJ,NJ,FJ,PJ,RJ,jJ,LJ,BJ,$J,VJ,HJ,UJ,zJ,GJ,WJ,qJ,YJ,XJ,JJ,KJ,QJ,ZJ,eK,tK,nK,iK,rK,oK,sK,aK,lK,cK,uK,dK,hK,fK,pK,mK,gK,vK,yK,_K,bK,xK,wK,CK,SK,kK,DK,TK,EK,AK,MK,OK,IK,NK,FK,PK,RK,jK,LK,BK,$K,VK,HK,UK,zK,GK,WK,qK,YK,XK,JK,KK,QK,ZK,eQ,tQ,nQ,iQ,rQ,oQ,sQ,aQ,lQ,cQ,uQ,dQ,hQ,fQ,pQ,mQ,gQ,vQ,yQ,_Q,bQ,xQ,wQ,CQ,SQ,kQ,DQ,TQ,EQ,AQ,MQ,OQ,IQ,NQ,FQ,PQ,RQ,jQ,LQ,BQ,$Q,VQ,HQ,UQ,zQ,GQ,WQ,qQ,YQ,XQ,JQ,KQ,QQ,ZQ,eZ,tZ,nZ,iZ,rZ,oZ,sZ,aZ,THe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],EHe=["mainAxis","crossAxis","limiter"];function O_(t){var n="function"==typeof Map?new Map:void 0;return O_=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return eN(e,arguments,er(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),I_(r,e)},O_(t)}function eN(t,n,e){return(eN=fZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&I_(a,o.prototype),a}).apply(null,arguments)}function Pe(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}function lZ(t,n){if(null==t)return{};var e,i,r=function(s,a){if(null==s)return{};var l,c,u={},d=Object.keys(s);for(c=0;c=0||(u[l]=s[l]);return u}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function He(t,n){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=eS(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},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 o,s=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var l=e.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||null==e.return||e.return()}finally{if(a)throw o}}}}function _n(){_n=function(){return t};var t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(X,oe,P){X[oe]=P.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(X,oe,P){return Object.defineProperty(X,oe,{value:P,enumerable:!0,configurable:!0,writable:!0}),X[oe]}try{l({},"")}catch{l=function(oe,P,W){return oe[P]=W}}function c(X,oe,P,W){var H=Object.create((oe&&oe.prototype instanceof h?oe:h).prototype),pe=new j(W||[]);return i(H,"_invoke",{value:D(X,P,pe)}),H}function u(X,oe,P){try{return{type:"normal",arg:X.call(oe,P)}}catch(W){return{type:"throw",arg:W}}}t.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(U([])));v&&v!==n&&e.call(v,o)&&(m=v);var y=p.prototype=h.prototype=Object.create(m);function b(X){["next","throw","return"].forEach(function(oe){l(X,oe,function(P){return this._invoke(oe,P)})})}function C(X,oe){function P(J,H,pe,A){var N=u(X[J],X,H);if("throw"!==N.type){var F=N.arg,q=F.value;return q&&"object"==wn(q)&&e.call(q,"__await")?oe.resolve(q.__await).then(function(V){P("next",V,pe,A)},function(V){P("throw",V,pe,A)}):oe.resolve(q).then(function(V){F.value=V,pe(F)},function(V){return P("throw",V,pe,A)})}A(N.arg)}var W;i(this,"_invoke",{value:function(J,H){function pe(){return new oe(function(A,N){P(J,H,A,N)})}return W=W?W.then(pe,pe):pe()}})}function D(X,oe,P){var W="suspendedStart";return function(J,H){if("executing"===W)throw new Error("Generator is already running");if("completed"===W){if("throw"===J)throw H;return{value:void 0,done:!0}}for(P.method=J,P.arg=H;;){var pe=P.delegate;if(pe){var A=E(pe,P);if(A){if(A===d)continue;return A}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if("suspendedStart"===W)throw W="completed",P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);W="executing";var N=u(X,oe,P);if("normal"===N.type){if(W=P.done?"completed":"suspendedYield",N.arg===d)continue;return{value:N.arg,done:P.done}}"throw"===N.type&&(W="completed",P.method="throw",P.arg=N.arg)}}}function E(X,oe){var P=oe.method,W=X.iterator[P];if(void 0===W)return oe.delegate=null,"throw"===P&&X.iterator.return&&(oe.method="return",oe.arg=void 0,E(X,oe),"throw"===oe.method)||"return"!==P&&(oe.method="throw",oe.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var J=u(W,X.iterator,oe.arg);if("throw"===J.type)return oe.method="throw",oe.arg=J.arg,oe.delegate=null,d;var H=J.arg;return H?H.done?(oe[X.resultName]=H.value,oe.next=X.nextLoc,"return"!==oe.method&&(oe.method="next",oe.arg=void 0),oe.delegate=null,d):H:(oe.method="throw",oe.arg=new TypeError("iterator result is not an object"),oe.delegate=null,d)}function B(X){var oe={tryLoc:X[0]};1 in X&&(oe.catchLoc=X[1]),2 in X&&(oe.finallyLoc=X[2],oe.afterLoc=X[3]),this.tryEntries.push(oe)}function z(X){var oe=X.completion||{};oe.type="normal",delete oe.arg,X.completion=oe}function j(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(B,this),this.reset(!0)}function U(X){if(X){var oe=X[o];if(oe)return oe.call(X);if("function"==typeof X.next)return X;if(!isNaN(X.length)){var P=-1,W=function J(){for(;++P=0;--W){var J=this.tryEntries[W],H=J.completion;if("root"===J.tryLoc)return P("end");if(J.tryLoc<=this.prev){var pe=e.call(J,"catchLoc"),A=e.call(J,"finallyLoc");if(pe&&A){if(this.prev=0;--P){var W=this.tryEntries[P];if(W.tryLoc<=this.prev&&e.call(W,"finallyLoc")&&this.prev=0;--oe){var P=this.tryEntries[oe];if(P.finallyLoc===X)return this.complete(P.completion,P.afterLoc),z(P),d}},catch:function(X){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var P=this.tryEntries[oe];if(P.tryLoc===X){var W=P.completion;if("throw"===W.type){var J=W.arg;z(P)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(X,oe,P){return this.delegate={iterator:U(X),resultName:oe,nextLoc:P},"next"===this.method&&(this.arg=void 0),d}},t}function cZ(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function or(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){cZ(o,i,r,s,a,"next",l)}function a(l){cZ(o,i,r,s,a,"throw",l)}s(void 0)})}}function Jn(t,n){return dZ(t)||function(e,i){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,s,a,l,c=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,0===i){if(Object(r)!==r)return;u=!1}else for(;!(u=(o=a.call(r)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}(t,n)||eS(t,n)||uZ()}function uZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dZ(t){if(Array.isArray(t))return t}function hZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function nt(t){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function er(t){return(er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function Oe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function pZ(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e32){for(var n=[],e=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=e.bubbles,r=void 0!==i&&i,o=e.cancelable,s=void 0!==o&&o,a=document.createEvent("CustomEvent");return a.initCustomEvent(t,r,s,n),a}function Xd(t,n){return new t(n)}var F_,nS=new Map,rN=0;function TZ(t,n,e,i,r,o,s){for(var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/i,c="{\n",u=0;u<=1;u+=l){var d=n+(e-n)*o(u);c+=100*u+"%{".concat(s(d,1-d),"}\n")}var h=c+"100% {".concat(s(e,1-e),"}\n}"),f="__svelte_".concat(function FHe(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(h),"_").concat(a),p=iN(t),m=nS.get(p)||function PHe(t,n){var e={stylesheet:IHe(n),rules:{}};return nS.set(t,e),e}(p,t),g=m.stylesheet,v=m.rules;v[f]||(v[f]=!0,g.insertRule("@keyframes ".concat(f," ").concat(h),g.cssRules.length));var y=t.style.animation||"";return t.style.animation="".concat(y?"".concat(y,", "):"").concat(f," ").concat(i,"ms linear ").concat(r,"ms 1 both"),rN+=1,f}function P_(t){F_=t}function Xv(){if(!F_)throw new Error("Function called outside component initialization");return F_}function eu(t){Xv().$$.on_mount.push(t)}function qu(t){Xv().$$.on_destroy.push(t)}function EZ(){var t=Xv();return function(n,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[n];if(s){var a=DZ(n,e,{cancelable:void 0!==r&&r});return s.slice().forEach(function(l){l.call(t,a)}),!a.defaultPrevented}return!0}}function AZ(t,n){return Xv().$$.context.set(t,n),n}function Aa(t){return Xv().$$.context.get(t)}function iS(t,n){var e=this,i=t.$$.callbacks[n.type];i&&i.slice().forEach(function(r){return r.call(e,n)})}var Jv=[],Xi=[],rS=[],oN=[],MZ=Promise.resolve(),sN=!1;function OZ(){sN||(sN=!0,MZ.then(IZ))}function tc(){return OZ(),MZ}function Lm(t){rS.push(t)}function Yu(t){oN.push(t)}var oS,aN=new Set,Kv=0;function IZ(){if(0===Kv){var t=F_;do{try{for(;Kvl.start&&(a=d(l,b),l=null,lN(t,a.b,"start"),z&&(u(),c=TZ(t,s,a.b,a.duration,0,D,o.css))),a&&(U>=a.end?(B(s=a.b,1-s),lN(t,a.b,"end"),l||(a.b?u():--a.group.r||po(a.group.c)),a=null):U>=a.start&&(s=a.a+a.d*D((U-a.start)/a.duration),B(s,1-s))),!(!a&&!l)},0===N_.size&&nN(wZ),new Promise(function(U){N_.add({c:p,f:U})}))}return{run:function(f){Ta(o)?(oS||(oS=Promise.resolve()).then(function(){oS=null}),oS).then(function(){o=o(r),h(f)}):h(f)},end:function(){u(),a=l=null}}}var cN=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function BHe(t,n){t.d(1),n.delete(t.key)}function uN(t,n){fe(t,1,1,function(){n.delete(t.key)})}function lS(t,n,e,i,r,o,s,a,l,c,u,d){for(var h=t.length,f=o.length,p=h,m={};p--;)m[t[p].key]=p;var g=[],v=new Map,y=new Map;for(p=f;p--;){var b=d(r,o,p),C=e(b),D=s.get(C);D?i&&D.p(b,n):(D=c(C,b)).c(),v.set(C,g[p]=D),C in m&&y.set(C,Math.abs(p-m[C]))}var E=new Set,B=new Set;function z(P){Q(P,1),P.m(a,u),s.set(P.key,P),u=P.first,f--}for(;h&&f;){var j=g[f-1],U=t[h-1],G=j.key,X=U.key;j===U?(u=j.first,h--,f--):v.has(X)?!s.has(G)||E.has(G)?z(j):B.has(X)?h--:y.get(G)>y.get(X)?(B.add(G),z(j)):(E.add(X),h--):(l(U,s),h--)}for(;h--;){var oe=t[h];v.has(oe.key)||l(oe,s)}for(;f;)z(g[f-1]);return g}function Bm(t,n){for(var e={},i={},r={$$scope:1},o=t.length;o--;){var s=t[o],a=n[o];if(a){for(var l in s)l in a||(i[l]=1);for(var c in a)r[c]||(e[c]=a[c],r[c]=1);t[o]=a}else for(var u in s)r[u]=1}for(var d in i)d in e||(e[d]=void 0);return e}function cS(t){return"object"===wn(t)&&null!==t?t:{}}function Xu(t,n,e){var i=t.$$.props[n];void 0!==i&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function gt(t){t&&t.c()}function pt(t,n,e,i){var r=t.$$,o=r.fragment,s=r.after_update;o&&o.m(n,e),i||Lm(function(){var a,l=t.$$.on_mount.map(yZ).filter(Ta);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,ui(l)):po(l),t.$$.on_mount=[]}),s.forEach(Lm)}function mt(t,n){var e=t.$$;null!==e.fragment&&(po(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ln(t,n,e,i,r,o,s){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=F_;P_(t);var c=t.$$={fragment:null,ctx:[],props:o,update:Bt,not_equal:r,bound:_Z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:_Z(),dirty:a,skip_bound:!1,root:n.target||l.$$.root};s&&s(c.root);var u=!1;if(c.ctx=e?e(t,n.props||{},function(h,f){var p=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:f;return c.ctx&&r(c.ctx[h],c.ctx[h]=p)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](p),u&&function $He(t,n){-1===t.$$.dirty[0]&&(Jv.push(t),OZ(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<1&&void 0!==arguments[1]?arguments[1]:!!function UHe(t){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage[t]}catch{}}("debug");if(n){var e=function zHe(t){for(var n=0,e=0;e1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,i=void 0===e?0:e,r=n.duration,o=void 0===r?400:r,s=n.easing,a=void 0===s?vZ:s,l=+getComputedStyle(t).opacity;return{delay:i,duration:o,easing:a,css:function(c){return"opacity: ".concat(c*l)}}}var WHe=cN.window;function qHe(t){_i(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function FZ(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=t[1].closeButton&&PZ(t),C=t[2];return C&&(s=Xd(C,{})),{c:function(){n=De("div"),e=De("div"),i=De("div"),b&&b.c(),r=rt(),o=De("div"),s&>(s.$$.fragment),R(o,"class",a=Mo(t[1].classContent)+" svelte-n7cvum"),R(o,"style",t[9]),Nt(o,"content",!t[0]),R(i,"class",l=Mo(t[1].classWindow)+" svelte-n7cvum"),R(i,"role","dialog"),R(i,"aria-modal","true"),R(i,"aria-label",c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),R(i,"aria-labelledby",u=t[1].ariaLabelledBy||null),R(i,"style",t[8]),Nt(i,"window",!t[0]),R(e,"class",h=Mo(t[1].classWindowWrap)+" svelte-n7cvum"),R(e,"style",t[7]),Nt(e,"wrap",!t[0]),R(n,"id",f=t[1].id),R(n,"class",p=Mo(t[1].classBg)+" svelte-n7cvum"),R(n,"style",t[6]),Nt(n,"bg",!t[0])},m:function(D,E){$e(D,n,E),me(n,e),me(e,i),b&&b.m(i,null),me(i,r),me(i,o),s&&pt(s,o,null),t[50](i),t[51](e),t[52](n),g=!0,v||(y=[Rt(i,"introstart",function(){Ta(t[13])&&t[13].apply(this,arguments)}),Rt(i,"outrostart",function(){Ta(t[14])&&t[14].apply(this,arguments)}),Rt(i,"introend",function(){Ta(t[15])&&t[15].apply(this,arguments)}),Rt(i,"outroend",function(){Ta(t[16])&&t[16].apply(this,arguments)}),Rt(n,"mousedown",t[20]),Rt(n,"mouseup",t[21])],v=!0)},p:function(D,E){if((t=D)[1].closeButton?b?(b.p(t,E),2&E[0]&&Q(b,1)):((b=PZ(t)).c(),Q(b,1),b.m(i,r)):b&&(Ht(),fe(b,1,1,function(){b=null}),Ut()),C!==(C=t[2])){if(s){Ht();var B=s;fe(B.$$.fragment,1,0,function(){mt(B,1)}),Ut()}C?(gt((s=Xd(C,{})).$$.fragment),Q(s.$$.fragment,1),pt(s,o,null)):s=null}(!g||2&E[0]&&a!==(a=Mo(t[1].classContent)+" svelte-n7cvum"))&&R(o,"class",a),(!g||512&E[0])&&R(o,"style",t[9]),(!g||3&E[0])&&Nt(o,"content",!t[0]),(!g||2&E[0]&&l!==(l=Mo(t[1].classWindow)+" svelte-n7cvum"))&&R(i,"class",l),(!g||2&E[0]&&c!==(c=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&R(i,"aria-label",c),(!g||2&E[0]&&u!==(u=t[1].ariaLabelledBy||null))&&R(i,"aria-labelledby",u),(!g||256&E[0])&&R(i,"style",t[8]),(!g||3&E[0])&&Nt(i,"window",!t[0]),(!g||2&E[0]&&h!==(h=Mo(t[1].classWindowWrap)+" svelte-n7cvum"))&&R(e,"class",h),(!g||128&E[0])&&R(e,"style",t[7]),(!g||3&E[0])&&Nt(e,"wrap",!t[0]),(!g||2&E[0]&&f!==(f=t[1].id))&&R(n,"id",f),(!g||2&E[0]&&p!==(p=Mo(t[1].classBg)+" svelte-n7cvum"))&&R(n,"class",p),(!g||64&E[0])&&R(n,"style",t[6]),(!g||3&E[0])&&Nt(n,"bg",!t[0])},i:function(D){g||(Q(b),s&&Q(s.$$.fragment,D),Lm(function(){d||(d=aS(i,t[12],t[1].transitionWindowProps,!0)),d.run(1)}),Lm(function(){m||(m=aS(n,t[11],t[1].transitionBgProps,!0)),m.run(1)}),g=!0)},o:function(D){fe(b),s&&fe(s.$$.fragment,D),d||(d=aS(i,t[12],t[1].transitionWindowProps,!1)),d.run(0),m||(m=aS(n,t[11],t[1].transitionBgProps,!1)),m.run(0),g=!1},d:function(D){D&&Be(n),b&&b.d(),s&&mt(s),t[50](null),D&&d&&d.end(),t[51](null),t[52](null),D&&m&&m.end(),v=!1,po(y)}}}function PZ(t){var n,e,i,r,o,s=[XHe,YHe],a=[];function l(c,u){return 2&u[0]&&(n=null),null==n&&(n=!!c[17](c[1].closeButton)),n?0:1}return e=l(t,[-1,-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Dr()},m:function(c,u){a[e].m(c,u),$e(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Ht(),fe(a[d],1,1,function(){a[d]=null}),Ut(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){fe(i),o=!1},d:function(c){a[e].d(c),c&&Be(r)}}}function YHe(t){var n,e,i,r;return{c:function(){R(n=De("button"),"class",e=Mo(t[1].classCloseButton)+" svelte-n7cvum"),R(n,"aria-label","Close modal"),R(n,"style",t[10]),R(n,"type","button"),Nt(n,"close",!t[0])},m:function(o,s){$e(o,n,s),i||(r=Rt(n,"click",t[18]),i=!0)},p:function(o,s){2&s[0]&&e!==(e=Mo(o[1].classCloseButton)+" svelte-n7cvum")&&R(n,"class",e),1024&s[0]&&R(n,"style",o[10]),3&s[0]&&Nt(n,"close",!o[0])},i:Bt,o:Bt,d:function(o){o&&Be(n),i=!1,r()}}}function XHe(t){var n,e,i,r=t[1].closeButton;function o(s){return{props:{onClose:s[18]}}}return r&&(n=Xd(r,o(t))),{c:function(){n&>(n.$$.fragment),e=Dr()},m:function(s,a){n&&pt(n,s,a),$e(s,e,a),i=!0},p:function(s,a){if(r!==(r=s[1].closeButton)){if(n){Ht();var l=n;fe(l.$$.fragment,1,0,function(){mt(l,1)}),Ut()}r?(gt((n=Xd(r,o(s))).$$.fragment),Q(n.$$.fragment,1),pt(n,e.parentNode,e)):n=null}},i:function(s){i||(n&&Q(n.$$.fragment,s),i=!0)},o:function(s){n&&fe(n.$$.fragment,s),i=!1},d:function(s){s&&Be(e),n&&mt(n,s)}}}function JHe(t){var n,e,i,r,o=t[2]&&FZ(t),s=t[49].default,a=Ms(s,t,t[48],null);return{c:function(){o&&o.c(),n=rt(),a&&a.c()},m:function(l,c){o&&o.m(l,c),$e(l,n,c),a&&a.m(l,c),e=!0,i||(r=Rt(WHe,"keydown",t[19]),i=!0)},p:function(l,c){l[2]?o?(o.p(l,c),4&c[0]&&Q(o,1)):((o=FZ(l)).c(),Q(o,1),o.m(n.parentNode,n)):o&&(Ht(),fe(o,1,1,function(){o=null}),Ut()),a&&a.p&&(!e||131072&c[1])&&Is(a,s,l,l[48],e?Os(s,l[48],c,null):Ns(l[48]),null)},i:function(l){e||(Q(o),Q(a,l),e=!0)},o:function(l){fe(o),fe(a,l),e=!1},d:function(l){o&&o.d(l),l&&Be(n),a&&a.d(l),i=!1,r()}}}function RZ(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){return new t(nt(nt({},e),{},{props:nt(nt({},n),e.props)}))}}function KHe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y=n.$$slots,b=void 0===y?{}:y,C=n.$$scope,D=EZ(),B=n.isTabbable,z=void 0===B?function(Ye){return Ye.tabIndex>=0&&!Ye.hidden&&!Ye.disabled&&"none"!==Ye.style.display&&"hidden"!==Ye.type&&Boolean(Ye.offsetWidth||Ye.offsetHeight||Ye.getClientRects().length)}:B,j=n.show,U=void 0===j?null:j,G=n.id,X=void 0===G?null:G,oe=n.key,P=void 0===oe?"simple-modal":oe,W=n.ariaLabel,J=void 0===W?null:W,H=n.ariaLabelledBy,pe=void 0===H?null:H,A=n.closeButton,N=void 0===A||A,F=n.closeOnEsc,q=void 0===F||F,V=n.closeOnOuterClick,ce=void 0===V||V,ve=n.styleBg,je=void 0===ve?{}:ve,Te=n.styleWindowWrap,et=void 0===Te?{}:Te,We=n.styleWindow,st=void 0===We?{}:We,$=n.styleContent,ae=void 0===$?{}:$,le=n.styleCloseButton,Re=void 0===le?{}:le,Ze=n.classBg,Ve=void 0===Ze?null:Ze,Ct=n.classWindowWrap,Ot=void 0===Ct?null:Ct,yn=n.classWindow,Xn=void 0===yn?null:yn,on=n.classContent,Ri=void 0===on?null:on,hn=n.classCloseButton,vr=void 0===hn?null:hn,Er=n.unstyled,fr=void 0!==Er&&Er,wr=n.setContext,Si=void 0===wr?AZ:wr,Xr=n.transitionBg,Ro=void 0===Xr?GHe:Xr,Rn=n.transitionBgProps,kt=void 0===Rn?{duration:250}:Rn,pi=n.transitionWindow,Bi=void 0===pi?Ro:pi,Ar=n.transitionWindowProps,ko=void 0===Ar?kt:Ar,Qo=n.disableFocusTrap,vt=void 0!==Qo&&Qo,jn={id:X,ariaLabel:J,ariaLabelledBy:pe,closeButton:N,closeOnEsc:q,closeOnOuterClick:ce,styleBg:je,styleWindowWrap:et,styleWindow:st,styleContent:ae,styleCloseButton:Re,classBg:Ve,classWindowWrap:Ot,classWindow:Xn,classContent:Ri,classCloseButton:vr,transitionBg:Ro,transitionBgProps:kt,transitionWindow:Bi,transitionWindowProps:ko,disableFocusTrap:vt,isTabbable:z,unstyled:fr},di=nt({},jn),ki=null,Nr=function(Ye){return Ye?Object.keys(Ye).reduce(function(In,li){return"".concat(In,"; ").concat((vi=li,vi.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Ye[li]);var vi},""):""},Jr=function(Ye){return!!(Ye&&Ye.constructor&&Ye.call&&Ye.apply)},co=function(){e(6,a=Nr(Object.assign({},{width:window.innerWidth,height:window.innerHeight},di.styleBg))),e(7,l=Nr(di.styleWindowWrap)),e(8,c=Nr(di.styleWindow)),e(9,u=Nr(di.styleContent)),e(10,d=Nr(di.styleCloseButton)),e(11,h=di.transitionBg),e(12,f=di.transitionWindow)},Ks=function(){},Cr=Ks,Qs=Ks,Za=Ks,el=Ks,$c=function(Ye){var li=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},vi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e(2,ki=RZ(Ye,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),e(1,di=nt(nt({},jn),li)),co(),qe(),e(13,Cr=function(gi){vi.onOpen&&vi.onOpen(gi),D("open"),D("opening")}),e(14,Qs=function(gi){vi.onClose&&vi.onClose(gi),D("close"),D("closing")}),e(15,Za=function(gi){vi.onOpened&&vi.onOpened(gi),D("opened")}),e(16,el=function(gi){vi.onClosed&&vi.onClosed(gi),D("closed")})},Ee=function(){var Ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ki&&(e(14,Qs=Ye.onClose||Qs),e(16,el=Ye.onClosed||el),e(2,ki=null),Ke())},qe=function(){s=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(s,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},Ke=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:s,left:0,behavior:"instant"})};Si(P,{open:$c,close:Ee});var dt=!1;return qu(function(){dt&&Ee()}),eu(function(){e(47,dt=!0)}),t.$$set=function(Ye){"isTabbable"in Ye&&e(22,z=Ye.isTabbable),"show"in Ye&&e(23,U=Ye.show),"id"in Ye&&e(24,X=Ye.id),"key"in Ye&&e(25,P=Ye.key),"ariaLabel"in Ye&&e(26,J=Ye.ariaLabel),"ariaLabelledBy"in Ye&&e(27,pe=Ye.ariaLabelledBy),"closeButton"in Ye&&e(28,N=Ye.closeButton),"closeOnEsc"in Ye&&e(29,q=Ye.closeOnEsc),"closeOnOuterClick"in Ye&&e(30,ce=Ye.closeOnOuterClick),"styleBg"in Ye&&e(31,je=Ye.styleBg),"styleWindowWrap"in Ye&&e(32,et=Ye.styleWindowWrap),"styleWindow"in Ye&&e(33,st=Ye.styleWindow),"styleContent"in Ye&&e(34,ae=Ye.styleContent),"styleCloseButton"in Ye&&e(35,Re=Ye.styleCloseButton),"classBg"in Ye&&e(36,Ve=Ye.classBg),"classWindowWrap"in Ye&&e(37,Ot=Ye.classWindowWrap),"classWindow"in Ye&&e(38,Xn=Ye.classWindow),"classContent"in Ye&&e(39,Ri=Ye.classContent),"classCloseButton"in Ye&&e(40,vr=Ye.classCloseButton),"unstyled"in Ye&&e(0,fr=Ye.unstyled),"setContext"in Ye&&e(41,Si=Ye.setContext),"transitionBg"in Ye&&e(42,Ro=Ye.transitionBg),"transitionBgProps"in Ye&&e(43,kt=Ye.transitionBgProps),"transitionWindow"in Ye&&e(44,Bi=Ye.transitionWindow),"transitionWindowProps"in Ye&&e(45,ko=Ye.transitionWindowProps),"disableFocusTrap"in Ye&&e(46,vt=Ye.disableFocusTrap),"$$scope"in Ye&&e(48,C=Ye.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&dt&&(Jr(U)?$c(U):Ee())},[fr,di,ki,i,r,o,a,l,c,u,d,h,f,Cr,Qs,Za,el,Jr,Ee,function(Ye){if(di.closeOnEsc&&ki&&"Escape"===Ye.key&&(Ye.preventDefault(),Ee()),ki&&"Tab"===Ye.key&&!di.disableFocusTrap){var In=o.querySelectorAll("*"),li=Array.from(In).filter(di.isTabbable).sort(function(gi,Mr){return gi.tabIndex-Mr.tabIndex}),vi=li.indexOf(document.activeElement);-1===vi&&Ye.shiftKey&&(vi=0),vi+=li.length+(Ye.shiftKey?-1:1),li[vi%=li.length].focus(),Ye.preventDefault()}},function(Ye){!di.closeOnOuterClick||Ye.target!==i&&Ye.target!==r||(v=Ye.target)},function(Ye){di.closeOnOuterClick&&Ye.target===v&&(Ye.preventDefault(),Ee())},z,U,X,P,J,pe,N,q,ce,je,et,st,ae,Re,Ve,Ot,Xn,Ri,vr,Si,Ro,kt,Bi,ko,vt,dt,C,b,function(Ye){Xi[Ye?"unshift":"push"](function(){e(5,o=Ye)})},function(Ye){Xi[Ye?"unshift":"push"](function(){e(4,r=Ye)})},function(Ye){Xi[Ye?"unshift":"push"](function(){e(3,i=Ye)})}]}var Uo,so,Ju,Jd,Ku,tu,jZ=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,KHe,JHe,_s,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},qHe,[-1,-1,-1]),r}return Ie(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(Uo||(Uo={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi"}(so||(so={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(Ju||(Ju={})),function(t){t.info="info",t.warning="warning",t.error="error"}(Jd||(Jd={})),function(t){t.key="key",t.value="value"}(Ku||(Ku={})),function(t){t.asc="asc",t.desc="desc"}(tu||(tu={}));var $m=[{start:0,end:100}],Vm={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-content"},QHe=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),ZHe=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),LZ=nt(nt({},Vm),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),dN="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",hN="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",eUe="NO",fN="SELF",pN="NEXT_INSIDE",tUe=(ec(ZI={},tu.asc,"ascending"),ec(ZI,tu.desc,"descending"),ZI),nUe=0;function R_(){return++nUe}function op(t){return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function ao(t){return Array.isArray(t)}function Oo(t){return null!==t&&"object"===op(t)&&t.constructor===Object}function BZ(t){return!(!t||"object"!==op(t))&&"add"===t.op}function $Z(t){return!(!t||"object"!==op(t))&&"remove"===t.op}function mN(t){return!(!t||"object"!==op(t))&&"replace"===t.op}function gN(t){return!(!t||"object"!==op(t))&&"copy"===t.op}function Qv(t){return!(!t||"object"!==op(t))&&"move"===t.op}function vN(t){return(vN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function iUe(t,n){return t===n}function VZ(t){return t.slice(0,t.length-1)}function HZ(t){return"object"===vN(t)&&null!==t}function j_(t){return(j_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function UZ(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function rUe(t,n,e){return r=function(o,s){if("object"!==j_(o)||null===o)return o;var a=o[Symbol.toPrimitive];if(void 0!==a){var l=a.call(o,"string");if("object"!==j_(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}(n),(n="symbol"===j_(r)?r:String(r))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t;var r}function yN(t){if(ao(t)){var n=t.slice();return Object.getOwnPropertySymbols(t).forEach(function(i){n[i]=t[i]}),n}if(Oo(t)){var e=function(i){for(var r=1;r3&&void 0!==arguments[3]&&arguments[3];if(0===n.length)return e;var r=n[0],o=Qu(t?t[r]:void 0,n.slice(1),e,i);if(Oo(t)||ao(t))return _N(t,r,o);if(i){var s=oUe.test(r)?[]:{};return s[r]=o,s}throw new Error("Path does not exist")}var oUe=/^\d+$/;function zZ(t,n,e){if(0===n.length)return e(t);if(!HZ(t))throw new Error("Path doesn't exist");var i=n[0];return _N(t,i,zZ(t[i],n.slice(1),e))}function bN(t,n){if(0===n.length)return t;if(!HZ(t))throw new Error("Path does not exist");if(1===n.length){var e=n[0];if(e in t){var i=yN(t);return ao(i)&&i.splice(parseInt(e),1),Oo(i)&&delete i[e],i}return t}var r=n[0];return _N(t,r,bN(t[r],n.slice(1)))}function xN(t,n,e){var i=n.slice(0,n.length-1),r=n[n.length-1];return zZ(t,i,function(o){if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(i));var s=yN(o);return s.splice(parseInt(r),0,e),s})}function nu(t,n){return void 0!==t&&(0===n.length||null!==t&&nu(t[n[0]],n.slice(1)))}function Zu(t){var n=t.split("/");return n.shift(),n.map(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")})}function dn(t){return t.map(GZ).join("")}function GZ(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function wN(t,n){return t+GZ(n)}function Zv(t,n){return t.startsWith(n)&&(t.length===n.length||"/"===t[n.length])}function ed(t,n,e){for(var i=t,r=0;rt.length)&&(n=t.length);for(var e=0,i=new Array(n);e2&&void 0!==arguments[2]?arguments[2]:iUe;if(p.length=0?z=function(){var U="",G=!0;"-"==t[s]&&(U+=h()),U+="0"==t[s]?h():m(),"."==t[s]&&(U+=h()+m(),G=!1),"e"!=t[s]&&"E"!=t[s]||(U+=h(),"+"!=t[s]&&"-"!=t[s]||(U+=h()),U+=m(),G=!1);var X=+U;return a&&G&&(X>Number.MAX_SAFE_INTEGER||X="a"&&z<="f"?B+=z.charCodeAt()-mUe+10:z>="0"&&z<="9"?B+=+z:C()}return String.fromCharCode(B)}function m(){for(var E="";t[s]>="0"&&t[s]<="9";)E+=h();if(E.length)return E;D(),b()}function g(E,B){v(E,B,y())}function v(E,B,z){i[E]=i[E]||{},i[E][B]=z}function y(){return{line:r,column:o,pos:s}}function b(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function C(){f(),b()}function D(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}},uS.stringify=function(t,n,e){if(dS(t)){var i,r,o=0,s="object"==wn(e)?e.space:e;switch(wn(s)){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&y(a," "),i=a,r=a;break;case"string":s=s.slice(0,10),i=0,r=0;for(var l=0;l=0}var vUe=/"|\\/g,yUe=/[\b]/g,_Ue=/\f/g,bUe=/\n/g,xUe=/\r/g,wUe=/\t/g;function hS(t){return'"'+(t=t.replace(vUe,"\\$&").replace(_Ue,"\\f").replace(yUe,"\\b").replace(bUe,"\\n").replace(xUe,"\\r").replace(wUe,"\\t"))+'"'}var CUe=/~/g,SUe=/\//g;function kN(t){return t.replace(CUe,"~0").replace(SUe,"~1")}function DN(t){return(DN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function TN(t){var n="function"==typeof Map?new Map:void 0;return TN=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return EN(e,arguments,$_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),B_(r,e)},TN(t)}function EN(t,n,e){return(EN=QZ()?Reflect.construct.bind():function(i,r,o){var s=[null];s.push.apply(s,r);var a=new(Function.bind.apply(i,s));return o&&B_(a,o.prototype),a}).apply(null,arguments)}function QZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B_(t,n){return(B_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(t,n)}function $_(t){return($_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}var sp=function(t){!function(l,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&B_(l,c)}(a,TN(Error));var n,e,i,s=(n=a,e=QZ(),function(){var l,c=$_(n);if(e){var u=$_(this).constructor;l=Reflect.construct(c,arguments,u)}else l=c.apply(this,arguments);return function kUe(t,n){if(n&&("object"===DN(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,l)});function a(l,c){var u;return function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}(this,a),(u=s.call(this,l+" at position "+c)).position=c,u}return i=a,Object.defineProperty(i,"prototype",{writable:!1}),i}();function fS(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function pS(t){return t>=48&&t<=57}function DUe(t){return t>=32&&t<=1114111}var TUe=/^[,:[\]{}()\n]$/;function ZZ(t){return EUe.test(t)||t&&gS(t.charCodeAt(0))}var EUe=/^[[{\w-]$/;function AUe(t){return 10===t||13===t||9===t||8===t||12===t}function mS(t){return 32===t||10===t||9===t||13===t}function MUe(t){return 160===t||t>=8192&&t<=8202||8239===t||8287===t||12288===t}function gS(t){return eee(t)||AN(t)}function eee(t){return 34===t||8220===t||8221===t}function AN(t){return 39===t||8216===t||8217===t||96===t||180===t}function V_(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.lastIndexOf(n);return-1!==i?t.substring(0,i)+(e?"":t.substring(i+1)):t}function Hm(t,n){var e=t.length;if(!mS(t.charCodeAt(e-1)))return t+n;for(;mS(t.charCodeAt(e-1));)e--;return t.substring(0,e)+n+t.substring(e)}function OUe(t,n,e){return t.substring(0,n)+t.substring(n+e)}var IUe={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},NUe={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Kd(t){var n=0,e="";r()||function(){throw new sp("Unexpected end of json string",t.length)}();var i=l(44);if(i&&o(),ZZ(t[n])&&/[,\n][ \t\r]*$/.test(e)?(i||(e=Hm(e,",")),function(){for(var b=!0,C=!0;C;)b?b=!1:l(44)||(e=Hm(e,",")),C=r();C||(e=V_(e,",")),e="[\n".concat(e,"\n]")}()):i&&(e=V_(e,",")),n>=t.length)return e;function r(){o();var b=function(){if(123===t.charCodeAt(n)){e+="{",n++,o();for(var C=!0;n=49&&D<=57)for(n++;pS(t.charCodeAt(n));)n++;if(46===t.charCodeAt(n))for(n++,f(C);pS(t.charCodeAt(n));)n++;if(101===t.charCodeAt(n)||69===t.charCodeAt(n))for(n++,45!==t.charCodeAt(n)&&43!==t.charCodeAt(n)||n++,f(C);pS(t.charCodeAt(n));)n++;return n>C&&(e+=t.slice(C,n),!0)}()||d("true","true")||d("false","false")||d("null","null")||d("True","true")||d("False","false")||d("None","null")||h();return o(),b}function o(){var b=n,C=s();do{(C=a())&&(C=s())}while(C);return n>b}function s(){for(var b,C="";(b=mS(t.charCodeAt(n)))||MUe(t.charCodeAt(n));)C+=b?t[n]:" ",n++;return C.length>0&&(e+=C,!0)}function a(){if(47===t.charCodeAt(n)&&42===t.charCodeAt(n+1)){for(;nC){if(40===t.charCodeAt(n))return n++,r(),41===t.charCodeAt(n)&&(n++,59===t.charCodeAt(n)&&n++),!0;for(;mS(t.charCodeAt(n-1))&&n>0;)n--;var D=t.slice(C,n);return e+=JSON.stringify(D),!0}}function f(b){if(!pS(t.charCodeAt(n))){var C=t.slice(b,n);throw new sp("Invalid number '".concat(C,"', expecting a digit ").concat(t[n]?"but got '".concat(t[n],"'"):"but reached end of input"),2)}}function p(b){throw new sp("Invalid character "+JSON.stringify(b),n)}function m(){throw new sp("Object key expected",n)}function g(){throw new sp("Object value expected",n)}function v(){throw new sp("Colon expected",n)}function y(b){for(var C=b+2;/\w/.test(t[C]);)C++;var D=t.slice(b,C);throw new sp('Invalid unicode character "'.concat(D,'"'),n)}!function(){throw new sp("Unexpected character "+JSON.stringify(t[n]),n)}()}function FUe(t,n){return"*"===t[n]&&"/"===t[n+1]}function Ys(t){return parseInt(t,10)}function MN(t){return PUe.test(t)}var PUe=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Io(t){return"object"===wn(t)&&null!==t&&t.constructor===Object}function zo(t){return"object"===wn(t)&&null!==t&&(t.constructor===Object||t.constructor===Array)}function ON(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return ON(Number(t));try{var n=t&&t.valueOf();if(n!==t)return ON(n)}catch{return!1}return!1}function tee(t){var n=window.document.createElement("div");n.style.color=t;var e=n.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}function IN(t,n){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return wn(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(Io(t))return"object";var e=n.stringify(t);return e&&MN(e)?"number":"true"===e||"false"===e?"boolean":"null"===e?"null":"unknown"}var RUe=/^https?:\/\/\S+$/;function vS(t){return"string"==typeof t&&RUe.test(t)}function e0(t,n){if(""===t)return"";var e=t.trim();return"null"===e?null:"true"===e||"false"!==e&&(MN(e)?n.parse(e):t)}var jUe=/^-?[0-9]+$/,iee="object"==(typeof global>"u"?"undefined":wn(global))&&global&&global.Object===Object&&global,LUe="object"==(typeof self>"u"?"undefined":wn(self))&&self&&self.Object===Object&&self,Oa=iee||LUe||Function("return this")(),hl=Oa.Symbol,ree=Object.prototype,BUe=ree.hasOwnProperty,$Ue=ree.toString,H_=hl?hl.toStringTag:void 0,VUe=Object.prototype.toString,oee=hl?hl.toStringTag:void 0;function Ol(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":oee&&oee in Object(t)?function(n){var e=BUe.call(n,H_),i=n[H_];try{n[H_]=void 0;var r=!0}catch{}var o=$Ue.call(n);return r&&(e?n[H_]=i:delete n[H_]),o}(t):VUe.call(t)}function as(t){return null!=t&&"object"==wn(t)}function nc(t){return"symbol"==wn(t)||as(t)&&"[object Symbol]"==Ol(t)}function see(t){return"number"==typeof t?t:nc(t)?NaN:+t}function Ko(t,n){for(var e=-1,i=null==t?0:t.length,r=Array(i);++e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var wee=xee(gee),uze=/\{\n\/\* \[wrapped with (.+)\] \*/,dze=/,? & /,hze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function CS(t){return function(){return t}}var fze=function(){try{var t=zm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),SS=fze,pze=SS?function(t,n){return SS(t,"toString",{configurable:!0,enumerable:!1,value:CS(n),writable:!0})}:fl,PN=xee(pze);function ru(t,n){for(var e=-1,i=null==t?0:t.length;++e-1}var mze=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function See(t,n,e){var o,i=n+"";return PN(t,function(r,o){var s=o.length;if(!s)return r;var a=s-1;return o[a]=(s>1?"& ":"")+o[a],o=o.join(s>2?", ":" "),r.replace(hze,"{\n/* [wrapped with "+o+"] */\n")}(i,function(r,o){return ru(mze,function(s){var a="_."+s[0];o&s[1]&&!DS(r,a)&&r.push(a)}),r.sort()}((o=i.match(uze))?o[1].split(dze):[],e)))}function kee(t,n,e,i,r,o,s,a,l,c){var u=8&n;n|=u?32:64,4&(n&=~(u?64:32))||(n&=-4);var d=[t,n,r,u?o:void 0,u?s:void 0,u?void 0:o,u?void 0:s,a,l,c],h=e.apply(void 0,d);return FN(t)&&wee(h,d),h.placeholder=i,See(h,t,n)}function o0(t){return t.placeholder}var gze=/^(?:0|[1-9]\d*)$/;function lf(t,n){var e=wn(t);return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&gze.test(t))&&t>-1&&t%1==0&&t1&&y.reverse(),u&&l-1&&t%1==0&&t<=9007199254740991}function Il(t){return null!=t&&W_(t.length)&&!Zd(t)}function Nl(t,n,e){if(!Go(e))return!1;var i=wn(n);return!!("number"==i?Il(e)&&lf(n,e.length):"string"==i&&n in e)&&ou(e[n],t)}function s0(t){return mr(function(n,e){var i=-1,r=e.length,o=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&Nl(e[0],e[1],s)&&(o=r<3?void 0:o,r=1),n=Object(n);++i"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,Iee=Oee&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,Nee=Iee&&Iee.exports===Oee?Oa.Buffer:void 0,df=(Nee?Nee.isBuffer:void 0)||ES,Wo={};function Ic(t){return function(n){return t(n)}}Wo["[object Float32Array]"]=Wo["[object Float64Array]"]=Wo["[object Int8Array]"]=Wo["[object Int16Array]"]=Wo["[object Int32Array]"]=Wo["[object Uint8Array]"]=Wo["[object Uint8ClampedArray]"]=Wo["[object Uint16Array]"]=Wo["[object Uint32Array]"]=!0,Wo["[object Arguments]"]=Wo["[object Array]"]=Wo["[object ArrayBuffer]"]=Wo["[object Boolean]"]=Wo["[object DataView]"]=Wo["[object Date]"]=Wo["[object Error]"]=Wo["[object Function]"]=Wo["[object Map]"]=Wo["[object Number]"]=Wo["[object Object]"]=Wo["[object RegExp]"]=Wo["[object Set]"]=Wo["[object String]"]=Wo["[object WeakMap]"]=!1;var Fee="object"==(typeof exports>"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,Y_=Fee&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,LN=Y_&&Y_.exports===Fee&&iee.process,su=function(){try{return Y_&&Y_.require&&Y_.require("util").types||LN&&LN.binding&&LN.binding("util")}catch{}}(),Pee=su&&su.isTypedArray,Gm=Pee?Ic(Pee):function(t){return as(t)&&W_(t.length)&&!!Wo[Ol(t)]},kze=Object.prototype.hasOwnProperty;function Ree(t,n){var e=Ui(t),i=!e&&lp(t),r=!e&&!i&&df(t),o=!e&&!i&&!r&&Gm(t),s=e||i||r||o,a=s?jN(t.length,String):[],l=a.length;for(var c in t)!n&&!kze.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||lf(c,l))||a.push(c);return a}function jee(t,n){return function(e){return t(n(e))}}var Dze=jee(Object.keys,Object),Tze=Object.prototype.hasOwnProperty;function BN(t){if(!q_(t))return Dze(t);var n=[];for(var e in Object(t))Tze.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Xs(t){return Il(t)?Ree(t):BN(t)}var Eze=Object.prototype.hasOwnProperty,Aze=s0(function(t,n){if(q_(n)||Il(n))eh(n,Xs(n),t);else for(var e in n)Eze.call(n,e)&&G_(t,e,n[e])}),Lee=Aze,Mze=Object.prototype.hasOwnProperty;function Fl(t){return Il(t)?Ree(t,!0):function Oze(t){if(!Go(t))return function(r){var o=[];if(null!=r)for(var s in Object(r))o.push(s);return o}(t);var n=q_(t),e=[];for(var i in t)("constructor"!=i||!n&&Mze.call(t,i))&&e.push(i);return e}(t)}var Ize=s0(function(t,n){eh(n,Fl(n),t)}),AS=Ize,Nze=s0(function(t,n,e,i){eh(n,Fl(n),t,i)}),a0=Nze,Fze=s0(function(t,n,e,i){eh(n,Xs(n),t,i)}),Bee=Fze,Pze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rze=/^\w*$/;function $N(t,n){if(Ui(t))return!1;var e=wn(t);return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!nc(t))||Rze.test(t)||!Pze.test(t)||null!=n&&t in Object(n)}var X_=zm(Object,"create"),jze=Object.prototype.hasOwnProperty,Lze=Object.prototype.hasOwnProperty;function Wm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},hf.prototype.set=function(t,n){var e=this.__data__,i=MS(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};var J_=zm(Oa,"Map");function OS(t,n){var i,r,e=t.__data__;return("string"==(r=wn(i=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?e["string"==typeof n?"string":"hash"]:e.map}function ff(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n0&&e(a)?n>1?Ga(a,n-1,e,i,r):up(r,a):i||(r[r.length]=a)}return r}function HN(t){return null!=t&&t.length?Ga(t,1):[]}function pf(t){return PN(Eee(t,void 0,HN),t+"")}var Hee=pf(VN),NS=jee(Object.getPrototypeOf,Object),Uee=Function.prototype.toString,Wze=Object.prototype.hasOwnProperty,qze=Uee.call(Object);function c0(t){if(!as(t)||"[object Object]"!=Ol(t))return!1;var n=NS(t);if(null===n)return!0;var e=Wze.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Uee.call(e)==qze}function FS(t){if(!as(t))return!1;var n=Ol(t);return"[object Error]"==n||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!c0(t)}var Yze=mr(function(t,n){try{return Oc(t,void 0,n)}catch(e){return FS(e)?e:new Error(e)}}),UN=Yze;function zN(t,n){var e;if("function"!=typeof n)throw new TypeError("Expected a function");return t=Qi(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var GN=mr(function(t,n,e){var i=1;if(e.length){var r=ap(e,o0(GN));i|=32}return cf(t,i,n,e,r)});GN.placeholder={};var WN=GN,Xze=pf(function(t,n){return ru(n,function(e){e=th(e),uf(t,e,WN(t[e],t))}),t}),zee=Xze,qN=mr(function(t,n,e){var i=3;if(e.length){var r=ap(e,o0(qN));i|=32}return cf(n,i,t,e,r)});qN.placeholder={};var Gee=qN;function au(t,n,e){var i=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(e=e>r?r:e)<0&&(e+=r),r=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(r);++i=i?t:au(t,n,e)}var Jze=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function u0(t){return Jze.test(t)}var YN="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",XN="\\ud83c[\\udffb-\\udfff]",Wee="[^\\ud800-\\udfff]",qee="(?:\\ud83c[\\udde6-\\uddff]){2}",Yee="[\\ud800-\\udbff][\\udc00-\\udfff]",Xee="(?:"+YN+"|"+XN+")?",Qze="[\\ufe0e\\ufe0f]?"+Xee+"(?:\\u200d(?:"+[Wee,qee,Yee].join("|")+")[\\ufe0e\\ufe0f]?"+Xee+")*",Zze="(?:"+[Wee+YN+"?",YN,qee,Yee,"[\\ud800-\\udfff]"].join("|")+")",eGe=RegExp(XN+"(?="+XN+")|"+Zze+Qze,"g");function nd(t){return u0(t)?function(n){return n.match(eGe)||[]}(t):function(n){return n.split("")}(t)}function Jee(t){return function(n){var e=u0(n=Zr(n))?nd(n):void 0,i=e?e[0]:n.charAt(0),r=e?dp(e,1).join(""):n.slice(1);return i[t]()+r}}var PS=Jee("toUpperCase");function JN(t){return PS(Zr(t).toLowerCase())}function KN(t,n,e,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(e=t[++r]);++r=n?t:n)),t}function ute(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=Mc(e))==e?e:0),void 0!==n&&(n=(n=Mc(n))==n?n:0),Ym(Mc(t),n,e)}function id(t){var n=this.__data__=new hf(t);this.size=n.size}function dte(t,n){return t&&eh(n,Xs(n),t)}id.prototype.clear=function(){this.__data__=new hf,this.size=0},id.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},id.prototype.get=function(t){return this.__data__.get(t)},id.prototype.has=function(t){return this.__data__.has(t)},id.prototype.set=function(t,n){var e=this.__data__;if(e instanceof hf){var i=e.__data__;if(!J_||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new ff(i)}return e.set(t,n),this.size=e.size,this};var hte="object"==(typeof exports>"u"?"undefined":wn(exports))&&exports&&!exports.nodeType&&exports,fte=hte&&"object"==(typeof module>"u"?"undefined":wn(module))&&module&&!module.nodeType&&module,pte=fte&&fte.exports===hte?Oa.Buffer:void 0,mte=pte?pte.allocUnsafe:void 0;function gte(t,n){if(n)return t.slice();var e=t.length,i=mte?mte(e):new t.constructor(e);return t.copy(i),i}function hp(t,n){for(var e=-1,i=null==t?0:t.length,r=0,o=[];++ea))return!1;var c=o.get(t),u=o.get(n);if(c&&u)return c==n&&u==t;var d=-1,h=!0,f=2&e?new Jm:void 0;for(o.set(t,n),o.set(n,t);++d=n||C<0||d&&b-c>=o}function g(){var C,D,b=Z_();if(m(b))return v(b);a=setTimeout(g,(D=n-((C=b)-l),d?RGe(D,o-(C-c)):D))}function v(b){return a=void 0,h&&i?f(b):(i=r=void 0,s)}function y(){var b=Z_(),C=m(b);if(i=arguments,r=this,l=b,C){if(void 0===a)return function p(b){return c=b,a=setTimeout(g,n),u?f(b):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,n),f(l)}return void 0===a&&(a=setTimeout(g,n)),s}return n=Mc(n)||0,Go(e)&&(u=!!e.leading,o=(d="maxWait"in e)?PGe(Mc(e.maxWait)||0,n):o,h="trailing"in e?!!e.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},y.flush=function(){return void 0===a?s:v(Z_())},y}function qte(t,n){return null==t||t!=t?n:t}var Yte=Object.prototype,jGe=Yte.hasOwnProperty,LGe=mr(function(t,n){t=Object(t);var e=-1,i=n.length,r=i>2?n[2]:void 0;for(r&&Nl(n[0],n[1],r)&&(i=1);++e=200&&(o=K_,s=!1,n=new Jm(n));e:for(;++r=0&&t.slice(e,r)==n}function hne(t){return function(n){var i,r,o,e=nh(n);return"[object Map]"==e?pF(n):"[object Set]"==e?(i=n,r=-1,o=Array(i.size),i.forEach(function(s){o[++r]=[s,s]}),o):function(i,r){return Ko(r,function(o){return[o,i[o]]})}(n,t(n))}}var qS=hne(Xs),YS=hne(Fl),WGe=QN({"&":"&","<":"<",">":">",'"':""","'":"'"}),fne=/[&<>"']/g,qGe=RegExp(fne.source);function TF(t){return(t=Zr(t))&&qGe.test(t)?t.replace(fne,WGe):t}var pne=/[\\^$.*+?()[\]{}|]/g,YGe=RegExp(pne.source);function mne(t){return(t=Zr(t))&&YGe.test(t)?t.replace(pne,"\\$&"):t}function gne(t,n){for(var e=-1,i=null==t?0:t.length;++ec?0:c+a),(l=void 0===l||l>c?c:Qi(l))<0&&(l+=c),l=a>l?0:EF(l);a-1?r[o?n[s]:s]:void 0}}var JGe=Math.max;function AF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Qi(e);return r<0&&(r=JGe(i+r,0)),kS(t,zi(n),r)}var wne=xne(AF);function Cne(t,n,e){var i;return e(t,function(r,o,s){if(n(r,o,s))return i=o,!1}),i}function Sne(t,n){return Cne(t,zi(n),ih)}var KGe=Math.max,QGe=Math.min;function MF(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==e&&(r=Qi(e),r=e<0?KGe(i+r,0):QGe(r,i-1)),kS(t,zi(n),r,!0)}var kne=xne(MF);function Dne(t,n){return Cne(t,zi(n),DF)}function va(t){return t&&t.length?t[0]:void 0}function Tne(t,n){var e=-1,i=Il(t)?Array(t.length):[];return fp(t,function(r,o,s){i[++e]=n(r,o,s)}),i}function m0(t,n){return(Ui(t)?Ko:Tne)(t,zi(n))}function Ene(t,n){return Ga(m0(t,n),1)}function Ane(t,n){return Ga(m0(t,n),1/0)}function Mne(t,n,e){return e=void 0===e?1:Qi(e),Ga(m0(t,n),e)}function One(t){return null!=t&&t.length?Ga(t,1/0):[]}function Ine(t,n){return null!=t&&t.length?Ga(t,n=void 0===n?1:Qi(n)):[]}function Nne(t){return cf(t,512)}var Fne=tF("floor");function Pne(t){return pf(function(n){var e=n.length,i=e,r=iu.prototype.thru;for(t&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==wS(o))var s=new iu([],!0)}for(i=s?i:e;++in}function JS(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=Mc(n),e=Mc(e)),t(n,e)}}var Gne=JS(OF),Wne=JS(function(t,n){return t>=n}),tWe=Object.prototype.hasOwnProperty;function nWe(t,n){return null!=t&&tWe.call(t,n)}function qne(t,n){return null!=t&&jte(t,n,nWe)}var iWe=Math.max,rWe=Math.min;function Yne(t,n,e){return n=Qd(n),void 0===e?(e=n,n=0):e=Qd(e),(i=t=Mc(t))>=rWe(r=n,o=e)&&i-1:!!r&&r0(t,n,e)>-1}var sWe=Math.max;function Jne(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=null==e?0:Qi(e);return r<0&&(r=sWe(i+r,0)),r0(t,n,r)}function tr(t){return null!=t&&t.length?au(t,0,-1):[]}var aWe=Math.min;function NF(t,n,e){for(var i=e?kF:DS,r=t[0].length,o=t.length,s=o,a=Array(o),l=1/0,c=[];s--;){var u=t[s];s&&n&&(u=Ko(u,Ic(n))),l=aWe(u.length,l),a[s]=!e&&(n||r>=120&&u.length>=120)?new Jm(s&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d=-9007199254740991&&t<=9007199254740991}function Cie(t){return void 0===t}function Sie(t){return as(t)&&"[object WeakMap]"==nh(t)}function kie(t){return as(t)&&"[object WeakSet]"==Ol(t)}function Die(t){return zi("function"==typeof t?t:lu(t,1))}var yWe=Array.prototype.join;function Tie(t,n){return null==t?"":yWe.call(t,n)}var _We=h0(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),Eie=_We,bWe=VS(function(t,n,e){uf(t,e,n)}),Aie=bWe,xWe=Math.max,wWe=Math.min;function Mie(t,n,e){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==e&&(r=(r=Qi(e))<0?xWe(i+r,0):wWe(r,i-1)),n==n?function(o,s,a){for(var l=a+1;l--;)if(o[l]===s)return l;return l}(t,n,r):kS(t,Cee,r,!0)}var CWe=h0(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Oie=CWe,Iie=Jee("toLowerCase");function jF(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function Yie(t,n){var e=t.length;if(e)return lf(n+=n<0?e:0,e)?t[n]:void 0}function Xie(t,n){return t&&t.length?Yie(t,Qi(n)):void 0}function Jie(t){return t=Qi(t),mr(function(n){return Yie(n,t)})}function zF(t,n){return null==(t=rie(t,n=cp(n,t)))||delete t[th(Bn(n))]}function TWe(t){return c0(t)?void 0:t}var EWe=pf(function(t,n){var e={};if(null==t)return e;var i=!1;n=Ko(n,function(o){return o=cp(o,t),i||(i=o.length>1),o}),eh(t,oF(t),e),i&&(e=lu(e,7,TWe));for(var r=n.length;r--;)zF(e,n[r]);return e}),Kie=EWe;function rb(t,n,e,i){if(!Go(t))return t;for(var r=-1,o=(n=cp(n,t)).length,s=o-1,a=t;null!=a&&++rn||o&&s&&l&&!a&&!c||i&&s&&l||!e&&l||!r)return 1;if(!i&&!o&&!c&&t=p?m:m*("desc"==c[u]?-1:1)}return a.index-l.index}(o,s,e)});a--;)o[a]=o[a].value;return o}(Tne(t,function(o,s,a){return{criteria:Ko(n,function(c){return c(o)}),index:++i,value:o}}))}function ire(t,n,e,i){return null==t?[]:(Ui(n)||(n=null==n?[]:[n]),Ui(e=i?void 0:e)||(e=null==e?[]:[e]),nre(t,n,e))}function WF(t){return pf(function(n){return n=Ko(n,Ic(zi)),mr(function(e){var i=this;return t(n,function(r){return Oc(r,i,e)})})})}var rre=WF(Ko),MWe=Math.min,OWe=mr(function(t,n){var e=(n=1==n.length&&Ui(n[0])?Ko(n[0],Ic(zi)):Ko(Ga(n,1),Ic(zi))).length;return mr(function(i){for(var r=-1,o=MWe(i.length,e);++r9007199254740991)return e;do{n%2&&(e+=t),(n=IWe(n/2))&&(t+=t)}while(n);return e}var NWe=yF("length"),YF="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",XF="\\ud83c[\\udffb-\\udfff]",lre="[^\\ud800-\\udfff]",cre="(?:\\ud83c[\\udde6-\\uddff]){2}",ure="[\\ud800-\\udbff][\\udc00-\\udfff]",dre="(?:"+YF+"|"+XF+")?",PWe="[\\ufe0e\\ufe0f]?"+dre+"(?:\\u200d(?:"+[lre,cre,ure].join("|")+")[\\ufe0e\\ufe0f]?"+dre+")*",RWe="(?:"+[lre+YF+"?",YF,cre,ure,"[\\ud800-\\udfff]"].join("|")+")",hre=RegExp(XF+"(?="+XF+")|"+RWe+PWe,"g");function _0(t){return u0(t)?function(n){for(var e=hre.lastIndex=0;hre.test(n);)++e;return e}(t):NWe(t)}var jWe=Math.ceil;function ZS(t,n){var e=(n=void 0===n?" ":Ac(n)).length;if(e<2)return e?qF(n,t):n;var i=qF(n,jWe(t/_0(n)));return u0(n)?dp(nd(i),0,t).join(""):i.slice(0,t)}var LWe=Math.ceil,BWe=Math.floor;function fre(t,n,e){t=Zr(t);var i=(n=Qi(n))?_0(t):0;if(!n||i>=n)return t;var r=(n-i)/2;return ZS(BWe(r),e)+t+ZS(LWe(r),e)}function pre(t,n,e){t=Zr(t);var i=(n=Qi(n))?_0(t):0;return n&&i-1;)a!==t&&bre.call(a,l,1),bre.call(t,l,1);return t}function nP(t,n){return t&&t.length&&n&&n.length?tP(t,n):t}var xre=mr(nP);function wre(t,n,e){return t&&t.length&&n&&n.length?tP(t,n,zi(e)):t}function Cre(t,n,e){return t&&t.length&&n&&n.length?tP(t,n,void 0,e):t}var GWe=Array.prototype.splice;function Sre(t,n){for(var e=t?n.length:0,i=e-1;e--;){var r=n[e];if(e==i||r!==o){var o=r;lf(r)?GWe.call(t,r,1):zF(t,r)}}return t}var WWe=pf(function(t,n){var e=null==t?0:t.length,i=VN(t,n);return Sre(t,Ko(n,function(r){return lf(r,e)?+r:r}).sort(tre)),i}),kre=WWe,qWe=Math.floor,YWe=Math.random;function iP(t,n){return t+qWe(YWe()*(n-t+1))}var XWe=parseFloat,JWe=Math.min,KWe=Math.random;function Dre(t,n,e){if(e&&"boolean"!=typeof e&&Nl(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=Qd(t),void 0===n?(n=t,t=0):n=Qd(n)),t>n){var i=t;t=n,n=i}if(e||t%1||n%1){var r=KWe();return JWe(t+r*(n-t+XWe("1e-"+((r+"").length-1))),n)}return iP(t,n)}var QWe=Math.ceil,ZWe=Math.max;function Tre(t){return function(n,e,i){return i&&"number"!=typeof i&&Nl(n,e,i)&&(e=i=void 0),n=Qd(n),void 0===e?(e=n,n=0):e=Qd(e),function(r,o,s,a){for(var l=-1,c=ZWe(QWe((o-r)/(s||1)),0),u=Array(c);c--;)u[a?c:++l]=r,r+=s;return u}(n,e,i=void 0===i?n1&&Nl(t,n[0],n[1])?n=[]:e>2&&Nl(n[0],n[1],n[2])&&(n=[n[0]]),nre(t,Ga(n,1),[])}),oP=uqe,dqe=Math.floor,hqe=Math.min;function sP(t,n,e,i){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=e(n))!=n,a=null===n,l=nc(n),c=void 0===n;r>>1,s=t[o];null!==s&&!nc(s)&&(e?s<=n:s>>0)?(t=Zr(t))&&("string"==typeof n||null!=n&&!KS(n))&&!(n=Ac(n))&&u0(t)?dp(nd(t),0,e):t.split(n,e):[]}var fqe=Math.max;function soe(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:fqe(Qi(n),0),mr(function(e){var i=e[n],r=dp(e,0,n);return i&&up(r,i),Oc(t,this,r)})}var pqe=h0(function(t,n,e){return t+(e?" ":"")+PS(n)}),aoe=pqe;function loe(t,n,e){return t=Zr(t),e=null==e?0:Ym(Qi(e),0,t.length),n=Ac(n),t.slice(e,e+n.length)==n}function coe(){return{}}function uoe(){return""}function doe(){return!0}var hoe=yS(function(t,n){return t-n},0);function foe(t){return t&&t.length?BF(t,fl):0}function poe(t,n){return t&&t.length?BF(t,zi(n)):0}function moe(t){var n=null==t?0:t.length;return n?au(t,1,n):[]}function goe(t,n,e){return t&&t.length?au(t,0,(n=e||void 0===n?1:Qi(n))<0?0:n):[]}function voe(t,n,e){var i=null==t?0:t.length;return i?au(t,(n=i-(n=e||void 0===n?1:Qi(n)))<0?0:n,i):[]}function yoe(t,n){return t&&t.length?GS(t,zi(n),!1,!0):[]}function _oe(t,n){return t&&t.length?GS(t,zi(n)):[]}function boe(t,n){return n(t),t}var xoe=Object.prototype,mqe=xoe.hasOwnProperty;function woe(t,n,e,i){return void 0===t||ou(t,xoe[e])&&!mqe.call(i,e)?n:t}var gqe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function vqe(t){return"\\"+gqe[t]}var Coe=/<%=([\s\S]+?)%>/g,ik={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Coe,variable:"",imports:{_:{escape:TF}}},yqe=/\b__p \+= '';/g,_qe=/\b(__p \+=) '' \+/g,bqe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xqe=/[()=,{}\[\]\/\s]/,wqe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rk=/($^)/,Cqe=/['\n\r\u2028\u2029\\]/g,Soe=Object.prototype.hasOwnProperty;function koe(t,n,e){var i=ik.imports._.templateSettings||ik;e&&Nl(t,n,e)&&(n=void 0),t=Zr(t),n=a0({},n,i,woe);var r,o,s=a0({},n.imports,i.imports,woe),a=Xs(s),l=IF(s,a),c=0,u=n.interpolate||rk,d="__p += '",h=RegExp((n.escape||rk).source+"|"+u.source+"|"+(u===Coe?wqe:rk).source+"|"+(n.evaluate||rk).source+"|$","g"),f=Soe.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(h,function(g,v,y,b,C,D){return y||(y=b),d+=t.slice(c,D).replace(Cqe,vqe),v&&(r=!0,d+="' +\n__e("+v+") +\n'"),C&&(o=!0,d+="';\n"+C+";\n__p += '"),y&&(d+="' +\n((__t = ("+y+")) == null ? '' : __t) +\n'"),c=D+g.length,g}),d+="';\n";var p=Soe.call(n,"variable")&&n.variable;if(p){if(xqe.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(yqe,""):d).replace(_qe,"$1").replace(bqe,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=UN(function(){return Function(a,f+"return "+d).apply(void 0,l)});if(m.source=d,FS(m))throw m;return m}function aP(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Go(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),p0(t,n,{leading:i,maxWait:n,trailing:r})}function b0(t,n){return n(t)}var Sqe=Math.min;function lP(t,n){if((t=Qi(t))<1||t>9007199254740991)return[];var e=4294967295,i=Sqe(t,4294967295);t-=4294967295;for(var r=jN(i,n=rh(n));++e-1;);return e}function Noe(t,n){for(var e=-1,i=t.length;++e-1;);return e}function Foe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return dee(t);if(!t||!(n=Ac(n)))return t;var i=nd(t),r=nd(n);return dp(i,Noe(i,r),Ioe(i,r)+1).join("")}function Poe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return t.slice(0,uee(t)+1);if(!t||!(n=Ac(n)))return t;var i=nd(t);return dp(i,0,Ioe(i,nd(n))+1).join("")}var kqe=/^\s+/;function Roe(t,n,e){if((t=Zr(t))&&(e||void 0===n))return t.replace(kqe,"");if(!t||!(n=Ac(n)))return t;var i=nd(t);return dp(i,Noe(i,nd(n))).join("")}var Dqe=/\w*$/;function joe(t,n){var e=30,i="...";if(Go(n)){var r="separator"in n?n.separator:r;e="length"in n?Qi(n.length):e,i="omission"in n?Ac(n.omission):i}var o=(t=Zr(t)).length;if(u0(t)){var s=nd(t);o=s.length}if(e>=o)return t;var a=e-_0(i);if(a<1)return i;var l=s?dp(s,0,a).join(""):t.slice(0,a);if(void 0===r)return l+i;if(s&&(a+=l.length-a),KS(r)){if(t.slice(a).search(r)){var c,u=l;for(r.global||(r=RegExp(r.source,Zr(Dqe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var d=c.index;l=l.slice(0,void 0===d?a:d)}}else if(t.indexOf(Ac(r),a)!=a){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function Loe(t){return RN(t,1)}var Tqe=QN({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Boe=/&(?:amp|lt|gt|quot|#39);/g,Eqe=RegExp(Boe.source);function $oe(t){return(t=Zr(t))&&Eqe.test(t)?t.replace(Boe,Tqe):t}var Aqe=f0&&1/LS(new f0([,-0]))[1]==1/0?function(t){return new f0(t)}:bo,Mqe=Aqe;function pp(t,n,e){var i=-1,r=DS,o=t.length,s=!0,a=[],l=a;if(e)s=!1,r=kF;else if(o>=200){var c=n?null:Mqe(t);if(c)return LS(c);s=!1,r=K_,l=new Jm}else l=n?[]:a;e:for(;++i1||this.__actions__.length)&&i instanceof Ir&&lf(e)?((i=i.slice(e,+e+(n?1:0))).__actions__.push({func:b0,args:[r],thisArg:void 0}),new iu(i,this.__chain__).thru(function(o){return n&&!o.length&&o.push(void 0),o})):this.thru(r)}),tse=Rqe;function nse(){return nF(this)}function ise(){var t=this.__wrapped__;if(t instanceof Ir){var n=t;return this.__actions__.length&&(n=new Ir(this)),(n=n.reverse()).__actions__.push({func:b0,args:[ek],thisArg:void 0}),new iu(n,this.__chain__)}return this.thru(ek)}function dP(t,n,e){var i=t.length;if(i<2)return i?pp(t[0]):[];for(var r=-1,o=Array(i);++r1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,uP(t,e)}),dse=Lqe,Kn={chunk:cte,compact:Ate,concat:Mte,difference:tne,differenceBy:nne,differenceWith:ine,drop:one,dropRight:sne,dropRightWhile:ane,dropWhile:lne,fill:yne,findIndex:AF,findLastIndex:MF,first:va,flatten:HN,flattenDeep:One,flattenDepth:Ine,fromPairs:Hne,head:va,indexOf:Jne,initial:tr,intersection:Kne,intersectionBy:Qne,intersectionWith:Zne,join:Tie,last:Bn,lastIndexOf:Mie,nth:Xie,pull:xre,pullAll:nP,pullAllBy:wre,pullAllWith:Cre,pullAt:kre,remove:Fre,reverse:ek,slice:qre,sortedIndex:Jre,sortedIndexBy:Kre,sortedIndexOf:Qre,sortedLastIndex:Zre,sortedLastIndexBy:eoe,sortedLastIndexOf:toe,sortedUniq:ioe,sortedUniqBy:roe,tail:moe,take:goe,takeRight:voe,takeRightWhile:yoe,takeWhile:_oe,union:Voe,unionBy:Hoe,unionWith:Uoe,uniq:zoe,uniqBy:Goe,uniqWith:Woe,unzip:ok,unzipWith:uP,without:Zoe,xor:rse,xorBy:ose,xorWith:sse,zip:ase,zipObject:cse,zipObjectDeep:use,zipWith:dse},xo={countBy:Gte,each:WS,eachRight:tb,every:vne,filter:bne,find:wne,findLast:kne,flatMap:Ene,flatMapDeep:Ane,flatMapDepth:Mne,forEach:WS,forEachRight:tb,groupBy:g0,includes:Xne,invokeMap:sie,keyBy:Aie,map:m0,orderBy:ire,partition:ZF,reduce:Ore,reduceRight:Ire,reject:Nre,sample:Vre,sampleSize:Hre,shuffle:Gre,size:Wre,some:Xre,sortBy:oP},Bqe={now:Z_},xs={after:hee,ary:RN,before:zN,bind:WN,bindKey:Gee,curry:HS,curryRight:US,debounce:p0,defer:Zte,delay:ene,flip:Nne,memoize:l0,negate:y0,once:ere,overArgs:ore,partial:KF,partialRight:vre,rearg:Are,rest:jre,spread:soe,throttle:aP,unary:Loe,wrap:ese},bi={castArray:ate,clone:Dte,cloneDeep:Tte,cloneDeepWith:dF,cloneWith:Ete,conformsTo:Hte,eq:ou,gt:Gne,gte:Wne,isArguments:lp,isArray:Ui,isArrayBuffer:lie,isArrayLike:Il,isArrayLikeObject:bs,isBoolean:cie,isBuffer:df,isDate:die,isElement:hie,isEmpty:Ji,isEqual:dr,isEqualWith:fie,isError:FS,isFinite:pie,isFunction:Zd,isInteger:PF,isLength:W_,isMap:cF,isMatch:mie,isMatchWith:gie,isNaN:vie,isNative:yie,isNil:_ie,isNull:bie,isNumber:RF,isObject:Go,isObjectLike:as,isPlainObject:c0,isRegExp:KS,isSafeInteger:wie,isSet:uF,isString:nb,isSymbol:nc,isTypedArray:Gm,isUndefined:Cie,isWeakMap:Sie,isWeakSet:kie,lt:Nie,lte:Fie,toArray:HF,toFinite:Qd,toInteger:Qi,toLength:EF,toNumber:Mc,toPlainObject:CF,toSafeInteger:Aoe,toString:Zr},Pl={add:cee,ceil:lte,divide:rne,floor:Fne,max:Lie,maxBy:Bie,mean:Vie,meanBy:Hie,min:Wie,minBy:v0,multiply:qie,round:Bre,subtract:hoe,sum:foe,sumBy:poe},$qe=ute,Vqe=Yne,Hqe=Dre,Li={assign:Lee,assignIn:AS,assignInWith:a0,assignWith:Bee,at:Hee,create:Wte,defaults:Xte,defaultsDeep:Kte,entries:qS,entriesIn:YS,extend:AS,extendWith:a0,findKey:Sne,findLastKey:Dne,forIn:Lne,forInRight:Bne,forOwn:$ne,forOwnRight:Vne,functions:Une,functionsIn:zne,get:IS,has:qne,hasIn:$S,invert:tie,invertBy:iie,invoke:oie,keys:Xs,keysIn:Fl,mapKeys:Pie,mapValues:LF,merge:Uie,mergeWith:SF,omit:Kie,omitBy:Zie,pick:yre,pickBy:GF,result:Lre,set:Ure,setWith:zre,toPairs:qS,toPairsIn:YS,transform:Ooe,unset:qoe,update:Xoe,updateWith:Joe,values:Km,valuesIn:Qoe},oh={at:tse,chain:nF,commit:hF,lodash:Ce,next:UF,plant:eP,reverse:ise,tap:boe,thru:b0,toIterator:cP,toJSON:Qm,value:Qm,valueOf:Qm,wrapperChain:nse},eo={camelCase:ste,capitalize:JN,deburr:ZN,endsWith:dne,escape:TF,escapeRegExp:mne,kebabCase:Eie,lowerCase:Oie,lowerFirst:Iie,pad:fre,padEnd:pre,padStart:mre,parseInt:gre,repeat:Pre,replace:Rre,snakeCase:Yre,split:ooe,startCase:aoe,startsWith:loe,template:koe,templateSettings:ik,toLower:Toe,toUpper:Moe,trim:Foe,trimEnd:Poe,trimStart:Roe,truncate:joe,unescape:$oe,upperCase:Koe,upperFirst:PS,words:eF},lo={attempt:UN,bindAll:zee,cond:Bte,conforms:Vte,constant:CS,defaultTo:qte,flow:Rne,flowRight:jne,identity:fl,iteratee:Die,matches:Rie,matchesProperty:jie,method:zie,methodOf:Gie,mixin:$F,noop:bo,nthArg:Jie,over:rre,overEvery:sre,overSome:are,property:_F,propertyOf:_re,range:rP,rangeRight:Ere,stubArray:RS,stubFalse:ES,stubObject:coe,stubString:uoe,stubTrue:doe,times:lP,toPath:Eoe,uniqueId:mp},Uqe=Math.max,zqe=Math.min,Gqe=Math.min,Wqe=Array.prototype,hse=Object.prototype.hasOwnProperty,fse=hl?hl.iterator:void 0,qqe=Math.max,pse=Math.min,fP=function(t){return function(n,e,i){if(null==i){var r=Go(e),o=r&&Xs(e),s=o&&o.length&&XS(e,o);(s?s.length:r)||(i=e,e=n,n=this)}return t(n,e,i)}}($F);Ce.after=xs.after,Ce.ary=xs.ary,Ce.assign=Li.assign,Ce.assignIn=Li.assignIn,Ce.assignInWith=Li.assignInWith,Ce.assignWith=Li.assignWith,Ce.at=Li.at,Ce.before=xs.before,Ce.bind=xs.bind,Ce.bindAll=lo.bindAll,Ce.bindKey=xs.bindKey,Ce.castArray=bi.castArray,Ce.chain=oh.chain,Ce.chunk=Kn.chunk,Ce.compact=Kn.compact,Ce.concat=Kn.concat,Ce.cond=lo.cond,Ce.conforms=lo.conforms,Ce.constant=lo.constant,Ce.countBy=xo.countBy,Ce.create=Li.create,Ce.curry=xs.curry,Ce.curryRight=xs.curryRight,Ce.debounce=xs.debounce,Ce.defaults=Li.defaults,Ce.defaultsDeep=Li.defaultsDeep,Ce.defer=xs.defer,Ce.delay=xs.delay,Ce.difference=Kn.difference,Ce.differenceBy=Kn.differenceBy,Ce.differenceWith=Kn.differenceWith,Ce.drop=Kn.drop,Ce.dropRight=Kn.dropRight,Ce.dropRightWhile=Kn.dropRightWhile,Ce.dropWhile=Kn.dropWhile,Ce.fill=Kn.fill,Ce.filter=xo.filter,Ce.flatMap=xo.flatMap,Ce.flatMapDeep=xo.flatMapDeep,Ce.flatMapDepth=xo.flatMapDepth,Ce.flatten=Kn.flatten,Ce.flattenDeep=Kn.flattenDeep,Ce.flattenDepth=Kn.flattenDepth,Ce.flip=xs.flip,Ce.flow=lo.flow,Ce.flowRight=lo.flowRight,Ce.fromPairs=Kn.fromPairs,Ce.functions=Li.functions,Ce.functionsIn=Li.functionsIn,Ce.groupBy=xo.groupBy,Ce.initial=Kn.initial,Ce.intersection=Kn.intersection,Ce.intersectionBy=Kn.intersectionBy,Ce.intersectionWith=Kn.intersectionWith,Ce.invert=Li.invert,Ce.invertBy=Li.invertBy,Ce.invokeMap=xo.invokeMap,Ce.iteratee=lo.iteratee,Ce.keyBy=xo.keyBy,Ce.keys=Xs,Ce.keysIn=Li.keysIn,Ce.map=xo.map,Ce.mapKeys=Li.mapKeys,Ce.mapValues=Li.mapValues,Ce.matches=lo.matches,Ce.matchesProperty=lo.matchesProperty,Ce.memoize=xs.memoize,Ce.merge=Li.merge,Ce.mergeWith=Li.mergeWith,Ce.method=lo.method,Ce.methodOf=lo.methodOf,Ce.mixin=fP,Ce.negate=y0,Ce.nthArg=lo.nthArg,Ce.omit=Li.omit,Ce.omitBy=Li.omitBy,Ce.once=xs.once,Ce.orderBy=xo.orderBy,Ce.over=lo.over,Ce.overArgs=xs.overArgs,Ce.overEvery=lo.overEvery,Ce.overSome=lo.overSome,Ce.partial=xs.partial,Ce.partialRight=xs.partialRight,Ce.partition=xo.partition,Ce.pick=Li.pick,Ce.pickBy=Li.pickBy,Ce.property=lo.property,Ce.propertyOf=lo.propertyOf,Ce.pull=Kn.pull,Ce.pullAll=Kn.pullAll,Ce.pullAllBy=Kn.pullAllBy,Ce.pullAllWith=Kn.pullAllWith,Ce.pullAt=Kn.pullAt,Ce.range=lo.range,Ce.rangeRight=lo.rangeRight,Ce.rearg=xs.rearg,Ce.reject=xo.reject,Ce.remove=Kn.remove,Ce.rest=xs.rest,Ce.reverse=Kn.reverse,Ce.sampleSize=xo.sampleSize,Ce.set=Li.set,Ce.setWith=Li.setWith,Ce.shuffle=xo.shuffle,Ce.slice=Kn.slice,Ce.sortBy=xo.sortBy,Ce.sortedUniq=Kn.sortedUniq,Ce.sortedUniqBy=Kn.sortedUniqBy,Ce.split=eo.split,Ce.spread=xs.spread,Ce.tail=Kn.tail,Ce.take=Kn.take,Ce.takeRight=Kn.takeRight,Ce.takeRightWhile=Kn.takeRightWhile,Ce.takeWhile=Kn.takeWhile,Ce.tap=oh.tap,Ce.throttle=xs.throttle,Ce.thru=b0,Ce.toArray=bi.toArray,Ce.toPairs=Li.toPairs,Ce.toPairsIn=Li.toPairsIn,Ce.toPath=lo.toPath,Ce.toPlainObject=bi.toPlainObject,Ce.transform=Li.transform,Ce.unary=xs.unary,Ce.union=Kn.union,Ce.unionBy=Kn.unionBy,Ce.unionWith=Kn.unionWith,Ce.uniq=Kn.uniq,Ce.uniqBy=Kn.uniqBy,Ce.uniqWith=Kn.uniqWith,Ce.unset=Li.unset,Ce.unzip=Kn.unzip,Ce.unzipWith=Kn.unzipWith,Ce.update=Li.update,Ce.updateWith=Li.updateWith,Ce.values=Li.values,Ce.valuesIn=Li.valuesIn,Ce.without=Kn.without,Ce.words=eo.words,Ce.wrap=xs.wrap,Ce.xor=Kn.xor,Ce.xorBy=Kn.xorBy,Ce.xorWith=Kn.xorWith,Ce.zip=Kn.zip,Ce.zipObject=Kn.zipObject,Ce.zipObjectDeep=Kn.zipObjectDeep,Ce.zipWith=Kn.zipWith,Ce.entries=Li.toPairs,Ce.entriesIn=Li.toPairsIn,Ce.extend=Li.assignIn,Ce.extendWith=Li.assignInWith,fP(Ce,Ce),Ce.add=Pl.add,Ce.attempt=lo.attempt,Ce.camelCase=eo.camelCase,Ce.capitalize=eo.capitalize,Ce.ceil=Pl.ceil,Ce.clamp=$qe,Ce.clone=bi.clone,Ce.cloneDeep=bi.cloneDeep,Ce.cloneDeepWith=bi.cloneDeepWith,Ce.cloneWith=bi.cloneWith,Ce.conformsTo=bi.conformsTo,Ce.deburr=eo.deburr,Ce.defaultTo=lo.defaultTo,Ce.divide=Pl.divide,Ce.endsWith=eo.endsWith,Ce.eq=bi.eq,Ce.escape=eo.escape,Ce.escapeRegExp=eo.escapeRegExp,Ce.every=xo.every,Ce.find=xo.find,Ce.findIndex=Kn.findIndex,Ce.findKey=Li.findKey,Ce.findLast=xo.findLast,Ce.findLastIndex=Kn.findLastIndex,Ce.findLastKey=Li.findLastKey,Ce.floor=Pl.floor,Ce.forEach=xo.forEach,Ce.forEachRight=xo.forEachRight,Ce.forIn=Li.forIn,Ce.forInRight=Li.forInRight,Ce.forOwn=Li.forOwn,Ce.forOwnRight=Li.forOwnRight,Ce.get=Li.get,Ce.gt=bi.gt,Ce.gte=bi.gte,Ce.has=Li.has,Ce.hasIn=Li.hasIn,Ce.head=Kn.head,Ce.identity=fl,Ce.includes=xo.includes,Ce.indexOf=Kn.indexOf,Ce.inRange=Vqe,Ce.invoke=Li.invoke,Ce.isArguments=bi.isArguments,Ce.isArray=Ui,Ce.isArrayBuffer=bi.isArrayBuffer,Ce.isArrayLike=bi.isArrayLike,Ce.isArrayLikeObject=bi.isArrayLikeObject,Ce.isBoolean=bi.isBoolean,Ce.isBuffer=bi.isBuffer,Ce.isDate=bi.isDate,Ce.isElement=bi.isElement,Ce.isEmpty=bi.isEmpty,Ce.isEqual=bi.isEqual,Ce.isEqualWith=bi.isEqualWith,Ce.isError=bi.isError,Ce.isFinite=bi.isFinite,Ce.isFunction=bi.isFunction,Ce.isInteger=bi.isInteger,Ce.isLength=bi.isLength,Ce.isMap=bi.isMap,Ce.isMatch=bi.isMatch,Ce.isMatchWith=bi.isMatchWith,Ce.isNaN=bi.isNaN,Ce.isNative=bi.isNative,Ce.isNil=bi.isNil,Ce.isNull=bi.isNull,Ce.isNumber=bi.isNumber,Ce.isObject=Go,Ce.isObjectLike=bi.isObjectLike,Ce.isPlainObject=bi.isPlainObject,Ce.isRegExp=bi.isRegExp,Ce.isSafeInteger=bi.isSafeInteger,Ce.isSet=bi.isSet,Ce.isString=bi.isString,Ce.isSymbol=bi.isSymbol,Ce.isTypedArray=bi.isTypedArray,Ce.isUndefined=bi.isUndefined,Ce.isWeakMap=bi.isWeakMap,Ce.isWeakSet=bi.isWeakSet,Ce.join=Kn.join,Ce.kebabCase=eo.kebabCase,Ce.last=Bn,Ce.lastIndexOf=Kn.lastIndexOf,Ce.lowerCase=eo.lowerCase,Ce.lowerFirst=eo.lowerFirst,Ce.lt=bi.lt,Ce.lte=bi.lte,Ce.max=Pl.max,Ce.maxBy=Pl.maxBy,Ce.mean=Pl.mean,Ce.meanBy=Pl.meanBy,Ce.min=Pl.min,Ce.minBy=Pl.minBy,Ce.stubArray=lo.stubArray,Ce.stubFalse=lo.stubFalse,Ce.stubObject=lo.stubObject,Ce.stubString=lo.stubString,Ce.stubTrue=lo.stubTrue,Ce.multiply=Pl.multiply,Ce.nth=Kn.nth,Ce.noop=lo.noop,Ce.now=Bqe.now,Ce.pad=eo.pad,Ce.padEnd=eo.padEnd,Ce.padStart=eo.padStart,Ce.parseInt=eo.parseInt,Ce.random=Hqe,Ce.reduce=xo.reduce,Ce.reduceRight=xo.reduceRight,Ce.repeat=eo.repeat,Ce.replace=eo.replace,Ce.result=Li.result,Ce.round=Pl.round,Ce.sample=xo.sample,Ce.size=xo.size,Ce.snakeCase=eo.snakeCase,Ce.some=xo.some,Ce.sortedIndex=Kn.sortedIndex,Ce.sortedIndexBy=Kn.sortedIndexBy,Ce.sortedIndexOf=Kn.sortedIndexOf,Ce.sortedLastIndex=Kn.sortedLastIndex,Ce.sortedLastIndexBy=Kn.sortedLastIndexBy,Ce.sortedLastIndexOf=Kn.sortedLastIndexOf,Ce.startCase=eo.startCase,Ce.startsWith=eo.startsWith,Ce.subtract=Pl.subtract,Ce.sum=Pl.sum,Ce.sumBy=Pl.sumBy,Ce.template=eo.template,Ce.times=lo.times,Ce.toFinite=bi.toFinite,Ce.toInteger=Qi,Ce.toLength=bi.toLength,Ce.toLower=eo.toLower,Ce.toNumber=bi.toNumber,Ce.toSafeInteger=bi.toSafeInteger,Ce.toString=bi.toString,Ce.toUpper=eo.toUpper,Ce.trim=eo.trim,Ce.trimEnd=eo.trimEnd,Ce.trimStart=eo.trimStart,Ce.truncate=eo.truncate,Ce.unescape=eo.unescape,Ce.uniqueId=lo.uniqueId,Ce.upperCase=eo.upperCase,Ce.upperFirst=eo.upperFirst,Ce.each=xo.forEach,Ce.eachRight=xo.forEachRight,Ce.first=Kn.head,fP(Ce,(hP={},ih(Ce,function(t,n){hse.call(Ce.prototype,n)||(hP[n]=t)}),hP),{chain:!1}),Ce.VERSION="4.17.21",(Ce.templateSettings=eo.templateSettings).imports._=Ce,ru(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Ce[t].placeholder=Ce}),ru(["drop","take"],function(t,n){Ir.prototype[t]=function(e){e=void 0===e?1:qqe(Qi(e),0);var i=this.__filtered__&&!n?new Ir(this):this.clone();return i.__filtered__?i.__takeCount__=pse(e,i.__takeCount__):i.__views__.push({size:pse(e,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},Ir.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ru(["filter","map","takeWhile"],function(t,n){var e=n+1,i=1==e||3==e;Ir.prototype[t]=function(r){var o=this.clone();return o.__iteratees__.push({iteratee:zi(r),type:e}),o.__filtered__=o.__filtered__||i,o}}),ru(["head","last"],function(t,n){var e="take"+(n?"Right":"");Ir.prototype[t]=function(){return this[e](1).value()[0]}}),ru(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Ir.prototype[t]=function(){return this.__filtered__?new Ir(this):this[e](1)}}),Ir.prototype.compact=function(){return this.filter(fl)},Ir.prototype.find=function(t){return this.filter(t).head()},Ir.prototype.findLast=function(t){return this.reverse().find(t)},Ir.prototype.invokeMap=mr(function(t,n){return"function"==typeof t?new Ir(this):this.map(function(e){return ib(e,t,n)})}),Ir.prototype.reject=function(t){return this.filter(y0(zi(t)))},Ir.prototype.slice=function(t,n){t=Qi(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Ir(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=Qi(n))<0?e.dropRight(-n):e.take(n-t)),e)},Ir.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ir.prototype.toArray=function(){return this.take(4294967295)},ih(Ir.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=Ce[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(Ce.prototype[n]=function(){var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Ir,c=a[0],u=l||Ui(s),d=function(v){var y=r.apply(Ce,up([v],a));return i&&h?y[0]:y};u&&e&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=o&&!h,m=l&&!this.__actions__.length;if(!o&&u){s=m?s:new Ir(this);var g=t.apply(s,a);return g.__actions__.push({func:b0,args:[d],thisArg:void 0}),new iu(g,h)}return p&&m?t.apply(this,a):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),ru(["pop","push","shift","sort","splice","unshift"],function(t){var n=Wqe[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Ce.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var o=this.value();return n.apply(Ui(o)?o:[],r)}return this[e](function(s){return n.apply(Ui(s)?s:[],r)})}}),ih(Ir.prototype,function(t,n){var e=Ce[n];if(e){var i=e.name+"";hse.call(n0,i)||(n0[i]=[]),n0[i].push({name:n,func:e})}}),n0[TS(void 0,2).name]=[{name:"wrapper",func:void 0}],Ir.prototype.clone=function(){var t=new Ir(this.__wrapped__);return t.__actions__=ic(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ic(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ic(this.__views__),t},Ir.prototype.reverse=function(){if(this.__filtered__){var t=new Ir(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ir.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Ui(t),i=n<0,r=e?t.length:0,o=function(D,E,B){for(var z=-1,j=B.length;++z1&&void 0!==arguments[1]&&arguments[1],e={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(l,c){(!Array.isArray(l)&&!Io(l)||n&&c.length>0)&&(e[dn(c)]=!0),Io(l)&&Object.keys(l).forEach(function(u){i(l[u],c.concat(u))})}for(var r=Math.min(t.length,1e4),o=0;on?t.slice(0,n):t}function gse(t){return nt({},t)}function vse(t){return Object.values(t)}function yse(t,n,e,i){var r=t.slice(0),o=r.splice(n,e);return r.splice.apply(r,[n+i,0].concat(ui(o))),r}function mP(t,n){try{return n.parse(t)}catch{return n.parse(Kd(t))}}function _se(t,n){try{return mP(t,n)}catch{return}}function ak(t,n){t=t.replace(xse,"");try{return n(t)}catch{}try{return n("["+t+"]")}catch{}try{return n("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function bse(t){t=t.replace(xse,"");try{return Kd(t)}catch{}try{var n=Kd("["+t+"]");return n.substring(1,n.length-1)}catch{}try{var e=Kd("{"+t+"}");return e.substring(1,e.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var xse=/,\s*$/;function lk(t,n){var e=Sse.exec(n);if(e){var i=Ys(e[2]),r=function(f,p){for(var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.length,v=0,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return x0(t)?t:{text:e.stringify(t.json,null,n)}}function wse(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return vP(t)?t:{json:n.parse(t.text)}}function ck(t,n,e){return Zm(t,n,e).text}function Cse(t,n){return function Kqe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(x0(t))return t.text.length;var i=0;return function r(o){if(Array.isArray(o)){if((i+=o.length-1+2)>n)return i;for(var s=0;sn)return i}else if(Io(o)){var a=Object.keys(o);i+=2+a.length+(a.length-1);for(var l=0;ln}var Sse=/(position|char) (\d+)/,Qqe=/line (\d+)/,Zqe=/column (\d+)/;function Dse(t){return eYe.test(t)&&t.length>2}var eYe=/^[[{]\S/;function yP(t){var e=t.escapeUnicodeCharacters;return t.escapeControlCharacters?e?tYe:nYe:e?iYe:rYe}var tYe={escapeValue:function(t){return Tse(Mse(String(t)))},unescapeValue:function(t){return Ose(Ese(t))}},nYe={escapeValue:function(t){return Mse(String(t))},unescapeValue:function(t){return Ose(t)}},iYe={escapeValue:function(t){return Tse(String(t))},unescapeValue:function(t){return Ese(t)}},rYe={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function Tse(t){return t.replace(/[^\x20-\x7F]/g,function(n){var e;return"\b"===n||"\f"===n||"\n"===n||"\r"===n||"\t"===n?n:"\\u"+("000"+(null===(e=n.codePointAt(0))||void 0===e?void 0:e.toString(16))).slice(-4)})}function Ese(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(n){try{var e=JSON.parse('"'+n+'"');return Ase[e]||e}catch{return n}})}var Ase={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},oYe={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Mse(t){return t.replace(/["\b\f\n\r\t\\]/g,function(n){return Ase[n]||n})}function Ose(t){return t.replace(/\\["bfnrt\\]/g,function(n){return oYe[n]||n})}function eg(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function Ise(t,n){return ob(t,function(e){return e.nodeName.toUpperCase()===n.toUpperCase()})}function tg(t,n,e){return ob(t,function(i){return s=e,"function"==typeof(r=i).getAttribute&&r.getAttribute(n)===s;var r,s})}function ob(t,n){return!!_P(t,n)}function _P(t,n){for(var e=t;e&&!n(e);)e=e.parentNode;return e||void 0}function Nse(t){if(null!=t.firstChild){var n=document.createRange(),e=window.getSelection();n.setStart(t,1),n.collapse(!0),e?.removeAllRanges(),e?.addRange(n)}else t.focus()}function uk(t,n,e){var i=w0(t);if(i){var r=i.document.activeElement?i.document.activeElement:null;r&&r.isContentEditable&&(r.textContent=e?n:r.textContent+n,Nse(r))}}function w0(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function dk(t){var e=w0(t)?.document.activeElement;return!!e&&ob(e,function(i){return i===t})}function Fse(t,n){return _P(t,function(e){return e.nodeName===n})}function bP(t){return tg(t,"data-type","selectable-key")?so.key:tg(t,"data-type","selectable-value")?so.value:tg(t,"data-type","insert-selection-area-inside")?so.inside:tg(t,"data-type","insert-selection-area-after")?so.after:so.multi}function C0(t){return encodeURIComponent(dn(t))}function Pse(t){var e=_P(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")})?.getAttribute("data-path");return e?Zu(decodeURIComponent(e)):null}function gp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",e=[];t.ctrlKey&&e.push("Ctrl"),t.metaKey&&e.push("Ctrl"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in aYe||e.push(i),e.join(n)}var aYe={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},xP=cN.window;function lYe(t){_i(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function Rse(t){var n,e,i,r,o,s,a=[t[0].props],l=t[0].component;function c(u){for(var d={},h=0;hwindow.innerHeight&&C>h,z="left"===v||b+u>window.innerWidth&&b>u;return{left:z?y.right-g:b+g,top:B?C-p:y.bottom+p,positionAbove:B,positionLeft:z}}if("number"==typeof n.left&&"number"==typeof n.top){var j=n.left,U=n.top,G=n.width,X=void 0===G?0:G,oe=n.height,P=void 0===oe?0:oe;return{left:j,top:U,positionAbove:U+P>window.innerHeight&&U>P,positionLeft:j+X>window.innerWidth&&j>X}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,o=i.top,a=i.positionLeft;return(i.positionAbove?"bottom: ".concat(e.top-o,"px;"):"top: ".concat(o-e.top,"px;"))+(a?"right: ".concat(e.left-r,"px;"):"left: ".concat(r-e.left,"px;"))}function dYe(t,n,e){var i,r,o=n.popup,s=n.closeAbsolutePopup;function a(l){o.options&&o.options.closeOnOuterClick&&!ob(l.target,function(c){return c===i})&&s(o.id)}return eu(function(){r&&r.focus()}),t.$$set=function(l){"popup"in l&&e(0,o=l.popup),"closeAbsolutePopup"in l&&e(6,s=l.closeAbsolutePopup)},[o,i,r,function(l){a(l)},function(l){"Escape"===gp(l)&&s(o.id)},function(l){a(l)},s,function(l){Xi[l?"unshift":"push"](function(){e(2,r=l)})},function(l){Xi[l?"unshift":"push"](function(){e(1,i=l)})}]}var hYe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dYe,cYe,_s,{popup:0,closeAbsolutePopup:6},lYe),r}return Ie(e)}();function Lse(t,n,e){var i=t.slice();return i[6]=n[e],i}function Bse(t){var n,e;return n=new hYe({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.popup=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function fYe(t){for(var n,e,i=t[0],r=[],o=0;o0;){var i=n.match(gYe);if(!i)throw new SyntaxError('Cannot parse path: unexpected part "'.concat(n,'" at position ').concat(t.length-n.length));e.push(i[1]||i[2]||i[3]),n=n.substring(i[0].length)}var r;return e}var gYe=new RegExp(["^\\.([A-zA-Z$_][a-zA-Z$_0-9]*)","^\\[([0-9]+)]","^\\['(.*)']"].join("|"));function sb(t){return{value:t,label:Ji(t)?"(whole item)":cu(rc(t))}}function sh(t){return t.map(function(n){return CP.test(n)?"?.[".concat(n,"]"):wP.test(n)?"?.".concat(n):"?.[".concat(JSON.stringify(n),"]")}).join("")}var wP=/^[a-zA-Z$_][a-zA-Z$_\d]*$/,CP=/^\d+$/;function ab(t,n){for(var e=new Set(n),i=t.replace(/ \(copy( \d+)?\)$/,""),r=t,o=1;e.has(r);){var s="copy"+(o>1?" "+o:"");r="".concat(i," (").concat(s,")"),o++}return r}function ah(t,n){return t.length>n?t.substring(0,n-3)+"...":t}var vYe={id:"javascript",name:"JavaScript",description:"\n

    \n Enter a JavaScript function to filter, sort, or transform the data.\n

    \n",createQuery:function(t,n){var e=n.filter,i=n.sort,r=n.projection,o=[" return data\n"];if(e&&e.path&&e.relation&&e.value){var s="item => item".concat(sh(e.path)),a=function SP(t){if(""===t)return"";var n=t.toLowerCase();if("null"===n)return null;if("true"===n)return!0;if("false"===n)return!1;if("undefined"!==n){var e=Number(t),i=parseFloat(t);return isNaN(e)||isNaN(i)?t:e}}(e.value),l="string"==typeof a?"'".concat(e.value,"'"):function nee(t){return jUe.test(t)}(e.value)&&!Number.isSafeInteger(a)?"".concat(e.value,"n"):e.value;o.push(" .filter(".concat(s," ").concat(e.relation," ").concat(l,")\n"))}if(i&&i.path&&i.direction&&o.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(sh(i.path),"\n")+" const valueB = b".concat(sh(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(sh(i.path),"\n")+" const valueB = b".concat(sh(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var c=r.paths.map(function(d){var h=d[d.length-1]||"item",f="item".concat(sh(d));return" ".concat(JSON.stringify(h),": ").concat(f)});o.push(" .map(item => ({\n".concat(c.join(",\n"),"})\n )\n"))}else{var u="item".concat(sh(r.paths[0]));o.push(" .map(item => ".concat(u,")\n"))}return"function query (data) {\n".concat(o.join(""),"}")},executeQuery:function(t,n){var e=new Function('"use strict";\n\n'+n+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==e?e:null}},yYe={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M281.2 248.9C295.6 228.3 304 203.2 304 176c0-70.7-57.3-128-128-128S48 105.3 48 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H93c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C11.6 247.9 0 213.3 0 176C0 78.8 78.8 0 176 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H210.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM176 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H256v16c0 44.2-35.8 80-80 80z"]},lb={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},cb={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},_Ye={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function bYe(t){for(var n,e=[t[0]],i={},r=0;r300},{anchor:h.target,closeOnOuterClick:!0,onClose:d,offsetTop:18,offsetLeft:-8,height:300})}},o,l,c]}var qYe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,WYe,GYe,Pi,{path:4,value:0,readOnly:1,onPatch:5,focus:6},zYe),r}return Ie(e)}();function Jse(t){for(var n=oP(t,function(a){return a.start}),e=[n[0]],i=0;i=e.start&&n0){var d=pk(n,u);DP(l,d,function(g){o[c]=String(g),a(l[g])}),o.pop()}}}else if(Io(l)&&i(o)){r[dn(o)]=!0;var h=Object.keys(l);if(h.length>0){var f,p=He(h);try{for(p.s();!(f=p.n()).done;){var m=f.value;o[c]=m,a(l[m])}}catch(g){p.e(g)}finally{p.f()}o.pop()}}}(s),nt(nt({},n),{},{expandedMap:r})}function Kse(t,n){var e=S0(t.expandedMap,n),i=S0(t.enforceStringMap,n),r=S0(t.visibleSectionsMap,n);return nt(nt({},t),{},{expandedMap:e,enforceStringMap:i,visibleSectionsMap:r})}function Qse(t,n,e){if(e){var i=nt({},t.enforceStringMap);return i[n]=e,nt(nt({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[n]){var r=nt({},t.enforceStringMap);return delete r[n],nt(nt({},t),{},{enforceStringMap:r})}return t}function Zse(t,n,e){var i=ed(t,e),r=e.reduce(function(o,s){return BZ(s)?eae(i,o,s):$Z(s)?tae(i,o,s):mN(s)?(u=(c=s).path,d=OP(a=i,(l=o).expandedMap),h=OP(a,l.enforceStringMap),f=OP(a,l.visibleSectionsMap),Oo(c.value)||ao(c.value)||delete d[u],ao(c.value)||delete f[u],(Oo(c.value)||ao(c.value))&&delete h[u],nt(nt({},l),{},{expandedMap:d,enforceStringMap:h,visibleSectionsMap:f})):gN(s)||Qv(s)?function(a,l,c){if(Qv(c)&&c.from===c.path)return l;var u=function(y){return c.path+y.substring(c.from.length)},d=MP(EP(l.expandedMap,c.from),u),h=MP(EP(l.enforceStringMap,c.from),u),f=MP(EP(l.visibleSectionsMap,c.from),u),p=l;Qv(c)&&(p=tae(a,p,{op:"remove",path:c.from}));var m=AP((p=eae(a,p,{op:"add",path:c.path,value:null})).expandedMap,d),g=AP(p.enforceStringMap,h),v=AP(p.visibleSectionsMap,f);return nt(nt({},l),{},{expandedMap:m,enforceStringMap:g,visibleSectionsMap:v})}(i,o,s):o;var a,l,c,u,d,h,f},n);return{json:i,documentState:r}}function eae(t,n,e){var i=td(t,e.path),r=tr(i),o=dn(r);if(ao(On(t,r))){var s=Ys(Bn(i)),a=k0(n.expandedMap,r,s,1),l=k0(n.enforceStringMap,r,s,1),c=k0(n.visibleSectionsMap,r,s,1);return c=nae(c,o,function(u){return iae(u,s,1)}),nt(nt({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}return n}function tae(t,n,e){var i=td(t,e.path),r=tr(i),o=dn(r),s=On(t,r),a=n.expandedMap,l=n.enforceStringMap,c=n.visibleSectionsMap;if(a=S0(a,i),l=S0(l,i),c=S0(c,i),ao(s)){var u=Ys(Bn(i));a=k0(a,r,u,-1),l=k0(l,r,u,-1),c=nae(c=k0(c,r,u,-1),o,function(d){return iae(d,u,-1)})}return nt(nt({},n),{},{expandedMap:a,enforceStringMap:l,visibleSectionsMap:c})}function S0(t,n){var e={},i=dn(n);return Object.keys(t).forEach(function(r){Zv(r,i)||(e[r]=t[r])}),e}function EP(t,n){var e={};return Object.keys(t).forEach(function(i){Zv(i,n)&&(e[i]=t[i])}),e}function AP(t,n){return nt(nt({},t),n)}function MP(t,n){var e={};return Object.keys(t).forEach(function(i){var r=n(i);e[r]=t[i]}),e}function k0(t,n,e,i){for(var r=n.length,o=dn(n),s=[],a=0,l=Object.keys(t);a=e&&(u[r]=String(d+i),s.push({oldPointer:c,newPointer:dn(u),value:t[c]}))}}if(0===s.length)return t;var h=nt({},t);return s.forEach(function(f){delete h[f.oldPointer]}),s.forEach(function(f){h[f.newPointer]=f.value}),h}function OP(t,n){var e={};return Object.keys(n).filter(function(i){return nu(t,td(t,i))}).forEach(function(i){e[i]=n[i]}),e}function nae(t,n,e){var i=t[n];if(n in t){var r=e(i);if(!dr(i,r)){var o=nt({},t);return void 0===r?delete o[n]:o[n]=r,o}}return t}function iae(t,n,e){return t.map(function(i){return{start:i.start>n?i.start+e:i.start,end:i.end>=n?i.end+e:i.end}})}function mf(t,n,e,i){var o,r=n?n[e]:void 0;return"boolean"==typeof r?r:"string"==typeof(o=t)&&"string"!=typeof e0(o,i)}function ub(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(n);return-1!==i?t.slice(e?i:i+1):[]}function IP(t,n){var e=[];return function i(r,o){e.push(o);var s=dn(o);if(r&&!0===n.expandedMap[s]){if(ao(r)){var a=pk(n,s);DP(r,a,function(l){i(r[l],o.concat(String(l)))})}Oo(r)&&Object.keys(r).forEach(function(l){i(r[l],o.concat(l))})}}(t,[]),e}function rae(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(o,s){i.push({path:s,type:Ju.value});var a=dn(s);if(o&&!0===n.expandedMap[a]){if(e&&i.push({path:s,type:Ju.inside}),ao(o)){var l=pk(n,a);DP(o,l,function(c){var u=s.concat(String(c));r(o[c],u),e&&i.push({path:u,type:Ju.after})})}Oo(o)&&Object.keys(o).forEach(function(c){var u=s.concat(c);i.push({path:u,type:Ju.key}),r(o[c],u),e&&i.push({path:u,type:Ju.after})})}}(t,[]),i}function NP(t,n,e){var i=IP(t,n),r=i.map(dn).indexOf(dn(e));return-1!==r&&r0;){if(!0===t.pointersMap[dn(i)])return!0;i.pop()}return ws(t)?e===so.key&&dr(t.focusPath,n):!(!nr(t)||!(e===so.value&&dr(t.focusPath,n)||A0(n,t.focusPath)&&n.length>t.focusPath.length&&(e===so.key||e===so.value||e===so.multi)))}function aae(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.selection;if(!r)return null;var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Lr(r)?r.focusPath:va(r.paths),s=function JYe(t,n,e){var i=IP(t,n),r=i.map(dn),o=dn(e),s=r.indexOf(o);return-1!==s&&s>0?i[s-1]:null}(t,n,o);if(null===s)return null;var a=s,l=s;if(e)return rd(r)||Js(r)?Fs(t,r.anchorPath,r.anchorPath):Fs(t,r.anchorPath,l);if(ws(r)){var u=On(t,tr(s));return Array.isArray(u)||Ji(s)?br(s,!1):du(s,!1)}return nr(r)?br(s,!1):rd(r)||Js(r)?Fs(t,o,o):Fs(t,a,l)}function lae(t,n,e){var i=n.selection;if(!i)return{caret:null,previous:null,next:null};var r=rae(t,n,e),o=r.findIndex(function(s){return dr(s.path,i.focusPath)&&String(s.type)===String(i.type)});return{caret:-1!==o?r[o]:null,previous:-1!==o&&o>0?r[o-1]:null,next:-1!==o&&oe[i].length;)i++;var r=e[i];return 0===r.length||Array.isArray(On(t,tr(r)))?br(r,!1):du(r,!1)}function E0(t,n){if(1===n.length){var e=va(n);if("replace"===e.op||"move"===e.op)return br(td(t,e.path),!1)}if(!Ji(n)&&n.every(function(s){return"move"===s.op})){var i=va(n),r=n.slice(1);if((gN(i)||Qv(i))&&i.from!==i.path&&r.every(function(s){return(gN(s)||Qv(s))&&s.from===s.path}))return du(td(t,i.path),!1)}var o=n.filter(function(s){return"test"!==s.op&&"remove"!==s.op&&("move"!==s.op||s.from!==s.path)&&"string"==typeof s.path}).map(function(s){return td(t,s.path)});if(!Ji(o))return{type:so.multi,paths:o,anchorPath:va(o),focusPath:Bn(o),pointersMap:cae(o)}}function cae(t){var n={};return t.forEach(function(e){n[dn(e)]=!0}),n}function gk(t){return ec({},dn(t),!0)}function hb(t){return void 0!==t&&(ws(t)||nr(t)||Lr(t)&&1===t.paths.length)}function uae(t,n){return hb(n)&&zo(On(t,n.focusPath))?n.focusPath:tr(n.focusPath)}function A0(t,n){if(t.length0?0:-1,e=t.items[n],i=t.items.map(function(r,o){return nt(nt({},r),{},{active:o===n})});return nt(nt({},t),{},{items:i,itemsMap:g0(i,function(r){return dn(r.path)}),activeItem:e,activeIndex:n})}function oXe(t){var n=t.activeIndex>0?t.activeIndex-1:t.items.length-1,e=t.items[n],i=t.items.map(function(r,o){return nt(nt({},r),{},{active:o===n})});return nt(nt({},t),{},{items:i,itemsMap:g0(i,function(r){return dn(r.path)}),activeItem:e,activeIndex:n})}function xae(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=[],r=[];function o(l){i.length=e)return;r.pop()}else if(Oo(c)){var h=Object.keys(c),f=r.length;r.push("");for(var p=0,m=h;p=e)return}r.pop()}else wae(String(c),l,r,Ku.value,o)}(t.toLowerCase(),n),i}function wae(t,n,e,i,r){var o=t.toLowerCase(),s=0,a=-1,l=-1;do{-1!==(l=o.indexOf(n,a))&&(a=l+n.length,r({path:e.slice(0),field:i,fieldIndex:s,start:l,end:a}),s++)}while(-1!==l)}function jP(t,n,e,i){return t.substring(0,e)+n+t.substring(i)}function Cae(t,n,e){var i=t;return tb(e,function(r){i=jP(i,n,r.start,r.end)}),i}function sXe(t,n,e,i,r){var o=i.field,s=i.path,a=i.start,l=i.end;if(o===Ku.key){var c=tr(s),u=On(t,c),d=Bn(s),h=pb(c,Object.keys(u),d,jP(d,e,a,l));return{newSelection:E0(t,h),operations:h}}if(o===Ku.value){var f=On(t,s);if(void 0===f)throw new Error("Cannot replace: path not found ".concat(dn(s)));var p="string"==typeof f?f:String(f),m=dn(s),g=mf(f,n.enforceStringMap,m,r),v=jP(p,e,a,l),y=[{op:"replace",path:dn(s),value:g?v:e0(v,r)}];return{newSelection:E0(t,y),operations:y}}throw new Error("Cannot replace: unknown type of search result field ".concat(o))}function aXe(t,n,e,i,r){for(var o=xae(e,t,1/0),s=[],a=0;an.floating[o]&&(s=Sk(s)),{main:s,cross:Sk(s)}}var qXe={start:"end",end:"start"};function GP(t){return t.replace(/start|end/g,function(n){return qXe[n]})}var YXe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,pe,A,N,F,q,V,ce;return _n().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return r=n.placement,o=n.middlewareData,s=n.rects,a=n.initialPlacement,l=n.platform,c=n.elements,d=(u=t).mainAxis,h=void 0===d||d,p=void 0===(f=u.crossAxis)||f,m=u.fallbackPlacements,v=void 0===(g=u.fallbackStrategy)?"bestFit":g,b=void 0===(y=u.fallbackAxisSideDirection)?"none":y,D=void 0===(C=u.flipAlignment)||C,E=lZ(u,THe),B=og(r),z=og(a)===a,ve.next=23,null==l.isRTL?void 0:l.isRTL(c.floating);case 23:return j=ve.sent,U=m||(z||!D?[Sk(a)]:(void 0,Te=Sk(je=a),[GP(je),Te,GP(Te)])),m||"none"===b||U.push.apply(U,ui(function(je,Te,et,We){var st=wk(je),$=function(ae,le,Re){var Ze=["left","right"],Ve=["right","left"];switch(ae){case"top":case"bottom":return Re?le?Ve:Ze:le?Ze:Ve;case"left":case"right":return le?["top","bottom"]:["bottom","top"];default:return[]}}(og(je),"start"===et,We);return st&&($=$.map(function(ae){return ae+"-"+st}),Te&&($=$.concat($.map(GP)))),$}(a,D,b,j))),G=[a].concat(ui(U)),ve.next=29,Bae(n,E);case 29:if(X=ve.sent,oe=[],P=(null==(i=o.flip)?void 0:i.overflows)||[],h&&oe.push(X[B]),p&&(W=WXe(r,s,j),oe.push(X[W.main],X[W.cross])),P=[].concat(ui(P),[{placement:r,overflows:oe}]),oe.every(function(je){return je<=0})){ve.next=48;break}if(N=((null==(pe=o.flip)?void 0:pe.index)||0)+1,!(F=G[N])){ve.next=37;break}return ve.abrupt("return",{data:{index:N,overflows:P},reset:{placement:F}});case 37:if(q=null==(A=P.filter(function(je){return je.overflows[0]<=0}).sort(function(je,Te){return je.overflows[1]-Te.overflows[1]})[0])?void 0:A.placement,q){ve.next=46;break}ve.t0=v,ve.next="bestFit"===ve.t0?42:"initialPlacement"===ve.t0?45:46;break;case 42:return ce=null==(V=P.map(function(je){return[je.placement,je.overflows.filter(function(Te){return Te>0}).reduce(function(Te,et){return Te+et},0)]}).sort(function(je,Te){return je[1]-Te[1]})[0])?void 0:V[0],ce&&(q=ce),ve.abrupt("break",46);case 45:q=a;case 46:if(r===q){ve.next=48;break}return ve.abrupt("return",{reset:{placement:q}});case 48:return ve.abrupt("return",{});case 49:case"end":return ve.stop()}var je,Te},e)}))()}}},XXe=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o;return _n().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=n.x,r=n.y,s.next=4,function(){var a=or(_n().mark(function l(c,u){var d,h,f,p,m,g,v,y,b,C,D,E,B,z;return _n().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return d=c.placement,h=c.platform,f=c.elements,j.next=5,null==h.isRTL?void 0:h.isRTL(f.floating);case 5:return p=j.sent,m=og(d),g=wk(d),v="x"===Ck(d),y=["left","top"].includes(m)?-1:1,b=p&&v?-1:1,C="function"==typeof u?u(c):u,D="number"==typeof C?{mainAxis:C,crossAxis:0,alignmentAxis:null}:nt({mainAxis:0,crossAxis:0,alignmentAxis:null},C),E=D.mainAxis,B=D.crossAxis,z=D.alignmentAxis,j.abrupt("return",(g&&"number"==typeof z&&(B="end"===g?-1*z:z),v?{x:B*b,y:E*y}:{x:E*y,y:B*b}));case 14:case"end":return j.stop()}},l)}));return function(l,c){return a.apply(this,arguments)}}()(n,t);case 4:return s.abrupt("return",{x:i+(o=s.sent).x,y:r+o.y,data:o});case 6:case"end":return s.stop()}},e)}))()}}};function JXe(t){return"x"===t?"y":"x"}var KXe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(n){return or(_n().mark(function e(){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,B;return _n().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return r=n.x,o=n.y,s=n.placement,l=(a=t).mainAxis,c=void 0===l||l,d=void 0!==(u=a.crossAxis)&&u,f=void 0===(h=a.limiter)?{fn:function(j){return{x:j.x,y:j.y}}}:h,p=lZ(a,EHe),m={x:r,y:o},z.next=14,Bae(n,p);case 14:return g=z.sent,v=Ck(og(s)),y=JXe(v),b=m[v],C=m[y],c&&(b=$ae(b+g["y"===v?"top":"left"],b,b-g["y"===v?"bottom":"right"])),d&&(C=$ae(C+g["y"===y?"top":"left"],C,C-g["y"===y?"bottom":"right"])),B=f.fn(nt(nt({},n),{},(ec(i={},v,b),ec(i,y,C),i))),z.abrupt("return",nt(nt({},B),{},{data:{x:B.x-r,y:B.y-o}}));case 22:case"end":return z.stop()}},e)}))()}}};function Nc(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function uh(t){return Nc(t).getComputedStyle(t)}var WP,Vae=Math.min,gb=Math.max,kk=Math.round;function Hae(t){var n=uh(t),e=parseFloat(n.width),i=parseFloat(n.height),r=t.offsetWidth,o=t.offsetHeight,s=kk(e)!==r||kk(i)!==o;return s&&(e=r,i=o),{width:e,height:i,fallback:s}}function wp(t){return zae(t)?(t.nodeName||"").toLowerCase():""}function Uae(){if(WP)return WP;var t=navigator.userAgentData;return t&&Array.isArray(t.brands)?WP=t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function dh(t){return t instanceof Nc(t).HTMLElement}function sd(t){return t instanceof Nc(t).Element}function zae(t){return t instanceof Nc(t).Node}function Gae(t){return typeof ShadowRoot<"u"&&(t instanceof Nc(t).ShadowRoot||t instanceof ShadowRoot)}function Dk(t){var n=uh(t),o=n.display;return/auto|scroll|overlay|hidden|clip/.test(n.overflow+n.overflowY+n.overflowX)&&!["inline","contents"].includes(o)}function QXe(t){return["table","td","th"].includes(wp(t))}function qP(t){var n=/firefox/i.test(Uae()),e=uh(t),i=e.backdropFilter||e.WebkitBackdropFilter;return"none"!==e.transform||"none"!==e.perspective||!!i&&"none"!==i||n&&"filter"===e.willChange||n&&!!e.filter&&"none"!==e.filter||["transform","perspective"].some(function(r){return e.willChange.includes(r)})||["paint","layout","strict","content"].some(function(r){var o=e.contain;return null!=o&&o.includes(r)})}function YP(){return/^((?!chrome|android).)*safari/i.test(Uae())}function XP(t){return["html","body","#document"].includes(wp(t))}function Wae(t){return sd(t)?t:t.contextElement}var qae={x:1,y:1};function R0(t){var n=Wae(t);if(!dh(n))return qae;var e=n.getBoundingClientRect(),i=Hae(n),r=i.width,o=i.height,s=i.fallback,a=(s?kk(e.width):e.width)/r,l=(s?kk(e.height):e.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function sg(t,n,e,i){var r,o;void 0===n&&(n=!1),void 0===e&&(e=!1);var s=t.getBoundingClientRect(),a=Wae(t),l=qae;n&&(i?sd(i)&&(l=R0(i)):l=R0(t));var c=a?Nc(a):window,u=YP()&&e,d=(s.left+(u&&(null==(r=c.visualViewport)?void 0:r.offsetLeft)||0))/l.x,h=(s.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=s.width/l.x,p=s.height/l.y;if(a)for(var m=Nc(a),g=i&&sd(i)?Nc(i):i,v=m.frameElement;v&&i&&g!==m;){var y=R0(v),b=v.getBoundingClientRect(),C=getComputedStyle(v);b.x+=(v.clientLeft+parseFloat(C.paddingLeft))*y.x,b.y+=(v.clientTop+parseFloat(C.paddingTop))*y.y,d*=y.x,h*=y.y,f*=y.x,p*=y.y,d+=b.x,h+=b.y,v=Nc(v).frameElement}return{width:f,height:p,top:h,right:d+f,bottom:h+p,left:d,x:d,y:h}}function Cp(t){return((zae(t)?t.ownerDocument:t.document)||window.document).documentElement}function Tk(t){return sd(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yae(t){return sg(Cp(t)).left+Tk(t).scrollLeft}function vb(t){if("html"===wp(t))return t;var n=t.assignedSlot||t.parentNode||Gae(t)&&t.host||Cp(t);return Gae(n)?n.host:n}function Xae(t){var n=vb(t);return XP(n)?n.ownerDocument.body:dh(n)&&Dk(n)?n:Xae(n)}function yb(t,n){var e;void 0===n&&(n=[]);var i=Xae(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Nc(i);return r?n.concat(o,o.visualViewport||[],Dk(i)?i:[]):n.concat(i,yb(i))}function Jae(t,n,e){var i,l,c,u,d,h,f,p,m;if("viewport"===n)i=function(l,c){var u=Nc(l),d=Cp(l),h=u.visualViewport,f=d.clientWidth,p=d.clientHeight,m=0,g=0;if(h){f=h.width,p=h.height;var v=YP();(!v||v&&"fixed"===c)&&(m=h.offsetLeft,g=h.offsetTop)}return{width:f,height:p,x:m,y:g}}(t,e);else if("document"===n)l=Cp(t),c=Cp(l),u=Tk(l),h=gb(c.scrollWidth,c.clientWidth,(d=l.ownerDocument.body).scrollWidth,d.clientWidth),f=gb(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight),p=-u.scrollLeft+Yae(l),m=-u.scrollTop,"rtl"===uh(d).direction&&(p+=gb(c.clientWidth,d.clientWidth)-h),i={width:h,height:f,x:p,y:m};else if(sd(n))i=function(l,c){var u=sg(l,!0,"fixed"===c),d=u.top+l.clientTop,h=u.left+l.clientLeft,f=dh(l)?R0(l):{x:1,y:1};return{width:l.clientWidth*f.x,height:l.clientHeight*f.y,x:h*f.x,y:d*f.y}}(n,e);else{var r=nt({},n);if(YP()){var o,s,a=Nc(t);r.x-=(null==(o=a.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(s=a.visualViewport)?void 0:s.offsetTop)||0}i=r}return UP(i)}function Kae(t,n){return dh(t)&&"fixed"!==uh(t).position?n?n(t):t.offsetParent:null}function Qae(t,n){for(var e=Nc(t),i=Kae(t,n);i&&QXe(i)&&"static"===uh(i).position;)i=Kae(i,n);return i&&("html"===wp(i)||"body"===wp(i)&&"static"===uh(i).position&&!qP(i))?e:i||function(r){for(var o=vb(r);dh(o)&&!XP(o);){if(qP(o))return o;o=vb(o)}return null}(t)||e}function ZXe(t,n,e){var i=dh(n),r=Cp(n),o=sg(t,!0,"fixed"===e,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&"fixed"!==e)if(("body"!==wp(n)||Dk(r))&&(s=Tk(n)),dh(n)){var l=sg(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}else r&&(a.x=Yae(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}var eJe={getClippingRect:function(t){var n=t.element,e=t.boundary,i=t.rootBoundary,r=t.strategy,o="clippingAncestors"===e?function(c,u){var d=u.get(c);if(d)return d;for(var h=yb(c).filter(function(y){return sd(y)&&"body"!==wp(y)}),f=null,p="fixed"===uh(c).position,m=p?vb(c):c;sd(m)&&!XP(m);){var g=uh(m),v=qP(m);"fixed"===g.position?f=null:(p?v||f:v||"static"!==g.position||!f||!["absolute","fixed"].includes(f.position))?f=g:h=h.filter(function(y){return y!==m}),m=vb(m)}return u.set(c,h),h}(n,this._c):[].concat(e),s=[].concat(ui(o),[i]),l=s.reduce(function(c,u){var d=Jae(n,u,r);return c.top=gb(d.top,c.top),c.right=Vae(d.right,c.right),c.bottom=Vae(d.bottom,c.bottom),c.left=gb(d.left,c.left),c},Jae(n,s[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var n=t.rect,e=t.offsetParent,i=t.strategy,r=dh(e),o=Cp(e);if(e===o)return n;var s={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((r||!r&&"fixed"!==i)&&(("body"!==wp(e)||Dk(o))&&(s=Tk(e)),dh(e))){var c=sg(e);a=R0(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+l.x,y:n.y*a.y-s.scrollTop*a.y+l.y}},isElement:sd,getDimensions:function(t){return dh(t)?Hae(t):t.getBoundingClientRect()},getOffsetParent:Qae,getDocumentElement:Cp,getScale:R0,getElementRects:function(t){var n=this;return or(_n().mark(function e(){var i,r,o,s,a;return _n().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=t.reference,r=t.floating,o=t.strategy,s=n.getOffsetParent||Qae,a=n.getDimensions,l.t0=ZXe,l.t1=i,l.next=6,s(r);case 6:return l.t2=l.sent,l.t3=o,l.t4=(0,l.t0)(l.t1,l.t2,l.t3),l.t5=nt,l.t6={x:0,y:0},l.next=13,a(r);case 13:return l.t7=l.sent,l.t8=(0,l.t5)(l.t6,l.t7),l.abrupt("return",{reference:l.t4,floating:l.t8});case 16:case"end":return l.stop()}},e)}))()},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===uh(t).direction}};function iJe(t){var e=t.filterText,i=t.items,r=t.multiple,o=t.value,s=t.itemId,a=t.groupBy,l=t.filterSelectedItems,c=t.itemFilter,u=t.convertStringItemsToObjects,d=t.filterGroupedItems,h=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==wn(i[0])&&(i=u(i));var f=i.filter(function(p){var m=c(p[h],e,p);return m&&r&&null!=o&&o.length&&(m=!o.some(function(g){return!!l&&g[s]===p[s]})),m});return a&&(f=d(f)),f}function rJe(t){return JP.apply(this,arguments)}function JP(){return JP=or(_n().mark(function t(n){var e,i,r,o,s;return _n().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=n.dispatch,i=n.loadOptions,r=n.convertStringItemsToObjects,o=n.filterText,a.next=3,i(o).catch(function(l){console.warn("svelte-select loadOptions error :>> ",l),e("error",{type:"loadOptions",details:l})});case 3:if(!(s=a.sent)||s.cancelled){a.next=7;break}return s?(s&&s.length>0&&"object"!==wn(s[0])&&(s=r(s)),e("loaded",{items:s})):s=[],a.abrupt("return",{filteredItems:s,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return a.stop()}},t)})),JP.apply(this,arguments)}function oJe(t){_i(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function sJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("path"),"fill","currentColor"),R(e,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),R(n,"width","100%"),R(n,"height","100%"),R(n,"viewBox","0 0 20 20"),R(n,"focusable","false"),R(n,"aria-hidden","true"),R(n,"class","svelte-qbd276")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var aJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,sJe,_s,{},oJe),r}return Ie(e)}();function lJe(t){_i(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function cJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("path"),"fill","currentColor"),R(e,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),R(n,"width","100%"),R(n,"height","100%"),R(n,"viewBox","-2 -2 50 50"),R(n,"focusable","false"),R(n,"aria-hidden","true"),R(n,"role","presentation"),R(n,"class","svelte-whdbu1")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var Ek=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,cJe,_s,{},lJe),r}return Ie(e)}();function uJe(t){_i(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function dJe(t){var n,e;return{c:function(){n=Yd("svg"),R(e=Yd("circle"),"class","circle_path svelte-1p3nqvd"),R(e,"cx","50"),R(e,"cy","50"),R(e,"r","20"),R(e,"fill","none"),R(e,"stroke","currentColor"),R(e,"stroke-width","5"),R(e,"stroke-miterlimit","10"),R(n,"class","loading svelte-1p3nqvd"),R(n,"viewBox","25 25 50 50")},m:function(i,r){$e(i,n,r),me(n,e)},p:Bt,i:Bt,o:Bt,d:function(i){i&&Be(n)}}}var hJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,null,dJe,_s,{},uJe),r}return Ie(e)}();function fJe(t){_i(t,"svelte-tyxmms",".svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px)}.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:5px 0;position:relative;overflow:hidden;align-self:stretch}.prepend.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.indicators.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;flex-shrink:0;align-items:center}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-tyxmms:not(.multi)>.value-container.svelte-tyxmms>input.svelte-tyxmms{width:100%;height:100%}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.svelte-select.focused.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-tyxmms .selected-item.svelte-tyxmms.svelte-tyxmms{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:none}.hide-selected-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0}.icon.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-tyxmms input.svelte-tyxmms.svelte-tyxmms{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;pointer-events:none}.list-group-title.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase)}.empty.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.hover.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.active.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms,.item.not-selectable.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-tyxmms.svelte-tyxmms.svelte-tyxmms{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var pJe=function(t){return{value:8&t[0]}},Zae=function(t){return{value:t[3]}},mJe=function(t){return{listOpen:64&t[0]}},ele=function(t){return{listOpen:t[6]}},gJe=function(t){return{}},tle=function(t){return{}},vJe=function(t){return{}},nle=function(t){return{}},yJe=function(t){return{selection:8&t[0]}},ile=function(t){return{selection:t[3]}};function rle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var _Je=function(t){return{}},ole=function(t){return{}},bJe=function(t){return{selection:8&t[0]}},sle=function(t){return{selection:t[127],index:t[129]}},xJe=function(t){return{}},ale=function(t){return{}},wJe=function(t){return{}},lle=function(t){return{}};function cle(t,n,e){var i=t.slice();return i[127]=n[e],i[129]=e,i}var CJe=function(t){return{item:16777216&t[0]}},ule=function(t){return{item:t[127],index:t[129]}},SJe=function(t){return{filteredItems:16777216&t[0]}},dle=function(t){return{filteredItems:t[24]}};function hle(t){var n,e,i,r,o,s,a=[TJe,DJe,kJe],l=[];function c(u,d){return u[51].list?0:u[24].length>0?1:u[19]?-1:2}return~(e=c(t))&&(i=l[e]=a[e](t)),{c:function(){n=De("div"),i&&i.c(),R(n,"class","svelte-select-list svelte-tyxmms"),Nt(n,"prefloat",t[28])},m:function(u,d){$e(u,n,d),~e&&l[e].m(n,null),t[91](n),r=!0,o||(s=[Ea(t[49].call(null,n)),Rt(n,"scroll",t[41]),Rt(n,"pointerdown",rf(t[50])),Rt(n,"pointerup",sf(rf(t[86])))],o=!0)},p:function(u,d){var h=e;(e=c(u))===h?~e&&l[e].p(u,d):(i&&(Ht(),fe(l[h],1,1,function(){l[h]=null}),Ut()),~e?((i=l[e])?i.p(u,d):(i=l[e]=a[e](u)).c(),Q(i,1),i.m(n,null)):i=null),(!r||268435456&d[0])&&Nt(n,"prefloat",u[28])},i:function(u){r||(Q(i),r=!0)},o:function(u){fe(i),r=!1},d:function(u){u&&Be(n),~e&&l[e].d(),t[91](null),o=!1,po(s)}}}function kJe(t){var n,e,i=t[83].empty,r=Ms(i,t,t[82],lle),o=r||{c:function(){(e=De("div")).textContent="No options",R(e,"class","empty svelte-tyxmms")},m:function(s,a){$e(s,e,a)},p:Bt,d:function(s){s&&Be(e)}};return{c:function(){o&&o.c()},m:function(s,a){o&&o.m(s,a),n=!0},p:function(s,a){r&&r.p&&(!n||1048576&a[2])&&Is(r,i,s,s[82],n?Os(i,s[82],a,wJe):Ns(s[82]),lle)},i:function(s){n||(Q(o,s),n=!0)},o:function(s){fe(o,s),n=!1},d:function(s){o&&o.d(s)}}}function DJe(t){for(var n,e,i=t[24],r=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(h),h=setTimeout(tt,ii)}:In,vi=n.debounceWait,gi=void 0===vi?300:vi,Mr=n.hideEmptyState,to=void 0!==Mr&&Mr,xi=n.inputAttributes,Sr=void 0===xi?{}:xi,Fe=n.listAutoWidth,At=void 0===Fe||Fe,Gt=n.showChevron,ln=void 0!==Gt&&Gt,mn=n.listOffset,ci=void 0===mn?5:mn,$i=n.hoverItemIndex,Gn=void 0===$i?0:$i,ai=n.floatingConfig,ni=void 0===ai?{}:ai,kr=n.class,Fr=void 0===kr?"":kr;function jo(tt){var ii=[],sr={};tt.forEach(function(Td){var Hr=Er(Td);ii.includes(Hr)||(ii.push(Hr),sr[Hr]=[],Hr&&sr[Hr].push(Object.assign(Ks(Hr,Td),{id:Hr,groupHeader:!0,selectable:Xr}))),sr[Hr].push(Object.assign({groupItem:!!Hr},Td))});var Zs=[];return wr(ii).forEach(function(Td){sr[Td]&&Zs.push.apply(Zs,ui(sr[Td]))}),Zs}function ba(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ii=arguments.length>1?arguments[1]:void 0;e(7,Gn=tt<0?0:tt),!ii&&Er&&c[Gn]&&!c[Gn].selectable&&Do(1)}function bd(){var tt=!0;if($){var ii=[],sr=[];$.forEach(function(Zs){ii.includes(Zs[Rn])?tt=!1:(ii.push(Zs[Rn]),sr.push(Zs))}),tt||e(3,$=sr)}return tt}function bu(tt){var ii=tt?tt[Rn]:$[Rn];return yn.find(function(sr){return sr[Rn]===ii})}function xa(tt){return Bl.apply(this,arguments)}function Bl(){return(Bl=or(_n().mark(function tt(ii){var sr;return _n().wrap(function(Zs){for(;;)switch(Zs.prev=Zs.next){case 0:sr=$[ii],e(3,$=1===$.length?void 0:$.filter(function(Td){return Td!==sr})),B("clear",sr);case 3:case"end":return Zs.stop()}},tt)}))).apply(this,arguments)}function xd(tt){var ii;We&&F===(null===(ii=document)||void 0===ii?void 0:ii.activeElement)||(tt&&B("focus",tt),F.focus(),e(2,We=!0))}function Rs(tt){return wd.apply(this,arguments)}function wd(){return(wd=or(_n().mark(function tt(ii){return _n().wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:if(!yi&&!hx){sr.next=2;break}return sr.abrupt("return");case 2:(Ye||We)&&(B("blur",ii),Cd(),e(2,We=!1),e(26,f=void 0),F.blur());case 3:case"end":return sr.stop()}},tt)}))).apply(this,arguments)}function Cd(){e(4,le=""),e(6,Ye=!1)}y=or(_n().mark(function tt(){return _n().wrap(function(ii){for(;;)switch(ii.prev=ii.next){case 0:e(78,p=$),e(79,m=le),e(80,g=V);case 3:case"end":return ii.stop()}},tt)})),Xv().$$.before_update.push(y),eu(function(){Ye&&e(2,We=!0),We&&F&&F.focus()});var cn,TT=n.ariaValues,Me=void 0===TT?function(tt){return"Option ".concat(tt,", selected.")}:TT,ct=n.ariaListOpen,Ft=void 0===ct?function(tt,ii){return"You are currently focused on option ".concat(tt,". There are ").concat(ii," results available.")}:ct,en=n.ariaFocused,an=void 0===en?function(){return"Select is focused, type to refine list, press down to open the menu."}:en,Wn=null;function hi(){clearTimeout(cn),cn=setTimeout(function(){yi=!1},100)}qu(function(){var tt;null===(tt=Wn)||void 0===tt||tt.remove()});var yi=!1;function Lo(tt){tt&&!1!==tt.selectable&&function(ii){if(ii){e(4,le="");var sr=Object.assign({},ii);if(sr.groupHeader&&!sr.selectable)return;e(3,$=V?$?$.concat([sr]):[sr]:e(3,$=sr)),setTimeout(function(){Jr&&Cd(),e(26,f=void 0),B("change",$),B("select",ii)})}}(tt)}function js(tt){yi||e(7,Gn=tt)}function Zo(tt){var Zs,ii=tt.item,sr=tt.i;if(!1!==ii?.selectable){if($&&!V&&$[Rn]===ii[Rn])return Cd();((Zs=ii).groupHeader&&Zs.selectable||Zs.selectable||!Zs.hasOwnProperty("selectable"))&&(e(7,Gn=sr),Lo(ii)),hx=!1}}function Do(tt){if(0===c.filter(function(sr){return!Object.hasOwn(sr,"selectable")||!0===sr.selectable}).length)return e(7,Gn=0);e(7,tt>0&&Gn===c.length-1?Gn=0:tt<0&&0===Gn?Gn=c.length-1:Gn+=tt);var ii=c[Gn];ii&&!1===ii.selectable&&(1!==tt&&-1!==tt||Do(tt))}var $l=Sd,Sh=Sd;function Sd(tt){return{update:function(ii){ii.scroll&&(hi(),tt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var Pr={strategy:"absolute",placement:"bottom-start",middleware:[XXe(ci),YXe(),KXe()],autoUpdate:!1},lc=Jn(function nJe(t){var n,e,i={autoUpdate:!0},r=t,o=function(l){return nt(nt(nt({},i),t||{}),l||{})},s=function(l){var c,u,d,h,f,p;n&&e&&(r=o(l),(c=n,u=e,d=r,h=new Map,f=nt({platform:eJe},d),p=nt(nt({},f.platform),{},{_c:h}),VXe(c,u,nt(nt({},f),{},{platform:p}))).then(function(c){var u;Object.assign(e.style,{position:c.strategy,left:"".concat(c.x,"px"),top:"".concat(c.y,"px")}),null!==(u=r)&&void 0!==u&&u.onComputed&&r.onComputed(c)}))};return[function(l){if("subscribe"in l)return function(l){qu(l.subscribe(function(c){void 0===n?(n=c,s()):(Object.assign(n,c),s())}))}(l),{};n=l,s()},function(l,c){var u;e=l,r=o(c),setTimeout(function(){return s(c)},0),s(c);var d=function(){u&&(u(),u=void 0)},h=function(){var p=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r||{}).autoUpdate;if(d(),!1!==p)return function tJe(t,n,e,i){void 0===i&&(i={});var o=i.ancestorScroll,a=i.ancestorResize,l=void 0===a||a,c=i.elementResize,u=void 0===c||c,d=i.animationFrame,h=void 0!==d&&d,f=(void 0===o||o)&&!h,p=f||l?[].concat(ui(sd(t)?yb(t):t.contextElement?yb(t.contextElement):[]),ui(yb(n))):[];p.forEach(function(b){f&&b.addEventListener("scroll",e,{passive:!0}),l&&b.addEventListener("resize",e)});var m,g=null;if(u){var v=!0;g=new ResizeObserver(function(){v||e(),v=!1}),sd(t)&&!h&&g.observe(t),sd(t)||!t.contextElement||h||g.observe(t.contextElement),g.observe(n)}var y=h?sg(t):null;return h&&function b(){var C=sg(t);!y||C.x===y.x&&C.y===y.y&&C.width===y.width&&C.height===y.height||e(),y=C,m=requestAnimationFrame(b)}(),e(),function(){var b;p.forEach(function(C){f&&C.removeEventListener("scroll",e),l&&C.removeEventListener("resize",e)}),null==(b=g)||b.disconnect(),g=null,h&&cancelAnimationFrame(m)}}(n,e,function(){return s(r)},!0===p?{}:p)};return u=h(),{update:function(f){s(f),u=h(f)},destroy:function(){d()}}},s]}(Pr),3),xu=lc[0],kd=lc[1],kh=lc[2],Dd=!0,hx=!1;return t.$$set=function(tt){"justValue"in tt&&e(53,j=tt.justValue),"filter"in tt&&e(54,G=tt.filter),"getItems"in tt&&e(55,oe=tt.getItems),"id"in tt&&e(56,W=tt.id),"name"in tt&&e(8,H=tt.name),"container"in tt&&e(0,A=tt.container),"input"in tt&&e(1,F=tt.input),"multiple"in tt&&e(9,V=tt.multiple),"multiFullItemClearable"in tt&&e(10,ve=tt.multiFullItemClearable),"disabled"in tt&&e(11,Te=tt.disabled),"focused"in tt&&e(2,We=tt.focused),"value"in tt&&e(3,$=tt.value),"filterText"in tt&&e(4,le=tt.filterText),"placeholder"in tt&&e(57,Ze=tt.placeholder),"placeholderAlwaysShow"in tt&&e(58,Ct=tt.placeholderAlwaysShow),"items"in tt&&e(52,yn=tt.items),"label"in tt&&e(12,on=tt.label),"itemFilter"in tt&&e(59,hn=tt.itemFilter),"groupBy"in tt&&e(60,Er=tt.groupBy),"groupFilter"in tt&&e(61,wr=tt.groupFilter),"groupHeaderSelectable"in tt&&e(62,Xr=tt.groupHeaderSelectable),"itemId"in tt&&e(13,Rn=tt.itemId),"loadOptions"in tt&&e(63,pi=tt.loadOptions),"containerStyles"in tt&&e(14,Ar=tt.containerStyles),"hasError"in tt&&e(15,Qo=tt.hasError),"filterSelectedItems"in tt&&e(64,jn=tt.filterSelectedItems),"required"in tt&&e(16,ki=tt.required),"closeListOnChange"in tt&&e(65,Jr=tt.closeListOnChange),"createGroupHeaderItem"in tt&&e(66,Ks=tt.createGroupHeaderItem),"searchable"in tt&&e(17,Qs=tt.searchable),"inputStyles"in tt&&e(18,el=tt.inputStyles),"clearable"in tt&&e(68,Ee=tt.clearable),"loading"in tt&&e(5,Ke=tt.loading),"listOpen"in tt&&e(6,Ye=tt.listOpen),"debounce"in tt&&e(69,li=tt.debounce),"debounceWait"in tt&&e(70,gi=tt.debounceWait),"hideEmptyState"in tt&&e(19,to=tt.hideEmptyState),"inputAttributes"in tt&&e(71,Sr=tt.inputAttributes),"listAutoWidth"in tt&&e(72,At=tt.listAutoWidth),"showChevron"in tt&&e(20,ln=tt.showChevron),"listOffset"in tt&&e(73,ci=tt.listOffset),"hoverItemIndex"in tt&&e(7,Gn=tt.hoverItemIndex),"floatingConfig"in tt&&e(74,ni=tt.floatingConfig),"class"in tt&&e(21,Fr=tt.class),"ariaValues"in tt&&e(75,Me=tt.ariaValues),"ariaListOpen"in tt&&e(76,Ft=tt.ariaListOpen),"ariaFocused"in tt&&e(77,an=tt.ariaFocused),"$$scope"in tt&&e(82,D=tt.$$scope)},t.$$.update=function(){var tt,ii,sr,Zs,Td,Hr;8&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&$&&function(){if("string"==typeof $){var Hr,ea=(yn||[]).find(function(wu){return wu[Rn]===$});e(3,$=ea||(ec(Hr={},Rn,$),ec(Hr,"label",$),Hr))}else V&&Array.isArray($)&&$.length>0&&e(3,$=$.map(function(wu){return"string"==typeof wu?{value:wu,label:wu}:wu}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!Sr&&Qs||(e(27,v=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},Sr)),W&&e(27,v.id=W,v),Qs||e(27,v.readonly=!0,v))),512&t.$$.dirty[0]&&V&&$&&(Array.isArray($)?e(3,$=ui($)):e(3,$=[$])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&g&&!V&&$&&e(3,$=null),520&t.$$.dirty[0]&&V&&$&&$.length>1&&bd(),8&t.$$.dirty[0]&&$&&(V?JSON.stringify($)!==JSON.stringify(p)&&bd()&&B("input",$):p&&JSON.stringify($[Rn])===JSON.stringify(p[Rn])||B("input",$)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!$&&V&&p&&B("input",$),6&t.$$.dirty[0]&&!We&&F&&Cd(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&le!==m&&(pi||0!==le.length)&&(pi?li(or(_n().mark(function Hr(){var ea;return _n().wrap(function(wu){for(;;)switch(wu.prev=wu.next){case 0:return e(5,Ke=!0),wu.next=3,oe({dispatch:B,loadOptions:pi,convertStringItemsToObjects:wle,filterText:le});case 3:(ea=wu.sent)?(e(5,Ke=ea.loading),e(6,Ye=Ye?ea.listOpen:le.length>0),e(2,We=Ye&&ea.focused),e(52,yn=Er?jo(ea.filteredItems):ea.filteredItems)):(e(5,Ke=!1),e(2,We=!0),e(6,Ye=!0));case 5:case"end":return wu.stop()}},Hr)})),gi):(e(6,Ye=!0),V&&e(26,f=void 0))),12824&t.$$.dirty[0]|815792128&t.$$.dirty[1]|6&t.$$.dirty[2]&&e(24,c=G({loadOptions:pi,filterText:le,items:yn,multiple:V,value:$,itemId:Rn,groupBy:Er,label:on,filterSelectedItems:jn,itemFilter:hn,convertStringItemsToObjects:wle,filterGroupedItems:jo})),16777800&t.$$.dirty[0]&&!V&&Ye&&$&&c&&(tt=c.findIndex(function(Hr){return Hr[Rn]===$[Rn]}),ba(tt,!0)),576&t.$$.dirty[0]&&Ye&&V&&e(7,Gn=0),16&t.$$.dirty[0]&&le&&e(7,Gn=0),128&t.$$.dirty[0]&&B("hoverItem",Gn),520&t.$$.dirty[0]&&e(25,i=V?$&&$.length>0:$),33554448&t.$$.dirty[0]&&e(35,r=i&&le.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&e(34,o=i&&Ee&&!Te&&!Ke),520&t.$$.dirty[0]|201326592&t.$$.dirty[1]&&e(33,s=Ct&&V||V&&0===(null===(ii=$)||void 0===ii?void 0:ii.length)?Ze:$?"":Ze),520&t.$$.dirty[0]&&e(32,a=$?(sr=V&&$.length>0?$.map(function(Hr){return Hr[on]}).join(", "):$[on],Me(sr)):""),16777412&t.$$.dirty[0]&&e(31,l=function(){if(!c||0===c.length)return"";var Hr=c[Gn];return Ye&&Hr?Ft(Hr[on],c?c.length:0):an()}()),2097152&t.$$.dirty[1]&&(Hr=yn)&&0!==Hr.length&&!Hr.some(function(ea){return"object"!==wn(ea)})&&$&&(V?!$.some(function(ea){return!ea||!ea[Rn]}):$[Rn])&&(Array.isArray($)?e(3,$=$.map(function(ea){return bu(ea)||ea})):e(3,$=bu()||$)),8712&t.$$.dirty[0]&&e(53,j=V?$?$.map(function(Hr){return Hr[Rn]}):null:$&&$[Rn]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(V||!p||$||B("input",$)),16777800&t.$$.dirty[0]&&Ye&&c&&!V&&!$&&ba(),16777216&t.$$.dirty[0]&&function(Hr){Ye&&B("filter",Hr)}(c),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&A&&void 0===(null===(Zs=ni)||void 0===Zs?void 0:Zs.autoUpdate)&&e(81,Pr.autoUpdate=!0,Pr),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&A&&ni&&kh(Object.assign(Pr,ni)),8388608&t.$$.dirty[0]&&e(30,u=!!Wn),8388672&t.$$.dirty[0]&&function(Hr,ea){if(!Hr||!ea)return e(28,Dd=!0);setTimeout(function(){e(28,Dd=!1)},0)}(Wn,Ye),8388673&t.$$.dirty[0]&&Ye&&A&&Wn&&(Td=A.getBoundingClientRect().width,e(23,Wn.style.width=At?Td+"px":"auto",Wn)),128&t.$$.dirty[0]&&e(29,d=Gn),70&t.$$.dirty[0]&&F&&Ye&&!We&&xd()},[A,F,We,$,le,Ke,Ye,Gn,H,V,ve,Te,on,Rn,Ar,Qo,ki,Qs,el,to,ln,Fr,function(){B("clear",$),e(3,$=void 0),Cd(),xd()},Wn,c,i,f,v,Dd,d,u,l,a,s,o,r,xa,function(tt){if(We)switch(tt.stopPropagation(),tt.key){case"Escape":tt.preventDefault(),Cd();break;case"Enter":if(tt.preventDefault(),Ye){if(0===c.length)break;if($&&!V&&$[Rn]===c[Gn][Rn]){Cd();break}Lo(c[Gn])}break;case"ArrowDown":tt.preventDefault(),Ye?Do(1):(e(6,Ye=!0),e(26,f=void 0));break;case"ArrowUp":tt.preventDefault(),Ye?Do(-1):(e(6,Ye=!0),e(26,f=void 0));break;case"Tab":if(Ye&&We){if(0===c.length||$&&$[Rn]===c[Gn][Rn])return Cd();tt.preventDefault(),Lo(c[Gn]),Cd()}break;case"Backspace":if(!V||le.length>0)return;if(V&&$&&$.length>0){if(xa(void 0!==f?f:$.length-1),0===f||void 0===f)break;e(26,f=$.length>f?f-1:void 0)}break;case"ArrowLeft":if(!$||!V||le.length>0)return;void 0===f?e(26,f=$.length-1):$.length>f&&0!==f&&e(26,f-=1);break;case"ArrowRight":if(!$||!V||le.length>0||void 0===f)return;f===$.length-1?e(26,f=void 0):f<$.length-1&&e(26,f+=1)}},xd,Rs,function(){Te||e(6,Ye=!Ye)},hi,function(tt){var ii;Ye||We||!A||A.contains(tt.target)||null!==(ii=Wn)&&void 0!==ii&&ii.contains(tt.target)||Rs()},js,Zo,function(tt,ii,sr){if(!V)return ii&&ii[sr]===tt[sr]},$l,Sh,xu,kd,function(){hx=!0},E,yn,j,G,oe,W,Ze,Ct,hn,Er,wr,Xr,pi,jn,Jr,Ks,function(){return c},Ee,li,gi,Sr,At,ci,ni,Me,Ft,an,p,m,g,Pr,D,C,function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){iS.call(this,t,tt)},function(tt){return js(tt)},function(tt){return js(tt)},function(tt,ii){return Zo({item:tt,i:ii})},function(tt){Xi[tt?"unshift":"push"](function(){e(23,Wn=tt)})},function(tt){return xa(tt)},function(tt){return ve?xa(tt):{}},function(tt){Xi[tt?"unshift":"push"](function(){e(1,F=tt)})},function(){e(4,le=this.value)},function(tt){Xi[tt?"unshift":"push"](function(){e(0,A=tt)})}]}var ag=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,OJe,MJe,_s,{justValue:53,filter:54,getItems:55,id:56,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:57,placeholderAlwaysShow:58,items:52,label:12,itemFilter:59,groupBy:60,groupFilter:61,groupHeaderSelectable:62,itemId:13,loadOptions:63,containerStyles:14,hasError:15,filterSelectedItems:64,required:16,closeListOnChange:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},fJe,[-1,-1,-1,-1,-1]),r}return Ie(e,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}]),e}();function IJe(t){_i(t,"svelte-1kiph99","table.jse-transform-wizard.svelte-1kiph99.svelte-1kiph99{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-1kiph99 input.svelte-1kiph99{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-1kiph99 tr th.svelte-1kiph99{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding))}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal.svelte-1kiph99 .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99{flex:4;padding:4px 8px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);outline:none;background:var(--jse-input-background);color:inherit}table.jse-transform-wizard.svelte-1kiph99 tr td .jse-horizontal .jse-filter-value.svelte-1kiph99:focus{border:var(--jse-input-border-focus)}")}function NJe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J,H,pe,A;function N(st){t[16](st)}var F={class:"jse-filter-path",showChevron:!0,items:t[7]};function q(st){t[17](st)}void 0!==t[0]&&(F.value=t[0]),a=new ag({props:F}),Xi.push(function(){return Xu(a,"value",N)});var V={class:"jse-filter-relation",showChevron:!0,items:t[8]};function ce(st){t[19](st)}void 0!==t[1]&&(V.value=t[1]),u=new ag({props:V}),Xi.push(function(){return Xu(u,"value",q)});var ve={class:"jse-sort-path",showChevron:!0,items:t[7]};function je(st){t[20](st)}void 0!==t[3]&&(ve.value=t[3]),C=new ag({props:ve}),Xi.push(function(){return Xu(C,"value",ce)});var Te={class:"jse-sort-direction",showChevron:!0,items:t[9]};function et(st){t[21](st)}void 0!==t[4]&&(Te.value=t[4]),B=new ag({props:Te}),Xi.push(function(){return Xu(B,"value",je)});var We={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:t[6]};return void 0!==t[5]&&(We.value=t[5]),W=new ag({props:We}),Xi.push(function(){return Xu(W,"value",et)}),{c:function(){n=De("table"),e=De("tr"),(i=De("th")).textContent="Filter",r=rt(),o=De("td"),s=De("div"),gt(a.$$.fragment),c=rt(),gt(u.$$.fragment),h=rt(),f=De("input"),p=rt(),m=De("tr"),(g=De("th")).textContent="Sort",v=rt(),y=De("td"),b=De("div"),gt(C.$$.fragment),E=rt(),gt(B.$$.fragment),j=rt(),U=De("tr"),(G=De("th")).textContent="Pick",X=rt(),oe=De("td"),P=De("div"),gt(W.$$.fragment),R(i,"class","svelte-1kiph99"),R(f,"class","jse-filter-value svelte-1kiph99"),R(s,"class","jse-horizontal svelte-1kiph99"),R(g,"class","svelte-1kiph99"),R(b,"class","jse-horizontal svelte-1kiph99"),R(G,"class","svelte-1kiph99"),R(P,"class","jse-horizontal svelte-1kiph99"),R(n,"class","jse-transform-wizard svelte-1kiph99")},m:function(st,$){$e(st,n,$),me(n,e),me(e,i),me(e,r),me(e,o),me(o,s),pt(a,s,null),me(s,c),pt(u,s,null),me(s,h),me(s,f),ip(f,t[2]),me(n,p),me(n,m),me(m,g),me(m,v),me(m,y),me(y,b),pt(C,b,null),me(b,E),pt(B,b,null),me(n,j),me(n,U),me(U,G),me(U,X),me(U,oe),me(oe,P),pt(W,P,null),H=!0,pe||(A=Rt(f,"input",t[18]),pe=!0)},p:function(st,$){var ae=Jn($,1)[0],le={};128&ae&&(le.items=st[7]),!l&&1&ae&&(l=!0,le.value=st[0],Yu(function(){return l=!1})),a.$set(le);var Re={};!d&&2&ae&&(d=!0,Re.value=st[1],Yu(function(){return d=!1})),u.$set(Re),4&ae&&f.value!==st[2]&&ip(f,st[2]);var Ze={};128&ae&&(Ze.items=st[7]),!D&&8&ae&&(D=!0,Ze.value=st[3],Yu(function(){return D=!1})),C.$set(Ze);var Ve={};!z&&16&ae&&(z=!0,Ve.value=st[4],Yu(function(){return z=!1})),B.$set(Ve);var Ct={};64&ae&&(Ct.items=st[6]),!J&&32&ae&&(J=!0,Ct.value=st[5],Yu(function(){return J=!1})),W.$set(Ct)},i:function(st){H||(Q(a.$$.fragment,st),Q(u.$$.fragment,st),Q(C.$$.fragment,st),Q(B.$$.fragment,st),Q(W.$$.fragment,st),H=!0)},o:function(st){fe(a.$$.fragment,st),fe(u.$$.fragment,st),fe(C.$$.fragment,st),fe(B.$$.fragment,st),fe(W.$$.fragment,st),H=!1},d:function(st){st&&Be(n),mt(a),mt(u),mt(C),mt(B),mt(W),pe=!1,A()}}}function FJe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=Ma("jsoneditor:TransformWizard"),C=n.json,D=n.queryOptions,E=void 0===D?{}:D,B=n.onChange,z=["==","!=","<","<=",">",">="].map(function(W){return{value:W,label:W}}),j=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],U=null!==(i=E)&&void 0!==i&&null!==(r=i.filter)&&void 0!==r&&r.path?sb(E.filter.path):null,G=null!==(o=E)&&void 0!==o&&null!==(s=o.filter)&&void 0!==s&&s.relation?z.find(function(W){var J;return W.value===(null===(J=E.filter)||void 0===J?void 0:J.relation)}):null,X=(null===(a=E)||void 0===a||null===(l=a.filter)||void 0===l?void 0:l.value)||"",oe=null!==(c=E)&&void 0!==c&&null!==(u=c.sort)&&void 0!==u&&u.path?sb(E.sort.path):null,P=null!==(d=E)&&void 0!==d&&null!==(h=d.sort)&&void 0!==h&&h.direction?j.find(function(W){var J;return W.value===(null===(J=E.sort)||void 0===J?void 0:J.direction)}):null;return t.$$set=function(W){"json"in W&&e(11,C=W.json),"queryOptions"in W&&e(10,E=W.queryOptions),"onChange"in W&&e(12,B=W.onChange)},t.$$.update=function(){var W,J,H,pe,A,N,F,q,V,ce,ve,je,Te,et,We,st,$,ae,le,Re,Ze;2048&t.$$.dirty&&e(15,f=Array.isArray(C)),34816&t.$$.dirty&&e(14,p=f?pP(C):[]),34816&t.$$.dirty&&e(13,m=f?pP(C,!0):[]),16384&t.$$.dirty&&e(7,g=p.map(sb)),8192&t.$$.dirty&&e(6,v=m?m.map(sb):[]),1088&t.$$.dirty&&e(5,y=null!==(W=E)&&void 0!==W&&null!==(J=W.projection)&&void 0!==J&&J.paths&&v?E.projection.paths.map(function(le){return v.find(function(Re){return dr(Re.value,le)})}).filter(function(le){return!!le}):null),1&t.$$.dirty&&(pe=(null===(H=U)||void 0===H?void 0:H.value)||null,dr(null===(A=E)||void 0===A||null===(N=A.filter)||void 0===N?void 0:N.path,pe)||(b("changeFilterPath",pe),e(10,E=Qu(E,["filter","path"],pe,!0)),B(E))),2&t.$$.dirty&&(q=(null===(F=G)||void 0===F?void 0:F.value)||null,dr(null===(V=E)||void 0===V||null===(ce=V.filter)||void 0===ce?void 0:ce.relation,q)||(b("changeFilterRelation",q),e(10,E=Qu(E,["filter","relation"],q,!0)),B(E))),4&t.$$.dirty&&(dr(null===(je=E)||void 0===je||null===(Te=je.filter)||void 0===Te?void 0:Te.value,ve=X||null)||(b("changeFilterValue",ve),e(10,E=Qu(E,["filter","value"],ve,!0)),B(E))),8&t.$$.dirty&&(le=(null===(et=oe)||void 0===et?void 0:et.value)||null,dr(null===(Re=E)||void 0===Re||null===(Ze=Re.sort)||void 0===Ze?void 0:Ze.path,le)||(b("changeSortPath",le),e(10,E=Qu(E,["sort","path"],le,!0)),B(E))),16&t.$$.dirty&&(st=(null===(We=P)||void 0===We?void 0:We.value)||null,dr(null===($=E)||void 0===$||null===(ae=$.sort)||void 0===ae?void 0:ae.direction,st)||(b("changeSortDirection",st),e(10,E=Qu(E,["sort","direction"],st,!0)),B(E))),32&t.$$.dirty&&function(le){var Re,Ze;dr(null===(Re=E)||void 0===Re||null===(Ze=Re.projection)||void 0===Ze?void 0:Ze.paths,le)||(b("changeProjectionPaths",le),e(10,E=Qu(E,["projection","paths"],le,!0)),B(E))}(y?y.map(function(le){return le.value}):null)},[U,G,X,oe,P,y,v,g,z,j,E,C,B,m,p,f,function(W){e(0,U=W)},function(W){e(1,G=W)},function(){e(2,X=this.value)},function(W){e(3,oe=W)},function(W){e(4,P=W)},function(W){e(5,y=W),e(10,E),e(6,v),e(13,m),e(15,f),e(11,C)}]}var PJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,FJe,NJe,Pi,{json:11,queryOptions:10,onChange:12},IJe),r}return Ie(e)}();function RJe(t){_i(t,"svelte-19cxesy",".jse-select-query-language.svelte-19cxesy.svelte-19cxesy{position:relative;width:32px}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container.svelte-19cxesy{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;text-align:left;padding:var(--jse-padding) calc(2 * var(--jse-padding));white-space:nowrap;color:var(--jse-context-menu-color);background:var(--jse-context-menu-background)}.jse-select-query-language.svelte-19cxesy .jse-select-query-language-container .jse-query-language.svelte-19cxesy:hover{background:var(--jse-context-menu-background-highlight)}")}function Cle(t,n,e){var i=t.slice();return i[5]=n[e],i}function jJe(t){var n,e;return n=new hr({props:{data:cb}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function LJe(t){var n,e;return n=new hr({props:{data:lb}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Sle(t){var n,e,i,r,o,s,a,l,c,u,d=t[5].name+"",h=[LJe,jJe],f=[];function p(g,v){return g[5].id===g[0]?0:1}function m(){return t[4](t[5])}return e=p(t),i=f[e]=h[e](t),{c:function(){n=De("button"),i.c(),r=rt(),o=sn(d),s=rt(),R(n,"type","button"),R(n,"class","jse-query-language svelte-19cxesy"),R(n,"title",a="Select ".concat(t[5].name," as query language")),Nt(n,"selected",t[5].id===t[0])},m:function(g,v){$e(g,n,v),f[e].m(n,null),me(n,r),me(n,o),me(n,s),l=!0,c||(u=Rt(n,"click",m),c=!0)},p:function(g,v){var y=e;(e=p(t=g))===y?f[e].p(t,v):(Ht(),fe(f[y],1,1,function(){f[y]=null}),Ut(),(i=f[e])?i.p(t,v):(i=f[e]=h[e](t)).c(),Q(i,1),i.m(n,r)),(!l||2&v)&&d!==(d=t[5].name+"")&&ti(o,d),(!l||2&v&&a!==(a="Select ".concat(t[5].name," as query language")))&&R(n,"title",a),(!l||3&v)&&Nt(n,"selected",t[5].id===t[0])},i:function(g){l||(Q(i),l=!0)},o:function(g){fe(i),l=!1},d:function(g){g&&Be(n),f[e].d(),c=!1,u()}}}function BJe(t){for(var n,e,i,r=t[1],o=[],s=0;s1&&kle(t);return s=new hr({props:{data:P0}}),{c:function(){n=De("div"),(e=De("div")).textContent="Transform",i=rt(),u&&u.c(),r=rt(),o=De("button"),gt(s.$$.fragment),R(e,"class","jse-title svelte-d01h2s"),R(o,"type","button"),R(o,"class","jse-close svelte-d01h2s"),R(n,"class","jse-header svelte-d01h2s")},m:function(d,h){$e(d,n,h),me(n,e),me(n,i),u&&u.m(n,null),me(n,r),me(n,o),pt(s,o,null),a=!0,l||(c=Rt(o,"click",t[2]),l=!0)},p:function(d,h){var f=Jn(h,1)[0];d[0].length>1?u?(u.p(d,f),1&f&&Q(u,1)):((u=kle(d)).c(),Q(u,1),u.m(n,r)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut())},i:function(d){a||(Q(u),Q(s.$$.fragment,d),a=!0)},o:function(d){fe(u),fe(s.$$.fragment,d),a=!1},d:function(d){d&&Be(n),u&&u.d(),mt(s),l=!1,c()}}}function zJe(t,n,e){var i,r,o=n.queryLanguages,s=n.queryLanguageId,a=n.onChangeQueryLanguage,l=Aa("simple-modal").close,c=Aa("absolute-popup"),u=c.openAbsolutePopup,d=c.closeAbsolutePopup;return t.$$set=function(h){"queryLanguages"in h&&e(0,o=h.queryLanguages),"queryLanguageId"in h&&e(4,s=h.queryLanguageId),"onChangeQueryLanguage"in h&&e(5,a=h.onChangeQueryLanguage)},[o,i,l,function(){r=u(VJe,{queryLanguages:o,queryLanguageId:s,onChangeQueryLanguage:function(h){d(r),a(h)}},{position:"bottom",offsetTop:-2,offsetLeft:0,anchor:i,closeOnOuterClick:!0})},s,a,function(h){Xi[h?"unshift":"push"](function(){e(1,i=h)})}]}var GJe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,zJe,UJe,Pi,{queryLanguages:0,queryLanguageId:4,onChangeQueryLanguage:5},HJe),r}return Ie(e)}(),KP=Ma("jsoneditor:AutoScrollHandler"),WJe=function(t,n,e,i){return(t/=i/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},Dle=function(){var t,n,e,i,r,o,s,a,l,c,u,d,h;function p(v){return v.getBoundingClientRect().top-(t.getBoundingClientRect?t.getBoundingClientRect().top:0)+e}function m(v){t.scrollTo?t.scrollTo(t.scrollLeft,v):t.scrollTop=v}function g(v){c||(c=v),m(o(u=v-c,e,a,l)),h=!0,u1&&void 0!==arguments[1]?arguments[1]:{};switch(l=1e3,r=y.offset||0,d=void 0,o=y.easing||WJe,s=y.a11y||!1,wn(y.container)){case"object":t=y.container;break;case"string":t=document.querySelector(y.container);break;default:t=window.document.documentElement}switch(e=function f(){return t.scrollTop}(),wn(v)){case"number":n=void 0,s=!1,i=e+v;break;case"object":i=p(n=v);break;case"string":n=document.querySelector(v),i=p(n)}switch(a=i-e+r,wn(y.duration)){case"number":l=y.duration;break;case"function":l=y.duration(a)}h?c=0:requestAnimationFrame(g)}},Ak=Ma("jsoneditor:History");function Tle(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.maxItems||1e3,e=[],i=0;function r(){return i0}function s(){return{canUndo:r(),canRedo:o(),length:e.length}}function a(){t.onChange&&t.onChange(s())}return{add:function l(h){Ak("add",h),e=[h].concat(e.slice(i)).slice(0,n),i=0,a()},clear:function c(){Ak("clear"),e=[],i=0,a()},getState:s,undo:function u(){if(r()){var h=e[i];return i+=1,Ak("undo",h),a(),h}},redo:function d(){if(o())return Ak("redo",e[i-=1]),a(),e[i]}}}function j0(t,n){var e=Date.now(),i=t();return n(Date.now()-e),i}var L0=Ma("validation");function Ele(t,n,e,i){return L0("validateJSON"),n?n(e!==i?i.parse(e.stringify(t)):t):[]}function qJe(t,n,e,i){if(L0("validateText"),t.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Jd.info}]};if(0===t.length)return null;try{var r=j0(function(){return e.parse(t)},function(l){return L0("validate: parsed json in ".concat(l," ms"))});if(!n)return null;var o=e===i?r:j0(function(){return i.parse(t)},function(l){return L0("validate: parsed json with the validationParser in ".concat(l," ms"))}),s=j0(function(){return n(o)},function(l){return L0("validate: validated json in ".concat(l," ms"))});return Ji(s)?null:{validationErrors:s}}catch(l){var a=j0(function(){return function(c,u){if(c.length>1048576)return!1;try{return u.parse(Kd(c)),!0}catch{return!1}}(t,e)},function(c){return L0("validate: checked whether repairable in ".concat(c," ms"))});return{parseError:lk(t,l.message||l.toString()),isRepairable:a}}}var Mk=Ma("jsoneditor:FocusTracker");function QP(t){var n,i=t.onDestroy,r=t.getWindow,o=t.hasFocus,s=t.onFocus,a=t.onBlur,l=!1;function c(){var d=o();d&&(clearTimeout(n),l||(Mk("focus"),s(),l=d))}function u(){l&&(clearTimeout(n),n=setTimeout(function(){Mk("blur"),l=!1,a()}))}(0,t.onMount)(function(){Mk("mount FocusTracker");var d=r();d&&(d.addEventListener("focusin",c,!0),d.addEventListener("focusout",u,!0))}),i(function(){Mk("destroy FocusTracker");var d=r();d&&(d.removeEventListener("focusin",c,!0),d.removeEventListener("focusout",u,!0))})}function YJe(t){_i(t,"svelte-fqu1ku",".jse-message.svelte-fqu1ku.svelte-fqu1ku{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);padding:var(--jse-padding);display:flex;gap:var(--jse-padding);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-success-background);color:var(--jse-message-success-color)}.jse-message.svelte-fqu1ku .jse-text.svelte-fqu1ku{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku{cursor:pointer}.jse-message.svelte-fqu1ku .jse-text.jse-clickable.svelte-fqu1ku:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-error-background);color:var(--jse-message-error-color)}.jse-message.jse-warning.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-warning-background);color:var(--jse-message-warning-color)}.jse-message.jse-info.svelte-fqu1ku.svelte-fqu1ku{background:var(--jse-message-info-background);color:var(--jse-message-info-color)}.jse-message.svelte-fqu1ku .jse-actions.svelte-fqu1ku{display:flex;gap:var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-message-action-background);color:inherit;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding)}.jse-message.svelte-fqu1ku .jse-actions button.jse-action.svelte-fqu1ku:hover{background:var(--jse-message-action-background-highlight)}")}function Ale(t,n,e){var i=t.slice();return i[8]=n[e],i}function Mle(t){var n,e;return n=new hr({props:{data:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r&&(o.data=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Ole(t){var n,e;return n=new hr({props:{data:t[8].icon}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};8&r&&(o.data=i[8].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Ile(t){var n,e,i,r,o,s,a,l,c,u=t[8].text+"",d=t[8].icon&&Ole(t);function h(){return t[6](t[8])}function f(){return t[7](t[8])}return{c:function(){n=De("button"),d&&d.c(),e=rt(),i=sn(u),r=rt(),R(n,"type","button"),R(n,"class","jse-button jse-action jse-primary svelte-fqu1ku"),R(n,"title",o=t[8].title),n.disabled=s=t[8].disabled},m:function(p,m){$e(p,n,m),d&&d.m(n,null),me(n,e),me(n,i),me(n,r),a=!0,l||(c=[Rt(n,"click",h),Rt(n,"mousedown",f)],l=!0)},p:function(p,m){(t=p)[8].icon?d?(d.p(t,m),8&m&&Q(d,1)):((d=Ole(t)).c(),Q(d,1),d.m(n,e)):d&&(Ht(),fe(d,1,1,function(){d=null}),Ut()),(!a||8&m)&&u!==(u=t[8].text+"")&&ti(i,u),(!a||8&m&&o!==(o=t[8].title))&&R(n,"title",o),(!a||8&m&&s!==(s=t[8].disabled))&&(n.disabled=s)},i:function(p){a||(Q(d),a=!0)},o:function(p){fe(d),a=!1},d:function(p){p&&Be(n),d&&d.d(),l=!1,po(c)}}}function XJe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[1]&&Mle(t),f=t[3],p=[],m=0;m100&&jle(t);return{c:function(){n=De("table"),e=De("tbody");for(var u=0;u100?c?c.p(u,d):((c=jle(u)).c(),c.m(e,null)):c&&(c.d(1),c=null)},i:function(u){if(!r){for(var d=0;d1&&Ple(t);function y(){return t[6](t[7])}return{c:function(){n=De("tr"),e=De("td"),gt(i.$$.fragment),r=rt(),o=De("td"),s=sn(m),a=rt(),l=De("td"),c=sn(g),u=rt(),d=De("td"),v&&v.c(),R(e,"class","jse-validation-error-icon svelte-1oe8e8r"),R(o,"class","svelte-1oe8e8r"),R(l,"class","svelte-1oe8e8r"),R(d,"class","jse-validation-error-action svelte-1oe8e8r"),R(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(b,C){$e(b,n,C),me(n,e),pt(i,e,null),me(n,r),me(n,o),me(o,s),me(n,a),me(n,l),me(l,c),me(n,u),me(n,d),v&&v.m(d,null),h=!0,f||(p=Rt(n,"click",y),f=!0)},p:function(b,C){t=b,(!h||1&C)&&m!==(m=cu(rc(t[7].path))+"")&&ti(s,m),(!h||1&C)&&g!==(g=t[7].message+"")&&ti(c,g),0===t[9]&&t[0].length>1?v?(v.p(t,C),1&C&&Q(v,1)):((v=Ple(t)).c(),Q(v,1),v.m(d,null)):v&&(Ht(),fe(v,1,1,function(){v=null}),Ut())},i:function(b){h||(Q(i.$$.fragment,b),Q(v),h=!0)},o:function(b){fe(i.$$.fragment,b),fe(v),h=!1},d:function(b){b&&Be(n),mt(i),v&&v.d(),f=!1,p()}}}function jle(t){var n,e,i,r,o,s,a,l,c,u,d,h=t[3]-100+"";return{c:function(){n=De("tr"),e=De("td"),i=rt(),r=De("td"),o=rt(),s=De("td"),a=sn("(and "),l=sn(h),c=sn(" more errors)"),u=rt(),d=De("td"),R(e,"class","svelte-1oe8e8r"),R(r,"class","svelte-1oe8e8r"),R(s,"class","svelte-1oe8e8r"),R(d,"class","svelte-1oe8e8r"),R(n,"class","jse-validation-error svelte-1oe8e8r")},m:function(f,p){$e(f,n,p),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),me(s,a),me(s,l),me(s,c),me(n,u),me(n,d)},p:function(f,p){8&p&&h!==(h=f[3]-100+"")&&ti(l,h)},d:function(f){f&&Be(n)}}}function eKe(t){var n,e,i=!Ji(t[0]),r=i&&Fle(t);return{c:function(){r&&r.c(),n=Dr()},m:function(o,s){r&&r.m(o,s),$e(o,n,s),e=!0},p:function(o,s){var a=Jn(s,1)[0];1&a&&(i=!Ji(o[0])),i?r?(r.p(o,a),1&a&&Q(r,1)):((r=Fle(o)).c(),Q(r,1),r.m(n.parentNode,n)):r&&(Ht(),fe(r,1,1,function(){r=null}),Ut())},i:function(o){e||(Q(r),e=!0)},o:function(o){fe(r),e=!1},d:function(o){r&&r.d(o),o&&Be(n)}}}function tKe(t,n,e){var i,r=n.validationErrors,o=n.selectError,s=!0;return t.$$set=function(a){"validationErrors"in a&&e(0,r=a.validationErrors),"selectError"in a&&e(1,o=a.selectError)},t.$$.update=function(){1&t.$$.dirty&&e(3,i=r.length)},[r,o,s,i,function(){e(2,s=!1)},function(){e(2,s=!0)},function(a){setTimeout(function(){return o(a)})}]}var ZP=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,tKe,eKe,Pi,{validationErrors:0,selectError:1},KJe),r}return Ie(e)}(),nKe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function iKe(t){_i(t,"svelte-d01h2s",".jse-header.svelte-d01h2s.svelte-d01h2s{display:flex;background:var(--jse-theme-color);color:var(--jse-menu-color)}.jse-header.svelte-d01h2s .jse-title.svelte-d01h2s{flex:1;padding:5px;vertical-align:middle}.jse-header.svelte-d01h2s button.svelte-d01h2s{border:none;background:transparent;min-width:32px;color:inherit;cursor:pointer}.jse-header.svelte-d01h2s button.svelte-d01h2s:hover{background:rgba(255, 255, 255, 0.1)}")}function rKe(t){var n,e,i,r,o,s,a,l,c;return s=new hr({props:{data:P0}}),{c:function(){n=De("div"),e=De("div"),i=sn(t[0]),r=rt(),o=De("button"),gt(s.$$.fragment),R(e,"class","jse-title svelte-d01h2s"),R(o,"type","button"),R(o,"class","jse-close svelte-d01h2s"),R(n,"class","jse-header svelte-d01h2s")},m:function(u,d){$e(u,n,d),me(n,e),me(e,i),me(n,r),me(n,o),pt(s,o,null),a=!0,l||(c=Rt(o,"click",t[3]),l=!0)},p:function(u,d){var h=Jn(d,1)[0];(!a||1&h)&&ti(i,u[0])},i:function(u){a||(Q(s.$$.fragment,u),a=!0)},o:function(u){fe(s.$$.fragment,u),a=!1},d:function(u){u&&Be(n),mt(s),l=!1,c()}}}function oKe(t,n,e){var i=n.title,r=void 0===i?"Modal":i,o=n.onClose,s=void 0===o?void 0:o,a=Aa("simple-modal").close;return t.$$set=function(l){"title"in l&&e(0,r=l.title),"onClose"in l&&e(1,s=l.onClose)},[r,s,a,function(){s?s():a()}]}var e4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,oKe,rKe,Pi,{title:0,onClose:1},iKe),r}return Ie(e)}();function sKe(t){_i(t,"svelte-1olothd",".jse-modal.svelte-1olothd.svelte-1olothd{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1olothd .jse-modal-contents.svelte-1olothd{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions.svelte-1olothd{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1olothd .jse-modal-contents .jse-actions button.jse-primary.svelte-1olothd:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts.svelte-1olothd{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding)) 0}.jse-modal.jse-copy-paste.svelte-1olothd .jse-shortcuts .jse-shortcut .jse-key.svelte-1olothd{font-size:200%;color:var(--jse-theme-color)}")}function aKe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z;return e=new e4({props:{title:"Copying and pasting"}}),{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),(o=De("div")).textContent="These actions are unavailable via the menu. Please use:",s=rt(),a=De("div"),l=De("div"),(c=De("div")).textContent="".concat(t[1],"+C"),u=sn("\n for copy"),d=rt(),h=De("div"),(f=De("div")).textContent="".concat(t[1],"+X"),p=sn("\n for cut"),m=rt(),g=De("div"),(v=De("div")).textContent="".concat(t[1],"+V"),y=sn("\n for paste"),b=rt(),C=De("div"),(D=De("button")).textContent="Close",R(c,"class","jse-key svelte-1olothd"),R(l,"class","jse-shortcut"),R(f,"class","jse-key svelte-1olothd"),R(h,"class","jse-shortcut"),R(v,"class","jse-key svelte-1olothd"),R(g,"class","jse-shortcut"),R(a,"class","jse-shortcuts svelte-1olothd"),R(D,"type","button"),R(D,"class","jse-primary svelte-1olothd"),R(C,"class","jse-actions svelte-1olothd"),R(r,"class","jse-modal-contents svelte-1olothd"),R(n,"class","jse-modal jse-copy-paste svelte-1olothd")},m:function(j,U){$e(j,n,U),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(r,s),me(r,a),me(a,l),me(l,c),me(l,u),me(a,d),me(a,h),me(h,f),me(h,p),me(a,m),me(a,g),me(g,v),me(g,y),me(r,b),me(r,C),me(C,D),E=!0,B||(z=Rt(D,"click",t[0]),B=!0)},p:Bt,i:function(j){E||(Q(e.$$.fragment,j),E=!0)},o:function(j){fe(e.$$.fragment,j),E=!1},d:function(j){j&&Be(n),mt(e),B=!1,z()}}}function lKe(t){return[Aa("simple-modal").close,nKe?"\u2318":"Ctrl"]}var Lle=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,lKe,aKe,Pi,{},sKe),r}return Ie(e)}();function Ble(t){return!!t&&("space"===t.type||!0===t.space)}function Ok(t){return!!t&&("separator"===t.type||!0===t.separator)}function _b(t){return!!t&&"function"==typeof t.onClick}function t4(t){return!!t&&"dropdown-button"===t.type&&_b(t.main)&&Array.isArray(t.items)}function $le(t){return Io(t)&&Io(t.parseError)}function uKe(t){_i(t,"svelte-497ud4",".jse-menu.svelte-497ud4.svelte-497ud4{background:var(--jse-theme-color);border-bottom:1px solid var(--jse-theme-color);color:var(--jse-menu-color);display:flex;flex-wrap:wrap;align-items:center;position:relative}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4{width:var(--jse-menu-button-size);height:var(--jse-menu-button-size);border:none;background:transparent;color:inherit;cursor:pointer;padding:calc(0.5 * var(--jse-padding));margin:0;border-radius:0}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.svelte-497ud4:disabled{color:var(--jse-menu-color);opacity:0.5;background:transparent}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4{border:1px solid var(--jse-menu-color);padding:0 calc(0.5 * var(--jse-padding));margin:calc(0.5 * var(--jse-padding)) 0;height:calc(var(--jse-menu-button-size) - var(--jse-padding));width:auto}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:not(.jse-last){border-right:none}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-first.svelte-497ud4{margin-left:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-last.svelte-497ud4{margin-right:calc(0.5 * var(--jse-padding))}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:hover,.jse-menu.svelte-497ud4 .jse-button.jse-group-button.svelte-497ud4:focus{background:var(--jse-theme-color-highlight)}.jse-menu.svelte-497ud4 .jse-button.jse-group-button.jse-selected.svelte-497ud4{background:var(--jse-menu-color);color:var(--jse-theme-color)}.jse-menu.svelte-497ud4 .jse-space.svelte-497ud4{flex:1}.jse-menu.svelte-497ud4 .jse-separator.svelte-497ud4{background:var(--jse-menu-color);opacity:0.3;box-sizing:border-box;width:1px;height:calc(var(--jse-menu-button-size) - 6px);margin:3px}")}var dKe=function(t){return{}},Vle=function(t){return{}};function Hle(t,n,e){var i=t.slice();return i[3]=n[e],i}var hKe=function(t){return{}},Ule=function(t){return{}};function fKe(t){var n,e=qle(t[3])+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){1&r&&e!==(e=qle(i[3])+"")&&ti(n,e)},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function pKe(t){var n,e,i,r,o,s,a,l,c=t[3].icon&&zle(t),u=t[3].text&&Gle(t);return{c:function(){n=De("button"),c&&c.c(),e=rt(),u&&u.c(),R(n,"type","button"),R(n,"class",i="jse-button "+t[3].className+" svelte-497ud4"),R(n,"title",r=t[3].title),n.disabled=o=t[3].disabled||!1},m:function(d,h){$e(d,n,h),c&&c.m(n,null),me(n,e),u&&u.m(n,null),s=!0,a||(l=Rt(n,"click",function(){Ta(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),a=!0)},p:function(d,h){(t=d)[3].icon?c?(c.p(t,h),1&h&&Q(c,1)):((c=zle(t)).c(),Q(c,1),c.m(n,e)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()),t[3].text?u?u.p(t,h):((u=Gle(t)).c(),u.m(n,null)):u&&(u.d(1),u=null),(!s||1&h&&i!==(i="jse-button "+t[3].className+" svelte-497ud4"))&&R(n,"class",i),(!s||1&h&&r!==(r=t[3].title))&&R(n,"title",r),(!s||1&h&&o!==(o=t[3].disabled||!1))&&(n.disabled=o)},i:function(d){s||(Q(c),s=!0)},o:function(d){fe(c),s=!1},d:function(d){d&&Be(n),c&&c.d(),u&&u.d(),a=!1,l()}}}function mKe(t){var n;return{c:function(){R(n=De("div"),"class","jse-space svelte-497ud4")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function gKe(t){var n;return{c:function(){R(n=De("div"),"class","jse-separator svelte-497ud4")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function zle(t){var n,e;return n=new hr({props:{data:t[3].icon}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r&&(o.data=i[3].icon),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Gle(t){var n,e=t[3].text+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){1&r&&e!==(e=i[3].text+"")&&ti(n,e)},d:function(i){i&&Be(n)}}}function Wle(t){var n,e,i,r,o,s,a,l=[gKe,mKe,pKe,fKe],c=[];function u(d,h){return 1&h&&(n=null),1&h&&(e=null),1&h&&(i=null),null==n&&(n=!!Ok(d[3])),n?0:(null==e&&(e=!!Ble(d[3])),e?1:(null==i&&(i=!!_b(d[3])),i?2:3))}return r=u(t,-1),o=c[r]=l[r](t),{c:function(){o.c(),s=Dr()},m:function(d,h){c[r].m(d,h),$e(d,s,h),a=!0},p:function(d,h){var f=r;(r=u(d,h))===f?c[r].p(d,h):(Ht(),fe(c[f],1,1,function(){c[f]=null}),Ut(),(o=c[r])?o.p(d,h):(o=c[r]=l[r](d)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(d){a||(Q(o),a=!0)},o:function(d){fe(o),a=!1},d:function(d){c[r].d(d),d&&Be(s)}}}function vKe(t){for(var n,e,i,r,o=t[2].left,s=Ms(o,t,t[1],Ule),a=t[0],l=[],c=0;c0&&b.height>0}),u),c=u(e);function u(y){var b=y.getBoundingClientRect();return{x:b.left+b.width/2,y:b.top+b.height/2,rect:b,element:y}}function d(y,b){var D=y.x-b.x,E=(y.y-b.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(D*D+E*E)}var h=function(y){return d(y,c)};if("Left"===i||"Right"===i){var f=l.filter("Left"===i?function(y){return y.rect.left+ac.rect.right+a});return(v0(f.filter(function(y){return Math.abs(y.y-c.y)c.y+a});return(v0(g.filter(function(y){return o(y.element)}),h)||v0(g,h))?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:a.target,direction:c,hasPrio:function(d){return"jse-open-dropdown"!==d.getAttribute("data-type")}});u&&u.focus()}},function(a){Xi[a?"unshift":"push"](function(){e(2,i=a)})}]}var uce=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,rQe,iQe,Pi,{items:0,tip:1},VKe),r}return Ie(e)}();function oQe(t){var n,e;return n=new uce({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function sQe(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B=n.json,z=n.documentState,j=n.parser,U=n.showTip,G=n.onCloseContextMenu,X=n.onEditKey,oe=n.onEditValue,P=n.onToggleEnforceString,W=n.onCut,J=n.onCopy,H=n.onPaste,pe=n.onRemove,A=n.onDuplicate,N=n.onExtract,F=n.onInsertBefore,q=n.onInsert,V=n.onConvert,ce=n.onInsertAfter,ve=n.onSort,je=n.onTransform;function Te(){G(),X()}function et(){G(),oe()}function We(){G(),P()}function st(){G(),W(!0)}function $(){G(),W(!1)}function ae(){G(),J(!0)}function le(){G(),J(!1)}function Re(){G(),H()}function Ze(){G(),pe()}function Ve(){G(),A()}function Ct(){G(),N()}function Ot(hn){G(),c?V(hn):q(hn)}function yn(){G(),ve()}function Xn(){G(),je()}function on(){G(),F()}function Ri(){G(),ce()}return t.$$set=function(hn){"json"in hn&&e(2,B=hn.json),"documentState"in hn&&e(3,z=hn.documentState),"parser"in hn&&e(4,j=hn.parser),"showTip"in hn&&e(0,U=hn.showTip),"onCloseContextMenu"in hn&&e(5,G=hn.onCloseContextMenu),"onEditKey"in hn&&e(6,X=hn.onEditKey),"onEditValue"in hn&&e(7,oe=hn.onEditValue),"onToggleEnforceString"in hn&&e(8,P=hn.onToggleEnforceString),"onCut"in hn&&e(9,W=hn.onCut),"onCopy"in hn&&e(10,J=hn.onCopy),"onPaste"in hn&&e(11,H=hn.onPaste),"onRemove"in hn&&e(12,pe=hn.onRemove),"onDuplicate"in hn&&e(13,A=hn.onDuplicate),"onExtract"in hn&&e(14,N=hn.onExtract),"onInsertBefore"in hn&&e(15,F=hn.onInsertBefore),"onInsert"in hn&&e(16,q=hn.onInsert),"onConvert"in hn&&e(17,V=hn.onConvert),"onInsertAfter"in hn&&e(18,ce=hn.onInsertAfter),"onSort"in hn&&e(19,ve=hn.onSort),"onTransform"in hn&&e(20,je=hn.onTransform)},t.$$.update=function(){8&t.$$.dirty[0]&&e(37,i=z.selection),4&t.$$.dirty[0]&&e(39,r=void 0!==B),64&t.$$.dirty[1]&&e(31,o=null!=i),65&t.$$.dirty[1]&&e(21,s=o&&Ji(i.focusPath)),4&t.$$.dirty[0]|65&t.$$.dirty[1]&&e(38,a=o?On(B,i.focusPath):void 0),128&t.$$.dirty[1]&&e(35,l=Array.isArray(a)?"Edit array":Io(a)?"Edit object":"Edit value"),320&t.$$.dirty[1]&&e(22,c=r&&(Lr(i)||ws(i)||nr(i))),6291456&t.$$.dirty[0]|256&t.$$.dirty[1]&&e(30,u=r&&c&&!s),2097152&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(29,d=r&&null!=i&&(Lr(i)||nr(i))&&!s),2097156&t.$$.dirty[0]|320&t.$$.dirty[1]&&e(36,h=r&&null!=i&&hb(i)&&!s&&!Array.isArray(On(B,tr(i.focusPath)))),320&t.$$.dirty[1]&&e(34,f=r&&null!=i&&hb(i)),136&t.$$.dirty[1]&&e(32,p=f&&!zo(a)),4194304&t.$$.dirty[0]&&e(25,m=c),33554432&t.$$.dirty[0]&&e(24,g=m?"Convert to:":"Insert:"),33554432&t.$$.dirty[0]|1&t.$$.dirty[1]&&e(28,v=!m&&o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(27,y=m?ng(i)&&!Io(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(26,b=m?ng(i)&&!Array.isArray(a):o),33554432&t.$$.dirty[0]|193&t.$$.dirty[1]&&e(23,C=m?ng(i)&&zo(a):o),24&t.$$.dirty[0]|192&t.$$.dirty[1]&&e(33,D=null!=i&&mf(a,z.enforceStringMap,dn(i.focusPath),j)),2145386496&t.$$.dirty[0]|63&t.$$.dirty[1]&&e(1,E=[{type:"row",items:[{type:"button",onClick:Te,icon:N0,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!h},{type:"dropdown-button",main:{type:"button",onClick:et,icon:N0,text:l,title:"Edit the value (Double-click on the value)",disabled:!f},width:"11em",items:[{type:"button",icon:N0,text:l,title:"Edit the value (Double-click on the value)",onClick:et,disabled:!f},{type:"button",icon:D?lb:cb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:We,disabled:!p}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:st,icon:I0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!c},width:"10em",items:[{type:"button",icon:I0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:st,disabled:!c},{type:"button",icon:I0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:$,disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:ae,icon:xp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!c},width:"12em",items:[{type:"button",icon:xp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:ae,disabled:!c},{type:"button",icon:xp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:le,disabled:!c}]},{type:"button",onClick:Re,icon:Aae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:Ve,icon:Rae,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!u},{type:"button",onClick:Ct,icon:PXe,text:"Extract",title:"Extract selected contents",disabled:!d},{type:"button",onClick:yn,icon:xk,text:"Sort",title:"Sort array or object contents",disabled:!c},{type:"button",onClick:Xn,icon:yk,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:!c},{type:"button",onClick:Ze,icon:BP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!c}]},{type:"column",items:[{type:"label",text:g},{type:"button",onClick:function(){return Ot("structure")},icon:m?bk:F0,text:"Structure",title:g+" structure",disabled:!v},{type:"button",onClick:function(){return Ot("object")},icon:m?bk:F0,text:"Object",title:g+" structure",disabled:!y},{type:"button",onClick:function(){return Ot("array")},icon:m?bk:F0,text:"Array",title:g+" array",disabled:!b},{type:"button",onClick:function(){return Ot("value")},icon:m?bk:F0,text:"Value",title:g+" value",disabled:!C}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:on,icon:NXe,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:!c||s},{type:"button",onClick:Ri,icon:MXe,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:!c||s}]}])},[U,E,B,z,j,G,X,oe,P,W,J,H,pe,A,N,F,q,V,ce,ve,je,s,c,C,g,m,b,y,v,d,u,o,p,D,f,l,h,i,a,r]}var aQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,sQe,oQe,Pi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditKey:6,onEditValue:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicate:13,onExtract:14,onInsertBefore:15,onInsert:16,onConvert:17,onInsertAfter:18,onSort:19,onTransform:20},null,[-1,-1]),r}return Ie(e)}();function lQe(t){_i(t,"svelte-1kai5ns","div.jse-collapsed-items.svelte-1kai5ns.svelte-1kai5ns{font-family:var(--jse-font-family);font-size:var(--jse-font-size);color:var(--jse-collapsed-items-link-color);padding:calc(0.5 * var(--jse-padding));border:8px solid transparent;border-width:8px 0;background-color:var(--jse-contents-background-color);background-image:linear-gradient(var(--jse-collapsed-items-background-color), var(--jse-collapsed-items-background-color)), linear-gradient(to bottom right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to bottom left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top right, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%), linear-gradient(to top left, transparent 50.5%, var(--jse-collapsed-items-background-color) 50.5%);background-repeat:repeat, repeat-x, repeat-x, repeat-x, repeat-x;background-position:0 0, 8px 0, 8px 0, 8px 100%, 8px 100%;background-size:auto auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;background-clip:padding-box, border-box, border-box, border-box, border-box;background-origin:padding-box, border-box, border-box, border-box, border-box;display:flex}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{margin:0 calc(0.5 * var(--jse-padding))}div.jse-collapsed-items.svelte-1kai5ns div.jse-text.svelte-1kai5ns{display:inline}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns{font-family:inherit;font-size:inherit;color:var(--jse-collapsed-items-link-color);background:none;border:none;padding:0;text-decoration:underline;cursor:pointer}div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:hover,div.jse-collapsed-items.svelte-1kai5ns button.jse-expand-items.svelte-1kai5ns:focus{color:var(--jse-collapsed-items-link-color-highlight)}")}function dce(t,n,e){var i=t.slice();return i[13]=n[e],i}function hce(t){var n,e,i,r,o,s,a,l,c=t[13].start+"",u=t[13].end+"";function d(){return t[12](t[13])}return{c:function(){n=De("button"),e=sn("show "),i=sn(c),r=sn("-"),o=sn(u),s=rt(),R(n,"type","button"),R(n,"class","jse-expand-items svelte-1kai5ns")},m:function(h,f){$e(h,n,f),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),a||(l=Rt(n,"click",d),a=!0)},p:function(h,f){t=h,16&f&&c!==(c=t[13].start+"")&&ti(i,c),16&f&&u!==(u=t[13].end+"")&&ti(o,u)},d:function(h){h&&Be(n),a=!1,l()}}}function cQe(t){for(var n,e,i,r,o,s,a,l,c,u,d,h=t[4],f=[],p=0;p=v.end&&b.end<=E.start)&&B.push(b),E.start>=(z?b.end:v.end)&&B.push(E),a=B))},[d,p,o,r,a,s,l,c,u,h,f,i,function(m){return p(d,m)}]}var hQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dQe,cQe,Pi,{visibleSections:6,sectionIndex:7,total:8,path:0,pointer:9,selection:10,onExpandSection:1},lQe),r}return Ie(e)}();function fQe(t){_i(t,"svelte-1yzl4st",".jse-context-menu-pointer.svelte-1yzl4st{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size));right:calc(-0.5 * var(--jse-context-menu-pointer-size));width:var(--jse-context-menu-pointer-size);height:var(--jse-context-menu-pointer-size);padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background);color:var(--jse-context-menu-pointer-color);border:none;box-shadow:var(--jse-controls-box-shadow)}.jse-context-menu-pointer.svelte-1yzl4st:hover{background:var(--jse-context-menu-pointer-background-highlight)}")}function pQe(t){var n,e,i,r,o;return e=new hr({props:{data:hu}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-context-menu-pointer svelte-1yzl4st"),R(n,"title",hN),Nt(n,"jse-selected",t[0])},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Rt(n,"click",t[1]),r=!0)},p:function(s,a){var l=Jn(a,1)[0];(!i||1&l)&&Nt(n,"jse-selected",s[0])},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function mQe(t,n,e){var i=n.selected,r=n.onContextMenu;return t.$$set=function(o){"selected"in o&&e(0,i=o.selected),"onContextMenu"in o&&e(2,r=o.onContextMenu)},[i,function(o){for(var s=o.target;s&&"BUTTON"!==s.nodeName;)s=s.parentNode;s&&r({anchor:s,left:0,top:0,width:260,height:336,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var Sp=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,mQe,pQe,Pi,{selected:0,onContextMenu:2},fQe),r}return Ie(e)}();function gQe(t){_i(t,"svelte-24a1b2",'.jse-key.svelte-24a1b2{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color);cursor:var(--jse-contents-cursor);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.svelte-24a1b2:hover{background:var(--jse-hover-background-color)}.jse-key.jse-empty.svelte-24a1b2{min-width:3em;outline:1px dotted var(--jse-tag-background);-moz-outline-radius:2px}.jse-key.jse-empty.svelte-24a1b2::after{pointer-events:none;color:var(--jse-tag-background);content:"key"}')}function vQe(t){var n,e,i,r,o,s,a,l=[bQe,_Qe],c=[];function u(d,h){return d[1]?0:1}return e=u(t),i=c[e]=l[e](t),{c:function(){n=De("div"),i.c(),R(n,"data-type","selectable-key"),R(n,"class",r=Mo(t[6](t[0]))+" svelte-24a1b2")},m:function(d,h){$e(d,n,h),c[e].m(n,null),o=!0,s||(a=Rt(n,"dblclick",t[5]),s=!0)},p:function(d,h){var f=e;(e=u(d))===f?c[e].p(d,h):(Ht(),fe(c[f],1,1,function(){c[f]=null}),Ut(),(i=c[e])?i.p(d,h):(i=c[e]=l[e](d)).c(),Q(i,1),i.m(n,null)),(!o||1&h&&r!==(r=Mo(d[6](d[0]))+" svelte-24a1b2"))&&R(n,"class",r)},i:function(d){o||(Q(i),o=!0)},o:function(d){fe(i),o=!1},d:function(d){d&&Be(n),c[e].d(),s=!1,a()}}}function yQe(t){var n,e;return n=new mae({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.value=i[2].normalization.escapeValue(i[0])),4&r&&(o.onFind=i[2].onFind),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function _Qe(t){var n,e=eg(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){n=sn(e)},m:function(i,r){$e(i,n,r)},p:function(i,r){5&r&&e!==(e=eg(i[2].normalization.escapeValue(i[0]))+"")&&ti(n,e)},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function bQe(t){var n,e;return n=new Eae({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};5&r&&(o.text=i[2].normalization.escapeValue(i[0])),2&r&&(o.searchResultItems=i[1]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function pce(t){var n,e;return n=new Sp({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};4&r&&(o.onContextMenu=i[2].onContextMenu),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function xQe(t){var n,e,i,r,o,s=[yQe,vQe],a=[];function l(u,d){return u[4]?0:1}n=l(t),e=a[n]=s[n](t);var c=!t[2].readOnly&&t[3]&&!t[4]&&pce(t);return{c:function(){e.c(),i=rt(),c&&c.c(),r=Dr()},m:function(u,d){a[n].m(u,d),$e(u,i,d),c&&c.m(u,d),$e(u,r,d),o=!0},p:function(u,d){var h=Jn(d,1)[0],f=n;(n=l(u))===f?a[n].p(u,h):(Ht(),fe(a[f],1,1,function(){a[f]=null}),Ut(),(e=a[n])?e.p(u,h):(e=a[n]=s[n](u)).c(),Q(e,1),e.m(i.parentNode,i)),u[2].readOnly||!u[3]||u[4]?c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()):c?(c.p(u,h),28&h&&Q(c,1)):((c=pce(u)).c(),Q(c,1),c.m(r.parentNode,r))},i:function(u){o||(Q(e),Q(c),o=!0)},o:function(u){fe(e),fe(c),o=!1},d:function(u){a[n].d(u),u&&Be(i),c&&c.d(u),u&&Be(r)}}}function wQe(t,n,e){var i,r,o=n.path,s=n.pointer,a=n.key,l=n.selection,c=n.searchResultItems,u=n.onUpdateKey,d=n.context;return t.$$set=function(h){"path"in h&&e(9,o=h.path),"pointer"in h&&e(10,s=h.pointer),"key"in h&&e(0,a=h.key),"selection"in h&&e(11,l=h.selection),"searchResultItems"in h&&e(1,c=h.searchResultItems),"onUpdateKey"in h&&e(12,u=h.onUpdateKey),"context"in h&&e(2,d=h.context)},t.$$.update=function(){3072&t.$$.dirty&&e(3,i=l?!0===l.pointersMap[s]&&ws(l):void 0),2056&t.$$.dirty&&e(4,r=i&&yp(l))},[a,c,d,i,r,function(h){r||d.readOnly||(h.preventDefault(),d.onSelect(du(o,!0)))},function(h){return ch("jse-key",{"jse-empty":""===h})},function(h,f){var p=u(a,d.normalization.unescapeValue(h)),m=tr(o).concat(p);d.onSelect(f===pN?br(m,!1):du(m,!1)),f!==fN&&d.focus()},function(){d.onSelect(du(o,!1)),d.focus()},o,s,l,u]}var CQe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wQe,xQe,Pi,{path:9,pointer:10,key:0,selection:11,searchResultItems:1,onUpdateKey:12,context:2},gQe),r}return Ie(e)}();function mce(t,n,e){var i=t.slice();return i[8]=n[e],i}function gce(t){var n,e,i,r=[t[8].props],o=t[8].component;function s(a){for(var l={},c=0;cy+g()/2;)y+=g(),v-=1;return v!==m&&void 0!==d[v]?{beforePath:d[v].path,offset:v-m}:void 0}({json:n,selection:o,deltaY:i,items:r}):function(u){for(var d,h=u.json,f=u.items,m=u.deltaY,g=mk(u.selection),v=f.findIndex(function(U){return dr(U.path,g)}),y=0,b=v,C=function(){var U;return null===(U=f[b+1])||void 0===U?void 0:U.height};void 0!==C()&&Math.abs(m)>y+C()/2;)y+=C(),b+=1;var E=On(h,tr(g)),B=Array.isArray(E),z=null===(d=f[B?b:b+1])||void 0===d?void 0:d.path,j=b-v;return z?{beforePath:z,offset:j}:{append:!0,offset:j}}({json:n,selection:o,deltaY:i,items:r});if(!s||0===s.offset)return{operations:void 0,updatedSelection:void 0,offset:0};var u,d,h,f,p,m,g,v,y,b,C,a=function(u,d,h){if(!d)return[];var f="beforePath"in h?h.beforePath:void 0,p="append"in h?h.append:void 0,m=tr(d.focusPath),g=On(u,m);if(!(p||f&&A0(f,m)&&f.length>m.length))return[];var v=D0(d),y=mk(d),b=Bn(v),C=Bn(y),D=f?f[m.length]:void 0;if(!Oo(g)){if(ao(g)){var E=Ys(b),B=Ys(C),z=void 0!==D?Ys(D):g.length;return lP(B-E+1,zU?[].concat(ui(j.slice(U,G+1)),ui(j.slice(X,j.length))).map(function(oe){return ig(m,oe)}):[].concat(ui(j.slice(X,U)),ui(j.slice(G+1,j.length))).map(function(oe){return ig(m,oe)}):[]}(n,o,s),l=On(n,tr(D0(o)));return Array.isArray(l)?{operations:a,updatedSelection:(f=(u={items:r,json:n,selection:o,offset:s.offset}).items,p=u.json,g=u.offset,v=D0(m=u.selection),y=mk(m),b=f.findIndex(function(B){return dr(B.path,v)}),C=f.findIndex(function(B){return dr(B.path,y)}),Fs(p,null===(d=f[b+g])||void 0===d?void 0:d.path,null===(h=f[C+g])||void 0===h?void 0:h.path)),offset:s.offset}:{operations:a,updatedSelection:void 0,offset:s.offset}}function hh(t,n){return function(e,i){if(e){for(var r={},o=0,s=Object.keys(e);o0?r:void 0}}(t,function(e){return Zv(e,n)})}function EQe(t){_i(t,"svelte-pz3g1j","button.jse-validation-error.svelte-pz3g1j{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color)}")}function AQe(t){var n,e,i,r,o,s;return e=new hr({props:{data:rg}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-validation-error svelte-pz3g1j")},m:function(a,l){$e(a,n,l),pt(e,n,null),r=!0,o||(s=[Rt(n,"click",function(){Ta(t[0])&&t[0].apply(this,arguments)}),Ea(i=LP.call(null,n,nt({text:t[1]},t[2])))],o=!0)},p:function(a,l){var c=Jn(l,1)[0];t=a,i&&Ta(i.update)&&2&c&&i.update.call(null,nt({text:t[1]},t[2]))},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){fe(e.$$.fragment,a),r=!1},d:function(a){a&&Be(n),mt(e),o=!1,po(s)}}}function MQe(t,n,e){var i,r=Aa("absolute-popup"),o=n.validationError,s=n.onExpand;return t.$$set=function(a){"validationError"in a&&e(3,o=a.validationError),"onExpand"in a&&e(0,s=a.onExpand)},t.$$.update=function(){8&t.$$.dirty&&e(1,i=o.isChildError?"Contains invalid data":o.message)},[s,i,r,o]}var V0=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,MQe,AQe,_s,{validationError:3,onExpand:0},EQe),r}return Ie(e)}();function OQe(t){_i(t,"svelte-1wlxti1",".jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative;color:var(--jse-text-color)}.jse-json-node.jse-root.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1 .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1 .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size))}.jse-json-node.jse-root.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1.svelte-1wlxti1{padding-left:0}.jse-json-node.svelte-1wlxti1 .jse-props.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-items.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-header .jse-meta.svelte-1wlxti1>.jse-meta-inner.svelte-1wlxti1.svelte-1wlxti1{display:flex;justify-content:center}.jse-json-node.svelte-1wlxti1 .jse-contents-outer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;flex-direction:row;align-items:start}.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-left:var(--jse-indent-size)}.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;padding-left:calc(var(--jse-indent-size) + 5px)}.jse-json-node.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-contents-background-color)}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding));flex:1}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-inside.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:inline-flex;align-items:center}.jse-json-node.svelte-1wlxti1 .jse-insert-selection-area.jse-after.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;align-items:flex-end}.jse-json-node.svelte-1wlxti1 .jse-context-menu-pointer-anchor.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{position:relative}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{display:flex;position:relative;z-index:1;max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding));outline:1px solid}.jse-json-node.svelte-1wlxti1 .jse-insert-area.svelte-1wlxti1 .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-hovered.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-hover-background)}.jse-json-node.svelte-1wlxti1:hover>.jse-contents-outer .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-header-outer.svelte-1wlxti1:hover>.jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected),.jse-json-node.svelte-1wlxti1 .jse-footer-outer:hover .jse-insert-selection-area.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-hovered.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-hover-background-color)}.jse-json-node.jse-selected.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected.svelte-1wlxti1 .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-identifier>.jse-key{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-contents-outer.svelte-1wlxti1>.jse-contents.svelte-1wlxti1>.jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.svelte-1wlxti1 .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-1wlxti1 .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-collapsed-items{background-color:var(--jse-selection-background-color);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{background:var(--jse-selection-background-color)}.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-header-outer.svelte-1wlxti1>.jse-header.svelte-1wlxti1>.jse-meta.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1>.jse-footer-outer.svelte-1wlxti1>.jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-props .jse-expand.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-contents.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-header.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-footer.svelte-1wlxti1 .jse-value,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-key,.jse-json-node.jse-selected-value.svelte-1wlxti1 .jse-items .jse-expand.svelte-1wlxti1 .jse-value{background:var(--jse-selection-background-color);cursor:var(--jse-contents-selected-cursor)}.jse-json-node.jse-readonly.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{outline-color:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background)}.jse-json-node.svelte-1wlxti1 .jse-insert-area.jse-selected.svelte-1wlxti1 .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight)}.jse-main:not(.jse-focus) .jse-json-node.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{--jse-selection-background-color:var(--jse-selection-background-inactive-color);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{width:var(--jse-indent-size);padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color);font-size:var(--jse-font-size-mono);height:var(--jse-line-height)}.jse-expand.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-meta.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-separator.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1,.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;color:var(--jse-delimiter-color)}.jse-index.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 calc(0.5 * var(--jse-padding))}.jse-bracket.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding:0 2px}.jse-bracket.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{padding-right:var(--jse-padding)}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{border:none;font-size:80%;font-family:var(--jse-font-family);color:var(--jse-tag-color);background:var(--jse-tag-background);border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{opacity:0.7;cursor:inherit}.jse-identifier.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1.svelte-1wlxti1{vertical-align:top;position:relative}")}var IQe=function(t){return{}},vce=function(t){return{}};function yce(t,n,e){var i=t.slice();return i[53]=n[e],i}var NQe=function(t){return{}},_ce=function(t){return{}};function bce(t,n,e){var i=t.slice();return i[47]=n[e],i[49]=e,i}function xce(t,n,e){var i=t.slice();return i[50]=n[e],i}var FQe=function(t){return{}},wce=function(t){return{}};function PQe(t){var n,e,i,r,o,s,a,l,c,u=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),d=t[34].identifier,h=Ms(d,t,t[35],vce),f=!t[17]&&Cce();o=new TQe({props:{path:t[1],value:t[0],enforceString:t[13],selection:t[16]?t[7]:void 0,searchResultItems:kae(t[6],t[9]),context:t[8]}});var p=u&&Sce(t),m=t[15]&&kce(t),g=!t[17]&&Dce(t);return{c:function(){n=De("div"),e=De("div"),h&&h.c(),i=rt(),f&&f.c(),r=rt(),gt(o.$$.fragment),s=rt(),p&&p.c(),a=rt(),m&&m.c(),l=rt(),g&&g.c(),R(e,"class","jse-contents svelte-1wlxti1"),R(n,"class","jse-contents-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(v,y){$e(v,n,y),me(n,e),h&&h.m(e,null),me(e,i),f&&f.m(e,null),me(e,r),pt(o,e,null),me(e,s),p&&p.m(e,null),me(n,a),m&&m.m(n,null),me(n,l),g&&g.m(n,null),c=!0},p:function(v,y){h&&h.p&&(!c||16&y[1])&&Is(h,d,v,v[35],c?Os(d,v[35],y,IQe):Ns(v[35]),vce),v[17]?f&&(f.d(1),f=null):f||((f=Cce()).c(),f.m(e,r));var b={};2&y[0]&&(b.path=v[1]),1&y[0]&&(b.value=v[0]),8192&y[0]&&(b.enforceString=v[13]),65664&y[0]&&(b.selection=v[16]?v[7]:void 0),576&y[0]&&(b.searchResultItems=kae(v[6],v[9])),256&y[0]&&(b.context=v[8]),o.$set(b),65922&y[0]&&(u=!v[8].readOnly&&v[16]&&v[7]&&(nr(v[7])||Lr(v[7]))&&!v[7].edit&&dr(v[7].focusPath,v[1])),u?p?(p.p(v,y),65922&y[0]&&Q(p,1)):((p=Sce(v)).c(),Q(p,1),p.m(e,null)):p&&(Ht(),fe(p,1,1,function(){p=null}),Ut()),v[15]?m?(m.p(v,y),32768&y[0]&&Q(m,1)):((m=kce(v)).c(),Q(m,1),m.m(n,l)):m&&(Ht(),fe(m,1,1,function(){m=null}),Ut()),v[17]?g&&(g.d(1),g=null):g?g.p(v,y):((g=Dce(v)).c(),g.m(n,null)),(!c||262144&y[0])&&R(n,"style",v[18])},i:function(v){c||(Q(h,v),Q(o.$$.fragment,v),Q(p),Q(m),c=!0)},o:function(v){fe(h,v),fe(o.$$.fragment,v),fe(p),fe(m),c=!1},d:function(v){v&&Be(n),h&&h.d(v),f&&f.d(),mt(o),p&&p.d(),m&&m.d(),g&&g.d()}}}function RQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),C=[BQe,LQe],D=[];function E(A,N){return A[12]?0:1}r=E(t),o=D[r]=C[r](t);var B=t[34].identifier,z=Ms(B,t,t[35],_ce),j=!t[17]&&Tce();function U(A,N){return A[12]?VQe:$Qe}var G=U(t),X=G(t),oe=b&&Ece(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Ace(t);function W(A,N){return A[12]?UQe:A[17]?void 0:HQe}var J=W(t),H=J&&J(t),pe=t[12]&&Mce(t);return{c:function(){n=De("div"),e=De("div"),i=De("button"),o.c(),s=rt(),z&&z.c(),a=rt(),j&&j.c(),l=rt(),c=De("div"),u=De("div"),X.c(),d=rt(),oe&&oe.c(),h=rt(),P&&P.c(),f=rt(),H&&H.c(),p=rt(),pe&&pe.c(),m=Dr(),R(i,"type","button"),R(i,"class","jse-expand svelte-1wlxti1"),R(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),R(u,"class","jse-meta-inner svelte-1wlxti1"),R(c,"class","jse-meta svelte-1wlxti1"),R(c,"data-type","selectable-value"),R(e,"class","jse-header svelte-1wlxti1"),R(n,"class","jse-header-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(A,N){$e(A,n,N),me(n,e),me(e,i),D[r].m(i,null),me(e,s),z&&z.m(e,null),me(e,a),j&&j.m(e,null),me(e,l),me(e,c),me(c,u),X.m(u,null),me(e,d),oe&&oe.m(e,null),me(n,h),P&&P.m(n,null),me(n,f),H&&H.m(n,null),$e(A,p,N),pe&&pe.m(A,N),$e(A,m,N),g=!0,v||(y=Rt(i,"click",t[21]),v=!0)},p:function(A,N){var F=r;(r=E(A))===F?D[r].p(A,N):(Ht(),fe(D[F],1,1,function(){D[F]=null}),Ut(),(o=D[r])?o.p(A,N):(o=D[r]=C[r](A)).c(),Q(o,1),o.m(i,null)),z&&z.p&&(!g||16&N[1])&&Is(z,B,A,A[35],g?Os(B,A[35],N,NQe):Ns(A[35]),_ce),A[17]?j&&(j.d(1),j=null):j||((j=Tce()).c(),j.m(e,l)),G===(G=U(A))&&X?X.p(A,N):(X.d(1),(X=G(A))&&(X.c(),X.m(u,null))),65922&N[0]&&(b=!A[8].readOnly&&A[16]&&A[7]&&(nr(A[7])||Lr(A[7]))&&!A[7].edit&&dr(A[7].focusPath,A[1])),b?oe?(oe.p(A,N),65922&N[0]&&Q(oe,1)):((oe=Ece(A)).c(),Q(oe,1),oe.m(e,null)):oe&&(Ht(),fe(oe,1,1,function(){oe=null}),Ut()),!A[15]||A[12]&&A[15].isChildError?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),36864&N[0]&&Q(P,1)):((P=Ace(A)).c(),Q(P,1),P.m(n,f)),J===(J=W(A))&&H?H.p(A,N):(H&&H.d(1),(H=J&&J(A))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&R(n,"style",A[18]),A[12]?pe?(pe.p(A,N),4096&N[0]&&Q(pe,1)):((pe=Mce(A)).c(),Q(pe,1),pe.m(m.parentNode,m)):pe&&(Ht(),fe(pe,1,1,function(){pe=null}),Ut())},i:function(A){g||(Q(o),Q(z,A),Q(oe),Q(P),Q(pe),g=!0)},o:function(A){fe(o),fe(z,A),fe(oe),fe(P),fe(pe),g=!1},d:function(A){A&&Be(n),D[r].d(),z&&z.d(A),j&&j.d(),X.d(),oe&&oe.d(),P&&P.d(),H&&H.d(),A&&Be(p),pe&&pe.d(A),A&&Be(m),v=!1,y()}}}function jQe(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b=!t[8].readOnly&&t[16]&&t[7]&&(nr(t[7])||Lr(t[7]))&&!t[7].edit&&dr(t[7].focusPath,t[1]),C=[WQe,GQe],D=[];function E(A,N){return A[12]?0:1}r=E(t),o=D[r]=C[r](t);var B=t[34].identifier,z=Ms(B,t,t[35],wce),j=!t[17]&&Fce();function U(A,N){return A[12]?YQe:qQe}var G=U(t),X=G(t),oe=b&&Pce(t),P=t[15]&&(!t[12]||!t[15].isChildError)&&Rce(t);function W(A,N){return A[12]?JQe:XQe}var J=W(t),H=J(t),pe=t[12]&&jce(t);return{c:function(){n=De("div"),e=De("div"),i=De("button"),o.c(),s=rt(),z&&z.c(),a=rt(),j&&j.c(),l=rt(),c=De("div"),u=De("div"),X.c(),d=rt(),oe&&oe.c(),h=rt(),P&&P.c(),f=rt(),H.c(),p=rt(),pe&&pe.c(),m=Dr(),R(i,"type","button"),R(i,"class","jse-expand svelte-1wlxti1"),R(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),R(u,"class","jse-meta-inner svelte-1wlxti1"),R(u,"data-type","selectable-value"),R(c,"class","jse-meta svelte-1wlxti1"),R(e,"class","jse-header svelte-1wlxti1"),R(n,"class","jse-header-outer svelte-1wlxti1"),R(n,"style",t[18])},m:function(A,N){$e(A,n,N),me(n,e),me(e,i),D[r].m(i,null),me(e,s),z&&z.m(e,null),me(e,a),j&&j.m(e,null),me(e,l),me(e,c),me(c,u),X.m(u,null),me(e,d),oe&&oe.m(e,null),me(n,h),P&&P.m(n,null),me(n,f),H.m(n,null),$e(A,p,N),pe&&pe.m(A,N),$e(A,m,N),g=!0,v||(y=Rt(i,"click",t[21]),v=!0)},p:function(A,N){var F=r;(r=E(A))===F?D[r].p(A,N):(Ht(),fe(D[F],1,1,function(){D[F]=null}),Ut(),(o=D[r])?o.p(A,N):(o=D[r]=C[r](A)).c(),Q(o,1),o.m(i,null)),z&&z.p&&(!g||16&N[1])&&Is(z,B,A,A[35],g?Os(B,A[35],N,FQe):Ns(A[35]),wce),A[17]?j&&(j.d(1),j=null):j||((j=Fce()).c(),j.m(e,l)),G===(G=U(A))&&X?X.p(A,N):(X.d(1),(X=G(A))&&(X.c(),X.m(u,null))),65922&N[0]&&(b=!A[8].readOnly&&A[16]&&A[7]&&(nr(A[7])||Lr(A[7]))&&!A[7].edit&&dr(A[7].focusPath,A[1])),b?oe?(oe.p(A,N),65922&N[0]&&Q(oe,1)):((oe=Pce(A)).c(),Q(oe,1),oe.m(e,null)):oe&&(Ht(),fe(oe,1,1,function(){oe=null}),Ut()),!A[15]||A[12]&&A[15].isChildError?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),36864&N[0]&&Q(P,1)):((P=Rce(A)).c(),Q(P,1),P.m(n,f)),J===(J=W(A))&&H?H.p(A,N):(H.d(1),(H=J(A))&&(H.c(),H.m(n,null))),(!g||262144&N[0])&&R(n,"style",A[18]),A[12]?pe?(pe.p(A,N),4096&N[0]&&Q(pe,1)):((pe=jce(A)).c(),Q(pe,1),pe.m(m.parentNode,m)):pe&&(Ht(),fe(pe,1,1,function(){pe=null}),Ut())},i:function(A){g||(Q(o),Q(z,A),Q(oe),Q(P),Q(pe),g=!0)},o:function(A){fe(o),fe(z,A),fe(oe),fe(P),fe(pe),g=!1},d:function(A){A&&Be(n),D[r].d(),z&&z.d(A),j&&j.d(),X.d(),oe&&oe.d(),P&&P.d(),H.d(),A&&Be(p),pe&&pe.d(A),A&&Be(m),v=!1,y()}}}function Cce(t){var n;return{c:function(){(n=De("div")).textContent=":",R(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function Sce(t){var n,e,i;return e=new Sp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){$e(r,n,o),pt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){fe(e.$$.fragment,r),i=!1},d:function(r){r&&Be(n),mt(e)}}}function kce(t){var n,e;return n=new V0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Dce(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),R(n,"data-type","insert-selection-area-after")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[30]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function LQe(t){var n,e;return n=new hr({props:{data:_p}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function BQe(t){var n,e;return n=new hr({props:{data:hu}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Tce(t){var n;return{c:function(){(n=De("div")).textContent=":",R(n,"class","jse-separator svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function $Qe(t){var n,e,i,r,o,s,a,l,c,u,d=Object.keys(t[0]).length+"",h=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(n=De("div")).textContent="{",e=rt(),i=De("button"),r=sn(d),o=rt(),s=sn(h),a=rt(),(l=De("div")).textContent="}",R(n,"class","jse-bracket svelte-1wlxti1"),R(i,"type","button"),R(i,"class","jse-tag svelte-1wlxti1"),R(l,"class","jse-bracket svelte-1wlxti1")},m:function(f,p){$e(f,n,p),$e(f,e,p),$e(f,i,p),me(i,r),me(i,o),me(i,s),$e(f,a,p),$e(f,l,p),c||(u=Rt(i,"click",t[22]),c=!0)},p:function(f,p){1&p[0]&&d!==(d=Object.keys(f[0]).length+"")&&ti(r,d),1&p[0]&&h!==(h=1===Object.keys(f[0]).length?"prop":"props")&&ti(s,h)},d:function(f){f&&Be(n),f&&Be(e),f&&Be(i),f&&Be(a),f&&Be(l),c=!1,u()}}}function VQe(t){var n;return{c:function(){(n=De("div")).textContent="{",R(n,"class","jse-bracket jse-expanded svelte-1wlxti1")},m:function(e,i){$e(e,n,i)},p:Bt,d:function(e){e&&Be(n)}}}function Ece(t){var n,e,i;return e=new Sp({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-context-menu-pointer-anchor svelte-1wlxti1")},m:function(r,o){$e(r,n,o),pt(e,n,null),i=!0},p:function(r,o){var s={};256&o[0]&&(s.onContextMenu=r[8].onContextMenu),e.$set(s)},i:function(r){i||(Q(e.$$.fragment,r),i=!0)},o:function(r){fe(e.$$.fragment,r),i=!1},d:function(r){r&&Be(n),mt(e)}}}function Ace(t){var n,e;return n=new V0({props:{validationError:t[15],onExpand:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.validationError=i[15]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function HQe(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-after svelte-1wlxti1"),R(n,"data-type","insert-selection-area-after")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[30]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function UQe(t){var n,e,i;return{c:function(){R(n=De("div"),"class","jse-insert-selection-area jse-inside svelte-1wlxti1"),R(n,"data-type","insert-selection-area-inside")},m:function(r,o){$e(r,n,o),e||(i=Rt(n,"click",t[29]),e=!0)},p:Bt,d:function(r){r&&Be(n),e=!1,i()}}}function Mce(t){for(var n,e,i,r,o,s,a,l=!t[8].readOnly&&("hover-insert-inside"===t[10]||t[16]&&Js(t[7])),c=l&&Oce(t),u=t[19](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11]),d=[],h=0;h}',s=rt(),p&&p.c(),R(n,"class","jse-props svelte-1wlxti1"),R(o,"data-type","selectable-value"),R(o,"class","jse-footer svelte-1wlxti1"),R(r,"class","jse-footer-outer svelte-1wlxti1"),R(r,"style",t[18])},m:function(m,g){$e(m,n,g),c&&c.m(n,null),me(n,e);for(var v=0;v]',s=rt(),v&&v.c(),R(n,"class","jse-items svelte-1wlxti1"),R(o,"data-type","selectable-value"),R(o,"class","jse-footer svelte-1wlxti1"),R(r,"class","jse-footer-outer svelte-1wlxti1"),R(r,"style",t[18])},m:function(y,b){$e(y,n,b),d&&d.m(n,null),me(n,e);for(var C=0;C=Ve.start&&ae<=Ve.end});if(!le)return null;mse(le.start,Math.min(p.length,le.end),function(Ve){return et(String(Ve))})}else Object.keys(p).forEach(et);return Te}(D,l||$m);if(z("dragSelectionStart",{selection:D,items:F}),F){var q=D0(D),V=F.findIndex(function(ve){return dr(ve.path,q)}),ce=r4({json:E.getJson(),documentState:E.getDocumentState(),deltaY:0,items:F}).offset;e(11,G={initialTarget:A.target,initialClientY:A.clientY,initialContentTop:W(),selectionStartIndex:V,selectionItemsCount:hae(D).length,items:F,offset:ce,didMoveItems:!1}),ya.dragging=!0,document.addEventListener("mousemove",H,!0),document.addEventListener("mouseup",pe)}else z("Cannot drag the current selection (probably spread over multiple sections)")}else B(A)}},function(A){ya.selecting||ya.dragging||(A.stopPropagation(),tg(A.target,"data-type","selectable-value")?e(10,j="hover-collection"):tg(A.target,"data-type","insert-selection-area-inside")?e(10,j="hover-insert-inside"):tg(A.target,"data-type","insert-selection-area-after")&&e(10,j="hover-insert-after"),clearTimeout(U))},function(A){A.stopPropagation(),U=setTimeout(function(){return e(10,j=void 0)})},function(A){A.shiftKey||(A.stopPropagation(),A.preventDefault(),E.onSelect(gf(m)))},function(A){A.shiftKey||(A.stopPropagation(),A.preventDefault(),E.onSelect(vf(m)))},function(A){E.onSelect(gf(m)),E.onContextMenu(A)},function(A){E.onSelect(vf(m)),E.onContextMenu(A)},B,h,f]}var o4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ZQe,QQe,Pi,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:33},OQe,[-1,-1]),r}return Ie(e)}(),eZe=o4,tZe={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},nZe={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},s4={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},iZe={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function rZe(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function oZe(t,n,e){var i,r,o,s,a,l,c,u=n.json,d=n.selection,h=n.readOnly,f=n.showSearch,p=void 0!==f&&f,m=n.historyState,g=n.onExpandAll,v=n.onCollapseAll,y=n.onUndo,b=n.onRedo,C=n.onSort,D=n.onTransform,E=n.onContextMenu,B=n.onCopy,z=n.onRenderMenu;function j(){e(1,p=!p)}return t.$$set=function(U){"json"in U&&e(2,u=U.json),"selection"in U&&e(3,d=U.selection),"readOnly"in U&&e(4,h=U.readOnly),"showSearch"in U&&e(1,p=U.showSearch),"historyState"in U&&e(5,m=U.historyState),"onExpandAll"in U&&e(6,g=U.onExpandAll),"onCollapseAll"in U&&e(7,v=U.onCollapseAll),"onUndo"in U&&e(8,y=U.onUndo),"onRedo"in U&&e(9,b=U.onRedo),"onSort"in U&&e(10,C=U.onSort),"onTransform"in U&&e(11,D=U.onTransform),"onContextMenu"in U&&e(12,E=U.onContextMenu),"onCopy"in U&&e(13,B=U.onCopy),"onRenderMenu"in U&&e(14,z=U.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&e(20,i=void 0!==u),1048584&t.$$.dirty&&e(19,r=i&&(Lr(d)||ws(d)||nr(d))),68&t.$$.dirty&&e(15,s={type:"button",icon:tZe,title:"Expand all",className:"jse-expand-all",onClick:g,disabled:!zo(u)}),132&t.$$.dirty&&e(16,a={type:"button",icon:nZe,title:"Collapse all",className:"jse-collapse-all",onClick:v,disabled:!zo(u)}),4&t.$$.dirty&&e(17,l={type:"button",icon:HP,title:"Search (Ctrl+F)",className:"jse-search",onClick:j,disabled:void 0===u}),769844&t.$$.dirty&&e(18,c=h?[s,a,{type:"separator"},{type:"button",icon:xp,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:B,disabled:!r},{type:"separator"},l,{type:"space"}]:[s,a,{type:"separator"},{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:C,disabled:h||void 0===u},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:D,disabled:h||void 0===u},l,{type:"button",icon:Nae,title:hN,className:"jse-contextmenu",onClick:E},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:y,disabled:!m.canUndo},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:b,disabled:!m.canRedo},{type:"space"}]),278528&t.$$.dirty&&e(0,o=z(c)||c)},[o,p,u,d,h,m,g,v,y,b,C,D,E,B,z,s,a,l,c,r,i]}var sZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,oZe,rZe,Pi,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),r}return Ie(e)}();function aZe(t){_i(t,"svelte-1q2qkk2",'@charset "UTF-8";.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2{flex:1;overflow:auto;font-family:var(--jse-font-family);font-size:var(--jse-font-size);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2.svelte-1q2qkk2:last-child{border-bottom:var(--jse-main-border)}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-before.svelte-1q2qkk2{flex:1}.jse-welcome.svelte-1q2qkk2 .jse-space.jse-after.svelte-1q2qkk2{flex:2}.jse-welcome.svelte-1q2qkk2 .jse-contents.svelte-1q2qkk2{margin:2em var(--jse-padding) 0;color:var(--jse-panel-color-readonly)}.jse-welcome.svelte-1q2qkk2 .jse-contents ul.svelte-1q2qkk2{list-style:"\u25cf";list-style-position:outside;padding-left:20px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li.svelte-1q2qkk2{padding-left:10px}.jse-welcome.svelte-1q2qkk2 .jse-contents ul li span.jse-bold.svelte-1q2qkk2{font-family:var(--jse-font-family-mono);font-weight:bold}')}function zce(t){var n;return{c:function(){(n=De("ul")).innerHTML='
  • Click inside the editor
  • \n
  • Paste clipboard data using Ctrl+V
  • \n
  • Create a new object by typing {
  • \n
  • Create a new array by typing [
  • ',R(n,"class","svelte-1q2qkk2")},m:function(e,i){$e(e,n,i)},d:function(e){e&&Be(n)}}}function lZe(t){var n,e,i,r,o,s,a,l=!t[0]&&zce();return{c:function(){n=De("div"),e=De("div"),i=rt(),r=De("div"),o=sn("Empty document\n "),l&&l.c(),s=rt(),a=De("div"),R(e,"class","jse-space jse-before svelte-1q2qkk2"),R(r,"class","jse-contents svelte-1q2qkk2"),R(a,"class","jse-space jse-after svelte-1q2qkk2"),R(n,"class","jse-welcome svelte-1q2qkk2")},m:function(c,u){$e(c,n,u),me(n,e),me(n,i),me(n,r),me(r,o),l&&l.m(r,null),me(n,s),me(n,a)},p:function(c,u){Jn(u,1),c[0]?l&&(l.d(1),l=null):l||((l=zce()).c(),l.m(r,null))},i:Bt,o:Bt,d:function(c){c&&Be(n),l&&l.d()}}}function cZe(t,n,e){var i=n.readOnly;return t.$$set=function(r){"readOnly"in r&&e(0,i=r.readOnly)},[i]}var uZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,cZe,lZe,Pi,{readOnly:0},aZe),r}return Ie(e)}(),a4={},dZe={get exports(){return a4},set exports(t){a4=t}},Gce=function(t,n){var e,i,r=1,o=0,s=0,a=String.alphabet;function l(c,u,d){if(d){for(e=u;(d=l(c,e))<76&&d>65;)++e;return+c.slice(u-1,e)}return(d=a&&a.indexOf(c.charAt(u)))>-1?d+76:(d=c.charCodeAt(u)||0)<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63}if((t+="")!=(n+=""))for(;r;)if(i=l(t,o++),r=l(n,s++),i<76&&r<76&&i>66&&r>66&&(i=l(t,o,o),r=l(n,s,o=e),s=e),i!=r)return i1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(ao(On(t,n))){if(void 0===e)throw new Error("Cannot sort: no property selected by which to sort the array");return function fZe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function pZe(t,n){return function(e,i){var r=On(e,t),o=On(i,t);return void 0===r?n:void 0===o?-n:"string"!=typeof r&&"string"!=typeof o?r>o?n:r2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:1),o=On(t,n);return[{op:"replace",path:dn(n),value:o.slice(0).sort(r)}]}(t,n,e,i)}if(Io(t))return function hZe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=On(t,n),o=Object.keys(i).slice();o.sort(function(u,d){return e*l4(u,d)});for(var s=[],a=0;axb&&Xce();return{c:function(){n=De("div");for(var d=0;dxb?u?u.p(d,f):((u=Xce()).c(),u.m(n,null)):u&&(u.d(1),u=null)},i:Bt,o:Bt,d:function(d){d&&Be(n);for(var h=0;h0&&(a("scrollTo ",g),o.scrollTo({left:g,behavior:"smooth"}))}})},[l,d,h,i,o,s,f,r,function(g){a("get items for path",g);var v=On(l,g);if(Array.isArray(v))return rP(0,v.length).map(String);if(Io(v)){var y=Object.keys(v).slice(0);return y.sort(l4),y}return[]},function(g){return nu(l,g)},p,function(){e(6,f=!f)},m,function(g){m(),p(g)},c,u,function(g){Xi[g?"unshift":"push"](function(){e(5,s=g)})},function(g){Xi[g?"unshift":"push"](function(){e(4,o=g)})}]}var OZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,MZe,AZe,Pi,{json:0,documentState:14,onSelect:15,onError:1,pathParser:2},DZe),r}return Ie(e)}();function IZe(t){_i(t,"svelte-3lbrbf",".jse-search-box.svelte-3lbrbf.svelte-3lbrbf{border:var(--jse-panel-border);border-radius:3px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);box-shadow:var(--jse-controls-box-shadow);display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-3lbrbf .jse-search-form.svelte-3lbrbf{display:flex;align-items:stretch}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf,.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{font-family:inherit;font-size:inherit}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color);background:var(--jse-panel-button-background)}.jse-search-box.svelte-3lbrbf .jse-search-form button.svelte-3lbrbf:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form input.svelte-3lbrbf{color:var(--jse-panel-color);border:var(--jse-input-border);border-radius:3px;background:var(--jse-input-background);height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-replace-toggle.svelte-3lbrbf{padding:var(--jse-padding) calc(0.5 * var(--jse-padding));min-width:20px;background:var(--jse-panel-button-background-highlight)}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents.svelte-3lbrbf{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding));gap:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section.svelte-3lbrbf{flex:1;display:flex;align-items:center;position:relative;padding-left:32px}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-3lbrbf{color:inherit;cursor:inherit;background:inherit;position:absolute;top:calc(0.5 * var(--jse-padding));left:calc(0.5 * var(--jse-padding))}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-3lbrbf{flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-3lbrbf{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-3lbrbf{visibility:visible}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section.svelte-3lbrbf{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-3lbrbf .jse-search-form .jse-search-contents .jse-replace-section button.svelte-3lbrbf{width:auto}")}function rue(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe=(-1!==t[3]?"".concat(t[3]+1,"/"):"")+"",P=!t[4]&&oue(t),W=[FZe,NZe],J=[];function H(A,N){return A[2]?0:1}a=H(t),l=J[a]=W[a](t),y=new hr({props:{data:BXe}}),D=new hr({props:{data:IXe}}),z=new hr({props:{data:P0}});var pe=t[0]&&!t[4]&&sue(t);return{c:function(){n=De("div"),e=De("form"),P&&P.c(),i=rt(),r=De("div"),o=De("div"),s=De("div"),l.c(),c=rt(),u=De("label"),d=De("input"),h=rt(),f=De("div"),p=sn(oe),m=sn(t[10]),g=rt(),v=De("button"),gt(y.$$.fragment),b=rt(),C=De("button"),gt(D.$$.fragment),E=rt(),B=De("button"),gt(z.$$.fragment),j=rt(),pe&&pe.c(),R(s,"class","jse-search-icon svelte-3lbrbf"),R(d,"class","jse-search-input svelte-3lbrbf"),R(d,"title","Enter text to search"),R(d,"type","text"),R(d,"placeholder","Find"),R(u,"class","jse-search-input-label svelte-3lbrbf"),R(u,"about","jse-search input"),R(f,"class","jse-search-count svelte-3lbrbf"),Nt(f,"jse-visible",""!==t[8]),R(v,"type","button"),R(v,"class","jse-search-next svelte-3lbrbf"),R(v,"title","Go to next search result (Enter)"),R(C,"type","button"),R(C,"class","jse-search-previous svelte-3lbrbf"),R(C,"title","Go to previous search result (Shift+Enter)"),R(B,"type","button"),R(B,"class","jse-search-clear svelte-3lbrbf"),R(B,"title","Close search box (Esc)"),R(o,"class","jse-search-section svelte-3lbrbf"),R(r,"class","jse-search-contents svelte-3lbrbf"),R(e,"class","jse-search-form svelte-3lbrbf"),R(n,"class","jse-search-box svelte-3lbrbf")},m:function(A,N){$e(A,n,N),me(n,e),P&&P.m(e,null),me(e,i),me(e,r),me(r,o),me(o,s),J[a].m(s,null),me(o,c),me(o,u),me(u,d),ip(d,t[8]),me(o,h),me(o,f),me(f,p),me(f,m),me(o,g),me(o,v),pt(y,v,null),me(o,b),me(o,C),pt(D,C,null),me(o,E),me(o,B),pt(z,B,null),me(r,j),pe&&pe.m(r,null),U=!0,G||(X=[Rt(d,"input",t[21]),Ea(RZe.call(null,d)),Rt(v,"click",t[22]),Rt(C,"click",t[23]),Rt(B,"click",t[24]),Rt(e,"submit",t[12]),Rt(e,"keydown",t[13])],G=!0)},p:function(A,N){A[4]?P&&(Ht(),fe(P,1,1,function(){P=null}),Ut()):P?(P.p(A,N),16&N&&Q(P,1)):((P=oue(A)).c(),Q(P,1),P.m(e,i));var F=a;(a=H(A))===F?J[a].p(A,N):(Ht(),fe(J[F],1,1,function(){J[F]=null}),Ut(),(l=J[a])?l.p(A,N):(l=J[a]=W[a](A)).c(),Q(l,1),l.m(s,null)),256&N&&d.value!==A[8]&&ip(d,A[8]),(!U||8&N)&&oe!==(oe=(-1!==A[3]?"".concat(A[3]+1,"/"):"")+"")&&ti(p,oe),(!U||1024&N)&&ti(m,A[10]),(!U||256&N)&&Nt(f,"jse-visible",""!==A[8]),A[0]&&!A[4]?pe?pe.p(A,N):((pe=sue(A)).c(),pe.m(r,null)):pe&&(pe.d(1),pe=null)},i:function(A){U||(Q(P),Q(l),Q(y.$$.fragment,A),Q(D.$$.fragment,A),Q(z.$$.fragment,A),U=!0)},o:function(A){fe(P),fe(l),fe(y.$$.fragment,A),fe(D.$$.fragment,A),fe(z.$$.fragment,A),U=!1},d:function(A){A&&Be(n),P&&P.d(),J[a].d(),mt(y),mt(D),mt(z),pe&&pe.d(),G=!1,po(X)}}}function oue(t){var n,e,i,r,o;return e=new hr({props:{data:t[0]?hu:_p}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-replace-toggle svelte-3lbrbf"),R(n,"title","Toggle visibility of replace options (Ctrl+H)")},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Rt(n,"click",t[11]),r=!0)},p:function(s,a){var l={};1&a&&(l.data=s[0]?hu:_p),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function NZe(t){var n,e;return n=new hr({props:{data:HP}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function FZe(t){var n,e;return n=new hr({props:{data:AXe,spin:!0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:Bt,i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function sue(t){var n,e,i,r,o,s,a,l;return{c:function(){n=De("div"),e=De("input"),i=rt(),(r=De("button")).textContent="Replace",o=rt(),(s=De("button")).textContent="All",R(e,"class","jse-replace-input svelte-3lbrbf"),R(e,"title","Enter replacement text"),R(e,"type","text"),R(e,"placeholder","Replace"),R(r,"type","button"),R(r,"title","Replace current occurrence (Ctrl+Enter)"),R(r,"class","svelte-3lbrbf"),R(s,"type","button"),R(s,"title","Replace all occurrences"),R(s,"class","svelte-3lbrbf"),R(n,"class","jse-replace-section svelte-3lbrbf")},m:function(c,u){$e(c,n,u),me(n,e),ip(e,t[9]),me(n,i),me(n,r),me(n,o),me(n,s),a||(l=[Rt(e,"input",t[25]),Rt(r,"click",t[14]),Rt(s,"click",t[15])],a=!0)},p:function(c,u){512&u&&e.value!==c[9]&&ip(e,c[9])},d:function(c){c&&Be(n),a=!1,po(l)}}}function PZe(t){var n,e,i=t[1]&&rue(t);return{c:function(){i&&i.c(),n=Dr()},m:function(r,o){i&&i.m(r,o),$e(r,n,o),e=!0},p:function(r,o){var s=Jn(o,1)[0];r[1]?i?(i.p(r,s),2&s&&Q(i,1)):((i=rue(r)).c(),Q(i,1),i.m(n.parentNode,n)):i&&(Ht(),fe(i,1,1,function(){i=null}),Ut())},i:function(r){e||(Q(i),e=!0)},o:function(r){fe(i),e=!1},d:function(r){i&&i.d(r),r&&Be(n)}}}function RZe(t){t.select()}function jZe(t,n,e){var i,r,o=n.show,s=void 0!==o&&o,a=n.searching,l=n.resultCount,c=void 0===l?0:l,u=n.activeIndex,d=void 0===u?0:u,h=n.showReplace,f=void 0!==h&&h,p=n.readOnly,m=void 0!==p&&p,g=n.onChange,v=void 0===g?bo:g,y=n.onPrevious,b=void 0===y?bo:y,C=n.onNext,D=void 0===C?bo:C,E=n.onReplace,B=void 0===E?bo:E,z=n.onReplaceAll,j=void 0===z?bo:z,U=n.onClose,G=void 0===U?bo:U,X="",oe="",P="";function W(){e(0,f=!f&&!m)}function J(){m||B(X,P)}return t.$$set=function(H){"show"in H&&e(1,s=H.show),"searching"in H&&e(2,a=H.searching),"resultCount"in H&&e(16,c=H.resultCount),"activeIndex"in H&&e(3,d=H.activeIndex),"showReplace"in H&&e(0,f=H.showReplace),"readOnly"in H&&e(4,m=H.readOnly),"onChange"in H&&e(17,v=H.onChange),"onPrevious"in H&&e(5,b=H.onPrevious),"onNext"in H&&e(6,D=H.onNext),"onReplace"in H&&e(18,B=H.onReplace),"onReplaceAll"in H&&e(19,j=H.onReplaceAll),"onClose"in H&&e(7,G=H.onClose)},t.$$.update=function(){65536&t.$$.dirty&&e(10,i=c>=1e3?"".concat(999,"+"):String(c)),131072&t.$$.dirty&&e(20,r=p0(v,300)),1048832&t.$$.dirty&&r(X),2&t.$$.dirty&&s&&""!==X&&v(X)},[f,s,a,d,m,b,D,G,X,P,i,W,function(H){H.preventDefault(),X!==oe?(oe=X,r.cancel(),v(X)):D()},function(H){H.stopPropagation();var pe=gp(H);"Enter"===pe&&(H.preventDefault(),D()),"Shift+Enter"===pe&&(H.preventDefault(),b()),"Ctrl+Enter"===pe&&(H.preventDefault(),f?J():D()),"Ctrl+H"===pe&&(H.preventDefault(),W()),"Escape"===pe&&(H.preventDefault(),G())},J,function(){m||j(X,P)},c,v,B,j,r,function(){e(8,X=this.value)},function(){return D()},function(){return b()},function(){return G()},function(){e(9,P=this.value)}]}var LZe=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,jZe,PZe,Pi,{show:1,searching:2,resultCount:16,activeIndex:3,showReplace:0,readOnly:4,onChange:17,onPrevious:5,onNext:6,onReplace:18,onReplaceAll:19,onClose:7},IZe),r}return Ie(e)}(),aue=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function BZe(t,n){if(t.length!==n.length)return!1;for(var e=0;e \n
    loading...
    ',R(n,"class","jse-contents svelte-qojdc1")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function tet(t){var n,e,i,r,o,s,a,l,c,u=[iet,net],d=[];function h(f,p){return void 0===f[10]?0:1}return r=h(t),o=d[r]=u[r](t),{c:function(){n=De("label"),e=De("input"),i=rt(),o.c(),s=Dr(),R(e,"type","text"),e.readOnly="readonly",R(e,"tabindex","-1"),R(e,"class","jse-hidden-input svelte-qojdc1"),R(n,"class","jse-hidden-input-label svelte-qojdc1")},m:function(f,p){$e(f,n,p),me(n,e),t[76](e),$e(f,i,p),d[r].m(f,p),$e(f,s,p),a=!0,l||(c=Rt(e,"paste",t[34]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Ht(),fe(d[m],1,1,function(){d[m]=null}),Ut(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){fe(o),a=!1},d:function(f){f&&Be(n),t[76](null),f&&Be(i),d[r].d(f),f&&Be(s),l=!1,c()}}}function net(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p;s=new LZe({props:{show:t[19],resultCount:(null===(n=t[17])||void 0===n||null===(e=n.items)||void 0===e?void 0:e.length)||0,activeIndex:(null===(i=t[17])||void 0===i?void 0:i.activeIndex)||0,showReplace:t[20],searching:t[21],readOnly:t[0],onChange:t[26],onNext:t[27],onPrevious:t[28],onReplace:t[29],onReplaceAll:t[30],onClose:t[31]}}),c=new eZe({props:{value:t[10],path:[],expandedMap:t[16].expandedMap,enforceStringMap:t[16].enforceStringMap,visibleSectionsMap:t[16].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(r=t[17])||void 0===r?void 0:r.itemsMap,selection:t[16].selection,context:t[13],onDragSelectionStart:bo}});var m=t[18]&&yue(t),g=t[23]&&_ue(t);return f=new ZP({props:{validationErrors:t[12],selectError:t[32]}}),{c:function(){o=De("div"),gt(s.$$.fragment),a=rt(),l=De("div"),gt(c.$$.fragment),u=rt(),m&&m.c(),d=rt(),g&&g.c(),h=rt(),gt(f.$$.fragment),R(o,"class","jse-search-box-container svelte-qojdc1"),R(l,"class","jse-contents svelte-qojdc1"),R(l,"data-jsoneditor-scrollable-contents",!0)},m:function(v,y){$e(v,o,y),pt(s,o,null),$e(v,a,y),$e(v,l,y),pt(c,l,null),t[77](l),$e(v,u,y),m&&m.m(v,y),$e(v,d,y),g&&g.m(v,y),$e(v,h,y),pt(f,v,y),p=!0},p:function(v,y){var b,C,D,E,B={};524288&y[0]&&(B.show=v[19]),131072&y[0]&&(B.resultCount=(null===(b=v[17])||void 0===b||null===(C=b.items)||void 0===C?void 0:C.length)||0),131072&y[0]&&(B.activeIndex=(null===(D=v[17])||void 0===D?void 0:D.activeIndex)||0),1048576&y[0]&&(B.showReplace=v[20]),2097152&y[0]&&(B.searching=v[21]),1&y[0]&&(B.readOnly=v[0]),s.$set(B);var z={};1024&y[0]&&(z.value=v[10]),65536&y[0]&&(z.expandedMap=v[16].expandedMap),65536&y[0]&&(z.enforceStringMap=v[16].enforceStringMap),65536&y[0]&&(z.visibleSectionsMap=v[16].visibleSectionsMap),16777216&y[0]&&(z.validationErrorsMap=v[24]),131072&y[0]&&(z.searchResultItemsMap=null===(E=v[17])||void 0===E?void 0:E.itemsMap),65536&y[0]&&(z.selection=v[16].selection),8192&y[0]&&(z.context=v[13]),c.$set(z),v[18]?m?(m.p(v,y),262144&y[0]&&Q(m,1)):((m=yue(v)).c(),Q(m,1),m.m(d.parentNode,d)):m&&(Ht(),fe(m,1,1,function(){m=null}),Ut()),v[23]?g?(g.p(v,y),8388608&y[0]&&Q(g,1)):((g=_ue(v)).c(),Q(g,1),g.m(h.parentNode,h)):g&&(Ht(),fe(g,1,1,function(){g=null}),Ut());var j={};4096&y[0]&&(j.validationErrors=v[12]),f.$set(j)},i:function(v){p||(Q(s.$$.fragment,v),Q(c.$$.fragment,v),Q(m),Q(g),Q(f.$$.fragment,v),p=!0)},o:function(v){fe(s.$$.fragment,v),fe(c.$$.fragment,v),fe(m),fe(g),fe(f.$$.fragment,v),p=!1},d:function(v){v&&Be(o),mt(s),v&&Be(a),v&&Be(l),mt(c),t[77](null),v&&Be(u),m&&m.d(v),v&&Be(d),g&&g.d(v),v&&Be(h),mt(f,v)}}}function iet(t){var n,e,i,r,o=[oet,ret],s=[];function a(l,c){return""===l[11]||void 0===l[11]?0:1}return n=a(t),e=s[n]=o[n](t),{c:function(){e.c(),i=Dr()},m:function(l,c){s[n].m(l,c),$e(l,i,c),r=!0},p:function(l,c){var u=n;(n=a(l))===u?s[n].p(l,c):(Ht(),fe(s[u],1,1,function(){s[u]=null}),Ut(),(e=s[n])?e.p(l,c):(e=s[n]=o[n](l)).c(),Q(e,1),e.m(i.parentNode,i))},i:function(l){r||(Q(e),r=!0)},o:function(l){fe(e),r=!1},d:function(l){s[n].d(l),l&&Be(i)}}}function yue(t){var n,e;return n=new ad({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[18].contents)?"array":"object"," as text"),actions:[{icon:_k,text:"Paste as JSON instead",onMouseDown:t[45]},{text:"Leave as is",onClick:t[46]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(i[18].contents)?"array":"object"," as text")),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function _ue(t){var n,e;return n=new ad({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:mb,text:"Ok",onClick:t[8]},{icon:bp,text:"Repair manually instead",onClick:t[47]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.actions=i[0]?[]:[{icon:mb,text:"Ok",onClick:i[8]},{icon:bp,text:"Repair manually instead",onClick:i[47]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function ret(t){var n,e,i,r;return n=new ad({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:bp,text:"Repair manually",onClick:t[47]}]}}),i=new mue({props:{text:t[11],json:t[10],indentation:t[5],parser:t[3]}}),{c:function(){gt(n.$$.fragment),e=rt(),gt(i.$$.fragment)},m:function(o,s){pt(n,o,s),$e(o,e,s),pt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:bp,text:"Repair manually",onClick:o[47]}]),n.$set(a);var l={};2048&s[0]&&(l.text=o[11]),1024&s[0]&&(l.json=o[10]),32&s[0]&&(l.indentation=o[5]),8&s[0]&&(l.parser=o[3]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){fe(n.$$.fragment,o),fe(i.$$.fragment,o),r=!1},d:function(o){mt(n,o),o&&Be(e),mt(i,o)}}}function oet(t){var n,e;return n=new uZe({props:{readOnly:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function set(t){var n,e,i,r,o,s,a,l,c=t[1]&&gue(t),u=t[2]&&vue(t),h=[];return o=h[r=t[25]?1:0]=[tet,eet][r](t),{c:function(){n=De("div"),c&&c.c(),e=rt(),u&&u.c(),i=rt(),o.c(),R(n,"class","jse-tree-mode svelte-qojdc1"),Nt(n,"no-main-menu",!t[1])},m:function(f,p){$e(f,n,p),c&&c.m(n,null),me(n,e),u&&u.m(n,null),me(n,i),h[r].m(n,null),t[78](n),s=!0,a||(l=[Rt(QZe,"mousedown",t[49]),Rt(n,"keydown",t[41]),Rt(n,"mousedown",t[42]),Rt(n,"contextmenu",t[43])],a=!0)},p:function(f,p){f[1]?c?(c.p(f,p),2&p[0]&&Q(c,1)):((c=gue(f)).c(),Q(c,1),c.m(n,e)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut()),f[2]?u?(u.p(f,p),4&p[0]&&Q(u,1)):((u=vue(f)).c(),Q(u,1),u.m(n,i)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut()),o.p(f,p),(!s||2&p[0])&&Nt(n,"no-main-menu",!f[1])},i:function(f){s||(Q(c),Q(u),Q(o),s=!0)},o:function(f){fe(c),fe(u),fe(o),s=!1},d:function(f){f&&Be(n),c&&c.d(),u&&u.d(),h[r].d(),t[78](null),a=!1,po(l)}}}function aet(t,n,e){var i,r=Ma("jsoneditor:TreeMode"),o=typeof window>"u";r("isSSR:",o);var s,a,l,c,u,d=Aa("simple-modal").open,h=mp(),f=mp(),p=Aa("absolute-popup"),m=p.openAbsolutePopup,g=p.closeAbsolutePopup,v=!1,y=Dle(),b=n.readOnly,C=n.externalContent,D=n.mainMenuBar,E=n.navigationBar,B=n.escapeControlCharacters,z=n.escapeUnicodeCharacters,j=n.parser,U=n.parseMemoizeOne,G=n.validator,X=n.validationParser,oe=n.pathParser,P=n.indentation,W=n.onError,J=n.onChange,H=n.onChangeMode,pe=n.onRenderValue,A=n.onRenderMenu,N=n.onClassName,F=n.onFocus,q=n.onBlur,V=n.onSortModal,ce=n.onTransformModal,ve=n.onJSONEditorModal,je=!1;QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(l)},hasFocus:function(){return je&&document.hasFocus()||dk(l)},onFocus:function(){v=!0,F&&F()},onBlur:function(){v=!1,q&&q()}});var Te=void 0;function et(Me){r("updateSelection",Me);var ct="function"==typeof Me?Me(le.selection):Me;dr(ct,le.selection)||e(16,le=nt(nt({},le),{},{selection:ct}))}var We,st,$,ae=!1,le=fk(),Re=!1,Ze=!1,Ve=!1,Ct="";function Ot(Me){return yn.apply(this,arguments)}function yn(){return(yn=or(_n().mark(function Me(ct){return _n().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return r("search text updated",ct),e(74,Ct=ct),Ft.next=4,tc();case 4:return Ft.next=6,vr();case 6:case"end":return Ft.stop()}},Me)}))).apply(this,arguments)}function Xn(){return(Xn=or(_n().mark(function Me(){return _n().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return e(17,We=We?rXe(We):void 0),ct.next=3,vr();case 3:case"end":return ct.stop()}},Me)}))).apply(this,arguments)}function on(){return(on=or(_n().mark(function Me(){return _n().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return e(17,We=We?oXe(We):void 0),ct.next=3,vr();case 3:case"end":return ct.stop()}},Me)}))).apply(this,arguments)}function Ri(){return(Ri=or(_n().mark(function Me(ct,Ft){var en,an,cn,hi;return _n().wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:if(an=null===(en=We)||void 0===en?void 0:en.activeItem,r("handleReplace",{replacementText:Ft,activeItem:an}),an){yi.next=4;break}return yi.abrupt("return");case 4:return cn=sXe(c,le,Ft,an,j),hi=cn.newSelection,ni(cn.operations,function(Lo,js){return{state:nt(nt({},js),{},{selection:hi})}}),yi.next=8,tc();case 8:return yi.next=10,vr();case 10:case"end":return yi.stop()}},Me)}))).apply(this,arguments)}function hn(){return(hn=or(_n().mark(function Me(ct,Ft){var en,cn;return _n().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return r("handleReplaceAll",{text:ct,replacementText:Ft}),en=aXe(c,le,ct,Ft,j),cn=en.newSelection,ni(en.operations,function(hi,yi){return{state:nt(nt({},yi),{},{selection:cn})}}),Wn.next=5,tc();case 5:return Wn.next=7,vr();case 7:case"end":return Wn.stop()}},Me)}))).apply(this,arguments)}function vr(){return Er.apply(this,arguments)}function Er(){return(Er=or(_n().mark(function Me(){var ct,Ft,en;return _n().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(Ft=null===(ct=We)||void 0===ct?void 0:ct.activeItem,r("focusActiveSearchResult",We),!Ft){an.next=9;break}return e(16,le=nt(nt({},TP(c,le,en=Ft.path)),{},{selection:void 0})),an.next=7,tc();case 7:return an.next=9,mn(en);case 9:case"end":return an.stop()}},Me)}))).apply(this,arguments)}var Si,Xr,fr=Tle({onChange:function(Me){e(22,wr=Me)}}),wr=fr.getState(),Ro=aP(function(Me,ct){if(""===Me)return r("clearing search result"),void(void 0!==We&&e(17,We=void 0));e(21,Ve=!0),setTimeout(function(){r("searching...",Me);var an,cn,Wn,hi,yi,Lo,js,Ft=xae(Me,ct,1e3);e(17,(an=Ft,Wn=null!=(cn=We)&&cn.activeItem?Sae(cn.activeItem):void 0,hi=an.findIndex(function(Zo){return dr(Wn,Sae(Zo))}),yi=-1!==hi?hi:void 0!==cn?.activeIndex&&cn?.activeIndex0?0:-1,js=(Lo=an.map(function(Zo,Do){return nt(nt({},Zo),{},{active:Do===yi})}))[yi],We={items:Lo,itemsMap:g0(Lo,function(Zo){return dn(Zo.path)}),activeItem:js,activeIndex:yi})),e(21,Ve=!1)})},300),Rn=!1,kt=[],pi=wb(Ele);function Bi(Me,ct,Ft,en){j0(function(){var an;try{an=pi(Me,ct,Ft,en)}catch(cn){an=[{path:[],message:"Failed to validate: "+cn.message,severity:Jd.warning}]}dr(an,kt)||(r("validationErrors changed:",an),e(12,kt=an))},function(an){return r("validationErrors updated in ".concat(an," ms"))})}function Ar(){return r("validate"),Te?{parseError:Te,isRepairable:!1}:(Bi(c,G,j,X),Ji(kt)?null:{validationErrors:kt})}function ko(){return c}function Qo(){return le}function jn(Me){ae||(ae=!0,e(16,le=uu(Me,le,[],Cse({json:Me},10240)?lh:db)))}function di(Me){void 0!==le.selection&&(le.selection&&nu(Me,le.selection.anchorPath)&&nu(Me,le.selection.focusPath)||(r("clearing selection: path does not exist anymore",le.selection),e(16,le=nt(nt({},le),{},{selection:T0(Me,le)}))))}function ki(Me){var ct=Me.previousJson,Ft=Me.previousState,en=Me.previousText,an=Me.previousTextIsRepaired;void 0===ct&&void 0===en||(void 0!==c?fr.add(void 0!==ct?{undo:{patch:[{op:"replace",path:"",value:ct}],state:pl(Ft),json:void 0,text:en,textIsRepaired:an},redo:{patch:[{op:"replace",path:"",value:c}],state:pl(le),json:void 0,text:u,textIsRepaired:Rn}}:{undo:{patch:void 0,json:void 0,text:en,state:pl(Ft),textIsRepaired:an},redo:{patch:void 0,json:c,state:pl(le),text:u,textIsRepaired:Rn}}):void 0!==ct&&fr.add({undo:{patch:void 0,json:ct,state:pl(Ft),text:en,textIsRepaired:an},redo:{patch:void 0,json:void 0,text:u,textIsRepaired:Rn,state:pl(le)}}))}function Nr(Me,ct){if(r("patch",Me,ct),void 0===c)throw new Error("Cannot apply patch: no JSON");var Ft={json:c,text:u},en=c,an=le,cn=u,Wn=Rn,hi=_ae(c,Me),yi=Zse(c,le,Me),Lo=E0(c,Me),js=function(Sh,Sd){return void 0!==Sd||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?nt(nt({},Sh),{},{selection:Sd}):Sh}(yi.documentState,Lo,!1);r("patch updatedSelection",Lo);var Zo="function"==typeof ct?ct(yi.json,js):void 0;e(10,c=Zo&&void 0!==Zo.json?Zo.json:yi.json);var Do=Zo&&void 0!==Zo.state?Zo.state:js;e(16,le=Do),e(11,u=void 0),e(23,Rn=!1),e(18,$=void 0),di(c),fr.add({undo:{patch:hi,json:void 0,text:cn,state:pl(an),textIsRepaired:Wn},redo:{patch:Me,json:void 0,state:pl(Do),text:u,textIsRepaired:Rn}});var $l={json:c,previousJson:en,undo:hi,redo:Me};return ai(Ft,$l),$l}function Jr(){!b&&le.selection&&et(du(le.selection.focusPath,!0))}function co(){if(!b&&le.selection){var Me=le.selection.focusPath,ct=On(c,Me);zo(ct)?(r("openJSONEditorModal",{path:Ft=Me,value:en=ct}),je=!0,ve({content:{json:en},path:Ft,onPatch:Xr.onPatch,onClose:function(){je=!1,Rs()}})):et(br(Me,!0))}var Ft,en}function Ks(){if(!b&&nr(le.selection)){var Me=le.selection.focusPath,ct=dn(Me),Ft=On(c,Me),en=!mf(Ft,le.enforceStringMap,ct,j),an=en?String(Ft):e0(String(Ft),j);r("handleToggleEnforceString",{enforceString:en,value:Ft,updatedValue:an}),ni([{op:"replace",path:ct,value:an}],function(cn,Wn){return{state:Qse(Wn,ct,en)}})}}function Cr(){return Qs.apply(this,arguments)}function Qs(){return Qs=or(_n().mark(function Me(){var ct,Ft=arguments;return _n().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return ct=!(Ft.length>0&&void 0!==Ft[0])||Ft[0],en.next=3,uue({json:c,documentState:le,indentation:ct?P:void 0,readOnly:b,parser:j,onPatch:ni});case 3:case"end":return en.stop()}},Me)})),Qs.apply(this,arguments)}function Za(){return el.apply(this,arguments)}function el(){return el=or(_n().mark(function Me(){var ct,Ft=arguments;return _n().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(ct=!(Ft.length>0&&void 0!==Ft[0])||Ft[0],void 0!==c){en.next=3;break}return en.abrupt("return");case 3:return en.next=5,due({json:c,documentState:le,indentation:ct?P:void 0,parser:j});case 5:case"end":return en.stop()}},Me)})),el.apply(this,arguments)}function $c(){d(Lle,{},nt(nt({},Vm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Rs()}})}function Ee(Me,ct){d(Xle,{text:Me,onParse:ak,onRepair:bse,onApply:ct},nt(nt({},Vm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Rs()}})}function qe(){fue({json:c,text:u,documentState:le,keepSelection:!1,readOnly:b,onChange:J,onPatch:ni})}function Ke(){!b&&void 0!==c&&le.selection&&M0(le.selection)&&!Ji(le.selection.focusPath)&&(r("duplicate",{selection:le.selection}),ni(gae(c,hae(le.selection))))}function dt(){b||!le.selection||!Lr(le.selection)&&!nr(le.selection)||Ji(le.selection.focusPath)||(r("extract",{selection:le.selection}),ni(function(ct,Ft){if(nr(Ft))return[{op:"move",from:dn(Ft.focusPath),path:""}];if(!Lr(Ft))throw new Error("Cannot create extract operations: parent must be an Object or Array");var en=On(ct,tr(Ft.focusPath));if(ao(en))return[{op:"replace",path:"",value:Ft.paths.map(function(cn){var Wn=Ys(Bn(cn));return en[Wn]})}];if(Oo(en)){var an={};return Ft.paths.forEach(function(cn){var Wn=String(Bn(cn));an[Wn]=en[Wn]}),[{op:"replace",path:"",value:an}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Ft))}(c,le.selection),function(ct,Ft){if(zo(ct))return{state:vp(ct,Ft,[])}}))}function Ye(Me){void 0!==c&&Fk({insertType:Me,selectInside:!0,refJsonEditor:l,json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onReplaceJson:kr})}function In(Me){ws(le.selection)&&et(br(le.selection.focusPath,!1)),Ye(Me)}function li(Me){if(!b&&le.selection)if(ng(le.selection))try{var ct=le.selection.anchorPath,Ft=On(c,ct),en=function(cn,Wn,hi){if("array"===Wn){if(Array.isArray(cn))return cn;if(Io(cn))return vse(cn);if("string"==typeof cn)try{var yi=hi.parse(cn);if(Array.isArray(yi))return yi;if(Io(yi))return vse(yi)}catch{return[cn]}return[cn]}if("object"===Wn){if(Array.isArray(cn))return gse(cn);if(Io(cn))return cn;if("string"==typeof cn)try{var Lo=hi.parse(cn);if(Io(Lo))return Lo;if(Array.isArray(Lo))return gse(Lo)}catch{return{value:cn}}return{value:cn}}if("value"===Wn)return zo(cn)?hi.stringify(cn):cn;throw new Error("Cannot convert ".concat(IN(cn,hi)," to ").concat(Wn))}(Ft,Me,j);if(en===Ft)return;var an=[{op:"replace",path:dn(ct),value:en}];r("handleConvert",{selection:le.selection,path:ct,type:Me,operations:an}),ni(an,function(cn,Wn){return{state:vp(cn,Wn,le.selection.focusPath)}})}catch(cn){W(cn)}else W(new Error("Cannot convert current selection to ".concat(Me)))}function vi(){var Me=aae(c,le,!1),ct=tr(le.selection.focusPath);!Ji(Me.focusPath)&&dr(ct,tr(Me.focusPath))?et(vf(Me.focusPath)):et(gf(ct)),r("insert before",{selection:le.selection,selectionBefore:Me,parentPath:ct}),tc().then(Bl)}function gi(){var Me=Lr(le.selection)?Bn(le.selection.paths):le.selection.focusPath;r("insert after",Me),et(vf(Me)),tc().then(Bl)}function Mr(Me){return to.apply(this,arguments)}function to(){return(to=or(_n().mark(function Me(ct){return _n().wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,pue({char:ct,selectInside:!0,refJsonEditor:l,json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onReplaceJson:kr,onSelect:et});case 2:case"end":return Ft.stop()}},Me)}))).apply(this,arguments)}function xi(){if(!b&&fr.getState().canUndo){var Me=fr.undo();if(Me){var ct={json:c,text:u};e(10,c=Me.undo.patch?ed(c,Me.undo.patch):Me.undo.json),e(16,le=Me.undo.state),e(11,u=Me.undo.text),e(23,Rn=Me.undo.textIsRepaired),r("undo",{item:Me,json:c,documentState:le}),ai(ct,{json:c,previousJson:ct.json,redo:Me.undo.patch,undo:Me.redo.patch}),Rs(),le.selection&&mn(le.selection.focusPath,!1)}}}function Sr(){if(!b&&fr.getState().canRedo){var Me=fr.redo();if(Me){var ct={json:c,text:u};e(10,c=Me.redo.patch?ed(c,Me.redo.patch):Me.redo.json),e(16,le=Me.redo.state),e(11,u=Me.redo.text),e(23,Rn=Me.redo.textIsRepaired),r("redo",{item:Me,json:c,documentState:le}),ai(ct,{json:c,previousJson:ct.json,redo:Me.redo.patch,undo:Me.undo.patch}),Rs(),le.selection&&mn(le.selection.focusPath,!1)}}}function Fe(Me){var ct;b||void 0===c||(je=!0,V({id:h,json:c,rootPath:Me,onSort:(ct=or(_n().mark(function Ft(en){var an;return _n().wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:r("onSort",Me,an=en.operations),ni(an,function(Wn,hi){return{state:nt(nt({},vp(Wn,hi,Me)),{},{selection:br(Me,!1)})}});case 3:case"end":return cn.stop()}},Ft)})),function(Ft){return ct.apply(this,arguments)}),onClose:function(){je=!1,Rs()}}))}function At(){le.selection&&Fe(uae(c,le.selection))}function Gt(Me){var Ft=Me.rootPath,en=Me.onTransform,an=Me.onClose;void 0!==c&&Ft&&(je=!0,ce({id:Me.id||f,json:c,rootPath:Ft,onTransform:en?function(cn){en({operations:cn,json:c,transformedJson:ed(c,cn)})}:function(cn){r("onTransform",Ft,cn),ni(cn,function(Wn,hi){return{state:nt(nt({},vp(Wn,hi,Ft)),{},{selection:br(Ft,!1)})}})},onClose:function(){je=!1,Rs(),an&&an()}}))}function ln(){le.selection&&Gt({rootPath:uae(c,le.selection)})}function mn(Me){return ci.apply(this,arguments)}function ci(){return ci=or(_n().mark(function Me(ct){var Ft,en,an,cn,hi=arguments;return _n().wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:return Ft=!(hi.length>1&&void 0!==hi[1])||hi[1],e(16,le=TP(c,le,tr(ct))),yi.next=4,tc();case 4:if(!(en=$i(ct))){yi.next=14;break}if(r("scrollTo",{path:ct,elem:en,refContents:s}),an=s.getBoundingClientRect(),cn=en.getBoundingClientRect(),Ft){yi.next=12;break}if(!(cn.bottom>an.top&&cn.topFt.bottom-20&&y(ct,{container:s,offset:-(Ft.height-an-20),duration:0})}}function ai(Me,ct){(void 0!==Me.json||void 0!==Me?.text)&&(void 0!==u?J({text:u,json:void 0},Me,{contentErrors:Ar(),patchResult:ct}):void 0!==c&&J({text:void 0,json:c},Me,{contentErrors:Ar(),patchResult:ct}))}function ni(Me,ct){if(!b)return r("handlePatch",Me,ct),Nr(Me,ct)}function kr(Me,ct){var Ft=le,en=c,an=u,cn={json:c,text:u},Wn=Rn,hi=uu(c,le,[],lh),yi="function"==typeof ct?ct(Me,hi):void 0;e(10,c=yi&&void 0!==yi.json?yi.json:Me),e(16,le=yi&&void 0!==yi.state?yi.state:hi),e(11,u=void 0),e(23,Rn=!1),di(c),ki({previousJson:en,previousState:Ft,previousText:an,previousTextIsRepaired:Wn}),ai(cn,null)}function Fr(Me,ct){r("handleChangeText");var Ft=le,en=c,an=u,cn={json:c,text:u},Wn=Rn;try{e(10,c=U(Me)),e(16,le=uu(c,le,[],lh)),e(11,u=void 0),e(23,Rn=!1)}catch{try{e(10,c=U(Kd(Me))),e(16,le=uu(c,le,[],lh)),e(11,u=Me),e(23,Rn=!0)}catch{e(10,c=void 0),e(16,le=fk({json:c,expand:lh})),e(11,u=Me),e(23,Rn=!1)}}if("function"==typeof ct){var hi=ct(c,le);e(10,c=hi&&hi.json?hi.json:c),e(16,le=hi&&hi.state?hi.state:le)}di(c),ki({previousJson:en,previousState:Ft,previousText:an,previousTextIsRepaired:Wn}),ai(cn,null)}function jo(Me,ct){var Ft=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:Me,expanded:ct,recursive:Ft}),e(16,le=ct?Ft?uu(c,le,Me,db):function XYe(t,n){return nt(nt({},t),{},{expandedMap:nt(nt({},t.expandedMap),{},ec({},dn(n),!0))})}(le,Me):Kse(le,Me)),le.selection&&!ct&&function KYe(t,n){return A0(t.focusPath,n)&&(t.focusPath.length>n.length||Js(t))}(le.selection,Me)&&et(void 0),setTimeout(function(){dk(l)||Rs()})}function ba(Me){r("openFind",{findAndReplace:Me}),e(19,Re=!1),e(20,Ze=!1),tc().then(function(){e(19,Re=!0),e(20,Ze=Me)})}function bd(Me,ct){r("handleExpandSection",Me,ct);var an,cn,Wn,Ft=dn(Me);e(16,(cn=Ft,Wn=ct,le=nt(nt({},an=le),{},{visibleSectionsMap:nt(nt({},an.visibleSectionsMap),{},ec({},cn,Jse(pk(an,cn).concat(Wn))))})))}function bu(Me){r("pasted json as text",Me),e(18,$=Me)}function xa(Me){je=!0;var Lo=m(aQe,{json:c,documentState:le,parser:j,showTip:Me.showTip,onEditKey:Jr,onEditValue:co,onToggleEnforceString:Ks,onCut:Cr,onCopy:Za,onPaste:$c,onRemove:qe,onDuplicate:Ke,onExtract:dt,onInsertBefore:vi,onInsert:In,onConvert:li,onInsertAfter:gi,onSort:At,onTransform:ln,onCloseContextMenu:function(){g(Lo),Rs()}},{left:Me.left,top:Me.top,offsetTop:Me.offsetTop,offsetLeft:Me.offsetLeft,width:Me.width,height:Me.height,anchor:Me.anchor,closeOnOuterClick:!0,onClose:function(){je=!1,Rs()}})}function Bl(Me){if(!b&&!yp(le.selection)){if(Me&&(Me.stopPropagation(),Me.preventDefault()),Me&&"contextmenu"===Me.type&&Me.target!==a)xa({left:Me.clientX,top:Me.clientY,width:260,height:336,showTip:!1});else{var ct,Ft=null===(ct=s)||void 0===ct?void 0:ct.querySelector(".jse-context-menu-pointer.jse-selected");if(Ft)xa({anchor:Ft,offsetTop:2,width:260,height:336,showTip:!1});else{var en,an=null===(en=s)||void 0===en?void 0:en.getBoundingClientRect();an&&xa({top:an.top+2,left:an.left+2,width:260,height:336,showTip:!1})}}return!1}}function xd(){return(xd=or(_n().mark(function Me(){var ct,Ft,en;return _n().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return r("apply pasted json",$),Ft=(ct=$).path,en=ct.contents,et(br(Ft,!1)),an.next=5,tc();case 5:ni([{op:"replace",path:dn(Ft),value:en}],function(cn,Wn){return{state:vp(cn,Wn,Ft)}});case 7:case"end":return an.stop()}},Me)}))).apply(this,arguments)}function Rs(){r("focus"),a&&(a.focus(),a.select())}function wd(Me){return ct=c,Ft=le,an=tr(en=Me),cn=[Bn(en)],(hi=(Wn=On(ct,an))?NP(Wn,Ft,cn):void 0)?br(an.concat(hi),!1):vf(en);var ct,Ft,en,an,cn,Wn,hi}function Cd(Me){i&&i.onDrag(Me)}function TT(){i&&i.onDragEnd()}return t.$$set=function(Me){"readOnly"in Me&&e(0,b=Me.readOnly),"externalContent"in Me&&e(50,C=Me.externalContent),"mainMenuBar"in Me&&e(1,D=Me.mainMenuBar),"navigationBar"in Me&&e(2,E=Me.navigationBar),"escapeControlCharacters"in Me&&e(51,B=Me.escapeControlCharacters),"escapeUnicodeCharacters"in Me&&e(52,z=Me.escapeUnicodeCharacters),"parser"in Me&&e(3,j=Me.parser),"parseMemoizeOne"in Me&&e(53,U=Me.parseMemoizeOne),"validator"in Me&&e(54,G=Me.validator),"validationParser"in Me&&e(55,X=Me.validationParser),"pathParser"in Me&&e(4,oe=Me.pathParser),"indentation"in Me&&e(5,P=Me.indentation),"onError"in Me&&e(6,W=Me.onError),"onChange"in Me&&e(56,J=Me.onChange),"onChangeMode"in Me&&e(57,H=Me.onChangeMode),"onRenderValue"in Me&&e(58,pe=Me.onRenderValue),"onRenderMenu"in Me&&e(7,A=Me.onRenderMenu),"onClassName"in Me&&e(59,N=Me.onClassName),"onFocus"in Me&&e(60,F=Me.onFocus),"onBlur"in Me&&e(61,q=Me.onBlur),"onSortModal"in Me&&e(62,V=Me.onSortModal),"onTransformModal"in Me&&e(63,ce=Me.onTransformModal),"onJSONEditorModal"in Me&&e(64,ve=Me.onJSONEditorModal)},t.$$.update=function(){var Me,ct;3145728&t.$$.dirty[1]&&e(73,st=yP({escapeControlCharacters:B,escapeUnicodeCharacters:z})),524288&t.$$.dirty[1]&&function vt(Me){void 0!==Me.json&&function(ct){if(void 0!==ct){var Ft=!dr(c,ct);if(r("update external json",{isChanged:Ft,currentlyText:void 0===c}),Ft){var en={json:c,text:u},an=le,cn=c,Wn=u,hi=Rn;e(10,c=ct),jn(c),e(11,u=void 0),e(23,Rn=!1),di(c),ki({previousJson:cn,previousState:an,previousText:Wn,previousTextIsRepaired:hi}),ai(en,null)}}}(Me.json),void 0!==Me.text&&function(ct){if(void 0!==ct&&void 0===C.json){var Ft=ct!==u;if(r("update external text",{isChanged:Ft}),Ft){var en={json:c,text:u},an=c,cn=le,Wn=u,hi=Rn;try{e(10,c=U(ct)),jn(c),e(11,u=ct),e(23,Rn=!1),Te=void 0}catch(yi){try{e(10,c=U(Kd(ct))),jn(c),e(11,u=ct),e(23,Rn=!0),Te=void 0,di(c)}catch{e(10,c=void 0),e(11,u=C.text),e(23,Rn=!1),Te=lk(u,yi.message||yi.toString())}}di(c),ki({previousJson:an,previousState:cn,previousText:Wn,previousTextIsRepaired:hi}),ai(en,null)}}}(Me.text)}(C),1024&t.$$.dirty[0]|4096&t.$$.dirty[2]&&Ro(Ct,c),1032&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&Bi(c,G,j,X),4096&t.$$.dirty[0]&&e(24,(ct={},(Me=kt).forEach(function(Ft){ct[dn(Ft.path)]=Ft}),Me.forEach(function(Ft){for(var en=Ft.path;en.length>0;){var an=dn(en=tr(en));an in ct||(ct[an]={isChildError:!0,path:en,message:"Contains invalid data",severity:Jd.warning})}}),Si=ct)),512&t.$$.dirty[0]&&(i=s?function(Me){var ct,Ft;function en(hi){return hi<20?200:hi<50?400:1200}function an(){Me&&(Me.scrollTop+=.05*(ct||0))}function cn(hi){Ft&&hi===ct||(Wn(),KP("startAutoScroll",hi),ct=hi,Ft=setInterval(an,50))}function Wn(){Ft&&(KP("stopAutoScroll"),clearInterval(Ft),Ft=void 0,ct=void 0)}return KP("createAutoScrollHandler",Me),{onDrag:function(hi){if(Me){var yi=hi.clientY,Lo=Me.getBoundingClientRect(),js=Lo.top,Zo=Lo.bottom;yiZo?cn(en(yi-Zo)):Wn()}},onDragEnd:function(){Wn()}}}(s):void 0),9&t.$$.dirty[0]|402653184&t.$$.dirty[1]|2048&t.$$.dirty[2]&&e(13,Xr={readOnly:b,parser:j,normalization:st,getJson:ko,getDocumentState:Qo,findElement:$i,findNextInside:wd,focus:Rs,onPatch:ni,onInsert:Ye,onExpand:jo,onSelect:et,onFind:ba,onExpandSection:bd,onPasteJson:bu,onRenderValue:pe,onContextMenu:xa,onClassName:N||function(){},onDrag:Cd,onDragEnd:TT}),8192&t.$$.dirty[0]&&r("context changed",Xr)},[b,D,E,j,oe,P,W,A,function(){return Rn&&void 0!==c&&kr(c),{json:c,text:u}},s,c,u,kt,Xr,a,l,le,We,$,Re,Ze,Ve,wr,Rn,Si,o,Ot,function(){return Xn.apply(this,arguments)},function(){return on.apply(this,arguments)},function(Me,ct){return Ri.apply(this,arguments)},function(Me,ct){return hn.apply(this,arguments)},function(){e(19,Re=!1),e(20,Ze=!1),Ot(""),Rs()},function(Me){r("select validation error",Me),et(br(Me.path,!1)),mn(Me.path)},Za,function(Me){Me.preventDefault(),hue({clipboardText:Me.clipboardData.getData("text/plain"),json:c,documentState:le,readOnly:b,parser:j,onPatch:ni,onChangeText:Fr,openRepairModal:Ee})},xi,Sr,function(){Fe([])},function(){Gt({rootPath:[]})},function(){jo([],!0,!0)},function(){jo([],!1,!0)},function(Me){var ct=gp(Me),Ft=Me.shiftKey;if(r("keydown",{combo:ct,key:Me.key}),"Ctrl+X"===ct&&(Me.preventDefault(),Cr(!0)),"Ctrl+Shift+X"===ct&&(Me.preventDefault(),Cr(!1)),"Ctrl+C"===ct&&(Me.preventDefault(),Za(!0)),"Ctrl+Shift+C"===ct&&(Me.preventDefault(),Za(!1)),"Ctrl+D"===ct&&(Me.preventDefault(),Ke()),"Delete"!==ct&&"Backspace"!==ct||(Me.preventDefault(),qe()),"Insert"===ct&&(Me.preventDefault(),Ye("structure")),"Ctrl+A"===ct&&(Me.preventDefault(),et(br([],!1))),"Ctrl+Q"===ct&&Bl(Me),"ArrowUp"===ct||"Shift+ArrowUp"===ct){Me.preventDefault();var en=le.selection?aae(c,le,Ft,!0)||le.selection:T0(c,le);et(en),Gn(en.focusPath)}if("ArrowDown"===ct||"Shift+ArrowDown"===ct){Me.preventDefault();var an=le.selection?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!Lr(Pr)?Pr.focusPath:Bn(Pr.paths),xu=NP(Do,$l,lc),kd=xu,kh=xu;if(null===xu||null==kd||null==kh)return null;if(Sh){var Dd=NP(Do,zo(On(Do,lc))?Kse($l,lc):$l,lc);return null===Dd?null:rd(Pr)?Fs(Do,Dd,Dd):Js(Pr)?Fs(Do,kd,kh):Fs(Do,Pr.anchorPath,Dd)}if(ws(Pr)){var hx=On(Do,tr(xu));return Array.isArray(hx)?br(kh,!1):du(kh,!1)}return nr(Pr)?br(kh,!1):Js(Pr)?Fs(Do,kd,kh):Fs(Do,xu,xu)}(c,le,Ft,!0)||le.selection:T0(c,le);et(an),Gn(an.focusPath)}if("ArrowLeft"===ct||"Shift+ArrowLeft"===ct){Me.preventDefault();var cn=le.selection?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=lae(Do,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),xu=lc.caret,kd=lc.previous;if(Sh)return Lr(Pr)?null:Fs(Do,Pr.anchorPath,Pr.focusPath);if(xu&&kd)return FP(kd);var Dd=On(Do,tr(Pr.focusPath));return nr(Pr)&&Array.isArray(Dd)?Fs(Do,Pr.focusPath,Pr.focusPath):Lr(Pr)&&!Array.isArray(Dd)?du(Pr.focusPath,!1):null}(c,le,Ft,!b)||le.selection:T0(c,le);et(cn),Gn(cn.focusPath)}if("ArrowRight"===ct||"Shift+ArrowRight"===ct){Me.preventDefault();var Wn=le.selection&&void 0!==c?function(Do,$l){var Sh=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pr=$l.selection;if(!Pr)return null;var lc=lae(Do,$l,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),xu=lc.caret,kd=lc.next;return Sh?Lr(Pr)?null:Fs(Do,Pr.anchorPath,Pr.focusPath):xu&&kd?FP(kd):Lr(Pr)?br(Pr.focusPath,!1):null}(c,le,Ft,!b)||le.selection:T0(c,le);et(Wn),Gn(Wn.focusPath)}if("Enter"===ct&&le.selection){if(!b&&Lr(le.selection)&&1===le.selection.paths.length){var hi=le.selection.focusPath,yi=On(c,tr(hi));Array.isArray(yi)&&et(br(hi,!1))}!b&&ws(le.selection)&&(Me.preventDefault(),et(nt(nt({},le.selection),{},{edit:!0}))),nr(le.selection)&&(Me.preventDefault(),zo(On(c,le.selection.focusPath))?jo(le.selection.focusPath,!0):b||et(nt(nt({},le.selection),{},{edit:!0})))}if(1===ct.replace(/^Shift\+/,"").length&&le.selection)return Me.preventDefault(),void Mr(Me.key);if("Enter"===ct&&(rd(le.selection)||Js(le.selection)))return Me.preventDefault(),void Mr("");if("Ctrl+Enter"===ct&&nr(le.selection)){var Lo=On(c,le.selection.focusPath);vS(Lo)&&window.open(String(Lo),"_blank")}if("Escape"===ct&&le.selection&&(Me.preventDefault(),et(void 0)),"Ctrl+F"===ct&&(Me.preventDefault(),ba(!1)),"Ctrl+H"===ct&&(Me.preventDefault(),ba(!0)),"Ctrl+Z"===ct){Me.preventDefault();var js=document.activeElement;js&&js.blur&&js.focus?(js.blur(),setTimeout(function(){xi(),setTimeout(function(){return js.select()})})):xi()}if("Ctrl+Shift+Z"===ct){Me.preventDefault();var Zo=document.activeElement;Zo&&Zo.blur&&Zo.focus?(Zo.blur(),setTimeout(function(){Sr(),setTimeout(function(){return Zo.select()})})):Sr()}},function(Me){r("handleMouseDown",Me),setTimeout(function(){setTimeout(function(){v||Ise(Me.target,"BUTTON")||(Rs(),le.selection||void 0!==c||""!==u&&void 0!==u||(r("createDefaultSelection"),e(16,le=nt(nt({},le),{},{selection:Fs(c||{},[],[])}))))})})},Bl,function(Me){b||xa({anchor:Fse(Me.target,"BUTTON"),offsetTop:0,width:260,height:336,showTip:!0})},function(){return xd.apply(this,arguments)},function(){r("clear pasted json"),e(18,$=void 0)},function(){H(Uo.text)},function(Me){et(Me),Rs(),mn(Me.focusPath)},function(Me){!ob(Me.target,function(Ft){return Ft===l})&&yp(le.selection)&&(r("click outside the editor, stop edit mode"),et(function(Ft){return ws(Ft)||nr(Ft)?nt(nt({},Ft),{},{edit:!1}):Ft}),v&&a&&(a.focus(),a.blur()),tc().then(function(){setTimeout(function(){a&&a.blur()})}))},C,B,z,U,G,X,J,H,pe,N,F,q,V,ce,ve,function(){var Me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:db;r("expand");var ct=nt(nt({},le),{},{expandedMap:{},visibleSectionsMap:{}});e(16,le=uu(c,ct,[],Me))},Ar,ko,Nr,Gt,mn,$i,Rs,st,Ct,function(Me){e(19,Re=Me)},function(Me){Xi[Me?"unshift":"push"](function(){e(14,a=Me)})},function(Me){Xi[Me?"unshift":"push"](function(){e(9,s=Me)})},function(Me){Xi[Me?"unshift":"push"](function(){e(15,l=Me)})}]}var m4=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,aet,set,Pi,{readOnly:0,externalContent:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onRenderValue:58,onRenderMenu:7,onClassName:59,onFocus:60,onBlur:61,onSortModal:62,onTransformModal:63,onJSONEditorModal:64,expand:65,validate:66,getJson:67,patch:68,acceptAutoRepair:8,openTransformModal:69,scrollTo:70,findElement:71,focus:72},ZZe,[-1,-1,-1,-1,-1]),r}return Ie(e,[{key:"expand",get:function(){return this.$$.ctx[65]}},{key:"validate",get:function(){return this.$$.ctx[66]}},{key:"getJson",get:function(){return this.$$.ctx[67]}},{key:"patch",get:function(){return this.$$.ctx[68]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[69]}},{key:"scrollTo",get:function(){return this.$$.ctx[70]}},{key:"findElement",get:function(){return this.$$.ctx[71]}},{key:"focus",get:function(){return this.$$.ctx[72]}}]),e}();function cet(t){_i(t,"svelte-107mggt",".jse-modal.svelte-107mggt.svelte-107mggt{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-107mggt .jse-modal-contents.svelte-107mggt{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-107mggt .jse-modal-contents .jse-actions button.jse-primary.svelte-107mggt:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex:1;display:flex;gap:calc(2 * var(--jse-padding));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding)) var(--jse-padding)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p{margin:var(--jse-padding) 0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-107mggt code{background:var(--jse-modal-code-background);font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono)}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-107mggt{flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-107mggt{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-107mggt{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-actions.svelte-107mggt{padding:var(--jse-padding) calc(2 * var(--jse-padding)) calc(2 * var(--jse-padding))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents.svelte-107mggt{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-107mggt{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-107mggt .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-107mggt .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-107mggt .jse-label.svelte-107mggt{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner.svelte-107mggt{margin-top:calc(2 * var(--jse-padding));margin-bottom:calc(0.5 * var(--jse-padding));box-sizing:border-box}.jse-modal.jse-transform.svelte-107mggt .jse-label .jse-label-inner button.svelte-107mggt{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-107mggt .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt{border:var(--jse-input-border);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding));font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:inherit;background:var(--jse-input-background)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:focus,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:focus{border:var(--jse-input-border-focus)}.jse-modal.jse-transform.svelte-107mggt input.svelte-107mggt:read-only,.jse-modal.jse-transform.svelte-107mggt textarea.svelte-107mggt:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-transform.svelte-107mggt .jse-preview.jse-error.svelte-107mggt{flex:1;background:var(--jse-input-background-readonly);border:var(--jse-input-border);color:var(--jse-error-color);padding:calc(0.5 * var(--jse-padding))}.jse-modal.jse-transform.svelte-107mggt a{color:var(--jse-a-color)}.jse-modal.jse-transform.svelte-107mggt a:hover{color:var(--jse-a-color-highlight)}")}function bue(t){var n,e,i,r,o,s=[det,uet],a=[];function l(c,u){return 16384&u[0]&&(n=null),null==n&&(n=!!Array.isArray(c[14])),n?0:1}return e=l(t,[-1,-1]),i=a[e]=s[e](t),{c:function(){i.c(),r=Dr()},m:function(c,u){a[e].m(c,u),$e(c,r,u),o=!0},p:function(c,u){var d=e;(e=l(c,u))===d?a[e].p(c,u):(Ht(),fe(a[d],1,1,function(){a[d]=null}),Ut(),(i=a[e])?i.p(c,u):(i=a[e]=s[e](c)).c(),Q(i,1),i.m(r.parentNode,r))},i:function(c){o||(Q(i),o=!0)},o:function(c){fe(i),o=!1},d:function(c){a[e].d(c),c&&Be(r)}}}function uet(t){var n;return{c:function(){n=sn("(Only available for arrays, not for objects)")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function det(t){var n,e;return n=new PJe({props:{queryOptions:t[12],json:t[14],onChange:t[22]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};4096&r[0]&&(o.queryOptions=i[12]),16384&r[0]&&(o.json=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function xue(t){var n,e;return n=new m4({props:{externalContent:t[19],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:bo,onError:console.error,onChange:bo,onChangeMode:bo,onFocus:bo,onBlur:bo,onSortModal:bo,onTransformModal:bo,onJSONEditorModal:bo,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};524288&r[0]&&(o.externalContent=i[19]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function het(t){var n,e;return{c:function(){n=De("div"),e=sn(t[17]),R(n,"class","jse-preview jse-error svelte-107mggt")},m:function(i,r){$e(i,n,r),me(n,e)},p:function(i,r){131072&r[0]&&ti(e,i[17])},i:Bt,o:Bt,d:function(i){i&&Be(n)}}}function fet(t){var n,e;return n=new m4({props:{externalContent:t[18],readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:bo,onError:console.error,onChange:bo,onChangeMode:bo,onFocus:bo,onBlur:bo,onSortModal:bo,onTransformModal:bo,onJSONEditorModal:bo,onClassName:t[11],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};262144&r[0]&&(o.externalContent=i[18]),4&r[0]&&(o.indentation=i[2]),8&r[0]&&(o.escapeControlCharacters=i[3]),16&r[0]&&(o.escapeUnicodeCharacters=i[4]),32&r[0]&&(o.parser=i[5]),64&r[0]&&(o.parseMemoizeOne=i[6]),1024&r[0]&&(o.onRenderValue=i[10]),2048&r[0]&&(o.onClassName=i[11]),128&r[0]&&(o.validationParser=i[7]),256&r[0]&&(o.pathParser=i[8]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function pet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J,H,pe,A,N,F,q,V,ce,ve,je,Te,et,We,st,$,ae=t[21](t[0]).description+"";n=new GJe({props:{queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[27]}}),y=new hr({props:{data:t[15]?hu:_p}});var le=t[15]&&bue(t);W=new hr({props:{data:t[16]?hu:_p}});var Re=t[16]&&xue(t),Ze=[fet,het],Ve=[];function Ct(Ot,yn){return Ot[17]?1:0}return q=Ct(t),V=Ve[q]=Ze[q](t),{c:function(){gt(n.$$.fragment),e=rt(),i=De("div"),r=De("div"),o=De("div"),(s=De("div")).innerHTML='
    Language
    ',a=rt(),l=De("div"),c=rt(),(u=De("div")).innerHTML='
    Path
    ',d=rt(),h=De("input"),p=rt(),m=De("div"),g=De("div"),v=De("button"),gt(y.$$.fragment),b=sn("\n Wizard"),C=rt(),le&&le.c(),D=rt(),(E=De("div")).innerHTML='
    Query
    ',B=rt(),z=De("textarea"),j=rt(),U=De("div"),G=De("div"),X=De("div"),oe=De("div"),P=De("button"),gt(W.$$.fragment),J=sn("\n Original"),H=rt(),Re&&Re.c(),pe=rt(),A=De("div"),(N=De("div")).innerHTML='
    Preview
    ',F=rt(),V.c(),ce=rt(),ve=De("div"),je=De("button"),Te=sn("Transform"),R(s,"class","jse-label svelte-107mggt"),R(l,"class","jse-description svelte-107mggt"),R(u,"class","jse-label svelte-107mggt"),R(h,"class","jse-path svelte-107mggt"),R(h,"type","text"),h.readOnly=!0,R(h,"title","Selected path"),h.value=f=Ji(t[1])?"(whole document)":cu(rc(t[1])),R(v,"type","button"),R(v,"class","svelte-107mggt"),R(g,"class","jse-label-inner svelte-107mggt"),R(m,"class","jse-label svelte-107mggt"),R(E,"class","jse-label svelte-107mggt"),R(z,"class","jse-query svelte-107mggt"),R(z,"spellcheck","false"),z.value=t[13],R(o,"class","jse-query-contents svelte-107mggt"),R(P,"type","button"),R(P,"class","svelte-107mggt"),R(oe,"class","jse-label-inner svelte-107mggt"),R(X,"class","jse-label svelte-107mggt"),R(G,"class","jse-original-data svelte-107mggt"),Nt(G,"jse-hide",!t[16]),R(N,"class","jse-label svelte-107mggt"),R(A,"class","jse-preview-data svelte-107mggt"),R(U,"class","jse-data-contents svelte-107mggt"),Nt(U,"jse-hide-original-data",!t[16]),R(r,"class","jse-main-contents svelte-107mggt"),R(je,"type","button"),R(je,"class","jse-primary svelte-107mggt"),je.disabled=et=!!t[17],R(ve,"class","jse-actions svelte-107mggt"),R(i,"class","jse-modal-contents svelte-107mggt")},m:function(Ot,yn){pt(n,Ot,yn),$e(Ot,e,yn),$e(Ot,i,yn),me(i,r),me(r,o),me(o,s),me(o,a),me(o,l),l.innerHTML=ae,me(o,c),me(o,u),me(o,d),me(o,h),me(o,p),me(o,m),me(m,g),me(g,v),pt(y,v,null),me(v,b),me(o,C),le&&le.m(o,null),me(o,D),me(o,E),me(o,B),me(o,z),me(r,j),me(r,U),me(U,G),me(G,X),me(X,oe),me(oe,P),pt(W,P,null),me(P,J),me(G,H),Re&&Re.m(G,null),me(U,pe),me(U,A),me(A,N),me(A,F),Ve[q].m(A,null),me(i,ce),me(i,ve),me(ve,je),me(je,Te),We=!0,st||($=[Rt(v,"click",t[25]),Rt(z,"input",t[23]),Rt(P,"click",t[26]),Rt(je,"click",t[24]),Ea(get.call(null,je))],st=!0)},p:function(Ot,yn){var Xn={};512&yn[0]&&(Xn.queryLanguages=Ot[9]),1&yn[0]&&(Xn.queryLanguageId=Ot[0]),n.$set(Xn),(!We||1&yn[0])&&ae!==(ae=Ot[21](Ot[0]).description+"")&&(l.innerHTML=ae),(!We||2&yn[0]&&f!==(f=Ji(Ot[1])?"(whole document)":cu(rc(Ot[1])))&&h.value!==f)&&(h.value=f);var on={};32768&yn[0]&&(on.data=Ot[15]?hu:_p),y.$set(on),Ot[15]?le?(le.p(Ot,yn),32768&yn[0]&&Q(le,1)):((le=bue(Ot)).c(),Q(le,1),le.m(o,D)):le&&(Ht(),fe(le,1,1,function(){le=null}),Ut()),(!We||8192&yn[0])&&(z.value=Ot[13]);var Ri={};65536&yn[0]&&(Ri.data=Ot[16]?hu:_p),W.$set(Ri),Ot[16]?Re?(Re.p(Ot,yn),65536&yn[0]&&Q(Re,1)):((Re=xue(Ot)).c(),Q(Re,1),Re.m(G,null)):Re&&(Ht(),fe(Re,1,1,function(){Re=null}),Ut()),(!We||65536&yn[0])&&Nt(G,"jse-hide",!Ot[16]);var hn=q;(q=Ct(Ot))===hn?Ve[q].p(Ot,yn):(Ht(),fe(Ve[hn],1,1,function(){Ve[hn]=null}),Ut(),(V=Ve[q])?V.p(Ot,yn):(V=Ve[q]=Ze[q](Ot)).c(),Q(V,1),V.m(A,null)),(!We||65536&yn[0])&&Nt(U,"jse-hide-original-data",!Ot[16]),(!We||131072&yn[0]&&et!==(et=!!Ot[17]))&&(je.disabled=et)},i:function(Ot){We||(Q(n.$$.fragment,Ot),Q(y.$$.fragment,Ot),Q(le),Q(W.$$.fragment,Ot),Q(Re),Q(V),We=!0)},o:function(Ot){fe(n.$$.fragment,Ot),fe(y.$$.fragment,Ot),fe(le),fe(W.$$.fragment,Ot),fe(Re),fe(V),We=!1},d:function(Ot){mt(n,Ot),Ot&&Be(e),Ot&&Be(i),mt(y),le&&le.d(),mt(W),Re&&Re.d(),Ve[q].d(),st=!1,po($)}}}function met(t){var n,e,i,r,o;return e=new $se({props:{$$slots:{default:[pet]},$$scope:{ctx:t}}}),{c:function(){n=De("div"),gt(e.$$.fragment),R(n,"class","jse-modal jse-transform svelte-107mggt")},m:function(s,a){$e(s,n,a),pt(e,n,null),i=!0,r||(o=Ea(Nk.call(null,n,t[20])),r=!0)},p:function(s,a){var l={};1048575&a[0]|256&a[1]&&(l.$$scope={dirty:a,ctx:s}),e.$set(l)},i:function(s){i||(Q(e.$$.fragment,s),i=!0)},o:function(s){fe(e.$$.fragment,s),i=!1},d:function(s){s&&Be(n),mt(e),r=!1,o()}}}function get(t){t.focus()}function vet(t,n,e){var i,r,o=Ma("jsoneditor:TransformModal"),s=n.id,a=void 0===s?"transform-modal-"+R_():s,l=n.json,c=n.rootPath,u=void 0===c?[]:c,d=n.indentation,h=n.escapeControlCharacters,f=n.escapeUnicodeCharacters,p=n.parser,m=n.parseMemoizeOne,g=n.validationParser,v=n.pathParser,y=n.queryLanguages,b=n.queryLanguageId,C=n.onChangeQueryLanguage,D=n.onRenderValue,E=n.onClassName,B=n.onTransform,z=Aa("simple-modal").close,j="".concat(a,":").concat(dn(u)),U=od[j]||{},G=!1!==od.showWizard,X=!1!==od.showOriginal,oe=U.queryOptions||{},P=b===U.queryLanguageId&&U.query?U.query:pe(b).createQuery(l,U.queryOptions||{}),W=U.isManual||!1,J=void 0,H={text:""};function pe(N){return y.find(function(F){return F.id===N})||y[0]}var A=p0(function(N,F){try{o("previewTransform",{query:F});var q=pe(b).executeQuery(N,F,p);e(18,H={json:q}),e(17,J=void 0)}catch(V){e(18,H={text:""}),e(17,J=V.toString())}},300);return t.$$set=function(N){"id"in N&&e(28,a=N.id),"json"in N&&e(29,l=N.json),"rootPath"in N&&e(1,u=N.rootPath),"indentation"in N&&e(2,d=N.indentation),"escapeControlCharacters"in N&&e(3,h=N.escapeControlCharacters),"escapeUnicodeCharacters"in N&&e(4,f=N.escapeUnicodeCharacters),"parser"in N&&e(5,p=N.parser),"parseMemoizeOne"in N&&e(6,m=N.parseMemoizeOne),"validationParser"in N&&e(7,g=N.validationParser),"pathParser"in N&&e(8,v=N.pathParser),"queryLanguages"in N&&e(9,y=N.queryLanguages),"queryLanguageId"in N&&e(0,b=N.queryLanguageId),"onChangeQueryLanguage"in N&&e(30,C=N.onChangeQueryLanguage),"onRenderValue"in N&&e(10,D=N.onRenderValue),"onClassName"in N&&e(11,E=N.onClassName),"onTransform"in N&&e(31,B=N.onTransform)},t.$$.update=function(){536870914&t.$$.dirty[0]&&e(14,i=On(l,u)),16384&t.$$.dirty[0]&&e(19,r={json:i}),24576&t.$$.dirty[0]&&A(i,P),12289&t.$$.dirty[0]|6&t.$$.dirty[1]&&(e(32,od[j]={queryOptions:oe,query:P,queryLanguageId:b,isManual:W},od),o("store state in memory",j,od[j]))},[b,u,d,h,f,p,m,g,v,y,D,E,oe,P,i,G,X,J,H,r,z,pe,function(N){e(12,oe=N),e(13,P=pe(b).createQuery(l,N)),e(33,W=!1),o("updateQueryByWizard",{queryOptions:oe,query:P,isManual:W})},function(N){e(13,P=N.target.value),e(33,W=!0),o("handleChangeQuery",{query:P,isManual:W})},function(){try{o("handleTransform",{query:P});var N=pe(b).executeQuery(i,P,p);B([{op:"replace",path:dn(u),value:N}]),z()}catch(F){console.error(F),e(18,H={text:""}),e(17,J=F.toString())}},function(){e(15,G=!G),e(32,od.showWizard=G,od)},function(){e(16,X=!X),e(32,od.showOriginal=X,od)},function(N){o("handleChangeQueryLanguage",N),e(0,b=N),C(N);var F=pe(b);e(13,P=F.createQuery(l,oe)),e(33,W=!1)},a,l,C,B,od,W]}var yet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,vet,met,Pi,{id:28,json:29,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:30,onRenderValue:10,onClassName:11,onTransform:31},cet,[-1,-1]),r}return Ie(e)}(),kp={};function _et(t){_i(t,"svelte-1y818v2",".jse-modal.svelte-1y818v2.svelte-1y818v2{--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px;flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;background:var(--jse-modal-background);color:var(--jse-text-color)}.jse-modal.svelte-1y818v2 .jse-modal-contents.svelte-1y818v2{padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions.svelte-1y818v2{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:hover{background:var(--jse-button-primary-background-highlight)}.jse-modal.svelte-1y818v2 .jse-modal-contents .jse-actions button.jse-primary.svelte-1y818v2:disabled{background:var(--jse-button-primary-background-disabled)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-modal-overlay-background)}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-content{flex:1;display:flex;max-height:calc(100vh - 6rem);padding:0}.jse-modal.jse-sort.svelte-1y818v2 table.svelte-1y818v2{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding)}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border);border-radius:var(--jse-input-radius);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-1y818v2 table th input.jse-path.svelte-1y818v2:read-only,.jse-modal.jse-sort.svelte-1y818v2 table td input.jse-path.svelte-1y818v2:read-only{background:var(--jse-input-background-readonly)}.jse-modal.jse-sort.svelte-1y818v2 table th.svelte-1y818v2 .svelte-select input,.jse-modal.jse-sort.svelte-1y818v2 table td.svelte-1y818v2 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-1y818v2 .jse-space.svelte-1y818v2{height:200px}.jse-modal.jse-sort.svelte-1y818v2 .jse-space .jse-error.svelte-1y818v2{color:var(--jse-error-color)}")}function wue(t){var n,e,i,r,o,s,a;function l(u){t[14](u)}var c={showChevron:!0,items:t[3]};return void 0!==t[1]&&(c.value=t[1]),o=new ag({props:c}),Xi.push(function(){return Xu(o,"value",l)}),{c:function(){n=De("tr"),(e=De("th")).textContent="Property",i=rt(),r=De("td"),gt(o.$$.fragment),R(e,"class","svelte-1y818v2"),R(r,"class","svelte-1y818v2")},m:function(u,d){$e(u,n,d),me(n,e),me(n,i),me(n,r),pt(o,r,null),a=!0},p:function(u,d){var h={};8&d&&(h.items=u[3]),!s&&2&d&&(s=!0,h.value=u[1],Yu(function(){return s=!1})),o.$set(h)},i:function(u){a||(Q(o.$$.fragment,u),a=!0)},o:function(u){fe(o.$$.fragment,u),a=!1},d:function(u){u&&Be(n),mt(o)}}}function Cue(t){var n,e;return{c:function(){n=De("div"),e=sn(t[5]),R(n,"class","jse-error svelte-1y818v2")},m:function(i,r){$e(i,n,r),me(n,e)},p:function(i,r){32&r&&ti(e,i[5])},d:function(i){i&&Be(n)}}}function bet(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,X,oe,P,W,J;e=new e4({props:{title:t[4]?"Sort array items":"Sort object keys"}});var H=t[4]&&(t[3].length>1||void 0===t[1])&&wue(t);function pe(F){t[15](F)}var A={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(A.value=t[2]),D=new ag({props:A}),Xi.push(function(){return Xu(D,"value",pe)});var N=t[5]&&Cue(t);return{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),o=De("table"),(s=De("colgroup")).innerHTML=' \n ',a=rt(),l=De("tbody"),c=De("tr"),(u=De("th")).textContent="Path",d=rt(),h=De("td"),f=De("input"),m=rt(),H&&H.c(),g=rt(),v=De("tr"),(y=De("th")).textContent="Direction",b=rt(),C=De("td"),gt(D.$$.fragment),B=rt(),z=De("div"),N&&N.c(),j=rt(),U=De("div"),G=De("button"),X=sn("Sort"),R(u,"class","svelte-1y818v2"),R(f,"class","jse-path svelte-1y818v2"),R(f,"type","text"),f.readOnly=!0,R(f,"title","Selected path"),f.value=p=Ji(t[0])?"(whole document)":cu(rc(t[0])),R(h,"class","svelte-1y818v2"),R(y,"class","svelte-1y818v2"),R(C,"class","svelte-1y818v2"),R(o,"class","svelte-1y818v2"),R(z,"class","jse-space svelte-1y818v2"),R(G,"type","button"),R(G,"class","jse-primary svelte-1y818v2"),G.disabled=oe=!!t[4]&&!t[1],R(U,"class","jse-actions svelte-1y818v2"),R(r,"class","jse-modal-contents svelte-1y818v2"),R(n,"class","jse-modal jse-sort svelte-1y818v2")},m:function(F,q){$e(F,n,q),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(o,s),me(o,a),me(o,l),me(l,c),me(c,u),me(c,d),me(c,h),me(h,f),me(l,m),H&&H.m(l,null),me(l,g),me(l,v),me(v,y),me(v,b),me(v,C),pt(D,C,null),me(r,B),me(r,z),N&&N.m(z,null),me(r,j),me(r,U),me(U,G),me(G,X),P=!0,W||(J=[Rt(G,"click",t[8]),Ea(xet.call(null,G)),Ea(Nk.call(null,n,t[6]))],W=!0)},p:function(F,q){var V=Jn(q,1)[0],ce={};16&V&&(ce.title=F[4]?"Sort array items":"Sort object keys"),e.$set(ce),(!P||1&V&&p!==(p=Ji(F[0])?"(whole document)":cu(rc(F[0])))&&f.value!==p)&&(f.value=p),F[4]&&(F[3].length>1||void 0===F[1])?H?(H.p(F,V),26&V&&Q(H,1)):((H=wue(F)).c(),Q(H,1),H.m(l,g)):H&&(Ht(),fe(H,1,1,function(){H=null}),Ut());var ve={};!E&&4&V&&(E=!0,ve.value=F[2],Yu(function(){return E=!1})),D.$set(ve),F[5]?N?N.p(F,V):((N=Cue(F)).c(),N.m(z,null)):N&&(N.d(1),N=null),(!P||18&V&&oe!==(oe=!!F[4]&&!F[1]))&&(G.disabled=oe)},i:function(F){P||(Q(e.$$.fragment,F),Q(H),Q(D.$$.fragment,F),P=!0)},o:function(F){fe(e.$$.fragment,F),fe(H),fe(D.$$.fragment,F),P=!1},d:function(F){F&&Be(n),mt(e),H&&H.d(),mt(D),N&&N.d(),W=!1,po(J)}}}function xet(t){t.focus()}function wet(t,n,e){var i,r,o,s=Ma("jsoneditor:SortModal"),a=n.id,l=n.json,c=n.rootPath,u=n.onSort,d=Aa("simple-modal").close,h="".concat(a,":").concat(dn(c)),f=On(l,c),p={value:1,label:"ascending"},m=[p,{value:-1,label:"descending"}],g=kp[h]&&kp[h].selectedProperty||void 0,v=kp[h]&&kp[h].selectedDirection||p,y=void 0;return t.$$set=function(b){"id"in b&&e(9,a=b.id),"json"in b&&e(10,l=b.json),"rootPath"in b&&e(0,c=b.rootPath),"onSort"in b&&e(11,u=b.onSort)},t.$$.update=function(){16&t.$$.dirty&&e(13,r=i&&void 0!==f?pP(f):void 0),8192&t.$$.dirty&&e(3,o=r?r.map(sb):void 0),10&t.$$.dirty&&void 0===g&&o&&1===o.length&&e(1,g=o[0]),4102&t.$$.dirty&&(e(12,kp[h]={selectedProperty:g,selectedDirection:v},kp),s("store state in memory",h,kp[h]))},e(4,i=Array.isArray(f)),[c,g,v,o,i,y,d,m,function(){try{var b,C;e(5,y=void 0);var D=null===(b=g)||void 0===b?void 0:b.value,E=null===(C=v)||void 0===C?void 0:C.value,B=Wce(l,c,D,E);u({operations:B,rootPath:c,itemPath:D,direction:E}),d()}catch(z){e(5,y=z.toString())}},a,l,u,kp,r,function(b){e(1,g=b),e(3,o),e(13,r),e(4,i)},function(b){e(2,v=b)}]}var Cet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wet,bet,Pi,{id:9,json:10,rootPath:0,onSort:11},_et),r}return Ie(e)}();function fh(){}function Rk(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*n)return t.toFixed()+" B";var e=t/n;if(e<.9*n)return e.toFixed(1)+" KB";var i=e/n;if(i<.9*n)return i.toFixed(1)+" MB";var r=i/n;return r<.9*n?r.toFixed(1)+" GB":(r/n).toFixed(1)+" TB"}function ket(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Det(t,n,e){var i,r,o=n.readOnly,s=void 0!==o&&o,a=n.onFormat,l=n.onCompact,c=n.onSort,u=n.onTransform,d=n.onToggleSearch,h=n.onUndo,f=n.onRedo,p=n.canUndo,m=n.canRedo,g=n.canFormat,v=n.canCompact,y=n.canSort,b=n.canTransform,C=n.onRenderMenu;return t.$$set=function(D){"readOnly"in D&&e(1,s=D.readOnly),"onFormat"in D&&e(2,a=D.onFormat),"onCompact"in D&&e(3,l=D.onCompact),"onSort"in D&&e(4,c=D.onSort),"onTransform"in D&&e(5,u=D.onTransform),"onToggleSearch"in D&&e(6,d=D.onToggleSearch),"onUndo"in D&&e(7,h=D.onUndo),"onRedo"in D&&e(8,f=D.onRedo),"canUndo"in D&&e(9,p=D.canUndo),"canRedo"in D&&e(10,m=D.canRedo),"canFormat"in D&&e(11,g=D.canFormat),"canCompact"in D&&e(12,v=D.canCompact),"canSort"in D&&e(13,y=D.canSort),"canTransform"in D&&e(14,b=D.canTransform),"onRenderMenu"in D&&e(15,C=D.onRenderMenu)},t.$$.update=function(){32766&t.$$.dirty&&e(16,r=s?[{type:"space"}]:[{type:"button",icon:s4,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:a,disabled:s||!g},{type:"button",icon:iZe,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:s||!v},{type:"separator"},{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:c,disabled:s||!y},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:s||!b},{type:"button",icon:HP,title:"Search (Ctrl+F)",className:"jse-search",onClick:d},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!p},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:f,disabled:!m},{type:"space"}]),98304&t.$$.dirty&&e(0,i=C(r)||r)},[i,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,r]}var Tet=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Det,ket,Pi,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return Ie(e)}(),mo=function(){function t(){Oe(this,t)}return Ie(t,[{key:"lineAt",value:function(n){if(n<0||n>this.length)throw new RangeError("Invalid position ".concat(n," in document of length ").concat(this.length));return this.lineInner(n,!1,1,0)}},{key:"line",value:function(n){if(n<1||n>this.lines)throw new RangeError("Invalid line number ".concat(n," in ").concat(this.lines,"-line document"));return this.lineInner(n,!0,1,0)}},{key:"replace",value:function(n,e,i){var r=[];return this.decompose(0,n,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),jk.from(r,this.length-(e-n)+i.length)}},{key:"append",value:function(n){return this.replace(this.length,this.length,n)}},{key:"slice",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,i=[];return this.decompose(n,e,i,0),jk.from(i,e-n)}},{key:"eq",value:function(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;for(var e=this.scanIdentical(n,1),i=this.length-this.scanIdentical(n,-1),r=new Sb(this),o=new Sb(n),s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}},{key:"iter",value:function(){return new Sb(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}},{key:"iterRange",value:function(n){return new kue(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length)}},{key:"iterLines",value:function(n,e){var i;if(null==n)i=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(n).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Due(i)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var n=[];return this.flatten(n),n}}],[{key:"of",value:function(n){if(0==n.length)throw new RangeError("A document must have at least one line");return 1!=n.length||n[0]?n.length<=32?new ld(n):jk.from(ld.split(n,[])):t.empty}}]),t}(),ld=function(t){Dt(e,mo);var n=Tt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function Eet(t){var n,e=-1,i=He(t);try{for(i.s();!(n=i.n()).done;)e+=n.value.length+1}catch(r){i.e(r)}finally{i.f()}return e}(i);return Oe(this,e),(r=n.call(this)).text=i,r.length=o,r}return Ie(e,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.text[a],c=s+l.length;if((r?o:c)>=i)return new Aet(s,c,o,l);s=c+1,o++}}},{key:"decompose",value:function(i,r,o,s){var a=i<=0&&r>=this.length?this:new e(Sue(this.text,i,r),Math.min(r,this.length)-Math.max(0,i));if(1&s){var l=o.pop(),c=Lk(a.text,l.text.slice(),0,a.length);if(c.length<=32)o.push(new e(c,l.length+a.length));else{var u=c.length>>1;o.push(new e(c.slice(0,u)),new e(c.slice(u)))}}else o.push(a)}},{key:"replace",value:function(i,r,o){if(!(o instanceof e))return _r(er(e.prototype),"replace",this).call(this,i,r,o);var s=Lk(this.text,Lk(o.text,Sue(this.text,0,i)),r),a=this.length+o.length-(r-i);return s.length<=32?new e(s,a):jk.from(e.split(s,[]),a)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;a<=r&&li&&l&&(s+=o),ia&&(s+=c.slice(Math.max(0,i-a),r-a)),a=u+1}return s}},{key:"flatten",value:function(i){var r,o=He(this.text);try{for(o.s();!(r=o.n()).done;)i.push(r.value)}catch(a){o.e(a)}finally{o.f()}}},{key:"scanIdentical",value:function(){return 0}}],[{key:"split",value:function(i,r){var o,s=[],a=-1,l=He(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(c),a+=c.length+1,32==s.length&&(r.push(new e(s,a)),s=[],a=-1)}}catch(u){l.e(u)}finally{l.f()}return a>-1&&r.push(new e(s,a)),r}}]),e}(),jk=function(t){Dt(e,mo);var n=Tt(e);function e(i,r){var o;Oe(this,e),(o=n.call(this)).children=i,o.length=r,o.lines=0;var s,a=He(i);try{for(a.s();!(s=a.n()).done;)o.lines+=s.value.lines}catch(c){a.e(c)}finally{a.f()}return o}return Ie(e,[{key:"lineInner",value:function(i,r,o,s){for(var a=0;;a++){var l=this.children[a],c=s+l.length,u=o+l.lines-1;if((r?u:c)>=i)return l.lineInner(i,r,o,s);s=c+1,o=u+1}}},{key:"decompose",value:function(i,r,o,s){for(var a=0,l=0;l<=r&&a=l){var d=s&((l<=i?1:0)|(u>=r?2:0));l>=i&&u<=r&&!d?o.push(c):c.decompose(i-l,r-l,o,d)}l=u+1}}},{key:"replace",value:function(i,r,o){if(o.lines=a&&r<=c){var u=l.replace(i-a,r-a,o),d=this.lines-l.lines+u.lines;if(u.lines>4&&u.lines>d>>6){var h=this.children.slice();return h[s]=u,new e(h,this.length-(r-i)+o.length)}return _r(er(e.prototype),"replace",this).call(this,a,c,u)}a=c+1}return _r(er(e.prototype),"replace",this).call(this,i,r,o)}},{key:"sliceString",value:function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",s="",a=0,l=0;ai&&a&&(s+=o),il&&(s+=c.sliceString(i-l,r-l,o)),l=u+1}return s}},{key:"flatten",value:function(i){var r,o=He(this.children);try{for(o.s();!(r=o.n()).done;)r.value.flatten(i)}catch(s){o.e(s)}finally{o.f()}}},{key:"scanIdentical",value:function(i,r){if(!(i instanceof e))return 0;for(var o=0,s=Jn(r>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1],4),a=s[0],l=s[1],c=s[2],u=s[3];;a+=r,l+=r){if(a==c||l==u)return o;var d=this.children[a],h=i.children[l];if(d!=h)return o+d.scanIdentical(h,r);o+=d.length+1}}}],[{key:"from",value:function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(function(j,U){return j+U.length+1},-1),s=0,a=He(i);try{for(a.s();!(r=a.n()).done;)s+=r.value.lines}catch(j){a.e(j)}finally{a.f()}if(s<32){var c,u=[],d=He(i);try{for(d.s();!(c=d.n()).done;)c.value.flatten(u)}catch(j){d.e(j)}finally{d.f()}return new ld(u,o)}var f=Math.max(32,s>>5),p=f<<1,m=f>>1,g=[],v=0,y=-1,b=[];function C(j){var U;if(j.lines>p&&j instanceof e){var G,X=He(j.children);try{for(X.s();!(G=X.n()).done;)C(G.value)}catch(oe){X.e(oe)}finally{X.f()}}else j.lines>m&&(v>m||!v)?(D(),g.push(j)):j instanceof ld&&v&&(U=b[b.length-1])instanceof ld&&j.lines+U.lines<=32?(v+=j.lines,y+=j.length+1,b[b.length-1]=new ld(U.text.concat(j.text),U.length+1+j.length)):(v+j.lines>f&&D(),v+=j.lines,y+=j.length+1,b.push(j))}function D(){0!=v&&(g.push(1==b.length?b[0]:e.from(b,y)),y=-1,v=b.length=0)}var E,B=He(i);try{for(B.s();!(E=B.n()).done;)C(E.value)}catch(j){B.e(j)}finally{B.f()}return D(),1==g.length?g[0]:new e(g,o)}}]),e}();function Lk(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r1&&void 0!==arguments[1]?arguments[1]:1;Oe(this,t),this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[n],this.offsets=[e>0?1:(n instanceof ld?n.text.length:n.children.length)<<1]}return Ie(t,[{key:"nextInner",value:function(n,e){for(this.done=this.lineBreak=!1;;){var i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1;if(s==(e>0?r instanceof ld?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[i]+=e,0==n)return this.lineBreak=!0,this.value="\n",this;n--}else if(r instanceof ld){var l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,n))return this.value=0==n?l:e>0?l.slice(n):l.slice(0,l.length-n),this;n-=l.length}else{var c=r.children[s+(e<0?-1:0)];n>c.length?(n-=c.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(e>0?1:(c instanceof ld?c.text.length:c.children.length)<<1))}}}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}]),t}(),kue=function(){function t(n,e,i){Oe(this,t),this.value="",this.done=!1,this.cursor=new Sb(n,e>i?-1:1),this.pos=e>i?n.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}return Ie(t,[{key:"nextInner",value:function(n,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var i=e<0?this.pos-this.from:this.to-this.pos;n>i&&(n=i),i-=n;var r=this.cursor.next(n).value;return this.pos+=(r.length+n)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}},{key:"next",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),Due=function(){function t(n){Oe(this,t),this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}return Ie(t,[{key:"next",value:function(){var e=this.inner.next(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),r=e.lineBreak,o=e.value;return e.done?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}();typeof Symbol<"u"&&(mo.prototype[Symbol.iterator]=function(){return this.iter()},Sb.prototype[Symbol.iterator]=kue.prototype[Symbol.iterator]=Due.prototype[Symbol.iterator]=function(){return this});for(var Aet=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.number=i,this.text=r}return Ie(t,[{key:"length",get:function(){return this.to-this.from}}]),t}(),U0="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(t){return t?parseInt(t,36):1}),Bk=1;Bkt)return U0[n-1]<=t;return!1}function Tue(t){return t>=127462&&t<=127487}function jl(t,n){return(arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?Oet:Eue)(t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function Eue(t,n,e){if(n==t.length)return n;n&&Aue(t.charCodeAt(n))&&Mue(t.charCodeAt(n-1))&&n--;var i=Wa(t,n);for(n+=Fc(i);n=0&&Tue(Wa(t,s));)o++,s-=2;if(o%2==0)break;n+=2}}return n}function Oet(t,n,e){for(;n>0;){var i=Eue(t,n-2,e);if(i=56320&&t<57344}function Mue(t){return t>=55296&&t<56320}function Wa(t,n){var e=t.charCodeAt(n);if(!Mue(e)||n+1==t.length)return e;var i=t.charCodeAt(n+1);return Aue(i)?i-56320+(e-55296<<10)+65536:e}function g4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Fc(t){return t<65536?1:2}var v4=/\r\n?|\n/,Ll=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Ll||(Ll={})),z0=function(){function t(n){Oe(this,t),this.sections=n}return Ie(t,[{key:"length",get:function(){for(var n=0,e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"invertedDesc",get:function(){for(var n=[],e=0;e1&&void 0!==arguments[1]&&arguments[1])}},{key:"mapPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ll.Simple,r=0,o=0,s=0;sn)return o+(n-r);o+=a}else{if(i!=Ll.Simple&&c>=n&&(i==Ll.TrackDel&&rn||i==Ll.TrackBefore&&rn))return null;if(c>n||c==n&&e<0&&!a)return n==r||e<0?o:o+l;o+=l}r=c}if(n>r)throw new RangeError("Position ".concat(n," is out of range for changeset of length ").concat(r));return o}},{key:"touchesRange",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=0,r=0;i=0&&r<=e&&a>=n)return!(re)||"cover";r=a}return!1}},{key:"toString",value:function(){for(var n="",e=0;e=0?":"+r:"")}return n}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(n){if(!Array.isArray(n)||n.length%2||n.some(function(e){return"number"!=typeof e}))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(n)}},{key:"create",value:function(n){return new t(n)}}]),t}(),cd=function(t){Dt(e,z0);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this,i)).inserted=r,o}return Ie(e,[{key:"apply",value:function(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return y4(this,function(r,o,s,a,l){return i=i.replace(s,s+(o-r),l)},!1),i}},{key:"mapDesc",value:function(i){return _4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"invert",value:function(i){for(var r=this.sections.slice(),o=[],s=0,a=0;s=0){r[s]=c,r[s+1]=l;for(var u=s>>1;o.length1&&void 0!==arguments[1]&&arguments[1],!0)}},{key:"iterChanges",value:function(i){y4(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"desc",get:function(){return z0.create(this.sections)}},{key:"filter",value:function(i){var r=[],o=[],s=[],a=new kb(this);e:for(var l=0,c=0;;){for(var u=l==i.length?1e9:i[l++];c0&&Dp(o,r,a.text),a.forward(d),c+=d}for(var f=i[l++];c>1].toJSON()))}return i}}],[{key:"of",value:function(i,r,o){var s=[],a=[],l=0,c=null;function u(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||s.length){lv||m<0||v>r)throw new RangeError("Invalid change range ".concat(m," to ").concat(v," (in doc of length ").concat(r,")"));var b=y?"string"==typeof y?mo.of(y.split(o||v4)):y:mo.empty,C=b.length;if(m==v&&0==C)return;ml&&ml(s,m-l,-1),ml(s,v-m,C),Dp(a,s,b),l=v}}(i),u(!c),c}},{key:"empty",value:function(i){return new e(i?[i,-1]:[],[])}},{key:"fromJSON",value:function(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");for(var r=[],o=[],s=0;s3&&void 0!==arguments[3]&&arguments[3];if(!(0==n&&e<=0)){var r=t.length-2;r>=0&&e<=0&&e==t[r+1]?t[r]+=n:0==n&&0==t[r]?t[r+1]+=e:i?(t[r]+=n,t[r+1]+=e):t.push(n,e)}}function Dp(t,n,e){if(0!=e.length){var i=n.length-2>>1;if(i>1])),!(e||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];n(r,c,o,u,d),r=c,o=u}}}function _4(t,n,e){for(var r=[],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,s=new kb(t),a=new kb(n),l=-1;;)if(-1==s.ins&&-1==a.ins){var c=Math.min(s.len,a.len);ml(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?cd.createSet(r,o):z0.create(r);throw new Error("Mismatched change set lengths")}for(var h=0,f=s.len;f;)if(-1==a.ins){var p=Math.min(f,a.len);h+=p,f-=p,a.forward(p)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,o=new kb(t),s=new kb(n),a=!1;;){if(o.done&&s.done)return r?cd.createSet(i,r):z0.create(i);if(0==o.ins)ml(i,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var l=Math.min(o.len2,s.len),c=i.length;if(-1==o.ins){var u=-1==s.ins?-1:s.off?0:s.ins;ml(i,l,u,a),r&&u&&Dp(r,i,s.text)}else-1==s.ins?(ml(i,o.off?0:o.len,l,a),r&&Dp(r,i,o.textBit(l))):(ml(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&Dp(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}else ml(i,0,s.ins,a),r&&Dp(r,i,s.text),s.next()}}var kb=function(){function t(n){Oe(this,t),this.set=n,this.i=0,this.next()}return Ie(t,[{key:"next",value:function(){var n=this.set.sections;this.i>1;return e>=n.length?mo.empty:n[e]}},{key:"textBit",value:function(n){var e=this.set.inserted,i=this.i-2>>1;return i>=e.length&&!n?mo.empty:e[i].slice(this.off,null==n?void 0:this.off+n)}},{key:"forward",value:function(n){n==this.len?this.next():(this.len-=n,this.off+=n)}},{key:"forward2",value:function(n){-1==this.ins?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}]),t}(),$k=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.flags=i}return Ie(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var n=3&this.flags;return 3==n?null:n}},{key:"goalColumn",get:function(){var n=this.flags>>5;return 33554431==n?void 0:n}},{key:"map",value:function(n){var e,i;return this.empty?e=i=n.mapPos(this.from,arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1):(e=n.mapPos(this.from,1),i=n.mapPos(this.to,-1)),e==this.from&&i==this.to?this:new t(e,i,this.flags)}},{key:"extend",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(n<=this.anchor&&e>=this.anchor)return rn.range(n,e);var i=Math.abs(n-this.anchor)>Math.abs(e-this.anchor)?n:e;return rn.range(this.anchor,i)}},{key:"eq",value:function(n){return this.anchor==n.anchor&&this.head==n.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(n){if(!n||"number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid JSON representation for SelectionRange");return rn.range(n.anchor,n.head)}},{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),rn=function(){function t(n,e){Oe(this,t),this.ranges=n,this.mainIndex=e}return Ie(t,[{key:"map",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return n.empty?this:t.create(this.ranges.map(function(i){return i.map(n,e)}),this.mainIndex)}},{key:"eq",value:function(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([n].concat(this.ranges),e?0:this.mainIndex+1)}},{key:"replaceRange",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,i=this.ranges.slice();return i[e]=n,t.create(i,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map(function(n){return n.toJSON()}),main:this.mainIndex}}}],[{key:"fromJSON",value:function(n){if(!n||!Array.isArray(n.ranges)||"number"!=typeof n.main||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(n.ranges.map(function(e){return $k.fromJSON(e)}),n.main)}},{key:"single",value:function(n){return new t([t.range(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n)],0)}},{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==n.length)throw new RangeError("A selection needs at least one range");for(var i=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return $k.create(n,n,(0==e?0:e<0?4:8)|(null==i?3:Math.min(2,i))|(r??33554431)<<5)}},{key:"range",value:function(n,e,i,r){var o=(i??33554431)<<5|(null==r?3:Math.min(2,r));return en?4:0)|o)}},{key:"normalized",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n[e];n.sort(function(c,u){return c.from-u.from}),e=n.indexOf(i);for(var r=1;ro.head?t.range(l,a):t.range(a,l))}}return new t(n,e)}}]),t}();function Iue(t,n){var e,i=He(t.ranges);try{for(i.s();!(e=i.n()).done;)if(e.value.to>n)throw new RangeError("Selection points outside of document")}catch(r){i.e(r)}finally{i.f()}}var b4=0,oi=function(){function t(n,e,i,r,o){Oe(this,t),this.combine=n,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=b4++,this.default=n([]),this.extensions="function"==typeof o?o(this):o}return Ie(t,[{key:"of",value:function(n){return new Vk([],this,0,n)}},{key:"compute",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(n,this,1,e)}},{key:"computeN",value:function(n,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vk(n,this,2,e)}},{key:"from",value:function(n,e){return e||(e=function(i){return i}),this.compute([n],function(i){return e(i.field(n))})}}],[{key:"define",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(n.combine||function(e){return e},n.compareInput||function(e,i){return e===i},n.compare||(n.combine?function(e,i){return e===i}:x4),!!n.static,n.enables)}}]),t}();function x4(t,n){return t==n||t.length==n.length&&t.every(function(e,i){return e===n[i]})}var Vk=function(){function t(n,e,i,r){Oe(this,t),this.dependencies=n,this.facet=e,this.type=i,this.value=r,this.id=b4++}return Ie(t,[{key:"dynamicSlot",value:function(n){var e,i,r=this,o=this.value,s=this.facet.compareInput,a=this.id,l=n[a]>>1,c=2==this.type,u=!1,d=!1,h=[],f=He(this.dependencies);try{for(f.s();!(i=f.n()).done;){var p=i.value;"doc"==p?u=!0:"selection"==p?d=!0:!(1&(null!==(e=n[p.id])&&void 0!==e?e:1))&&h.push(n[p.id])}}catch(m){f.e(m)}finally{f.f()}return{create:function(m){return m.values[l]=o(m),1},update:function(m,g){if(u&&g.docChanged||d&&(g.docChanged||g.selection)||w4(m,h)){var v=o(m);if(c?!Nue(v,m.values[l],s):!s(v,m.values[l]))return m.values[l]=v,1}return 0},reconfigure:function(m,g){var v,y=g.config.address[a];if(null!=y){var b=Hk(g,y);if(r.dependencies.every(function(C){return C instanceof oi?g.facet(C)===m.facet(C):!(C instanceof qa)||g.field(C,!1)==m.field(C,!1)})||(c?Nue(v=o(m),b,s):s(v=o(m),b)))return m.values[l]=b,0}else v=o(m);return m.values[l]=v,1}}}}]),t}();function Nue(t,n,e){if(t.length!=n.length)return!1;for(var i=0;i>1;return{create:function(r){return r.values[i]=e.create(r),1},update:function(r,o){var s=r.values[i],a=e.updateF(s,o);return e.compareF(s,a)?0:(r.values[i]=a,1)},reconfigure:function(r,o){return null!=o.config.address[e.id]?(r.values[i]=o.field(e),0):(r.values[i]=e.create(r),1)}}}},{key:"init",value:function(n){return[this,Fue.of({field:this,create:n})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(n){var e=new t(b4++,n.create,n.update,n.compare||function(i,r){return i===r},n);return n.provide&&(e.provides=n.provide(e)),e}}]),t}();function Db(t){return function(n){return new Pue(n,t)}}var G0={highest:Db(0),high:Db(1),default:Db(2),low:Db(3),lowest:Db(4)},Pue=Ie(function t(n,e){Oe(this,t),this.inner=n,this.prec=e}),Tp=function(){function t(){Oe(this,t)}return Ie(t,[{key:"of",value:function(n){return new S4(this,n)}},{key:"reconfigure",value:function(n){return t.reconfigure.of({compartment:this,extension:n})}},{key:"get",value:function(n){return n.config.compartments.get(this)}}]),t}(),S4=Ie(function t(n,e){Oe(this,t),this.compartment=n,this.inner=e}),Rue=function(){function t(n,e,i,r,o,s){for(Oe(this,t),this.base=n,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(n,e,i){var r,C,D,E,B,z,o=[],s=Object.create(null),a=new Map,l=He((C=n,D=e,E=a,B=[[],[],[],[],[]],z=new Map,function j(U,G){var X=z.get(U);if(null!=X){if(X<=G)return;var oe=B[X].indexOf(U);oe>-1&&B[X].splice(oe,1),U instanceof S4&&E.delete(U.compartment)}if(z.set(U,G),Array.isArray(U)){var P,W=He(U);try{for(W.s();!(P=W.n()).done;)j(P.value,G)}catch(pe){W.e(pe)}finally{W.f()}}else if(U instanceof S4){if(E.has(U.compartment))throw new RangeError("Duplicate use of compartment in extensions");var J=D.get(U.compartment)||U.inner;E.set(U.compartment,J),j(J,G)}else if(U instanceof Pue)j(U.inner,U.prec);else if(U instanceof qa)B[G].push(U),U.provides&&j(U.provides,G);else if(U instanceof Vk)B[G].push(U),U.facet.extensions&&j(U.facet.extensions,2);else{var H=U.extension;if(!H)throw new Error("Unrecognized extension value in extension set (".concat(U,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));j(H,G)}}(C,2),B.reduce(function(U,G){return U.concat(G)})));try{for(l.s();!(r=l.n()).done;){var c=r.value;c instanceof qa?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(C){l.e(C)}finally{l.f()}for(var u=Object.create(null),d=[],h=[],f=function(){var C=m[p];u[C.id]=h.length<<1,h.push(function(D){return C.slot(D)})},p=0,m=o;p>1;function N(F){for(var q=[],V=0;V>1,i=t.status[e];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[e]=4;var r=t.computeSlot(t,t.config.dynamicSlots[e]);return t.status[e]=2|r}function Hk(t,n){return 1&n?t.config.staticValues[n>>1]:t.values[n>>1]}var jue=oi.define(),Lue=oi.define({combine:function(t){return t.some(function(n){return n})},static:!0}),Bue=oi.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),$ue=oi.define(),Vue=oi.define(),Hue=oi.define(),Uue=oi.define({combine:function(t){return!!t.length&&t[0]}}),Ep=function(){function t(n,e){Oe(this,t),this.type=n,this.value=e}return Ie(t,null,[{key:"define",value:function(){return new Pet}}]),t}(),Pet=function(){function t(){Oe(this,t)}return Ie(t,[{key:"of",value:function(n){return new Ep(this,n)}}]),t}(),Ret=function(){function t(n){Oe(this,t),this.map=n}return Ie(t,[{key:"of",value:function(n){return new gr(this,n)}}]),t}(),gr=function(){function t(n,e){Oe(this,t),this.type=n,this.value=e}return Ie(t,[{key:"map",value:function(n){var e=this.type.map(this.value,n);return void 0===e?void 0:e==this.value?this:new t(this.type,e)}},{key:"is",value:function(n){return this.type==n}}],[{key:"define",value:function(){return new Ret((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||function(e){return e})}},{key:"mapEffects",value:function(n,e){if(!n.length)return n;var i,r=[],o=He(n);try{for(o.s();!(i=o.n()).done;){var s=i.value.map(e);s&&r.push(s)}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}();gr.reconfigure=gr.define(),gr.appendConfig=gr.define();var oc=function(){function t(n,e,i,r,o,s){Oe(this,t),this.startState=n,this.changes=e,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&Iue(i,e.newLength),o.some(function(a){return a.type==t.time})||(this.annotations=o.concat(t.time.of(Date.now())))}return Ie(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(n){var e,i=He(this.annotations);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.type==n)return r.value}}catch(o){i.e(o)}finally{i.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(n){var e=this.annotation(t.userEvent);return!(!e||!(e==n||e.length>n.length&&e.slice(0,n.length)==n&&"."==e[n.length]))}}],[{key:"create",value:function(n,e,i,r,o,s){return new t(n,e,i,r,o,s)}}]),t}();function jet(t,n){for(var e=[],i=0,r=0;;){var o=void 0,s=void 0;if(i=t[i]))o=t[i++],s=t[i++];else{if(!(r=0;d--){var h=c[d](a);h&&Object.keys(h).length&&(u=zue(u,k4(l,h,a.changes.newLength),!0))}return u==a?a:oc.create(l,a.changes,a.selection,u.effects,u.annotations,u.scrollIntoView)}(e?function(a){var l,c=a.startState,u=!0,d=He(c.facet($ue));try{for(d.s();!(l=d.n()).done;){var h=(0,l.value)(a);if(!1===h){u=!1;break}Array.isArray(h)&&(u=!0===u?h:jet(u,h))}}catch(b){d.e(b)}finally{d.f()}if(!0!==u){var f,p;if(!1===u)p=a.changes.invertedDesc,f=cd.empty(c.doc.length);else{var m=a.changes.filter(u);f=m.changes,p=m.filtered.mapDesc(m.changes).invertedDesc}a=oc.create(c,f,a.selection&&a.selection.map(p),gr.mapEffects(a.effects,p),a.annotations,a.scrollIntoView)}for(var g=c.facet(Vue),v=g.length-1;v>=0;v--){var y=g[v](a);a=y instanceof oc?y:Array.isArray(y)&&1==y.length&&y[0]instanceof oc?y[0]:Gue(c,W0(y),!1)}return a}(s):s)}oc.time=Ep.define(),oc.userEvent=Ep.define(),oc.addToHistory=Ep.define(),oc.remote=Ep.define();var Let=[];function W0(t){return null==t?Let:Array.isArray(t)?t:[t]}var D4,ls=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(ls||(ls={})),Bet=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{D4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}var Fo=function(){function t(n,e,i,r,o,s){Oe(this,t),this.config=n,this.doc=e,this.selection=i,this.values=r,this.status=n.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(var a=0;a1&&void 0!==arguments[1])||arguments[1],i=this.config.address[n.id];if(null!=i)return Tb(this,i),Hk(this,i);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var n=arguments.length,e=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];return n instanceof cd?n:cd.of(n,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(n){return mo.of(n.split(this.facet(t.lineSeparator)||v4))}},{key:"sliceDoc",value:function(){return this.doc.sliceString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length,this.lineBreak)}},{key:"facet",value:function(n){var e=this.config.address[n.id];return null==e?n.default:(Tb(this,e),Hk(this,e))}},{key:"toJSON",value:function(n){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(n)for(var i in n){var r=n[i];r instanceof qa&&null!=this.config.address[r.id]&&(e[i]=r.spec.toJSON(this.field(n[i]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"readOnly",get:function(){return this.facet(Uue)}},{key:"phrase",value:function(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;ri.length?l:i[u-1]})),n}},{key:"languageDataAt",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=[],s=He(this.facet(jue));try{for(s.s();!(i=s.n()).done;){var a,c=He((0,i.value)(this,e,r));try{for(c.s();!(a=c.n()).done;){var u=a.value;Object.prototype.hasOwnProperty.call(u,n)&&o.push(u[n])}}catch(d){c.e(d)}finally{c.f()}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:"charCategorizer",value:function(n){return function $et(t){return function(n){if(!/\S/.test(n))return ls.Space;if(function(i){if(D4)return D4.test(i);for(var r=0;r"\x80"&&(o.toUpperCase()!=o.toLowerCase()||Bet.test(o)))return!0}return!1}(n))return ls.Word;for(var e=0;e-1)return ls.Word;return ls.Other}}(this.languageDataAt("wordChars",n).join(""))}},{key:"wordAt",value:function(n){for(var e=this.doc.lineAt(n),i=e.text,r=e.from,o=e.length,s=this.charCategorizer(n),a=n-r,l=n-r;a>0;){var c=jl(i,a,!1);if(s(i.slice(c,a))!=ls.Word)break;a=c}for(;l1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(!n||"string"!=typeof n.doc)throw new RangeError("Invalid JSON representation for EditorState");var r=[];if(i)for(var o in i)Object.prototype.hasOwnProperty.call(n,o)&&function(){var s=i[o],a=n[o];r.push(s.init(function(l){return s.spec.fromJSON(a,l)}))}();return t.create({doc:n.doc,selection:rn.fromJSON(n.selection),extensions:e.extensions?r.concat([e.extensions]):r})}},{key:"create",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Rue.resolve(n.extensions||[],new Map),i=n.doc instanceof mo?n.doc:mo.of((n.doc||"").split(e.staticFacet(t.lineSeparator)||v4)),r=n.selection?n.selection instanceof rn?n.selection:rn.single(n.selection.anchor,n.selection.head):rn.single(0);return Iue(r,i.length),e.staticFacet(Lue)||(r=r.asSingle()),new t(e,i,r,e.dynamicSlots.map(function(){return null}),function(o,s){return s.create(o)},null)}}]),t}();function pu(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},o=He(t);try{for(o.s();!(e=o.n()).done;)for(var s=e.value,a=0,l=Object.keys(s);a1&&void 0!==arguments[1]?arguments[1]:n,this)}}]),t}();cg.prototype.startSide=cg.prototype.endSide=0,cg.prototype.point=!1,cg.prototype.mapMode=Ll.TrackDel;var T4=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.value=i}return Ie(t,null,[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}();function E4(t,n){return t.from-n.from||t.value.startSide-n.value.startSide}var Vet=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.value=i,this.maxPoint=r}return Ie(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(n,e,i){for(var o=i?this.to:this.from,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=o.length;;){if(s==a)return s;var l=s+a>>1,c=o[l]-n||(i?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}},{key:"between",value:function(n,e,i,r){for(var o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o(f=e.mapPos(d,c.endSide))||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new t(r,o,i,a):null,pos:s}}}]),t}(),qo=function(){function t(n,e,i,r){Oe(this,t),this.chunkPos=n,this.chunk=e,this.nextLayer=i,this.maxPoint=r}return Ie(t,[{key:"length",get:function(){var n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var n,e=this.nextLayer.size,i=He(this.chunk);try{for(i.s();!(n=i.n()).done;)e+=n.value.value.length}catch(r){i.e(r)}finally{i.f()}return e}},{key:"chunkEnd",value:function(n){return this.chunkPos[n]+this.chunk[n].length}},{key:"update",value:function(n){var e=n.add,i=void 0===e?[]:e,r=n.sort,s=n.filterFrom,a=void 0===s?0:s,l=n.filterTo,c=void 0===l?this.length:l,u=n.filter;if(0==i.length&&!u)return this;if(void 0!==r&&r&&(i=i.slice().sort(E4)),this.isEmpty)return i.length?t.of(i):this;for(var d=new que(this,null,-1).goto(0),h=0,f=[],p=new ug;d.value||h=0){var m=i[h++];p.addInner(m.from,m.to,m.value)||f.push(m)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||cd.to||c=o&&n<=o+s.length&&!1===s.between(o,n-o,e-o,i))return}this.nextLayer.between(n,e,i)}}},{key:"iter",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return A4.from([this]).goto(n)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"create",value:function(n,e,i,r){return new t(n,e,i,r)}},{key:"iter",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return A4.from(n).goto(e)}},{key:"compare",value:function(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=n.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),a=e.filter(function(d){return d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o}),l=Wue(s,a,i),c=new Eb(s,l,o),u=new Eb(a,l,o);i.iterGaps(function(d,h,f){return Yue(c,d,u,h,f,r)}),i.empty&&0==i.length&&Yue(c,0,u,0,0,r)}},{key:"eq",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);var o=n.filter(function(u){return!u.isEmpty&&e.indexOf(u)<0}),s=e.filter(function(u){return!u.isEmpty&&n.indexOf(u)<0});if(o.length!=s.length)return!1;if(!o.length)return!0;for(var a=Wue(o,s),l=new Eb(o,a,0).goto(i),c=new Eb(s,a,0).goto(i);;){if(l.to!=c.to||!O4(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}},{key:"spans",value:function(n,e,i,r){for(var s=new Eb(n,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(e),a=e,l=s.openStart;;){var c=Math.min(s.to,i);if(s.point){var u=s.activeForPoint(s.to),d=s.pointFroma&&(r.span(a,c,s.active,l),l=s.openEnd(c));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}},{key:"of",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new ug,o=He(n instanceof T4?[n]:i?function Het(t){if(t.length>1)for(var n=t[0],e=1;e0)return t.slice().sort(E4);n=i}return t}(n):n);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();qo.empty=new qo([],[],null,-1),qo.empty.nextLayer=qo.empty;var ug=function(){function t(){Oe(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Ie(t,[{key:"finishChunk",value:function(n){this.chunks.push(new Vet(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(n,e,i){this.addInner(n,e,i)||(this.nextLayer||(this.nextLayer=new t)).add(n,e,i)}},{key:"addInner",value:function(n,e,i){var r=n-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(n-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=n,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-n)),0))}},{key:"addChunk",value:function(n,e){if((n-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(n);var i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+n,this.lastTo=e.to[i]+n,!0}},{key:"finish",value:function(){return this.finishInner(qo.empty)}},{key:"finishInner",value:function(n){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return n;var e=qo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,e}}]),t}();function Wue(t,n,e){var i,r=new Map,o=He(t);try{for(o.s();!(i=o.n()).done;)for(var s=i.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,t),this.layer=n,this.skip=e,this.minPoint=i,this.rank=r}return Ie(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(n,e,!1),this}},{key:"gotoInner",value:function(n,e,i){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=He(this.heap);try{for(r.s();!(e=r.n()).done;)e.value.goto(n,i)}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)M4(this.heap,s);return this.next(),this}},{key:"forward",value:function(n,e){var i,r=He(this.heap);try{for(r.s();!(i=r.n()).done;)i.value.forward(n,e)}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)M4(this.heap,o);(this.to-n||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),M4(this.heap,0)}}}],[{key:"from",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],o=0;o=i&&r.push(new que(s,e,i,o));return 1==r.length?r[0]:new t(r)}}]),t}();function M4(t,n){for(var e=t[n];;){var i=1+(n<<1);if(i>=t.length)break;var r=t[i];if(i+1=0&&(r=t[i+1],i++),e.compare(r)<0)break;t[i]=e,t[n]=r,n=i}}var Eb=function(){function t(n,e,i){Oe(this,t),this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=A4.from(n,e,i)}return Ie(t,[{key:"goto",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(n,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(n,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(n,e)}},{key:"removeActive",value:function(n){Uk(this.active,n),Uk(this.activeTo,n),Uk(this.activeRank,n),this.minActive=Xue(this.active,this.activeTo)}},{key:"addActive",value:function(n){for(var e=0,i=this.cursor,r=i.value,o=i.to,s=i.rank;e-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>n){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&Uk(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]n||this.activeTo[i]==n&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}},{key:"openEnd",value:function(n){for(var e=0,i=this.activeTo.length-1;i>=0&&this.activeTo[i]>n;i--)e++;return e}}]),t}();function Yue(t,n,e,i,r,o){t.goto(n),e.goto(i);for(var s=i+r,a=i,l=i-n;;){var c=t.to+l-e.to||t.endSide-e.endSide,u=c<0?t.to+l:e.to,d=Math.min(u,s);if(t.point||e.point?t.point&&e.point&&(t.point==e.point||t.point.eq(e.point))&&O4(t.activeForPoint(t.to+l),e.activeForPoint(e.to))||o.comparePoint(a,d,t.point,e.point):d>a&&!O4(t.active,e.active)&&o.compareRange(a,d,t.active,e.active),u>s)break;a=u,c<=0&&t.next(),c>=0&&e.next()}}function O4(t,n){if(t.length!=n.length)return!1;for(var e=0;e=n;i--)t[i+1]=t[i];t[n]=e}function Xue(t,n){for(var e=-1,i=1e9,r=0;r2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0;r=n)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?e-o%e:1,r=jl(t,r)}return!0===i?-1:t.length}for(var Jue=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),N4=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Kue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Ap=function(){function t(n,e){Oe(this,t),this.rules=[];var i=(e||{}).finish;function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,l,c,u){var d=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&"keyframes"==h[1];if(h&&null==l)return c.push(a[0]+";");for(var p in l){var m=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(function(g){return a.map(function(v){return g.replace(/&/,v)})}).reduce(function(g,v){return g.concat(v)}),m,c);else if(m&&"object"==wn(m)){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(r(p),m,d,f)}else null!=m&&d.push(p.replace(/_.*/,"").replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()})+": "+m+";")}(d.length||f)&&c.push((!i||h||u?a:a.map(i)).join(", ")+" {"+d.join(" ")+"}")}for(var s in n)o(r(s),n[s],this.rules)}return Ie(t,[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var n=Kue[Jue]||1;return Kue[Jue]=n+1,"\u037c"+n.toString(36)}},{key:"mount",value:function(n,e){(n[N4]||new Uet(n)).mount(Array.isArray(e)?e:[e])}}]),t}(),Gk=null,Uet=function(){function t(n){if(Oe(this,t),!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(Gk)return n.adoptedStyleSheets=[Gk.sheet].concat(n.adoptedStyleSheets),n[N4]=Gk;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),Gk=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");var e=n.head||n;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],n[N4]=this}return Ie(t,[{key:"mount",value:function(n){for(var e=this.sheet,i=0,r=0,o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(var l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Que=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),zet=typeof navigator<"u"&&/Mac/.test(navigator.platform),Get=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Wet=zet||Que&&+Que[1]<57,Ya=0;Ya<10;Ya++)Mp[48+Ya]=Mp[96+Ya]=String(Ya);for(Ya=1;Ya<=24;Ya++)Mp[Ya+111]="F"+Ya;for(Ya=65;Ya<=90;Ya++)Mp[Ya]=String.fromCharCode(Ya+32),Mb[Ya]=String.fromCharCode(Ya);for(var F4 in Mp)Mb.hasOwnProperty(F4)||(Mb[F4]=Mp[F4]);function Wk(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function q0(t,n){return!!n&&(t==n||t.contains(1!=n.nodeType?n.parentNode:n))}function qk(t,n){if(!n.anchorNode)return!1;try{return q0(t,n.anchorNode)}catch{return!1}}function Ob(t){return 3==t.nodeType?X0(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function Yk(t,n,e,i){return!!e&&(Zue(t,n,e,i,-1)||Zue(t,n,e,i,1))}function Xk(t){for(var n=0;;n++)if(!(t=t.previousSibling))return n}function Zue(t,n,e,i,r){for(;;){if(t==e&&n==i)return!0;if(n==(r<0?0:Ib(t))){if("DIV"==t.nodeName)return!1;var o=t.parentNode;if(!o||1!=o.nodeType)return!1;n=Xk(t)+(r<0?0:1),t=o}else{if(1!=t.nodeType||1==(t=t.childNodes[n+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;n=r<0?Ib(t):0}}}function Ib(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}var ede={left:0,right:0,top:0,bottom:0};function P4(t,n){var e=n?t.left:t.right;return{left:e,right:e,top:t.top,bottom:t.bottom}}function qet(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}var tde,Yet=function(){function t(){Oe(this,t),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Ie(t,[{key:"eq",value:function(n){return this.anchorNode==n.anchorNode&&this.anchorOffset==n.anchorOffset&&this.focusNode==n.focusNode&&this.focusOffset==n.focusOffset}},{key:"setRange",value:function(n){this.set(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset)}},{key:"set",value:function(n,e,i,r){this.anchorNode=n,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}}]),t}(),Y0=null;function nde(t){if(t.setActive)return t.setActive();if(Y0)return t.focus(Y0);for(var n=[],e=t;e&&(n.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(t.focus(null==Y0?{get preventScroll(){return Y0={preventScroll:!0},!0}}:void 0),!Y0){Y0=!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:n,i=tde||(tde=document.createRange());return i.setEnd(t,e),i.setStart(t,n),i}function J0(t,n,e){var i={key:n,code:n,keyCode:e,which:e,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);var o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function ide(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}var Pc=function(){function t(n,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Oe(this,t),this.node=n,this.offset=e,this.precise=i}return Ie(t,null,[{key:"before",value:function(n,e){return new t(n.parentNode,Xk(n),e)}},{key:"after",value:function(n,e){return new t(n.parentNode,Xk(n)+1,e)}}]),t}(),R4=[],Cs=function(){function t(){Oe(this,t),this.parent=null,this.dom=null,this.dirty=2}return Ie(t,[{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(n){var e,i=this.posAtStart,r=He(this.children);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o==n)return i;i+=o.length+o.breakAfter}}catch(s){r.e(s)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(n){return this.posBefore(n)+n.length}},{key:"coordsAt",value:function(n,e){return null}},{key:"sync",value:function(n,e){if(2&this.dirty){var i,r,o=this.dom,s=null,a=He(this.children);try{for(a.s();!(r=a.n()).done;){var l=r.value;if(l.dirty){if(!l.dom&&(i=s?s.nextSibling:o.firstChild)){var c=t.get(i);(!c||!c.parent&&c.canReuseDOM(l))&&l.reuseDOM(i)}l.sync(n,e),l.dirty=0}if(i=s?s.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&i!=l.dom&&(e.written=!0),l.dom.parentNode==o)for(;i&&i!=l.dom;)i=rde(i);else o.insertBefore(l.dom,i);s=l.dom}}catch(f){a.e(f)}finally{a.f()}for((i=s?s.nextSibling:o.firstChild)&&e&&e.node==o&&(e.written=!0);i;)i=rde(i)}else if(1&this.dirty){var u,d=He(this.children);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.dirty&&(h.sync(n,e),h.dirty=0)}}catch(f){d.e(f)}finally{d.f()}}}},{key:"reuseDOM",value:function(n){}},{key:"localPosFromDOM",value:function(n,e){var i;if(n==this.dom)i=this.dom.childNodes[e];else{for(var r=0==Ib(n)?0:0==e?-1:1;;){var o=n.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=n==o.firstChild?-1:1),n=o}i=r<0?n:n.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!t.get(i);)i=i.nextSibling;if(!i)return this.length;for(var s=0,a=0;;s++){var l=this.children[s];if(l.dom==i)return a;a+=l.length+l.breakAfter}}},{key:"domBoundsAround",value:function(n,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,o=-1,s=-1,a=-1,l=0,c=i,u=i;le)return d.domBoundsAround(n,e,c);if(h>=n&&-1==r&&(r=l,o=c),c>e&&d.dom.parentNode==this.dom){s=l,a=u;break}u=h,c=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}},{key:"markDirty",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(n)}},{key:"markParentsDirty",value:function(n){for(var e=this.parent;e;e=e.parent){if(n&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,n=!1}}},{key:"setParent",value:function(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}},{key:"rootView",get:function(){for(var n=this;;){var e=n.parent;if(!e)return n;n=e}}},{key:"replaceChildren",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R4;this.markDirty();for(var o=n;o0&&void 0!==arguments[0]?arguments[0]:this.length,this.children.length)}},{key:"childPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(n,e)}},{key:"toString",value:function(){var n=this.constructor.name.replace("View","");return n+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==n?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"isEditable",get:function(){return!0}},{key:"isWidget",get:function(){return!1}},{key:"merge",value:function(n,e,i,r,o,s){return!1}},{key:"become",value:function(n){return!1}},{key:"canReuseDOM",value:function(n){return n.constructor==this.constructor}},{key:"getSide",value:function(){return 0}},{key:"destroy",value:function(){this.parent=null}}],[{key:"get",value:function(n){return n.cmView}}]),t}();function rde(t){var n=t.nextSibling;return t.parentNode.removeChild(t),n}Cs.prototype.breakAfter=0;var ode=function(){function t(n,e,i){Oe(this,t),this.children=n,this.pos=e,this.i=i,this.off=0}return Ie(t,[{key:"findPos",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(n>this.pos||n==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;var i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}]),t}();function sde(t,n,e,i,r,o,s,a,l){var c=t.children,u=c.length?c[n]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(n==i&&u&&!s&&!h&&o.length<2&&u.merge(e,r,o.length?d:null,0==e,a,l))){if(i0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2),si={mac:hde||/Mac/.test(Rc.platform),windows:/Win/.test(Rc.platform),linux:/Linux|X11/.test(Rc.platform),ie:Jk,ie_version:lde?j4.documentMode||6:B4?+B4[1]:L4?+L4[1]:0,gecko:cde,gecko_version:cde?+(/Firefox\/(\d+)/.exec(Rc.userAgent)||[0,0])[1]:0,chrome:!!$4,chrome_version:$4?+$4[1]:0,ios:hde,android:/Android\b/.test(Rc.userAgent),webkit:ude,safari:dde,webkit_version:ude?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=j4.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},Nb=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).text=i,r}return Ie(e,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(i){this.setDOM(i||document.createTextNode(this.text))}},{key:"sync",value:function(i,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(i){3==i.nodeType&&this.createDOM(i)}},{key:"merge",value:function(i,r,o){return(!o||o instanceof e&&!(this.length-(r-i)+o.length>256))&&(this.text=this.text.slice(0,i)+(o?o.text:"")+this.text.slice(r),this.markDirty(),!0)}},{key:"split",value:function(i){var r=new e(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),r}},{key:"localPosFromDOM",value:function(i,r){return i==this.dom?r:r?this.text.length:0}},{key:"domAtPos",value:function(i){return new Pc(this.dom,i)}},{key:"domBoundsAround",value:function(i,r,o){return{from:o,to:o+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(i,r){return V4(this.dom,i,r)}}]),e}(),dg=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Oe(this,e),(r=n.call(this)).mark=i,r.children=o,r.length=s;var a,l=He(o);try{for(l.s();!(a=l.n()).done;)a.value.setParent(Fn(r))}catch(u){l.e(u)}finally{l.f()}return r}return Ie(e,[{key:"setAttrs",value:function(i){if(ide(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(var r in this.mark.attrs)i.setAttribute(r,this.mark.attrs[r]);return i}},{key:"reuseDOM",value:function(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),_r(er(e.prototype),"sync",this).call(this,i,r)}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&o.mark.eq(this.mark))||i&&a<=0||ri&&o.push(s=i&&(a=l),s=d,l++}}catch(f){c.e(f)}finally{c.f()}var h=this.length-i;return this.length=i,a>-1&&(this.children.length=a,this.markDirty()),new e(this.mark,o,h)}},{key:"domAtPos",value:function(i){return mde(this,i)}},{key:"coordsAt",value:function(i,r){return vde(this,i,r)}}]),e}();function V4(t,n,e){var i=t.nodeValue.length;n>i&&(n=i);var r=n,o=n,s=0;0==n&&e<0||n==i&&e>=0?si.chrome||si.gecko||(n?(r--,s=1):o=0)?0:a.length-1];return si.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,function(c){return c.width})||l),s?P4(l,s<0):l||null}var H4=function(t){Dt(e,Cs);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this)).widget=i,s.length=r,s.side=o,s.prevWidget=null,s}return Ie(e,[{key:"split",value:function(i){var r=e.create(this.widget,this.length-i,this.side);return this.length-=i,r}},{key:"sync",value:function(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0?o.length-1:0;s=o[a],!(i>0?0==a:a==o.length-1||s.top0?-1:1);return this.length?s:P4(s,this.side>0)}},{key:"isEditable",get:function(){return!1}},{key:"isWidget",get:function(){return!0}},{key:"destroy",value:function(){_r(er(e.prototype),"destroy",this).call(this),this.dom&&this.widget.destroy(this.dom)}}],[{key:"create",value:function(i,r,o){return new(i.customView||e)(i,r,o)}}]),e}(),fde=function(t){Dt(e,H4);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e,[{key:"domAtPos",value:function(i){var r=this.widget,o=r.topView,s=r.text;return o?U4(i,0,o,s,function(a,l){return a.domAtPos(l)},function(a){return new Pc(s,Math.min(a,s.nodeValue.length))}):new Pc(s,Math.min(i,s.nodeValue.length))}},{key:"sync",value:function(){this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(i,r){var o=this.widget,s=o.topView;return s?pde(i,r,s,o.text):Math.min(r,this.length)}},{key:"ignoreMutation",value:function(){return!1}},{key:"overrideDOMText",get:function(){return null}},{key:"coordsAt",value:function(i,r){var o=this.widget,s=o.topView,a=o.text;return s?U4(i,r,s,a,function(l,c,u){return l.coordsAt(c,u)},function(l,c){return V4(a,l,c)}):V4(a,i,r)}},{key:"destroy",value:function(){var i;_r(er(e.prototype),"destroy",this).call(this),null===(i=this.widget.topView)||void 0===i||i.destroy()}},{key:"isEditable",get:function(){return!0}},{key:"canReuseDOM",value:function(){return!0}}]),e}();function U4(t,n,e,i,r,o){if(e instanceof dg){for(var s=e.dom.firstChild;s;s=s.nextSibling){var a=Cs.get(s);if(!a)return o(t,n);var l=q0(s,i),c=a.length+(l?i.nodeValue.length:0);if(t=0;)if(a<0?c>0:c0?-1:1);return o&&o.topr.top?{left:r.left,right:r.right,top:o.top,bottom:o.bottom}:r}},{key:"overrideDOMText",get:function(){return mo.empty}}]),e}();function mde(t,n){for(var e=t.dom,i=t.children,r=0,o=0;ro&&n0;l--){var c=i[l-1];if(c.dom.parentNode==e)return c.domAtPos(c.length)}for(var u=r;u0&&n instanceof dg&&r.length&&(i=r[r.length-1])instanceof dg&&i.mark.eq(n.mark)?gde(i,n.children[0],e-1):(r.push(n),n.setParent(t)),t.length+=n.length}function vde(t,n,e){var i=null,r=-1,o=null,s=-1;!function l(c,u){for(var d=0,h=0;d=u&&(f.children.length?l(f,u-h):!o&&(p>u||h==p&&f.getSide()>0)?(o=f,s=u-h):(h-1}}],[{key:"mark",value:function(i){return new yde(i)}},{key:"widget",value:function(i){var r=i.side||0,o=!!i.block;return new Fb(i,r+=o?r>0?3e8:-4e8:r>0?1e8:-1e8,r,o,i.widget||null,!1)}},{key:"replace",value:function(i){var r,o,s=!!i.block;if(i.isBlockGap)r=-5e8,o=4e8;else{var a=_de(i,s);r=(a.start?s?-3e8:-1:5e8)-1,o=1+(a.end?s?2e8:1:-6e8)}return new Fb(i,r,o,s,i.widget||null,!0)}},{key:"line",value:function(i){return new Y4(i)}},{key:"set",value:function(i){return qo.of(i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),e}();Ci.none=qo.empty;var yde=function(t){Dt(e,Ci);var n=Tt(e);function e(i){var r;Oe(this,e);var o=_de(i);return(r=n.call(this,o.start?-1:5e8,o.end?1:-6e8,null,i)).tagName=i.tagName||"span",r.class=i.class||"",r.attrs=i.attributes||null,r}return Ie(e,[{key:"eq",value:function(i){return this==i||i instanceof e&&this.tagName==i.tagName&&this.class==i.class&&W4(this.attrs,i.attrs)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=r)throw new RangeError("Mark decorations may not be empty");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();yde.prototype.point=!1;var Y4=function(t){Dt(e,Ci);var n=Tt(e);function e(i){return Oe(this,e),n.call(this,-2e8,-2e8,null,i)}return Ie(e,[{key:"eq",value:function(i){return i instanceof e&&this.spec.class==i.spec.class&&W4(this.spec.attributes,i.spec.attributes)}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(r!=i)throw new RangeError("Line decoration ranges must be zero-length");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();Y4.prototype.mapMode=Ll.TrackBefore,Y4.prototype.point=!0;var Fb=function(t){Dt(e,Ci);var n=Tt(e);function e(i,r,o,s,a,l){var c;return Oe(this,e),(c=n.call(this,r,o,a,i)).block=s,c.isReplace=l,c.mapMode=s?r<=0?Ll.TrackBefore:Ll.TrackAfter:Ll.TrackDel,c}return Ie(e,[{key:"type",get:function(){return this.startSide=5}},{key:"eq",value:function(i){return i instanceof e&&((r=this.widget)==(o=i.widget)||!!(r&&o&&r.compare(o)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var r,o}},{key:"range",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>r||i==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return _r(er(e.prototype),"range",this).call(this,i,r)}}]),e}();function _de(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.inclusiveStart,i=t.inclusiveEnd;return null==e&&(e=t.inclusive),null==i&&(i=t.inclusive),{start:e??n,end:i??n}}function X4(t,n,e){var r=e.length-1;r>=0&&e[r]+(arguments.length>3&&void 0!==arguments[3]?arguments[3]:0)>=t?e[r]=Math.max(e[r],n):e.push(t,n)}Fb.prototype.point=!0;var ud=function(t){Dt(e,Cs);var n=Tt(e);function e(){var i;return Oe(this,e),(i=n.apply(this,arguments)).children=[],i.length=0,i.prevAttrs=void 0,i.attrs=null,i.breakAfter=0,i}return Ie(e,[{key:"merge",value:function(i,r,o,s,a,l){if(o){if(!(o instanceof e))return!1;this.dom||o.transferDOM(this)}return s&&this.setDeco(o?o.attrs:null),ade(this,i,r,o?o.children:[],a,l),!0}},{key:"split",value:function(i){var r=new e;if(r.breakAfter=this.breakAfter,0==this.length)return r;var o=this.childPos(i),s=o.i,a=o.off;a&&(r.append(this.children[s].split(a),0),this.children[s].merge(a,this.children[s].length,null,!1,0,0),s++);for(var l=s;l0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,r}},{key:"transferDOM",value:function(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(i){W4(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}},{key:"append",value:function(i,r){gde(this,i,r)}},{key:"addLineDeco",value:function(i){var r=i.spec.attributes,o=i.spec.class;r&&(this.attrs=G4(r,this.attrs||{})),o&&(this.attrs=G4({class:o},this.attrs||{}))}},{key:"domAtPos",value:function(i){return mde(this,i)}},{key:"reuseDOM",value:function(i){"DIV"==i.nodeName&&(this.setDOM(i),this.dirty|=6)}},{key:"sync",value:function(i,r){var o;this.dom?4&this.dirty&&(ide(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(q4(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),_r(er(e.prototype),"sync",this).call(this,i,r);for(var s=this.dom.lastChild;s&&Cs.get(s)instanceof dg;)s=s.lastChild;if(!(s&&this.length&&("BR"==s.nodeName||0!=(null===(o=Cs.get(s))||void 0===o?void 0:o.isEditable)||si.ios&&this.children.some(function(l){return l instanceof Nb})))){var a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var i,r=0,o=He(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!(s instanceof Nb)||/[^ -~]/.test(s.text))return null;var a=Ob(s.dom);if(1!=a.length)return null;r+=a[0].width}}catch(l){o.e(l)}finally{o.f()}return r?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:r/this.length}:null}},{key:"coordsAt",value:function(i,r){return vde(this,i,r)}},{key:"become",value:function(i){return!1}},{key:"type",get:function(){return So.Text}}],[{key:"find",value:function(i,r){for(var o=0,s=0;o=r){if(a instanceof e)return a;if(l>r)break}s=l+a.breakAfter}return null}}]),e}(),J4=function(t){Dt(e,Cs);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this)).widget=i,s.length=r,s.type=o,s.breakAfter=0,s.prevWidget=null,s}return Ie(e,[{key:"merge",value:function(i,r,o,s,a,l){return!(o&&(!(o instanceof e&&this.widget.compare(o.widget))||i>0&&a<=0||r0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(Kk(new z4(-1),n),n.length),this.pendingBuffer=0)}},{key:"addBlockWidget",value:function(n){this.flushBuffer(),this.curLine=null,this.content.push(n)}},{key:"finish",value:function(n){this.pendingBuffer&&n<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}},{key:"buildText",value:function(n,e,i){for(;n>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),o=r.value,s=r.lineBreak,a=r.done;if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,n--;continue}this.text=o,this.textOff=0}var l=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(Kk(new Nb(this.text.slice(this.textOff,this.textOff+l)),e),i),this.atCursorPos=!0,this.textOff+=l,n-=l,i=0}}},{key:"span",value:function(n,e,i,r){this.buildText(e-n,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(n,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof Fb){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}var a=e-n;if(i instanceof Fb)if(i.block){var l=i.type;l!=So.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new J4(i.widget||new bde("div"),a,l))}else{var c=H4.create(i.widget||new bde("span"),a,a?0:i.startSide),u=this.atCursorPos&&!c.isEditable&&o<=r.length&&(n0),d=!c.isEditable&&(nr.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||u||(this.pendingBuffer=0),this.flushBuffer(r),u&&(h.append(Kk(new z4(1),r),o),o=r.length+Math.max(0,o-r.length)),h.append(Kk(c,r),o),this.atCursorPos=d,this.pendingBuffer=d?nr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}}],[{key:"build",value:function(n,e,i,r,o){var s=new t(n,e,i,o);return s.openEnd=qo.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}]),t}();function Kk(t,n){var e,i=He(n);try{for(i.s();!(e=i.n()).done;)t=new dg(e.value,[t],t.length)}catch(o){i.e(o)}finally{i.f()}return t}var bde=function(t){Dt(e,Op);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).tag=i,r}return Ie(e,[{key:"eq",value:function(i){return i.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(i){return i.nodeName.toLowerCase()==this.tag}}]),e}(),xde=oi.define(),wde=oi.define(),Cde=oi.define(),Sde=oi.define(),K4=oi.define(),kde=oi.define(),Dde=oi.define(),Tde=oi.define({combine:function(t){return t.some(function(n){return n})}}),Ede=oi.define({combine:function(t){return t.some(function(n){return n})}}),Ade=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5;Oe(this,t),this.range=n,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o}return Ie(t,[{key:"map",value:function(n){return n.empty?this:new t(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}]),t}(),Mde=gr.define({map:function(t,n){return t.map(n)}});function jc(t,n,e){var i=t.facet(Sde);i.length?i[0](n):window.onerror?window.onerror(String(n),e,void 0,void 0,n):e?console.error(e+":",n):console.error(n)}var Qk=oi.define({combine:function(t){return!t.length||t[0]}}),Ket=0,Pb=oi.define(),Ia=function(){function t(n,e,i,r){Oe(this,t),this.id=n,this.create=e,this.domEventHandlers=i,this.extension=r(this)}return Ie(t,null,[{key:"define",value:function(n,e){var i=e||{},o=i.provide,s=i.decorations;return new t(Ket++,n,i.eventHandlers,function(a){var l=[Pb.of(a)];return s&&l.push(Rb.of(function(c){var u=c.plugin(a);return u?s(u):Ci.none})),o&&l.push(o(a)),l})}},{key:"fromClass",value:function(n,e){return t.define(function(i){return new n(i)},e)}}]),t}(),Q4=function(){function t(n){Oe(this,t),this.spec=n,this.mustUpdate=null,this.value=null}return Ie(t,[{key:"update",value:function(n){if(this.value){if(this.mustUpdate){var e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(jc(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(i){jc(n.state,i,"CodeMirror plugin crashed"),this.deactivate()}return this}},{key:"destroy",value:function(n){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(i){jc(n.state,i,"CodeMirror plugin crashed")}}},{key:"deactivate",value:function(){this.spec=this.value=null}}]),t}(),Ode=oi.define(),Z4=oi.define(),Rb=oi.define(),Ide=oi.define(),Nde=oi.define(),jb=oi.define(),K0=function(){function t(n,e,i,r){Oe(this,t),this.fromA=n,this.toA=e,this.fromB=i,this.toB=r}return Ie(t,[{key:"join",value:function(n){return new t(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}},{key:"addToSet",value:function(n){for(var e=n.length,i=this;e>0;e--){var r=n[e-1];if(!(r.fromA>i.toA)){if(r.toAu)break;o+=2}if(!l)return i;new t(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}]),t}(),Fde=function(){function t(n,e,i){Oe(this,t),this.view=n,this.state=e,this.transactions=i,this.flags=0,this.startState=n.state,this.changes=cd.empty(this.startState.doc.length);var r,o=He(i);try{for(o.s();!(r=o.n()).done;)this.changes=this.changes.compose(r.value.changes)}catch(l){o.e(l)}finally{o.f()}var a=[];this.changes.iterChangedRanges(function(l,c,u,d){return a.push(new K0(l,c,u,d))}),this.changedRanges=a}return Ie(t,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(10&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"selectionSet",get:function(){return this.transactions.some(function(n){return n.selection})}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}],[{key:"create",value:function(n,e,i){return new t(n,e,i)}}]),t}(),cs=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(cs||(cs={})),eR=cs.LTR,Qet=cs.RTL;function Pde(t){for(var n=[],e=0;e=e){if(a.level==i)return s;(o<0||(0!=r?r<0?a.frome:n[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}]),t}(),us=[];function $de(t){return[new Q0(0,t,0)]}var Vde="";function itt(t,n,e,i,r){var o,s=i.head-t.from,a=-1;if(0==s){if(!r||!t.length)return null;n[0].level!=e&&(s=n[0].side(!1,e),a=0)}else if(s==t.length){if(r)return null;var l=n[n.length-1];l.level!=e&&(s=l.side(!0,e),a=n.length-1)}a<0&&(a=Q0.find(n,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));var c=n[a];s==c.side(r,e)&&(s=(c=n[a+=r?1:-1]).side(!r,e));var u=r==(c.dir==e),d=jl(t.text,s,u);if(Vde=t.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(r,e))return rn.cursor(d+t.from,u?-1:1,c.level);var h=a==(r?n.length-1:0)?null:n[a+(r?1:-1)];return h||c.level==e?h&&h.level1){var d,h=He(this.points);try{for(h.s();!(d=h.n()).done;){var f=d.value;f.node==n&&f.pos>this.text.length&&(f.pos-=c-1)}}catch(p){h.e(p)}finally{h.f()}}s=l+c}}},{key:"readNode",value:function(n){if(!n.cmIgnore){var e=Cs.get(n),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(n,i.length);for(var r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==n.nodeType?this.readTextNode(n):"BR"==n.nodeName?n.nextSibling&&this.lineBreak():1==n.nodeType&&this.readRange(n.firstChild,null)}}},{key:"findPointBefore",value:function(n,e){var i,r=He(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.node==n&&n.childNodes[o.offset]==e&&(o.pos=this.text.length)}}catch(s){r.e(s)}finally{r.f()}}},{key:"findPointInside",value:function(n,e){var i,r=He(this.points);try{for(r.s();!(i=r.n()).done;){var o=i.value;(3==n.nodeType?o.node==n:n.contains(o.node))&&(o.pos=this.text.length+Math.min(e,o.offset))}}catch(s){r.e(s)}finally{r.f()}}}]),t}();function Ude(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}var zde=Ie(function t(n,e){Oe(this,t),this.node=n,this.offset=e,this.pos=-1}),Gde=function(t){Dt(e,Cs);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).view=i,r.compositionDeco=Ci.none,r.decorations=[],r.dynamicDecorationMap=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.forceSelection=!1,r.lastUpdate=Date.now(),r.setDOM(i.contentDOM),r.children=[new ud],r.children[0].setParent(Fn(r)),r.updateDeco(),r.updateInner([new K0(0,0,0,i.state.doc.length)],0),r}return Ie(e,[{key:"length",get:function(){return this.view.state.doc.length}},{key:"update",value:function(i){var r=this,o=i.changedRanges;this.minWidth>0&&o.length&&(o.every(function(a){return a.toAr.minWidthTo})?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Ci.none:(i.transactions.length||this.dirty)&&(this.compositionDeco=function(a,l){var c=qde(a);if(!c)return Ci.none;var d=c.to,h=c.node,f=c.text,p=l.mapPos(c.from,1),m=Math.max(p,l.mapPos(d,-1)),g=a.state,v=3==h.nodeType?h.nodeValue:new Hde([],g).readRange(h.firstChild,null).text;if(m-p=0?i[s]:null;if(!a)break;var l=a.fromA,c=a.toA,h=Jet.build(this.view.state.doc,a.fromB,a.toB,this.decorations,this.dynamicDecorationMap),f=h.content,p=h.breakAtStart,m=h.openStart,g=h.openEnd,v=o.findPos(c,1),y=v.i,b=v.off,C=o.findPos(l,-1);sde(this,C.i,C.off,y,b,f,p,m,g)}}},{key:"updateSelection",value:function(){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),o||this.mayControlSelection()){var s=this.forceSelection;this.forceSelection=!1;var a=this.view.state.selection.main,l=this.domAtPos(a.anchor),c=a.empty?l:this.domAtPos(a.head);if(si.gecko&&a.empty&&function rtt(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(l)){var u=document.createTextNode("");this.view.observer.ignore(function(){return l.node.insertBefore(u,l.node.childNodes[l.offset]||null)}),l=c=new Pc(u,0),s=!0}var d=this.view.observer.selectionRange;!s&&d.focusNode&&Yk(l.node,l.offset,d.anchorNode,d.anchorOffset)&&Yk(c.node,c.offset,d.focusNode,d.focusOffset)||(this.view.observer.ignore(function(){si.android&&si.chrome&&i.dom.contains(d.focusNode)&&function ltt(t,n){for(var e=t;e&&e!=n;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,i.dom)&&(i.dom.blur(),i.dom.focus({preventScroll:!0}));var h=Wk(i.view.root);if(h)if(a.empty){if(si.gecko){var f=function stt(t,n){return 1!=t.nodeType?0:(n&&"false"==t.childNodes[n-1].contentEditable?1:0)|(na.head){var g=[c,l];l=g[0],c=g[1]}m.setEnd(c.node,c.offset),m.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(m)}}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Pc(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new Pc(d.focusNode,d.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){if(!this.compositionDeco.size){var i=this.view,r=i.state.selection.main,o=Wk(i.root),s=i.observer.selectionRange,a=s.anchorNode,l=s.anchorOffset;if(o&&r.empty&&r.assoc&&o.modify){var c=ud.find(this,r.head);if(c){var u=c.posAtStart;if(r.head!=u&&r.head!=u+c.length){var d=this.coordsAt(r.head,-1),h=this.coordsAt(r.head,1);if(d&&h&&!(d.bottom>h.top)){var f=this.domAtPos(r.head+r.assoc);o.collapse(f.node,f.offset),o.modify("move",r.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();var p=i.observer.selectionRange;i.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=r.from&&o.collapse(a,l)}}}}}}},{key:"mayControlSelection",value:function(){var i=this.view.root.activeElement;return i==this.dom||qk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i))}},{key:"nearest",value:function(i){for(var r=i;r;){var o=Cs.get(r);if(o&&o.rootView==this)return o;r=r.parentNode}return null}},{key:"posFromDOM",value:function(i,r){var o=this.nearest(i);if(!o)throw new RangeError("Trying to find position for a DOM position outside of the document");return o.localPosFromDOM(i,r)+o.posAtStart}},{key:"domAtPos",value:function(i){for(var r=this.childCursor().findPos(i,-1),o=r.i,s=r.off;ol||i==l&&a.type!=So.WidgetBefore&&a.type!=So.WidgetAfter&&(!s||2==r||this.children[s-1].breakAfter||this.children[s-1].type==So.WidgetBefore&&r>-2))return a.coordsAt(i-l,r);o=l}}},{key:"measureVisibleLineHeights",value:function(i){for(var r=[],o=i.from,s=i.to,a=this.view.contentDOM.clientWidth,l=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,c=-1,u=this.view.textDirection==cs.LTR,d=0,h=0;hs)break;if(d>=o){var m=f.dom.getBoundingClientRect();if(r.push(m.height),l){var g=f.dom.lastChild,v=g?Ob(g):[];if(v.length){var y=v[v.length-1],b=u?y.right-m.left:m.right-y.left;b>c&&(c=b,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=p)}}}d=p+f.breakAfter}return r}},{key:"textDirectionAt",value:function(i){var r=this.childPos(i,1).i;return"rtl"==getComputedStyle(this.children[r].dom).direction?cs.RTL:cs.LTR}},{key:"measureTextSize",value:function(){var i,r=this,o=He(this.children);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s instanceof ud){var a=s.measureTextSize();if(a)return a}}}catch(d){o.e(d)}finally{o.f()}var l,c,u=document.createElement("div");return u.className="cm-line",u.style.width="99999px",u.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(function(){r.dom.appendChild(u);var d=Ob(u.firstChild)[0];l=u.getBoundingClientRect().height,c=d?d.width/27:7,u.remove()}),{lineHeight:l,charWidth:c}}},{key:"childCursor",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,r=this.children.length;return r&&(i-=this.children[--r].length),new ode(this.children,i,r)}},{key:"computeBlockGapDeco",value:function(){for(var i=[],r=this.view.viewState,o=0,s=0;;s++){var a=s==r.viewports.length?null:r.viewports[s],l=a?a.from-1:this.length;if(l>o){var c=r.lineBlockAt(l).bottom-r.lineBlockAt(o).top;i.push(Ci.replace({widget:new Wde(c),block:!0,inclusive:!0,isBlockGap:!0}).range(o,l))}if(!a)break;o=a.to+1}return Ci.set(i)}},{key:"updateDeco",value:function(){for(var i=this,r=this.view.state.facet(Rb).map(function(s,a){return(i.dynamicDecorationMap[a]="function"==typeof s)?s(i.view):s}),o=r.length;os.anchor?-1:1);if(a){!s.empty&&(r=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(a={left:Math.min(a.left,r.left),top:Math.min(a.top,r.top),right:Math.max(a.right,r.right),bottom:Math.max(a.bottom,r.bottom)});var l,c=0,u=0,d=0,h=0,f=He(this.view.state.facet(Nde).map(function(C){return C(o.view)}));try{for(f.s();!(l=f.n()).done;){var p=l.value;if(p){var m=p.left,g=p.right,v=p.top,y=p.bottom;null!=m&&(c=Math.max(c,m)),null!=g&&(u=Math.max(u,g)),null!=v&&(d=Math.max(d,v)),null!=y&&(h=Math.max(h,y))}}}catch(C){f.e(C)}finally{f.f()}!function(C,D,E,B,z,j,U,G){for(var X=C.ownerDocument,oe=X.defaultView||window,P=C;P;)if(1==P.nodeType){var W=void 0,J=P==X.body;if(J)W=qet(oe);else{if(P.scrollHeight<=P.clientHeight&&P.scrollWidth<=P.clientWidth){P=P.assignedSlot||P.parentNode;continue}var H=P.getBoundingClientRect();W={left:H.left,right:H.left+P.clientWidth,top:H.top,bottom:H.top+P.clientHeight}}var pe=0,A=0;if("nearest"==z)D.top0&&D.bottom>W.bottom+A&&(A=D.bottom-W.bottom+A+U)):D.bottom>W.bottom&&(A=D.bottom-W.bottom+U,E<0&&D.top-A0&&D.right>W.right+pe&&(pe=D.right-W.right+pe+j)):D.right>W.right&&(pe=D.right-W.right+j,E<0&&D.left0&&e<=0)n=Ib(t=t.childNodes[n-1]);else{if(!(1==t.nodeType&&n=0))return null;t=t.childNodes[n],n=0}}}var att=function(){function t(){Oe(this,t),this.changes=[]}return Ie(t,[{key:"compareRange",value:function(n,e){X4(n,e,this.changes)}},{key:"comparePoint",value:function(n,e){X4(n,e,this.changes)}}]),t}();function ctt(t,n){return n.left>t?n.left-t:Math.max(0,t-n.right)}function utt(t,n){return n.top>t?n.top-t:Math.max(0,t-n.bottom)}function iR(t,n){return t.topn.top+1}function Xde(t,n){return nt.bottom?{top:t.top,left:t.left,right:t.right,bottom:n}:t}function rR(t,n,e){for(var i,r,o,s,a,l,c,u,d=!1,h=t.firstChild;h;h=h.nextSibling)for(var f=Ob(h),p=0;pv||s==v&&o>g){i=h,r=m,o=g,s=v;var y=v?e0?p0)}0==g?e>m.bottom&&(!c||c.bottomm.top)&&(l=h,u=m):c&&iR(c,m)?c=Jde(c,m.bottom):u&&iR(u,m)&&(u=Xde(u,m.top))}if(c&&c.bottom>=e?(i=a,r=c):u&&u.top<=e&&(i=l,r=u),!i)return{node:t,offset:0};var b=Math.max(r.left,Math.min(r.right,n));return 3==i.nodeType?Kde(i,b,e):d&&"false"!=i.contentEditable?rR(i,b,e):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(n>=(r.left+r.right)/2?1:0)}}function Kde(t,n,e){for(var i=t.nodeValue.length,r=-1,o=1e9,s=0,a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=n&&u.right+1>=n&&d=(u.left+u.right)/2,f=h;if((si.chrome||si.gecko)&&X0(t,a).getBoundingClientRect().left==u.right&&(f=!h),d<=0)return{node:t,offset:a+(f?1:0)};r=a+(f?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function Qde(t,n,e){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l=t.viewState.docHeight,c=n.x,u=n.y,d=u-a;if(d<0)return 0;if(d>l)return t.state.doc.length;for(var h=t.defaultLineHeight/2,f=!1;(r=t.elementAtHeight(d)).type!=So.Text;)for(;!((d=o>0?r.bottom+h:r.top-h)>=0&&d<=l);){if(f)return e?null:0;f=!0,o=-o}u=a+d;var p=r.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:e?null:Zde(t,s,r,c,u);var m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(c,u);v&&!t.contentDOM.contains(v)&&(v=null),v||(c=Math.max(s.left+1,Math.min(s.right-1,c)),(v=g.elementFromPoint(c,u))&&!t.contentDOM.contains(v)&&(v=null));var y,b=-1;if(v&&0!=(null===(i=t.docView.nearest(v))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){var C=m.caretPositionFromPoint(c,u);C&&(y=C.offsetNode,b=C.offset)}else if(m.caretRangeFromPoint){var D=m.caretRangeFromPoint(c,u);D&&(b=D.startOffset,(!t.contentDOM.contains(y=D.startContainer)||si.safari&&function dtt(t,n,e){var i;if(3!=t.nodeType||n!=(i=t.nodeValue.length))return!1;for(var r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return X0(t,i-1,i).getBoundingClientRect().left>e}(y,b,c)||si.chrome&&function htt(t,n,e){if(0!=n)return!1;for(var i=t;;){var r=i.parentNode;if(!r||1!=r.nodeType||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}return e-(1==t.nodeType?t.getBoundingClientRect():X0(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,b,c))&&(y=void 0))}if(!y||!t.docView.dom.contains(y)){var E=ud.find(t.docView,p);if(!E)return d>r.top+r.height/2?r.to:r.from;var B=rR(E.dom,c,u);y=B.node,b=B.offset}var z=t.docView.nearest(y);if(!z)return null;if(z.isWidget){var j=z.dom.getBoundingClientRect();return n.y1.5*t.defaultLineHeight&&(o+=Math.floor((r-e.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);var s=t.state.sliceDoc(e.from,e.to);return e.from+I4(s,o,t.state.tabSize)}function ehe(t,n,e,i){for(var r=t.state.doc.lineAt(n.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from),a=n,l=null;;){var c=itt(r,o,s,a,e),u=Vde;if(!c){if(r.number==(e?t.state.doc.lines:1))return a;u="\n",r=t.state.doc.line(r.number+(e?1:-1)),o=t.bidiSpans(r),c=rn.cursor(e?r.from:r.to)}if(l){if(!l(u))return a}else{if(!i)return c;l=i(u)}a=c}}function oR(t,n,e){for(var i=t.state.facet(Ide).map(function(a){return a(t)});;){var r,o=!1,s=He(i);try{for(s.s();!(r=s.n()).done;)r.value.between(e.from-1,e.from+1,function(a,l,c){e.from>a&&e.frome.from?rn.cursor(a,1):rn.cursor(l,-1),o=!0)})}catch(a){s.e(a)}finally{s.f()}if(!o)return e}}var ptt=function(){function t(n){var e=this;Oe(this,t),this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;var i=function(s,a){e.ignoreDuringComposition(a)||"keydown"==a.type&&e.keydown(n,a)||(e.mustFlushObserver(a)&&n.observer.forceFlush(),e.runCustomHandlers(a.type,n,a)?a.preventDefault():s(n,a))},r=function(s){var a=_a[s];n.contentDOM.addEventListener(s,function(l){ihe(n,l)&&i(a,l)},sR[s]),e.registeredEvents.push(s)};for(var o in _a)r(o);n.scrollDOM.addEventListener("mousedown",function(s){s.target==n.scrollDOM&&s.clientY>n.contentDOM.getBoundingClientRect().bottom&&i(_a.mousedown,s)}),si.chrome&&102==si.chrome_version&&n.scrollDOM.addEventListener("wheel",function(){e.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(e.chromeScrollHack),e.chromeScrollHack=setTimeout(function(){e.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,si.safari&&n.contentDOM.addEventListener("input",function(){return null})}return Ie(t,[{key:"setSelectionOrigin",value:function(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(n,e){var i,r,o=this;this.customHandlers=[];var s,a=He(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(r=null===(i=l.update(n).spec)||void 0===i?void 0:i.domEventHandlers){this.customHandlers.push({plugin:l.value,handlers:r});var c=function(d){o.registeredEvents.indexOf(d)<0&&"scroll"!=d&&(o.registeredEvents.push(d),n.contentDOM.addEventListener(d,function(h){ihe(n,h)&&o.runCustomHandlers(d,n,h)&&h.preventDefault()}))};for(var u in r)c(u)}}}catch(d){a.e(d)}finally{a.f()}}},{key:"runCustomHandlers",value:function(n,e,i){var r,o=He(this.customHandlers);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=s.handlers[n];if(a)try{if(a.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(l){jc(e.state,l)}}}catch(l){o.e(l)}finally{o.f()}return!1}},{key:"runScrollHandlers",value:function(n,e){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;var i,r=He(this.customHandlers);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.handlers.scroll;if(s)try{s.call(o.plugin,e,n)}catch(a){jc(n.state,a)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"keydown",value:function(n,e){var i,r=this;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()-1&&e.ctrlKey&&!e.shiftKey)||(this.pendingIOSKey=i||e,setTimeout(function(){return r.flushIOSKey(n)},250),0)):(n.observer.delayAndroidKey(e.key,e.keyCode),!0))}},{key:"flushIOSKey",value:function(n){var e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,J0(n.contentDOM,e.key,e.keyCode))}},{key:"ignoreDuringComposition",value:function(n){return!!/^key/.test(n.type)&&(this.composing>0||!!(si.safari&&!si.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(n){return"keydown"==n.type&&229!=n.keyCode}},{key:"startMouseSelection",value:function(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}},{key:"update",value:function(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),t}(),the=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],mtt="dthko",nhe=[16,17,18,20,91,92,224,225];function Zk(t){return.7*t+8}var gtt=function(){function t(n,e,i,r){Oe(this,t),this.view=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(s){for(var a=s.ownerDocument,l=s.parentNode;l&&l!=a.body;)if(1==l.nodeType){if(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)return l;l=l.assignedSlot||l.parentNode}else{if(11!=l.nodeType)break;l=l.host}return null}(n.contentDOM);var a,l,o=n.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=n.state.facet(Fo.allowMultipleSelections)&&(a=e,(l=n.state.facet(xde)).length?l[0](a):si.mac?a.metaKey:a.ctrlKey),this.dragMove=function(s,a){var l=s.state.facet(wde);return l.length?l[0](a):si.mac?!a.altKey:!a.ctrlKey}(n,e),this.dragging=!(!function(s,a){if(s.state.selection.main.empty)return!1;var l=Wk(s.root);if(!l||0==l.rangeCount)return!0;for(var c=l.getRangeAt(0).getClientRects(),u=0;u=a.clientX&&d.top<=a.clientY&&d.bottom>=a.clientY)return!0}return!1}(n,e)||1!=fhe(e))&&null}return Ie(t,[{key:"start",value:function(n){!1===this.dragging&&(n.preventDefault(),this.select(n))}},{key:"move",value:function(n){var e;if(0==n.buttons)return this.destroy();if(!1===this.dragging){this.select(this.lastEvent=n);var i=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};n.clientX<=o.left?i=-Zk(o.left-n.clientX):n.clientX>=o.right&&(i=Zk(n.clientX-o.right)),n.clientY<=o.top?r=-Zk(o.top-n.clientY):n.clientY>=o.bottom&&(r=Zk(n.clientY-o.bottom)),this.setScrollSpeed(i,r)}}},{key:"up",value:function(n){null==this.dragging&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}},{key:"destroy",value:function(){this.setScrollSpeed(0,0);var n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}},{key:"setScrollSpeed",value:function(n,e){var i=this;this.scrollSpeed={x:n,y:e},n||e?this.scrolling<0&&(this.scrolling=setInterval(function(){return i.scroll()},50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}},{key:"scroll",value:function(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}},{key:"select",value:function(n){var e=this.style.get(n,this.extend,this.multiple);!this.mustSelect&&e.eq(this.view.state.selection)&&e.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}},{key:"update",value:function(n){var e=this;n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(function(){return e.select(e.lastEvent)},20)}}]),t}();function ihe(t,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(var e,i=n.target;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(e=Cs.get(i))&&e.ignoreEvent(n))return!1;return!0}var _a=Object.create(null),sR=Object.create(null),rhe=si.ie&&si.ie_version<15||si.ios&&si.webkit_version<604;function ohe(t,n){var e,i=t.state,r=1,o=i.toText(n),s=o.lines==i.selection.ranges.length;if(null!=aR&&i.selection.ranges.every(function(c){return c.empty})&&aR==o.toString()){var l=-1;e=i.changeByRange(function(c){var u=i.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;var d=i.toText((s?o.line(r++).text:n)+i.lineBreak);return{changes:{from:u.from,insert:d},range:rn.cursor(c.from+d.length)}})}else e=s?i.changeByRange(function(c){var u=o.line(r++);return{changes:{from:c.from,to:c.to,insert:u.text},range:rn.cursor(c.from+u.length)}}):i.replaceSelection(o);t.dispatch(e,{userEvent:"input.paste",scrollIntoView:!0})}function she(t,n,e,i){if(1==i)return rn.cursor(n,e);if(2==i)return function(l,c){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=l.charCategorizer(c),h=l.doc.lineAt(c),f=c-h.from;if(0==h.length)return rn.cursor(c);0==f?u=1:f==h.length&&(u=-1);var p=f,m=f;u<0?p=jl(h.text,f,!1):m=jl(h.text,f);for(var g=d(h.text.slice(p,m));p>0;){var v=jl(h.text,p,!1);if(d(h.text.slice(v,p))!=g)break;p=v}for(;mDate.now()-2e3)){var e,i=null,r=He(t.state.facet(Cde));try{for(r.s();!(e=r.n()).done&&!(i=(0,e.value)(t,n)););}catch(s){r.e(s)}finally{r.f()}if(i||0!=n.button||(l=che(s=t,a=n),c=fhe(a),u=s.state.selection,i={update:function(d){d.docChanged&&(l.pos=d.changes.mapPos(l.pos),u=u.map(d.changes))},get:function(d,h,f){var p=che(s,d),m=she(s,p.pos,p.bias,c);if(l.pos!=p.pos&&!h){var g=she(s,l.pos,l.bias,c),v=Math.min(g.from,m.from),y=Math.max(g.to,m.to);m=v1&&u.ranges.some(function(b){return b.eq(m)})?function(b,C){for(var D=0;;D++)if(b.ranges[D].eq(C))return rn.create(b.ranges.slice(0,D).concat(b.ranges.slice(D+1)),b.mainIndex==D?0:b.mainIndex-(b.mainIndex>D?1:0))}(u,m):f?u.addRange(m):rn.create([m])}}),i){var o=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new gtt(t,n,i,o)),o&&t.observer.ignore(function(){return nde(t.contentDOM)}),t.inputState.mouseSelection&&t.inputState.mouseSelection.start(n)}}var s,a,l,c,u};var ahe=function(t,n){return t>=n.top&&t<=n.bottom},lhe=function(t,n,e){return ahe(n,e)&&t>=e.left&&t<=e.right};function vtt(t,n,e,i){var r=ud.find(t.docView,n);if(!r)return 1;var o=n-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;var s=r.coordsAt(o,-1);if(s&&lhe(e,i,s))return-1;var a=r.coordsAt(o,1);return a&&lhe(e,i,a)?1:s&&ahe(i,s)?-1:1}function che(t,n){var e=t.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:e,bias:vtt(t,e,n.clientX,n.clientY)}}var ytt=si.ie&&si.ie_version<=11,uhe=null,dhe=0,hhe=0;function fhe(t){if(!ytt)return t.detail;var n=uhe,e=hhe;return uhe=t,hhe=Date.now(),dhe=!n||e>Date.now()-400&&Math.abs(n.clientX-t.clientX)<2&&Math.abs(n.clientY-t.clientY)<2?(dhe+1)%3:1}function phe(t,n,e,i){if(e){var r=t.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();var o=t.inputState.mouseSelection,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:e},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}}_a.dragstart=function(t,n){var e=t.state.selection.main,i=t.inputState.mouseSelection;i&&(i.dragging=e),n.dataTransfer&&(n.dataTransfer.setData("Text",t.state.sliceDoc(e.from,e.to)),n.dataTransfer.effectAllowed="copyMove")},_a.drop=function(t,n){if(n.dataTransfer){if(t.state.readOnly)return n.preventDefault();var e=n.dataTransfer.files;e&&e.length?function(){n.preventDefault();for(var i=Array(e.length),r=0,o=function(){++r==e.length&&phe(t,n,i.filter(function(l){return null!=l}).join(t.state.lineBreak),!1)},s=function(l){var c=new FileReader;c.onerror=o,c.onload=function(){/[\x00-\x08\x0e-\x1f]{2}/.test(c.result)||(i[l]=c.result),o()},c.readAsText(e[l])},a=0;am&&(c.push(y.text),u.push({from:y.from,to:Math.min(a.doc.length,y.to+1)})),m=y.number}}catch(b){g.e(b)}finally{g.f()}d=!0}return{text:c.join(a.lineBreak),ranges:u,linewise:d}}(t.state),i=e.text,r=e.ranges,o=e.linewise;if(i||o){aR=o?i:null;var s=rhe?null:n.clipboardData;s?(n.preventDefault(),s.clearData(),s.setData("text/plain",i)):function(a,l){var c=a.dom.parentNode;if(c){var u=c.appendChild(document.createElement("textarea"));u.style.cssText="position: fixed; left: -10000px; top: 10px",u.value=l,u.focus(),u.selectionEnd=l.length,u.selectionStart=0,setTimeout(function(){u.remove(),a.focus()},50)}}(t,i),"cut"!=n.type||t.state.readOnly||t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})}};var mhe=Ep.define();function ghe(t,n){var e,i=[],r=He(t.facet(Dde));try{for(r.s();!(e=r.n()).done;){var o=(0,e.value)(t,n);o&&i.push(o)}}catch(s){r.e(s)}finally{r.f()}return i?t.update({effects:i,annotations:mhe.of(!0)}):null}function vhe(t){setTimeout(function(){var n=t.hasFocus;if(n!=t.inputState.notifiedFocused){var e=ghe(t.state,n);e?t.dispatch(e):t.update([])}},10)}_a.focus=function(t){t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),vhe(t)},_a.blur=function(t){t.observer.clearSelectionRange(),vhe(t)},_a.compositionstart=_a.compositionupdate=function(t){null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},_a.compositionend=function(t){t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,si.chrome&&si.android&&t.observer.flushSoon(),setTimeout(function(){t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},_a.contextmenu=function(t){t.inputState.lastContextMenu=Date.now()},_a.beforeinput=function(t,n){var e,i;if(si.chrome&&si.android&&(i=the.find(function(o){return o.inputType==n.inputType}))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){var r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(function(){var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};var yhe=["pre-wrap","normal","pre-line","break-spaces"],_tt=function(){function t(n){Oe(this,t),this.lineWrapping=n,this.doc=mo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Ie(t,[{key:"heightForGap",value:function(n,e){var i=this.doc.lineAt(e).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-n-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}},{key:"heightForLine",value:function(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(n){return this.doc=n,this}},{key:"mustRefreshForWrapping",value:function(n){return yhe.indexOf(n)>-1!=this.lineWrapping}},{key:"mustRefreshForHeights",value:function(n){for(var e=!1,i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.lineLength=r,a){this.heightSamples={};for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:2;Oe(this,t),this.length=n,this.height=e,this.flags=i}return Ie(t,[{key:"outdated",get:function(){return(2&this.flags)>0},set:function(n){this.flags=(n?2:0)|-3&this.flags}},{key:"setHeight",value:function(n,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(n.heightChanged=!0),this.height=e)}},{key:"replace",value:function(n,e,i){return t.of(i)}},{key:"decomposeLeft",value:function(n,e){e.push(this)}},{key:"decomposeRight",value:function(n,e){e.push(this)}},{key:"applyChanges",value:function(n,e,i,r){for(var o=this,s=i.doc,a=r.length-1;a>=0;a--){var l=r[a],c=l.fromA,u=l.toA,d=l.fromB,h=l.toB,f=o.lineAt(c,Yo.ByPosNoHeight,i.setDoc(e),0,0),p=f.to>=u?f:o.lineAt(u,Yo.ByPosNoHeight,i,0,0);for(h+=p.to-u,u=p.to;a>0&&f.from<=r[a-1].toA;)c=r[a-1].fromA,d=r[a-1].fromB,a--,c2*o){var s=n[e-1];s.break?n.splice(--e,1,s.left,null,s.right):n.splice(--e,1,s.left,s.right),i+=1+s.break,r-=s.size}else{if(!(o>2*r))break;var a=n[i];a.break?n.splice(i,1,a.left,null,a.right):n.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else if(r=a&&l(this.blockAt(0,o,s,a))}},{key:"updateHeight",value:function(i){var o=arguments.length>3?arguments[3]:void 0;return o&&o.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&o.more&&this.setHeight(i,o.heights[o.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),e}(),mh=function(t){Dt(e,_he);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this,i,r,So.Text)).collapsed=0,o.widgetHeight=0,o}return Ie(e,[{key:"replace",value:function(i,r,o){var s=o[0];return 1==o.length&&(s instanceof e||s instanceof Z0&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof Z0?s=new e(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):dd.of(o)}},{key:"updateHeight",value:function(i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)&&s.more?this.setHeight(i,s.heights[s.index++]):(o||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),e}(),Z0=function(t){Dt(e,dd);var n=Tt(e);function e(i){return Oe(this,e),n.call(this,i,0)}return Ie(e,[{key:"heightMetrics",value:function(i,r){var o,s=i.doc.lineAt(r).number,a=i.doc.lineAt(r+this.length).number,l=a-s+1,c=0;if(i.lineWrapping){var u=Math.min(this.height,i.lineHeight*l);o=u/l,c=(this.height-u)/(this.length-l-1)}else o=this.height/l;return{firstLine:s,lastLine:a,perLine:o,perChar:c}}},{key:"blockAt",value:function(i,r,o,s){var a=this.heightMetrics(r,s),l=a.firstLine,c=a.lastLine,u=a.perLine,d=a.perChar;if(r.lineWrapping){var h=s+Math.round(Math.max(0,Math.min(1,(i-o)/this.height))*this.length),f=r.doc.lineAt(h),p=u+f.length*d,m=Math.max(o,i-p/2);return new hg(f.from,f.length,m,p,So.Text)}var g=Math.max(0,Math.min(c-l,Math.floor((i-o)/u))),v=r.doc.line(l+g);return new hg(v.from,v.length,o+u*g,u,So.Text)}},{key:"lineAt",value:function(i,r,o,s,a){if(r==Yo.ByHeight)return this.blockAt(i,o,s,a);if(r==Yo.ByPosNoHeight){var l=o.doc.lineAt(i),c=l.from;return new hg(c,l.to-c,0,0,So.Text)}var d=this.heightMetrics(o,a),h=d.firstLine,f=d.perLine,p=d.perChar,m=o.doc.lineAt(i),g=f+m.length*p,v=m.number-h;return new hg(m.from,m.length,Math.max(s,Math.min(s+f*v+p*(m.from-a-v),s+this.height-g)),g,So.Text)}},{key:"forEachLine",value:function(i,r,o,s,a,l){i=Math.max(i,a),r=Math.min(r,a+this.length);for(var c=this.heightMetrics(o,a),u=c.firstLine,d=c.perLine,h=c.perChar,f=i,p=s;f<=r;){var m=o.doc.lineAt(f);if(f==i){var g=m.number-u;p+=d*g+h*(i-a-g)}var v=d+h*m.length;l(new hg(m.from,m.length,p,v,So.Text)),p+=v,f=m.to+1}}},{key:"replace",value:function(i,r,o){var s=this.length-r;if(s>0){var a=o[o.length-1];a instanceof e?o[o.length-1]=new e(a.length+s):o.push(null,new e(s-1))}if(i>0){var l=o[0];l instanceof e?o[0]=new e(i+l.length):o.unshift(new e(i-1),null)}return dd.of(o)}},{key:"decomposeLeft",value:function(i,r){r.push(new e(i-1),null)}},{key:"decomposeRight",value:function(i,r){r.push(null,new e(this.length-i-1))}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=r+this.length;if(s&&s.from<=r+this.length&&s.more){var l=[],c=Math.max(r,s.from),u=-1;for(s.from>r&&l.push(new e(s.from-r-1).updateHeight(i,r));c<=a&&s.more;){var d=i.doc.lineAt(c).length;l.length&&l.push(null);var h=s.heights[s.index++];-1==u?u=h:Math.abs(h-u)>=.001&&(u=-2);var f=new mh(d,h);f.outdated=!1,l.push(f),c+=d+1}c<=a&&l.push(null,new e(a-c).updateHeight(i,c));var p=dd.of(l);return(u<0||Math.abs(p.height-this.height)>=.001||Math.abs(u-this.heightMetrics(i,r).perLine)>=.001)&&(i.heightChanged=!0),p}return(o||this.outdated)&&(this.setHeight(i,i.heightForGap(r,r+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),e}(),xtt=function(t){Dt(e,dd);var n=Tt(e);function e(i,r,o){var s;return Oe(this,e),(s=n.call(this,i.length+r+o.length,i.height+o.height,r|(i.outdated||o.outdated?2:0))).left=i,s.right=o,s.size=i.size+o.size,s}return Ie(e,[{key:"break",get:function(){return 1&this.flags}},{key:"blockAt",value:function(i,r,o,s){var a=o+this.left.height;return ic))return d;var h=r==Yo.ByPosNoHeight?Yo.ByPosNoHeight:Yo.ByPos;return u?d.join(this.right.lineAt(c,h,o,l,c)):this.left.lineAt(c,h,o,s,a).join(d)}},{key:"forEachLine",value:function(i,r,o,s,a,l){var c=s+this.left.height,u=a+this.left.length+this.break;if(this.break)i=u&&this.right.forEachLine(i,r,o,c,u,l);else{var d=this.lineAt(u,Yo.ByPos,o,s,a);i=i&&d.from<=r&&l(d),r>d.to&&this.right.forEachLine(d.to+1,r,o,c,u,l)}}},{key:"replace",value:function(i,r,o){var s=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(i-s,r-s,o));var a=[];i>0&&this.decomposeLeft(i,a);var l,c=a.length,u=He(o);try{for(u.s();!(l=u.n()).done;)a.push(l.value)}catch(f){u.e(f)}finally{u.f()}if(i>0&&bhe(a,c-1),r=++o&&r.push(null),i>o&&this.right.decomposeLeft(i-o,r)}},{key:"decomposeRight",value:function(i,r){var o=this.left.length,s=o+this.break;if(i>=s)return this.right.decomposeRight(i-s,r);i2*r.size||r.size>2*i.size?dd.of(this.break?[i,null,r]:[i,r]):(this.left=i,this.right=r,this.height=i.height+r.height,this.outdated=i.outdated||r.outdated,this.size=i.size+r.size,this.length=i.length+this.break+r.length,this)}},{key:"updateHeight",value:function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,a=this.left,l=this.right,c=r+a.length+this.break,u=null;return s&&s.from<=r+a.length&&s.more?u=a=a.updateHeight(i,r,o,s):a.updateHeight(i,r,o),s&&s.from<=c+l.length&&s.more?u=l=l.updateHeight(i,c,o,s):l.updateHeight(i,c,o),u?this.balanced(a,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}}]),e}();function bhe(t,n){var e,i;null==t[n]&&(e=t[n-1])instanceof Z0&&(i=t[n+1])instanceof Z0&&t.splice(n-1,3,new Z0(e.length+1+i.length))}var wtt=function(){function t(n,e){Oe(this,t),this.pos=n,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}return Ie(t,[{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"span",value:function(n,e){if(this.lineStart>-1){var i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof mh?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new mh(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}},{key:"point",value:function(n,e,i){if(n=5)&&this.addLineDeco(r,o)}else e>n&&this.span(n,e);this.lineEnd>-1&&this.lineEnd-1)){var n=this.oracle.doc.lineAt(this.pos),e=n.from,i=n.to;this.lineStart=e,this.lineEnd=i,this.writtenToe&&this.nodes.push(new mh(this.pos-e,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(n,e){var i=new Z0(e-n);return this.oracle.doc.lineAt(n).to==e&&(i.flags|=4),i}},{key:"ensureLine",value:function(){this.enterLine();var n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof mh)return n;var e=new mh(0,-1);return this.nodes.push(e),e}},{key:"addBlock",value:function(n){this.enterLine(),n.type!=So.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=So.WidgetBefore&&(this.covering=n)}},{key:"addLineDeco",value:function(n,e){var i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,n),this.writtenTo=this.pos=this.pos+e}},{key:"finish",value:function(n){var e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof mh||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=d.overflow){var h=u.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==d.position||"fixed"==d.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+n),bottom:Math.max(a,l)-(e.top+n)}}function Dtt(t,n){var e=t.getBoundingClientRect();return{left:0,right:e.right-e.left,top:n,bottom:e.bottom-(e.top+n)}}var lR=function(){function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.size=i}return Ie(t,[{key:"draw",value:function(n){return Ci.replace({widget:new Ttt(this.size,n)}).range(this.from,this.to)}}],[{key:"same",value:function(n,e){if(n.length!=e.length)return!1;for(var i=0;i=d.from&&a<=d.to})){var l=n.lineBlockAt(a);e.push(new eD(l.from,l.to))}},o=0;o<=1;o++)r(o);this.viewports=e.sort(function(s,a){return s.from-a.from}),this.scaler=this.heightMap.height<=7e6?whe:new Att(this.heightOracle,this.heightMap,this.viewports)}},{key:"updateViewportLines",value:function(){var n=this;this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,function(e){n.viewportLines.push(1==n.scaler.scale?e:Lb(e,n.scaler))})}},{key:"update",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=n.state;var i=this.stateDeco;this.stateDeco=this.state.facet(Rb).filter(function(c){return"function"!=typeof c});var o=K0.extendWithRanges(n.changedRanges,function Ctt(t,n,e){var i=new Stt;return qo.compare(t,n,e,i,0),i.changes}(i,this.stateDeco,n?n.changes:cd.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(n.flags|=2);var a=o.length?this.mapViewport(this.viewport,n.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));var l=!n.changes.empty||2&n.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&!n.state.facet(Ede)&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(n){var e=n.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?cs.RTL:cs.LTR;var s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;var c=0,u=0,d=parseInt(i.paddingTop)||0,h=parseInt(i.paddingBottom)||0;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=n.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=n.scrollDOM.clientWidth,c|=8);var f=(this.printing?Dtt:ktt)(e,this.paddingTop),p=f.top-this.pixelViewport.top,m=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;var g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;var v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==n.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=n.scrollDOM.clientHeight,c|=8),l){var y=n.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(y)&&(s=!0),s||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){var b=n.docView.measureTextSize(),C=b.lineHeight,D=b.charWidth;(s=C>0&&r.refresh(o,C,D,v/D,y))&&(n.docView.minWidth=0,c|=8)}p>0&&m>0?u=Math.max(p,m):p<0&&m<0&&(u=Math.min(p,m)),r.heightChanged=!1;var E,B=He(this.viewports);try{for(B.s();!(E=B.n()).done;){var z=E.value,j=z.from==this.viewport.from?y:n.docView.measureVisibleLineHeights(z);this.heightMap=(s?dd.empty().applyChanges(this.stateDeco,mo.empty,this.heightOracle,[new K0(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new btt(z.from,j))}}catch(G){B.e(G)}finally{B.f()}r.heightChanged&&(c|=2)}var U=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return U&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||U)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,n)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),c}},{key:"visibleTop",get:function(){return this.scaler.fromDOM(this.pixelViewport.top)}},{key:"visibleBottom",get:function(){return this.scaler.fromDOM(this.pixelViewport.bottom)}},{key:"getViewport",value:function(n,e){var i=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),r=this.heightMap,o=this.heightOracle,a=this.visibleBottom,l=new eD(r.lineAt(this.visibleTop-1e3*i,Yo.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-i),Yo.ByHeight,o,0,0).to);if(e){var c=e.range.head;if(cl.to){var u,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Yo.ByPos,o,0,0);l=new eD(r.lineAt((u="center"==e.y?(h.top+h.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;var s=this.heightMap.lineAt(e,Yo.ByPos,this.heightOracle,0,0).top,l=this.heightMap.lineAt(i,Yo.ByPos,this.heightOracle,0,0).bottom,c=this.visibleTop,u=this.visibleBottom;return(0==e||s<=c-Math.max(10,Math.min(-r,250)))&&(i==this.state.doc.length||l>=u+Math.max(10,Math.min(r,250)))&&s>c-2e3&&l>1,a=o<<1;if(this.defaultTextDirection!=cs.LTR&&!r)return[];var l,c=[],u=function X(oe,P,W,J){if(!(P-oeoe&&F=W.from&&ce.to<=W.to&&Math.abs(ce.from-oe)ve})});if(!q){if(P=P})){var V=e.moveToLineBoundary(rn.cursor(P),!1,!0).head;V>oe&&(P=V)}q=new lR(oe,P,i.gapSize(W,oe,P,J))}c.push(q)}},d=He(this.viewportLines);try{for(d.s();!(l=d.n()).done;){var h=l.value;if(!(h.lengthh.from&&u(h.from,m,h,f),g=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(function(e){return e.from<=n&&e.to>=n})||Lb(this.heightMap.lineAt(n,Yo.ByPos,this.heightOracle,0,0),this.scaler)}},{key:"lineBlockAtHeight",value:function(n){return Lb(this.heightMap.lineAt(this.scaler.fromDOM(n),Yo.ByHeight,this.heightOracle,0,0),this.scaler)}},{key:"elementAtHeight",value:function(n){return Lb(this.heightMap.blockAt(this.scaler.fromDOM(n),this.heightOracle,0,0),this.scaler)}},{key:"docHeight",get:function(){return this.scaler.toDOM(this.heightMap.height)}},{key:"contentHeight",get:function(){return this.docHeight+this.paddingTop+this.paddingBottom}}]),t}(),eD=Ie(function t(n,e){Oe(this,t),this.from=n,this.to=e});function Ett(t,n,e){var i=[],r=t,o=0;return qo.spans(e,t,n,{span:function(){},point:function(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return i[i.length-1].to;for(var r=Math.floor(t.total*n),o=0;;o++){var s=i[o],a=s.from,l=s.to-a;if(r<=l)return a+r;r-=l}}function nD(t,n){var e,i=0,r=He(t.ranges);try{for(r.s();!(e=r.n()).done;){var o=e.value,s=o.from,a=o.to;if(n<=a){i+=n-s;break}i+=a-s}}catch(l){r.e(l)}finally{r.f()}return i/t.total}var whe={toDOM:function(t){return t},fromDOM:function(t){return t},scale:1},Att=function(){function t(n,e,i){Oe(this,t);var r=0,o=0,s=0;this.viewports=i.map(function(u){var d=u.from,h=u.to,f=e.lineAt(d,Yo.ByPos,n,0,0).top,p=e.lineAt(h,Yo.ByPos,n,0,0).bottom;return r+=p-f,{from:d,to:h,top:f,bottom:p,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);var a,l=He(this.viewports);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.domTop=s+(c.top-o)*this.scale,s=c.domBottom=c.domTop+(c.bottom-c.top),o=c.bottom}}catch(u){l.e(u)}finally{l.f()}}return Ie(t,[{key:"toDOM",value:function(n){for(var e=0,i=0,r=0;;e++){var o=e-1}}),uR=Ap.newName(),Che=Ap.newName(),She=Ap.newName(),khe={"&light":"."+Che,"&dark":"."+She};function dR(t,n,e){return new Ap(n,{finish:function(i){return/&/.test(i)?i.replace(/&\w*/,function(r){if("&"==r)return t;if(!e||!e[r])throw new RangeError("Unsupported selector: ".concat(r));return e[r]}):t+" "+i}})}var Mtt=dR("."+uR,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},khe),Ott=Ie(function t(n,e,i,r){Oe(this,t),this.typeOver=r,this.bounds=null,this.text="";var o=n.docView,s=o.impreciseHead,a=o.impreciseAnchor;if(n.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=n.docView.domBoundsAround(e,i,0))){var l=s||a?[]:function(f){var p=[];if(f.root.activeElement!=f.contentDOM)return p;var m=f.observer.selectionRange,g=m.anchorNode,v=m.anchorOffset,y=m.focusNode,b=m.focusOffset;return g&&(p.push(new zde(g,v)),y==g&&b==v||p.push(new zde(y,b))),p}(n),c=new Hde(l,n.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=function(f,p){if(0==f.length)return null;var m=f[0].pos,g=2==f.length?f[1].pos:m;return m>-1&&g>-1?rn.single(m+p,g+p):null}(l,this.bounds.from)}else{var u=n.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!q0(n.contentDOM,u.focusNode)?n.state.selection.main.head:n.docView.posFromDOM(u.focusNode,u.focusOffset),h=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!q0(n.contentDOM,u.anchorNode)?n.state.selection.main.anchor:n.docView.posFromDOM(u.anchorNode,u.anchorOffset);this.newSel=rn.single(h,d)}});function Dhe(t,n){var e,i=n.newSel,r=t.state.selection.main;if(n.bounds){var o=n.bounds,s=o.from,a=o.to,l=r.from,c=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||si.android&&n.text.length0&&J>0&&j.charCodeAt(W-1)==U.charCodeAt(J-1);)W--,J--;return"end"==X&&(G-=W+Math.max(0,P-Math.min(W,J))-P),W=W?P-G:0)+(J-W),W=P):J=J?P-G:0)+(W-J),J=P),{from:P,toA:W,toB:J}}(t.state.doc.sliceString(s,a,"\uffff"),n.text,l-s,c);u&&(si.chrome&&13==t.inputState.lastKeyCode&&u.toB==u.from+2&&"\uffff\uffff"==n.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:mo.of(n.text.slice(u.from,u.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(Qk)||i.main.eq(r))&&(i=null);if(!e&&!i)return!1;if(!e&&n.typeOver&&!r.empty&&i&&i.main.empty?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,e.from).append(e.insert).append(t.state.doc.slice(e.to,r.to))}:(si.mac||si.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==e.insert.length&&(i=rn.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:mo.of([" "])}):si.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&t.lineWrapping&&(i&&(i=rn.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:mo.of([" "])}),e){var d=t.state;if(si.ios&&t.inputState.flushIOSKey(t)||si.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&J0(t.contentDOM,"Enter",13)||e.from==r.from-1&&e.to==r.to&&0==e.insert.length&&J0(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&J0(t.contentDOM,"Delete",46)))return!0;var h,f=e.insert.toString();if(t.state.facet(kde).some(function(j){return j(t,e.from,e.to,f)}))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){var p=r.frome.to?d.sliceDoc(e.to,r.to):"";h=d.replaceSelection(t.state.toText(p+e.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{var g=d.changes(e),v=i&&!d.selection.main.eq(i.main)&&i.main.to<=g.newLength?i.main:void 0;if(d.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){var y=t.state.sliceDoc(e.from,e.to),b=qde(t)||t.state.doc.lineAt(r.head),C=r.to-e.to,D=r.to-r.from;h=d.changeByRange(function(j){if(j.from==r.from&&j.to==r.to)return{changes:g,range:v||j.map(g)};var U=j.to-C,G=U-y.length;if(j.to-j.from!=D||t.state.sliceDoc(G,U)!=y||b&&j.to>=b.from&&j.from<=b.to)return{range:j};var X=d.changes({from:G,to:U,insert:e.insert}),oe=j.to-r.to;return{changes:X,range:v?rn.range(Math.max(0,v.anchor+oe),Math.max(0,v.head+oe)):j.map(X)}})}else h={changes:g,selection:v&&d.selection.replaceRange(v)}}var E="input.type";return t.composing&&(E+=".compose",t.inputState.compositionFirstChange&&(E+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(h,{scrollIntoView:!0,userEvent:E}),!0}if(i&&!i.main.eq(r)){var B=!1,z="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(B=!0),z=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:B,userEvent:z}),!0}return!1}var Itt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},hR=si.ie&&si.ie_version<=11,Ntt=function(){function t(n){var e=this;Oe(this,t),this.view=n,this.active=!1,this.selectionRange=new Yet,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver(function(i){var r,o=He(i);try{for(o.s();!(r=o.n()).done;)e.queue.push(r.value)}catch(a){o.e(a)}finally{o.f()}(si.ie&&si.ie_version<=11||si.ios&&n.composing)&&i.some(function(a){return"childList"==a.type&&a.removedNodes.length||"characterData"==a.type&&a.oldValue.length>a.target.nodeValue.length})?e.flushSoon():e.flush()}),hR&&(this.onCharData=function(i){e.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),e.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(function(){var i;(null===(i=e.view.docView)||void 0===i?void 0:i.lastUpdate)0&&i[i.length-1].intersectionRatio>0!=e.intersecting&&(e.intersecting=!e.intersecting,e.intersecting!=e.view.inView&&e.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(function(i){i.length>0&&i[i.length-1].intersectionRatio>0&&e.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}return Ie(t,[{key:"onScrollChanged",value:function(n){this.view.inputState.runScrollHandlers(this.view,n),this.intersecting&&this.view.measure()}},{key:"onScroll",value:function(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}},{key:"onResize",value:function(){var n=this;this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(function(){n.resizeTimeout=-1,n.view.requestMeasure()},50))}},{key:"onPrint",value:function(){var n=this;this.view.viewState.printing=!0,this.view.measure(),setTimeout(function(){n.view.viewState.printing=!1,n.view.requestMeasure()},500)}},{key:"updateGaps",value:function(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some(function(o,s){return o!=n[s]}))){this.gapIntersection.disconnect();var e,i=He(n);try{for(i.s();!(e=i.n()).done;)this.gapIntersection.observe(e.value)}catch(o){i.e(o)}finally{i.f()}this.gaps=n}}},{key:"onSelectionChange",value:function(n){var e=this.selectionChanged;if(this.readSelectionRange()&&!this.delayedAndroidKey){var i=this.view,r=this.selectionRange;if(i.state.facet(Qk)?i.root.activeElement==this.dom:qk(i.dom,r)){var o=r.anchorNode&&i.docView.nearest(r.anchorNode);o&&o.ignoreEvent(n)?e||(this.selectionChanged=!1):(si.ie&&si.ie_version<=11||si.android&&si.chrome)&&!i.state.selection.main.empty&&r.focusNode&&Yk(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}}}},{key:"readSelectionRange",value:function(){var n=this.view,e=si.safari&&11==n.root.nodeType&&function(r){for(var o=r.activeElement;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}(this.dom.ownerDocument)==this.dom&&function(r){var o=null;function s(f){f.preventDefault(),f.stopImmediatePropagation(),o=f.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),!o)return null;var a=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=r.docView.domAtPos(r.state.selection.main.anchor);if(Yk(d.node,d.offset,c,u)){var h=[c,u,a,l];a=h[0],l=h[1],c=h[2],u=h[3]}return{anchorNode:a,anchorOffset:l,focusNode:c,focusOffset:u}}(this.view)||Wk(n.root);if(!e||this.selectionRange.eq(e))return!1;var i=qk(this.dom,e);return i&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}},{key:"processRecords",value:function(){var n,e=this.queue,i=He(this.observer.takeRecords());try{for(i.s();!(n=i.n()).done;)e.push(n.value)}catch(h){i.e(h)}finally{i.f()}e.length&&(this.queue=[]);var o,s=-1,a=-1,l=!1,c=He(e);try{for(c.s();!(o=c.n()).done;){var d=this.readMutation(o.value);d&&(d.typeOver&&(l=!0),-1==s?(s=d.from,a=d.to):(s=Math.min(d.from,s),a=Math.max(d.to,a)))}}catch(h){c.e(h)}finally{c.f()}return{from:s,to:a,typeOver:l}}},{key:"readChange",value:function(){var n=this.processRecords(),e=n.from,i=n.to,r=n.typeOver,o=this.selectionChanged&&qk(this.dom,this.selectionRange);return e<0&&!o?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new Ott(this.view,e,i,r))}},{key:"flush",value:function(){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.readSelectionRange();var e=this.readChange();if(!e)return!1;var i=this.view.state,r=Dhe(this.view,e);return this.view.state==i&&this.view.update([]),r}},{key:"readMutation",value:function(n){var e=this.view.docView.nearest(n.target);if(!e||e.ignoreMutation(n))return null;if(e.markDirty("attributes"==n.type),"attributes"==n.type&&(e.dirty|=4),"childList"==n.type){var i=The(e,n.previousSibling||n.target.previousSibling,-1),r=The(e,n.nextSibling||n.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==n.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}},{key:"setWindow",value:function(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}},{key:"addWindowListeners",value:function(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}},{key:"removeWindowListeners",value:function(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"destroy",value:function(){var n,e,i,r;this.stop(),null===(n=this.intersection)||void 0===n||n.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();var o,s=He(this.scrollTargets);try{for(s.s();!(o=s.n()).done;)o.value.removeEventListener("scroll",this.onScroll)}catch(a){s.e(a)}finally{s.f()}this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}]),t}();function The(t,n,e){for(;n;){var i=Cs.get(n);if(i&&i.parent==t)return i;var r=n.parentNode;n=r!=t.dom?r:e>0?n.nextSibling:n.previousSibling}return null}var Qn=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,t),this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||function(s){return n.update([s])},this.dispatch=this.dispatch.bind(this),this._root=e.root||function Xet(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(e.parent)||document,this.viewState=new xhe(e.state||Fo.create(e)),this.plugins=this.state.facet(Pb).map(function(s){return new Q4(s)});var i,r=He(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.update(this)}catch(s){r.e(s)}finally{r.f()}this.observer=new Ntt(this),this.inputState=new ptt(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Gde(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}return Ie(t,[{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing>0}},{key:"compositionStarted",get:function(){return this.inputState.composing>=0}},{key:"root",get:function(){return this._root}},{key:"win",get:function(){return this.dom.ownerDocument.defaultView||window}},{key:"dispatch",value:function(){var n;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof oc?arguments.length<=0?void 0:arguments[0]:(n=this.state).update.apply(n,arguments))}},{key:"update",value:function(n){var e=this;if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");var i,r,o=!1,s=!1,a=this.state,l=He(n);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=c.state}}catch(j){l.e(j)}finally{l.f()}if(this.destroyed)this.viewState.state=a;else{var u=this.hasFocus,d=0,h=null;n.some(function(j){return j.annotation(mhe)})?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,(h=ghe(a,u))||(d=1));var f=this.observer.delayedAndroidKey,p=null;if(f?(this.observer.clearDelayedAndroidKey(),((p=this.observer.readChange())&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(p=null)):this.observer.clear(),a.facet(Fo.phrases)!=this.state.facet(Fo.phrases))return this.setState(a);(i=Fde.create(this,a,n)).flags|=d;var m=this.viewState.scrollTarget;try{this.updateState=2;var g,v=He(n);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(m&&(m=m.map(y.changes)),y.scrollIntoView){var b=y.state.selection.main;m=new Ade(b.empty?b:rn.cursor(b.head,b.head>b.anchor?-1:1))}var C,D=He(y.effects);try{for(D.s();!(C=D.n()).done;){var E=C.value;E.is(Mde)&&(m=E.value)}}catch(j){D.e(j)}finally{D.f()}}}catch(j){v.e(j)}finally{v.f()}this.viewState.update(i,m),this.bidiCache=Ahe.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),o=this.docView.update(i),this.state.facet(jb)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(o,n.some(function(j){return j.isUserEvent("select.pointer")}))}finally{this.updateState=0}if(i.startState.facet(iD)!=i.state.facet(iD)&&(this.viewState.mustMeasureContent=!0),(o||s||m||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty){var B,z=He(this.state.facet(K4));try{for(z.s();!(B=z.n()).done;)(0,B.value)(i)}catch(j){z.e(j)}finally{z.f()}}(h||p)&&Promise.resolve().then(function(){h&&e.state==h.startState&&e.dispatch(h),p&&!Dhe(e,p)&&f.force&&J0(e.contentDOM,f.key,f.keyCode)})}}},{key:"setState",value:function(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)this.viewState.state=n;else{this.updateState=2;var e=this.hasFocus;try{var i,r=He(this.plugins);try{for(r.s();!(i=r.n()).done;)i.value.destroy(this)}catch(a){r.e(a)}finally{r.f()}this.viewState=new xhe(n),this.plugins=n.facet(Pb).map(function(a){return new Q4(a)}),this.pluginMap.clear();var o,s=He(this.plugins);try{for(s.s();!(o=s.n()).done;)o.value.update(this)}catch(a){s.e(a)}finally{s.f()}this.docView=new Gde(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}}},{key:"updatePlugins",value:function(n){var e=n.startState.facet(Pb),i=n.state.facet(Pb);if(e!=i){var r,o=[],s=He(i);try{for(s.s();!(r=s.n()).done;){var a=r.value,l=e.indexOf(a);if(l<0)o.push(new Q4(a));else{var c=this.plugins[l];c.mustUpdate=n,o.push(c)}}}catch(g){s.e(g)}finally{s.f()}var u,d=He(this.plugins);try{for(d.s();!(u=d.n()).done;){var h=u.value;h.mustUpdate!=n&&h.destroy(this)}}catch(g){d.e(g)}finally{d.f()}this.plugins=o,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else{var f,p=He(this.plugins);try{for(p.s();!(f=p.n()).done;)f.value.mustUpdate=n}catch(g){p.e(g)}finally{p.f()}}for(var m=0;m0&&void 0!==arguments[0])||arguments[0];if(!this.destroyed){this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();var i=null,r=this.scrollDOM,o=r.scrollHeight,s=r.scrollTop,l=s>o-r.clientHeight-4?o:s;try{for(var c=0;;c++){this.updateState=1;var u=this.viewport,d=this.viewState.lineBlockAtHeight(l),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(c>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}var f=[];if(!(4&h)){var p=[f,this.measureRequests];this.measureRequests=p[0],f=p[1]}var m=f.map(function(j){try{return j.read(n)}catch(U){return jc(n.state,U),Ehe}}),g=Fde.create(this,this.state,[]),v=!1,y=!1;g.flags|=h,i?i.flags|=h:i=g,this.updateState=2,g.empty||(this.updatePlugins(g),this.inputState.update(g),this.updateAttrs(),v=this.docView.update(g));for(var b=0;b1||D<-1)&&(this.scrollDOM.scrollTop+=D,y=!0)}if(v&&this.docView.updateSelection(!0),this.viewport.from==u.from&&this.viewport.to==u.to&&!y&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty){var E,B=He(this.state.facet(K4));try{for(B.s();!(E=B.n()).done;)(0,E.value)(i)}catch(j){B.e(j)}finally{B.f()}}}}},{key:"themeClasses",get:function(){return uR+" "+(this.state.facet(cR)?She:Che)+" "+this.state.facet(iD)}},{key:"updateAttrs",value:function(){var n=this,e=Mhe(this,Ode,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Qk)?"true":"false",class:"cm-content",style:"".concat(si.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),Mhe(this,Z4,i);var r=this.observer.ignore(function(){var o=q4(n.contentDOM,n.contentAttrs,i),s=q4(n.dom,n.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}},{key:"showAnnouncements",value:function(n){var e,i=!0,r=He(n);try{for(r.s();!(e=r.n()).done;){var o,s=He(e.value.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=a.value)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){r.e(l)}finally{r.f()}}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(jb),Ap.mount(this.root,this.styleModules.concat(Mtt).reverse())}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}},{key:"requestMeasure",value:function(n){var e=this;if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(function(){return e.measure()})),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(var i=0;ir.from?n.head-1:n.head):null;if(o){var s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:e==(a==cs.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return rn.cursor(l,e?-1:1)}var c=ud.find(t.docView,n.head);return rn.cursor(c?e?c.posAtEnd:c.posAtStart:e?r.to:r.from,e?-1:1)}(this,n,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}},{key:"moveVertically",value:function(n,e,i){return oR(this,n,function(r,o,s,a){var l=o.head,c=s?1:-1;if(l==(s?r.state.doc.length:0))return rn.cursor(l,o.assoc);var u,d=o.goalColumn,h=r.contentDOM.getBoundingClientRect(),f=r.coordsAtPos(l),p=r.documentTop;if(f)null==d&&(d=f.left-h.left),u=c<0?f.top:f.bottom;else{var m=r.viewState.lineBlockAt(l);null==d&&(d=Math.min(h.right-h.left,r.defaultCharacterWidth*(l-m.from))),u=(c<0?m.top:m.bottom)+p}for(var g=h.left+d,v=a??r.defaultLineHeight>>1,y=0;;y+=10){var b=u+(v+y)*c,C=Qde(r,{x:g,y:b},!1,c);if(bh.bottom||(c<0?Cl))return rn.cursor(C,o.assoc,void 0,d)}}(this,n,e,i))}},{key:"domAtPos",value:function(n){return this.docView.domAtPos(n)}},{key:"posAtDOM",value:function(n){return this.docView.posFromDOM(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"posAtCoords",value:function(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),Qde(this,n,e)}},{key:"coordsAtPos",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var i=this.docView.coordsAt(n,e);if(!i||i.left==i.right)return i;var r=this.state.doc.lineAt(n),o=this.bidiSpans(r);return P4(i,o[Q0.find(o,n-r.from,-1,e)].dir==cs.LTR==e>0)}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.defaultTextDirection}},{key:"textDirectionAt",value:function(n){return!this.state.facet(Tde)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"bidiSpans",value:function(n){if(n.length>Ftt)return $de(n.length);var e,i=this.textDirectionAt(n.from),r=He(this.bidiCache);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.from==n.from&&o.dir==i)return o.order}}catch(a){r.e(a)}finally{r.f()}var s=function(a,l){var c=a.length,u=l==eR?1:2,d=l==eR?2:1;if(!a||1==u&&!ntt.test(a))return $de(c);for(var h=0,f=u,p=u;h=0;oe-=3)if(ph[oe+1]==-z){var P=ph[oe+2],W=2&P?u:4&P?1&P?d:u:0;W&&(us[U]=us[ph[oe]]=W),G=oe;break}}else{if(189==ph.length)break;ph[G++]=U,ph[G++]=B,ph[G++]=X}else if(2==(j=us[U])||1==j){var J=j==u;X=J?0:1;for(var H=G-3;H>=0;H-=3){var pe=ph[H+2];if(2&pe)break;if(J)ph[H+2]|=2;else{if(4&pe)break;ph[H+2]|=4}}}for(var A=0;Aje;){for(var We=et,st=2!=us[--et];et>je&&st==(2!=us[et-1]);)et--;ce.push(new Q0(et,We,st?2:1))}else ce.push(new Q0(je,ve,0))}else for(var $=0;$Date.now()-3e4)&&this.root.activeElement==this.contentDOM}},{key:"focus",value:function(){var n=this;this.observer.ignore(function(){nde(n.contentDOM),n.docView.updateSelection()})}},{key:"setRoot",value:function(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}},{key:"destroy",value:function(){var n,e=He(this.plugins);try{for(e.s();!(n=e.n()).done;)n.value.destroy(this)}catch(i){e.e(i)}finally{e.f()}this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}}],[{key:"scrollIntoView",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Mde.of(new Ade("number"==typeof n?rn.cursor(n):n,e.y,e.x,e.yMargin,e.xMargin))}},{key:"domEventHandlers",value:function(n){return Ia.define(function(){return{}},{eventHandlers:n})}},{key:"theme",value:function(n,e){var i=Ap.newName(),r=[iD.of(i),jb.of(dR(".".concat(i),n))];return e&&e.dark&&r.push(cR.of(!0)),r}},{key:"baseTheme",value:function(n){return G0.lowest(jb.of(dR("."+uR,n,khe)))}},{key:"findFromDOM",value:function(n){var e,i=n.querySelector(".cm-content");return(null===(e=(i&&Cs.get(i)||Cs.get(n))?.rootView)||void 0===e?void 0:e.view)||null}}]),t}();Qn.styleModule=jb,Qn.inputHandler=kde,Qn.focusChangeEffect=Dde,Qn.perLineTextDirection=Tde,Qn.exceptionSink=Sde,Qn.updateListener=K4,Qn.editable=Qk,Qn.mouseSelectionStyle=Cde,Qn.dragMovesSelection=wde,Qn.clickAddsSelectionRange=xde,Qn.decorations=Rb,Qn.atomicRanges=Ide,Qn.scrollMargins=Nde,Qn.darkTheme=cR,Qn.contentAttributes=Z4,Qn.editorAttributes=Ode,Qn.lineWrapping=Qn.contentAttributes.of({class:"cm-lineWrapping"}),Qn.announce=gr.define();var Ftt=4096,Ehe={},Ahe=function(){function t(n,e,i,r){Oe(this,t),this.from=n,this.to=e,this.dir=i,this.order=r}return Ie(t,null,[{key:"update",value:function(n,e){if(e.empty)return n;for(var i=[],r=n.length?n[n.length-1].dir:cs.LTR,o=Math.max(0,n.length-10);o=0;r--){var o=i[r],s="function"==typeof o?o(t):o;s&&G4(s,e)}return e}var Ptt=si.mac?"mac":si.windows?"win":si.linux?"linux":"key";function rD(t,n,e){return n.altKey&&(t="Alt-"+t),n.ctrlKey&&(t="Ctrl-"+t),n.metaKey&&(t="Meta-"+t),!1!==e&&n.shiftKey&&(t="Shift-"+t),t}var jtt=G0.default(Qn.domEventHandlers({keydown:function(t,n){return Nhe(Ihe(n.state),t,n,"editor")}})),oD=oi.define({enables:jtt}),Ohe=new WeakMap;function Ihe(t){var n=t.facet(oD),e=Ohe.get(n);return e||Ohe.set(n,e=function(i){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ptt,s=Object.create(null),a=Object.create(null),l=function(E,B){var z=a[E];if(null==z)a[E]=B;else if(z!=B)throw new Error("Key binding "+E+" is used both as a regular binding and as a multi-stroke prefix")},c=function(E,B,z,j){for(var U,G,X=s[E]||(s[E]=Object.create(null)),oe=B.split(/ (?!$)/).map(function(pe){return function Rtt(t,n){var e,i,r,o,s=t.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(var l=0;l=t.viewport.to)return[];var i=Math.max(e.from,t.viewport.from),r=Math.min(e.to,t.viewport.to),o=t.textDirection==cs.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=Fhe(t),c=window.getComputedStyle(s.firstChild),u=a.left+parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)),d=a.right-parseInt(c.paddingRight),h=Rhe(t,i),f=Rhe(t,r),p=h.type==So.Text?h:null,m=f.type==So.Text?f:null;if(t.lineWrapping&&(p&&(p=Phe(t,i,p)),m&&(m=Phe(t,r,m))),p&&m&&p.from==m.from)return C(D(e.from,e.to,p));var g=p?D(e.from,null,p):E(h,!1),v=m?D(null,e.to,m):E(f,!0),y=[];return(p||h).to<(m||f).from-1?y.push(b(u,g.bottom,d,v.top)):g.bottomW&&pe.from=N)break;je>A&&oe(Math.max(ve,A),null==B&&ve<=W,Math.min(je,N),null==z&&je>=J,ce.dir)}}catch(Te){V.e(Te)}finally{V.f()}if((A=q.to+1)>=N)break}}}catch(Te){H.e(Te)}finally{H.f()}return 0==X.length&&oe(W,null==B,J,null==z,t.textDirection),{top:U,bottom:G,horizontal:X}}function E(B,z){var j=a.top+(z?B.top:B.bottom);return{top:j,bottom:j,horizontal:[]}}}(n,e,i)}}]),t}();function Fhe(t){var n=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==cs.LTR?n.left:n.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:n.top-t.scrollDOM.scrollTop}}function Phe(t,n,e){var i=rn.cursor(n);return{from:Math.max(e.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(e.to,t.moveToLineBoundary(i,!0,!0).from),type:So.Text}}function Rhe(t,n){var e=t.lineBlockAt(n);if(Array.isArray(e.type)){var i,r=He(e.type);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.to>n||o.to==n&&(o.to==e.to||o.type==So.Text))return o}}catch(s){r.e(s)}finally{r.f()}}return e}var Btt=function(){function t(n,e){Oe(this,t),this.view=n,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=n.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(n.state),n.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,n)}return Ie(t,[{key:"update",value:function(n){n.startState.facet(sD)!=n.state.facet(sD)&&this.setOrder(n.state),(this.layer.update(n,this.dom)||n.geometryChanged)&&n.view.requestMeasure(this.measureReq)}},{key:"setOrder",value:function(n){for(var e=0,i=n.facet(sD);e0&&void 0!==arguments[0]?arguments[0]:{}),Vtt,Htt,Utt,Ede.of(!0)]}function Bhe(t){return t.startState.facet(Bb)!=t.state.facet(Bb)}var Vtt=jhe({above:!0,markers:function(t){var n,e=t.state,i=e.facet(Bb),r=[],o=He(e.selection.ranges);try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s==e.selection.main;if(s.empty?!a||Lhe:i.drawRangeCursor){var l,c=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=s.empty?s:rn.cursor(s.head,s.head>s.anchor?-1:1),d=He(fR.forRange(t,c,u));try{for(d.s();!(l=d.n()).done;)r.push(l.value)}catch(f){d.e(f)}finally{d.f()}}}}catch(f){o.e(f)}finally{o.f()}return r},update:function(t,n){t.transactions.some(function(i){return i.selection})&&(n.style.animationName="cm-blink"==n.style.animationName?"cm-blink2":"cm-blink");var e=Bhe(t);return e&&$he(t.state,n),t.docChanged||t.selectionSet||e},mount:function(t,n){$he(n.state,t)},class:"cm-cursorLayer"});function $he(t,n){n.style.animationDuration=t.facet(Bb).cursorBlinkRate+"ms"}var Htt=jhe({above:!1,markers:function(t){return t.state.selection.ranges.map(function(n){return n.empty?[]:fR.forRange(t,"cm-selectionBackground",n)}).reduce(function(n,e){return n.concat(e)})},update:function(t,n){return t.docChanged||t.selectionSet||t.viewportChanged||Bhe(t)},class:"cm-selectionLayer"}),Vhe={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Lhe&&(Vhe[".cm-line"].caretColor="transparent !important");var Utt=G0.highest(Qn.theme(Vhe)),Hhe=gr.define({map:function(t,n){return null==t?null:n.mapPos(t)}}),$b=qa.define({create:function(){return null},update:function(t,n){return null!=t&&(t=n.changes.mapPos(t)),n.effects.reduce(function(e,i){return i.is(Hhe)?i.value:e},t)}}),ztt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}return Ie(t,[{key:"update",value:function(n){var e,i=n.state.field($b);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field($b)!=i||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}},{key:"readPos",value:function(){var n=this.view.state.field($b),e=null!=n&&this.view.coordsAtPos(n);if(!e)return null;var i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}},{key:"drawCursor",value:function(n){this.cursor&&(n?(this.cursor.style.left=n.left+"px",this.cursor.style.top=n.top+"px",this.cursor.style.height=n.height+"px"):this.cursor.style.left="-100000px")}},{key:"destroy",value:function(){this.cursor&&this.cursor.remove()}},{key:"setDropPos",value:function(n){this.view.state.field($b)!=n&&this.view.dispatch({effects:Hhe.of(n)})}}]),t}(),{eventHandlers:{dragover:function(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave:function(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend:function(){this.setDropPos(null)},drop:function(){this.setDropPos(null)}}});function Uhe(t,n,e,i,r){n.lastIndex=0;for(var o,s=t.iterRange(e,i),a=e;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=n.exec(s.value);)r(a+o.index,o)}var Gtt=function(){function t(n){Oe(this,t);var e=n.regexp,i=n.decoration,r=n.decorate,o=n.boundary,s=n.maxLength,a=void 0===s?1e3:s;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=function(l,c,u,d){return r(d,u,u+l[0].length,l,c)};else if("function"==typeof i)this.addMatch=function(l,c,u,d){var h=i(l,c,u);h&&d(u,u+l[0].length,h)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=function(l,c,u,d){return d(u,u+l[0].length,i)}}this.boundary=o,this.maxLength=a}return Ie(t,[{key:"createDeco",value:function(n){var e,i=this,r=new ug,o=r.add.bind(r),s=He(function(u,d){var h=u.visibleRanges;if(1==h.length&&h[0].from==u.viewport.from&&h[0].to==u.viewport.to)return h;var f,p=[],m=He(h);try{for(m.s();!(f=m.n()).done;){var g=f.value,v=g.from,y=g.to;v=Math.max(u.state.doc.lineAt(v).from,v-d),y=Math.min(u.state.doc.lineAt(y).to,y+d),p.length&&p[p.length-1].to>=v?p[p.length-1].to=y:p.push({from:v,to:y})}}catch(b){m.e(b)}finally{m.f()}return p}(n,this.maxLength));try{for(s.s();!(e=s.n()).done;){var a=e.value;Uhe(n.state.doc,this.regexp,a.from,a.to,function(u,d){return i.addMatch(d,n,u,o)})}}catch(u){s.e(u)}finally{s.f()}return r.finish()}},{key:"updateDeco",value:function(n,e){var i=1e9,r=-1;return n.docChanged&&n.changes.iterChanges(function(o,s,a,l){l>n.view.viewport.from&&a1e3?this.createDeco(n.view):r>-1?this.updateRange(n.view,e.map(n.changes),i,r):e}},{key:"updateRange",value:function(n,e,i,r){var o,s=this,a=He(n.visibleRanges);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=Math.max(l.from,i),u=Math.min(l.to,r);u>c&&function(){var d=n.state.doc.lineAt(c),h=d.tod.from;c--)if(s.boundary.test(d.text[c-1-d.from])){f=c;break}for(;up},add:m})}()}}catch(d){a.e(d)}finally{a.f()}return e}}]),t}(),pR=null!=/x/.unicode?"gu":"g",Wtt=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",pR),qtt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},mR=null,aD=oi.define({combine:function(t){var n=pu(t,{render:null,specialChars:Wtt,addSpecialChars:null});return(n.replaceTabs=!function(){var e;if(null==mR&&typeof document<"u"&&document.body){var i=document.body.style;mR=null!=(null!==(e=i.tabSize)&&void 0!==e?e:i.MozTabSize)}return mR||!1}())&&(n.specialChars=new RegExp("\t|"+n.specialChars.source,pR)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,pR)),n}});function Ytt(){return[aD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),zhe||(zhe=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.decorations=Ci.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(aD)),this.decorations=this.decorator.createDeco(n)}return Ie(t,[{key:"makeDecorator",value:function(n){var e=this;return new Gtt({regexp:n.specialChars,decoration:function(i,r,o){var s=r.state.doc,a=Wa(i[0],0);if(9==a){var l=s.lineAt(o),c=r.state.tabSize,u=Ab(l.text,c,o-l.from);return Ci.replace({widget:new Ktt((c-u%c)*e.view.defaultCharacterWidth)})}return e.decorationCache[a]||(e.decorationCache[a]=Ci.replace({widget:new Jtt(n,a)}))},boundary:n.replaceTabs?void 0:/[^]/})}},{key:"update",value:function(n){var e=n.state.facet(aD);n.startState.facet(aD)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}}]),t}(),{decorations:function(t){return t.decorations}}))]}var zhe=null,Jtt=function(t){Dt(e,Op);var n=Tt(e);function e(i,r){var o;return Oe(this,e),(o=n.call(this)).options=i,o.code=r,o}return Ie(e,[{key:"eq",value:function(i){return i.code==this.code}},{key:"toDOM",value:function(i){var l,r=(l=this.code)>=32?"\u2022":10==l?"\u2424":String.fromCharCode(9216+l),o=i.state.phrase("Control character")+" "+(qtt[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,o,r);if(s)return s;var a=document.createElement("span");return a.textContent=r,a.title=o,a.setAttribute("aria-label",o),a.className="cm-specialChar",a}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Ktt=function(t){Dt(e,Op);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).width=i,r}return Ie(e,[{key:"eq",value:function(i){return i.width==this.width}},{key:"toDOM",value:function(){var i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}},{key:"ignoreEvent",value:function(){return!1}}]),e}(),Qtt=Ci.line({class:"cm-activeLine"}),Ztt=Ia.fromClass(function(){function t(n){Oe(this,t),this.decorations=this.getDeco(n)}return Ie(t,[{key:"update",value:function(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e,i=-1,r=[],o=He(n.state.selection.ranges);try{for(o.s();!(e=o.n()).done;){var a=n.lineBlockAt(e.value.head);a.from>i&&(r.push(Qtt.range(a.from)),i=a.from)}}catch(l){o.e(l)}finally{o.f()}return Ci.set(r)}}]),t}(),{decorations:function(t){return t.decorations}});function Ghe(t,n){var s,a,l,e=t.posAtCoords({x:n.clientX,y:n.clientY},!1),i=t.state.doc.lineAt(e),r=e-i.from,o=r>2e3?-1:r==i.length?(a=n.clientX,(l=(s=t).coordsAtPos(s.viewport.from))?Math.round(Math.abs((l.left-a)/s.defaultCharacterWidth)):-1):Ab(i.text,t.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function tnt(t){var n=t?.eventFilter||function(e){return e.altKey&&0==e.button};return Qn.mouseSelectionStyle.of(function(e,i){return n(i)?function ent(t,n){var e=Ghe(t,n),i=t.state.selection;return e?{update:function(r){if(r.docChanged){var o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get:function(r,o,s){var a=Ghe(t,r);if(!a)return i;var l=function(c,u,d){var h=Math.min(u.line,d.line),f=Math.max(u.line,d.line),p=[];if(u.off>2e3||d.off>2e3||u.col<0||d.col<0)for(var m=Math.min(u.off,d.off),g=Math.max(u.off,d.off),v=h;v<=f;v++){var y=c.doc.line(v);y.length<=g&&p.push(rn.range(y.from+m,y.to+g))}else for(var b=Math.min(u.col,d.col),C=Math.max(u.col,d.col),D=h;D<=f;D++){var E=c.doc.line(D),B=I4(E.text,b,c.tabSize,!0);if(B<0)p.push(rn.cursor(E.to));else{var z=I4(E.text,C,c.tabSize);p.push(rn.range(E.from+B,E.from+z))}}return p}(t.state,e,a);return l.length?rn.create(s?l.concat(i.ranges):l):i}}:null}(e,i):null})}var nnt={Alt:[18,function(t){return t.altKey}],Control:[17,function(t){return t.ctrlKey}],Shift:[16,function(t){return t.shiftKey}],Meta:[91,function(t){return t.metaKey}]},int={style:"cursor: crosshair"};function rnt(){var n=Jn(nnt[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key||"Alt"],2),e=n[0],i=n[1],r=Ia.fromClass(function(){function o(s){Oe(this,o),this.view=s,this.isDown=!1}return Ie(o,[{key:"set",value:function(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}}]),o}(),{eventHandlers:{keydown:function(o){this.set(o.keyCode==e||i(o))},keyup:function(o){o.keyCode!=e&&i(o)||this.set(!1)},mousemove:function(o){this.set(i(o))}}});return[r,Qn.contentAttributes.of(function(o){var s;return null!==(s=o.plugin(r))&&void 0!==s&&s.isDown?int:null})]}var Whe=function(){function t(n,e,i){Oe(this,t),this.facet=e,this.createTooltipView=i,this.input=n.state.facet(e),this.tooltips=this.input.filter(function(r){return r}),this.tooltipViews=this.tooltips.map(i)}return Ie(t,[{key:"update",value:function(n){var e,i=n.state.facet(this.facet),r=i.filter(function(y){return y});if(i===this.input){var o,s=He(this.tooltipViews);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.update&&a.update(n)}}catch(y){s.e(y)}finally{s.f()}return!1}for(var l=[],c=0;ce.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&e.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}return Ie(t,[{key:"createContainer",value:function(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}},{key:"observeIntersection",value:function(){if(this.intersectionObserver){this.intersectionObserver.disconnect();var n,e=He(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)this.intersectionObserver.observe(n.value.dom)}catch(r){e.e(r)}finally{e.f()}}}},{key:"measureSoon",value:function(){var n=this;this.measureTimeout<0&&(this.measureTimeout=setTimeout(function(){n.measureTimeout=-1,n.maybeMeasure()},50))}},{key:"update",value:function(n){n.transactions.length&&(this.lastTransaction=Date.now());var e=this.manager.update(n);e&&this.observeIntersection();var i=e||n.geometryChanged,r=n.state.facet(gR);if(r.position!=this.position){this.position=r.position;var o,s=He(this.manager.tooltipViews);try{for(s.s();!(o=s.n()).done;)o.value.dom.style.position=this.position}catch(u){s.e(u)}finally{s.f()}i=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();var a,l=He(this.manager.tooltipViews);try{for(l.s();!(a=l.n()).done;)this.container.appendChild(a.value.dom)}catch(u){l.e(u)}finally{l.f()}i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}},{key:"createTooltip",value:function(n){var e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){var i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top="-10000px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}},{key:"destroy",value:function(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);var i,r=He(this.manager.tooltipViews);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.remove(),null===(n=o.destroy)||void 0===n||n.call(o)}}catch(s){r.e(s)}finally{r.f()}null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}},{key:"readMeasure",value:function(){var n=this,e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(function(i,r){var o=n.manager.tooltipViews[r];return o.getCoords?o.getCoords(i.pos):n.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(function(i){return i.dom.getBoundingClientRect()}),space:this.view.state.facet(gR).tooltipSpace(this.view)}}},{key:"writeMeasure",value:function(n){for(var e,i=n.editor,r=n.space,o=[],s=0;s=Math.min(i.bottom,r.bottom)||u.rightMath.min(i.right,r.right)+.1)c.style.top="-10000px";else{var h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,p=d.right-d.left,m=null!==(e=qhe.get(l))&&void 0!==e?e:d.bottom-d.top,g=l.offset||ant,v=this.view.textDirection==cs.LTR,y=d.width>r.right-r.left?v?r.left:r.right-d.width:v?Math.min(u.left-(h?14:0)+g.x,r.right-p):Math.max(r.left,u.left-p+(h?14:0)-g.x),b=!!a.above;!a.strictSide&&(b?u.top-(d.bottom-d.top)-g.yr.bottom)&&b==r.bottom-u.bottom>u.top-r.top&&(b=!b);var C=(b?u.top-r.top:r.bottom-u.bottom)-f;if(Cy&&j.topD&&(D=b?j.top-m-2-f:j.bottom+f+2)}}catch(U){z.e(U)}finally{z.f()}}"absolute"==this.position?(c.style.top=D-n.parent.top+"px",c.style.left=y-n.parent.left+"px"):(c.style.top=D+"px",c.style.left=y+"px"),h&&(h.style.left="".concat(u.left+(v?g.x:-g.x)-(y+14-7),"px")),!0!==l.overlap&&o.push({left:y,top:D,right:E,bottom:D+m}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),l.positioned&&l.positioned(n.space)}}}},{key:"maybeMeasure",value:function(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView))){var n,e=He(this.manager.tooltipViews);try{for(e.s();!(n=e.n()).done;)n.value.dom.style.top="-10000px"}catch(i){e.e(i)}finally{e.f()}}}}]),t}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),snt=Qn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ant={x:0,y:0},lD=oi.define({enables:[Yhe,snt]}),cD=oi.define(),lnt=function(){function t(n){var e=this;Oe(this,t),this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Whe(n,cD,function(i){return e.createHostedView(i)})}return Ie(t,[{key:"createHostedView",value:function(n){var e=n.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}},{key:"mount",value:function(n){var e,i=He(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.mount&&r.mount(n)}}catch(o){i.e(o)}finally{i.f()}this.mounted=!0}},{key:"positioned",value:function(n){var e,i=He(this.manager.tooltipViews);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.positioned&&r.positioned(n)}}catch(o){i.e(o)}finally{i.f()}}},{key:"update",value:function(n){this.manager.update(n)}}],[{key:"create",value:function(n){return new t(n)}}]),t}(),cnt=lD.compute([cD],function(t){var n=t.facet(cD).filter(function(e){return e});return 0===n.length?null:{pos:Math.min.apply(Math,ui(n.map(function(e){return e.pos}))),end:Math.max.apply(Math,ui(n.filter(function(e){return null!=e.end}).map(function(e){return e.end}))),create:lnt.create,above:n[0].above,arrow:n.some(function(e){return e.arrow})}}),unt=function(){function t(n,e,i,r,o){Oe(this,t),this.view=n,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Ie(t,[{key:"update",value:function(){var n=this;this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(function(){return n.startHover()},20))}},{key:"active",get:function(){return this.view.state.field(this.field)}},{key:"checkHover",value:function(){if(this.hoverTimeout=-1,!this.active){var n=Date.now()-this.lastMove.time;nr.bottom||e.xr.right+this.view.defaultCharacterWidth)){var o=this.view.bidiSpans(this.view.state.doc.lineAt(i)).find(function(c){return c.from<=i&&c.to>=i}),s=o&&o.dir==cs.RTL?-1:1,a=this.source(this.view,i,e.x1&&void 0!==arguments[1]?arguments[1]:{},e=gr.define(),i=qa.define({create:function(){return null},update:function(r,o){if(r&&(n.hideOnChange&&(o.docChanged||o.selection)||n.hideOn&&n.hideOn(o,r)))return null;if(r&&o.docChanged){var s=o.changes.mapPos(r.pos,-1,Ll.TrackDel);if(null==s)return null;var a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}var l,c=He(o.effects);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is(e)&&(r=u.value),u.is(fnt)&&(r=null)}}catch(d){c.e(d)}finally{c.f()}return r},provide:function(r){return cD.from(r)}});return[i,Ia.define(function(r){return new unt(r,t,i,e,n.hoverTime||300)}),cnt]}var fnt=gr.define(),Jhe=oi.define({combine:function(t){var n,e,i,r=He(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n||o.topContainer,e=e||o.bottomContainer}}catch(s){r.e(s)}finally{r.f()}return{topContainer:n,bottomContainer:e}}});function Vb(t,n){var e=t.plugin(Khe),i=e?e.specs.indexOf(n):-1;return i>-1?e.panels[i]:null}var Khe=Ia.fromClass(function(){function t(n){Oe(this,t),this.input=n.state.facet(Hb),this.specs=this.input.filter(function(s){return s}),this.panels=this.specs.map(function(s){return s(n)});var e=n.state.facet(Jhe);this.top=new uD(n,!0,e.topContainer),this.bottom=new uD(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(function(s){return s.top})),this.bottom.sync(this.panels.filter(function(s){return!s.top}));var i,r=He(this.panels);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.dom.classList.add("cm-panel"),o.mount&&o.mount()}}catch(s){r.e(s)}finally{r.f()}}return Ie(t,[{key:"update",value:function(n){var e=n.state.facet(Jhe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new uD(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new uD(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var i=n.state.facet(Hb);if(i!=this.input){var r,o=i.filter(function(C){return C}),s=[],a=[],l=[],c=[],u=He(o);try{for(u.s();!(r=u.n()).done;){var d=r.value,h=this.specs.indexOf(d),f=void 0;h<0?(f=d(n.view),c.push(f)):(f=this.panels[h]).update&&f.update(n),s.push(f),(f.top?a:l).push(f)}}catch(C){u.e(C)}finally{u.f()}this.specs=o,this.panels=s,this.top.sync(a),this.bottom.sync(l);for(var p=0,m=c;pthis.i;){var e=n.elements.pop();n.dom.removeChild(e.dom),e.destroy()}}}]),t}(),ife=function(){function t(n,e){var i=this;Oe(this,t),this.view=n,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var r=function(s){i.dom.addEventListener(s,function(a){var l,c=a.target;if(c!=i.dom&&i.dom.contains(c)){for(;c.parentNode!=i.dom;)c=c.parentNode;var u=c.getBoundingClientRect();l=(u.top+u.bottom)/2}else l=a.clientY;var d=n.lineBlockAtHeight(l-n.documentTop);e.domEventHandlers[s](n,d,a)&&a.preventDefault()})};for(var o in e.domEventHandlers)r(o);this.markers=tfe(e.markers(n)),e.initialSpacer&&(this.spacer=new rfe(n,0,0,[e.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Ie(t,[{key:"update",value:function(n){var e=this.markers;if(this.markers=tfe(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){var i=this.config.updateSpacer(this.spacer.markers[0],n);i!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[i])}var r=n.view.viewport;return!qo.eq(this.markers,e,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(n)}},{key:"destroy",value:function(){var n,e=He(this.elements);try{for(e.s();!(n=e.n()).done;)n.value.destroy()}catch(i){e.e(i)}finally{e.f()}}}]),t}(),rfe=function(){function t(n,e,i,r){Oe(this,t),this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,e,i,r)}return Ie(t,[{key:"update",value:function(n,e,i,r){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(o,s){if(o.length!=s.length)return!1;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),efe(),ynt]}function ofe(t){for(var n=9;ni&&(i=s,e.push(bnt.range(s)))}}catch(a){r.e(a)}finally{r.f()}return qo.of(e)}),wnt=0,bR=Ie(function t(n,e){Oe(this,t),this.from=n,this.to=e}),xr=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,t),this.id=wnt++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||function(){throw new Error("This node type doesn't define a deserialize function")}}return Ie(t,[{key:"add",value:function(n){var e=this;if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof n&&(n=mu.match(n)),function(i){var r=n(i);return void 0===r?null:[e,r]}}}]),t}();xr.closedBy=new xr({deserialize:function(t){return t.split(" ")}}),xr.openedBy=new xr({deserialize:function(t){return t.split(" ")}}),xr.group=new xr({deserialize:function(t){return t.split(" ")}}),xr.contextHash=new xr({perNode:!0}),xr.lookAhead=new xr({perNode:!0}),xr.mounted=new xr({perNode:!0});var Cnt=Object.create(null),mu=function(){function t(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Oe(this,t),this.name=n,this.props=e,this.id=i,this.flags=r}return Ie(t,[{key:"prop",value:function(n){return this.props[n.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(n){if("string"==typeof n){if(this.name==n)return!0;var e=this.prop(xr.group);return!!e&&e.indexOf(n)>-1}return this.id==n}}],[{key:"define",value:function(n){var e=n.props&&n.props.length?Object.create(null):Cnt,r=new t(n.name||"",e,n.id,(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(null==n.name?8:0));if(n.props){var o,s=He(n.props);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(Array.isArray(a)||(a=a(r)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[a[0].id]=a[1]}}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"match",value:function(n){var e=Object.create(null);for(var i in n){var r,o=He(i.split(" "));try{for(o.s();!(r=o.n()).done;)e[r.value]=n[i]}catch(a){o.e(a)}finally{o.f()}}return function(a){for(var l=a.prop(xr.group),c=-1;c<(l?l.length:0);c++){var u=e[c<0?a.name:l[c]];if(u)return u}}}}]),t}();mu.none=new mu("",Object.create(null),0,8);var Xa,Snt=function(){function t(n){Oe(this,t),this.types=n;for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"cursorAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=hD.get(this)||this.topNode,r=new mD(i);return r.moveTo(n,e),hD.set(this,r._tree),r}},{key:"topNode",get:function(){return new Gb(this,0,0,null)}},{key:"resolve",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t1(hD.get(this)||this.topNode,n,e,!1);return hD.set(this,i),i}},{key:"resolveInner",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t1(sfe.get(this)||this.topNode,n,e,!0);return sfe.set(this,i),i}},{key:"iterate",value:function(n){for(var e=n.enter,i=n.leave,r=n.from,o=void 0===r?0:r,s=n.to,a=void 0===s?this.length:s,l=this.cursor((n.mode||0)|Xa.IncludeAnonymous);;){var c=!1;if(l.from<=a&&l.to>=o&&(l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&i&&!l.type.isAnonymous&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}},{key:"prop",value:function(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}},{key:"propValues",get:function(){var n=[];if(this.props)for(var e in this.props)n.push([+e,this.props[e]]);return n}},{key:"balance",value:function(){var n=this;return this.children.length<=8?this:CR(mu.none,this.children,this.positions,0,this.children.length,0,this.length,function(i,r,o){return new t(n.type,i,r,o,n.propValues)},(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).makeTree||function(i,r,o){return new t(mu.none,i,r,o)})}}],[{key:"build",value:function(n){return function Tnt(t){var n,e=t.buffer,i=t.nodeSet,r=t.maxBufferLength,o=void 0===r?1024:r,s=t.reused,a=void 0===s?[]:s,l=t.minRepeatType,c=void 0===l?i.types.length:l,u=Array.isArray(e)?new knt(e,e.length):e,d=i.types,h=0,f=0;function p(D,E,B,z,j){for(var U=u.id,G=u.start,X=u.end,oe=u.size,P=f;oe<0;){if(u.next(),-1==oe)return B.push(a[U]),void z.push(G-D);if(-3==oe)return void(h=U);if(-4==oe)return void(f=U);throw new RangeError("Unrecognized record size: ".concat(oe))}var J,H,st,pe=d[U],A=G-D;if(X-G<=o&&(H=function(st,$){var ae=u.fork(),le=0,Re=0,Ze=0,Ve=ae.end-o,Ct={size:0,start:0,skip:0};e:for(var Ot=ae.pos-st;ae.pos>Ot;){var yn=ae.size;if(ae.id==$&&yn>=0)Ct.size=le,Ct.start=Re,Ct.skip=Ze,Ze+=4,le+=4,ae.next();else{var Xn=ae.pos-yn;if(yn<0||Xn=c?4:0,Ri=ae.start;for(ae.next();ae.pos>Xn;){if(ae.size<0){if(-3!=ae.size)break e;on+=4}else ae.id>=c&&(on+=4);ae.next()}Re=Ri,le+=yn,Ze+=on}}return($<0||le==st)&&(Ct.size=le,Ct.start=Re,Ct.skip=Ze),Ct.size>4?Ct:void 0}(u.pos-E,j))){for(var N=new Uint16Array(H.size-H.skip),F=u.pos-H.size,q=N.length;u.pos>F;)q=v(H.start,N,q);J=new zb(N,X-H.start,i),A=H.start-D}else{var V=u.pos-oe;u.next();for(var ce=[],ve=[],je=U>=c?U:-1,Te=0,et=X;u.pos>V;)je>=0&&u.id==je&&u.size>=0?(u.end<=et-o&&(m(ce,ve,G,Te,u.end,et,je,P),Te=ce.length,et=u.end),u.next()):p(G,V,ce,ve,je);if(je>=0&&Te>0&&Te-1&&Te>0){var We=(st=pe,function($,ae,le){var Re,Ze,Ve=0,Ct=$.length-1;if(Ct>=0&&(Re=$[Ct])instanceof Ja){if(!Ct&&Re.type==st&&Re.length==le)return Re;(Ze=Re.prop(xr.lookAhead))&&(Ve=ae[Ct]+Re.length+Ze)}return g(st,$,ae,le,Ve)});J=CR(pe,ce,ve,0,ce.length,0,X-G,We,We)}else J=g(pe,ce,ve,X-G,P-X)}B.push(J),z.push(A)}function m(D,E,B,z,j,U,G,X){for(var oe=[],P=[];D.length>z;)oe.push(D.pop()),P.push(E.pop()+B-j);D.push(g(i.types[G],oe,P,U-j,X-U)),E.push(j-B)}function g(D,E,B,z){var j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,U=arguments.length>5?arguments[5]:void 0;if(h){var G=[xr.contextHash,h];U=U?[G].concat(U):[G]}if(j>25){var X=[xr.lookAhead,j];U=U?[X].concat(U):[X]}return new Ja(D,E,B,z,U)}function v(D,E,B){var z=u.id,j=u.start,U=u.end,G=u.size;if(u.next(),G>=0&&z4)for(var oe=u.pos-(G-4);u.pos>oe;)B=v(D,E,B);E[--B]=X,E[--B]=U-D,E[--B]=j-D,E[--B]=z}else-3==G?h=z:-4==G&&(f=z);return B}for(var y=[],b=[];u.pos>0;)p(t.start||0,t.bufferStart||0,y,b,-1);var C=null!==(n=t.length)&&void 0!==n?n:y.length?b[0]+y[0].length:0;return new Ja(d[t.topID],y.reverse(),b.reverse(),C)}(n)}}]),t}();Ja.empty=new Ja(mu.none,[],[],0);var knt=function(){function t(n,e){Oe(this,t),this.buffer=n,this.index=e}return Ie(t,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new t(this.buffer,this.index)}}]),t}(),zb=function(){function t(n,e,i){Oe(this,t),this.buffer=n,this.length=e,this.set=i}return Ie(t,[{key:"type",get:function(){return mu.none}},{key:"toString",value:function(){for(var n=[],e=0;e0));l=s[l+3]);return a}},{key:"slice",value:function(n,e,i,r){for(var o=this.buffer,s=new Uint16Array(e-n),a=n,l=0;a=n&&en;case 1:return e<=n&&i>n;case 2:return i>n;case 4:return!0}}function lfe(t,n){for(var e=t.childBefore(n);e;){var i=e.lastChild;if(!i||i.to!=e.to)break;i.type.isError&&i.from==i.to?(t=e,e=i.prevSibling):e=i}return t}function t1(t,n,e,i){for(var r;t.from==t.to||(e<1?t.from>=n:t.from>n)||(e>-1?t.to<=n:t.to4&&void 0!==arguments[4]?arguments[4]:0,s=this;;){for(var a=s._tree,l=a.children,c=a.positions,u=e>0?l.length:-1;n!=u;n+=e){var d=l[n],h=c[n]+s.from;if(afe(r,i,h,h+d.length))if(d instanceof zb){if(o&Xa.ExcludeBuffers)continue;var f=d.findChild(0,d.buffer.length,e,i-h,r);if(f>-1)return new xR(new Dnt(s,d,n,h),null,f)}else if(o&Xa.IncludeAnonymous||!d.type.isAnonymous||wR(d)){var p=void 0;if(!(o&Xa.IgnoreMounts)&&d.props&&(p=d.prop(xr.mounted))&&!p.overlay)return new t(p.tree,h,n,s);var m=new t(d,h,n,s);return o&Xa.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?d.children.length-1:0,e,i,r)}}if(o&Xa.IncludeAnonymous||!s.type.isAnonymous||(n=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(n){return this.nextChild(0,1,n,2)}},{key:"childBefore",value:function(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}},{key:"enter",value:function(n,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&Xa.IgnoreOverlays)&&(i=this._tree.prop(xr.mounted))&&i.overlay){var o,s=n-this.from,a=He(i.overlay);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=l.from,u=l.to;if((e>0?c<=s:c=s:u>s))return new t(i.tree,i.overlay[0].from+this.from,-1,this)}}catch(d){a.e(d)}finally{a.f()}}return this.nextChild(0,1,n,e,r)}},{key:"nextSignificantParent",value:function(){for(var n=this;n.type.isAnonymous&&n._parent;)n=n._parent;return n}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"cursor",value:function(){return new mD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"resolve",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return lfe(this,n)}},{key:"getChild",value:function(n){var r=fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"toString",value:function(){return this._tree.toString()}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return pD(this,n)}}]),t}();function fD(t,n,e,i){var r=t.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(;!r.type.is(e);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(n)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function pD(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length-1,i=t.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(n[e]&&n[e]!=i.name)return!1;e--}}return!0}var Dnt=Ie(function t(n,e,i,r){Oe(this,t),this.parent=n,this.buffer=e,this.index=i,this.start=r}),xR=function(){function t(n,e,i){Oe(this,t),this.context=n,this._parent=e,this.index=i,this.type=n.buffer.set.types[n.buffer.buffer[i]]}return Ie(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(n,e,i){var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.context.start,i);return o<0?null:new t(this.context,this,o)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(n){return this.child(1,n,2)}},{key:"childBefore",value:function(n){return this.child(-1,n,-2)}},{key:"enter",value:function(n,e){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&Xa.ExcludeBuffers)return null;var r=this.context.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,n-this.context.start,e);return o<0?null:new t(this.context,this,o)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}},{key:"nextSibling",get:function(){var n=this.context.buffer,e=n.buffer[this.index+3];return e<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new t(this.context,this._parent,e):this.externalSibling(1)}},{key:"prevSibling",get:function(){var n=this.context.buffer,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new t(this.context,this._parent,n.findChild(e,this.index,-1,0,4))}},{key:"cursor",value:function(){return new mD(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var n=[],e=[],i=this.context.buffer,r=this.index+4,o=i.buffer[this.index+3];return o>r&&(n.push(i.slice(r,o,i.buffer[this.index+1],i.buffer[this.index+2])),e.push(0)),new Ja(this.type,n,e,this.to-this.from)}},{key:"resolve",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}},{key:"resolveInner",value:function(n){return t1(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}},{key:"enterUnfinishedNodesBefore",value:function(n){return lfe(this,n)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}},{key:"getChild",value:function(n){var r=fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return r.length?r[0]:null}},{key:"getChildren",value:function(n){return fD(this,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"node",get:function(){return this}},{key:"matchContext",value:function(n){return pD(this,n)}}]),t}(),mD=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Oe(this,t),this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof Gb)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(var i=n._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=n,this.yieldBuf(n.index)}}return Ie(t,[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(n){return!!n&&(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0)}},{key:"yieldBuf",value:function(n,e){this.index=n;var i=this.buffer,r=i.start,o=i.buffer;return this.type=e||o.set.types[o.buffer[n]],this.from=r+o.buffer[n+1],this.to=r+o.buffer[n+2],!0}},{key:"yield",value:function(n){return!!n&&(n instanceof Gb?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(n,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,e,i,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],n,e-this.buffer.start,i);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(n){return this.enterChild(1,n,2)}},{key:"childBefore",value:function(n){return this.enterChild(-1,n,-2)}},{key:"enter",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(i&Xa.ExcludeBuffers)&&this.enterChild(1,n,e):this.yield(this._tree.enter(n,e,i))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&Xa.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var n=this.mode&Xa.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}},{key:"sibling",value:function(n){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode));var e=this.buffer.buffer,i=this.stack.length-1;if(n<0){var r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{var o=e.buffer[this.index+3];if(o<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(o)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(n){var e,i,r=this.buffer;if(r){if(n>0){if(this.index-1)for(var l=e+n,c=n<0?-1:i._tree.children.length;l!=c;l+=n){var u=i._tree.children[l];if(this.mode&Xa.IncludeAnonymous||u instanceof zb||!u.type.isAnonymous||wR(u))return!1}}return!0}},{key:"move",value:function(n,e){if(e&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}},{key:"next",value:function(){return this.move(1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"prev",value:function(){return this.move(-1,!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"moveTo",value:function(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(e<1?this.from>=n:this.from>n)||(e>-1?this.to<=n:this.to=0;){for(var s=n;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(var a=i;a=0;o--){if(o<0)return pD(this.node,n,r);var s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(n[r]&&n[r]!=s.name)return!1;r--}}return!0}}]),t}();function wR(t){return t.children.some(function(n){return n instanceof zb||!n.type.isAnonymous||wR(n)})}var cfe=new WeakMap;function gD(t,n){if(!t.isAnonymous||n instanceof zb||n.type!=t)return 1;var e=cfe.get(n);if(null==e){e=1;var i,r=He(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.type!=t||!(o instanceof Ja)){e=1;break}e+=gD(t,o)}}catch(s){r.e(s)}finally{r.f()}cfe.set(n,e)}return e}function CR(t,n,e,i,r,o,s,a,l){for(var c=0,u=i;u=d)break;B+=z}if(C==D+1){if(B>d){var j=m[D];p(j.children,j.positions,0,j.children.length,g[D]+b);continue}h.push(m[D])}else h.push(CR(t,m,g,D,C,E,g[C-1]+m[C-1].length-E,null,l));f.push(E+b-o)}}(n,e,i,r,0),(a||l)(h,f,s)}var vD=function(){function t(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];Oe(this,t),this.from=n,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}return Ie(t,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=[new t(0,n.length,n,0,!1,arguments.length>2&&void 0!==arguments[2]&&arguments[2])],s=He(i);try{for(s.s();!(e=s.n()).done;){var a=e.value;a.to>n.length&&o.push(a)}}catch(l){s.e(l)}finally{s.f()}return o}},{key:"applyChanges",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!e.length)return n;for(var r=[],o=1,s=n.length?n[0]:null,a=0,l=0,c=0;;a++){var u=a=i)for(;s&&s.from=h.from||d<=h.to||c){var f=Math.max(h.from,l)-c,p=Math.min(h.to,d)-c;h=f>=p?null:new t(f,p,h.tree,h.offset+c,a>0,!!u)}if(h&&r.push(h),s.to>d)break;s=o-1?e:dfe.get(e.base||e,e.modified.concat(n).sort(function(i,r){return i.id-r.id}))}}}]),t}(),Mnt=0,dfe=function(){function t(){Oe(this,t),this.instances=[],this.id=Mnt++}return Ie(t,null,[{key:"get",value:function(n,e){if(!e.length)return n;var i=e[0].instances.find(function(m){return m.base==n&&(g=e).length==(v=m.modified).length&&g.every(function(y,b){return y==v[b]});var g,v});if(i)return i;var r,o=[],s=new Np(o,n,e),a=He(e);try{for(a.s();!(r=a.n()).done;)r.value.instances.push(s)}catch(m){a.e(m)}finally{a.f()}var l,c=hfe(e),u=He(n.set);try{for(u.s();!(l=u.n()).done;){var d,h=l.value,f=He(c);try{for(f.s();!(d=f.n()).done;)o.push(t.get(h,d.value))}catch(m){f.e(m)}finally{f.f()}}}catch(m){u.e(m)}finally{u.f()}return s}}]),t}();function hfe(t){for(var n=[t],e=0;e0&&u+3==s.length){l=1;break}var d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(c);if(!d)throw new RangeError("Invalid path: "+s);if(a.push("*"==d[0]?"":'"'==d[0][0]?JSON.parse(d[0]):d[0]),(u+=d[0].length)==s.length)break;var h=s[u++];if(u==s.length&&"!"==h){l=0;break}if("/"!=h)throw new RangeError("Invalid path: "+s);c=s.slice(u)}var f=a.length-1,p=a[f];if(!p)throw new RangeError("Invalid path: "+s);var m=new Ont(i,l,f>0?a.slice(0,f):null);n[p]=m.sort(n[p])}}}catch(g){o.e(g)}finally{o.f()}}return pfe.add(n)}var pfe=new xr,Ont=function(){function t(n,e,i,r){Oe(this,t),this.tags=n,this.mode=e,this.context=i,this.next=r}return Ie(t,[{key:"sort",value:function(n){return!n||n.depth3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length,o=new Fnt(i,Array.isArray(n)?n:[n],e);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}var SR,Fnt=function(){function t(n,e,i){Oe(this,t),this.at=n,this.highlighters=e,this.span=i,this.class=""}return Ie(t,[{key:"startSpan",value:function(n,e){e!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=e)}},{key:"flush",value:function(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}},{key:"highlightRange",value:function(n,e,i,r,o){var s=n.type,a=n.from,l=n.to;if(!(a>=i||l<=e)){s.isTop&&(o=this.highlighters.filter(function(B){return!B.scope||B.scope(s)}));for(var c=r,u=s.prop(pfe),d=!1;u;){if(!u.context||n.matchContext(u.context)){var h=Int(o,u.tags);h&&(c&&(c+=" "),c+=h,1==u.mode?r+=(r?" ":"")+h:0==u.mode&&(d=!0));break}u=u.next}if(this.startSpan(n.from,c),!d){var f=n.tree&&n.tree.prop(xr.mounted);if(f&&f.overlay){for(var p=n.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(function(B){return!B.scope||B.scope(f.tree.type)}),g=n.firstChild(),v=0,y=a;;v++){var b=v=C)&&n.nextSibling()););if(!b||C>i)break;(y=b.to+a)>e&&(this.highlightRange(p.cursor(),Math.max(e,b.from+a),Math.min(i,y),r,m),this.startSpan(y,c))}g&&n.parent()}else if(n.firstChild()){do{if(!(n.to<=e)){if(n.from>=i)break;this.highlightRange(n,e,i,r,o),this.startSpan(Math.min(i,n.to),c)}}while(n.nextSibling());n.parent()}}}}}]),t}(),Dn=Np.define,yD=Dn(),Fp=Dn(),gfe=Dn(Fp),vfe=Dn(Fp),Pp=Dn(),_D=Dn(Pp),kR=Dn(Pp),vh=Dn(),fg=Dn(vh),yh=Dn(),_h=Dn(),DR=Dn(),Wb=Dn(DR),bD=Dn(),gn={comment:yD,lineComment:Dn(yD),blockComment:Dn(yD),docComment:Dn(yD),name:Fp,variableName:Dn(Fp),typeName:gfe,tagName:Dn(gfe),propertyName:vfe,attributeName:Dn(vfe),className:Dn(Fp),labelName:Dn(Fp),namespace:Dn(Fp),macroName:Dn(Fp),literal:Pp,string:_D,docString:Dn(_D),character:Dn(_D),attributeValue:Dn(_D),number:kR,integer:Dn(kR),float:Dn(kR),bool:Dn(Pp),regexp:Dn(Pp),escape:Dn(Pp),color:Dn(Pp),url:Dn(Pp),keyword:yh,self:Dn(yh),null:Dn(yh),atom:Dn(yh),unit:Dn(yh),modifier:Dn(yh),operatorKeyword:Dn(yh),controlKeyword:Dn(yh),definitionKeyword:Dn(yh),moduleKeyword:Dn(yh),operator:_h,derefOperator:Dn(_h),arithmeticOperator:Dn(_h),logicOperator:Dn(_h),bitwiseOperator:Dn(_h),compareOperator:Dn(_h),updateOperator:Dn(_h),definitionOperator:Dn(_h),typeOperator:Dn(_h),controlOperator:Dn(_h),punctuation:DR,separator:Dn(DR),bracket:Wb,angleBracket:Dn(Wb),squareBracket:Dn(Wb),paren:Dn(Wb),brace:Dn(Wb),content:vh,heading:fg,heading1:Dn(fg),heading2:Dn(fg),heading3:Dn(fg),heading4:Dn(fg),heading5:Dn(fg),heading6:Dn(fg),contentSeparator:Dn(vh),list:Dn(vh),quote:Dn(vh),emphasis:Dn(vh),strong:Dn(vh),link:Dn(vh),monospace:Dn(vh),strikethrough:Dn(vh),inserted:Dn(),deleted:Dn(),changed:Dn(),invalid:Dn(),meta:bD,documentMeta:Dn(bD),annotation:Dn(bD),processingInstruction:Dn(bD),definition:Np.defineModifier(),constant:Np.defineModifier(),function:Np.defineModifier(),standard:Np.defineModifier(),local:Np.defineModifier(),special:Np.defineModifier()};mfe([{tag:gn.link,class:"tok-link"},{tag:gn.heading,class:"tok-heading"},{tag:gn.emphasis,class:"tok-emphasis"},{tag:gn.strong,class:"tok-strong"},{tag:gn.keyword,class:"tok-keyword"},{tag:gn.atom,class:"tok-atom"},{tag:gn.bool,class:"tok-bool"},{tag:gn.url,class:"tok-url"},{tag:gn.labelName,class:"tok-labelName"},{tag:gn.inserted,class:"tok-inserted"},{tag:gn.deleted,class:"tok-deleted"},{tag:gn.literal,class:"tok-literal"},{tag:gn.string,class:"tok-string"},{tag:gn.number,class:"tok-number"},{tag:[gn.regexp,gn.escape,gn.special(gn.string)],class:"tok-string2"},{tag:gn.variableName,class:"tok-variableName"},{tag:gn.local(gn.variableName),class:"tok-variableName tok-local"},{tag:gn.definition(gn.variableName),class:"tok-variableName tok-definition"},{tag:gn.special(gn.variableName),class:"tok-variableName2"},{tag:gn.definition(gn.propertyName),class:"tok-propertyName tok-definition"},{tag:gn.typeName,class:"tok-typeName"},{tag:gn.namespace,class:"tok-namespace"},{tag:gn.className,class:"tok-className"},{tag:gn.macroName,class:"tok-macroName"},{tag:gn.propertyName,class:"tok-propertyName"},{tag:gn.operator,class:"tok-operator"},{tag:gn.comment,class:"tok-comment"},{tag:gn.meta,class:"tok-meta"},{tag:gn.invalid,class:"tok-invalid"},{tag:gn.punctuation,class:"tok-punctuation"}]);var n1=new xr,Pnt=new xr,hd=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Oe(this,t),this.data=n,this.name=r,Fo.prototype.hasOwnProperty("tree")||Object.defineProperty(Fo.prototype,"tree",{get:function(){return gl(this)}}),this.parser=e,this.extension=[Rp.of(this),Fo.languageData.of(function(o,s,a){var l=yfe(o,s,a),c=l.type.prop(n1);if(!c)return[];var u=o.facet(c),d=l.type.prop(Pnt);if(d){var h,f=l.resolve(s-l.from,a),p=He(d);try{for(p.s();!(h=p.n()).done;){var m=h.value;if(m.test(f,o)){var g=o.facet(m.facet);return"replace"==m.type?g:g.concat(u)}}}catch(v){p.e(v)}finally{p.f()}}return u})].concat(i)}return Ie(t,[{key:"isActiveAt",value:function(n,e){return yfe(n,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(n1)==this.data}},{key:"findRegions",value:function(n){var e=this,i=n.facet(Rp);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];var r=[];return function o(s,a){if(s.prop(n1)!=e.data){var l=s.prop(xr.mounted);if(l){if(l.tree.prop(n1)==e.data){if(l.overlay){var c,u=He(l.overlay);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.push({from:d.from+a,to:d.to+a})}}catch(m){u.e(m)}finally{u.f()}}else r.push({from:a,to:a+s.length});return}if(l.overlay){var h=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>h)return}}for(var f=0;f=this.cursorPos?this.doc.sliceString(n,e):this.string.slice(n-i,e-i)}}]),t}(),qb=null,Lnt=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;Oe(this,t),this.parser=n,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}return Ie(t,[{key:"startParse",value:function(){return this.parser.startParse(new jnt(this.state.doc),this.fragments)}},{key:"work",value:function(n,e){var i=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Ja.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof n){var o=Date.now()+n;n=function(){return Date.now()>o}}for(i.parse||(i.parse=i.startParse()),null!=e&&(null==i.parse.stoppedAt||i.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(function(){for(;!(e=i.parse.advance()););}),this.treeLen=n,this.tree=e,this.fragments=this.withoutTempSkipped(vD.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(n){var e=qb;qb=this;try{return n()}finally{qb=e}}},{key:"withoutTempSkipped",value:function(n){for(var e;e=this.tempSkipped.pop();)n=_fe(n,e.from,e.to);return n}},{key:"changes",value:function(n,e){var i=this.fragments,r=this.tree,o=this.treeLen,s=this.viewport,a=this.skipped;if(this.takeTree(),!n.empty){var l=[];if(n.iterChangedRanges(function(p,m,g,v){return l.push({fromA:p,toA:m,fromB:g,toB:v})}),i=vD.applyChanges(i,l),r=Ja.empty,o=0,s={from:n.mapPos(s.from,-1),to:n.mapPos(s.to,1)},this.skipped.length){a=[];var c,u=He(this.skipped);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapPos(d.from,1),f=n.mapPos(d.to,-1);hn.from&&(this.fragments=_fe(this.fragments,o,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=e||(this.reset(),0))}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(n,e){this.skipped.push({from:n,to:e})}},{key:"isDone",value:function(n){n=Math.min(n,this.state.doc.length);var e=this.fragments;return this.treeLen>=n&&e.length&&0==e[0].from&&e[0].to>=n}}],[{key:"create",value:function(n,e,i){return new t(n,e,[],Ja.empty,0,i,[],null)}},{key:"getSkippingParser",value:function(n){return new(function(e){Dt(r,ufe);var i=Tt(r);function r(){return Oe(this,r),i.apply(this,arguments)}return Ie(r,[{key:"createParse",value:function(o,s,a){var l=a[0].from,c=a[a.length-1].to;return{parsedPos:l,advance:function(){var u=qb;if(u){var d,h=He(a);try{for(h.s();!(d=h.n()).done;)u.tempSkipped.push(d.value)}catch(p){h.e(p)}finally{h.f()}n&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,n]):n)}return this.parsedPos=c,new Ja(mu.none,[],[],c-l)},stoppedAt:null,stopAt:function(){}}}}]),r}())}},{key:"get",value:function(){return qb}}]),t}();function _fe(t,n,e){return vD.applyChanges(t,[{fromA:n,toA:e,fromB:n,toB:e}])}var TR=function(){function t(n){Oe(this,t),this.context=n,this.tree=n.tree}return Ie(t,[{key:"apply",value:function(n){if(!n.docChanged&&this.tree==this.context.tree)return this;var e=this.context.changes(n.changes,n.state),i=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new t(e)}}],[{key:"init",value:function(n){var e=Math.min(3e3,n.doc.length),i=Lnt.create(n.facet(Rp).parser,n,{from:0,to:e});return i.work(20,e)||i.takeTree(),new t(i)}}]),t}();hd.state=qa.define({create:TR.init,update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is(hd.setState))return r.value}}catch(o){i.e(o)}finally{i.f()}return n.startState.facet(Rp)!=n.state.facet(Rp)?TR.init(n.state):t.apply(n)}});var bfe=function(t){var n=setTimeout(function(){return t()},500);return function(){return clearTimeout(n)}};typeof requestIdleCallback<"u"&&(bfe=function(t){var n=-1,e=setTimeout(function(){n=requestIdleCallback(t,{timeout:400})},100);return function(){return n<0?clearTimeout(e):cancelIdleCallback(n)}});var ER=typeof navigator<"u"&&null!==(SR=navigator.scheduling)&&void 0!==SR&&SR.isInputPending?function(){return navigator.scheduling.isInputPending()}:null,Bnt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return Ie(t,[{key:"update",value:function(n){var e=this.view.state.field(hd.state).context;(e.updateViewport(n.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!this.working){var n=this.view.state,e=n.field(hd.state);e.tree==e.context.tree&&e.context.isDone(n.doc.length)||(this.working=bfe(this.work))}}},{key:"work",value:function(n){this.working=null;var e=Date.now();if(this.chunkEndo+1e3,c=s.context.work(function(){return ER&&ER()||Date.now()>a},o+(l?0:1e5));this.chunkBudget-=Date.now()-e,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:hd.setState.of(new TR(s.context))})),this.chunkBudget>0&&(!c||l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}}}},{key:"checkAsyncSchedule",value:function(n){var e=this;n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(function(){return e.scheduleWork()}).catch(function(i){return jc(e.view.state,i)}).then(function(){return e.workScheduled--}),n.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),Rp=oi.define({combine:function(t){return t.length?t[0]:null},enables:function(t){return[hd.state,Bnt,Qn.contentAttributes.compute([t],function(n){var e=n.facet(t);return e&&e.name?{"data-language":e.name}:{}})]}}),$nt=Ie(function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Oe(this,t),this.language=n,this.support=e,this.extension=[n,e]}),Vnt=oi.define(),xD=oi.define({combine:function(t){if(!t.length)return" ";var n=t[0];if(!n||/\S/.test(n)||Array.from(n).some(function(e){return e!=n[0]}))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return n}});function i1(t){var n=t.facet(xD);return 9==n.charCodeAt(0)?t.tabSize*n.length:n.length}function Yb(t,n){var e="",i=t.tabSize,r=t.facet(xD)[0];if("\t"==r){for(;n>=i;)e+="\t",n-=i;r=" "}for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};Oe(this,t),this.state=n,this.options=e,this.unit=i1(n)}return Ie(t,[{key:"lineAt",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.state.doc.lineAt(n),r=this.options,o=r.simulateBreak;return null!=o&&o>=i.from&&o<=i.to?r.simulateDoubleBreak&&o==n?{text:"",from:n}:(e<0?o1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from;return r.slice(n-o,Math.min(r.length,n+100-o))}},{key:"column",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,o=i.from,s=this.countColumn(r,n-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(r,r.search(/\S|$/))),s}},{key:"countColumn",value:function(n){return Ab(n,this.state.tabSize,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length)}},{key:"lineIndent",value:function(n){var i=this.lineAt(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),r=i.text,s=this.options.overrideIndentation;if(s){var a=s(i.from);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),xfe=new xr;function Hnt(t){var n=t.type.prop(xfe);if(n)return n;var e,i=t.firstChild;if(i&&(e=i.type.prop(xr.closedBy))){var r=t.lastChild,o=r&&e.indexOf(r.name)>-1;return function(s){return function(a,l,c,u,d){var f=a.textAfter.match(/^\s*/)[0].length,p=d==a.pos+f,m=function(g){var v=g.node,y=v.childAfter(v.from),b=v.lastChild;if(!y)return null;for(var C=g.options.simulateBreak,D=g.state.doc.lineAt(y.from),E=null==C||C<=D.from?D.to:Math.min(D.to,C),B=y.to;;){var z=v.childAfter(B);if(!z||z==b)return null;if(!z.type.isSkipped)return z.from0&&void 0!==arguments[0]?arguments[0]:{},n=t.except,e=t.units,i=void 0===e?1:e;return function(r){var o=n&&n.test(r.textAfter);return r.baseIndent+(o?0:i*r.unit)}}var Wnt=oi.define(),Sfe=new xr;function CD(t,n,e){var i,r=He(t.facet(Wnt));try{for(r.s();!(i=r.n()).done;){var o=(0,i.value)(t,n,e);if(o)return o}}catch(s){r.e(s)}finally{r.f()}return function(s,a,l){var c=gl(s);if(c.lengthl)){if(h&&f.from=a&&m.to>l&&(h=m)}}return h}(t,n,e)}function kfe(t,n){var e=n.mapPos(t.from,1),i=n.mapPos(t.to,-1);return e>=i?void 0:{from:e,to:i}}var SD=gr.define({map:kfe}),Xb=gr.define({map:kfe});function Dfe(t){var n,e=[],i=He(t.state.selection.ranges);try{var r=function(){var o=n.value.head;if(e.some(function(s){return s.from<=o&&s.to>=o}))return"continue";e.push(t.lineBlockAt(o))};for(i.s();!(n=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}return e}var pg=qa.define({create:function(){return Ci.none},update:function(t,n){t=t.map(n.changes);var e,i=He(n.effects);try{var r=function(){var c,u,d,a=e.value;a.is(SD)&&(u=a.value.to,d=!1,t.between(c=a.value.from,c,function(h,f){h==c&&f==u&&(d=!0)}),!d)?t=t.update({add:[Ofe.range(a.value.from,a.value.to)]}):a.is(Xb)&&(t=t.update({filter:function(l,c){return a.value.from!=l||a.value.to!=c},filterFrom:a.value.from,filterTo:a.value.to}))};for(i.s();!(e=i.n()).done;)r()}catch(a){i.e(a)}finally{i.f()}if(n.selection){var o=!1,s=n.selection.main.head;t.between(s,s,function(a,l){as&&(o=!0)}),o&&(t=t.update({filterFrom:s,filterTo:s,filter:function(a,l){return l<=s||a>=s}}))}return t},provide:function(t){return Qn.decorations.from(t)},toJSON:function(t,n){var e=[];return t.between(0,n.doc.length,function(i,r){e.push(i,r)}),e},fromJSON:function(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");for(var n=[],e=0;eo)&&(r={from:o,to:s})}),r}function Tfe(t,n){return t.field(pg,!1)?n:n.concat(gr.appendConfig.of(Mfe()))}function Efe(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.state.doc.lineAt(n.from).number,r=t.state.doc.lineAt(n.to).number;return Qn.announce.of("".concat(t.state.phrase(e?"Folded lines":"Unfolded lines")," ").concat(i," ").concat(t.state.phrase("to")," ").concat(r,"."))}var qnt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(t){var n,e=He(Dfe(t));try{for(e.s();!(n=e.n()).done;){var i=n.value,r=CD(t.state,i.from,i.to);if(r)return t.dispatch({effects:Tfe(t.state,[SD.of(r),Efe(t,r)])}),!0}}catch(o){e.e(o)}finally{e.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(t){if(!t.state.field(pg,!1))return!1;var n,e=[],i=He(Dfe(t));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=kD(t.state,r.from,r.to);o&&e.push(Xb.of(o),Efe(t,o,!1))}}catch(s){i.e(s)}finally{i.f()}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:function(t){for(var n=t.state,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},Xnt),t),e=new MR(n,!0),i=new MR(n,!1),r=Ia.fromClass(function(){function s(a){Oe(this,s),this.from=a.viewport.from,this.markers=this.buildMarkers(a)}return Ie(s,[{key:"update",value:function(a){(a.docChanged||a.viewportChanged||a.startState.facet(Rp)!=a.state.facet(Rp)||a.startState.field(pg,!1)!=a.state.field(pg,!1)||gl(a.startState)!=gl(a.state)||n.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}},{key:"buildMarkers",value:function(a){var l,c=new ug,u=He(a.viewportLineBlocks);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=kD(a.state,d.from,d.to)?i:CD(a.state,d.from,d.to)?e:null;h&&c.add(d.from,d.from,h)}}catch(f){u.e(f)}finally{u.f()}return c.finish()}}]),s}()),o=n.domEventHandlers;return[r,Zhe({class:"cm-foldGutter",markers:function(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||qo.empty},initialSpacer:function(){return new MR(n,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:function(s,a,l){if(o.click&&o.click(s,a,l))return!0;var c=kD(s.state,a.from,a.to);if(c)return s.dispatch({effects:Xb.of(c)}),!0;var u=CD(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:SD.of(u)}),!0)}})}),Mfe()]}var Knt=Qn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),OR=function(){function t(n,e){var i;function r(a){var l=Ap.newName();return(i||(i=Object.create(null)))["."+l]=a,l}Oe(this,t),this.specs=n;var o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof hd?function(a){return a.prop(n1)==s.data}:s?function(a){return a==s}:void 0,this.style=mfe(n.map(function(a){return{tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))}}),{all:o}).style,this.module=i?new Ap(i):null,this.themeType=e.themeType}return Ie(t,null,[{key:"define",value:function(n,e){return new t(n,e||{})}}]),t}(),IR=oi.define(),Ife=oi.define({combine:function(t){return t.length?[t[0]]:null}});function NR(t){var n=t.facet(IR);return n.length?n:t.facet(Ife)}function Nfe(t,n){var e,i=[Znt];return t instanceof OR&&(t.module&&i.push(Qn.styleModule.of(t.module)),e=t.themeType),i.push(n?.fallback?Ife.of(t):e?IR.computeN([Qn.darkTheme],function(r){return r.facet(Qn.darkTheme)==("dark"==e)?[t]:[]}):IR.of(t)),i}var Qnt=function(){function t(n){Oe(this,t),this.markCache=Object.create(null),this.tree=gl(n.state),this.decorations=this.buildDeco(n,NR(n.state))}return Ie(t,[{key:"update",value:function(n){var e=gl(n.state),i=NR(n.state),r=i!=NR(n.startState);e.length0&&bh(n.state,s.head-1,1,r)||r.afterCursor&&(bh(n.state,s.head,1,r)||s.head0&&void 0!==arguments[0]?arguments[0]:{}),sit]}var lit=new xr;function FR(t,n,e){var i=t.prop(n<0?xr.openedBy:xr.closedBy);if(i)return i;if(1==t.name.length){var r=e.indexOf(t.name);if(r>-1&&r%2==(n<0?1:0))return[e[r+n]]}return null}function PR(t){var n=t.type.prop(lit);return n?n(t.node):t}function bh(t,n,e){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.maxScanDistance||1e4,o=i.brackets||"()[]{}",s=gl(t),a=s.resolveInner(n,e),l=a;l;l=l.parent){var c=FR(l.type,e,o);if(c&&l.from0?n>=u.from&&nu.from&&n<=u.to))return cit(0,0,e,l,u,c,o)}}return function uit(t,n,e,i,r,o,s){var a=e<0?t.sliceDoc(n-1,n):t.sliceDoc(n,n+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;for(var c={from:e<0?n-1:n,to:e>0?n+1:n},u=t.doc.iterRange(n,e>0?t.doc.length:0),d=0,h=0;!u.next().done&&h<=o;){var f=u.value;e<0&&(h+=f.length);for(var p=n+h*e,m=e>0?0:f.length-1,g=e>0?f.length:-1;m!=g;m+=e){var v=s.indexOf(f[m]);if(!(v<0||i.resolveInner(p+m,1).type!=r))if(v%2==0==e>0)d++;else{if(1==d)return{start:c,end:{from:p+m,to:p+m+1},matched:v>>1==l>>1};d--}}e>0&&(h+=f.length)}return u.done?{start:c,matched:!1}:null}(t,n,e,s,a.type,r,o)}function cit(t,n,e,i,r,o,s){var l={from:r.from,to:r.to},c=0,u=i.parent?.cursor();if(u&&(e<0?u.childBefore(i.from):u.childAfter(i.to)))do{if(e<0?u.to<=i.from:u.from>=i.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(Rfe.push(t),console.warn(n))}function mit(t,n){var e,i=null,r=He(n.split("."));try{for(r.s();!(e=r.n()).done;){var o=e.value,s=t[o]||gn[o];s?"function"==typeof s?i?i=s(i):jR(o,"Modifier ".concat(o," used at start of tag")):i?jR(o,"Tag ".concat(o," used as modifier")):i=s:jR(o,"Unknown highlighting tag ".concat(o))}}catch(c){r.e(c)}finally{r.f()}if(!i)return 0;var a=n.replace(/ /g,"_"),l=mu.define({id:Pfe.length,name:a,props:[ffe(ec({},a,i))]});return Pfe.push(l),l.id}function LR(t,n){return function(e){var i=e.state,r=e.dispatch;if(i.readOnly)return!1;var o=t(n,i);return!!o&&(r(i.update(o)),!0)}}var git=LR(function bit(t,n){var e,r=[],o=-1,s=He(arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges);try{for(s.s();!(e=s.n()).done;){for(var a=e.value,l=a.from,c=a.to,u=r.length,d=1e9,h=l;h<=c;){var f=n.doc.lineAt(h);if(f.from>o&&(l==c||c>f.from)){o=f.from;var p=BR(n,f.from).line;if(!p)continue;var m=/^\s*/.exec(f.text)[0].length,g=m==f.length,v=f.text.slice(m,m+p.length)==p?m:-1;m=0})){var oe,P=[],W=He(r);try{for(W.s();!(oe=W.n()).done;){var J=oe.value,H=J.line,pe=J.comment;if(pe>=0){var N=H.from+pe,F=N+J.token.length;" "==H.text[F-H.from]&&F++,P.push({from:N,to:F})}}}catch(q){W.e(q)}finally{W.f()}return{changes:P}}return null},0),vit=LR(Bfe,0),yit=LR(function(t,n){return Bfe(t,n,function(e){var i,r=[],o=He(e.selection.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=e.doc.lineAt(s.from),l=s.to<=a.to?a:e.doc.lineAt(s.to),c=r.length-1;c>=0&&r[c].to>a.from?r[c].to=l.to:r.push({from:a.from,to:l.to})}}catch(u){o.e(u)}finally{o.f()}return r}(n))},0);function BR(t,n){var e=t.languageDataAt("commentTokens",n);return e.length?e[0]:{}}function Bfe(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.selection.ranges,i=e.map(function(h){return BR(n,h.from).block});if(!i.every(function(h){return h}))return null;var r=e.map(function(h,f){return function _it(t,n,e,i){var r,o,s=n.open,a=n.close,l=t.sliceDoc(e-50,e),c=t.sliceDoc(i,i+50),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,h=l.length-u;if(l.slice(h-s.length,h)==s&&c.slice(d,d+a.length)==a)return{open:{pos:e-u,margin:u&&1},close:{pos:i+d,margin:d&&1}};i-e<=100?r=o=t.sliceDoc(e,i):(r=t.sliceDoc(e,e+50),o=t.sliceDoc(i-50,i));var f=/^\s*/.exec(r)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return r.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:e+f+s.length,margin:/\s/.test(r.charAt(f+s.length))?1:0},close:{pos:i-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(n,i[f],h.from,h.to)});if(2!=t&&!r.every(function(h){return h}))return{changes:n.changes(e.map(function(h,f){return r[f]?[]:[{from:h.from,insert:i[f].open+" "},{from:h.to,insert:" "+i[f].close}]}))};if(1!=t&&r.some(function(h){return h})){for(var o,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:{}),Qn.domEventHandlers({beforeinput:function(n,e){var i="historyUndo"==n.inputType?HR:"historyRedo"==n.inputType?TD:null;return!!i&&(n.preventDefault(),i(e))}})]}function DD(t,n){return function(e){var i=e.state,r=e.dispatch;if(!n&&i.readOnly)return!1;var o=i.field(VR,!1);if(!o)return!1;var s=o.pop(t,i,n);return!!s&&(r(s),!0)}}var HR=DD(0,!1),TD=DD(1,!1),Sit=DD(0,!0),kit=DD(1,!0);function Vfe(t){return function(n){var e=n.field(VR,!1);if(!e)return 0;var i=0==t?e.done:e.undone;return i.length-(i.length&&!i[0].changes?1:0)}}var Dit=Vfe(0),Tit=Vfe(1),yf=function(){function t(n,e,i,r,o){Oe(this,t),this.changes=n,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}return Ie(t,[{key:"setSelAfter",value:function(n){return new t(this.changes,this.effects,this.mapped,this.startSelection,n)}},{key:"toJSON",value:function(){var n,e,i;return{changes:null===(n=this.changes)||void 0===n?void 0:n.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(function(r){return r.toJSON()})}}}],[{key:"fromJSON",value:function(n){return new t(n.changes&&cd.fromJSON(n.changes),[],n.mapped&&z0.fromJSON(n.mapped),n.startSelection&&rn.fromJSON(n.startSelection),n.selectionsAfter.map(rn.fromJSON))}},{key:"fromTransaction",value:function(n,e){var i,r=gu,o=He(n.startState.facet(wit));try{for(o.s();!(i=o.n()).done;){var s=(0,i.value)(n);s.length&&(r=r.concat(s))}}catch(a){o.e(a)}finally{o.f()}return!r.length&&n.changes.empty?null:new t(n.changes.invert(n.startState.doc),r,void 0,e||n.startState.selection,gu)}},{key:"selection",value:function(n){return new t(void 0,gu,void 0,void 0,n)}}]),t}();function ED(t,n,e,i){var o=t.slice(n+1>e+20?n-e-1:0,n);return o.push(i),o}function Hfe(t,n){return t.length?n.length?t.concat(n):t:n}var gu=[];function Ufe(t,n){if(t.length){var e=t[t.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(n)?t:(i.push(n),ED(t,t.length-1,1e9,e.setSelAfter(i)))}return[yf.selection([n])]}function Eit(t){var n=t[t.length-1],e=t.slice();return e[t.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),e}function UR(t,n){if(!t.length)return t;for(var e=t.length,i=gu;e;){var r=Ait(t[e-1],n,i);if(r.changes&&!r.changes.empty||r.effects.length){var o=t.slice(0,e);return o[e-1]=r,o}n=r.mapped,e--,i=r.selectionsAfter}return i.length?[yf.selection(i)]:gu}function Ait(t,n,e){var i=Hfe(t.selectionsAfter.length?t.selectionsAfter.map(function(a){return a.map(n)}):gu,e);if(!t.changes)return yf.selection(i);var r=t.changes.map(n),o=n.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new yf(r,gr.mapEffects(t.effects,n),s,t.startSelection.map(o),i)}var Mit=/^(input\.type|delete)($|\.)/,Jb=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;Oe(this,t),this.done=n,this.undone=e,this.prevTime=i,this.prevUserEvent=r}return Ie(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(n,e,i,r,o){var c,u,d,s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&n.changes&&(!i||Mit.test(i))&&(!a.selectionsAfter.length&&e-this.prevTime=v&&p<=y&&(d=!0)}}),d))||"input.type.compose"==i)?ED(s,s.length-1,r.minDepth,new yf(n.changes.compose(a.changes),Hfe(n.effects,a.effects),a.mapped,a.startSelection,gu)):ED(s,s.length,r.minDepth,n),gu,e,i)}},{key:"addSelection",value:function(n,e,i,r){var s,a,o=this.done.length?this.done[this.done.length-1].selectionsAfter:gu;return o.length>0&&e-this.prevTime2||/[^\s,.;:]/.test(t.sliceDoc(n.from,n.to)))||n.firstChild}function MD(t,n,e){for(var i=gl(t).resolveInner(n.head),r=e?xr.closedBy:xr.openedBy,o=n.head;;){var s=e?i.childAfter(o):i.childBefore(o);if(!s)break;Iit(t,s,r)?i=s:o=e?s.to:s.from}var a,l;return l=i.type.prop(r)&&(a=e?bh(t,i.from,1):bh(t,i.to,-1))&&a.matched?e?a.end.to:a.end.from:e?i.to:i.from,rn.cursor(l,e?-1:1)}function Yfe(t,n){return fd(t,function(e){if(!e.empty)return AD(e,n);var i=t.moveVertically(e,n);return i.head!=e.head?i:t.moveToLineBoundary(e,n)})}var Xfe=function(t){return Yfe(t,!1)},Jfe=function(t){return Yfe(t,!0)};function Kfe(t){var n,e=t.scrollDOM.clientHeightl&&s.bottoms&&(e="delete.forward",l=ID(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=ID(t,s,!1),a=ID(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:rn.cursor(s)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:e,effects:"delete.selection"==e?Qn.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ID(t,n,e){if(t instanceof Qn){var i,r=He(t.state.facet(Qn.atomicRanges).map(function(o){return o(t)}));try{for(r.s();!(i=r.n()).done;)i.value.between(n,n,function(o,s){on&&(n=e?s:o)})}catch(o){r.e(o)}finally{r.f()}}return n}var ppe=function(t,n){return OD(t,function(e){var i,r,o=t.state,s=o.doc.lineAt(e);if(!n&&e>s.from&&e=s.number){var l=e[e.length-1];l.to=a.to,l.ranges.push(o)}else e.push({from:s.from,to:a.to,ranges:[o]});i=a.number+1}}catch(c){r.e(c)}finally{r.f()}return e}function _pe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=[],s=He(ND(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;if(e?a.to!=t.doc.length:0!=a.from){var l=t.doc.lineAt(e?a.to+1:a.from-1),c=l.length+1;if(e){r.push({from:a.to,to:l.to},{from:a.from,insert:l.text+t.lineBreak});var u,d=He(a.ranges);try{for(d.s();!(u=d.n()).done;){var h=u.value;o.push(rn.range(Math.min(t.doc.length,h.anchor+c),Math.min(t.doc.length,h.head+c)))}}catch(g){d.e(g)}finally{d.f()}}else{r.push({from:l.from,to:a.from},{from:a.to,insert:t.lineBreak+l.text});var f,p=He(a.ranges);try{for(p.s();!(f=p.n()).done;){var m=f.value;o.push(rn.range(m.anchor-c,m.head-c))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){s.e(g)}finally{s.f()}return!!r.length&&(n(t.update({changes:r,scrollIntoView:!0,selection:rn.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function bpe(t,n,e){if(t.readOnly)return!1;var i,r=[],o=He(ND(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;r.push(e?{from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}:{from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return n(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var Nit=xpe(!1),Fit=xpe(!0);function xpe(t){return function(n){var e=n.state,i=n.dispatch;if(e.readOnly)return!1;var r=e.changeByRange(function(o){var s=o.from,a=o.to,l=e.doc.lineAt(s),c=!t&&s==a&&function(f,p){if(/\(\)|\[\]|\{\}/.test(f.sliceDoc(p-1,p+1)))return{from:p,to:p};var m,g=gl(f).resolveInner(p),v=g.childBefore(p),y=g.childAfter(p);return v&&y&&v.to<=p&&y.from>=p&&(m=v.type.prop(xr.closedBy))&&m.indexOf(y.name)>-1&&f.doc.lineAt(v.to).from==f.doc.lineAt(y.from).from?{from:v.to,to:y.from}:null}(e,s);t&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);var u=new wD(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=AR(u,s);for(null==d&&(d=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);al.from&&se&&(i.empty||i.to>s.from)&&(n(s,r,i),e=s.number),o=s.to+1}var a=t.changes(r);return{changes:r,range:rn.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}var wpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(WR(n,function(i,r){r.push({from:i.from,insert:n.facet(xD)})}),{userEvent:"input.indent"})),!0)},Cpe=function(t){var n=t.state;return!n.readOnly&&((0,t.dispatch)(n.update(WR(n,function(i,r){var o=/^\s*/.exec(i.text)[0];if(o){for(var s=Ab(o,n.tabSize),a=0,l=Yb(n,Math.max(0,s-i1(n)));ae?e:Math.max(0,n-1)})}},{mac:"Mod-Delete",run:ype}].concat(Pit.map(function(t){return{mac:t.key,run:t.run,shift:t.shift}})),jit=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(t){return fd(t,function(n){return MD(t.state,n,!vl(t))})},shift:function(t){return vu(t,function(n){return MD(t.state,n,!vl(t))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(t){return fd(t,function(n){return MD(t.state,n,vl(t))})},shift:function(t){return vu(t,function(n){return MD(t.state,n,vl(t))})}},{key:"Alt-ArrowUp",run:function(t){return _pe(t.state,t.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(t){return bpe(t.state,t.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(t){return _pe(t.state,t.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(t){return bpe(t.state,t.dispatch,!0)}},{key:"Escape",run:function(t){var n=t.state,e=t.dispatch,i=n.selection,r=null;return i.ranges.length>1?r=rn.create([i.main]):i.main.empty||(r=rn.create([rn.cursor(i.main.head)])),!!r&&(e(xh(n,r)),!0)}},{key:"Mod-Enter",run:Fit},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var n=t.state,e=t.dispatch,i=ND(n).map(function(r){return rn.range(r.from,Math.min(r.to+1,n.doc.length))});return e(n.update({selection:rn.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var n=t.state,e=t.dispatch,i=r1(n.selection,function(r){for(var o,s=gl(n).resolveInner(r.head,1);!(s.from=r.to||s.to>r.to&&s.from<=r.from)&&null!==(o=s.parent)&&void 0!==o&&o.parent;)s=s.parent;return rn.range(s.to,s.from)});return e(xh(n,i)),!0},preventDefault:!0},{key:"Mod-[",run:Cpe},{key:"Mod-]",run:wpe},{key:"Mod-Alt-\\",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Object.create(null),r=new wD(n,{overrideIndentation:function(s){return i[s]??-1}}),o=WR(n,function(s,a,l){var c=AR(r,s.from);if(null!=c){/\S/.test(s.text)||(c=0);var u=/^\s*/.exec(s.text)[0],d=Yb(n,c);(u!=d||l.from0?o--:s0&&bh(n,s.head-1,1)||s.head2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;Oe(this,t),this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=n.iterRange(i,r),this.bufferStart=i,this.normalize=o?function(a){return o(kpe(a))}:kpe,this.query=this.normalize(e)}return Ie(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Wa(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var n=this.peek();if(n<0)return this.done=!0,this;var e=g4(n),i=this.bufferStart+this.bufferPos;this.bufferPos+=Fc(n);for(var r=this.normalize(e),o=0,s=i;;o++){var a=r.charCodeAt(o),l=this.match(a,s);if(l)return this.value=l,this;if(o==r.length-1)break;s==i&&o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.length;if(Oe(this,t),this.text=n,this.to=o,this.curLine="",this.done=!1,this.value=Dpe,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new Ape(n,e,i,r,o);this.re=new RegExp(e,qR+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=n.iter();var s=n.lineAt(r);this.curLineStart=s.from,this.matchPos=FD(n,r),this.getLine(this.curLineStart)}return Ie(t,[{key:"getLine",value:function(n){this.iter.next(n),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var n=this.matchPos-this.curLineStart;;){this.re.lastIndex=n;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=FD(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;n=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=e){var o=new t(e,n.sliceString(e,i));return YR.set(n,o),o}if(r.from==e&&r.to==i)return r;var s=r.text,a=r.from;return a>e&&(s=n.sliceString(e,a)+s,a=e),r.to=this.to?this.to:this.text.lineAt(n).to}},{key:"next",value:function(){for(;;){var n=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==n&&(this.re.lastIndex=n+1,e=this.re.exec(this.flat.text)),e){var i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=FD(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Epe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function FD(t,n){if(n>=t.length)return n;for(var e,i=t.lineAt(n);n=56320&&e<57344;)n++;return n}function XR(t){var n=Po("input",{class:"cm-textfield",name:"line"});function e(){var i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(i){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=Jn(i,5),a=s[1],l=s[2],c=s[3],u=s[4],d=c?+c.slice(1):0,h=l?+l:o.number;if(l&&u){var f=h/100;a&&(f=f*("-"==a?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else l&&a&&(h=h*("-"==a?-1:1)+o.number);var p=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));t.dispatch({effects:PD.of(!1),selection:rn.cursor(p.from+Math.max(0,Math.min(d,p.length))),scrollIntoView:!0}),t.focus()}}return{dom:Po("form",{class:"cm-gotoLine",onkeydown:function(i){27==i.keyCode?(i.preventDefault(),t.dispatch({effects:PD.of(!1)}),t.focus()):13==i.keyCode&&(i.preventDefault(),e())},onsubmit:function(i){i.preventDefault(),e()}},Po("label",t.state.phrase("Go to line"),": ",n)," ",Po("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(Tpe.prototype[Symbol.iterator]=Ape.prototype[Symbol.iterator]=function(){return this});var PD=gr.define(),Mpe=qa.define({create:function(){return!0},update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(PD)&&(t=r.value)}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Hb.from(t,function(n){return n?XR:null})}}),Bit=Qn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),$it={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ope=oi.define({combine:function(t){return pu(t,$it,{highlightWordAroundCursor:function(n,e){return n||e},minSelectionLength:Math.min,maxMatches:Math.min})}}),Vit=Ci.mark({class:"cm-selectionMatch"}),Hit=Ci.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ipe(t,n,e,i){return!(0!=e&&t(n.sliceDoc(e-1,e))==ls.Word||i!=n.doc.length&&t(n.sliceDoc(i,i+1))==ls.Word)}var Uit=Ia.fromClass(function(){function t(n){Oe(this,t),this.decorations=this.getDeco(n)}return Ie(t,[{key:"update",value:function(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}},{key:"getDeco",value:function(n){var e=n.state.facet(Ope),i=n.state,r=i.selection;if(r.ranges.length>1)return Ci.none;var o,y,b,C,D,s=r.main,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return Ci.none;var l=i.wordAt(s.head);if(!l)return Ci.none;a=i.charCategorizer(s.head),o=i.sliceDoc(l.from,l.to)}else{var c=s.to-s.from;if(c200)return Ci.none;if(e.wholeWords){if(o=i.sliceDoc(s.from,s.to),!Ipe(a=i.charCategorizer(s.head),i,s.from,s.to)||(D=s.to,(y=a)((b=i).sliceDoc(C=s.from,C+1))!=ls.Word||y(b.sliceDoc(D-1,D))!=ls.Word))return Ci.none}else if(!(o=i.sliceDoc(s.from,s.to).trim()))return Ci.none}var u,d=[],h=He(n.visibleRanges);try{for(h.s();!(u=h.n()).done;)for(var f=u.value,p=new o1(i.doc,o,f.from,f.to);!p.next().done;){var m=p.value,g=m.from,v=m.to;if((!a||Ipe(a,i,g,v))&&(s.empty&&g<=s.from&&v>=s.to?d.push(Hit.range(g,v)):(g>=s.to||v<=s.from)&&d.push(Vit.range(g,v)),d.length>e.maxMatches))return Ci.none}}catch(y){h.e(y)}finally{h.f()}return Ci.set(d)}}]),t}(),{decorations:function(t){return t.decorations}}),zit=Qn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),RD=oi.define({combine:function(t){return pu(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(n){return new ert(n)}})}});function Git(t){return t?[RD.of(t),ij]:ij}var Npe=function(){function t(n){Oe(this,t),this.search=n.search,this.caseSensitive=!!n.caseSensitive,this.literal=!!n.literal,this.regexp=!!n.regexp,this.replace=n.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,qR),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!n.wholeWord}return Ie(t,[{key:"unquote",value:function(n){return this.literal?n:n.replace(/\\([nrt\\])/g,function(e,i){return"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\"})}},{key:"eq",value:function(n){return this.search==n.search&&this.replace==n.replace&&this.caseSensitive==n.caseSensitive&&this.regexp==n.regexp&&this.wholeWord==n.wholeWord}},{key:"create",value:function(){return this.regexp?new qit(this):new Wit(this)}},{key:"getCursor",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,r=n.doc?n:Fo.create({doc:n});return null==i&&(i=r.doc.length),this.regexp?a1(this,r,e,i):s1(this,r,e,i)}}]),t}(),Fpe=Ie(function t(n){Oe(this,t),this.spec=n});function s1(t,n,e,i){return new o1(n.doc,t.unquoted,e,i,t.caseSensitive?void 0:function(r){return r.toLowerCase()},t.wholeWord?(r=n.doc,o=n.charCategorizer(n.selection.main.head),function(s,a,l,c){return(c>s||c+l.length=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=s1(this.spec,i,Math.max(0,r-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}();function a1(t,n,e,i){return new Tpe(n.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=n.charCategorizer(n.selection.main.head),function(o,s,a){return!a[0].length||(r(jD(a.input,a.index))!=ls.Word||r(LD(a.input,a.index))!=ls.Word)&&(r(LD(a.input,a.index+a[0].length))!=ls.Word||r(jD(a.input,a.index+a[0].length))!=ls.Word)}):void 0},e,i);var r}function jD(t,n){return t.slice(jl(t,n,!1),n)}function LD(t,n){return t.slice(n,jl(t,n))}var qit=function(t){Dt(e,Fpe);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e,[{key:"nextMatch",value:function(i,r,o){var s=a1(this.spec,i,o,i.doc.length).next();return s.done&&(s=a1(this.spec,i,0,r).next()),s.done?null:s.value}},{key:"prevMatchInRange",value:function(i,r,o){for(var s=1;;s++){for(var a=Math.max(r,o-1e4*s),l=a1(this.spec,i,a,o),c=null;!l.next().done;)c=l.value;if(c&&(a==r||c.from>a+10))return c;if(a==r)return null}}},{key:"prevMatch",value:function(i,r,o){return this.prevMatchInRange(i,0,r)||this.prevMatchInRange(i,o,i.doc.length)}},{key:"getReplacement",value:function(i){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,function(r,o){return"$"==o?"$":"&"==o?i.match[0]:"0"!=o&&+o=r)return null;s.push(o.value)}return s}},{key:"highlight",value:function(i,r,o,s){for(var a=a1(this.spec,i,Math.max(0,r-250),Math.min(o+250,i.doc.length));!a.next().done;)s(a.value.from,a.value.to)}}]),e}(),Kb=gr.define(),JR=gr.define(),Lp=qa.define({create:function(t){return new KR(ZR(t).create(),null)},update:function(t,n){var e,i=He(n.effects);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.is(Kb)?t=new KR(r.value.create(),t.panel):r.is(JR)&&(t=new KR(t.query,r.value?QR:null))}}catch(o){i.e(o)}finally{i.f()}return t},provide:function(t){return Hb.from(t,function(n){return n.panel})}}),KR=Ie(function t(n,e){Oe(this,t),this.query=n,this.panel=e}),Yit=Ci.mark({class:"cm-searchMatch"}),Xit=Ci.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Jit=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.decorations=this.highlight(n.state.field(Lp))}return Ie(t,[{key:"update",value:function(n){var e=n.state.field(Lp);(e!=n.startState.field(Lp)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(n){var e=n.query;if(!n.panel||!e.spec.valid)return Ci.none;for(var i=this.view,r=new ug,o=0,s=i.visibleRanges,a=s.length;os[o+1].from-500;)u=s[++o].to;e.highlight(i.state,c,u,function(d,h){var f=i.state.selection.ranges.some(function(p){return p.from==d&&p.to==h});r.add(d,h,f?Xit:Yit)})}return r.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function Qb(t){return function(n){var e=n.state.field(Lp,!1);return e&&e.query.spec.valid?t(n,e):ej(n)}}var BD=Qb(function(t,n){var i=t.state.selection.main.to,r=n.query.nextMatch(t.state,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:nj(t,r),userEvent:"select.search"}),!0)}),$D=Qb(function(t,n){var i=t.state,r=i.selection.main.from,o=n.query.prevMatch(i,r,r);return!!o&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:nj(t,o),userEvent:"select.search"}),!0)}),Kit=Qb(function(t,n){var e=n.query.matchAll(t.state,1e3);return!(!e||!e.length||(t.dispatch({selection:rn.create(e.map(function(i){return rn.range(i.from,i.to)})),userEvent:"select.search.matches"}),0))}),Ppe=Qb(function(t,n){var e=n.query,i=t.state,r=i.selection.main,o=r.from,s=r.to;if(i.readOnly)return!1;var a=e.nextMatch(i,o,o);if(!a)return!1;var l,c,u=[],d=[];if(a.from==o&&a.to==s&&(c=i.toText(e.getReplacement(a)),u.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(i,a.from,a.to),d.push(Qn.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),a){var h=0==u.length||u[0].from>=a.to?0:a.to-a.from-c.length;l={anchor:a.from-h,head:a.to-h},d.push(nj(t,a))}return t.dispatch({changes:u,selection:l,scrollIntoView:!!l,effects:d,userEvent:"input.replace"}),!0}),Qit=Qb(function(t,n){var e=n.query;if(t.state.readOnly)return!1;var i=e.matchAll(t.state,1e9).map(function(o){return{from:o.from,to:o.to,insert:e.getReplacement(o)}});if(!i.length)return!1;var r=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:Qn.announce.of(r),userEvent:"input.replace.all"}),!0});function QR(t){return t.state.facet(RD).createPanel(t)}function ZR(t,n){var e,i,r,o,s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(n&&!a)return n;var l=t.facet(RD);return new Npe({search:(null!==(e=n?.literal)&&void 0!==e?e:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=n?.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=n?.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(o=n?.wholeWord)&&void 0!==o?o:l.wholeWord})}var ej=function(t){var n=t.state.field(Lp,!1);if(n&&n.panel){var e=Vb(t,QR);if(!e)return!1;var i=e.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){var r=ZR(t.state,n.query.spec);r.valid&&t.dispatch({effects:Kb.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[JR.of(!0),n?Kb.of(ZR(t.state,n.query.spec)):gr.appendConfig.of(ij)]});return!0},tj=function(t){var n=t.state.field(Lp,!1);if(!n||!n.panel)return!1;var e=Vb(t,QR);return e&&e.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:JR.of(!1)}),!0},Zit=[{key:"Mod-f",run:ej,scope:"editor search-panel"},{key:"F3",run:BD,shift:$D,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:BD,shift:$D,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:tj,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var n=t.state,e=t.dispatch,i=n.selection;if(i.ranges.length>1||i.main.empty)return!1;for(var r=i.main,o=r.from,a=[],l=0,c=new o1(n.doc,n.sliceDoc(o,r.to));!c.next().done;){if(a.length>1e3)return!1;c.value.from==o&&(l=a.length),a.push(rn.range(c.value.from,c.value.to))}return e(n.update({selection:rn.create(a,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(t){var n=Vb(t,XR);if(!n){var e=[PD.of(!0)];null==t.state.field(Mpe,!1)&&e.push(gr.appendConfig.of([Mpe,Bit])),t.dispatch({effects:e}),n=Vb(t,XR)}return n&&n.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var s,a,l,c,u,n=t.state,e=t.dispatch,i=n.selection.ranges;if(i.some(function(s){return s.from===s.to}))return l=(s={state:n,dispatch:e}).dispatch,!(u=rn.create((c=(a=s.state).selection).ranges.map(function(d){return a.wordAt(d.head)||rn.cursor(d.head)}),c.mainIndex)).eq(c)&&(l(a.update({selection:u})),!0);var r=n.sliceDoc(i[0].from,i[0].to);if(n.selection.ranges.some(function(s){return n.sliceDoc(s.from,s.to)!=r}))return!1;var o=function(s,a){for(var l=s.selection,c=l.main,u=l.ranges,d=s.wordAt(c.head),h=d&&d.from==c.from&&d.to==c.to,f=function(v,y){if(y.next(),!y.done){if(v&&u.some(function(C){return C.from==y.value.from}))return m=y,p=v,"continue";if(h){var b=s.wordAt(y.value.from);if(!b||b.from!=y.value.from||b.to!=y.value.to)return m=y,p=v,"continue"}return p=v,m=y,{v:y.value}}if(v)return m=y,p=v,{v:null};y=new o1(s.doc,a,0,Math.max(0,u[u.length-1].from-1)),p=v=!0,m=y},p=!1,m=new o1(s.doc,a,u[u.length-1].to);;){var g=f(p,m);if("continue"!==g&&"object"===wn(g))return g.v}}(n,r);return!!o&&(e(n.update({selection:n.selection.addRange(rn.range(o.from,o.to),!1),effects:Qn.scrollIntoView(o.to)})),!0)},preventDefault:!0}],ert=function(){function t(n){var e=this;Oe(this,t),this.view=n;var i=this.query=n.state.field(Lp).query.spec;function r(o,s,a){return Po("button",{class:"cm-button",name:o,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Po("input",{value:i.search,placeholder:Lc(n,"Find"),"aria-label":Lc(n,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Po("input",{value:i.replace,placeholder:Lc(n,"Replace"),"aria-label":Lc(n,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Po("input",{type:"checkbox",name:"case",form:"",checked:i.caseSensitive,onchange:this.commit}),this.reField=Po("input",{type:"checkbox",name:"re",form:"",checked:i.regexp,onchange:this.commit}),this.wordField=Po("input",{type:"checkbox",name:"word",form:"",checked:i.wholeWord,onchange:this.commit}),this.dom=Po("div",{onkeydown:function(o){return e.keydown(o)},class:"cm-search"},[this.searchField,r("next",function(){return BD(n)},[Lc(n,"next")]),r("prev",function(){return $D(n)},[Lc(n,"previous")]),r("select",function(){return Kit(n)},[Lc(n,"all")]),Po("label",null,[this.caseField,Lc(n,"match case")]),Po("label",null,[this.reField,Lc(n,"regexp")]),Po("label",null,[this.wordField,Lc(n,"by word")])].concat(ui(n.state.readOnly?[]:[Po("br"),this.replaceField,r("replace",function(){return Ppe(n)},[Lc(n,"replace")]),r("replaceAll",function(){return Qit(n)},[Lc(n,"replace all")])]),[Po("button",{name:"close",onclick:function(){return tj(n)},"aria-label":Lc(n,"close"),type:"button"},["\xd7"])]))}return Ie(t,[{key:"commit",value:function(){var n=new Npe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});n.eq(this.query)||(this.query=n,this.view.dispatch({effects:Kb.of(n)}))}},{key:"keydown",value:function(n){!function(e,i,r){return Nhe(Ihe(e.state),i,e,"search-panel")}(this.view,n)?13==n.keyCode&&n.target==this.searchField?(n.preventDefault(),(n.shiftKey?$D:BD)(this.view)):13==n.keyCode&&n.target==this.replaceField&&(n.preventDefault(),Ppe(this.view)):n.preventDefault()}},{key:"update",value:function(n){var e,i=He(n.transactions);try{for(i.s();!(e=i.n()).done;){var r,o=He(e.value.effects);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.is(Kb)&&!s.value.eq(this.query)&&this.setQuery(s.value)}}catch(a){o.e(a)}finally{o.f()}}}catch(a){i.e(a)}finally{i.f()}}},{key:"setQuery",value:function(n){this.query=n,this.searchField.value=n.search,this.replaceField.value=n.replace,this.caseField.checked=n.caseSensitive,this.reField.checked=n.regexp,this.wordField.checked=n.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(RD).top}}]),t}();function Lc(t,n){return t.state.phrase(n)}var VD=/[\s\.,:;?!]/;function nj(t,n){var e=n.from,i=n.to,r=t.state.doc.lineAt(e),o=t.state.doc.lineAt(i).to,s=Math.max(r.from,e-30),a=Math.min(o,i+30),l=t.state.sliceDoc(s,a);if(s!=r.from)for(var c=0;c<30;c++)if(!VD.test(l[c+1])&&VD.test(l[c])){l=l.slice(c);break}if(a!=o)for(var u=l.length-1;u>l.length-30;u--)if(!VD.test(l[u-1])&&VD.test(l[u])){l=l.slice(0,u);break}return Qn.announce.of("".concat(t.state.phrase("current match"),". ").concat(l," ").concat(t.state.phrase("on line")," ").concat(r.number,"."))}var trt=Qn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ij=[Lp,G0.lowest(Jit),trt],Rpe=function(){function t(n,e,i){Oe(this,t),this.state=n,this.pos=e,this.explicit=i,this.abortListeners=[]}return Ie(t,[{key:"tokenBefore",value:function(n){for(var e=gl(this.state).resolveInner(this.pos,-1);e&&n.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}},{key:"matchBefore",value:function(n){var e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(Bpe(n,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(n,e){"abort"==n&&this.abortListeners&&this.abortListeners.push(e)}}]),t}();function jpe(t){var n=Object.keys(t).join(""),e=/\w/.test(n);return e&&(n=n.replace(/\w/g,"")),"[".concat(e?"\\w":"").concat(n.replace(/[^\w\s]/g,"\\$&"),"]")}var Lpe=Ie(function t(n,e,i){Oe(this,t),this.completion=n,this.source=e,this.match=i});function Bp(t){return t.selection.main.head}function Bpe(t,n){var e,i=t.source,r=n&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp("".concat(r?"^":"","(?:").concat(i,")").concat(o?"$":""),null!==(e=t.flags)&&void 0!==e?e:t.ignoreCase?"i":""):t}function $pe(t,n){var r,o,s,a,e=n.completion.apply||n.completion.label,i=n.source;"string"==typeof e?t.dispatch((r=t.state,o=e,s=i.from,a=i.to,Object.assign(Object.assign({},r.changeByRange(function(l){if(l==r.selection.main)return{changes:{from:s,to:a,insert:o},range:rn.cursor(s+o.length)};var c=a-s;return!l.empty||c&&r.sliceDoc(l.from-c,l.from)!=r.sliceDoc(s,a)?{range:l}:{changes:{from:l.from-c,to:l.from,insert:o},range:rn.cursor(l.from-c+o.length)}})),{userEvent:"input.complete"}))):e(t,n.completion,i.from,i.to)}var Vpe=new WeakMap;function irt(t){if(!Array.isArray(t))return t;var n=Vpe.get(t);return n||Vpe.set(t,n=function nrt(t){var n=t.map(function(s){return"string"==typeof s?{label:s}:s}),i=Jn(n.every(function(s){return/^\w+$/.test(s.label)})?[/\w*$/,/\w+$/]:function(s){var a,l=Object.create(null),c=Object.create(null),u=He(s);try{for(u.s();!(a=u.n()).done;){var d=a.value.label;l[d[0]]=!0;for(var h=1;h=48&&j<=57||j>=97&&j<=122?2:j>=65&&j<=90?1:0:(U=g4(j))!=U.toLowerCase()?1:U!=U.toUpperCase()?2:0;(!E||1==G&&C||0==z&&0!=G)&&(e[m]==j||i[m]==j&&(g=!0)?s[m++]=E:s.length&&(D=!1)),z=G,E+=Fc(j)}return m==c&&0==s[0]&&D?this.result((g?-200:0)-100,s,n):v==c&&0==y?[-200-n.length,0,b]:l>-1?[-700-n.length,l,l+this.pattern.length]:v==c?[-900-n.length,y,b]:m==c?this.result((g?-200:0)-100-700+(D?0:-1100),s,n):2==e.length?null:this.result((r[0]?-700:0)-200-1100,r,n)}},{key:"result",value:function(n,e,i){var r,o=[n-i.length],s=1,a=He(e);try{for(a.s();!(r=a.n()).done;){var l=r.value,c=l+(this.astral?Fc(Wa(i,l)):1);s>1&&o[s-1]==l?o[s-1]=c:(o[s++]=l,o[s++]=c)}}catch(u){a.e(u)}finally{a.f()}return o}}]),t}(),wh=oi.define({combine:function(t){return pu(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:function(n,e){return n.label.localeCompare(e.label)}},{defaultKeymap:function(n,e){return n&&e},closeOnBlur:function(n,e){return n&&e},icons:function(n,e){return n&&e},optionClass:function(n,e){return function(i){return r=n(i),o=e(i),r?o?r+" "+o:r:o;var r,o}},addToOptions:function(n,e){return n.concat(e)}})}});function Hpe(t,n,e){if(t<=e)return{from:0,to:t};if(n<0&&(n=0),n<=t>>1){var i=Math.floor(n/e);return{from:i*e,to:(i+1)*e}}var r=Math.floor((t-n)/e);return{from:t-(r+1)*e,to:t-r*e}}var ort=function(){function t(n,e){var i=this;Oe(this,t),this.view=n,this.stateField=e,this.info=null,this.placeInfo={read:function(){return i.measureInfo()},write:function(c){return i.positionInfo(c)},key:this};var c,u,r=n.state.field(e),o=r.open,s=o.options,a=o.selected,l=n.state.facet(wh);this.optionContent=(u=(c=l).addToOptions.slice(),c.icons&&u.push({render:function(d){var h,f=document.createElement("div");return f.classList.add("cm-completionIcon"),d.type&&(h=f.classList).add.apply(h,ui(d.type.split(/\s+/g).map(function(p){return"cm-completionIcon-"+p}))),f.setAttribute("aria-hidden","true"),f},position:20}),u.push({render:function(d,h,f){var p=document.createElement("span");p.className="cm-completionLabel";for(var m=d.label,g=0,v=1;vg&&p.appendChild(document.createTextNode(m.slice(g,y)));var C=p.appendChild(document.createElement("span"));C.appendChild(document.createTextNode(m.slice(y,b))),C.className="cm-completionMatchedText",g=b}return g=this.range.to)&&(this.range=Hpe(i.options.length,i.selected,this.view.state.facet(wh).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i.options,e.id,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfo)})),this.updateSelectedOption(i.selected)){this.info&&(this.info.remove(),this.info=null);var r=i.options[i.selected].completion,o=r.info;if(!o)return;var s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(function(a){a&&n.view.state.field(n.stateField,!1)==e&&n.addInfoPane(a)}).catch(function(a){return jc(n.view.state,a,"completion info")}):this.addInfoPane(s)}}},{key:"addInfoPane",value:function(n){var e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(n),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}},{key:"updateSelectedOption",value:function(n){for(var e=null,i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)r==n?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&(s=e,a=(o=this.list).getBoundingClientRect(),(l=s.getBoundingClientRect()).topa.bottom&&(o.scrollTop+=l.bottom-a.bottom)),e;var o,s,a,l}},{key:"measureInfo",value:function(){var n=this.dom.querySelector("[aria-selected]");if(!n||!this.info)return null;var e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top>Math.min(innerHeight,e.bottom)-10||r.bottom=this.options.length?this:new t(this.options,zpe(e,n),this.tooltip,this.timestamp,n)}},{key:"map",value:function(n){return new t(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:n.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}],[{key:"build",value:function(n,e,i,r,o){var s=function(d,h){var f,p=[],m=0,g=He(d);try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.hasResult())if(!1===v.result.filter){var y,b=v.result.getMatch,C=He(v.result.options);try{for(C.s();!(y=C.n()).done;){var D=y.value,E=[1e9-m++];if(b){var B,z=He(b(D));try{for(z.s();!(B=z.n()).done;)E.push(B.value)}catch(F){z.e(F)}finally{z.f()}}p.push(new Lpe(D,v,E))}}catch(F){C.e(F)}finally{C.f()}}else{var U,G=new rrt(h.sliceDoc(v.from,v.to)),X=void 0,oe=He(v.result.options);try{for(oe.s();!(U=oe.n()).done;){var P=U.value;(X=G.match(P.label))&&(null!=P.boost&&(X[0]+=P.boost),p.push(new Lpe(P,v,X)))}}catch(F){oe.e(F)}finally{oe.f()}}}}catch(F){g.e(F)}finally{g.f()}var W,J=[],H=null,pe=h.facet(wh).compareCompletions,A=He(p.sort(function(F,q){return q.match[0]-F.match[0]||pe(F.completion,q.completion)}));try{for(A.s();!(W=A.n()).done;){var N=W.value;!H||H.label!=N.completion.label||H.detail!=N.completion.detail||null!=H.type&&null!=N.completion.type&&H.type!=N.completion.type||H.apply!=N.completion.apply?J.push(N):Upe(N.completion)>Upe(H)&&(J[J.length-1]=N),H=N.completion}}catch(F){A.e(F)}finally{A.f()}return J}(n,e);if(!s.length)return null;var a,l=e.facet(wh).selectOnOpen?0:-1;if(r&&r.selected!=l&&-1!=r.selected)for(var c=r.options[r.selected].completion,u=0;u-1&&(e["aria-activedescendant"]=t+"-"+n),e}var crt=[];function rj(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}var mg=function(){function t(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;Oe(this,t),this.source=n,this.state=e,this.explicitPos=i}return Ie(t,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(n,e){var i=rj(n),r=this;i?r=r.handleUserEvent(n,i,e):n.docChanged?r=r.handleChange(n):n.selection&&0!=r.state&&(r=new t(r.source,0));var o,s=He(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a.is(oj))r=new t(r.source,1,a.value?Bp(n.state):-1);else if(a.is(HD))r=new t(r.source,0);else if(a.is(Gpe)){var l,c=He(a.value);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.source==r.source&&(r=u)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"handleUserEvent",value:function(n,e,i){return"delete"!=e&&i.activateOnTyping?new t(this.source,1):this.map(n.changes)}},{key:"handleChange",value:function(n){return n.changes.touchesRange(Bp(n.startState))?new t(this.source,0):this.map(n.changes)}},{key:"map",value:function(n){return n.empty||this.explicitPos<0?this:new t(this.source,this.state,n.mapPos(this.explicitPos))}}]),t}(),urt=function(t){Dt(e,mg);var n=Tt(e);function e(i,r,o,s,a){var l;return Oe(this,e),(l=n.call(this,i,2,r)).result=o,l.from=s,l.to=a,l}return Ie(e,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(i,r,o){var s,a=i.changes.mapPos(this.from),l=i.changes.mapPos(this.to,1),c=Bp(i.state);if((this.explicitPos<0?c<=a:cl||"delete"==r&&Bp(i.startState)==this.from)return new mg(this.source,"input"==r&&o.activateOnTyping?1:0);var u,d=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return function(h,f,p,m){if(!h)return!1;var g=f.sliceDoc(p,m);return"function"==typeof h?h(g,p,m,f):Bpe(h,!0).test(g)}(this.result.validFor,i.state,a,l)?new e(this.source,d,this.result,a,l):this.result.update&&(u=this.result.update(this.result,a,l,new Rpe(i.state,c,d>=0)))?new e(this.source,d,u,u.from,null!==(s=u.to)&&void 0!==s?s:Bp(i.state)):new mg(this.source,1,d)}},{key:"handleChange",value:function(i){return i.changes.touchesRange(this.from,this.to)?new mg(this.source,0):this.map(i.changes)}},{key:"map",value:function(i){return i.empty?this:new e(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}]),e}(),oj=gr.define(),HD=gr.define(),Gpe=gr.define({map:function(t,n){return t.map(function(e){return e.map(n)})}}),Wpe=gr.define(),yu=qa.define({create:function(){return art.start()},update:function(t,n){return t.update(n)},provide:function(t){return[lD.from(t,function(n){return n.tooltip}),Qn.contentAttributes.from(t,function(n){return n.attrs})]}});function UD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(e){var i=e.state.field(yu,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;var r,o=1;"page"==n&&(r=function hnt(t,n){var e=t.plugin(Yhe);if(!e)return null;var i=e.manager.tooltips.indexOf(n);return i<0?null:e.manager.tooltipViews[i]}(e,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));var s=i.open.options.length,a=i.open.selected>-1?i.open.selected+o*(t?1:-1):t?0:s-1;return a<0?a="page"==n?0:s-1:a>=s&&(a="page"==n?s-1:0),e.dispatch({effects:Wpe.of(a)}),!0}}var drt=Ie(function t(n,e){Oe(this,t),this.active=n,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}),hrt=Ia.fromClass(function(){function t(n){Oe(this,t),this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;var e,i=He(n.state.field(yu).active);try{for(i.s();!(e=i.n()).done;){var r=e.value;1==r.state&&this.startQuery(r)}}catch(o){i.e(o)}finally{i.f()}}return Ie(t,[{key:"update",value:function(n){var e=this,i=n.state.field(yu);if(n.selectionSet||n.docChanged||n.startState.field(yu)!=i){for(var r=n.transactions.some(function(p){return(p.selection||p.docChanged)&&!rj(p)}),o=0;o50&&Date.now()-s.time>1e3){var a,l=He(s.context.abortListeners);try{for(l.s();!(a=l.n()).done;){var c=a.value;try{c()}catch(p){jc(this.view.state,p)}}}catch(p){l.e(p)}finally{l.f()}s.context.abortListeners=null,this.running.splice(o--,1)}else{var u;(u=s.updates).push.apply(u,ui(n.transactions))}}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=i.active.some(function(p){return 1==p.state&&!e.running.some(function(m){return m.active.source==p.source})})?setTimeout(function(){return e.startUpdate()},50):-1,0!=this.composing){var d,h=He(n.transactions);try{for(h.s();!(d=h.n()).done;){var f=d.value;"input"==rj(f)?this.composing=2:2==this.composing&&f.selection&&(this.composing=3)}}catch(p){h.e(p)}finally{h.f()}}}}},{key:"startUpdate",value:function(){var n=this;this.debounceUpdate=-1;var e,i=He(this.view.state.field(yu).active);try{var r=function(){var o=e.value;1!=o.state||n.running.some(function(s){return s.active.source==o.source})||n.startQuery(o)};for(i.s();!(e=i.n()).done;)r()}catch(o){i.e(o)}finally{i.f()}}},{key:"startQuery",value:function(n){var e=this,i=this.view.state,r=Bp(i),o=new Rpe(i,r,n.explicitPos==r),s=new drt(n,o);this.running.push(s),Promise.resolve(n.source(o)).then(function(a){s.context.aborted||(s.done=a||null,e.scheduleAccept())},function(a){e.view.dispatch({effects:HD.of(null)}),jc(e.view.state,a)})}},{key:"scheduleAccept",value:function(){var n=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return n.accept()},50))}},{key:"accept",value:function(){var n,e=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var i=[],r=this.view.state.facet(wh),o=function(a){var l=e.running[a];if(void 0===l.done)return s=a,"continue";if(e.running.splice(a--,1),l.done){var c,u=new urt(l.active.source,l.active.explicitPos,l.done,l.done.from,null!==(n=l.done.to)&&void 0!==n?n:Bp(l.updates.length?l.updates[0].startState:e.view.state)),d=He(l.updates);try{for(d.s();!(c=d.n()).done;)u=u.update(c.value,r)}catch(y){d.e(y)}finally{d.f()}if(u.hasResult())return i.push(u),s=a,"continue"}var f=e.view.state.field(yu).active.find(function(y){return y.source==l.active.source});if(f&&1==f.state)if(null==l.done){var p,m=new mg(l.active.source,0),g=He(l.updates);try{for(g.s();!(p=g.n()).done;)m=m.update(p.value,r)}catch(y){g.e(y)}finally{g.f()}1!=m.state&&i.push(m)}else e.startQuery(f);s=a},s=0;s ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),zD={brackets:["(","[","{","'",'"'],before:")]}:;>"},gg=gr.define({map:function(t,n){return n.mapPos(t,-1,Ll.TrackAfter)??void 0}}),sj=gr.define({map:function(t,n){return n.mapPos(t)}}),aj=new(function(t){Dt(e,cg);var n=Tt(e);function e(){return Oe(this,e),n.apply(this,arguments)}return Ie(e)}());aj.startSide=1,aj.endSide=-1;var qpe=qa.define({create:function(){return qo.empty},update:function(t,n){if(n.selection){var e=n.state.doc.lineAt(n.selection.main.head).from,i=n.startState.doc.lineAt(n.startState.selection.main.head).from;e!=n.changes.mapPos(i,-1)&&(t=qo.empty)}t=t.map(n.changes);var r,o=He(n.effects);try{var s=function(){var a=r.value;a.is(gg)?t=t.update({add:[aj.range(a.value,a.value+1)]}):a.is(sj)&&(t=t.update({filter:function(l){return l!=a.value}}))};for(o.s();!(r=o.n()).done;)s()}catch(a){o.e(a)}finally{o.f()}return t}});function Ype(t){for(var n=0;n<8;n+=2)if("()[]{}<>".charCodeAt(n)==t)return"()[]{}<>".charAt(n+1);return g4(t<128?t:t+1)}function Xpe(t,n){return t.languageDataAt("closeBrackets",n)[0]||zD}var prt="object"==(typeof navigator>"u"?"undefined":wn(navigator))&&/Android\b/.test(navigator.userAgent),mrt=Qn.inputHandler.of(function(t,n,e,i){if((prt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;var r=t.state.selection.main;if(i.length>2||2==i.length&&1==Fc(Wa(i,0))||n!=r.from||e!=r.to)return!1;var o=function(s,a){var l,c=Xpe(s,s.selection.main.head),u=c.brackets||zD.brackets,d=He(u);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=Ype(Wa(h,0));if(a==h)return f==h?_rt(s,h,u.indexOf(h+h+h)>-1):vrt(s,h,f,c.before||zD.before);if(a==f&&Jpe(s,s.selection.main.from))return yrt(s,0,f)}}catch(p){d.e(p)}finally{d.f()}return null}(t.state,i);return!!o&&(t.dispatch(o),!0)}),grt=[{key:"Backspace",run:function(t){var n=t.state,e=t.dispatch;if(n.readOnly)return!1;var i=Xpe(n,n.selection.main.head).brackets||zD.brackets,r=null,o=n.changeByRange(function(s){if(s.empty){var a,l=Fc(Wa(f=(d=n.doc).sliceString((h=s.head)-2,h),0))==f.length?f:f.slice(1),c=He(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u==l&&GD(n.doc,s.head)==Ype(Wa(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:rn.cursor(s.head-u.length),userEvent:"delete.backward"}}}catch(d){c.e(d)}finally{c.f()}}var d,h,f;return{range:r=s}});return r||e(n.update(o,{scrollIntoView:!0})),!r}}];function Jpe(t,n){var e=!1;return t.field(qpe).between(0,t.doc.length,function(i){i==n&&(e=!0)}),e}function GD(t,n){var e=t.sliceString(n,n+2);return e.slice(0,Fc(Wa(e,0)))}function vrt(t,n,e,i){var r=null,o=t.changeByRange(function(s){if(!s.empty)return{changes:[{insert:n,from:s.from},{insert:e,from:s.to}],effects:gg.of(s.to+n.length),range:rn.range(s.anchor+n.length,s.head+n.length)};var a=GD(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:n+e,from:s.head},effects:gg.of(s.head+n.length),range:rn.cursor(s.head+n.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function yrt(t,n,e){var i=null,r=t.selection.ranges.map(function(o){return o.empty&&GD(t.doc,o.head)==e?rn.cursor(o.head+e.length):i=o});return i?null:t.update({selection:rn.create(r,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(function(o){return sj.of(o.from)})})}function _rt(t,n,e){var i=null,r=t.changeByRange(function(o){if(!o.empty)return{changes:[{insert:n,from:o.from},{insert:n,from:o.to}],effects:gg.of(o.to+n.length),range:rn.range(o.anchor+n.length,o.head+n.length)};var s=o.head,a=GD(t.doc,s);if(a==n){if(Kpe(t,s))return{changes:{insert:n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)};if(Jpe(t,s)){var l=e&&t.sliceDoc(s,s+3*n.length)==n+n+n;return{range:rn.cursor(s+n.length*(l?3:1)),effects:sj.of(s)}}}else{if(e&&t.sliceDoc(s-2*n.length,s)==n+n&&Kpe(t,s-2*n.length))return{changes:{insert:n+n+n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)};if(t.charCategorizer(s)(a)!=ls.Word){var c=t.sliceDoc(s-1,s);if(c!=n&&t.charCategorizer(s)(c)!=ls.Word&&!function(u,d,h){for(var f=gl(u).resolveInner(d,-1),p=0;p<5;p++){if(u.sliceDoc(f.from,f.from+h.length)==h){for(var m=f.firstChild;m&&m.from==f.from&&m.to-m.from>h.length;){if(u.sliceDoc(m.to-h.length,m.to)==h)return!1;m=m.firstChild}return!0}var g=f.to==d&&f.parent;if(!g)break;f=g}return!1}(t,s,n))return{changes:{insert:n+n,from:s},effects:gg.of(s+n.length),range:rn.cursor(s+n.length)}}}return{range:i=o}});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Kpe(t,n){var e=gl(t).resolveInner(n+1);return e.parent&&e.from==n}function brt(){return[yu,wh.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),hrt,xrt,frt]}var Qpe=[{key:"Ctrl-Space",run:function(t){return!!t.state.field(yu,!1)&&(t.dispatch({effects:oj.of(!0)}),!0)}},{key:"Escape",run:function(t){var n=t.state.field(yu,!1);return!(!n||!n.active.some(function(e){return 0!=e.state})||(t.dispatch({effects:HD.of(null)}),0))}},{key:"ArrowDown",run:UD(!0)},{key:"ArrowUp",run:UD(!1)},{key:"PageDown",run:UD(!0,"page")},{key:"PageUp",run:UD(!1,"page")},{key:"Enter",run:function(t){var n=t.state.field(yu,!1);return!(t.state.readOnly||!n||!n.open||Date.now()-n.open.timestamp<75||n.open.selected<0||($pe(t,n.open.options[n.open.selected]),0))}}],xrt=G0.highest(oD.computeN([wh],function(t){return t.facet(wh).defaultKeymap?[Qpe]:[]})),wrt=Ie(function t(n,e,i){Oe(this,t),this.from=n,this.to=e,this.diagnostic=i}),Zb=function(){function t(n,e,i){Oe(this,t),this.diagnostics=n,this.panel=e,this.selected=i}return Ie(t,null,[{key:"init",value:function(n,e,i){var r=n,o=i.facet(vg).markerFilter;o&&(r=o(r));var s=Ci.set(r.map(function(a){return a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?Ci.widget({widget:new Trt(a),diagnostic:a}).range(a.from):Ci.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity},diagnostic:a}).range(a.from,a.to)}),!0);return new t(s,e,l1(s))}}]),t}();function l1(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=null;return t.between(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,1e9,function(r,o,s){var a=s.spec;if(!n||a.diagnostic==n)return i=new wrt(r,o,a.diagnostic),!1}),i}function Zpe(t,n){return!(!t.effects.some(function(e){return e.is(WD)})&&!t.changes.touchesRange(n.pos))}function eme(t,n){return t.field(Bc,!1)?n:n.concat(gr.appendConfig.of([Bc,Qn.decorations.compute([Bc],function(e){var i=e.field(Bc),r=i.selected;return r&&i.panel&&r.from!=r.to?Ci.set([Crt.range(r.from,r.to)]):Ci.none}),dnt(Srt,{hideOn:Zpe}),Ert]))}var WD=gr.define(),lj=gr.define(),tme=gr.define(),Bc=qa.define({create:function(){return new Zb(Ci.none,null,null)},update:function(t,n){if(n.docChanged){var e=t.diagnostics.map(n.changes),i=null;if(t.selected){var r=n.changes.mapPos(t.selected.from,1);i=l1(e,t.selected.diagnostic,r)||l1(e,null,r)}t=new Zb(e,t.panel,i)}var o,s=He(n.effects);try{for(s.s();!(o=s.n()).done;){var a=o.value;a.is(WD)?t=Zb.init(a.value,t.panel,n.state):a.is(lj)?t=new Zb(t.diagnostics,a.value?ame.open:null,t.selected):a.is(tme)&&(t=new Zb(t.diagnostics,t.panel,a.value))}}catch(l){s.e(l)}finally{s.f()}return t},provide:function(t){return[Hb.from(t,function(n){return n.panel}),Qn.decorations.from(t,function(n){return n.diagnostics})]}}),Crt=Ci.mark({class:"cm-lintRange cm-lintRange-active"});function Srt(t,n,e){var i=t.state.field(Bc).diagnostics,r=[],o=2e8,s=0;i.between(n-(e<0?1:0),n+(e>0?1:0),function(l,c,u){n>=l&&n<=c&&(l==c||(n>l||e>0)&&(n=65&&i.keyCode<=90&&e.selectedIndex>=0))return;for(var r=e.items[e.selectedIndex].diagnostic,o=rme(r.actions),s=0;so&&(n.items.splice(o,f-o),s=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++});ou.bottom&&(n.list.scrollTop+=c.bottom-u.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}},{key:"sync",value:function(){var n=this.list.firstChild;function e(){var s=n;n=s.nextSibling,s.remove()}var i,r=He(this.items);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.dom.parentNode==this.list){for(;n!=o.dom;)e();n=o.dom.nextSibling}else this.list.insertBefore(o.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)e()}},{key:"moveSelection",value:function(n){if(!(this.selectedIndex<0)){var e=l1(this.view.state.field(Bc).diagnostics,this.items[n].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:tme.of(e)})}}}],[{key:"open",value:function(n){return new t(n)}}]),t}();function qD(t){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(t),"')")}function cj(t){return qD(''),'width="6" height="3"')}var Ert=Qn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:cj("#d11")},".cm-lintRange-warning":{backgroundImage:cj("orange")},".cm-lintRange-info":{backgroundImage:cj("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Art=function(t){Dt(e,gh);var n=Tt(e);function e(i){var r;return Oe(this,e),(r=n.call(this)).diagnostics=i,r.severity=i.reduce(function(o,s){var a=s.severity;return"error"==a||"warning"==a&&"info"==o?a:o},"info"),r}return Ie(e,[{key:"toDOM",value:function(i){var r=document.createElement("div");r.className="cm-lint-marker cm-lint-marker-"+this.severity;var o=this.diagnostics,s=i.state.facet(YD).tooltipFilter;return s&&(o=s(o)),o.length&&(r.onmouseover=function(){return function(a,l,c){function u(){var p,m,f=a.elementAtHeight(l.getBoundingClientRect().top+5-a.documentTop);a.coordsAtPos(f.from)&&a.dispatch({effects:uj.of({pos:f.from,above:!1,create:function(){return{dom:nme(a,c),getCoords:function(){return l.getBoundingClientRect()}}}})}),l.onmouseout=l.onmousemove=null,p=a,m=l,window.addEventListener("mousemove",function v(y){var b=m.getBoundingClientRect();if(!(y.clientX>b.left-10&&y.clientXb.top-10&&y.clientY')},".cm-lint-marker-warning":{content:qD('')},".cm-lint-marker-error":{content:qD('')}}),YD=oi.define({combine:function(t){return pu(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Nrt(){return[YD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lme,Ort,Irt,cme]}var ume,Frt=function(){return[_nt(),xnt,Ytt(),Cit(),Jnt(),$tt(),[$b,ztt],Fo.allowMultipleSelections.of(!0),Fo.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var i=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!i.length)return e;var r=e.newDoc,o=e.newSelection.main.head,s=r.lineAt(o);if(o>s.from+200)return e;var a=r.sliceString(s.from,o);if(!i.some(function(y){return y.test(a)}))return e;var l,c=e.state,u=-1,d=[],h=He(c.selection.ranges);try{for(h.s();!(l=h.n()).done;){var p=c.doc.lineAt(l.value.head);if(p.from!=u){u=p.from;var m=AR(c,p.from);if(null!=m){var g=/^\s*/.exec(p.text)[0],v=Yb(c,m);g!=v&&d.push({from:p.from,to:p.from+g.length,insert:v})}}}}catch(y){h.e(y)}finally{h.f()}return d.length?[e,{changes:d,sequential:!0}]:e}),Nfe(eit,{fallback:!0}),ait(),[mrt,qpe],brt(),tnt(),rnt(),Ztt,(n=[zit,Uit],n),oD.of([].concat(grt,ui(jit),Zit,Oit,qnt,Qpe,krt))];var n}(),Prt=function(){function t(n,e,i,r,o,s,a,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=arguments.length>10?arguments[10]:void 0;Oe(this,t),this.p=n,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}return Ie(t,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(n,e){return e%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(n,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=n}},{key:"reduce",value:function(n){var e=n>>19,i=65535&n,r=this.p.parser,o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==e)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),is;)this.stack.pop();this.reduceContext(i,a)}},{key:"storeNode",value:function(n,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==n&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=i)}}if(o&&this.pos!=i){var l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>i;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,r>4&&(r-=4);this.buffer[l]=n,this.buffer[l+1]=e,this.buffer[l+2]=i,this.buffer[l+3]=r}else this.buffer.push(n,e,i,r)}},{key:"shift",value:function(n,e,i){var r=this.pos;if(131072&n)this.pushState(65535&n,this.pos);else if(262144&n)this.pos=i,this.shiftContext(e,r),e<=this.p.parser.maxNode&&this.buffer.push(e,r,i,4);else{var o=n,s=this.p.parser;(i>this.pos||e<=s.maxNode)&&(this.pos=i,s.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(e,r),e<=s.maxNode&&this.buffer.push(e,r,i,4)}}},{key:"apply",value:function(n,e,i){65536&n?this.reduce(n):this.shift(n,e,i)}},{key:"useNode",value:function(n,e){var i=this.p.reused.length-1;(i<0||this.p.reused[i]!=n)&&(this.p.reused.push(n),i++);var r=this.pos;this.reducePos=this.pos=r+n.length,this.pushState(e,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}},{key:"split",value:function(){for(var n=this,e=n.buffer.length;e>0&&n.buffer[e-2]>n.reducePos;)e-=4;for(var i=n.buffer.slice(e),r=n.bufferBase+e;n&&r==n.bufferBase;)n=n.parent;return new t(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,n)}},{key:"recoverByDelete",value:function(n,e){var i=n<=this.p.parser.maxNode;i&&this.storeNode(n,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}},{key:"canShift",value:function(n){for(var e=new Rrt(this);;){var i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,n);if(!(65536&i))return!0;if(0==i)return!1;e.reduce(i)}}},{key:"recoverByInsert",value:function(n){if(this.stack.length>=300)return[];var e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){for(var i,r=[],o=0;o>19);if(o<0||e.getGoto(this.stack[o],65535&n,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var n=this.p.parser;return 65535==n.data[n.stateSlot(this.state,1)]&&!n.stateSlot(this.state,4)}},{key:"restart",value:function(){this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(var e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n.parser.context;return new t(n,[],e,i,i,0,[],0,r?new dme(r,r.start):null,0,null)}}]),t}(),dme=Ie(function t(n,e){Oe(this,t),this.tracker=n,this.context=e,this.hash=n.strict?n.hash(e):0});!function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(ume||(ume={}));var Rrt=function(){function t(n){Oe(this,t),this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}return Ie(t,[{key:"reduce",value:function(n){var e=65535&n,i=n>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);var r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}]),t}(),jrt=function(){function t(n,e,i){Oe(this,t),this.stack=n,this.pos=e,this.index=i,this.buffer=n.buffer,0==this.index&&this.maybeNext()}return Ie(t,[{key:"maybeNext",value:function(){var n=this.stack.parent;null!=n&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new t(this.stack,this.pos,this.index)}}],[{key:"create",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.bufferBase+n.buffer.length;return new t(n,e,e-n.bufferBase)}}]),t}(),XD=Ie(function t(){Oe(this,t),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),hme=new XD,Lrt=function(){function t(n,e){Oe(this,t),this.input=n,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=hme,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}return Ie(t,[{key:"resolveOffset",value:function(n,e){for(var i=this.range,r=this.rangeIndex,o=this.pos+n;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-i.to,i=a}return o}},{key:"clipPos",value:function(n){if(n>=this.range.from&&nn)return Math.max(n,r.from)}}catch(o){i.e(o)}finally{i.f()}return this.end}},{key:"peek",value:function(n){var e,i,r=this.chunkOff+n;if(r>=0&&r=this.chunk2Pos&&ea.to&&(this.chunk2=this.chunk2.slice(0,a.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}},{key:"acceptToken",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(n,e){if(e?(this.token=e,e.start=n,e.lookAhead=n+1,e.value=e.extended=-1):this.token=hme,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,e-this.chunkPos);if(n>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,e-this.chunk2Pos);if(n>=this.range.from&&e<=this.range.to)return this.input.read(n,e);var i,r="",o=He(this.ranges);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.from>=e)break;s.to>n&&(r+=this.input.read(Math.max(s.from,n),Math.min(s.to,e)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),t}(),JD=function(){function t(n,e){Oe(this,t),this.data=n,this.id=e}return Ie(t,[{key:"token",value:function(n,e){!function(i,r,o,s){var a=0,l=1<0){var f=i[h];if(u.allows(f)&&(-1==r.token.value||r.token.value==f||c.overrides(f,r.token.value))){r.acceptToken(f);break}}var p=r.next,m=0,g=i[a+2];if(!(r.next<0&&g>m&&65535==i[d+3*g-3])){for(;m>1,y=d+v+(v<<1);if(p=i[y+1])){a=i[y+2],r.advance();continue e}m=v+1}}break}a=i[d+3*g-1]}}(this.data,n,e,this.id)}}]),t}();function KD(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof t)return t;for(var e=null,i=0,r=0;i=92&&s--,s>=34&&s--;var l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new n(o)}return e}JD.prototype.contextual=JD.prototype.fallback=JD.prototype.extend=!1;var fme,pd=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG),dj=null;function pme(t,n,e){var i=t.cursor(Xa.IncludeAnonymous);for(i.moveTo(n);;)if(!(e<0?i.childBefore(n):i.childAfter(n)))for(;;){if((e<0?i.ton)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,n-25)):Math.min(t.length,Math.max(i.from+1,n+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:t.length}}!function(t){t[t.Margin=25]="Margin"}(fme||(fme={}));var mme,Brt=function(){function t(n,e){Oe(this,t),this.fragments=n,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}return Ie(t,[{key:"nextFragment",value:function(){var n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?pme(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?pme(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(n){if(nn)return this.nextStart=s,null;if(o instanceof Ja){if(s==n){if(s=Math.max(this.safeFrom,n)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}else this.trees.pop(),this.start.pop(),this.index.pop()}}}]),t}(),$rt=function(){function t(n,e){Oe(this,t),this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(function(i){return new XD})}return Ie(t,[{key:"getActions",value:function(n){for(var e=0,i=null,r=n.p.parser,o=r.tokenizers,s=r.stateSlot(n.state,3),a=n.curContext?n.curContext.hash:0,l=0,c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),0!=d.value)){var h=e;if(d.extended>-1&&(e=this.addActions(n,d.extended,d.end,e)),e=this.addActions(n,d.value,d.end,e),!u.extend&&(i=d,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&n.setLookAhead(l),i||n.pos!=this.stream.end||((i=new XD).value=n.p.parser.eofTerm,i.start=i.end=n.pos,e=this.addActions(n,i.value,i.end,e)),this.mainToken=i,this.actions}},{key:"getMainToken",value:function(n){if(this.mainToken)return this.mainToken;var e=new XD,i=n.pos,r=n.p;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}},{key:"updateCachedToken",value:function(n,e,i){var r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,n),i),n.value>-1){for(var o=i.p.parser,s=0;s=0&&i.p.parser.dialect.allows(a>>1)){1&a?n.extended=a>>1:n.value=a>>1;break}}}else n.value=0,n.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(n,e,i,r){for(var o=0;o4*n.bufferLength?new Brt(i,n.nodeSet):null}return Ie(t,[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){for(var n,e,i=this.stacks,r=this.minStackPos,o=this.stacks=[],s=0;sr)o.push(a);else{if(this.advanceStack(a,o,i))continue;n||(n=[],e=[]),n.push(a);var l=this.tokens.getMainToken(a);e.push(l.value,l.end)}break}if(!o.length){var c=n&&function(v){var y,b=null,C=He(v);try{for(C.s();!(y=C.n()).done;){var D=y.value,E=D.p.stoppedAt;(D.pos==D.p.stream.end||null!=E&&D.pos>E)&&D.p.parser.stateFlag(D.state,2)&&(!b||b.scorethis.stoppedAt?n[0]:this.runRecovery(n,e,o);if(u)return this.stackToTree(u.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(v,y){return y.score-v.score});o.length>d;)o.pop();o.some(function(v){return v.reducePos>r})&&this.recovering--}else if(o.length>1)e:for(var h=0;h500&&m.buffer.length>500){if(!((f.score-m.score||f.buffer.length-m.buffer.length)>0)){o.splice(h--,1);continue e}o.splice(p--,1)}}this.minStackPos=o[0].pos;for(var g=1;g ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments)for(var a=n.curContext&&n.curContext.tracker.strict,l=a?n.curContext.hash:0,c=this.fragments.nodeAt(r);c;){var u=this.parser.nodeSet.types[c.type.id]==c.type?o.getGoto(n.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(xr.contextHash)||0)==l))return n.useNode(c,u),pd&&console.log(s+this.stackID(n)+" (via reuse of ".concat(o.getName(c.type.id),")")),!0;if(!(c instanceof Ja)||0==c.children.length||c.positions[0]>0)break;var d=c.children[0];if(!(d instanceof Ja&&0==c.positions[0]))break;c=d}var h=o.stateSlot(n.state,4);if(h>0)return n.reduce(h),pd&&console.log(s+this.stackID(n)+" (via always-reduce ".concat(o.getName(65535&h),")")),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););for(var f=this.tokens.getActions(n),p=0;pr?e.push(b):i.push(b)}return!1}},{key:"advanceFully",value:function(n,e){for(var i=n.pos;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>i)return gme(n,e),!0}}},{key:"runRecovery",value:function(n,e,i){for(var r=null,o=!1,s=0;s ":"";if(!a.deadEnd||!o&&(o=!0,a.restart(),pd&&console.log(u+this.stackID(a)+" (restarted)"),!this.advanceFully(a,i))){for(var d=a.split(),h=u,f=0;d.forceReduce()&&f<10&&(pd&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));f++)pd&&(h=this.stackID(d)+" -> ");var p,m=He(a.recoverByInsert(l));try{for(m.s();!(p=m.n()).done;){var g=p.value;pd&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i)}}catch(v){m.e(v)}finally{m.f()}this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),pd&&console.log(u+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(l),")")),gme(a,i)):(!r||r.score=0)d(v,m,p[g++]);else{for(var y=p[g+-v],b=-v;b>0;b--)d(p[g++],m,y);g++}}}}catch(E){f.e(E)}finally{f.f()}}o.nodeSet=new Snt(s.map(function(E,B){return mu.define({name:B>=o.minRepeatTerm?void 0:E,id:B,props:c[B],top:l.indexOf(B)>-1,error:0==B,skipped:i.skippedNodes&&i.skippedNodes.indexOf(B)>-1})})),i.propSources&&(o.nodeSet=(r=o.nodeSet).extend.apply(r,ui(i.propSources))),o.strict=!1,o.bufferLength=1024;var C=KD(i.tokenData);o.context=i.context,o.specializerSpecs=i.specialized||[],o.specialized=new Uint16Array(o.specializerSpecs.length);for(var D=0;D2&&void 0!==arguments[2]&&arguments[2],s=this.goto;if(r>=s[0])return-1;for(var a=s[r+1];;){var l=s[a++],c=1&l,u=s[a++];if(c&&o)return u;for(var d=a+(l>>1);a0}},{key:"validAction",value:function(i,r){if(r==this.stateSlot(i,4))return!0;for(var o=this.stateSlot(i,1);;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])return!1;o=_f(this.data,o+2)}if(r==_f(this.data,o+1))return!0}}},{key:"nextStates",value:function(i){for(var r=this,o=[],s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=_f(this.data,s+2)}!(1&this.data[s+2])&&function(){var a=r.data[s+1];o.some(function(l,c){return 1&c&&l==a})||o.push(r.data[s],a)}()}return o}},{key:"overrides",value:function(i,r){var o=vme(this.data,this.tokenPrecTable,r);return o<0||vme(this.data,this.tokenPrecTable,i)0}},{key:"getName",value:function(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(i){var r=this.dynamicPrecedences;return null==r?0:r[i]||0}},{key:"parseDialect",value:function(i){var r=Object.keys(this.dialects),o=r.map(function(){return!1});if(i){var s,a=He(i.split(" "));try{for(a.s();!(s=a.n()).done;){var c=r.indexOf(s.value);c>=0&&(o[c]=!0)}}catch(p){a.e(p)}finally{a.f()}}for(var u=null,d=0;d0&&xme(t);return{c:function(){n=De("div"),r&&r.c(),e=rt(),o&&o.c(),i=rt(),s&&s.c(),R(n,"class","jse-status-bar svelte-1oo7hnc")},m:function(a,l){$e(a,n,l),r&&r.m(n,null),me(n,e),o&&o.m(n,null),me(n,i),s&&s.m(n,null)},p:function(a,l){var c=Jn(l,1)[0];void 0!==a[0]?r?r.p(a,c):((r=_me(a)).c(),r.m(n,e)):r&&(r.d(1),r=null),void 0!==a[1]?o?o.p(a,c):((o=bme(a)).c(),o.m(n,i)):o&&(o.d(1),o=null),void 0!==a[2]&&a[2]>0?s?s.p(a,c):((s=xme(a)).c(),s.m(n,null)):s&&(s.d(1),s=null)},i:Bt,o:Bt,d:function(a){a&&Be(n),r&&r.d(),o&&o.d(),s&&s.d()}}}function Xrt(t,n,e){var i,r,o,s,a,l=n.editorState;return t.$$set=function(c){"editorState"in c&&e(3,l=c.editorState)},t.$$.update=function(){var c,u,d,h,f,p,m,g;8&t.$$.dirty&&e(4,i=null===(c=l)||void 0===c||null===(u=c.selection)||void 0===u||null===(d=u.main)||void 0===d?void 0:d.head),24&t.$$.dirty&&e(5,r=null===(h=l)||void 0===h||null===(f=h.doc)||void 0===f?void 0:f.lineAt(i)),32&t.$$.dirty&&e(0,o=r?r.number:void 0),48&t.$$.dirty&&e(1,s=r?i-r.from+1:void 0),8&t.$$.dirty&&e(2,a=null===(p=l)||void 0===p||null===(m=p.selection)||void 0===m||null===(g=m.ranges)||void 0===g?void 0:g.reduce(function(v,y){return v+y.to-y.from},0))},[o,s,a,l,i,r]}var Jrt=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Xrt,Yrt,_s,{editorState:3},qrt),r}return Ie(e)}(),hj=OR.define([{tag:gn.propertyName,color:"var(--jse-key-color)"},{tag:gn.number,color:"var(--jse-value-color-number)"},{tag:gn.bool,color:"var(--jse-value-color-boolean)"},{tag:gn.string,color:"var(--jse-value-color-string)"},{tag:gn.keyword,color:"var(--jse-value-color-null)"}]),Krt=Nfe(hj),Qrt=hj.style;function fj(t){return t.doc.lineAt(t.selection.main.head)}function wme(t,n){var e=0;e:for(var i=0;i=r.level?i.level:i.empty&&0===i.level&&0!==r.level?0:r.level>i.level?i.level+1:r.level)}var o=wme(n.text,this.state.tabSize),s=Math.floor(o/this.unitWidth);return this.set(n,o,s)}},{key:"closestNonEmpty",value:function(n,e){for(var i=n.number+e;-1===e?i>=1:i<=this.state.doc.lines;){if(this.has(i)){var r=this.get(i);if(!r.empty)return r}var o=this.state.doc.line(i);if(o.text.trim().length){var s=wme(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}i+=e}var l=this.state.doc.line(-1===e?1:this.state.doc.lines);return this.set(l,0,0)}},{key:"findAndSetActiveLines",value:function(){var n=fj(this.state);if(this.has(n)){var e=this.get(n);if(this.has(e.line.number+1)){var i=this.get(e.line.number+1);i.level>e.level&&(e=i)}if(this.has(e.line.number-1)){var r=this.get(e.line.number-1);r.level>e.level&&(e=r)}if(0!==e.level){var o,s;for(e.active=e.level,o=e.line.number;o>1;o--)if(this.has(o-1)){var a=this.get(o-1);if(a.level1&&void 0!==arguments[1]?arguments[1]:d.state,p=new Set,m=He(d.visibleRanges);try{for(m.s();!(h=m.n()).done;)for(var g=h.value,y=g.to,b=g.from;b<=y;){var C=f.doc.lineAt(b);p.has(C)||p.add(C),b=C.to+1}}catch(D){m.e(D)}finally{m.f()}return p}(this.view,n),o=new Zrt(r,n,this.unitWidth),s=n.facet(QD).hideFirstIndent,a=He(r);try{for(a.s();!(e=a.n()).done;){var l=e.value,c=o.get(l.number);if(c?.level){var u=tot(c,this.unitWidth,s);i.add(l.from,l.from,Ci.line({class:"cm-indent-markers",attributes:{style:"--indent-markers: ".concat(u)}}))}}}catch(d){a.e(d)}finally{a.f()}this.decorations=i.finish()}}]),t}();function iot(){return[QD.of(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),eot,Ia.fromClass(not,{decorations:function(n){return n.decorations}})]}function rot(t){_i(t,"svelte-1yqirn0",'.jse-text-mode.svelte-1yqirn0.svelte-1yqirn0{flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color)}.jse-text-mode.no-main-menu.svelte-1yqirn0.svelte-1yqirn0{border-top:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0:last-child{border-bottom:var(--jse-main-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-hidden.svelte-1yqirn0{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);color:var(--jse-delimiter-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-gutters{background:var(--jse-panel-background);color:var(--jse-panel-color-readonly);border-right:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLine,.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color);outline:var(--jse-search-match-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color);outline:var(--jse-search-match-active-outline)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background);color:var(--jse-tag-color);border:none;padding:0 var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-tooltip{font-size:var(--jse-font-size);font-family:var(--jse-font-family);color:var(--jse-tooltip-color);background:var(--jse-tooltip-background);border:var(--jse-tooltip-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color);background:var(--jse-tooltip-action-button-background)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-panels{border-bottom:var(--jse-panel-border)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search{background:var(--jse-panel-background);color:var(--jse-panel-color);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search input{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-input-color);border:var(--jse-input-border);background:var(--jse-input-background);margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);color:var(--jse-panel-button-color);background:var(--jse-panel-button-background);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding)) var(--jse-padding);margin:0}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button:hover{color:var(--jse-panel-button-color-highlight);background:var(--jse-panel-button-background-highlight)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label{font-family:var(--jse-font-family);font-size:var(--jse-font-size-text-mode-search);padding-left:var(--jse-padding)}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-1yqirn0 .jse-contents.svelte-1yqirn0 .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color)}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading-space.svelte-1yqirn0{flex:1}.jse-text-mode.svelte-1yqirn0 .jse-contents .jse-loading.svelte-1yqirn0{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-text-mode.svelte-1yqirn0 .jse-contents.jse-preview.svelte-1yqirn0{flex:1;color:var(--jse-panel-color-readonly);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function pj(t){var n=t.slice();return n[93]=0===n[10].length,n}function Cme(t){var n,e;return n=new Tet({props:{readOnly:t[0],onFormat:t[16],onCompact:t[17],onSort:t[18],onTransform:t[19],onToggleSearch:t[20],onUndo:t[21],onRedo:t[22],canFormat:!t[93],canCompact:!t[93],canSort:!t[93],canTransform:!t[93],canUndo:t[11],canRedo:t[12],onRenderMenu:t[3]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&r[0]&&(o.readOnly=i[0]),1024&r[0]&&(o.canFormat=!i[93]),1024&r[0]&&(o.canCompact=!i[93]),1024&r[0]&&(o.canSort=!i[93]),1024&r[0]&&(o.canTransform=!i[93]),2048&r[0]&&(o.canUndo=i[11]),4096&r[0]&&(o.canRedo=i[12]),8&r[0]&&(o.onRenderMenu=i[3]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function oot(t){var n;return{c:function(){(n=De("div")).innerHTML='
    \n
    loading...
    ',R(n,"class","jse-contents svelte-1yqirn0")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function sot(t){var n,e,i,r,o,s=t[92]&&Sme(t),a=!t[92]&&kme(t);return{c:function(){n=De("div"),e=rt(),s&&s.c(),i=rt(),a&&a.c(),r=Dr(),R(n,"class","jse-contents svelte-1yqirn0"),Nt(n,"jse-hidden",t[92])},m:function(l,c){$e(l,n,c),t[50](n),$e(l,e,c),s&&s.m(l,c),$e(l,i,c),a&&a.m(l,c),$e(l,r,c),o=!0},p:function(l,c){(!o||134218880&c[0])&&Nt(n,"jse-hidden",l[92]),l[92]?s?(s.p(l,c),1152&c[0]&&Q(s,1)):((s=Sme(l)).c(),Q(s,1),s.m(i.parentNode,i)):s&&(Ht(),fe(s,1,1,function(){s=null}),Ut()),l[92]?a&&(Ht(),fe(a,1,1,function(){a=null}),Ut()):a?(a.p(l,c),1152&c[0]&&Q(a,1)):((a=kme(l)).c(),Q(a,1),a.m(r.parentNode,r))},i:function(l){o||(Q(s),Q(a),o=!0)},o:function(l){fe(s),fe(a),o=!1},d:function(l){l&&Be(n),t[50](null),l&&Be(e),s&&s.d(l),l&&Be(i),a&&a.d(l),l&&Be(r)}}}function Sme(t){var n,e,i,r,o,s=ah(t[10]||"",2e4)+"";return n=new ad({props:{icon:rg,type:"error",message:"The JSON document is larger than ".concat(Rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Rk(t[10].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[23]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[24]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[25]}]}}),{c:function(){gt(n.$$.fragment),e=rt(),i=De("div"),r=sn(s),R(i,"class","jse-contents jse-preview svelte-1yqirn0")},m:function(a,l){pt(n,a,l),$e(a,e,l),$e(a,i,l),me(i,r),o=!0},p:function(a,l){var c={};1024&l[0]&&(c.message="The JSON document is larger than ".concat(Rk(10485760,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Rk(a[10].length,1024),".")),n.$set(c),(!o||1024&l[0])&&s!==(s=ah(a[10]||"",2e4)+"")&&ti(r,s)},i:function(a){o||(Q(n.$$.fragment,a),o=!0)},o:function(a){fe(n.$$.fragment,a),o=!1},d:function(a){mt(n,a),a&&Be(e),a&&Be(i)}}}function kme(t){var n,e,i,r,o,s=!t[13]&&t[8]&&Dse(t[10]),a=t[2]&&Dme(t),l=t[13]&&Tme(t),c=s&&Eme(t);return r=new ZP({props:{validationErrors:t[9],selectError:t[26]}}),{c:function(){a&&a.c(),n=rt(),l&&l.c(),e=rt(),c&&c.c(),i=rt(),gt(r.$$.fragment)},m:function(u,d){a&&a.m(u,d),$e(u,n,d),l&&l.m(u,d),$e(u,e,d),c&&c.m(u,d),$e(u,i,d),pt(r,u,d),o=!0},p:function(u,d){u[2]?a?(a.p(u,d),4&d[0]&&Q(a,1)):((a=Dme(u)).c(),Q(a,1),a.m(n.parentNode,n)):a&&(Ht(),fe(a,1,1,function(){a=null}),Ut()),u[13]?l?(l.p(u,d),8192&d[0]&&Q(l,1)):((l=Tme(u)).c(),Q(l,1),l.m(e.parentNode,e)):l&&(Ht(),fe(l,1,1,function(){l=null}),Ut()),9472&d[0]&&(s=!u[13]&&u[8]&&Dse(u[10])),s?c?(c.p(u,d),9472&d[0]&&Q(c,1)):((c=Eme(u)).c(),Q(c,1),c.m(i.parentNode,i)):c&&(Ht(),fe(c,1,1,function(){c=null}),Ut());var h={};512&d[0]&&(h.validationErrors=u[9]),r.$set(h)},i:function(u){o||(Q(a),Q(l),Q(c),Q(r.$$.fragment,u),o=!0)},o:function(u){fe(a),fe(l),fe(c),fe(r.$$.fragment,u),o=!1},d:function(u){a&&a.d(u),u&&Be(n),l&&l.d(u),u&&Be(e),c&&c.d(u),u&&Be(i),mt(r,u)}}}function Dme(t){var n,e;return n=new Jrt({props:{editorState:t[6]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};64&r[0]&&(o.editorState=i[6]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Tme(t){var n,e;return n=new ad({props:{type:"error",icon:rg,message:t[13].message,actions:t[14],onClick:t[28]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};8192&r[0]&&(o.message=i[13].message),16384&r[0]&&(o.actions=i[14]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Eme(t){var n,e;return n=new ad({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:s4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[16]},{icon:P0,text:"No thanks",title:"Close this message",onClick:t[51]}]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};256&r[0]&&(o.actions=[{icon:s4,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[16]},{icon:P0,text:"No thanks",title:"Close this message",onClick:i[51]}]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function aot(t){var n,e,i,r,o,s=t[1]&&Cme(pj(t)),l=[];function c(u,d){return 0===d?(p=(f=u.slice())[27](f[10],f[7]),f[92]=p,f):u;var f,p}return r=l[i=t[15]?1:0]=[sot,oot][i](c(t,i)),{c:function(){n=De("div"),s&&s.c(),e=rt(),r.c(),R(n,"class","jse-text-mode svelte-1yqirn0"),Nt(n,"no-main-menu",!t[1])},m:function(u,d){$e(u,n,d),s&&s.m(n,null),me(n,e),l[i].m(n,null),t[52](n),o=!0},p:function(u,d){u[1]?s?(s.p(pj(u),d),2&d[0]&&Q(s,1)):((s=Cme(pj(u))).c(),Q(s,1),s.m(n,e)):s&&(Ht(),fe(s,1,1,function(){s=null}),Ut()),r.p(c(u,i),d),(!o||2&d[0])&&Nt(n,"no-main-menu",!u[1])},i:function(u){o||(Q(s),Q(r),o=!0)},o:function(u){fe(s),fe(r),o=!1},d:function(u){u&&Be(n),s&&s.d(),l[i].d(),t[52](null)}}}function Ame(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function lot(t,n,e){var i,r,o,s,a,l,c=n.readOnly,u=n.mainMenuBar,d=n.statusBar,h=n.externalContent,f=n.indentation,p=n.tabSize,m=n.escapeUnicodeCharacters,g=n.parser,v=n.validator,y=n.validationParser,b=n.onChange,C=n.onChangeMode,D=n.onError,E=n.onFocus,B=n.onBlur,z=n.onRenderMenu,j=n.onSortModal,U=n.onTransformModal,G=Ma("jsoneditor:TextMode"),X={key:"Mod-i",run:le,shift:Re,preventDefault:!0},oe=typeof window>"u";G("isSSR:",oe);var P=!1,W=!0,J=[],H=new Tp,pe=new Tp,A=new Tp,N=new Tp,F=new Tp,q=new Tp,V=h,ce=ck(V,f,g),ve=m;eu(or(_n().mark(function vt(){return _n().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!oe){jn.next=2;break}return jn.abrupt("return");case 2:try{s=Xn({target:o,initialText:Ro(ce,P)?"":i.escapeValue(ce),readOnly:c,indentation:f})}catch(di){console.error(di)}case 3:case"end":return jn.stop()}},vt)}))),qu(function(){s&&(G("Destroy CodeMirror editor"),s.destroy())});var je=!1,Te=!1,et=mp(),We=mp();function st(){s&&(G("focus"),s.focus())}var $=!1;function ae(vt){G("patch",vt);var jn=g.parse(ce),di=ed(jn,vt),ki=WZ(jn,vt);return vr({text:g.stringify(di,null,f)}),{json:di,previousJson:jn,undo:ki,redo:vt}}function le(){if(G("format"),c)return!1;try{var vt=g.parse(ce);return vr({text:g.stringify(vt,null,f)}),e(8,W=!0),!0}catch(jn){D(jn)}return!1}function Re(){if(G("compact"),c)return!1;try{var vt=g.parse(ce);return vr({text:g.stringify(vt)}),e(8,W=!1),!0}catch(jn){D(jn)}return!1}function Ze(){if(G("repair"),!c)try{vr({text:Kd(ce)}),e(49,Rn="valid"),e(13,kt=null)}catch(vt){D(vt)}}function Ve(vt){var jn=vt.id,di=vt.rootPath,ki=vt.onTransform,Nr=vt.onClose;try{var Jr=g.parse(ce);$=!0,U({id:jn||We,json:Jr,rootPath:di||[],onTransform:function(co){ki?ki({operations:co,json:Jr,transformedJson:ed(Jr,co)}):(G("onTransform",co),ae(co))},onClose:function(){$=!1,st(),Nr&&Nr()}})}catch(co){D(co)}}function Ct(vt,jn){G("setSelection",{anchor:vt,head:jn}),s&&s.dispatch(s.state.update({selection:{anchor:vt,head:jn},scrollIntoView:!0}))}function Ot(vt,jn){if(1===jn.state.selection.ranges.length){var di=jn.state.selection.ranges[0],ki=ce.slice(di.from,di.to);if("{"===ki||"["===ki){var Nr=uS.parse(ce),Jr=Object.keys(Nr.pointers).find(function(Ks){var Cr;return(null===(Cr=Nr.pointers[Ks].value)||void 0===Cr?void 0:Cr.pos)===di.from}),co=Nr.pointers[Jr];Jr&&co&&co.value&&co.valueEnd&&(G("pointer found, selecting inner contents of path:",Jr,co),Ct(co.value.pos+1,co.valueEnd.pos-1))}}}function yn(){return function(vt){return vg.of({source:vt,config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}(pi,{delay:300})}function Xn(vt){var jn=vt.target,di=vt.initialText,ki=vt.readOnly,Nr=vt.indentation;G("Create CodeMirror editor",{readOnly:ki,indentation:Nr});var Jr=Fo.create({doc:di,extensions:[oD.of([Lit,X]),H.of(yn()),Nrt(),Frt,Krt,iot({hideFirstIndent:!0}),Qn.domEventHandlers({dblclick:Ot}),Qn.updateListener.of(function(co){e(6,l=co.state),co.docChanged&&Si()}),new $nt(Wrt),Git({top:!0}),A.of(Fo.readOnly.of(ki)),pe.of(Qn.editable.of(!ki)),F.of(Fo.tabSize.of(p)),N.of(fr(Nr)),q.of(Qn.theme({},{dark:on()})),Qn.lineWrapping]});return s=new Qn({state:Jr,parent:jn})}function on(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ri(vt){var jn=vt.path,di=vt.message,ki=function(Nr,Jr){try{var co=uS.parse(Nr),Ks=dn(Jr),Cr=co.pointers[Ks];if(Cr)return{path:Jr,line:Cr.key?Cr.key.line:Cr.value?Cr.value.line:0,column:Cr.key?Cr.key.column:Cr.value?Cr.value.column:0,from:Cr.key?Cr.key.pos:Cr.value?Cr.value.pos:0,to:Cr.keyEnd?Cr.keyEnd.pos:Cr.valueEnd?Cr.valueEnd.pos:0}}catch(Qs){console.error(Qs)}return null}(i.escapeValue(ce),jn);return{path:jn,line:ki.line,column:ki.column,from:ki.from,to:ki.to,message:di,severity:Jd.warning,actions:[]}}function hn(vt,jn){var Nr=vt.position;return{path:[],line:vt.line,column:vt.column,from:Nr,to:Nr,severity:Jd.error,message:vt.message,actions:jn&&!c?[{name:"Auto repair",apply:function(){return Ze()}}]:null}}function vr(vt){var jn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],di=ck(vt,f,g),ki=!dr(vt,V),Nr=V;V=vt,e(10,ce=di),G("setCodeMirrorContent",{isChanged:ki,forceUpdate:jn}),s&&(ki||jn)&&(Ro(ce,P)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(ce)}}),wr(),ki&&Xr(V,Nr))}function Er(){if(s){var vt=s?i.unescapeValue(s.state.doc.toString()):"",jn=vt!==ce;if(G("onChangeCodeMirrorValue",{isChanged:jn}),jn){var di=V;e(10,ce=vt),V={text:ce},wr(),Xr(V,di)}}}function fr(vt){return xD.of("number"==typeof vt?" ".repeat(vt):vt)}function wr(){e(11,je=Dit(s.state)>0),e(12,Te=Tit(s.state)>0),G({canUndo:je,canRedo:Te})}QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(a)},hasFocus:function(){return $&&document.hasFocus()||dk(a)},onFocus:E,onBlur:B});var Si=p0(Er,300);function Xr(vt,jn){b&&b(vt,jn,{contentErrors:Bi(),patchResult:null})}function Ro(vt,jn){return!!vt&&vt.length>10485760&&!jn}var Rn="valid",kt=null;function pi(){if(Ro(ce,P))return[];var vt=Bi();return $le(vt)?[Ame(hn(vt.parseError,vt.isRepairable))]:function cKe(t){return Io(t)&&Array.isArray(t.validationErrors)}(vt)?vt.validationErrors.map(Ri).map(Ame):[]}function Bi(){G("validate:start"),Si.flush();var vt=Ar(i.escapeValue(ce),v,g,y);return $le(vt)?(e(49,Rn=vt.isRepairable?"repairable":"invalid"),e(13,kt=vt.parseError),e(9,J=[])):(e(49,Rn="valid"),e(13,kt=null),e(9,J=vt?.validationErrors||[])),G("validate:end"),vt}var Ar=wb(qJe);function ko(){kt&&function(vt){G("select parse error",vt);var jn=hn(vt,!1);Ct(jn.from,jn.to),st()}(kt)}var Qo={icon:FXe,text:"Show me",title:"Move to the parse error location",onClick:ko};return t.$$set=function(vt){"readOnly"in vt&&e(0,c=vt.readOnly),"mainMenuBar"in vt&&e(1,u=vt.mainMenuBar),"statusBar"in vt&&e(2,d=vt.statusBar),"externalContent"in vt&&e(29,h=vt.externalContent),"indentation"in vt&&e(30,f=vt.indentation),"tabSize"in vt&&e(31,p=vt.tabSize),"escapeUnicodeCharacters"in vt&&e(32,m=vt.escapeUnicodeCharacters),"parser"in vt&&e(33,g=vt.parser),"validator"in vt&&e(34,v=vt.validator),"validationParser"in vt&&e(35,y=vt.validationParser),"onChange"in vt&&e(36,b=vt.onChange),"onChangeMode"in vt&&e(37,C=vt.onChangeMode),"onError"in vt&&e(38,D=vt.onError),"onFocus"in vt&&e(39,E=vt.onFocus),"onBlur"in vt&&e(40,B=vt.onBlur),"onRenderMenu"in vt&&e(3,z=vt.onRenderMenu),"onSortModal"in vt&&e(41,j=vt.onSortModal),"onTransformModal"in vt&&e(42,U=vt.onTransformModal)},t.$$.update=function(){var vt;2&t.$$.dirty[1]&&(i=yP({escapeControlCharacters:!1,escapeUnicodeCharacters:m})),536870912&t.$$.dirty[0]&&vr(h),8&t.$$.dirty[1]&&(G("updateLinter",v),s&&s.dispatch({effects:H.reconfigure(yn())})),1073741824&t.$$.dirty[0]&&(vt=f,s&&(G("updateIndentation",vt),s.dispatch({effects:N.reconfigure(fr(vt))}))),1&t.$$.dirty[1]&&function(vt){s&&(G("updateTabSize",vt),s.dispatch({effects:F.reconfigure(Fo.tabSize.of(vt))}))}(p),1&t.$$.dirty[0]&&function(vt){s&&(G("updateReadOnly",vt),s.dispatch({effects:[A.reconfigure(Fo.readOnly.of(vt)),pe.reconfigure(Qn.editable.of(!vt))]}))}(c),131074&t.$$.dirty[1]&&ve!==m&&(e(48,ve=m),G("forceUpdateText",{escapeUnicodeCharacters:m}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:i.escapeValue(ce)}})),1&t.$$.dirty[0]|262144&t.$$.dirty[1]&&e(14,r="repairable"!==Rn||c?[Qo]:[{icon:_k,text:"Auto repair",title:"Automatically repair JSON",onClick:Ze},Qo])},[c,u,d,z,o,a,l,P,W,J,ce,je,Te,kt,r,oe,le,Re,function(){var vt;if(!c)try{var jn=g.parse(ce);$=!0,j({id:et,json:jn,rootPath:[],onSort:(vt=or(_n().mark(function di(ki){var Nr;return _n().wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:G("onSort",Nr=ki.operations),ae(Nr);case 3:case"end":return Jr.stop()}},di)})),function(di){return vt.apply(this,arguments)}),onClose:function(){$=!1,st()}})}catch(di){D(di)}},function(){c||Ve({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?tj(s):ej(s))},function(){c||s&&(HR(s),st())},function(){c||s&&(TD(s),st())},function(){e(7,P=!0),vr(h,!0)},function(){C(Uo.tree)},function(){Er()},function(vt){G("select validation error",vt);var jn=Ri(vt);Ct(jn.from,jn.to),st()},Ro,ko,h,f,p,m,g,v,y,b,C,D,E,B,j,U,st,ae,Ve,function(){G("refresh"),tc().then(function(){if(s){var vt=on();G("updateTheme",{dark:vt}),s.dispatch({effects:[q.reconfigure(Qn.theme({},{dark:vt}))]})}})},Bi,ve,Rn,function(vt){Xi[vt?"unshift":"push"](function(){e(4,o=vt)})},function(){return e(8,W=!1)},function(vt){Xi[vt?"unshift":"push"](function(){e(5,a=vt)})}]}var cot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,lot,aot,Pi,{readOnly:0,mainMenuBar:1,statusBar:2,externalContent:29,indentation:30,tabSize:31,escapeUnicodeCharacters:32,parser:33,validator:34,validationParser:35,onChange:36,onChangeMode:37,onError:38,onFocus:39,onBlur:40,onRenderMenu:3,onSortModal:41,onTransformModal:42,focus:43,patch:44,openTransformModal:45,refresh:46,validate:47},rot,[-1,-1,-1,-1]),r}return Ie(e,[{key:"focus",get:function(){return this.$$.ctx[43]}},{key:"patch",get:function(){return this.$$.ctx[44]}},{key:"openTransformModal",get:function(){return this.$$.ctx[45]}},{key:"refresh",get:function(){return this.$$.ctx[46]}},{key:"validate",get:function(){return this.$$.ctx[47]}}]),e}();function uot(t){var n,e;return n=new Ik({props:{items:t[0]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};1&Jn(r,1)[0]&&(o.items=i[0]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function dot(t,n,e){var i,r,o=n.json,s=n.readOnly,a=n.historyState,l=n.onSort,c=n.onTransform,u=n.onContextMenu,d=n.onUndo,h=n.onRedo,f=n.onRenderMenu;return t.$$set=function(p){"json"in p&&e(1,o=p.json),"readOnly"in p&&e(2,s=p.readOnly),"historyState"in p&&e(3,a=p.historyState),"onSort"in p&&e(4,l=p.onSort),"onTransform"in p&&e(5,c=p.onTransform),"onContextMenu"in p&&e(6,u=p.onContextMenu),"onUndo"in p&&e(7,d=p.onUndo),"onRedo"in p&&e(8,h=p.onRedo),"onRenderMenu"in p&&e(9,f=p.onRenderMenu)},t.$$.update=function(){510&t.$$.dirty&&e(10,i=s?[{type:"space"}]:[{type:"button",icon:xk,title:"Sort",className:"jse-sort",onClick:l,disabled:s||void 0===o},{type:"button",icon:yk,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:s||void 0===o},{type:"button",icon:Nae,title:hN,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:VP,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:d,disabled:!a.canUndo},{type:"button",icon:$P,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!a.canRedo},{type:"space"}]),1536&t.$$.dirty&&e(0,r=f(i)||i)},[r,o,s,a,l,c,u,d,h,f,i]}var hot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,dot,uot,Pi,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return Ie(e)}();function Mme(t,n,e){var i=t.slice();return i[9]=n[e],i}function Ome(t){var n,e,i,r=[t[9].props],o=t[9].component;function s(a){for(var l={},c=0;c0){for(var y=[g],b=tr(v);b.length>0&&!nu(m,b);)y.unshift({op:"add",path:dn(b),value:{}}),b=tr(b);return y}}return g})),f);var p,m}return t.$$set=function(h){"path"in h&&e(1,o=h.path),"value"in h&&e(2,s=h.value),"context"in h&&e(3,a=h.context),"enforceString"in h&&e(4,l=h.enforceString),"selection"in h&&e(5,c=h.selection),"searchResultItems"in h&&e(6,u=h.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&e(7,i=!a.readOnly&&nr(c)&&yp(c)),254&t.$$.dirty&&e(0,r=a.onRenderValue({path:o,value:s,readOnly:a.readOnly,enforceString:l,isEditing:i,parser:a.parser,normalization:a.normalization,selection:c,searchResultItems:u,onPatch:d,onPasteJson:a.onPasteJson,onSelect:a.onSelect,onFind:a.onFind,findNextInside:a.findNextInside,focus:a.focus}))},[r,o,s,a,l,c,u,i]}var mot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,pot,fot,Pi,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return Ie(e)}();function got(t){_i(t,"svelte-l28mqd",".jse-inline-value.svelte-l28mqd{font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);line-height:var(--jse-line-height);border:none;padding:0 calc(0.5 * var(--jse-padding));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-l28mqd:hover{background:var(--jse-hover-background-color)}.jse-inline-value.jse-selected.svelte-l28mqd{background:var(--jse-selection-background-color)}")}function vot(t){var n,e,i,r,o=ah(t[2].stringify(t[1]),50)+"";return{c:function(){n=De("button"),e=sn(o),R(n,"type","button"),R(n,"class","jse-inline-value svelte-l28mqd"),Nt(n,"jse-selected",t[3])},m:function(s,a){$e(s,n,a),me(n,e),i||(r=Rt(n,"dblclick",t[6]),i=!0)},p:function(s,a){var l=Jn(a,1)[0];6&l&&o!==(o=ah(s[2].stringify(s[1]),50)+"")&&ti(e,o),8&l&&Nt(n,"jse-selected",s[3])},i:Bt,o:Bt,d:function(s){s&&Be(n),i=!1,r()}}}function yot(t,n,e){var i,r=n.path,o=n.value,s=n.parser,a=n.isSelected,l=n.onEdit;return t.$$set=function(c){"path"in c&&e(0,r=c.path),"value"in c&&e(1,o=c.value),"parser"in c&&e(2,s=c.parser),"isSelected"in c&&e(3,a=c.isSelected),"onEdit"in c&&e(4,l=c.onEdit)},t.$$.update=function(){2&t.$$.dirty&&e(5,i=ao(o)?o.length:Object.keys(o).length)},[r,o,s,a,l,i,function(){return l(r)}]}var _ot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,yot,vot,Pi,{path:0,value:1,parser:2,isSelected:3,onEdit:4},got),r}return Ie(e)}();function bot(t){_i(t,"svelte-h4fort",".jse-column-header.svelte-h4fort.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-h4fort span.jse-column-sort-icon.svelte-h4fort{height:1em}")}function Ime(t){var n,e,i,r;return e=new hr({props:{data:t[1]===tu.asc?hu:Iae}}),{c:function(){n=De("span"),gt(e.$$.fragment),R(n,"class","jse-column-sort-icon svelte-h4fort"),R(n,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(o,s){$e(o,n,s),pt(e,n,null),r=!0},p:function(o,s){var a={};2&s&&(a.data=o[1]===tu.asc?hu:Iae),e.$set(a),(!r||4&s&&i!==(i="Currently sorted in ".concat(o[2]," order")))&&R(n,"title",i)},i:function(o){r||(Q(e.$$.fragment,o),r=!0)},o:function(o){fe(e.$$.fragment,o),r=!1},d:function(o){o&&Be(n),mt(e)}}}function xot(t){var n,e,i,r,o,s,a,l,c=ah(t[3],50)+"",u=void 0!==t[1]&&Ime(t);return{c:function(){n=De("button"),e=De("span"),i=sn(c),r=rt(),u&&u.c(),R(e,"class","jse-column-name"),R(n,"type","button"),R(n,"class","jse-column-header svelte-h4fort"),R(n,"title",o=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),Nt(n,"jse-readonly",t[0])},m:function(d,h){$e(d,n,h),me(n,e),me(e,i),me(n,r),u&&u.m(n,null),s=!0,a||(l=Rt(n,"click",t[4]),a=!0)},p:function(d,h){var f=Jn(h,1)[0];(!s||8&f)&&c!==(c=ah(d[3],50)+"")&&ti(i,c),void 0!==d[1]?u?(u.p(d,f),2&f&&Q(u,1)):((u=Ime(d)).c(),Q(u,1),u.m(n,null)):u&&(Ht(),fe(u,1,1,function(){u=null}),Ut()),(!s||9&f&&o!==(o=d[0]?d[3]:d[3]+" (Click to sort the data by this column)"))&&R(n,"title",o),(!s||1&f)&&Nt(n,"jse-readonly",d[0])},i:function(d){s||(Q(u),s=!0)},o:function(d){fe(u),s=!1},d:function(d){d&&Be(n),u&&u.d(),a=!1,l()}}}function wot(t,n,e){var i,r,o,s=n.path,a=n.sortedColumn,l=n.readOnly,c=n.onSort;return t.$$set=function(u){"path"in u&&e(5,s=u.path),"sortedColumn"in u&&e(6,a=u.sortedColumn),"readOnly"in u&&e(0,l=u.readOnly),"onSort"in u&&e(7,c=u.onSort)},t.$$.update=function(){var u;32&t.$$.dirty&&e(3,i=Ji(s)?"values":cu(rc(s))),96&t.$$.dirty&&e(1,r=dr(s,null===(u=a)||void 0===u?void 0:u.path)?a.sortDirection:void 0),2&t.$$.dirty&&e(2,o=tUe[r])},[l,r,o,i,function(){l||c({path:s,sortDirection:r===tu.asc?tu.desc:tu.asc})},s,a,c]}var ZD,eT,Cot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,wot,xot,Pi,{path:5,sortedColumn:6,readOnly:0,onSort:7},bot),r}return Ie(e)}();function Nme(t,n){return ZD||(eT=new WeakMap,ZD=new ResizeObserver(function(e){var i,r=He(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=eT.get(o.target);s&&s(o.target)}}catch(a){r.e(a)}finally{r.f()}})),eT.set(t,n),ZD.observe(t),{destroy:function(){eT.delete(t),ZD.unobserve(t)}}}function Sot(t){var n,e;return n=new uce({props:{items:t[1],tip:t[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};2&r[0]&&(o.items=i[1]),1&r[0]&&(o.tip=i[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function kot(t,n,e){var i,r,o,s,a,l,c,u,d,h,f,p=n.json,m=n.documentState,g=n.parser,v=n.showTip,y=n.onCloseContextMenu,b=n.onEditValue,C=n.onEditRow,D=n.onToggleEnforceString,E=n.onCut,B=n.onCopy,z=n.onPaste,j=n.onRemove,U=n.onDuplicateRow,G=n.onInsertBeforeRow,X=n.onInsertAfterRow,oe=n.onRemoveRow;function P(){y(),b()}function W(){y(),C()}function J(){y(),D()}function H(){y(),E(!0)}function pe(){y(),E(!1)}function A(){y(),B(!0)}function N(){y(),B(!1)}function F(){y(),z()}function q(){y(),j()}function V(){y(),U()}function ce(){y(),G()}function ve(){y(),X()}function je(){y(),oe()}return t.$$set=function(Te){"json"in Te&&e(2,p=Te.json),"documentState"in Te&&e(3,m=Te.documentState),"parser"in Te&&e(4,g=Te.parser),"showTip"in Te&&e(0,v=Te.showTip),"onCloseContextMenu"in Te&&e(5,y=Te.onCloseContextMenu),"onEditValue"in Te&&e(6,b=Te.onEditValue),"onEditRow"in Te&&e(7,C=Te.onEditRow),"onToggleEnforceString"in Te&&e(8,D=Te.onToggleEnforceString),"onCut"in Te&&e(9,E=Te.onCut),"onCopy"in Te&&e(10,B=Te.onCopy),"onPaste"in Te&&e(11,z=Te.onPaste),"onRemove"in Te&&e(12,j=Te.onRemove),"onDuplicateRow"in Te&&e(13,U=Te.onDuplicateRow),"onInsertBeforeRow"in Te&&e(14,G=Te.onInsertBeforeRow),"onInsertAfterRow"in Te&&e(15,X=Te.onInsertAfterRow),"onRemoveRow"in Te&&e(16,oe=Te.onRemoveRow)},t.$$.update=function(){8&t.$$.dirty[0]&&e(22,i=m.selection),4&t.$$.dirty[0]&&e(25,r=void 0!==p),4194304&t.$$.dirty[0]&&e(17,o=null!=i),4194304&t.$$.dirty[0]&&e(26,s=null!=i&&Ji(i.focusPath)),4194308&t.$$.dirty[0]&&e(23,a=void 0!==p&&null!=i?On(p,i.focusPath):void 0),37748736&t.$$.dirty[0]&&e(18,l=r&&(Lr(i)||ws(i)||nr(i))),104857600&t.$$.dirty[0]&&r&&null!=i&&(Lr(i)||nr(i)),71303172&t.$$.dirty[0]&&void 0!==p&&null!=i&&hb(i)&&!s&&Array.isArray(On(p,tr(i.focusPath))),37748736&t.$$.dirty[0]&&e(21,c=r&&null!=i&&hb(i)),10485760&t.$$.dirty[0]&&e(19,u=c&&!zo(a)),262144&t.$$.dirty[0]&&e(24,d=l),29491200&t.$$.dirty[0]&&d&&ng(i)&&Io(a),29491200&t.$$.dirty[0]&&d&&ng(i)&&Array.isArray(a),29491200&t.$$.dirty[0]&&d&&ng(i)&&zo(a),12582936&t.$$.dirty[0]&&e(20,h=null!=i&&mf(a,m.enforceStringMap,dn(i.focusPath),g)),4063232&t.$$.dirty[0]&&e(1,f=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:P,icon:N0,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!c},width:"11em",items:[{type:"button",icon:N0,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:P,disabled:!c},{type:"button",icon:h?lb:cb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:J,disabled:!u}]},{type:"dropdown-button",main:{type:"button",onClick:H,icon:I0,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!l},width:"10em",items:[{type:"button",icon:I0,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:H,disabled:!l},{type:"button",icon:I0,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:pe,disabled:!l}]},{type:"dropdown-button",main:{type:"button",onClick:A,icon:xp,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!l},width:"12em",items:[{type:"button",icon:xp,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:A,disabled:!l},{type:"button",icon:xp,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:N,disabled:!l}]},{type:"button",onClick:F,icon:Aae,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:q,icon:BP,text:"Remove",title:"Remove selected contents (Delete)",disabled:!l}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:W,icon:N0,text:"Edit row",title:"Edit the current row",disabled:!l},{type:"button",onClick:V,icon:Rae,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:ce,icon:F0,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:ve,icon:F0,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:je,icon:BP,text:"Remove row",title:"Remove current row",disabled:!o}]}]}])},[v,f,p,m,g,y,b,C,D,E,B,z,j,U,G,X,oe,o,l,u,h,c,i,a,d,r,s]}var Dot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,kot,Sot,Pi,{json:2,documentState:3,parser:4,showTip:0,onCloseContextMenu:5,onEditValue:6,onEditRow:7,onToggleEnforceString:8,onCut:9,onCopy:10,onPaste:11,onRemove:12,onDuplicateRow:13,onInsertBeforeRow:14,onInsertAfterRow:15,onRemoveRow:16},null,[-1,-1]),r}return Ie(e)}();function Tot(t){_i(t,"svelte-1te5h1h",".jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h.svelte-1te5h1h:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-before.svelte-1te5h1h{flex:1}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays.svelte-1te5h1h{display:flex;flex-direction:column;gap:var(--jse-padding);max-width:300px;margin:var(--jse-padding);font-family:var(--jse-font-family);font-size:var(--jse-font-size)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays .jse-nested-arrays-info.svelte-1te5h1h{color:var(--jse-panel-color-readonly)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family);font-size:var(--jse-font-size);padding:5px;margin:0;background:var(--jse-button-primary-background);color:var(--jse-button-primary-color);padding:var(--jse-padding) calc(2 * var(--jse-padding));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:hover{background:var(--jse-button-primary-background-highlight)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action.svelte-1te5h1h:disabled{background:var(--jse-button-primary-background-disabled)}.jse-table-mode-welcome.svelte-1te5h1h .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-1te5h1h{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-1te5h1h .jse-space.jse-after.svelte-1te5h1h{flex:2}")}function Fme(t,n,e){var i=t.slice();i[12]=n[e];var r=On(i[0],i[12]).length;return i[13]=r,i}function Eot(t){var n,e;return{c:function(){n=sn(t[5]),e=sn(" cannot be opened in table mode. You can open the document in tree mode instead.")},m:function(i,r){$e(i,n,r),$e(i,e,r)},p:function(i,r){32&r&&ti(n,i[5])},d:function(i){i&&Be(n),i&&Be(e)}}}function Aot(t){var n;return{c:function(){n=sn("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(e,i){$e(e,n,i)},p:Bt,d:function(e){e&&Be(n)}}}function Pme(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p=cu(rc(t[12]))+"",m=t[13]+"",g=1!==t[13]?"items":"item";function v(){return t[10](t[12])}return{c:function(){n=De("button"),e=sn(t[6]),i=sn(' "'),r=sn(p),o=sn('"\n '),s=De("span"),a=sn("("),l=sn(m),c=rt(),u=sn(g),d=sn(")"),R(s,"class","jse-nested-array-count svelte-1te5h1h"),R(n,"type","button"),R(n,"class","jse-nested-array-action svelte-1te5h1h")},m:function(y,b){$e(y,n,b),me(n,e),me(n,i),me(n,r),me(n,o),me(n,s),me(s,a),me(s,l),me(s,c),me(s,u),me(s,d),h||(f=Rt(n,"click",v),h=!0)},p:function(y,b){t=y,64&b&&ti(e,t[6]),8&b&&p!==(p=cu(rc(t[12]))+"")&&ti(r,p),9&b&&m!==(m=t[13]+"")&&ti(l,m),9&b&&g!==(g=1!==t[13]?"items":"item")&&ti(u,g)},d:function(y){y&&Be(n),h=!1,f()}}}function Mot(t){var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v;function y(z,j){return z[4]?Aot:Eot}for(var b=y(t),C=b(t),D=t[3],E=[],B=0;B1&&void 0!==arguments[1]?arguments[1]:2,m=[];return function g(v,y){Oo(v)&&y.length0}):[]),8&t.$$.dirty&&e(4,r=!Ji(s)),657&t.$$.dirty&&e(5,o=r?"Object with nested arrays":void 0!==l||""!==a&&void 0!==a?Oo(l)?"An object":ao(l)?"An empty array":"A ".concat(IN(l,u)):"An empty document")},[l,d,h,s,r,o,i,a,c,u,function(f){return d(f)},function(){return h(Uo.tree)}]}var Iot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Oot,Mot,Pi,{text:7,json:0,readOnly:8,parser:9,openJSONEditorModal:1,onChangeMode:2},Tot),r}return Ie(e)}();function Not(t){_i(t,"svelte-h4fort",".jse-column-header.svelte-h4fort{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding);padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding));width:100%}.jse-column-header.svelte-h4fort:hover{background:var(--jse-table-header-background-highlight)}.jse-column-header.svelte-h4fort:not(.jse-column-header.jse-readonly){cursor:pointer}")}function Fot(t){var n,e,i,r,o,s;return e=new hr({props:{data:$Xe}}),{c:function(){n=De("button"),gt(e.$$.fragment),R(n,"type","button"),R(n,"class","jse-column-header svelte-h4fort"),R(n,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(a,l){$e(a,n,l),pt(e,n,null),r=!0,o||(s=Rt(n,"click",t[3]),o=!0)},p:function(a,l){var c=Jn(l,1)[0];(!r||3&c&&i!==(i="The Columns are created by sampling ".concat(a[1]," items out of ").concat(a[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&R(n,"title",i)},i:function(a){r||(Q(e.$$.fragment,a),r=!0)},o:function(a){fe(e.$$.fragment,a),r=!1},d:function(a){a&&Be(n),mt(e),o=!1,s()}}}function Pot(t,n,e){var i=n.count,r=n.maxSampleCount,o=n.onRefresh;return t.$$set=function(s){"count"in s&&e(0,i=s.count),"maxSampleCount"in s&&e(1,r=s.maxSampleCount),"onRefresh"in s&&e(2,o=s.onRefresh)},[i,r,o,function(){return o()}]}var Rot=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,Pot,Fot,Pi,{count:0,maxSampleCount:1,onRefresh:2},Not),r}return Ie(e)}();function jot(t){_i(t,"svelte-hs49xj",".jse-table-mode.svelte-hs49xj.svelte-hs49xj{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color);min-width:0;min-height:0;font-family:var(--jse-font-family-mono);font-size:var(--jse-font-size-mono);color:var(--jse-text-color)}.jse-table-mode.no-main-menu.svelte-hs49xj.svelte-hs49xj{border-top:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label.svelte-hs49xj{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-hs49xj .jse-hidden-input-label .jse-hidden-input.svelte-hs49xj{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj{flex:1;align-items:start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border);border-right:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents.svelte-hs49xj:last-child{border-bottom:var(--jse-main-border)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main.svelte-hs49xj{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{margin:0;padding:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-hs49xj{padding-bottom:var(--jse-padding)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row.svelte-hs49xj:hover{background-color:var(--jse-table-row-odd-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj{padding:0 var(--jse-padding) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj,.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{font-weight:normal;text-align:left;color:var(--jse-text-readonly);background:var(--jse-table-header-background)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-hs49xj{padding:0;position:sticky;top:0}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-hs49xj{padding:calc(0.5 * var(--jse-padding)) var(--jse-padding) calc(0.5 * var(--jse-padding)) calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-hs49xj{padding:0 var(--jse-padding) 0 calc(0.5 * var(--jse-padding))}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-hs49xj>.jse-value{background:var(--jse-selection-background-color)}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div{display:inline-flex}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-hs49xj div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-hs49xj .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-hs49xj{position:relative;vertical-align:top}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading.svelte-hs49xj{align-items:unset}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading-space.svelte-hs49xj{flex:1}.jse-table-mode.svelte-hs49xj .jse-contents.jse-contents-loading .jse-loading.svelte-hs49xj{flex:2;text-align:center;color:var(--jse-panel-color-readonly);box-sizing:border-box;font-family:var(--jse-font-family);font-size:var(--jse-font-size)}")}function Rme(t,n,e){var i=t.slice();return i[120]=n[e],i[124]=e,i[121]=i[22].startIndex+i[124],i[122]=i[21].rows[i[121]],i}function jme(t,n,e){var i,r=t.slice();r[125]=n[e],r[131]=e;var o=[String(r[121])].concat(r[125]);r[126]=o;var s=On(r[120],r[125]);r[127]=s;var a=r[46](r[126],r[10].selection);r[128]=a;var l=null===(i=r[122])||void 0===i?void 0:i.columns[r[131]];return r[129]=l,r}function Lme(t,n,e){var i=t.slice();return i[125]=n[e],i}function Bme(t){var n,e;return n=new hot({props:{json:t[7],readOnly:t[0],historyState:t[19],onSort:t[40],onTransform:t[41],onUndo:t[42],onRedo:t[43],onContextMenu:t[32],onRenderMenu:t[5]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),524288&r[0]&&(o.historyState=i[19]),32&r[0]&&(o.onRenderMenu=i[5]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Lot(t){var n;return{c:function(){(n=De("div")).innerHTML='
    \n
    loading...
    ',R(n,"class","jse-contents jse-contents-loading svelte-hs49xj")},m:function(e,i){$e(e,n,i)},p:Bt,i:Bt,o:Bt,d:function(e){e&&Be(n)}}}function Bot(t){var n,e,i,r,o,s,a,l,c,u=[Hot,Vot,$ot],d=[];function h(f,p){return f[24]?0:f[16]&&void 0!==f[15]&&""!==f[15]?1:2}return r=h(t),o=d[r]=u[r](t),{c:function(){n=De("label"),e=De("input"),i=rt(),o.c(),s=Dr(),R(e,"type","text"),e.readOnly="readonly",R(e,"tabindex","-1"),R(e,"class","jse-hidden-input svelte-hs49xj"),R(n,"class","jse-hidden-input-label svelte-hs49xj")},m:function(f,p){$e(f,n,p),me(n,e),t[71](e),$e(f,i,p),d[r].m(f,p),$e(f,s,p),a=!0,l||(c=Rt(e,"paste",t[37]),l=!0)},p:function(f,p){var m=r;(r=h(f))===m?d[r].p(f,p):(Ht(),fe(d[m],1,1,function(){d[m]=null}),Ut(),(o=d[r])?o.p(f,p):(o=d[r]=u[r](f)).c(),Q(o,1),o.m(s.parentNode,s))},i:function(f){a||(Q(o),a=!0)},o:function(f){fe(o),a=!1},d:function(f){f&&Be(n),t[71](null),f&&Be(i),d[r].d(f),f&&Be(s),l=!1,c()}}}function $ot(t){var n,e;return n=new Iot({props:{text:t[15],json:t[7],readOnly:t[0],parser:t[2],openJSONEditorModal:t[39],onChangeMode:t[4]}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};32768&r[0]&&(o.text=i[15]),128&r[0]&&(o.json=i[7]),1&r[0]&&(o.readOnly=i[0]),4&r[0]&&(o.parser=i[2]),16&r[0]&&(o.onChangeMode=i[4]),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function Vot(t){var n,e,i,r;return n=new ad({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:bp,text:"Repair manually",onClick:t[35]}]}}),i=new mue({props:{text:t[15]||"",json:t[7],indentation:t[3],parser:t[2]}}),{c:function(){gt(n.$$.fragment),e=rt(),gt(i.$$.fragment)},m:function(o,s){pt(n,o,s),$e(o,e,s),pt(i,o,s),r=!0},p:function(o,s){var a={};1&s[0]&&(a.actions=o[0]?[]:[{icon:bp,text:"Repair manually",onClick:o[35]}]),n.$set(a);var l={};32768&s[0]&&(l.text=o[15]||""),128&s[0]&&(l.json=o[7]),8&s[0]&&(l.indentation=o[3]),4&s[0]&&(l.parser=o[2]),i.$set(l)},i:function(o){r||(Q(n.$$.fragment,o),Q(i.$$.fragment,o),r=!0)},o:function(o){fe(n.$$.fragment,o),fe(i.$$.fragment,o),r=!1},d:function(o){mt(n,o),o&&Be(e),mt(i,o)}}}function Hot(t){for(var n,e,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j=!Ji(null===(n=t[21])||void 0===n?void 0:n.root),U=j&&$me(t),G=t[9],X=[],oe=0;oe"u";a("isSSR:",m);var g,v,y,b,C,D,E=n.readOnly,B=n.externalContent,z=n.mainMenuBar,j=n.escapeControlCharacters,U=n.escapeUnicodeCharacters,G=n.flattenColumns,X=n.parser,oe=n.parseMemoizeOne,P=n.validator,W=n.validationParser,J=n.indentation,H=n.onChange,pe=n.onChangeMode,A=n.onRenderValue,N=n.onRenderMenu,F=n.onFocus,q=n.onBlur,V=n.onSortModal,ce=n.onTransformModal,ve=n.onJSONEditorModal;QP({onMount:eu,onDestroy:qu,getWindow:function(){return w0(v)},hasFocus:function(){return st&&document.hasFocus()||dk(v)},onFocus:function(){F&&F()},onBlur:function(){q&&q()}});var je,Te=void 0,et=1e4,We=[],st=!1,$={},ae=600,le=0;function Re(Fe){a("updateSelection",Fe);var At="function"==typeof Fe?Fe(Ve.selection):Fe;dr(At,Ve.selection)||e(10,Ve=nt(nt({},Ve),{},{selection:At}))}function Ze(Fe){void 0!==Ve.selection&&void 0!==Fe&&(Ve.selection&&nu(Fe,Ve.selection.anchorPath)&&nu(Fe,Ve.selection.focusPath)||(a("clearing selection: path does not exist anymore",Ve.selection),e(10,Ve=nt(nt({},Ve),{},{selection:T0(Fe,Ve)}))))}var Ot,Ve=fk(),Ct=!1,yn=Tle({onChange:function(Fe){e(19,Xn=Fe)}}),Xn=yn.getState();function Ri(Fe){var At=Fe.previousJson,Gt=Fe.previousState,ln=Fe.previousText,mn=Fe.previousTextIsRepaired;void 0===At&&void 0===ln||(void 0!==C?yn.add(void 0!==At?{undo:{patch:[{op:"replace",path:"",value:At}],state:pl(Gt),json:void 0,text:ln,textIsRepaired:mn},redo:{patch:[{op:"replace",path:"",value:C}],state:pl(Ve),json:void 0,text:D,textIsRepaired:Ct}}:{undo:{patch:void 0,json:void 0,text:ln,state:pl(Gt),textIsRepaired:mn},redo:{patch:void 0,json:C,state:pl(Ve),text:D,textIsRepaired:Ct}}):void 0!==At&&yn.add({undo:{patch:void 0,json:At,state:pl(Gt),text:ln,textIsRepaired:mn},redo:{patch:void 0,json:void 0,text:D,textIsRepaired:Ct,state:pl(Ve)}}))}var hn=[],vr=wb(Ele);function Er(Fe,At,Gt,ln){j0(function(){var mn;try{mn=vr(Fe,At,Gt,ln)}catch(ci){mn=[{path:[],message:"Failed to validate: "+ci.message,severity:Jd.warning}]}dr(mn,hn)||(a("validationErrors changed:",mn),e(11,hn=mn))},function(mn){return a("validationErrors updated in ".concat(mn," ms"))})}function fr(){return a("validate"),Te?{parseError:Te,isRepairable:!1}:(Er(C,P,X,W),Ji(hn)?null:{validationErrors:hn})}function wr(Fe,At){if(a("patch",Fe,At),void 0===C)throw new Error("Cannot apply patch: no JSON");var Gt={json:C},ln=C,mn=Ve,ci=Ct,$i=_ae(C,Fe),Gn=Zse(C,Ve,Fe).json,ai=function UZe(t,n,e){return n.some(function(i){return function(r,o,s){if(!r)return!1;if("replace"===o.op){var a=fu(Zu(o.path),s),l=a.rowIndex,c=a.columnIndex,u=s.findIndex(function(d){return dr(d,r.path)});if(-1!==l&&-1!==c&&c!==u)return!1}return!0}(t.sortedColumn,i,e)})?nt(nt({},t),{},{sortedColumn:void 0}):t}(Ve,Fe,We),ni="function"==typeof At?At(Gn,ai):void 0;e(7,C=ni&&void 0!==ni.json?ni.json:Gn);var kr=ni&&void 0!==ni.state?ni.state:ai;e(10,Ve=kr),e(15,D=void 0),e(18,Ct=!1),e(17,je=void 0),yn.add({undo:{patch:$i,json:void 0,text:void 0,state:pl(mn),textIsRepaired:ci},redo:{patch:Fe,json:void 0,state:pl(kr),text:void 0,textIsRepaired:Ct}});var Fr={json:C,previousJson:ln,undo:$i,redo:Fe};return Xr(Gt,Fr),Fr}function Si(Fe,At){if(!E)return wr(Fe,At)}function Xr(Fe,At){(void 0!==Fe.json||void 0!==Fe?.text)&&(void 0!==D?H({text:D,json:void 0},Fe,{contentErrors:fr(),patchResult:At}):void 0!==C&&H({text:void 0,json:C},Fe,{contentErrors:fr(),patchResult:At}))}function Ro(Fe){a("handleFind",Fe)}function Rn(Fe){a("pasted json as text",Fe),e(17,je=Fe)}function kt(Fe){var At=parseInt(Fe[0]),Gt=[String(At+1)].concat(ui(Fe.slice(1)));return nu(C,Gt)?br(Gt,!1):br(Fe,!1)}function pi(){b&&(b.focus(),b.select())}function Bi(){Ve.selection||Re(function(){if(ao(C)&&!Ji(C)&&!Ji(We))return br(["0"].concat(ui(We[0])),!1)}())}function Ar(Fe){var At=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Gt=u4(Fe,We,$,18),ln=Gt-le,mn=vt(Fe);a("scrollTo",{path:Fe,top:Gt,scrollTop:le,elem:mn});var ci=y.getBoundingClientRect();if(mn&&!At){var $i=mn.getBoundingClientRect();if($i.bottom>ci.top&&$i.topGt.right&&e(13,y.scrollLeft+=ln.right-Gt.right,y),ln.left(Gn=le+ci.height-18)&&e(13,y.scrollTop+=mn-Gn,y),ln<$i&&e(13,y.scrollTop-=$i-ln,y),ko(Fe)}function vt(Fe){return y?y.querySelector('td[data-path="'.concat(C0(Fe),'"]')):null}function jn(Fe){st=!0;var ni=u(Dot,{json:C,documentState:Ve,parser:X,showTip:Fe.showTip,onEditValue:ki,onEditRow:Nr,onToggleEnforceString:Jr,onCut:Cr,onCopy:Za,onPaste:Ks,onRemove:$c,onDuplicateRow:Ee,onInsertBeforeRow:qe,onInsertAfterRow:Ke,onRemoveRow:dt,onCloseContextMenu:function(){d(ni),pi()}},{left:Fe.left,top:Fe.top,offsetTop:Fe.offsetTop,offsetLeft:Fe.offsetLeft,width:Fe.width,height:Fe.height,anchor:Fe.anchor,closeOnOuterClick:!0,onClose:function(){st=!1,pi()}})}function di(Fe){if(!E&&!yp(Ve.selection)){if(Fe&&(Fe.stopPropagation(),Fe.preventDefault()),Fe&&"contextmenu"===Fe.type&&Fe.target!==b)jn({left:Fe.clientX,top:Fe.clientY,width:260,height:336,showTip:!1});else{var At,Gt=null===(At=y)||void 0===At?void 0:At.querySelector(".jse-table-cell.jse-selected-value");if(Gt)jn({anchor:Gt,offsetTop:2,width:260,height:336,showTip:!1});else{var ln,mn=null===(ln=y)||void 0===ln?void 0:ln.getBoundingClientRect();mn&&jn({top:mn.top+2,left:mn.left+2,width:260,height:336,showTip:!1})}}return!1}}function ki(){if(!E&&Ve.selection){var Fe=Ve.selection.focusPath;zo(On(C,Fe))?gi(Fe):Re(br(Fe,!0))}}function Nr(){!E&&Ve.selection&&gi(Ve.selection.focusPath.slice(0,1))}function Jr(){if(!E&&nr(Ve.selection)){var Fe=Ve.selection.focusPath,At=dn(Fe),Gt=On(C,Fe),ln=!mf(Gt,Ve.enforceStringMap,At,X),mn=ln?String(Gt):e0(String(Gt),X);a("handleToggleEnforceString",{enforceString:ln,value:Gt,updatedValue:mn}),Si([{op:"replace",path:At,value:mn}],function(ci,$i){return{state:Qse($i,At,ln)}})}}function co(){return(co=or(_n().mark(function Fe(){var At,Gt,ln;return _n().wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return a("apply pasted json",je),Gt=(At=je).path,ln=At.contents,Re(br(Gt,!1)),mn.next=5,tc();case 5:Si([{op:"replace",path:dn(Gt),value:ln}]);case 7:case"end":return mn.stop()}},Fe)}))).apply(this,arguments)}function Ks(){l(Lle,{},nt(nt({},Vm),{},{styleWindow:{width:"450px"}}),{onClose:function(){return pi()}})}function Cr(Fe){return Qs.apply(this,arguments)}function Qs(){return(Qs=or(_n().mark(function Fe(At){return _n().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,uue({json:C,documentState:Ve,indentation:At?J:void 0,readOnly:E,parser:X,onPatch:Si});case 2:case"end":return Gt.stop()}},Fe)}))).apply(this,arguments)}function Za(){return el.apply(this,arguments)}function el(){return el=or(_n().mark(function Fe(){var At,Gt=arguments;return _n().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(At=!(Gt.length>0&&void 0!==Gt[0])||Gt[0],void 0!==C){ln.next=3;break}return ln.abrupt("return");case 3:return ln.next=5,due({json:C,documentState:Ve,indentation:At?J:void 0,parser:X});case 5:case"end":return ln.stop()}},Fe)})),el.apply(this,arguments)}function $c(){fue({json:C,text:D,documentState:Ve,keepSelection:!0,readOnly:E,onChange:H,onPatch:Si})}function Ee(){!function zZe(t){var n=t.json,e=t.documentState,i=t.columns,o=t.onPatch;if(!t.readOnly&&void 0!==n&&e.selection&&M0(e.selection)){var s=fu(e.selection.focusPath,i),a=s.rowIndex,l=s.columnIndex;Rl("duplicate row",{rowIndex:a});var c=[String(a)];o(gae(n,[c]),function(u,d){var h=br(lg({rowIndex:a0?a-1:void 0,h=void 0!==d?br(lg({rowIndex:d,columnIndex:l},i),!1):void 0;return Rl("remove row new selection",{rowIndex:a,newRowIndex:d,newSelection:h}),{state:nt(nt({},u),{},{selection:h})}})}}({json:C,documentState:Ve,columns:We,readOnly:E,onPatch:Si})}function Ye(){return(Ye=or(_n().mark(function Fe(At){return _n().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,pue({char:At,selectInside:!1,refJsonEditor:v,json:C,documentState:Ve,readOnly:E,parser:X,onPatch:Si,onReplaceJson:In,onSelect:Re});case 2:case"end":return Gt.stop()}},Fe)}))).apply(this,arguments)}function In(Fe,At){var Gt=Ve,ln=C,mn=D,ci={json:C,text:D},$i=Ct,Gn=uu(C,Ve,[],lh),ai="function"==typeof At?At(Fe,Gn):void 0;e(7,C=ai&&void 0!==ai.json?ai.json:Fe),e(10,Ve=ai&&void 0!==ai.state?ai.state:Gn),e(15,D=void 0),e(18,Ct=!1),Ze(C),Ri({previousJson:ln,previousState:Gt,previousText:mn,previousTextIsRepaired:$i}),Xr(ci,null)}function li(Fe,At){a("handleChangeText");var Gt=Ve,ln=C,mn=D,ci={json:C,text:D},$i=Ct;try{e(7,C=oe(Fe)),e(10,Ve=uu(C,Ve,[],lh)),e(15,D=void 0),e(18,Ct=!1)}catch{try{e(7,C=oe(Kd(Fe))),e(10,Ve=uu(C,Ve,[],lh)),e(15,D=Fe),e(18,Ct=!0)}catch{e(7,C=void 0),e(10,Ve=fk({json:C,expand:lh})),e(15,D=Fe),e(18,Ct=!1)}}if("function"==typeof At){var Gn=At(C,Ve);e(7,C=Gn&&Gn.json?Gn.json:C),e(10,Ve=Gn&&Gn.state?Gn.state:Ve)}Ze(C),Ri({previousJson:ln,previousState:Gt,previousText:mn,previousTextIsRepaired:$i}),Xr(ci,null)}function vi(Fe){var Gt=Fe.rootPath,ln=Fe.onTransform,mn=Fe.onClose;E||void 0===C||(st=!0,ce({id:Fe.id||p,json:C,rootPath:Gt||[],onTransform:ln?function(ci){ln({operations:ci,json:C,transformedJson:ed(C,ci)})}:function(ci){a("onTransform",Gt,ci),Si(ci)},onClose:function(){st=!1,pi(),mn&&mn()}}))}function gi(Fe){a("openJSONEditorModal",{path:Fe}),st=!0,ve({content:{json:On(C,Fe)},path:Fe,onPatch:Ot.onPatch,onClose:function(){st=!1,pi()}})}function Mr(Fe,At){l(Xle,{text:Fe,onParse:ak,onRepair:bse,onApply:At},nt(nt({},Vm),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return pi()}})}function to(){if(!E&&yn.getState().canUndo){var Fe=yn.undo();if(Fe){var At={json:C,text:D};e(7,C=Fe.undo.patch?ed(C,Fe.undo.patch):Fe.undo.json),e(10,Ve=Fe.undo.state),e(15,D=Fe.undo.text),e(18,Ct=Fe.undo.textIsRepaired),a("undo",{item:Fe,json:C}),Xr(At,{json:C,previousJson:At.json,redo:Fe.undo.patch,undo:Fe.redo.patch}),pi(),Ve.selection&&Ar(Ve.selection.focusPath,!1)}}}function xi(){if(!E&&yn.getState().canRedo){var Fe=yn.redo();if(Fe){var At={json:C,text:D};e(7,C=Fe.redo.patch?ed(C,Fe.redo.patch):Fe.redo.json),e(10,Ve=Fe.redo.state),e(15,D=Fe.redo.text),e(18,Ct=Fe.redo.textIsRepaired),a("redo",{item:Fe,json:C}),Xr(At,{json:C,previousJson:At.json,redo:Fe.redo.patch,undo:Fe.undo.patch}),pi(),Ve.selection&&Ar(Ve.selection.focusPath,!1)}}}function Sr(Fe,At){e(68,$[At]=Fe.getBoundingClientRect().height,$)}return t.$$set=function(Fe){"readOnly"in Fe&&e(0,E=Fe.readOnly),"externalContent"in Fe&&e(47,B=Fe.externalContent),"mainMenuBar"in Fe&&e(1,z=Fe.mainMenuBar),"escapeControlCharacters"in Fe&&e(48,j=Fe.escapeControlCharacters),"escapeUnicodeCharacters"in Fe&&e(49,U=Fe.escapeUnicodeCharacters),"flattenColumns"in Fe&&e(50,G=Fe.flattenColumns),"parser"in Fe&&e(2,X=Fe.parser),"parseMemoizeOne"in Fe&&e(51,oe=Fe.parseMemoizeOne),"validator"in Fe&&e(52,P=Fe.validator),"validationParser"in Fe&&e(53,W=Fe.validationParser),"indentation"in Fe&&e(3,J=Fe.indentation),"onChange"in Fe&&e(54,H=Fe.onChange),"onChangeMode"in Fe&&e(4,pe=Fe.onChangeMode),"onRenderValue"in Fe&&e(55,A=Fe.onRenderValue),"onRenderMenu"in Fe&&e(5,N=Fe.onRenderMenu),"onFocus"in Fe&&e(56,F=Fe.onFocus),"onBlur"in Fe&&e(57,q=Fe.onBlur),"onSortModal"in Fe&&e(58,V=Fe.onSortModal),"onTransformModal"in Fe&&e(59,ce=Fe.onTransformModal),"onJSONEditorModal"in Fe&&e(60,ve=Fe.onJSONEditorModal)},t.$$.update=function(){393216&t.$$.dirty[1]&&e(67,g=yP({escapeControlCharacters:j,escapeUnicodeCharacters:U})),65536&t.$$.dirty[1]&&function on(Fe){var At=C,Gt=x0(Fe)?Fe.text!==D:!dr(At,Fe.json);if(a("update external content",{isChanged:Gt}),Gt){var ln={json:C,text:D},mn=C,ci=Ve,$i=D,Gn=Ct;if(x0(Fe))try{e(7,C=oe(Fe.text)),e(15,D=Fe.text),e(18,Ct=!1),e(16,Te=void 0)}catch(ai){try{e(7,C=oe(Kd(Fe.text))),e(15,D=Fe.text),e(18,Ct=!0),e(16,Te=void 0)}catch{e(7,C=void 0),e(15,D=B.text),e(18,Ct=!1),e(16,Te=lk(D,ai.message||ai.toString()))}}else e(7,C=Fe.json),e(15,D=void 0),e(18,Ct=!1),e(16,Te=void 0);Ze(C),Ve.sortedColumn&&e(10,Ve=nt(nt({},Ve),{},{sortedColumn:void 0})),Ri({previousJson:mn,previousState:ci,previousText:$i,previousTextIsRepaired:Gn}),Xr(ln,null)}}(B),896&t.$$.dirty[0]|524288&t.$$.dirty[1]&&e(9,We=ao(C)?function(Fe,At){var Gt,ln=new Set(At.map(dn)),mn=new Set(Fe.map(dn)),ci=He(ln);try{for(ci.s();!(Gt=ci.n()).done;){var $i=Gt.value;mn.has($i)||ln.delete($i)}}catch(kr){ci.e(kr)}finally{ci.f()}var Gn,ai=He(mn);try{for(ai.s();!(Gn=ai.n()).done;){var ni=Gn.value;ln.has(ni)||ln.add(ni)}}catch(kr){ai.e(kr)}finally{ai.f()}return ui(ln).map(Zu)}(function(Fe,At){var Gt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,ln={};Array.isArray(Fe)&&function Jqe(t,n,e){if(t.length1?(t.length-1)/(n-1):t.length,r=0;ret),128&t.$$.dirty[0]|448&t.$$.dirty[2]&&e(22,o=function(Fe,At,Gt,ln,mn){for(var ci=arguments.length>5&&void 0!==arguments[5]?arguments[5]:80,$i=ao(Gt)?Gt.length:0,Gn=function $Ze(t,n){var e=Object.values(t);return Ji(e)?n:e.reduce(function(r,o){return r+o})/e.length}(ln,mn),ai=Fe-ci,ni=At+2*ci,kr=function(xd){return ln[xd]||mn},Fr=0,jo=0;jo0&&(jo-=kr(--Fr));for(var ba=Fr,bd=0;bd0?br(lg({rowIndex:kr.rowIndex,columnIndex:jo-1},ai),!1):ni;Re(Gt),Qo(Gt.focusPath)}if("ArrowRight"===At&&(Fe.preventDefault(),Bi(),Ve.selection)){var ln=function(ai,ni){var kr=fu(ni.focusPath,ai),jo=kr.columnIndex;return jo0?br(lg({rowIndex:Fr-1,columnIndex:kr.columnIndex},ai),!1):ni}(We,Ve.selection);Re(mn),Qo(mn.focusPath)}if("ArrowDown"===At&&(Fe.preventDefault(),Bi(),Ve.selection)){var ci=function(ai,ni,kr){var Fr=fu(kr.focusPath,ni),jo=Fr.rowIndex;return jo1?" (".concat(t[18].length,")"):""),onClose:t[23]}}),h=new Qme({props:{mode:Bn(t[18]).mode,content:Bn(t[18]).content,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[6],escapeUnicodeCharacters:t[7],flattenColumns:t[8],parser:t[9],parseMemoizeOne:t[20],validator:t[10],validationParser:t[11],pathParser:t[12],insideModal:!0,onError:t[26],onChange:t[24],onChangeMode:t[25],onRenderValue:t[13],onClassName:t[14],onFocus:fh,onBlur:fh,onRenderMenu:t[15],onSortModal:t[16],onTransformModal:t[17],onJSONEditorModal:t[27]}});var C=t[19]&&Zme(t),D=t[18].length>1&&ege(t);function E(j,U){return j[0]?est:tst}var B=E(t),z=B(t);return{c:function(){n=De("div"),gt(e.$$.fragment),i=rt(),r=De("div"),(o=De("div")).innerHTML='
    Path
    ',s=rt(),a=De("input"),l=rt(),(c=De("div")).innerHTML='
    Contents
    ',u=rt(),d=De("div"),gt(h.$$.fragment),f=rt(),p=De("div"),C&&C.c(),m=rt(),D&&D.c(),g=rt(),z.c(),R(o,"class","jse-label svelte-1hibiw3"),R(a,"class","jse-path svelte-1hibiw3"),R(a,"type","text"),a.readOnly=!0,R(a,"title","Selected path"),a.value=t[21],R(c,"class","jse-label svelte-1hibiw3"),R(d,"class","jse-modal-inline-editor svelte-1hibiw3"),R(p,"class","jse-actions svelte-1hibiw3"),R(r,"class","jse-modal-contents svelte-1hibiw3"),R(n,"class","jse-modal jse-jsoneditor-modal svelte-1hibiw3")},m:function(j,U){$e(j,n,U),pt(e,n,null),me(n,i),me(n,r),me(r,o),me(r,s),me(r,a),me(r,l),me(r,c),me(r,u),me(r,d),pt(h,d,null),me(r,f),me(r,p),C&&C.m(p,null),me(p,m),D&&D.m(p,null),me(p,g),z.m(p,null),v=!0,y||(b=Ea(Nk.call(null,n,t[23])),y=!0)},p:function(j,U){var G={};262144&U[0]&&(G.title="Edit nested content "+(j[18].length>1?" (".concat(j[18].length,")"):"")),e.$set(G),(!v||2097152&U[0]&&a.value!==j[21])&&(a.value=j[21]);var X={};262144&U[0]&&(X.mode=Bn(j[18]).mode),262144&U[0]&&(X.content=Bn(j[18]).content),1&U[0]&&(X.readOnly=j[0]),2&U[0]&&(X.indentation=j[1]),4&U[0]&&(X.tabSize=j[2]),32&U[0]&&(X.statusBar=j[5]),8&U[0]&&(X.mainMenuBar=j[3]),16&U[0]&&(X.navigationBar=j[4]),64&U[0]&&(X.escapeControlCharacters=j[6]),128&U[0]&&(X.escapeUnicodeCharacters=j[7]),256&U[0]&&(X.flattenColumns=j[8]),512&U[0]&&(X.parser=j[9]),1048576&U[0]&&(X.parseMemoizeOne=j[20]),1024&U[0]&&(X.validator=j[10]),2048&U[0]&&(X.validationParser=j[11]),4096&U[0]&&(X.pathParser=j[12]),8192&U[0]&&(X.onRenderValue=j[13]),16384&U[0]&&(X.onClassName=j[14]),32768&U[0]&&(X.onRenderMenu=j[15]),65536&U[0]&&(X.onSortModal=j[16]),131072&U[0]&&(X.onTransformModal=j[17]),h.$set(X),j[19]?C?C.p(j,U):((C=Zme(j)).c(),C.m(p,m)):C&&(C.d(1),C=null),j[18].length>1?D?(D.p(j,U),262144&U[0]&&Q(D,1)):((D=ege(j)).c(),Q(D,1),D.m(p,g)):D&&(Ht(),fe(D,1,1,function(){D=null}),Ut()),B===(B=E(j))&&z?z.p(j,U):(z.d(1),(z=B(j))&&(z.c(),z.m(p,null)))},i:function(j){v||(Q(e.$$.fragment,j),Q(h.$$.fragment,j),Q(D),v=!0)},o:function(j){fe(e.$$.fragment,j),fe(h.$$.fragment,j),fe(D),v=!1},d:function(j){j&&Be(n),mt(e),mt(h),C&&C.d(),D&&D.d(),z.d(),y=!1,b()}}}function tge(t){t.focus()}function ist(t,n,e){var i,r,o,s=Ma("jsoneditor:JSONEditorModal"),a=n.content,l=n.path,c=n.onPatch,u=n.readOnly,d=n.indentation,h=n.tabSize,f=n.mainMenuBar,p=n.navigationBar,m=n.statusBar,g=n.escapeControlCharacters,v=n.escapeUnicodeCharacters,y=n.flattenColumns,b=n.parser,C=n.validator,D=n.validationParser,E=n.pathParser,B=n.onRenderValue,z=n.onClassName,j=n.onRenderMenu,U=n.onSortModal,G=n.onTransformModal,X=Aa("simple-modal").close,oe=[{mode:W(a),content:a,relativePath:l}],P=void 0;function W(H){return vP(H)&&ao(H.json)?Uo.table:Uo.tree}function J(H){s("handleChange",H);var pe=nt(nt({},Bn(oe)),{},{content:H});e(18,oe=[].concat(ui(tr(oe)),[pe]))}return t.$$set=function(H){"content"in H&&e(28,a=H.content),"path"in H&&e(29,l=H.path),"onPatch"in H&&e(30,c=H.onPatch),"readOnly"in H&&e(0,u=H.readOnly),"indentation"in H&&e(1,d=H.indentation),"tabSize"in H&&e(2,h=H.tabSize),"mainMenuBar"in H&&e(3,f=H.mainMenuBar),"navigationBar"in H&&e(4,p=H.navigationBar),"statusBar"in H&&e(5,m=H.statusBar),"escapeControlCharacters"in H&&e(6,g=H.escapeControlCharacters),"escapeUnicodeCharacters"in H&&e(7,v=H.escapeUnicodeCharacters),"flattenColumns"in H&&e(8,y=H.flattenColumns),"parser"in H&&e(9,b=H.parser),"validator"in H&&e(10,C=H.validator),"validationParser"in H&&e(11,D=H.validationParser),"pathParser"in H&&e(12,E=H.pathParser),"onRenderValue"in H&&e(13,B=H.onRenderValue),"onClassName"in H&&e(14,z=H.onClassName),"onRenderMenu"in H&&e(15,j=H.onRenderMenu),"onSortModal"in H&&e(16,U=H.onSortModal),"onTransformModal"in H&&e(17,G=H.onTransformModal)},t.$$.update=function(){262144&t.$$.dirty[0]&&e(31,i=oe.flatMap(function(H){return H.relativePath})),1&t.$$.dirty[1]&&e(21,r=Ji(i)?"(whole document)":cu(rc(i))),512&t.$$.dirty[0]&&e(20,o=wb(b.parse))},[u,d,h,f,p,m,g,v,y,b,C,D,E,B,z,j,U,G,oe,P,o,r,function(){if(s("handleApply"),!u)try{e(19,P=void 0);var H=[{op:"replace",path:dn(Bn(oe).relativePath),value:wse(Bn(oe).content,b).json}];if(oe.length>1){var pe={json:ed(wse(oe[oe.length-2].content,b).json,H)};e(18,oe=tr(oe)),J(pe)}else c(H),X()}catch(A){e(19,P=A.toString())}},function(){s("handleClose"),oe.length>1?(e(18,oe=tr(oe)),e(19,P=void 0)):X()},J,function(H){s("handleChangeMode",H);var pe=nt(nt({},Bn(oe)),{},{mode:H});e(18,oe=[].concat(ui(tr(oe)),[pe]))},function(H){e(19,P=H.toString()),console.error(H)},function(H){var pe=H.content,A=H.path;s("handleJSONEditorModal",{content:pe,path:A});var N={mode:W(pe),content:pe,relativePath:A};e(18,oe=[].concat(ui(oe),[N]))},a,l,c,i]}var rst=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ist,nst,Pi,{content:28,path:29,onPatch:30,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,escapeControlCharacters:6,escapeUnicodeCharacters:7,flattenColumns:8,parser:9,validator:10,validationParser:11,pathParser:12,onRenderValue:13,onClassName:14,onRenderMenu:15,onSortModal:16,onTransformModal:17},Zot,[-1,-1]),r}return Ie(e)}();function ost(t,n,e){var i=Aa("simple-modal");return[i.open,i.close]}var sst=function(t){Dt(e,Pn);var n=Tt(e);function e(i){var r;return Oe(this,e),Ln(Fn(r=n.call(this)),i,ost,null,Pi,{open:0,close:1}),r}return Ie(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),e}();function ast(t){_i(t,"svelte-sxaskb",':root{--jse-theme:light;--jse-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,\n Cantarell, "Helvetica Neue", sans-serif;--jse-font-family-mono:consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace;--jse-font-size-mono:14px;--jse-font-size:16px;--jse-font-size-text-mode-search:80%;--jse-line-height:calc(1em + 4px);--jse-indent-size:calc(1em + 4px);--jse-color-picker-button-size:1em;--jse-padding:10px;--jse-theme-color:#3883fa;--jse-theme-color-highlight:#5f9dff;--jse-background-color:#fff;--jse-text-color:#4d4d4d;--jse-text-readonly:#8d8d8d;--jse-text-color-inverse:#fff;--jse-error-color:#ee5341;--jse-warning-color:#fdc539;--jse-main-border:1px solid #d7d7d7;--jse-menu-color:var(--jse-text-color-inverse);--jse-menu-button-size:32px;--jse-modal-background:#f5f5f5;--jse-modal-overlay-background:rgba(0, 0, 0, 0.3);--jse-modal-code-background:rgba(0, 0, 0, 0.05);--jse-modal-theme-color:#707070;--jse-modal-theme-color-highlight:#646464;--jse-tooltip-color:var(--jse-text-color);--jse-tooltip-background:var(--jse-modal-background);--jse-tooltip-border:var(--jse-main-border);--jse-tooltip-action-button-color:var(--jse-text-color-inverse);--jse-tooltip-action-button-background:#4d4d4d;--jse-panel-background:#ebebeb;--jse-panel-color:var(--jse-text-color);--jse-panel-color-readonly:#b2b2b2;--jse-panel-border:var(--jse-main-border);--jse-panel-button-color:inherit;--jse-panel-button-background:transparent;--jse-panel-button-color-highlight:var(--jse-text-color);--jse-panel-button-background-highlight:#e0e0e0;--jse-navigation-bar-background:var(--jse-background-color);--jse-navigation-bar-background-highlight:#e5e5e5;--jse-navigation-bar-dropdown-color:#656565;--jse-context-menu-background:#656565;--jse-context-menu-background-highlight:#7a7a7a;--jse-context-menu-color:var(--jse-text-color-inverse);--jse-context-menu-color-disabled:#9d9d9d;--jse-context-menu-separator-color:#7a7a7a;--jse-context-menu-pointer-hover-background:#b2b2b2;--jse-context-menu-pointer-background:var(--jse-context-menu-background);--jse-context-menu-pointer-background-highlight:var(--jse-context-menu-background-highlight);--jse-context-menu-pointer-color:var(--jse-context-menu-color);--jse-context-menu-pointer-size:calc(1em + 4px);--jse-context-menu-tip-background:rgba(255, 255, 255, 0.2);--jse-context-menu-tip-color:inherit;--jse-key-color:#1a1a1a;--jse-value-color:#1a1a1a;--jse-value-color-number:#ee422e;--jse-value-color-boolean:#ff8c00;--jse-value-color-null:#004ed0;--jse-value-color-string:#008000;--jse-value-color-url:#008000;--jse-delimiter-color:rgba(0, 0, 0, 0.38);--jse-edit-outline:2px solid #656565;--jse-contents-background-color:transparent;--jse-contents-cursor:pointer;--jse-contents-selected-cursor:grab;--jse-selection-background-color:#d3d3d3;--jse-selection-background-inactive-color:#e8e8e8;--jse-hover-background-color:rgba(0, 0, 0, 0.06);--jse-active-line-background-color:rgba(0, 0, 0, 0.06);--jse-search-match-background-color:#99ff7780;--jse-collapsed-items-background-color:#f5f5f5;--jse-collapsed-items-selected-background-color:#c2c2c2;--jse-collapsed-items-link-color:rgba(0, 0, 0, 0.38);--jse-collapsed-items-link-color-highlight:#ee5341;--jse-search-match-color:#ffe665;--jse-search-match-outline:1px solid #ffd700;--jse-search-match-active-color:#ffd700;--jse-search-match-active-outline:1px solid #e1be00;--jse-tag-background:rgba(0, 0, 0, 0.2);--jse-tag-color:var(--jse-text-color-inverse);--jse-table-header-background:#f5f5f5;--jse-table-header-background-highlight:#e8e8e8;--jse-table-row-odd-background:rgba(0, 0, 0, 0.05);--jse-controls-box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.24);--jse-input-background:var(--jse-background-color);--jse-input-background-readonly:transparent;--jse-input-border:1px solid #d8dbdf;--jse-input-border-focus:1px solid var(--jse-theme-color);--jse-input-radius:3px;--jse-button-background:#e0e0e0;--jse-button-background-highlight:#e7e7e7;--jse-button-color:var(--jse-text-color);--jse-button-primary-background:var(--jse-theme-color);--jse-button-primary-background-highlight:var(--jse-theme-color-highlight);--jse-button-primary-background-disabled:#9d9d9d;--jse-button-primary-color:var(--jse-text-color-inverse);--jse-button-secondary-background:#d3d3d3;--jse-button-secondary-background-highlight:#e1e1e1;--jse-button-secondary-background-disabled:#9d9d9d;--jse-button-secondary-color:var(--jse-text-color);--jse-a-color:#156fc5;--jse-a-color-highlight:#0f508d;--jse-message-error-background:var(--jse-error-color);--jse-message-error-color:var(--jse-text-color-inverse);--jse-message-warning-background:#ffde5c;--jse-message-warning-color:var(--jse-text-color);--jse-message-success-background:#9ac45d;--jse-message-success-color:var(--jse-text-color-inverse);--jse-message-info-background:#4f91ff;--jse-message-info-color:var(--jse-text-color-inverse);--jse-message-action-background:rgba(255, 255, 255, 0.2);--jse-message-action-background-highlight:rgba(255, 255, 255, 0.3);--item-is-active-bg:#3883fa;--border:1px solid #d8dbdf;--border-radius:3px;--background:#fff;--padding:0 10px;--multi-select-padding:0 10px;--jse-color-picker-background:var(--jse-panel-background);--jse-color-picker-border-box-shadow:#cbcbcb 0 0 0 1px}.jse-main.svelte-sxaskb{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family);font-size:var(--jse-font-size);line-height:normal;position:relative;display:flex;flex-direction:row}')}function nge(t){var n,e;return n=new Qme({props:{mode:t[1],content:t[0],readOnly:t[2],indentation:t[3],tabSize:t[4],statusBar:t[7],mainMenuBar:t[5],navigationBar:t[6],escapeControlCharacters:t[8],escapeUnicodeCharacters:t[9],flattenColumns:t[10],parser:t[11],parseMemoizeOne:t[24],validator:t[12],validationParser:t[13],pathParser:t[14],insideModal:!1,onError:t[18],onChange:t[25],onChangeMode:t[28],onRenderValue:t[15],onClassName:t[16],onFocus:t[26],onBlur:t[27],onRenderMenu:t[17],onSortModal:t[30],onTransformModal:t[29],onJSONEditorModal:t[31]}}),t[56](n),{c:function(){gt(n.$$.fragment)},m:function(r,o){pt(n,r,o),e=!0},p:function(r,o){var s={};2&o[0]&&(s.mode=r[1]),1&o[0]&&(s.content=r[0]),4&o[0]&&(s.readOnly=r[2]),8&o[0]&&(s.indentation=r[3]),16&o[0]&&(s.tabSize=r[4]),128&o[0]&&(s.statusBar=r[7]),32&o[0]&&(s.mainMenuBar=r[5]),64&o[0]&&(s.navigationBar=r[6]),256&o[0]&&(s.escapeControlCharacters=r[8]),512&o[0]&&(s.escapeUnicodeCharacters=r[9]),1024&o[0]&&(s.flattenColumns=r[10]),2048&o[0]&&(s.parser=r[11]),16777216&o[0]&&(s.parseMemoizeOne=r[24]),4096&o[0]&&(s.validator=r[12]),8192&o[0]&&(s.validationParser=r[13]),16384&o[0]&&(s.pathParser=r[14]),262144&o[0]&&(s.onError=r[18]),32768&o[0]&&(s.onRenderValue=r[15]),65536&o[0]&&(s.onClassName=r[16]),131072&o[0]&&(s.onRenderMenu=r[17]),n.$set(s)},i:function(r){e||(Q(n.$$.fragment,r),e=!0)},o:function(r){fe(n.$$.fragment,r),e=!1},d:function(r){t[56](null),mt(n,r)}}}function lst(t){var n,e,i,r,o,s=t[19];function a(u){t[55](u)}var l={};void 0!==t[22]&&(l.open=t[22]),n=new sst({props:l}),Xi.push(function(){return Xu(n,"open",a)});var c=nge(t);return{c:function(){gt(n.$$.fragment),i=rt(),r=De("div"),c.c(),R(r,"class","jse-main svelte-sxaskb"),Nt(r,"jse-focus",t[20])},m:function(u,d){pt(n,u,d),$e(u,i,d),$e(u,r,d),c.m(r,null),o=!0},p:function(u,d){var h={};!e&&4194304&d[0]&&(e=!0,h.open=u[22],Yu(function(){return e=!1})),n.$set(h),524288&d[0]&&Pi(s,s=u[19])?(Ht(),fe(c,1,1,Bt),Ut(),(c=nge(u)).c(),Q(c,1),c.m(r,null)):c.p(u,d),(!o||1048576&d[0])&&Nt(r,"jse-focus",u[20])},i:function(u){o||(Q(n.$$.fragment,u),Q(c),o=!0)},o:function(u){fe(n.$$.fragment,u),fe(c),o=!1},d:function(u){mt(n,u),u&&Be(i),u&&Be(r),c.d(u)}}}function cst(t){var n,e;return n=new jZ({props:{closeOnEsc:!1,$$slots:{default:[lst]},$$scope:{ctx:t}}}),{c:function(){gt(n.$$.fragment)},m:function(i,r){pt(n,i,r),e=!0},p:function(i,r){var o={};25165823&r[0]|268435456&r[1]&&(o.$$scope={dirty:r,ctx:i}),n.$set(o)},i:function(i){e||(Q(n.$$.fragment,i),e=!0)},o:function(i){fe(n.$$.fragment,i),e=!1},d:function(i){mt(n,i)}}}function ust(t){for(var n,e,i,r=[{show:null===(n=t[23])||void 0===n?void 0:n.component},LZ,{closeOnEsc:!1}],o={$$slots:{default:[cst]},$$scope:{ctx:t}},s=0;s1)return!1;var p=this._items[0];return""===p||'""'===p}},{key:"str",get:function(){var p;return null!==(p=this._str)&&void 0!==p?p:this._str=this._items.reduce(function(m,g){return"".concat(m).concat(g)},"")}},{key:"names",get:function(){var p;return null!==(p=this._names)&&void 0!==p?p:this._names=this._items.reduce(function(m,g){return g instanceof e&&(m[g.str]=(m[g.str]||0)+1),m},{})}}]),f}(n);function r(d){for(var h=[d[0]],f=0,p=arguments.length,m=new Array(p>1?p-1:0),g=1;g1?p-1:0),g=1;g0&&void 0!==arguments[0]?arguments[0]:{},u=c.prefixes,d=c.parent;Oe(this,l),this._names={},this._prefixes=u,this._parent=d}return Ie(l,[{key:"toName",value:function(c){return c instanceof e.Name?c:this.name(c)}},{key:"name",value:function(c){return new e.Name(this._newName(c))}},{key:"_newName",value:function(c){var u=this._names[c]||this._nameGroup(c);return"".concat(c).concat(u.index++)}},{key:"_nameGroup",value:function(c){var u,d;if(null!==(d=null===(u=this._parent)||void 0===u?void 0:u._prefixes)&&void 0!==d&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error('CodeGen: prefix "'.concat(c,'" is not allowed in this scope'));return this._names[c]={prefix:c,index:0}}}]),l}();t.Scope=r;var o=function(l){Dt(u,l);var c=Tt(u);function u(d,h){var f;return Oe(this,u),(f=c.call(this,h)).prefix=d,f}return Ie(u,[{key:"setValue",value:function(d,h){var f=h.property,p=h.itemIndex;this.value=d,this.scopePath=(0,e._)(Qq||(Qq=Pe([".","[","]"])),new e.Name(f),p)}}]),u}(e.Name);t.ValueScopeName=o;var s=(0,e._)(Zq||(Zq=Pe(["\n"],["\\n"]))),a=function(l){Dt(u,l);var c=Tt(u);function u(d){var h;return Oe(this,u),(h=c.call(this,d))._values={},h._scope=d.scope,h.opts=nt(nt({},d),{},{_n:d.lines?s:e.nil}),h}return Ie(u,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(d){return new o(d,this._newName(d))}},{key:"value",value:function(d,h){var f;if(void 0===h.ref)throw new Error("CodeGen: ref must be passed in value");var p=this.toName(d),m=p.prefix,g=null!==(f=h.key)&&void 0!==f?f:h.ref,v=this._values[m];if(v){var y=v.get(g);if(y)return y}else v=this._values[m]=new Map;v.set(g,p);var b=this._scope[m]||(this._scope[m]=[]),C=b.length;return b[C]=h.ref,p.setValue(h,{property:m,itemIndex:C}),p}},{key:"getValue",value:function(d,h){var f=this._values[d];if(f)return f.get(h)}},{key:"scopeRefs",value:function(d){return this._reduceValues(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values,function(f){if(void 0===f.scopePath)throw new Error('CodeGen: name "'.concat(f,'" has no value'));return(0,e._)(eY||(eY=Pe(["","",""])),d,f.scopePath)})}},{key:"scopeCode",value:function(){return this._reduceValues(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,function(p){if(void 0===p.value)throw new Error('CodeGen: name "'.concat(p,'" has no value'));return p.value.code},arguments.length>1?arguments[1]:void 0,arguments.length>2?arguments[2]:void 0)}},{key:"_reduceValues",value:function(d,h){var f=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},m=arguments.length>3?arguments[3]:void 0,g=e.nil,v=function(b){var C=d[b];if(!C)return"continue";var D=p[b]=p[b]||new Map;C.forEach(function(E){if(!D.has(E)){D.set(E,n.Started);var B=h(E);if(B){var z=f.opts.es5?t.varKinds.var:t.varKinds.const;g=(0,e._)(tY||(tY=Pe(["",""," "," = ",";",""])),g,z,E,B,f.opts._n)}else{if(!(B=m?.(E)))throw new i(E);g=(0,e._)(nY||(nY=Pe(["","","",""])),g,B,f.opts._n)}D.set(E,n.Completed)}})};for(var y in d)v(y);return g}}]),u}(r);t.ValueScope=a}(pge)),pge}function Tr(){return fge||(fge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;var n=nT(),e=mge(),i=nT();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var r=mge();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};var o=function(){function F(){Oe(this,F)}return Ie(F,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(q,V){return this}}]),F}(),s=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).varKind=ce,Te.name=ve,Te.rhs=je,Te}return Ie(V,[{key:"render",value:function(ce){var je=ce._n,Te=ce.es5?e.varKinds.var:this.varKind,et=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(Te," ").concat(this.name).concat(et,";")+je}},{key:"optimizeNames",value:function(ce,ve){if(ce[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,ce,ve)),this}},{key:"names",get:function(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}]),V}(o),a=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).lhs=ce,Te.rhs=ve,Te.sideEffects=je,Te}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+ve}},{key:"optimizeNames",value:function(ce,ve){if(!(this.lhs instanceof n.Name)||ce[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,ce,ve),this}},{key:"names",get:function(){return oe(this.lhs instanceof n.Name?{}:nt({},this.lhs.names),this.rhs)}}]),V}(o),l=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this,ce,je,Te)).op=ve,et}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+ve}}]),V}(a),c=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).label=ce,ve.names={},ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.label,":")+ve}}]),V}(o),u=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).label=ce,ve.names={},ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n,je=this.label?" ".concat(this.label):"";return"break".concat(je,";")+ve}}]),V}(o),d=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).error=ce,ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"throw ".concat(this.error,";")+ve}},{key:"names",get:function(){return this.error.names}}]),V}(o),h=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).code=ce,ve}return Ie(V,[{key:"render",value:function(ce){var ve=ce._n;return"".concat(this.code,";")+ve}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(ce,ve){return this.code=P(this.code,ce,ve),this}},{key:"names",get:function(){return this.code instanceof n._CodeOrName?this.code.names:{}}}]),V}(o),f=function(F){Dt(V,F);var q=Tt(V);function V(){var ce,ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Oe(this,V),(ce=q.call(this)).nodes=ve,ce}return Ie(V,[{key:"render",value:function(ce){return this.nodes.reduce(function(ve,je){return ve+je.render(ce)},"")}},{key:"optimizeNodes",value:function(){for(var ce=this.nodes,ve=ce.length;ve--;){var je=ce[ve].optimizeNodes();Array.isArray(je)?ce.splice.apply(ce,[ve,1].concat(ui(je))):je?ce[ve]=je:ce.splice(ve,1)}return ce.length>0?this:void 0}},{key:"optimizeNames",value:function(ce,ve){for(var je=this.nodes,Te=je.length;Te--;){var et=je[Te];et.optimizeNames(ce,ve)||(W(ce,et.names),je.splice(Te,1))}return je.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce(function(ce,ve){return X(ce,ve.names)},{})}}]),V}(o),p=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"{"+ce._n+_r(er(V.prototype),"render",this).call(this,ce)+"}"+ce._n}}]),V}(f),m=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(f),g=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(p);g.kind="else";var v=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve){var je;return Oe(this,V),(je=q.call(this,ve)).condition=ce,je}return Ie(V,[{key:"render",value:function(ce){var ve="if(".concat(this.condition,")")+_r(er(V.prototype),"render",this).call(this,ce);return this.else&&(ve+="else "+this.else.render(ce)),ve}},{key:"optimizeNodes",value:function(){_r(er(V.prototype),"optimizeNodes",this).call(this);var ce=this.condition;if(!0===ce)return this.nodes;var ve=this.else;if(ve){var je=ve.optimizeNodes();ve=this.else=Array.isArray(je)?new g(je):je}return ve?!1===ce?ve instanceof V?ve:ve.nodes:this.nodes.length?this:new V(J(ce),ve instanceof V?[ve]:ve.nodes):!1!==ce&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(ce,ve){var je;if(this.else=null===(je=this.else)||void 0===je?void 0:je.optimizeNames(ce,ve),_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve)||this.else)return this.condition=P(this.condition,ce,ve),this}},{key:"names",get:function(){var ce=_r(er(V.prototype),"names",this);return oe(ce,this.condition),this.else&&X(ce,this.else.names),ce}}]),V}(p);v.kind="if";var y=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V)}(p);y.kind="for";var b=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).iteration=ce,ve}return Ie(V,[{key:"render",value:function(ce){return"for(".concat(this.iteration,")")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"optimizeNames",value:function(ce,ve){if(_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve))return this.iteration=P(this.iteration,ce,ve),this}},{key:"names",get:function(){return X(_r(er(V.prototype),"names",this),this.iteration.names)}}]),V}(y),C=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this)).varKind=ce,et.name=ve,et.from=je,et.to=Te,et}return Ie(V,[{key:"render",value:function(ce){var je=this.name,Te=this.from,et=this.to;return"for(".concat(ce.es5?e.varKinds.var:this.varKind," ").concat(je,"=").concat(Te,"; ").concat(je,"<").concat(et,"; ").concat(je,"++)")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"names",get:function(){var ce=oe(_r(er(V.prototype),"names",this),this.from);return oe(ce,this.to)}}]),V}(y),D=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je,Te){var et;return Oe(this,V),(et=q.call(this)).loop=ce,et.varKind=ve,et.name=je,et.iterable=Te,et}return Ie(V,[{key:"render",value:function(ce){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+_r(er(V.prototype),"render",this).call(this,ce)}},{key:"optimizeNames",value:function(ce,ve){if(_r(er(V.prototype),"optimizeNames",this).call(this,ce,ve))return this.iterable=P(this.iterable,ce,ve),this}},{key:"names",get:function(){return X(_r(er(V.prototype),"names",this),this.iterable.names)}}]),V}(y),E=function(F){Dt(V,F);var q=Tt(V);function V(ce,ve,je){var Te;return Oe(this,V),(Te=q.call(this)).name=ce,Te.args=ve,Te.async=je,Te}return Ie(V,[{key:"render",value:function(ce){return"".concat(this.async?"async ":"","function ").concat(this.name,"(").concat(this.args,")")+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);E.kind="func";var B=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"return "+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(f);B.kind="return";var z=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){var ve="try"+_r(er(V.prototype),"render",this).call(this,ce);return this.catch&&(ve+=this.catch.render(ce)),this.finally&&(ve+=this.finally.render(ce)),ve}},{key:"optimizeNodes",value:function(){var ce,ve;return _r(er(V.prototype),"optimizeNodes",this).call(this),null===(ce=this.catch)||void 0===ce||ce.optimizeNodes(),null===(ve=this.finally)||void 0===ve||ve.optimizeNodes(),this}},{key:"optimizeNames",value:function(ce,ve){var je,Te;return _r(er(V.prototype),"optimizeNames",this).call(this,ce,ve),null===(je=this.catch)||void 0===je||je.optimizeNames(ce,ve),null===(Te=this.finally)||void 0===Te||Te.optimizeNames(ce,ve),this}},{key:"names",get:function(){var ce=_r(er(V.prototype),"names",this);return this.catch&&X(ce,this.catch.names),this.finally&&X(ce,this.finally.names),ce}}]),V}(p),j=function(F){Dt(V,F);var q=Tt(V);function V(ce){var ve;return Oe(this,V),(ve=q.call(this)).error=ce,ve}return Ie(V,[{key:"render",value:function(ce){return"catch(".concat(this.error,")")+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);j.kind="catch";var U=function(F){Dt(V,F);var q=Tt(V);function V(){return Oe(this,V),q.apply(this,arguments)}return Ie(V,[{key:"render",value:function(ce){return"finally"+_r(er(V.prototype),"render",this).call(this,ce)}}]),V}(p);U.kind="finally";var G=function(){function F(q){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oe(this,F),this._values={},this._blockStarts=[],this._constants={},this.opts=nt(nt({},V),{},{_n:V.lines?"\n":""}),this._extScope=q,this._scope=new e.Scope({parent:q}),this._nodes=[new m]}return Ie(F,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(q){return this._scope.name(q)}},{key:"scopeName",value:function(q){return this._extScope.name(q)}},{key:"scopeValue",value:function(q,V){var ce=this._extScope.value(q,V);return(this._values[ce.prefix]||(this._values[ce.prefix]=new Set)).add(ce),ce}},{key:"getScopeValue",value:function(q,V){return this._extScope.getValue(q,V)}},{key:"scopeRefs",value:function(q){return this._extScope.scopeRefs(q,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(q,V,ce,ve){var je=this._scope.toName(V);return void 0!==ce&&ve&&(this._constants[je.str]=ce),this._leafNode(new s(q,je,ce)),je}},{key:"const",value:function(q,V,ce){return this._def(e.varKinds.const,q,V,ce)}},{key:"let",value:function(q,V,ce){return this._def(e.varKinds.let,q,V,ce)}},{key:"var",value:function(q,V,ce){return this._def(e.varKinds.var,q,V,ce)}},{key:"assign",value:function(q,V,ce){return this._leafNode(new a(q,V,ce))}},{key:"add",value:function(q,V){return this._leafNode(new l(q,t.operators.ADD,V))}},{key:"code",value:function(q){return"function"==typeof q?q():q!==n.nil&&this._leafNode(new h(q)),this}},{key:"object",value:function(){for(var q=["{"],V=arguments.length,ce=new Array(V),ve=0;ve1&&q.push(","),q.push(We),(We!==st||this.opts.es5)&&(q.push(":"),(0,n.addCodeArg)(q,st))}return q.push("}"),new n._Code(q)}},{key:"if",value:function(q,V,ce){if(this._blockNode(new v(q)),V&&ce)this.code(V).else().code(ce).endIf();else if(V)this.code(V).endIf();else if(ce)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(q){return this._elseNode(new v(q))}},{key:"else",value:function(){return this._elseNode(new g)}},{key:"endIf",value:function(){return this._endBlockNode(v,g)}},{key:"_for",value:function(q,V){return this._blockNode(q),V&&this.code(V).endFor(),this}},{key:"for",value:function(q,V){return this._for(new b(q),V)}},{key:"forRange",value:function(q,V,ce,ve){var je=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?e.varKinds.var:e.varKinds.let,Te=this._scope.toName(q);return this._for(new C(je,Te,V,ce),function(){return ve(Te)})}},{key:"forOf",value:function(q,V,ce){var ve=this,je=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.varKinds.const,Te=this._scope.toName(q);if(this.opts.es5){var et=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)(iY||(iY=Pe(["",".length"])),et),function(We){ve.var(Te,(0,n._)(rY||(rY=Pe(["","[","]"])),et,We)),ce(Te)})}return this._for(new D("of",je,Te,V),function(){return ce(Te)})}},{key:"forIn",value:function(q,V,ce){var ve=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?e.varKinds.var:e.varKinds.const;if(this.opts.ownProperties)return this.forOf(q,(0,n._)(oY||(oY=Pe(["Object.keys(",")"])),V),ce);var je=this._scope.toName(q);return this._for(new D("in",ve,je,V),function(){return ce(je)})}},{key:"endFor",value:function(){return this._endBlockNode(y)}},{key:"label",value:function(q){return this._leafNode(new c(q))}},{key:"break",value:function(q){return this._leafNode(new u(q))}},{key:"return",value:function(q){var V=new B;if(this._blockNode(V),this.code(q),1!==V.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(B)}},{key:"try",value:function(q,V,ce){if(!V&&!ce)throw new Error('CodeGen: "try" without "catch" and "finally"');var ve=new z;if(this._blockNode(ve),this.code(q),V){var je=this.name("e");this._currNode=ve.catch=new j(je),V(je)}return ce&&(this._currNode=ve.finally=new U,this.code(ce)),this._endBlockNode(j,U)}},{key:"throw",value:function(q){return this._leafNode(new d(q))}},{key:"block",value:function(q,V){return this._blockStarts.push(this._nodes.length),q&&this.code(q).endBlock(V),this}},{key:"endBlock",value:function(q){var V=this._blockStarts.pop();if(void 0===V)throw new Error("CodeGen: not in self-balancing block");var ce=this._nodes.length-V;if(ce<0||void 0!==q&&ce!==q)throw new Error("CodeGen: wrong number of nodes: ".concat(ce," vs ").concat(q," expected"));return this._nodes.length=V,this}},{key:"func",value:function(q){var ve=arguments.length>3?arguments[3]:void 0;return this._blockNode(new E(q,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.nil,arguments.length>2?arguments[2]:void 0)),ve&&this.code(ve).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(E)}},{key:"optimize",value:function(){for(var q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;q-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(q){return this._currNode.nodes.push(q),this}},{key:"_blockNode",value:function(q){this._currNode.nodes.push(q),this._nodes.push(q)}},{key:"_endBlockNode",value:function(q,V){var ce=this._currNode;if(ce instanceof q||V&&ce instanceof V)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(V?"".concat(q.kind,"/").concat(V.kind):q.kind,'"'))}},{key:"_elseNode",value:function(q){var V=this._currNode;if(!(V instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=q,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var q=this._nodes;return q[q.length-1]},set:function(q){var V=this._nodes;V[V.length-1]=q}}]),F}();function X(F,q){for(var V in q)F[V]=(F[V]||0)+(q[V]||0);return F}function oe(F,q){return q instanceof n._CodeOrName?X(F,q.names):F}function P(F,q,V){return F instanceof n.Name?ce(F):(ve=F)instanceof n._Code&&ve._items.some(function(je){return je instanceof n.Name&&1===q[je.str]&&void 0!==V[je.str]})?new n._Code(F._items.reduce(function(ve,je){return je instanceof n.Name&&(je=ce(je)),je instanceof n._Code?ve.push.apply(ve,ui(je._items)):ve.push(je),ve},[])):F;var ve;function ce(ve){var je=V[ve.str];return void 0===je||1!==q[ve.str]?ve:(delete q[ve.str],je)}}function W(F,q){for(var V in q)F[V]=(F[V]||0)-(q[V]||0)}function J(F){return"boolean"==typeof F||"number"==typeof F||null===F?!F:(0,n._)(sY||(sY=Pe(["!",""])),N(F))}t.CodeGen=G,t.not=J;var H=A(t.operators.AND);t.and=function(){for(var F=arguments.length,q=new Array(F),V=0;V1&&void 0!==arguments[1]?arguments[1]:f.schema;if(f.opts.strictSchema&&"boolean"!=typeof p){var v=f.self.RULES.keywords;for(var y in p)v[y]||h(f,'unknown keyword: "'.concat(y,'"'))}}function r(f,p){if("boolean"==typeof f)return!f;for(var m in f)if(p[m])return!0;return!1}function o(f){return"number"==typeof f?"".concat(f):f.replace(/~/g,"~0").replace(/\//g,"~1")}function s(f){return f.replace(/~1/g,"/").replace(/~0/g,"~")}function a(f){var p=f.mergeNames,m=f.mergeToName,g=f.mergeValues,v=f.resultToName;return function(y,b,C,D){var E=void 0===C?b:C instanceof n.Name?(b instanceof n.Name?p(y,b,C):m(y,b,C),C):b instanceof n.Name?(m(y,C,b),b):g(b,C);return D!==n.Name||E instanceof n.Name?E:v(y,E)}}function l(f,p){if(!0===p)return f.var("props",!0);var m=f.var("props",(0,n._)(xY||(xY=Pe(["{}"]))));return void 0!==p&&c(f,m,p),m}function c(f,p,m){Object.keys(m).forEach(function(g){return f.assign((0,n._)(wY||(wY=Pe(["","",""])),p,(0,n.getProperty)(g)),!0)})}t.toHash=function(f){var p,m={},g=He(f);try{for(g.s();!(p=g.n()).done;)m[p.value]=!0}catch(v){g.e(v)}finally{g.f()}return m},t.alwaysValidSchema=function(f,p){return"boolean"==typeof p?p:0===Object.keys(p).length||(i(f,p),!r(p,f.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=r,t.schemaHasRulesButRef=function(f,p){if("boolean"==typeof f)return!f;for(var m in f)if("$ref"!==m&&p.all[m])return!0;return!1},t.schemaRefOrVal=function(f,p,m,g){var v=f.topSchemaRef,y=f.schemaPath;if(!g){if("number"==typeof p||"boolean"==typeof p)return p;if("string"==typeof p)return(0,n._)(cY||(cY=Pe(["",""])),p)}return(0,n._)(uY||(uY=Pe(["","","",""])),v,y,(0,n.getProperty)(m))},t.unescapeFragment=function(f){return s(decodeURIComponent(f))},t.escapeFragment=function(f){return encodeURIComponent(o(f))},t.escapeJsonPointer=o,t.unescapeJsonPointer=s,t.eachItem=function(f,p){if(Array.isArray(f)){var m,g=He(f);try{for(g.s();!(m=g.n()).done;)p(m.value)}catch(v){g.e(v)}finally{g.f()}}else p(f)},t.mergeEvaluated={props:a({mergeNames:function(f,p,m){return f.if((0,n._)(dY||(dY=Pe([""," !== true && "," !== undefined"])),m,p),function(){f.if((0,n._)(hY||(hY=Pe([""," === true"])),p),function(){return f.assign(m,!0)},function(){return f.assign(m,(0,n._)(fY||(fY=Pe([""," || {}"])),m)).code((0,n._)(pY||(pY=Pe(["Object.assign(",", ",")"])),m,p))})})},mergeToName:function(f,p,m){return f.if((0,n._)(mY||(mY=Pe([""," !== true"])),m),function(){!0===p?f.assign(m,!0):(f.assign(m,(0,n._)(gY||(gY=Pe([""," || {}"])),m)),c(f,m,p))})},mergeValues:function(f,p){return!0===f||nt(nt({},f),p)},resultToName:l}),items:a({mergeNames:function(f,p,m){return f.if((0,n._)(vY||(vY=Pe([""," !== true && "," !== undefined"])),m,p),function(){return f.assign(m,(0,n._)(yY||(yY=Pe([""," === true ? true : "," > "," ? "," : ",""])),p,m,p,m,p))})},mergeToName:function(f,p,m){return f.if((0,n._)(_Y||(_Y=Pe([""," !== true"])),m),function(){return f.assign(m,!0===p||(0,n._)(bY||(bY=Pe([""," > "," ? "," : ",""])),m,p,m,p))})},mergeValues:function(f,p){return!0===f||Math.max(f,p)},resultToName:function(f,p){return f.var("items",p)}})},t.evaluatedPropsToName=l,t.setEvaluated=c;var u,f,d={};function h(f,p){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.opts.strictSchema;if(m){if(p="strict mode: ".concat(p),!0===m)throw new Error(p);f.self.logger.warn(p)}}t.useFunc=function(f,p){return f.scopeValue("func",{ref:p,code:d[p.code]||(d[p.code]=new e._Code(p.code))})},(f=u=t.Type||(t.Type={}))[f.Num=0]="Num",f[f.Str=1]="Str",t.getErrorPath=function(f,p,m){if(f instanceof n.Name){var g=p===u.Num;return(0,n._)(m?g?CY||(CY=Pe(['"[" + ',' + "]"'])):SY||(SY=Pe(['"[\'" + ',' + "\']"'])):g?kY||(kY=Pe(['"/" + ',""])):DY||(DY=Pe(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),f)}return m?(0,n.getProperty)(f).toString():"/"+o(f)},t.checkStrictMode=h}(zr);var gge,vge,yge,iT={};function Vp(){if(gge)return iT;gge=1,Object.defineProperty(iT,"__esModule",{value:!0});var t=Tr(),n={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return iT.default=n,iT}function rT(){return vge||(vge=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var n=Tr(),e=zr,i=Vp();function r(d,h){var f=d.const("err",h);d.if((0,n._)($Y||($Y=Pe([""," === null"])),i.default.vErrors),function(){return d.assign(i.default.vErrors,(0,n._)(VY||(VY=Pe(["[","]"])),f))},(0,n._)(HY||(HY=Pe(["",".push(",")"])),i.default.vErrors,f)),d.code((0,n._)(UY||(UY=Pe(["","++"])),i.default.errors))}function o(d,h){var f=d.gen,p=d.validateName;d.schemaEnv.$async?f.throw((0,n._)(zY||(zY=Pe(["new ","(",")"])),d.ValidationError,h)):(f.assign((0,n._)(GY||(GY=Pe(["",".errors"])),p),h),f.return(!1))}t.keywordError={message:function(d){var h=d.keyword;return(0,n.str)(TY||(TY=Pe(['must pass "','" keyword validation'])),h)}},t.keyword$DataError={message:function(d){var h=d.keyword,f=d.schemaType;return f?(0,n.str)(EY||(EY=Pe(['"','" keyword must be '," ($data)"])),h,f):(0,n.str)(AY||(AY=Pe(['"','" keyword is invalid ($data)'])),h)}},t.reportError=function(d){var p=arguments.length>3?arguments[3]:void 0,m=d.it,g=m.gen,v=m.compositeRule,y=m.allErrors,b=a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0);p??(v||y)?r(g,b):o(m,(0,n._)(MY||(MY=Pe(["[","]"])),b))},t.reportExtraError=function(d){var p=d.it,g=p.compositeRule,v=p.allErrors;r(p.gen,a(d,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,arguments.length>2?arguments[2]:void 0)),g||v||o(p,i.default.vErrors)},t.resetErrorsCount=function(d,h){d.assign(i.default.errors,h),d.if((0,n._)(OY||(OY=Pe([""," !== null"])),i.default.vErrors),function(){return d.if(h,function(){return d.assign((0,n._)(IY||(IY=Pe(["",".length"])),i.default.vErrors),h)},function(){return d.assign(i.default.vErrors,null)})})},t.extendErrors=function(d){var h=d.gen,f=d.keyword,p=d.schemaValue,m=d.data,g=d.errsCount,v=d.it;if(void 0===g)throw new Error("ajv implementation error");var y=h.name("err");h.forRange("i",g,i.default.errors,function(b){h.const(y,(0,n._)(NY||(NY=Pe(["","[","]"])),i.default.vErrors,b)),h.if((0,n._)(FY||(FY=Pe(["",".instancePath === undefined"])),y),function(){return h.assign((0,n._)(PY||(PY=Pe(["",".instancePath"])),y),(0,n.strConcat)(i.default.instancePath,v.errorPath))}),h.assign((0,n._)(RY||(RY=Pe(["",".schemaPath"])),y),(0,n.str)(jY||(jY=Pe(["","/",""])),v.errSchemaPath,f)),v.opts.verbose&&(h.assign((0,n._)(LY||(LY=Pe(["",".schema"])),y),p),h.assign((0,n._)(BY||(BY=Pe(["",".data"])),y),m))})};var s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function a(d,h,f){return!1===d.it.createErrors?(0,n._)(WY||(WY=Pe(["{}"]))):function(p,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},v=p.gen,y=[l(p.it,g),c(p,g)];return function u(d,h,f){var p=h.params,m=h.message,v=d.data,y=d.schemaValue,b=d.it,C=b.opts,D=b.propertyName,E=b.topSchemaRef,B=b.schemaPath;f.push([s.keyword,d.keyword],[s.params,"function"==typeof p?p(d):p||(0,n._)(JY||(JY=Pe(["{}"])))]),C.messages&&f.push([s.message,"function"==typeof m?m(d):m]),C.verbose&&f.push([s.schema,y],[s.parentSchema,(0,n._)(KY||(KY=Pe(["","",""])),E,B)],[i.default.data,v]),D&&f.push([s.propertyName,D])}(p,m,y),v.object.apply(v,y)}(d,h,f)}function l(d,h){var f=d.errorPath,p=h.instancePath,m=p?(0,n.str)(qY||(qY=Pe(["","",""])),f,(0,e.getErrorPath)(p,e.Type.Str)):f;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,m)]}function c(d,h){var f=d.keyword,p=d.it.errSchemaPath,m=h.schemaPath,g=h.parentSchema?p:(0,n.str)(YY||(YY=Pe(["","/",""])),p,f);return m&&(g=(0,n.str)(XY||(XY=Pe(["","",""])),g,(0,e.getErrorPath)(m,e.Type.Str))),[s.schemaPath,g]}}(cge)),cge}var ex={},_g={};Object.defineProperty(_g,"__esModule",{value:!0}),_g.getRules=_g.isJSONType=void 0;var bst=new Set(["string","number","integer","boolean","null","object","array"]);_g.isJSONType=function(t){return"string"==typeof t&&bst.has(t)},_g.getRules=function(){var t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:nt(nt({},t),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}};var _ge,xf={};function bge(){if(_ge)return xf;function t(e,i){return i.rules.some(function(r){return n(e,r)})}function n(e,i){var r;return void 0!==e[i.keyword]||(null===(r=i.definition.implements)||void 0===r?void 0:r.some(function(o){return void 0!==e[o]}))}return _ge=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.shouldUseRule=xf.shouldUseGroup=xf.schemaHasRulesForType=void 0,xf.schemaHasRulesForType=function(e,i){var o=e.self.RULES.types[i];return o&&!0!==o&&t(e.schema,o)},xf.shouldUseGroup=t,xf.shouldUseRule=n,xf}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var n,f,e=_g,i=bge(),r=rT(),o=Tr(),s=zr;function a(f){var p=Array.isArray(f)?f:f?[f]:[];if(p.every(e.isJSONType))return p;throw new Error("type must be JSONType or JSONType[]: "+p.join(","))}(f=n=t.DataType||(t.DataType={}))[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong",t.getSchemaTypes=function(f){var p=a(f.type);if(p.includes("null")){if(!1===f.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!p.length&&void 0!==f.nullable)throw new Error('"nullable" cannot be used without "type"');!0===f.nullable&&p.push("null")}return p},t.getJSONTypes=a,t.coerceAndCheckDataType=function(f,p){var E,m=f.gen,g=f.data,v=f.opts,y=(E=v.coerceTypes)?p.filter(function(B){return l.has(B)||"array"===E&&"array"===B}):[],b=p.length>0&&!(0===y.length&&1===p.length&&(0,i.schemaHasRulesForType)(f,p[0]));if(b){var C=u(p,g,v.strictNumbers,n.Wrong);m.if(C,function(){y.length?function(D,E,B){var z=D.gen,j=D.data,U=D.opts,G=z.let("dataType",(0,o._)(ZY||(ZY=Pe(["typeof ",""])),j)),X=z.let("coerced",(0,o._)(eX||(eX=Pe(["undefined"]))));"array"===U.coerceTypes&&z.if((0,o._)(tX||(tX=Pe([""," == 'object' && Array.isArray(",") && ",".length == 1"])),G,j,j),function(){return z.assign(j,(0,o._)(nX||(nX=Pe(["","[0]"])),j)).assign(G,(0,o._)(iX||(iX=Pe(["typeof ",""])),j)).if(u(E,j,U.strictNumbers),function(){return z.assign(X,j)})}),z.if((0,o._)(rX||(rX=Pe([""," !== undefined"])),X));var oe,P=He(B);try{for(P.s();!(oe=P.n()).done;){var W=oe.value;(l.has(W)||"array"===W&&"array"===U.coerceTypes)&&J(W)}}catch(H){P.e(H)}finally{P.f()}function J(H){switch(H){case"string":return void z.elseIf((0,o._)(sX||(sX=Pe(["",' == "number" || ',' == "boolean"'])),G,G)).assign(X,(0,o._)(aX||(aX=Pe(['"" + ',""])),j)).elseIf((0,o._)(lX||(lX=Pe([""," === null"])),j)).assign(X,(0,o._)(cX||(cX=Pe(['""']))));case"number":return void z.elseIf((0,o._)(uX||(uX=Pe(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),G,j,G,j,j,j)).assign(X,(0,o._)(dX||(dX=Pe(["+",""])),j));case"integer":return void z.elseIf((0,o._)(hX||(hX=Pe(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),G,j,G,j,j,j,j)).assign(X,(0,o._)(fX||(fX=Pe(["+",""])),j));case"boolean":return void z.elseIf((0,o._)(pX||(pX=Pe(["",' === "false" || '," === 0 || "," === null"])),j,j,j)).assign(X,!1).elseIf((0,o._)(mX||(mX=Pe(["",' === "true" || '," === 1"])),j,j)).assign(X,!0);case"null":return z.elseIf((0,o._)(gX||(gX=Pe(["",' === "" || '," === 0 || "," === false"])),j,j,j)),void z.assign(X,null);case"array":z.elseIf((0,o._)(vX||(vX=Pe(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),G,G,G,j)).assign(X,(0,o._)(yX||(yX=Pe(["[","]"])),j))}}z.else(),h(D),z.endIf(),z.if((0,o._)(oX||(oX=Pe([""," !== undefined"])),X),function(){var H,pe,A,N,F;z.assign(j,X),pe=X,N=(H=D).parentData,F=H.parentDataProperty,(A=H.gen).if((0,o._)(_X||(_X=Pe([""," !== undefined"])),N),function(){return A.assign((0,o._)(bX||(bX=Pe(["","[","]"])),N,F),pe)})})}(f,p,y):h(f)})}return b};var l=new Set(["string","number","integer","boolean","null"]);function c(f,p,m){var g,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Correct,y=v===n.Correct?o.operators.EQ:o.operators.NEQ;switch(f){case"null":return(0,o._)(xX||(xX=Pe([""," "," null"])),p,y);case"array":g=(0,o._)(wX||(wX=Pe(["Array.isArray(",")"])),p);break;case"object":g=(0,o._)(CX||(CX=Pe([""," && typeof ",' == "object" && !Array.isArray(',")"])),p,p,p);break;case"integer":g=b((0,o._)(SX||(SX=Pe(["!("," % 1) && !isNaN(",")"])),p,p));break;case"number":g=b();break;default:return(0,o._)(kX||(kX=Pe(["typeof "," "," ",""])),p,y,f)}return v===n.Correct?g:(0,o.not)(g);function b(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.nil;return(0,o.and)((0,o._)(DX||(DX=Pe(["typeof ",' == "number"'])),p),C,m?(0,o._)(TX||(TX=Pe(["isFinite(",")"])),p):o.nil)}}function u(f,p,m,g){if(1===f.length)return c(f[0],p,m,g);var v,y=(0,s.toHash)(f);if(y.array&&y.object){var b=(0,o._)(EX||(EX=Pe(["typeof ",' != "object"'])),p);v=y.null?b:(0,o._)(AX||(AX=Pe(["!"," || ",""])),p,b),delete y.null,delete y.array,delete y.object}else v=o.nil;for(var C in y.number&&delete y.integer,y)v=(0,o.and)(v,c(C,p,m,g));return v}t.checkDataType=c,t.checkDataTypes=u;var d={message:function(f){return"must be ".concat(f.schema)},params:function(f){var p=f.schema,m=f.schemaValue;return"string"==typeof p?(0,o._)(MX||(MX=Pe(["{type: ","}"])),p):(0,o._)(OX||(OX=Pe(["{type: ","}"])),m)}};function h(f){var m,g,v,y,b,p=(g=(m=f).gen,v=m.data,b=(0,s.schemaRefOrVal)(m,y=m.schema,"type"),{gen:g,keyword:"type",data:v,schema:y.type,schemaCode:b,schemaValue:b,parentSchema:y,params:{},it:m});(0,r.reportError)(p,d)}t.reportTypeError=h}(ex);var xge,wge,Cge,tx={},md={},go={};function gd(){if(wge)return go;wge=1,Object.defineProperty(go,"__esModule",{value:!0}),go.validateUnion=go.validateArray=go.usePattern=go.callValidateCode=go.schemaProperties=go.allSchemaProperties=go.noPropertyInData=go.propertyInData=go.isOwnProperty=go.hasPropFunc=go.reportMissingProp=go.checkMissingProp=go.checkReportMissingProp=void 0;var t=Tr(),n=zr,e=Vp(),i=zr;function r(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)(LX||(LX=Pe(["Object.prototype.hasOwnProperty"])))})}function o(c,u,d){return(0,t._)(BX||(BX=Pe(["",".call(",", ",")"])),r(c),u,d)}function s(c,u,d,h){var f=(0,t._)(HX||(HX=Pe(["",""," === undefined"])),u,(0,t.getProperty)(d));return h?(0,t.or)(f,(0,t.not)(o(c,u,d))):f}function a(c){return c?Object.keys(c).filter(function(u){return"__proto__"!==u}):[]}go.checkReportMissingProp=function(c,u){var d=c.gen;d.if(s(d,c.data,u,c.it.opts.ownProperties),function(){c.setParams({missingProperty:(0,t._)(RX||(RX=Pe(["",""])),u)},!0),c.error()})},go.checkMissingProp=function(c,u,d){var h=c.gen,f=c.data,p=c.it.opts;return t.or.apply(void 0,ui(u.map(function(m){return(0,t.and)(s(h,f,m,p.ownProperties),(0,t._)(jX||(jX=Pe([""," = ",""])),d,m))})))},go.reportMissingProp=function(c,u){c.setParams({missingProperty:u},!0),c.error()},go.hasPropFunc=r,go.isOwnProperty=o,go.propertyInData=function(c,u,d,h){var f=(0,t._)($X||($X=Pe(["",""," !== undefined"])),u,(0,t.getProperty)(d));return h?(0,t._)(VX||(VX=Pe([""," && ",""])),f,o(c,u,d)):f},go.noPropertyInData=s,go.allSchemaProperties=a,go.schemaProperties=function(c,u){return a(u).filter(function(d){return!(0,n.alwaysValidSchema)(c,u[d])})},go.callValidateCode=function(c,u,d,h){var f=c.schemaCode,p=c.data,m=c.it,g=m.gen,v=m.topSchemaRef,y=m.schemaPath,b=m.errorPath,C=c.it,D=h?(0,t._)(UX||(UX=Pe(["",", ",", ","",""])),f,p,v,y):p,E=[[e.default.instancePath,(0,t.strConcat)(e.default.instancePath,b)],[e.default.parentData,C.parentData],[e.default.parentDataProperty,C.parentDataProperty],[e.default.rootData,e.default.rootData]];C.opts.dynamicRef&&E.push([e.default.dynamicAnchors,e.default.dynamicAnchors]);var B=(0,t._)(zX||(zX=Pe(["",", ",""])),D,g.object.apply(g,E));return d!==t.nil?(0,t._)(GX||(GX=Pe(["",".call(",", ",")"])),u,d,B):(0,t._)(WX||(WX=Pe(["","(",")"])),u,B)};var l=(0,t._)(qX||(qX=Pe(["new RegExp"])));return go.usePattern=function(c,u){var d=c.gen,h=c.it.opts,f=h.unicodeRegExp?"u":"",p=h.code.regExp,m=p(u,f);return d.scopeValue("pattern",{key:m.toString(),ref:m,code:(0,t._)(YX||(YX=Pe(["","(",", ",")"])),"new RegExp"===p.code?l:(0,i.useFunc)(d,p),u,f)})},go.validateArray=function(c){var u=c.gen,d=c.data,h=c.keyword,f=c.it,p=u.name("valid");if(f.allErrors){var m=u.let("valid",!0);return g(function(){return u.assign(m,!1)}),m}return u.var(p,!0),g(function(){return u.break()}),p;function g(v){var y=u.const("len",(0,t._)(XX||(XX=Pe(["",".length"])),d));u.forRange("i",0,y,function(b){c.subschema({keyword:h,dataProp:b,dataPropType:n.Type.Num},p),u.if((0,t.not)(p),v)})}},go.validateUnion=function(c){var u=c.gen,d=c.schema,h=c.keyword,f=c.it;if(!Array.isArray(d))throw new Error("ajv implementation error");if(!d.some(function(g){return(0,n.alwaysValidSchema)(f,g)})||f.opts.unevaluated){var p=u.let("valid",!1),m=u.name("_valid");u.block(function(){return d.forEach(function(g,v){var y=c.subschema({keyword:h,schemaProp:v,compositeRule:!0},m);u.assign(p,(0,t._)(JX||(JX=Pe([""," || ",""])),p,m)),c.mergeValidEvaluated(y,m)||u.if((0,t.not)(p))})}),c.result(p,function(){return c.reset()},function(){return c.error(!0)})}},go}var Sge,wf={},Ka={},kge=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==wn(n)&&"object"==wn(e)){if(n.constructor!==e.constructor)return!1;var i,r,o;if(Array.isArray(n)){if((i=n.length)!=e.length)return!1;for(r=i;0!=r--;)if(!t(n[r],e[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e},mj={},wst={get exports(){return mj},set exports(t){mj=t}},Hp=wst.exports=function(t,n,e){"function"==typeof n&&(e=n,n={}),oT(n,"function"==typeof(e=n.cb||e)?e:e.pre||function(){},e.post||function(){},t,"",t)};function oT(t,n,e,i,r,o,s,a,l,c){if(i&&"object"==wn(i)&&!Array.isArray(i)){for(var u in n(i,r,o,s,a,l,c),i){var d=i[u];if(Array.isArray(d)){if(u in Hp.arrayKeywords)for(var h=0;h1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof t||(!0===n?!gj(t):!!n&&Dge(t)<=n)};var Tst=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function gj(t){for(var n in t){if(Tst.has(n))return!0;var e=t[n];if(Array.isArray(e)&&e.some(gj)||"object"==wn(e)&&gj(e))return!0}return!1}function Dge(t){var n=0;for(var e in t)if("$ref"===e||(n++,!Dst.has(e)&&("object"==wn(t[e])&&(0,Cst.eachItem)(t[e],function(i){return n+=Dge(i)}),n===1/0)))return 1/0;return n}function Tge(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(n=u1(n));var i=t.parse(n);return Ege(t,i)}function Ege(t,n){return t.serialize(n).split("#")[0]+"#"}Ka.getFullPath=Tge,Ka._getFullPath=Ege;var Est=/#\/?$/;function u1(t){return t?t.replace(Est,""):""}Ka.normalizeId=u1,Ka.resolveUrl=function(t,n,e){return e=u1(e),t.resolve(n,e)};var Age,Ast=/^[a-z_][-a-z0-9._]*$/i;function sT(){if(Age)return bf;Age=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.getData=bf.KeywordCxt=bf.validateFunctionCode=void 0;var t=function(){if(yge)return yg;yge=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.boolOrEmptySchema=yg.topBoolOrEmptySchema=void 0;var P=rT(),W=Tr(),J=Vp(),H={message:"boolean schema is false"};function pe(A,N){(0,P.reportError)({gen:A.gen,keyword:"false schema",data:A.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:A},H,void 0,N)}return yg.topBoolOrEmptySchema=function(A){var N=A.gen,F=A.schema,q=A.validateName;!1===F?pe(A,!1):"object"==wn(F)&&!0===F.$async?N.return(J.default.data):(N.assign((0,W._)(QY||(QY=Pe(["",".errors"])),q),null),N.return(!0))},yg.boolOrEmptySchema=function(A,N){var F=A.gen;!1===A.schema?(F.var(N,!1),pe(A)):F.var(N,!0)},yg}(),n=ex,e=bge(),i=ex,r=function(){if(xge)return tx;xge=1,Object.defineProperty(tx,"__esModule",{value:!0}),tx.assignDefaults=void 0;var P=Tr(),W=zr;function J(H,pe,A){var N=H.gen,F=H.compositeRule,q=H.data,V=H.opts;if(void 0!==A){var ce=(0,P._)(IX||(IX=Pe(["","",""])),q,(0,P.getProperty)(pe));if(F)(0,W.checkStrictMode)(H,"default is ignored for: ".concat(ce));else{var ve=(0,P._)(NX||(NX=Pe([""," === undefined"])),ce);"empty"===V.useDefaults&&(ve=(0,P._)(FX||(FX=Pe([""," || "," === null || ",' === ""'])),ve,ce,ce)),N.if(ve,(0,P._)(PX||(PX=Pe([""," = ",""])),ce,(0,P.stringify)(A)))}}}return tx.assignDefaults=function(H,pe){var A=H.schema,N=A.properties,F=A.items;if("object"===pe&&N)for(var q in N)J(H,q,N[q].default);else"array"===pe&&Array.isArray(F)&&F.forEach(function(V,ce){return J(H,ce,V.default)})},tx}(),o=function xst(){if(Cge)return md;Cge=1,Object.defineProperty(md,"__esModule",{value:!0}),md.validateKeywordUsage=md.validSchemaType=md.funcKeywordCode=md.macroKeywordCode=void 0;var t=Tr(),n=Vp(),e=gd(),i=rT();function r(s){var a=s.gen,l=s.data,c=s.it;a.if(c.parentData,function(){return a.assign(l,(0,t._)(iJ||(iJ=Pe(["","[","]"])),c.parentData,c.parentDataProperty))})}function o(s,a,l){if(void 0===l)throw new Error('keyword "'.concat(a,'" failed to compile'));return s.scopeValue("keyword","function"==typeof l?{ref:l}:{ref:l,code:(0,t.stringify)(l)})}return md.macroKeywordCode=function(s,a){var l=s.gen,c=s.keyword,h=s.it,f=a.macro.call(h.self,s.schema,s.parentSchema,h),p=o(l,c,f);!1!==h.opts.validateSchema&&h.self.validateSchema(f,!0);var m=l.name("valid");s.subschema({schema:f,schemaPath:t.nil,errSchemaPath:"".concat(h.errSchemaPath,"/").concat(c),topSchemaRef:p,compositeRule:!0},m),s.pass(m,function(){return s.error(!0)})},md.funcKeywordCode=function(s,a){var l,c=s.gen,u=s.keyword,d=s.schema,h=s.parentSchema,f=s.$data,p=s.it;!function(C,D){if(D.async&&!C.schemaEnv.$async)throw new Error("async keyword in sync schema")}(p,a);var m=!f&&a.compile?a.compile.call(p.self,d,h,p):a.validate,g=o(c,u,m),v=c.let("valid");function y(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.async?(0,t._)(tJ||(tJ=Pe(["await "]))):t.nil,D=p.opts.passContext?n.default.this:n.default.self,E=!("compile"in a&&!f||!1===a.schema);c.assign(v,(0,t._)(nJ||(nJ=Pe(["","",""])),C,(0,e.callValidateCode)(s,g,D,E)),a.modifying)}function b(C){var D;c.if((0,t.not)(null!==(D=a.valid)&&void 0!==D?D:v),C)}s.block$data(v,function(){if(!1===a.errors)y(),a.modifying&&r(s),b(function(){return s.error()});else{var C=a.async?(E=c.let("ruleErrs",null),c.try(function(){return y((0,t._)(KX||(KX=Pe(["await "]))))},function(B){return c.assign(v,!1).if((0,t._)(QX||(QX=Pe([""," instanceof ",""])),B,p.ValidationError),function(){return c.assign(E,(0,t._)(ZX||(ZX=Pe(["",".errors"])),B))},function(){return c.throw(B)})}),E):(D=(0,t._)(eJ||(eJ=Pe(["",".errors"])),g),c.assign(D,null),y(t.nil),D);a.modifying&&r(s),b(function(){return function(E,B){var z=E.gen;z.if((0,t._)(rJ||(rJ=Pe(["Array.isArray(",")"])),B),function(){z.assign(n.default.vErrors,(0,t._)(oJ||(oJ=Pe([""," === null ? "," : ",".concat(",")"])),n.default.vErrors,B,n.default.vErrors,B)).assign(n.default.errors,(0,t._)(sJ||(sJ=Pe(["",".length"])),n.default.vErrors)),(0,i.extendErrors)(E)},function(){return E.error()})}(s,C)})}var E,D}),s.ok(null!==(l=a.valid)&&void 0!==l?l:v)},md.validSchemaType=function(s,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!a.length||a.some(function(c){return"array"===c?Array.isArray(s):"object"===c?s&&"object"==wn(s)&&!Array.isArray(s):wn(s)==c||l&&void 0===s})},md.validateKeywordUsage=function(s,a,l){var c=s.schema,u=s.opts,d=s.self,h=s.errSchemaPath;if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");var f=a.dependencies;if(f?.some(function(m){return!Object.prototype.hasOwnProperty.call(c,m)}))throw new Error("parent schema must have dependencies of ".concat(l,": ").concat(f.join(",")));if(a.validateSchema&&!a.validateSchema(c[l])){var p='keyword "'.concat(l,'" value is invalid at path "').concat(h,'": ')+d.errorsText(a.validateSchema.errors);if("log"!==u.validateSchema)throw new Error(p);d.logger.error(p)}},md}(),s=function(){if(Sge)return wf;Sge=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.extendSubschemaMode=wf.extendSubschemaData=wf.getSubschema=void 0;var P=Tr(),W=zr;return wf.getSubschema=function(J,H){var pe=H.keyword,A=H.schemaProp,N=H.schema,F=H.schemaPath,q=H.errSchemaPath,V=H.topSchemaRef;if(void 0!==pe&&void 0!==N)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==pe){var ce=J.schema[pe];return void 0===A?{schema:ce,schemaPath:(0,P._)(aJ||(aJ=Pe(["","",""])),J.schemaPath,(0,P.getProperty)(pe)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(pe)}:{schema:ce[A],schemaPath:(0,P._)(lJ||(lJ=Pe(["","","",""])),J.schemaPath,(0,P.getProperty)(pe),(0,P.getProperty)(A)),errSchemaPath:"".concat(J.errSchemaPath,"/").concat(pe,"/").concat((0,W.escapeFragment)(A))}}if(void 0!==N){if(void 0===F||void 0===q||void 0===V)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:N,schemaPath:F,topSchemaRef:V,errSchemaPath:q}}throw new Error('either "keyword" or "schema" must be passed')},wf.extendSubschemaData=function(J,H,pe){var A=pe.dataProp,N=pe.dataPropType,F=pe.data,q=pe.dataTypes,V=pe.propertyName;if(void 0!==F&&void 0!==A)throw new Error('both "data" and "dataProp" passed, only one allowed');var ce=H.gen;if(void 0!==A){var ve=H.errorPath,je=H.dataPathArr,Te=H.opts;et(ce.let("data",(0,P._)(cJ||(cJ=Pe(["","",""])),H.data,(0,P.getProperty)(A)),!0)),J.errorPath=(0,P.str)(uJ||(uJ=Pe(["","",""])),ve,(0,W.getErrorPath)(A,N,Te.jsPropertySyntax)),J.parentDataProperty=(0,P._)(dJ||(dJ=Pe(["",""])),A),J.dataPathArr=[].concat(ui(je),[J.parentDataProperty])}function et(We){J.data=We,J.dataLevel=H.dataLevel+1,J.dataTypes=[],H.definedProperties=new Set,J.parentData=H.data,J.dataNames=[].concat(ui(H.dataNames),[We])}void 0!==F&&(et(F instanceof P.Name?F:ce.let("data",F,!0)),void 0!==V&&(J.propertyName=V)),q&&(J.dataTypes=q)},wf.extendSubschemaMode=function(J,H){var pe=H.jtdDiscriminator,A=H.jtdMetadata,N=H.compositeRule,F=H.createErrors,q=H.allErrors;void 0!==N&&(J.compositeRule=N),void 0!==F&&(J.createErrors=F),void 0!==q&&(J.allErrors=q),J.jtdDiscriminator=pe,J.jtdMetadata=A},wf}(),a=Tr(),l=Vp(),c=Ka,u=zr,d=rT();function h(P,W){var F,J=P.gen,H=P.validateName,pe=P.schema,A=P.schemaEnv,N=P.opts;N.code.es5?J.func(H,(0,a._)(hJ||(hJ=Pe(["",", ",""])),l.default.data,l.default.valCxt),A.$async,function(){var F,q;J.code((0,a._)(fJ||(fJ=Pe(['"use strict"; ',""])),f(pe,N))),q=N,(F=J).if(l.default.valCxt,function(){F.var(l.default.instancePath,(0,a._)(vJ||(vJ=Pe(["",".",""])),l.default.valCxt,l.default.instancePath)),F.var(l.default.parentData,(0,a._)(yJ||(yJ=Pe(["",".",""])),l.default.valCxt,l.default.parentData)),F.var(l.default.parentDataProperty,(0,a._)(_J||(_J=Pe(["",".",""])),l.default.valCxt,l.default.parentDataProperty)),F.var(l.default.rootData,(0,a._)(bJ||(bJ=Pe(["",".",""])),l.default.valCxt,l.default.rootData)),q.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(xJ||(xJ=Pe(["",".",""])),l.default.valCxt,l.default.dynamicAnchors))},function(){F.var(l.default.instancePath,(0,a._)(wJ||(wJ=Pe(['""'])))),F.var(l.default.parentData,(0,a._)(CJ||(CJ=Pe(["undefined"])))),F.var(l.default.parentDataProperty,(0,a._)(SJ||(SJ=Pe(["undefined"])))),F.var(l.default.rootData,l.default.data),q.dynamicRef&&F.var(l.default.dynamicAnchors,(0,a._)(kJ||(kJ=Pe(["{}"]))))}),J.code(W)}):J.func(H,(0,a._)(pJ||(pJ=Pe(["",", ",""])),l.default.data,(F=N,(0,a._)(mJ||(mJ=Pe(["{",'="", ',", ",", ","=","","}={}"])),l.default.instancePath,l.default.parentData,l.default.parentDataProperty,l.default.rootData,l.default.data,F.dynamicRef?(0,a._)(gJ||(gJ=Pe([", ","={}"])),l.default.dynamicAnchors):a.nil))),A.$async,function(){return J.code(f(pe,N)).code(W)})}function f(P,W){var J="object"==wn(P)&&P[W.schemaId];return J&&(W.code.source||W.code.process)?(0,a._)(NJ||(NJ=Pe(["/*# sourceURL="," */"])),J):a.nil}function m(P){var W=P.schema,J=P.self;if("boolean"==typeof W)return!W;for(var H in W)if(J.RULES.all[H])return!0;return!1}function g(P){return"boolean"!=typeof P.schema}function v(P){var W,J,H,A;(0,u.checkUnknownRules)(P),H=(W=P).errSchemaPath,A=W.self,(J=W.schema).$ref&&W.opts.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(J,A.RULES)&&A.logger.warn('$ref: keywords ignored in schema at path "'.concat(H,'"'))}function y(P,W){if(P.opts.jtd)return C(P,[],!1,W);var J=(0,n.getSchemaTypes)(P.schema);C(P,J,!(0,n.coerceAndCheckDataType)(P,J),W)}function b(P){var W=P.gen,J=P.schemaEnv,pe=P.errSchemaPath,A=P.opts,N=P.schema.$comment;if(!0===A.$comment)W.code((0,a._)(PJ||(PJ=Pe(["",".logger.log(",")"])),l.default.self,N));else if("function"==typeof A.$comment){var F=(0,a.str)(RJ||(RJ=Pe(["","/$comment"])),pe),q=W.scopeValue("root",{ref:J.root});W.code((0,a._)(jJ||(jJ=Pe(["",".opts.$comment(",", ",", ",".schema)"])),l.default.self,N,F,q))}}function C(P,W,J,H){var ve,je,Te,et,pe=P.gen,A=P.schema,N=P.data,F=P.allErrors,q=P.opts,V=P.self.RULES;function ce(ve){(0,e.shouldUseGroup)(A,ve)&&(ve.type?(pe.if((0,i.checkDataType)(ve.type,N,q.strictNumbers)),D(P,ve),1===W.length&&W[0]===ve.type&&J&&(pe.else(),(0,i.reportTypeError)(P)),pe.endIf()):D(P,ve),F||pe.if((0,a._)(zJ||(zJ=Pe([""," === ",""])),l.default.errors,H||0)))}!A.$ref||!q.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(A,V)?(q.jtd||(je=W,(ve=P).schemaEnv.meta||!ve.opts.strictTypes||(function(Te,et){if(et.length){if(!Te.dataTypes.length)return void(Te.dataTypes=et);et.forEach(function(We){B(Te.dataTypes,We)||z(Te,'type "'.concat(We,'" not allowed by context "').concat(Te.dataTypes.join(","),'"'))}),function(We,st){var $,ae=[],le=He(We.dataTypes);try{for(le.s();!($=le.n()).done;){var Re=$.value;B(st,Re)?ae.push(Re):st.includes("integer")&&"number"===Re&&ae.push("integer")}}catch(Ze){le.e(Ze)}finally{le.f()}We.dataTypes=ae}(Te,et)}}(ve,je),ve.opts.allowUnionTypes||(Te=ve,(et=je).length>1&&(2!==et.length||!et.includes("null"))&&z(Te,"use allowUnionTypes to allow union type keyword")),function(Te,et){var We=Te.self.RULES.all;for(var st in We){var $=We[st];if("object"==wn($)&&(0,e.shouldUseRule)(Te.schema,$)){var ae=$.definition.type;ae.length&&!ae.some(function(le){return E(et,le)})&&z(Te,'missing type "'.concat(ae.join(","),'" for keyword "').concat(st,'"'))}}}(ve,ve.dataTypes))),pe.block(function(){var ve,je=He(V.rules);try{for(je.s();!(ve=je.n()).done;)ce(ve.value)}catch(Te){je.e(Te)}finally{je.f()}ce(V.post)})):pe.block(function(){return U(P,"$ref",V.all.$ref.definition)})}function D(P,W){var J=P.gen,H=P.schema;P.opts.useDefaults&&(0,r.assignDefaults)(P,W.type),J.block(function(){var pe,A=He(W.rules);try{for(A.s();!(pe=A.n()).done;){var N=pe.value;(0,e.shouldUseRule)(H,N)&&U(P,N.keyword,N.definition,W.type)}}catch(F){A.e(F)}finally{A.f()}})}function E(P,W){return P.includes(W)||"number"===W&&P.includes("integer")}function B(P,W){return P.includes(W)||"integer"===W&&P.includes("number")}function z(P,W){W+=' at "'.concat(P.schemaEnv.baseId+P.errSchemaPath,'" (strictTypes)'),(0,u.checkStrictMode)(P,W,P.opts.strictTypes)}bf.validateFunctionCode=function(P){var W,J,H,pe;g(P)&&(v(P),m(P))?(J=(W=P).schema,H=W.opts,pe=W.gen,h(W,function(){var A,F;H.$comment&&J.$comment&&b(W),F=(A=W).opts,void 0!==A.schema.default&&F.useDefaults&&F.strictSchema&&(0,u.checkStrictMode)(A,"default is ignored in the schema root"),pe.let(l.default.vErrors,null),pe.let(l.default.errors,0),H.unevaluated&&function(A){var N=A.gen,F=A.validateName;A.evaluated=N.const("evaluated",(0,a._)(DJ||(DJ=Pe(["",".evaluated"])),F)),N.if((0,a._)(TJ||(TJ=Pe(["",".dynamicProps"])),A.evaluated),function(){return N.assign((0,a._)(EJ||(EJ=Pe(["",".props"])),A.evaluated),(0,a._)(AJ||(AJ=Pe(["undefined"]))))}),N.if((0,a._)(MJ||(MJ=Pe(["",".dynamicItems"])),A.evaluated),function(){return N.assign((0,a._)(OJ||(OJ=Pe(["",".items"])),A.evaluated),(0,a._)(IJ||(IJ=Pe(["undefined"]))))})}(W),y(W),function(A){var ve,je,Te,et,We,N=A.gen,q=A.validateName,V=A.ValidationError,ce=A.opts;A.schemaEnv.$async?N.if((0,a._)(LJ||(LJ=Pe([""," === 0"])),l.default.errors),function(){return N.return(l.default.data)},function(){return N.throw((0,a._)(BJ||(BJ=Pe(["new ","(",")"])),V,l.default.vErrors))}):(N.assign((0,a._)($J||($J=Pe(["",".errors"])),q),l.default.vErrors),ce.unevaluated&&(je=(ve=A).gen,Te=ve.evaluated,We=ve.items,(et=ve.props)instanceof a.Name&&je.assign((0,a._)(HJ||(HJ=Pe(["",".props"])),Te),et),We instanceof a.Name&&je.assign((0,a._)(UJ||(UJ=Pe(["",".items"])),Te),We)),N.return((0,a._)(VJ||(VJ=Pe([""," === 0"])),l.default.errors)))}(W)})):h(P,function(){return(0,t.topBoolOrEmptySchema)(P)})};var j=function(){function P(W,J,H){if(Oe(this,P),(0,o.validateKeywordUsage)(W,J,H),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=H,this.data=W.data,this.schema=W.schema[H],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(W,this.schema,H,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",oe(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error("".concat(H," value must be ").concat(JSON.stringify(J.schemaType)));("code"in J?J.trackErrors:!1!==J.errors)&&(this.errsCount=W.gen.const("_errs",l.default.errors))}return Ie(P,[{key:"result",value:function(W,J,H){this.failResult((0,a.not)(W),J,H)}},{key:"failResult",value:function(W,J,H){this.gen.if(W),H?H():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(W,J){this.failResult((0,a.not)(W),void 0,J)}},{key:"fail",value:function(W){if(void 0===W)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(W){if(!this.$data)return this.fail(W);var J=this.schemaCode;this.fail((0,a._)(GJ||(GJ=Pe([""," !== undefined && (",")"])),J,(0,a.or)(this.invalid$data(),W)))}},{key:"error",value:function(W,J,H){if(J)return this.setParams(J),this._error(W,H),void this.setParams({});this._error(W,H)}},{key:"_error",value:function(W,J){(W?d.reportExtraError:d.reportError)(this,this.def.error,J)}},{key:"$dataError",value:function(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(W){this.allErrors||this.gen.if(W)}},{key:"setParams",value:function(W,J){J?Object.assign(this.params,W):this.params=W}},{key:"block$data",value:function(W,J){var H=this,pe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.nil;this.gen.block(function(){H.check$data(W,pe),J()})}},{key:"check$data",value:function(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.nil,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.nil;if(this.$data){var H=this.gen,pe=this.schemaCode,A=this.schemaType,N=this.def;H.if((0,a.or)((0,a._)(WJ||(WJ=Pe([""," === undefined"])),pe),J)),W!==a.nil&&H.assign(W,!0),(A.length||N.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),W!==a.nil&&H.assign(W,!1)),H.else()}}},{key:"invalid$data",value:function(){var W=this.gen,J=this.schemaCode,H=this.schemaType,pe=this.def,A=this.it;return(0,a.or)(function(){if(H.length){if(!(J instanceof a.Name))throw new Error("ajv implementation error");var N=Array.isArray(H)?H:[H];return(0,a._)(qJ||(qJ=Pe(["",""])),(0,i.checkDataTypes)(N,J,A.opts.strictNumbers,i.DataType.Wrong))}return a.nil}(),function(){if(pe.validateSchema){var N=W.scopeValue("validate$data",{ref:pe.validateSchema});return(0,a._)(YJ||(YJ=Pe(["!","(",")"])),N,J)}return a.nil}())}},{key:"subschema",value:function(W,J){var H=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(H,this.it,W),(0,s.extendSubschemaMode)(H,W);var pe=nt(nt(nt({},this.it),H),{},{items:void 0,props:void 0});return function p(P,W){g(P)&&(v(P),m(P))?function(J,H){var F,q,A=J.gen;J.opts.$comment&&J.schema.$comment&&b(J),(q=(F=J).schema[F.opts.schemaId])&&(F.baseId=(0,c.resolveUrl)(F.opts.uriResolver,F.baseId,q)),function(F){if(F.schema.$async&&!F.schemaEnv.$async)throw new Error("async schema in sync schema")}(J);var N=A.const("_errs",l.default.errors);y(J,N),A.var(H,(0,a._)(FJ||(FJ=Pe([""," === ",""])),N,l.default.errors))}(P,W):(0,t.boolOrEmptySchema)(P,W)}(pe,J),pe}},{key:"mergeEvaluated",value:function(W,J){var H=this.it,pe=this.gen;H.opts.unevaluated&&(!0!==H.props&&void 0!==W.props&&(H.props=u.mergeEvaluated.props(pe,W.props,H.props,J)),!0!==H.items&&void 0!==W.items&&(H.items=u.mergeEvaluated.items(pe,W.items,H.items,J)))}},{key:"mergeValidEvaluated",value:function(W,J){var H=this,pe=this.it;if(pe.opts.unevaluated&&(!0!==pe.props||!0!==pe.items))return this.gen.if(J,function(){return H.mergeEvaluated(W,a.Name)}),!0}}]),P}();function U(P,W,J,H){var pe=new j(P,J,W);"code"in J?J.code(pe,H):pe.$data&&J.validate?(0,o.funcKeywordCode)(pe,J):"macro"in J?(0,o.macroKeywordCode)(pe,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(pe,J)}bf.KeywordCxt=j;var G=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oe(P,W){var J,H,pe=W.dataLevel,A=W.dataNames,N=W.dataPathArr;if(""===P)return l.default.rootData;if("/"===P[0]){if(!G.test(P))throw new Error("Invalid JSON-pointer: ".concat(P));J=P,H=l.default.rootData}else{var F=X.exec(P);if(!F)throw new Error("Invalid JSON-pointer: ".concat(P));var q=+F[1];if("#"===(J=F[2])){if(q>=pe)throw new Error(Te("property/index",q));return N[pe-q]}if(q>pe)throw new Error(Te("data",q));if(H=A[pe-q],!J)return H}var V,ce=H,ve=He(J.split("/"));try{for(ve.s();!(V=ve.n()).done;){var je=V.value;je&&(H=(0,a._)(XJ||(XJ=Pe(["","",""])),H,(0,a.getProperty)((0,u.unescapeJsonPointer)(je))),ce=(0,a._)(JJ||(JJ=Pe([""," && ",""])),ce,H))}}catch(et){ve.e(et)}finally{ve.f()}return ce;function Te(et,We){return"Cannot access ".concat(et," ").concat(We," levels up, current level is ").concat(pe)}}return bf.getData=oe,bf}Ka.getSchemaRefs=function(t,n){var e=this;if("boolean"==typeof t)return{};var i=this.opts,r=i.schemaId,o=i.uriResolver,s=u1(t[r]||n),a={"":s},l=Tge(o,s,!1),c={},u=new Set;return kst(t,{allKeys:!0},function(f,p,m,g){if(void 0!==g){var v=l+p,y=a[g];"string"==typeof f[r]&&(y=b.call(e,f[r])),C.call(e,f.$anchor),C.call(e,f.$dynamicAnchor),a[p]=y}function b(D){if(D=u1(y?(0,this.opts.uriResolver.resolve)(y,D):D),u.has(D))throw h(D);u.add(D);var B=this.refs[D];return"string"==typeof B&&(B=this.refs[B]),"object"==wn(B)?d(f,B.schema,D):D!==u1(v)&&("#"===D[0]?(d(f,c[D],D),c[D]=f):this.refs[D]=v),D}function C(D){if("string"==typeof D){if(!Ast.test(D))throw new Error('invalid anchor "'.concat(D,'"'));b.call(this,"#".concat(D))}}}),c;function d(f,p,m){if(void 0!==p&&!Sst(f,p))throw h(m)}function h(f){return new Error('reference "'.concat(f,'" resolves to more than one schema'))}};var Mge,aT={};function vj(){if(Mge)return aT;Mge=1,Object.defineProperty(aT,"__esModule",{value:!0});var t=function(n){Dt(i,O_(Error));var e=Tt(i);function i(r){var o;return Oe(this,i),(o=e.call(this,"validation failed")).errors=r,o.ajv=o.validation=!0,o}return Ie(i)}();return aT.default=t,aT}var Oge,lT={};function yj(){if(Oge)return lT;Oge=1,Object.defineProperty(lT,"__esModule",{value:!0});var t=Ka,n=function(e){Dt(r,O_(Error));var i=Tt(r);function r(o,s,a,l){var c;return Oe(this,r),(c=i.call(this,l||"can't resolve reference ".concat(a," from id ").concat(s))).missingRef=(0,t.resolveUrl)(o,s,a),c.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,c.missingRef)),c}return Ie(r)}();return lT.default=n,lT}var sc={};Object.defineProperty(sc,"__esModule",{value:!0}),sc.resolveSchema=sc.getCompilingSchema=sc.resolveRef=sc.compileSchema=sc.SchemaEnv=void 0;var vd=Tr(),Mst=vj(),bg=Vp(),yd=Ka,Ige=zr,Ost=sT(),cT=Ie(function t(n){var e,i;Oe(this,t),this.refs={},this.dynamicAnchors={},"object"==wn(n.schema)&&(i=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=null!==(e=n.baseId)&&void 0!==e?e:(0,yd.normalizeId)(i?.[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=i?.$async,this.refs={}});function _j(t){var n=Nge.call(this,t);if(n)return n;var e,i=(0,yd.getFullPath)(this.opts.uriResolver,t.root.baseId),r=this.opts.code,l=new vd.CodeGen(this.scope,{es5:r.es5,lines:r.lines,ownProperties:this.opts.ownProperties});t.$async&&(e=l.scopeValue("Error",{ref:Mst.default,code:(0,vd._)(KJ||(KJ=Pe(['require("ajv/dist/runtime/validation_error").default'])))}));var c=l.scopeName("validate");t.validateName=c;var u,d={gen:l,allErrors:this.opts.allErrors,data:bg.default.data,parentData:bg.default.parentData,parentDataProperty:bg.default.parentDataProperty,dataNames:[bg.default.data],dataPathArr:[vd.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,vd.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:e,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:vd.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vd._)(QJ||(QJ=Pe(['""']))),opts:this.opts,self:this};try{this._compilations.add(t),(0,Ost.validateFunctionCode)(d),l.optimize(this.opts.code.optimize);var h=l.toString();u="".concat(l.scopeRefs(bg.default.scope),"return ").concat(h),this.opts.code.process&&(u=this.opts.code.process(u,t));var f=new Function("".concat(bg.default.self),"".concat(bg.default.scope),u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=t.schema,f.schemaEnv=t,t.$async&&(f.$async=!0),!0===this.opts.code.source&&(f.source={validateName:c,validateCode:h,scopeValues:l._values}),this.opts.unevaluated){var p=d.props,m=d.items;f.evaluated={props:p instanceof vd.Name?void 0:p,items:m instanceof vd.Name?void 0:m,dynamicProps:p instanceof vd.Name,dynamicItems:m instanceof vd.Name},f.source&&(f.source.evaluated=(0,vd.stringify)(f.evaluated))}return t.validate=f,t}catch(g){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),g}finally{this._compilations.delete(t)}}function Ist(t){return(0,yd.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:_j.call(this,t)}function Nge(t){var n,e,i,r=He(this._compilations);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((e=o).schema===(i=t).schema&&e.root===i.root&&e.baseId===i.baseId)return o}}catch(s){r.e(s)}finally{r.f()}}function Nst(t,n){for(var e;"string"==typeof(e=this.refs[n]);)n=e;return e||this.schemas[n]||uT.call(this,t,n)}function uT(t,n){var e=this.opts.uriResolver.parse(n),i=(0,yd._getFullPath)(this.opts.uriResolver,e),r=(0,yd.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===r)return bj.call(this,e,t);var o=(0,yd.normalizeId)(i),s=this.refs[o]||this.schemas[o];if("string"==typeof s){var a=uT.call(this,t,s);return"object"!==wn(a?.schema)?void 0:bj.call(this,e,a)}if("object"===wn(s?.schema)){if(s.validate||_j.call(this,s),o===(0,yd.normalizeId)(n)){var l=s.schema,c=this.opts.schemaId,u=l[c];return u&&(r=(0,yd.resolveUrl)(this.opts.uriResolver,r,u)),new cT({schema:l,schemaId:c,root:t,baseId:r})}return bj.call(this,e,s)}}sc.SchemaEnv=cT,sc.compileSchema=_j,sc.resolveRef=function(t,n,e){var i;e=(0,yd.resolveUrl)(this.opts.uriResolver,n,e);var r=t.refs[e];if(r)return r;var o=Nst.call(this,t,e);if(void 0===o){var s=null===(i=t.localRefs)||void 0===i?void 0:i[e];s&&(o=new cT({schema:s,schemaId:this.opts.schemaId,root:t,baseId:n}))}return void 0!==o?t.refs[e]=Ist.call(this,o):void 0},sc.getCompilingSchema=Nge,sc.resolveSchema=uT;var Fst=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function bj(t,n){var e,i=n.baseId,r=n.schema,o=n.root;if("/"===(null===(e=t.fragment)||void 0===e?void 0:e[0])){var s,a,l=He(t.fragment.slice(1).split("/"));try{for(l.s();!(s=l.n()).done;){var c=s.value;if("boolean"==typeof r)return;var u=r[(0,Ige.unescapeFragment)(c)];if(void 0===u)return;var d="object"===wn(r=u)&&r[this.opts.schemaId];!Fst.has(c)&&d&&(i=(0,yd.resolveUrl)(this.opts.uriResolver,i,d))}}catch(p){l.e(p)}finally{l.f()}if("boolean"!=typeof r&&r.$ref&&!(0,Ige.schemaHasRulesButRef)(r,this.RULES)){var h=(0,yd.resolveUrl)(this.opts.uriResolver,i,r.$ref);a=uT.call(this,o,h)}return(a=a||new cT({schema:r,schemaId:this.opts.schemaId,root:o,baseId:i})).schema!==a.root.schema?a:void 0}}var Pst={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},xj={},Fge={};(function(t){function n(){for(var Ee=arguments.length,qe=Array(Ee),Ke=0;Ke1){qe[0]=qe[0].slice(0,-1);for(var dt=qe.length-1,Ye=1;Ye= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=Math.floor,G=String.fromCharCode;function X(Ee){throw new RangeError(z[Ee])}function P(Ee,qe){var Ke=Ee.split("@"),dt="";return Ke.length>1&&(dt=Ke[0]+"@",Ee=Ke[1]),dt+function oe(Ee,qe){for(var Ke=[],dt=Ee.length;dt--;)Ke[dt]=qe(Ee[dt]);return Ke}((Ee=Ee.replace(B,".")).split("."),qe).join(".")}function W(Ee){for(var qe=[],Ke=0,dt=Ee.length;Ke=55296&&Ye<=56319&&Ke>1,Ee+=U(Ee/qe);Ee>455;dt+=f)Ee=U(Ee/35);return U(dt+36*Ee/(Ee+38))},N=function(Ee){var qe=[],Ke=Ee.length,dt=0,Ye=128,In=72,li=Ee.lastIndexOf("-");li<0&&(li=0);for(var vi=0;vi=128&&X("not-basic"),qe.push(Ee.charCodeAt(vi));for(var gi=li>0?li+1:0;gi=Ke&&X("invalid-input");var Sr=H(Ee.charCodeAt(gi++));(Sr>=f||Sr>U((h-dt)/to))&&X("overflow"),dt+=Sr*to;var Fe=xi<=In?1:xi>=In+26?26:xi-In;if(SrU(h/At)&&X("overflow"),to*=At}var Gt=qe.length+1;In=A(dt-Mr,Gt,0==Mr),U(dt/Gt)>h-Ye&&X("overflow"),Ye+=U(dt/Gt),dt%=Gt,qe.splice(dt++,0,Ye)}return String.fromCodePoint.apply(String,qe)},F=function(Ee){var qe=[],Ke=(Ee=W(Ee)).length,dt=128,Ye=0,In=72,li=!0,vi=!1,gi=void 0;try{for(var Mr,to=Ee[Symbol.iterator]();!(li=(Mr=to.next()).done);li=!0){var xi=Mr.value;xi<128&&qe.push(G(xi))}}catch(wd){vi=!0,gi=wd}finally{try{!li&&to.return&&to.return()}finally{if(vi)throw gi}}var Sr=qe.length,Fe=Sr;for(Sr&&qe.push("-");Fe=dt&&GnU((h-Ye)/ai)&&X("overflow"),Ye+=(At-dt)*ai,dt=At;var ni=!0,kr=!1,Fr=void 0;try{for(var jo,ba=Ee[Symbol.iterator]();!(ni=(jo=ba.next()).done);ni=!0){var bd=jo.value;if(bdh&&X("overflow"),bd==dt){for(var bu=Ye,xa=f;;xa+=f){var Bl=xa<=In?1:xa>=In+26?26:xa-In;if(bu>6|192).toString(16).toUpperCase()+"%"+(63&qe|128).toString(16).toUpperCase():"%"+(qe>>12|224).toString(16).toUpperCase()+"%"+(qe>>6&63|128).toString(16).toUpperCase()+"%"+(63&qe|128).toString(16).toUpperCase()}function Te(Ee){for(var qe="",Ke=0,dt=Ee.length;Ke=194&&Ye<224){if(dt-Ke>=6){var In=parseInt(Ee.substr(Ke+4,2),16);qe+=String.fromCharCode((31&Ye)<<6|63&In)}else qe+=Ee.substr(Ke,6);Ke+=6}else if(Ye>=224){if(dt-Ke>=9){var li=parseInt(Ee.substr(Ke+4,2),16),vi=parseInt(Ee.substr(Ke+7,2),16);qe+=String.fromCharCode((15&Ye)<<12|(63&li)<<6|63&vi)}else qe+=Ee.substr(Ke,9);Ke+=9}else qe+=Ee.substr(Ke,3),Ke+=3}return qe}function et(Ee,qe){function Ke(dt){var Ye=Te(dt);return Ye.match(qe.UNRESERVED)?Ye:dt}return Ee.scheme&&(Ee.scheme=String(Ee.scheme).replace(qe.PCT_ENCODED,Ke).toLowerCase().replace(qe.NOT_SCHEME,"")),void 0!==Ee.userinfo&&(Ee.userinfo=String(Ee.userinfo).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_USERINFO,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.host&&(Ee.host=String(Ee.host).replace(qe.PCT_ENCODED,Ke).toLowerCase().replace(qe.NOT_HOST,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.path&&(Ee.path=String(Ee.path).replace(qe.PCT_ENCODED,Ke).replace(Ee.scheme?qe.NOT_PATH:qe.NOT_PATH_NOSCHEME,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.query&&(Ee.query=String(Ee.query).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_QUERY,je).replace(qe.PCT_ENCODED,r)),void 0!==Ee.fragment&&(Ee.fragment=String(Ee.fragment).replace(qe.PCT_ENCODED,Ke).replace(qe.NOT_FRAGMENT,je).replace(qe.PCT_ENCODED,r)),Ee}function We(Ee){return Ee.replace(/^0*(.*)/,"$1")||"0"}function st(Ee,qe){var Ke=Ee.match(qe.IPV4ADDRESS)||[],dt=u(Ke,2)[1];return dt?dt.split(".").map(We).join("."):Ee}function $(Ee,qe){var Ke=Ee.match(qe.IPV6ADDRESS)||[],dt=u(Ke,3),Ye=dt[1],In=dt[2];if(Ye){for(var li=Ye.toLowerCase().split("::").reverse(),vi=u(li,2),gi=vi[0],Mr=vi[1],to=Mr?Mr.split(":").map(We):[],xi=gi.split(":").map(We),Sr=qe.IPV4ADDRESS.test(xi[xi.length-1]),Fe=Sr?7:8,At=xi.length-Fe,Gt=Array(Fe),ln=0;ln1){var $i=Gt.slice(0,mn.index),Gn=Gt.slice(mn.index+mn.length);ci=$i.join(":")+"::"+Gn.join(":")}else ci=Gt.join(":");return In&&(ci+="%"+In),ci}return Ee}var ae=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,le=void 0==="".match(/(){0}/)[1];function Re(Ee){var qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke={},dt=!1!==qe.iri?c:l;"suffix"===qe.reference&&(Ee=(qe.scheme?qe.scheme+":":"")+"//"+Ee);var Ye=Ee.match(ae);if(Ye){le?(Ke.scheme=Ye[1],Ke.userinfo=Ye[3],Ke.host=Ye[4],Ke.port=parseInt(Ye[5],10),Ke.path=Ye[6]||"",Ke.query=Ye[7],Ke.fragment=Ye[8],isNaN(Ke.port)&&(Ke.port=Ye[5])):(Ke.scheme=Ye[1]||void 0,Ke.userinfo=-1!==Ee.indexOf("@")?Ye[3]:void 0,Ke.host=-1!==Ee.indexOf("//")?Ye[4]:void 0,Ke.port=parseInt(Ye[5],10),Ke.path=Ye[6]||"",Ke.query=-1!==Ee.indexOf("?")?Ye[7]:void 0,Ke.fragment=-1!==Ee.indexOf("#")?Ye[8]:void 0,isNaN(Ke.port)&&(Ke.port=Ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ye[4]:void 0)),Ke.host&&(Ke.host=$(st(Ke.host,dt),dt)),Ke.reference=void 0!==Ke.scheme||void 0!==Ke.userinfo||void 0!==Ke.host||void 0!==Ke.port||Ke.path||void 0!==Ke.query?void 0===Ke.scheme?"relative":void 0===Ke.fragment?"absolute":"uri":"same-document",qe.reference&&"suffix"!==qe.reference&&qe.reference!==Ke.reference&&(Ke.error=Ke.error||"URI is not a "+qe.reference+" reference.");var In=ve[(qe.scheme||Ke.scheme||"").toLowerCase()];if(qe.unicodeSupport||In&&In.unicodeSupport)et(Ke,dt);else{if(Ke.host&&(qe.domainHost||In&&In.domainHost))try{Ke.host=ce.toASCII(Ke.host.replace(dt.PCT_ENCODED,Te).toLowerCase())}catch(li){Ke.error=Ke.error||"Host's domain name can not be converted to ASCII via punycode: "+li}et(Ke,l)}In&&In.parse&&In.parse(Ke,qe)}else Ke.error=Ke.error||"URI can not be parsed.";return Ke}var Ve=/^\.\.?\//,Ct=/^\/\.(\/|$)/,Ot=/^\/\.\.(\/|$)/,yn=/^\/?(?:.|\n)*?(?=\/|$)/;function Xn(Ee){for(var qe=[];Ee.length;)if(Ee.match(Ve))Ee=Ee.replace(Ve,"");else if(Ee.match(Ct))Ee=Ee.replace(Ct,"/");else if(Ee.match(Ot))Ee=Ee.replace(Ot,"/"),qe.pop();else if("."===Ee||".."===Ee)Ee="";else{var Ke=Ee.match(yn);if(!Ke)throw new Error("Unexpected dot segment condition");var dt=Ke[0];Ee=Ee.slice(dt.length),qe.push(dt)}return qe.join("")}function on(Ee){var qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ke=qe.iri?c:l,dt=[],Ye=ve[(qe.scheme||Ee.scheme||"").toLowerCase()];if(Ye&&Ye.serialize&&Ye.serialize(Ee,qe),Ee.host&&!Ke.IPV6ADDRESS.test(Ee.host)&&(qe.domainHost||Ye&&Ye.domainHost))try{Ee.host=qe.iri?ce.toUnicode(Ee.host):ce.toASCII(Ee.host.replace(Ke.PCT_ENCODED,Te).toLowerCase())}catch(vi){Ee.error=Ee.error||"Host's domain name can not be converted to "+(qe.iri?"Unicode":"ASCII")+" via punycode: "+vi}et(Ee,Ke),"suffix"!==qe.reference&&Ee.scheme&&(dt.push(Ee.scheme),dt.push(":"));var In=function Ze(Ee,qe){var Ke=!1!==qe.iri?c:l,dt=[];return void 0!==Ee.userinfo&&(dt.push(Ee.userinfo),dt.push("@")),void 0!==Ee.host&&dt.push($(st(String(Ee.host),Ke),Ke).replace(Ke.IPV6ADDRESS,function(Ye,In,li){return"["+In+(li?"%25"+li:"")+"]"})),"number"!=typeof Ee.port&&"string"!=typeof Ee.port||(dt.push(":"),dt.push(String(Ee.port))),dt.length?dt.join(""):void 0}(Ee,qe);if(void 0!==In&&("suffix"!==qe.reference&&dt.push("//"),dt.push(In),Ee.path&&"/"!==Ee.path.charAt(0)&&dt.push("/")),void 0!==Ee.path){var li=Ee.path;qe.absolutePath||Ye&&Ye.absolutePath||(li=Xn(li)),void 0===In&&(li=li.replace(/^\/\//,"/%2F")),dt.push(li)}return void 0!==Ee.query&&(dt.push("?"),dt.push(Ee.query)),void 0!==Ee.fragment&&(dt.push("#"),dt.push(Ee.fragment)),dt.join("")}function Ri(Ee,qe){var Ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},dt={};return arguments[3]||(Ee=Re(on(Ee,Ke),Ke),qe=Re(on(qe,Ke),Ke)),!(Ke=Ke||{}).tolerant&&qe.scheme?(dt.scheme=qe.scheme,dt.userinfo=qe.userinfo,dt.host=qe.host,dt.port=qe.port,dt.path=Xn(qe.path||""),dt.query=qe.query):(void 0!==qe.userinfo||void 0!==qe.host||void 0!==qe.port?(dt.userinfo=qe.userinfo,dt.host=qe.host,dt.port=qe.port,dt.path=Xn(qe.path||""),dt.query=qe.query):(qe.path?("/"===qe.path.charAt(0)?dt.path=Xn(qe.path):(dt.path=void 0===Ee.userinfo&&void 0===Ee.host&&void 0===Ee.port||Ee.path?Ee.path?Ee.path.slice(0,Ee.path.lastIndexOf("/")+1)+qe.path:qe.path:"/"+qe.path,dt.path=Xn(dt.path)),dt.query=qe.query):(dt.path=Ee.path,dt.query=void 0!==qe.query?qe.query:Ee.query),dt.userinfo=Ee.userinfo,dt.host=Ee.host,dt.port=Ee.port),dt.scheme=Ee.scheme),dt.fragment=qe.fragment,dt}function wr(Ee,qe){return Ee&&Ee.toString().replace(qe&&qe.iri?c.PCT_ENCODED:l.PCT_ENCODED,Te)}var Si={scheme:"http",domainHost:!0,parse:function(Ee,qe){return Ee.host||(Ee.error=Ee.error||"HTTP URIs must have a host."),Ee},serialize:function(Ee,qe){var Ke="https"===String(Ee.scheme).toLowerCase();return Ee.port!==(Ke?443:80)&&""!==Ee.port||(Ee.port=void 0),Ee.path||(Ee.path="/"),Ee}},Xr={scheme:"https",domainHost:Si.domainHost,parse:Si.parse,serialize:Si.serialize};function Ro(Ee){return"boolean"==typeof Ee.secure?Ee.secure:"wss"===String(Ee.scheme).toLowerCase()}var Rn={scheme:"ws",domainHost:!0,parse:function(Ee,qe){var Ke=Ee;return Ke.secure=Ro(Ke),Ke.resourceName=(Ke.path||"/")+(Ke.query?"?"+Ke.query:""),Ke.path=void 0,Ke.query=void 0,Ke},serialize:function(Ee,qe){if(Ee.port!==(Ro(Ee)?443:80)&&""!==Ee.port||(Ee.port=void 0),"boolean"==typeof Ee.secure&&(Ee.scheme=Ee.secure?"wss":"ws",Ee.secure=void 0),Ee.resourceName){var Ke=Ee.resourceName.split("?"),dt=u(Ke,2),Ye=dt[0],In=dt[1];Ee.path=Ye&&"/"!==Ye?Ye:void 0,Ee.query=In,Ee.resourceName=void 0}return Ee.fragment=void 0,Ee}},kt={scheme:"wss",domainHost:Rn.domainHost,parse:Rn.parse,serialize:Rn.serialize},pi={},Bi="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ar="[0-9A-Fa-f]",ko=e(e("%[EFef]"+Ar+"%"+Ar+Ar+"%"+Ar+Ar)+"|"+e("%[89A-Fa-f]"+Ar+"%"+Ar+Ar)+"|"+e("%"+Ar+Ar)),vt=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),di=new RegExp(Bi,"g"),ki=new RegExp(ko,"g"),Nr=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',vt),"g"),Jr=new RegExp(n("[^]",Bi,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),co=Jr;function Ks(Ee){var qe=Te(Ee);return qe.match(di)?qe:Ee}var Cr={scheme:"mailto",parse:function(Ee,qe){var Ke=Ee,dt=Ke.to=Ke.path?Ke.path.split(","):[];if(Ke.path=void 0,Ke.query){for(var Ye=!1,In={},li=Ke.query.split("&"),vi=0,gi=li.length;vi string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=function(){function A(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Oe(this,A),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts=nt(nt({},N),function y(A){var N,F,q,V,ce,ve,je,Te,et,We,st,$,ae,le,Re,Ze,Ve,Ct,Ot,yn,Xn,on,Ri,hn,vr,Er=A.strict,fr=null===(N=A.code)||void 0===N?void 0:N.optimize,wr=!0===fr||void 0===fr?1:fr||0,Si=null!==(q=null===(F=A.code)||void 0===F?void 0:F.regExp)&&void 0!==q?q:f,Xr=null!==(V=A.uriResolver)&&void 0!==V?V:h.default;return{strictSchema:null===(ve=null!==(ce=A.strictSchema)&&void 0!==ce?ce:Er)||void 0===ve||ve,strictNumbers:null===(Te=null!==(je=A.strictNumbers)&&void 0!==je?je:Er)||void 0===Te||Te,strictTypes:null!==(We=null!==(et=A.strictTypes)&&void 0!==et?et:Er)&&void 0!==We?We:"log",strictTuples:null!==($=null!==(st=A.strictTuples)&&void 0!==st?st:Er)&&void 0!==$?$:"log",strictRequired:null!==(le=null!==(ae=A.strictRequired)&&void 0!==ae?ae:Er)&&void 0!==le&&le,code:A.code?nt(nt({},A.code),{},{optimize:wr,regExp:Si}):{optimize:wr,regExp:Si},loopRequired:null!==(Re=A.loopRequired)&&void 0!==Re?Re:200,loopEnum:null!==(Ze=A.loopEnum)&&void 0!==Ze?Ze:200,meta:null===(Ve=A.meta)||void 0===Ve||Ve,messages:null===(Ct=A.messages)||void 0===Ct||Ct,inlineRefs:null===(Ot=A.inlineRefs)||void 0===Ot||Ot,schemaId:null!==(yn=A.schemaId)&&void 0!==yn?yn:"$id",addUsedSchema:null===(Xn=A.addUsedSchema)||void 0===Xn||Xn,validateSchema:null===(on=A.validateSchema)||void 0===on||on,validateFormats:null===(Ri=A.validateFormats)||void 0===Ri||Ri,unicodeRegExp:null===(hn=A.unicodeRegExp)||void 0===hn||hn,int32range:null===(vr=A.int32range)||void 0===vr||vr,uriResolver:Xr}}(N));var F=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:m,es5:F.es5,lines:F.lines}),this.logger=function G(A){if(!1===A)return U;if(void 0===A)return console;if(A.log&&A.warn&&A.error)return A;throw new Error("logger must implement log, warn and error methods")}(N.logger);var ce=N.validateFormats;N.validateFormats=!1,this.RULES=(0,o.getRules)(),C.call(this,g,N,"NOT SUPPORTED"),C.call(this,v,N,"DEPRECATED","warn"),this._metaOpts=j.call(this),N.formats&&B.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&z.call(this,N.keywords),"object"==wn(N.meta)&&this.addMetaSchema(N.meta),E.call(this),N.validateFormats=ce}return Ie(A,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var N=this.opts,F=N.$data,q=N.meta,V=N.schemaId,ce=d;"id"===V&&((ce=nt({},d)).id=ce.$id,delete ce.$id),q&&F&&this.addMetaSchema(ce,ce[V],!1)}},{key:"defaultMeta",value:function(){var N=this.opts,F=N.meta,q=N.schemaId;return this.opts.defaultMeta="object"==wn(F)?F[q]||F:void 0}},{key:"validate",value:function(N,F){var q;if("string"==typeof N){if(!(q=this.getSchema(N)))throw new Error('no schema with key or ref "'.concat(N,'"'))}else q=this.compile(N);var V=q(F);return"$async"in q||(this.errors=q.errors),V}},{key:"compile",value:function(N,F){var q=this._addSchema(N,F);return q.validate||this._compileSchemaEnv(q)}},{key:"compileAsync",value:function(N,F){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var q=this.opts.loadSchema;return V.call(this,N,F);function V(Re,Ze){return ce.apply(this,arguments)}function ce(){return(ce=or(_n().mark(function Re(Ze,Ve){var Ct;return _n().wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,ve.call(this,Ze.$schema);case 2:return Ct=this._addSchema(Ze,Ve),Ot.abrupt("return",Ct.validate||Te.call(this,Ct));case 4:case"end":return Ot.stop()}},Re,this)}))).apply(this,arguments)}function ve(Re){return je.apply(this,arguments)}function je(){return(je=or(_n().mark(function Re(Ze){return _n().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!Ze||this.getSchema(Ze)){Ve.next=3;break}return Ve.next=3,V.call(this,{$ref:Ze},!0);case 3:case"end":return Ve.stop()}},Re,this)}))).apply(this,arguments)}function Te(Re){return et.apply(this,arguments)}function et(){return(et=or(_n().mark(function Re(Ze){return _n().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.prev=0,Ve.abrupt("return",this._compileSchemaEnv(Ze));case 4:if(Ve.prev=4,Ve.t0=Ve.catch(0),Ve.t0 instanceof r.default){Ve.next=8;break}throw Ve.t0;case 8:return We.call(this,Ve.t0),Ve.next=11,st.call(this,Ve.t0.missingSchema);case 11:return Ve.abrupt("return",Te.call(this,Ze));case 12:case"end":return Ve.stop()}},Re,this,[[0,4]])}))).apply(this,arguments)}function We(Re){var Ze=Re.missingSchema,Ve=Re.missingRef;if(this.refs[Ze])throw new Error("AnySchema ".concat(Ze," is loaded but ").concat(Ve," cannot be resolved"))}function st(Re){return $.apply(this,arguments)}function $(){return($=or(_n().mark(function Re(Ze){var Ve;return _n().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,ae.call(this,Ze);case 2:if(Ve=Ct.sent,this.refs[Ze]){Ct.next=6;break}return Ct.next=6,ve.call(this,Ve.$schema);case 6:this.refs[Ze]||this.addSchema(Ve,Ze,F);case 7:case"end":return Ct.stop()}},Re,this)}))).apply(this,arguments)}function ae(Re){return le.apply(this,arguments)}function le(){return(le=or(_n().mark(function Re(Ze){var Ve;return _n().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!(Ve=this._loading[Ze])){Ct.next=3;break}return Ct.abrupt("return",Ve);case 3:return Ct.prev=3,Ct.next=6,this._loading[Ze]=q(Ze);case 6:return Ct.abrupt("return",Ct.sent);case 7:return Ct.prev=7,delete this._loading[Ze],Ct.finish(7);case 10:case"end":return Ct.stop()}},Re,this,[[3,,7,10]])}))).apply(this,arguments)}}},{key:"addSchema",value:function(N,F,q){var V,ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(N)){var ve,je=He(N);try{for(je.s();!(ve=je.n()).done;)this.addSchema(ve.value,void 0,q,ce)}catch(We){je.e(We)}finally{je.f()}return this}if("object"===wn(N)){var et=this.opts.schemaId;if(void 0!==(V=N[et])&&"string"!=typeof V)throw new Error("schema ".concat(et," must be string"))}return F=(0,l.normalizeId)(F||V),this._checkUnique(F),this.schemas[F]=this._addSchema(N,q,F,ce,!0),this}},{key:"addMetaSchema",value:function(N,F){return this.addSchema(N,F,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema),this}},{key:"validateSchema",value:function(N,F){if("boolean"==typeof N)return!0;var q;if(void 0!==(q=N.$schema)&&"string"!=typeof q)throw new Error("$schema must be a string");if(!(q=q||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var V=this.validate(q,N);if(!V&&F){var ce="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(ce);this.logger.error(ce)}return V}},{key:"getSchema",value:function(N){for(var F;"string"==typeof(F=D.call(this,N));)N=F;if(void 0===F){var V=new s.SchemaEnv({schema:{},schemaId:this.opts.schemaId});if(!(F=s.resolveSchema.call(this,V,N)))return;this.refs[N]=F}return F.validate||this._compileSchemaEnv(F)}},{key:"removeSchema",value:function(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(wn(N)){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var F=D.call(this,N);return"object"==wn(F)&&this._cache.delete(F.schema),delete this.schemas[N],delete this.refs[N],this;case"object":this._cache.delete(N);var V=N[this.opts.schemaId];return V&&(V=(0,l.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(N){var F,q=He(N);try{for(q.s();!(F=q.n()).done;)this.addKeyword(F.value)}catch(ce){q.e(ce)}finally{q.f()}return this}},{key:"addKeyword",value:function(N,F){var q,V=this;if("string"==typeof N)q=N,"object"==wn(F)&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=q);else{if("object"!=wn(N)||void 0!==F)throw new Error("invalid addKeywords parameters");if(q=(F=N).keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(oe.call(this,q,F),!F)return(0,u.eachItem)(q,function(ve){return P.call(V,ve)}),this;J.call(this,F);var ce=nt(nt({},F),{},{type:(0,c.getJSONTypes)(F.type),schemaType:(0,c.getJSONTypes)(F.schemaType)});return(0,u.eachItem)(q,0===ce.type.length?function(ve){return P.call(V,ve,ce)}:function(ve){return ce.type.forEach(function(je){return P.call(V,ve,ce,je)})}),this}},{key:"getKeyword",value:function(N){var F=this.RULES.all[N];return"object"==wn(F)?F.definition:!!F}},{key:"removeKeyword",value:function(N){var F=this.RULES;delete F.keywords[N],delete F.all[N];var q,V=He(F.rules);try{for(V.s();!(q=V.n()).done;){var ce=q.value,ve=ce.rules.findIndex(function(je){return je.keyword===N});ve>=0&&ce.rules.splice(ve,1)}}catch(je){V.e(je)}finally{V.f()}return this}},{key:"addFormat",value:function(N,F){return"string"==typeof F&&(F=new RegExp(F)),this.formats[N]=F,this}},{key:"errorsText",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=F.separator,V=void 0===q?", ":q,ce=F.dataVar,ve=void 0===ce?"data":ce;return N&&0!==N.length?N.map(function(je){return"".concat(ve).concat(je.instancePath," ").concat(je.message)}).reduce(function(je,Te){return je+V+Te}):"No errors"}},{key:"$dataMetaSchema",value:function(N,F){var q=this.RULES.all;N=JSON.parse(JSON.stringify(N));var V,ce=He(F);try{for(ce.s();!(V=ce.n()).done;){var ve,je=V.value.split("/").slice(1),Te=N,et=He(je);try{for(et.s();!(ve=et.n()).done;)Te=Te[ve.value]}catch(le){et.e(le)}finally{et.f()}for(var We in q){var st=q[We];if("object"==wn(st)){var ae=Te[We];st.definition.$data&&ae&&(Te[We]=pe(ae))}}}}catch(le){ce.e(le)}finally{ce.f()}return N}},{key:"_removeAllSchemas",value:function(N,F){for(var q in N){var V=N[q];F&&!F.test(q)||("string"==typeof V?delete N[q]:V&&!V.meta&&(this._cache.delete(V.schema),delete N[q]))}}},{key:"_addSchema",value:function(N,F,q){var V,ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,ve=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,je=this.opts.schemaId;if("object"==wn(N))V=N[je];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof N)throw new Error("schema must be object or boolean")}var Te=this._cache.get(N);if(void 0!==Te)return Te;q=(0,l.normalizeId)(V||q);var et=l.getSchemaRefs.call(this,N,q);return Te=new s.SchemaEnv({schema:N,schemaId:je,meta:F,baseId:q,localRefs:et}),this._cache.set(Te.schema,Te),ve&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=Te),ce&&this.validateSchema(N,!0),Te}},{key:"_checkUnique",value:function(N){if(this.schemas[N]||this.refs[N])throw new Error('schema with key or id "'.concat(N,'" already exists'))}},{key:"_compileSchemaEnv",value:function(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}},{key:"_compileMetaSchema",value:function(N){var F=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=F}}}]),A}();function C(A,N,F){var q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var V in A){var ce=V;ce in N&&this.logger[q]("".concat(F,": option ").concat(V,". ").concat(A[ce]))}}function D(A){return A=(0,l.normalizeId)(A),this.schemas[A]||this.refs[A]}function E(){var A=this.opts.schemas;if(A)if(Array.isArray(A))this.addSchema(A);else for(var N in A)this.addSchema(A[N],N)}function B(){for(var A in this.opts.formats){var N=this.opts.formats[A];N&&this.addFormat(A,N)}}function z(A){if(Array.isArray(A))this.addVocabulary(A);else for(var N in this.logger.warn("keywords option as map is deprecated, pass array"),A){var F=A[N];F.keyword||(F.keyword=N),this.addKeyword(F)}}function j(){var A,N=nt({},this.opts),F=He(p);try{for(F.s();!(A=F.n()).done;)delete N[A.value]}catch(q){F.e(q)}finally{F.f()}return N}t.default=b,b.ValidationError=i.default,b.MissingRefError=r.default;var U={log:function(){},warn:function(){},error:function(){}},X=/^[a-z_$][a-z0-9_$:-]*$/i;function oe(A,N){var F=this.RULES;if((0,u.eachItem)(A,function(q){if(F.keywords[q])throw new Error("Keyword ".concat(q," is already defined"));if(!X.test(q))throw new Error("Keyword ".concat(q," has invalid name"))}),N&&N.$data&&!("code"in N)&&!("validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function P(A,N,F){var q,V=this,ce=N?.post;if(F&&ce)throw new Error('keyword with "post" flag cannot have "type"');var ve=this.RULES,je=ce?ve.post:ve.rules.find(function(et){return et.type===F});if(je||ve.rules.push(je={type:F,rules:[]}),ve.keywords[A]=!0,N){var Te={keyword:A,definition:nt(nt({},N),{},{type:(0,c.getJSONTypes)(N.type),schemaType:(0,c.getJSONTypes)(N.schemaType)})};N.before?W.call(this,je,Te,N.before):je.rules.push(Te),ve.all[A]=Te,null===(q=N.implements)||void 0===q||q.forEach(function(et){return V.addKeyword(et)})}}function W(A,N,F){var q=A.rules.findIndex(function(V){return V.keyword===F});q>=0?A.rules.splice(q,0,N):(A.rules.push(N),this.logger.warn("rule ".concat(F," is not defined")))}function J(A){var N=A.metaSchema;void 0!==N&&(A.$data&&this.opts.$data&&(N=pe(N)),A.validateSchema=this.compile(N,!0))}var H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function pe(A){return{anyOf:[A,H]}}}(lge);var wj={},Cj={},Sj={};Object.defineProperty(Sj,"__esModule",{value:!0}),Sj.default={keyword:"id",code:function(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var xg={};Object.defineProperty(xg,"__esModule",{value:!0}),xg.callRef=xg.getValidate=void 0;var jst=yj(),Rge=gd(),ac=Tr(),d1=Vp(),jge=sc,dT=zr,Lst={keyword:"$ref",schemaType:"string",code:function(t){var n=t.gen,e=t.schema,i=t.it,r=i.baseId,o=i.schemaEnv,s=i.validateName,a=i.opts,l=i.self,c=o.root;if(("#"===e||"#/"===e)&&r===c.baseId)return function(){if(o===c)return hT(t,s,o,o.$async);var m=n.scopeValue("root",{ref:c});return hT(t,(0,ac._)(ZJ||(ZJ=Pe(["",".validate"])),m),c,c.$async)}();var u,d,h,f,m,g,p=jge.resolveRef.call(l,c,r,e);if(void 0===p)throw new jst.default(i.opts.uriResolver,r,e);return p instanceof jge.SchemaEnv?(g=Lge(t,m=p),void hT(t,g,m,m.$async)):(u=p,d=n.scopeValue("schema",!0===a.code.source?{ref:u,code:(0,ac.stringify)(u)}:{ref:u}),h=n.name("valid"),f=t.subschema({schema:u,dataTypes:[],schemaPath:ac.nil,topSchemaRef:d,errSchemaPath:e},h),t.mergeEvaluated(f),void t.ok(h))}};function Lge(t,n){var e=t.gen;return n.validate?e.scopeValue("validate",{ref:n.validate}):(0,ac._)(eK||(eK=Pe(["",".validate"])),e.scopeValue("wrapper",{ref:n}))}function hT(t,n,e,i){var r=t.gen,o=t.it,s=o.allErrors,a=o.schemaEnv,l=o.opts.passContext?d1.default.this:ac.nil;function c(d){var h=(0,ac._)(iK||(iK=Pe(["",".errors"])),d);r.assign(d1.default.vErrors,(0,ac._)(rK||(rK=Pe([""," === null ? "," : ",".concat(",")"])),d1.default.vErrors,h,d1.default.vErrors,h)),r.assign(d1.default.errors,(0,ac._)(oK||(oK=Pe(["",".length"])),d1.default.vErrors))}function u(d){var h;if(o.opts.unevaluated){var f=null===(h=e?.validate)||void 0===h?void 0:h.evaluated;if(!0!==o.props)if(f&&!f.dynamicProps)void 0!==f.props&&(o.props=dT.mergeEvaluated.props(r,f.props,o.props));else{var p=r.var("props",(0,ac._)(sK||(sK=Pe(["",".evaluated.props"])),d));o.props=dT.mergeEvaluated.props(r,p,o.props,ac.Name)}if(!0!==o.items)if(f&&!f.dynamicItems)void 0!==f.items&&(o.items=dT.mergeEvaluated.items(r,f.items,o.items));else{var m=r.var("items",(0,ac._)(aK||(aK=Pe(["",".evaluated.items"])),d));o.items=dT.mergeEvaluated.items(r,m,o.items,ac.Name)}}}i?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");var d=r.let("valid");r.try(function(){r.code((0,ac._)(tK||(tK=Pe(["await ",""])),(0,Rge.callValidateCode)(t,n,l))),u(n),s||r.assign(d,!0)},function(h){r.if((0,ac._)(nK||(nK=Pe(["!("," instanceof ",")"])),h,o.ValidationError),function(){return r.throw(h)}),c(h),s||r.assign(d,!1)}),t.ok(d)}():t.result((0,Rge.callValidateCode)(t,n,l),function(){return u(n)},function(){return c(n)})}xg.getValidate=Lge,xg.callRef=hT,xg.default=Lst,Object.defineProperty(Cj,"__esModule",{value:!0}),Cj.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Sj.default,xg.default];var kj={},Dj={};Object.defineProperty(Dj,"__esModule",{value:!0});var fT=Tr(),Up=fT.operators,pT={maximum:{okStr:"<=",ok:Up.LTE,fail:Up.GT},minimum:{okStr:">=",ok:Up.GTE,fail:Up.LT},exclusiveMaximum:{okStr:"<",ok:Up.LT,fail:Up.GTE},exclusiveMinimum:{okStr:">",ok:Up.GT,fail:Up.LTE}},Vst={message:function(t){var n=t.keyword,e=t.schemaCode;return(0,fT.str)(lK||(lK=Pe(["must be "," ",""])),pT[n].okStr,e)},params:function(t){var n=t.keyword,e=t.schemaCode;return(0,fT._)(cK||(cK=Pe(["{comparison: ",", limit: ","}"])),pT[n].okStr,e)}},Hst={keyword:Object.keys(pT),type:"number",schemaType:"number",$data:!0,error:Vst,code:function(t){var n=t.keyword,e=t.data,i=t.schemaCode;t.fail$data((0,fT._)(uK||(uK=Pe([""," "," "," || isNaN(",")"])),e,pT[n].fail,i,e))}};Dj.default=Hst;var Tj={};Object.defineProperty(Tj,"__esModule",{value:!0});var nx=Tr(),Ust={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,nx.str)(dK||(dK=Pe(["must be multiple of ",""])),n)},params:function(t){var n=t.schemaCode;return(0,nx._)(hK||(hK=Pe(["{multipleOf: ","}"])),n)}},code:function(t){var e=t.data,i=t.schemaCode,r=t.it.opts.multipleOfPrecision,o=t.gen.let("res"),s=r?(0,nx._)(fK||(fK=Pe(["Math.abs(Math.round(",") - ",") > 1e-",""])),o,o,r):(0,nx._)(pK||(pK=Pe([""," !== parseInt(",")"])),o,o);t.fail$data((0,nx._)(mK||(mK=Pe(["("," === 0 || ("," = ","/",", ","))"])),i,o,e,i,s))}};Tj.default=Ust;var Ej={},Aj={};function Bge(t){for(var n,e=t.length,i=0,r=0;r=55296&&n<=56319&&r=a.loopRequired;if(s.allErrors?function(){if(l||o)t.block$data(ox.nil,g);else{var v,y=He(e);try{for(y.s();!(v=y.n()).done;)(0,rx.checkReportMissingProp)(t,v.value)}catch(C){y.e(C)}finally{y.f()}}}():function(){var v=n.let("missing");if(l||o){var y=n.let("valid",!0);t.block$data(y,function(){return C=y,t.setParams({missingProperty:b=v}),void n.forOf(b,i,function(){n.assign(C,(0,rx.propertyInData)(n,r,b,a.ownProperties)),n.if((0,ox.not)(C),function(){t.error(),n.break()})},ox.nil);var b,C}),t.ok(y)}else n.if((0,rx.checkMissingProp)(t,e,v)),(0,rx.reportMissingProp)(t,v),n.else()}(),a.strictRequired){var c,u=t.parentSchema.properties,d=t.it.definedProperties,h=He(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(void 0===u?.[f]&&!d.has(f)){var p=s.schemaEnv.baseId+s.errSchemaPath,m='required property "'.concat(f,'" is not defined at "').concat(p,'" (strictRequired)');(0,Qst.checkStrictMode)(s,m,s.opts.strictRequired)}}}catch(v){h.e(v)}finally{h.f()}}}function g(){n.forOf("prop",i,function(v){t.setParams({missingProperty:v}),n.if((0,rx.noPropertyInData)(n,r,v,a.ownProperties),function(){return t.error()})})}}};Ij.default=Zst;var Nj={};Object.defineProperty(Nj,"__esModule",{value:!0});var sx=Tr(),eat={message:function(t){var e=t.schemaCode,i="maxItems"===t.keyword?"more":"fewer";return(0,sx.str)(MK||(MK=Pe(["must NOT have "," than "," items"])),i,e)},params:function(t){var n=t.schemaCode;return(0,sx._)(OK||(OK=Pe(["{limit: ","}"])),n)}},tat={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:eat,code:function(t){var e=t.data,i=t.schemaCode,r="maxItems"===t.keyword?sx.operators.GT:sx.operators.LT;t.fail$data((0,sx._)(IK||(IK=Pe(["",".length "," ",""])),e,r,i))}};Nj.default=tat;var Fj={},ax={};Object.defineProperty(ax,"__esModule",{value:!0});var $ge=kge;$ge.code='require("ajv/dist/runtime/equal").default',ax.default=$ge,Object.defineProperty(Fj,"__esModule",{value:!0});var Pj=ex,Qa=Tr(),nat=zr,iat=ax,rat={message:function(t){var n=t.params,e=n.i,i=n.j;return(0,Qa.str)(NK||(NK=Pe(["must NOT have duplicate items (items ## "," and "," are identical)"])),i,e)},params:function(t){var n=t.params,e=n.i,i=n.j;return(0,Qa._)(FK||(FK=Pe(["{i: ",", j: ","}"])),e,i)}},oat={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:rat,code:function(t){var n=t.gen,e=t.data,o=t.parentSchema,s=t.schemaCode,a=t.it;if(t.$data||t.schema){var l=n.let("valid"),c=o.items?(0,Pj.getSchemaTypes)(o.items):[];t.block$data(l,function(){var h=n.let("i",(0,Qa._)(RK||(RK=Pe(["",".length"])),e)),f=n.let("j");t.setParams({i:h,j:f}),n.assign(l,!0),n.if((0,Qa._)(jK||(jK=Pe([""," > 1"])),h),function(){return(c.length>0&&!c.some(function(p){return"object"===p||"array"===p})?u:d)(h,f)})},(0,Qa._)(PK||(PK=Pe([""," === false"])),s)),t.ok(l)}function u(h,f){var p=n.name("item"),m=(0,Pj.checkDataTypes)(c,p,a.opts.strictNumbers,Pj.DataType.Wrong),g=n.const("indices",(0,Qa._)(LK||(LK=Pe(["{}"]))));n.for((0,Qa._)(BK||(BK=Pe([";","--;"])),h),function(){n.let(p,(0,Qa._)($K||($K=Pe(["","[","]"])),e,h)),n.if(m,(0,Qa._)(VK||(VK=Pe(["continue"])))),c.length>1&&n.if((0,Qa._)(HK||(HK=Pe(["typeof ",' == "string"'])),p),(0,Qa._)(UK||(UK=Pe(["",' += "_"'])),p)),n.if((0,Qa._)(zK||(zK=Pe(["typeof ","[",'] == "number"'])),g,p),function(){n.assign(f,(0,Qa._)(GK||(GK=Pe(["","[","]"])),g,p)),t.error(),n.assign(l,!1).break()}).code((0,Qa._)(WK||(WK=Pe(["","[","] = ",""])),g,p,h))})}function d(h,f){var p=(0,nat.useFunc)(n,iat.default),m=n.name("outer");n.label(m).for((0,Qa._)(qK||(qK=Pe([";","--;"])),h),function(){return n.for((0,Qa._)(YK||(YK=Pe([""," = ","; ","--;"])),f,h,f),function(){return n.if((0,Qa._)(XK||(XK=Pe(["","(","[","], ","[","])"])),p,e,h,e,f),function(){t.error(),n.assign(l,!1).break(m)})})})}}};Fj.default=oat;var Rj={};Object.defineProperty(Rj,"__esModule",{value:!0});var jj=Tr(),sat=zr,aat=ax,lat={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:function(t){var n=t.schemaCode;return(0,jj._)(JK||(JK=Pe(["{allowedValue: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,r=t.schemaCode,o=t.schema;t.$data||o&&"object"==wn(o)?t.fail$data((0,jj._)(KK||(KK=Pe(["!","(",", ",")"])),(0,sat.useFunc)(n,aat.default),e,r)):t.fail((0,jj._)(QK||(QK=Pe([""," !== ",""])),o,e))}};Rj.default=lat;var Lj={};Object.defineProperty(Lj,"__esModule",{value:!0});var lx=Tr(),cat=zr,uat=ax,dat={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:function(t){var n=t.schemaCode;return(0,lx._)(ZK||(ZK=Pe(["{allowedValues: ","}"])),n)}},code:function(t){var n=t.gen,e=t.data,i=t.$data,r=t.schema,o=t.schemaCode,s=t.it;if(!i&&0===r.length)throw new Error("enum must have non-empty array");var a,l,u=function(){return a??(a=(0,cat.useFunc)(n,uat.default))};if(r.length>=s.opts.loopEnum||i)l=n.let("valid"),t.block$data(l,function(){n.assign(l,!1),n.forOf("v",o,function(h){return n.if((0,lx._)(eQ||(eQ=Pe(["","(",", ",")"])),u(),e,h),function(){return n.assign(l,!0).break()})})});else{if(!Array.isArray(r))throw new Error("ajv implementation error");var d=n.const("vSchema",o);l=lx.or.apply(void 0,ui(r.map(function(h,f){return p=d,"object"===wn(g=r[m=f])&&null!==g?(0,lx._)(tQ||(tQ=Pe(["","(",", ","[","])"])),u(),e,p,m):(0,lx._)(nQ||(nQ=Pe([""," === ",""])),e,g);var p,m,g})))}t.pass(l)}};Lj.default=dat,Object.defineProperty(kj,"__esModule",{value:!0}),kj.default=[Dj.default,Tj.default,Ej.default,Mj.default,Oj.default,Ij.default,Nj.default,Fj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Rj.default,Lj.default];var Bj={},h1={};Object.defineProperty(h1,"__esModule",{value:!0}),h1.validateAdditionalItems=void 0;var Cg=Tr(),$j=zr,wat={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,Cg.str)(iQ||(iQ=Pe(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,Cg._)(rQ||(rQ=Pe(["{limit: ","}"])),n)}},code:function(t){var e=t.it,i=t.parentSchema.items;Array.isArray(i)?Vge(t,i):(0,$j.checkStrictMode)(e,'"additionalItems" is ignored when "items" is not an array of schemas')}};function Vge(t,n){var e=t.gen,i=t.schema,r=t.data,o=t.keyword,s=t.it;s.items=!0;var a=e.const("len",(0,Cg._)(oQ||(oQ=Pe(["",".length"])),r));if(!1===i)t.setParams({len:n.length}),t.pass((0,Cg._)(sQ||(sQ=Pe([""," <= ",""])),a,n.length));else if("object"==wn(i)&&!(0,$j.alwaysValidSchema)(s,i)){var l=e.var("valid",(0,Cg._)(aQ||(aQ=Pe([""," <= ",""])),a,n.length));e.if((0,Cg.not)(l),function(){return c=l,void e.forRange("i",n.length,a,function(u){t.subschema({keyword:o,dataProp:u,dataPropType:$j.Type.Num},c),s.allErrors||e.if((0,Cg.not)(c),function(){return e.break()})});var c}),t.ok(l)}}h1.validateAdditionalItems=Vge,h1.default=wat;var Vj={},f1={};Object.defineProperty(f1,"__esModule",{value:!0}),f1.validateTuple=void 0;var Hge=Tr(),gT=zr,Cat=gd(),Sat={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code:function(t){var n=t.schema,e=t.it;if(Array.isArray(n))return Uge(t,"additionalItems",n);e.items=!0,(0,gT.alwaysValidSchema)(e,n)||t.ok((0,Cat.validateArray)(t))}};function Uge(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.schema,i=t.gen,o=t.data,s=t.keyword,a=t.it;(function u(d){var h=a.opts,f=a.errSchemaPath,p=e.length;if(h.strictTuples&&!(p===d.minItems&&(p===d.maxItems||!1===d[n]))){var g='"'.concat(s,'" is ').concat(p,"-tuple, but minItems or maxItems/").concat(n,' are not specified or different at path "').concat(f,'"');(0,gT.checkStrictMode)(a,g,h.strictTuples)}})(t.parentSchema),a.opts.unevaluated&&e.length&&!0!==a.items&&(a.items=gT.mergeEvaluated.items(i,e.length,a.items));var l=i.name("valid"),c=i.const("len",(0,Hge._)(lQ||(lQ=Pe(["",".length"])),o));e.forEach(function(d,h){(0,gT.alwaysValidSchema)(a,d)||(i.if((0,Hge._)(cQ||(cQ=Pe([""," > ",""])),c,h),function(){return t.subschema({keyword:s,schemaProp:h,dataProp:h},l)}),t.ok(l))})}f1.validateTuple=Uge,f1.default=Sat,Object.defineProperty(Vj,"__esModule",{value:!0});var kat=f1,Dat={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:function(t){return(0,kat.validateTuple)(t,"items")}};Vj.default=Dat;var Hj={};Object.defineProperty(Hj,"__esModule",{value:!0});var zge=Tr(),Tat=zr,Eat=gd(),Aat=h1,Mat={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:function(t){var n=t.params.len;return(0,zge.str)(uQ||(uQ=Pe(["must NOT have more than "," items"])),n)},params:function(t){var n=t.params.len;return(0,zge._)(dQ||(dQ=Pe(["{limit: ","}"])),n)}},code:function(t){var n=t.schema,i=t.it,r=t.parentSchema.prefixItems;i.items=!0,(0,Tat.alwaysValidSchema)(i,n)||(r?(0,Aat.validateAdditionalItems)(t,r):t.ok((0,Eat.validateArray)(t)))}};Hj.default=Mat;var Uj={};Object.defineProperty(Uj,"__esModule",{value:!0});var _u=Tr(),vT=zr,Oat={message:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,_u.str)(hQ||(hQ=Pe(["must contain at least "," valid item(s)"])),e):(0,_u.str)(fQ||(fQ=Pe(["must contain at least "," and no more than "," valid item(s)"])),e,i)},params:function(t){var n=t.params,e=n.min,i=n.max;return void 0===i?(0,_u._)(pQ||(pQ=Pe(["{minContains: ","}"])),e):(0,_u._)(mQ||(mQ=Pe(["{minContains: ",", maxContains: ","}"])),e,i)}},Iat={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Oat,code:function(t){var n,e,i=t.gen,r=t.schema,o=t.parentSchema,s=t.data,a=t.it,l=o.minContains;a.opts.next?(n=void 0===l?1:l,e=o.maxContains):n=1;var u=i.const("len",(0,_u._)(gQ||(gQ=Pe(["",".length"])),s));if(t.setParams({min:n,max:e}),void 0!==e||0!==n){if(void 0!==e&&n>e)return(0,vT.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,vT.alwaysValidSchema)(a,r)){var d=(0,_u._)(vQ||(vQ=Pe([""," >= ",""])),u,n);return void 0!==e&&(d=(0,_u._)(yQ||(yQ=Pe([""," && "," <= ",""])),d,u,e)),void t.pass(d)}a.items=!0;var h=i.name("valid");void 0===e&&1===n?p(h,function(){return i.if(h,function(){return i.break()})}):0===n?(i.let(h,!0),void 0!==e&&i.if((0,_u._)(_Q||(_Q=Pe(["",".length > 0"])),s),f)):(i.let(h,!1),f()),t.result(h,function(){return t.reset()})}else(0,vT.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');function f(){var m=i.name("_valid"),g=i.let("count",0);p(m,function(){return i.if(m,function(){return v=g,i.code((0,_u._)(bQ||(bQ=Pe(["","++"])),v)),void(void 0===e?i.if((0,_u._)(xQ||(xQ=Pe([""," >= ",""])),v,n),function(){return i.assign(h,!0).break()}):(i.if((0,_u._)(wQ||(wQ=Pe([""," > ",""])),v,e),function(){return i.assign(h,!1).break()}),1===n?i.assign(h,!0):i.if((0,_u._)(CQ||(CQ=Pe([""," >= ",""])),v,n),function(){return i.assign(h,!0)})));var v})})}function p(m,g){i.forRange("i",0,u,function(v){t.subschema({keyword:"contains",dataProp:v,dataPropType:vT.Type.Num,compositeRule:!0},m),g()})}}};Uj.default=Iat;var Gge={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;var n=Tr(),e=zr,i=gd();t.error={message:function(a){var l=a.params,c=l.property,d=l.deps,h=1===l.depsCount?"property":"properties";return(0,n.str)(SQ||(SQ=Pe(["must have "," "," when property "," is present"])),h,d,c)},params:function(a){var l=a.params,c=l.property,u=l.depsCount,d=l.deps,h=l.missingProperty;return(0,n._)(kQ||(kQ=Pe(["{property: ",",\n missingProperty: ",",\n depsCount: ",",\n deps: ","}"])),c,h,u,d)}};var r={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code:function(a){var l=Jn(function(d){var h=d.schema,f={},p={};for(var m in h)"__proto__"!==m&&((Array.isArray(h[m])?f:p)[m]=h[m]);return[f,p]}(a),2),u=l[1];o(a,l[0]),s(a,u)}};function o(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.it;if(0!==Object.keys(l).length){var h=c.let("missing"),f=function(m){var g=l[m];if(0===g.length)return"continue";var v=(0,i.propertyInData)(c,u,m,d.opts.ownProperties);a.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),d.allErrors?c.if(v,function(){var y,b=He(g);try{for(b.s();!(y=b.n()).done;)(0,i.checkReportMissingProp)(a,y.value)}catch(D){b.e(D)}finally{b.f()}}):(c.if((0,n._)(DQ||(DQ=Pe([""," && (",")"])),v,(0,i.checkMissingProp)(a,g,h))),(0,i.reportMissingProp)(a,h),c.else())};for(var p in l)f(p)}}function s(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.schema,c=a.gen,u=a.data,d=a.keyword,h=a.it,f=c.name("valid"),p=function(g){if((0,e.alwaysValidSchema)(h,l[g]))return"continue";c.if((0,i.propertyInData)(c,u,g,h.opts.ownProperties),function(){var v=a.subschema({keyword:d,schemaProp:g},f);a.mergeValidEvaluated(v,f)},function(){return c.var(f,!0)}),a.ok(f)};for(var m in l)p(m)}t.validatePropertyDeps=o,t.validateSchemaDeps=s,t.default=r}(Gge);var zj={};Object.defineProperty(zj,"__esModule",{value:!0});var Wge=Tr(),Nat=zr,Fat={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:function(t){var n=t.params;return(0,Wge._)(TQ||(TQ=Pe(["{propertyName: ","}"])),n.propertyName)}},code:function(t){var n=t.gen,i=t.data,r=t.it;if(!(0,Nat.alwaysValidSchema)(r,t.schema)){var o=n.name("valid");n.forIn("key",i,function(s){t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),n.if((0,Wge.not)(o),function(){t.error(!0),r.allErrors||n.break()})}),t.ok(o)}}};zj.default=Fat;var yT={};Object.defineProperty(yT,"__esModule",{value:!0});var _T=gd(),_d=Tr(),Pat=Vp(),bT=zr,Rat={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:function(t){var n=t.params;return(0,_d._)(EQ||(EQ=Pe(["{additionalProperty: ","}"])),n.additionalProperty)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.data,o=t.errsCount,s=t.it;if(!o)throw new Error("ajv implementation error");var a=s.allErrors,l=s.opts;if(s.props=!0,"all"===l.removeAdditional||!(0,bT.alwaysValidSchema)(s,e)){var c=(0,_T.allSchemaProperties)(i.properties),u=(0,_T.allSchemaProperties)(i.patternProperties);n.forIn("key",r,function(p){c.length||u.length?n.if(function(m){var g;if(c.length>8){var v=(0,bT.schemaRefOrVal)(s,i.properties,"properties");g=(0,_T.isOwnProperty)(n,v,m)}else g=c.length?_d.or.apply(void 0,ui(c.map(function(y){return(0,_d._)(MQ||(MQ=Pe([""," === ",""])),m,y)}))):_d.nil;return u.length&&(g=_d.or.apply(void 0,[g].concat(ui(u.map(function(y){return(0,_d._)(OQ||(OQ=Pe(["",".test(",")"])),(0,_T.usePattern)(t,y),m)}))))),(0,_d.not)(g)}(p),function(){return h(p)}):h(p)}),t.ok((0,_d._)(AQ||(AQ=Pe([""," === ",""])),o,Pat.default.errors))}function d(p){n.code((0,_d._)(IQ||(IQ=Pe(["delete ","[","]"])),r,p))}function h(p){if("all"===l.removeAdditional||l.removeAdditional&&!1===e)d(p);else{if(!1===e)return t.setParams({additionalProperty:p}),t.error(),void(a||n.break());if("object"==wn(e)&&!(0,bT.alwaysValidSchema)(s,e)){var m=n.name("valid");"failing"===l.removeAdditional?(f(p,m,!1),n.if((0,_d.not)(m),function(){t.reset(),d(p)})):(f(p,m),a||n.if((0,_d.not)(m),function(){return n.break()}))}}}function f(p,m,g){var v={keyword:"additionalProperties",dataProp:p,dataPropType:bT.Type.Str};!1===g&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,m)}}};yT.default=Rat;var Gj={};Object.defineProperty(Gj,"__esModule",{value:!0});var jat=sT(),qge=gd(),Wj=zr,Yge=yT,Lat={keyword:"properties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,r=t.data,o=t.it;"all"===o.opts.removeAdditional&&void 0===t.parentSchema.additionalProperties&&Yge.default.code(new jat.KeywordCxt(o,Yge.default,"additionalProperties"));var s,a=(0,qge.allSchemaProperties)(e),l=He(a);try{for(l.s();!(s=l.n()).done;)o.definedProperties.add(s.value)}catch(v){l.e(v)}finally{l.f()}o.opts.unevaluated&&a.length&&!0!==o.props&&(o.props=Wj.mergeEvaluated.props(n,(0,Wj.toHash)(a),o.props));var v,u=a.filter(function(v){return!(0,Wj.alwaysValidSchema)(o,e[v])});if(0!==u.length){var d,h=n.name("valid"),f=He(u);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.opts.useDefaults&&!o.compositeRule&&void 0!==e[v=p].default?g(p):(n.if((0,qge.propertyInData)(n,r,p,o.opts.ownProperties)),g(p),o.allErrors||n.else().var(h,!0),n.endIf()),t.it.definedProperties.add(p),t.ok(h)}}catch(v){f.e(v)}finally{f.f()}}function g(v){t.subschema({keyword:"properties",schemaProp:v,dataProp:v},h)}}};Gj.default=Lat;var qj={};Object.defineProperty(qj,"__esModule",{value:!0});var Xge=gd(),xT=Tr(),Jge=zr,Kge=zr,Bat={keyword:"patternProperties",type:"object",schemaType:"object",code:function(t){var n=t.gen,e=t.schema,i=t.data,r=t.parentSchema,o=t.it,s=o.opts,a=(0,Xge.allSchemaProperties)(e),l=a.filter(function(p){return(0,Jge.alwaysValidSchema)(o,e[p])});if(0!==a.length&&(l.length!==a.length||o.opts.unevaluated&&!0!==o.props)){var c=s.strictSchema&&!s.allowMatchingProperties&&r.properties,u=n.name("valid");!0===o.props||o.props instanceof xT.Name||(o.props=(0,Kge.evaluatedPropsToName)(n,o.props));var d=o.props;!function(){var p,m=He(a);try{for(m.s();!(p=m.n()).done;){var g=p.value;c&&h(g),o.allErrors?f(g):(n.var(u,!0),f(g),n.if(u))}}catch(v){m.e(v)}finally{m.f()}}()}function h(p){for(var m in c)new RegExp(p).test(m)&&(0,Jge.checkStrictMode)(o,"property ".concat(m," matches pattern ").concat(p," (use allowMatchingProperties)"))}function f(p){n.forIn("key",i,function(m){n.if((0,xT._)(NQ||(NQ=Pe(["",".test(",")"])),(0,Xge.usePattern)(t,p),m),function(){var g=l.includes(p);g||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:m,dataPropType:Kge.Type.Str},u),o.opts.unevaluated&&!0!==d?n.assign((0,xT._)(FQ||(FQ=Pe(["","[","]"])),d,m),!0):g||o.allErrors||n.if((0,xT.not)(u),function(){return n.break()})})})}}};qj.default=Bat;var Yj={};Object.defineProperty(Yj,"__esModule",{value:!0});var $at=zr,Vat={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code:function(t){var n=t.gen;if((0,$at.alwaysValidSchema)(t.it,t.schema))t.fail();else{var r=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),t.failResult(r,function(){return t.reset()},function(){return t.error()})}},error:{message:"must NOT be valid"}};Yj.default=Vat;var Xj={};Object.defineProperty(Xj,"__esModule",{value:!0});var Hat={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:gd().validateUnion,error:{message:"must match a schema in anyOf"}};Xj.default=Hat;var Jj={};Object.defineProperty(Jj,"__esModule",{value:!0});var wT=Tr(),Uat=zr,zat={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:function(t){var n=t.params;return(0,wT._)(PQ||(PQ=Pe(["{passingSchemas: ","}"])),n.passing)}},code:function(t){var n=t.gen,e=t.schema,i=t.parentSchema,r=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");if(!r.opts.discriminator||!i.discriminator){var o=e,s=n.let("valid",!1),a=n.let("passing",null),l=n.name("_valid");t.setParams({passing:a}),n.block(function(){o.forEach(function(c,u){var d;(0,Uat.alwaysValidSchema)(r,c)?n.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&n.if((0,wT._)(RQ||(RQ=Pe([""," && ",""])),l,s)).assign(s,!1).assign(a,(0,wT._)(jQ||(jQ=Pe(["[",", ","]"])),a,u)).else(),n.if(l,function(){n.assign(s,!0),n.assign(a,u),d&&t.mergeEvaluated(d,wT.Name)})})}),t.result(s,function(){return t.reset()},function(){return t.error(!0)})}}};Jj.default=zat;var Kj={};Object.defineProperty(Kj,"__esModule",{value:!0});var Gat=zr,Wat={keyword:"allOf",schemaType:"array",code:function(t){var n=t.gen,e=t.schema,i=t.it;if(!Array.isArray(e))throw new Error("ajv implementation error");var r=n.name("valid");e.forEach(function(o,s){if(!(0,Gat.alwaysValidSchema)(i,o)){var a=t.subschema({keyword:"allOf",schemaProp:s},r);t.ok(r),t.mergeEvaluated(a)}})}};Kj.default=Wat;var Qj={};Object.defineProperty(Qj,"__esModule",{value:!0});var CT=Tr(),Qge=zr,qat={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:function(t){var n=t.params;return(0,CT.str)(LQ||(LQ=Pe(['must match "','" schema'])),n.ifClause)},params:function(t){var n=t.params;return(0,CT._)(BQ||(BQ=Pe(["{failingKeyword: ","}"])),n.ifClause)}},code:function(t){var n=t.gen,e=t.parentSchema,i=t.it;void 0===e.then&&void 0===e.else&&(0,Qge.checkStrictMode)(i,'"if" without "then" and "else" is ignored');var r=Zge(i,"then"),o=Zge(i,"else");if(r||o){var s,a=n.let("valid",!0),l=n.name("_valid");if(s=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.mergeEvaluated(s),t.reset(),r&&o){var c=n.let("ifClause");t.setParams({ifClause:c}),n.if(l,u("then",c),u("else",c))}else r?n.if(l,u("then")):n.if((0,CT.not)(l),u("else"));t.pass(a,function(){return t.error(!0)})}function u(d,h){return function(){var f=t.subschema({keyword:d},l);n.assign(a,l),t.mergeValidEvaluated(f,a),h?n.assign(h,(0,CT._)($Q||($Q=Pe(["",""])),d)):t.setParams({ifClause:d})}}}};function Zge(t,n){var e=t.schema[n];return void 0!==e&&!(0,Qge.alwaysValidSchema)(t,e)}Qj.default=qat;var Zj={};Object.defineProperty(Zj,"__esModule",{value:!0});var Yat=zr,Xat={keyword:["then","else"],schemaType:["object","boolean"],code:function(t){void 0===t.parentSchema.if&&(0,Yat.checkStrictMode)(t.it,'"'.concat(t.keyword,'" without "if" is ignored'))}};Zj.default=Xat,Object.defineProperty(Bj,"__esModule",{value:!0});var Jat=h1,Kat=Vj,Qat=f1,Zat=Hj,elt=Uj,tlt=Gge,nlt=zj,ilt=yT,rlt=Gj,olt=qj,slt=Yj,alt=Xj,llt=Jj,clt=Kj,ult=Qj,dlt=Zj;Bj.default=function(){var n=[slt.default,alt.default,llt.default,clt.default,ult.default,dlt.default,nlt.default,ilt.default,tlt.default,rlt.default,olt.default];return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.push(Kat.default,Zat.default):n.push(Jat.default,Qat.default),n.push(elt.default),n};var eL={},tL={};Object.defineProperty(tL,"__esModule",{value:!0});var Ps=Tr(),hlt={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:function(t){var n=t.schemaCode;return(0,Ps.str)(VQ||(VQ=Pe(['must match format "','"'])),n)},params:function(t){var n=t.schemaCode;return(0,Ps._)(HQ||(HQ=Pe(["{format: ","}"])),n)}},code:function(t,n){var g,v,h,f,p,m,e=t.gen,i=t.data,o=t.schema,s=t.schemaCode,a=t.it,l=a.opts,c=a.errSchemaPath,u=a.schemaEnv,d=a.self;l.validateFormats&&(t.$data?(h=e.scopeValue("formats",{ref:d.formats,code:l.code.formats}),f=e.const("fDef",(0,Ps._)(UQ||(UQ=Pe(["","[","]"])),h,s)),p=e.let("fType"),m=e.let("format"),e.if((0,Ps._)(zQ||(zQ=Pe(["typeof ",' == "object" && !('," instanceof RegExp)"])),f,f),function(){return e.assign(p,(0,Ps._)(GQ||(GQ=Pe(["",'.type || "string"'])),f)).assign(m,(0,Ps._)(WQ||(WQ=Pe(["",".validate"])),f))},function(){return e.assign(p,(0,Ps._)(qQ||(qQ=Pe(['"string"'])))).assign(m,f)}),t.fail$data((0,Ps.or)(!1===l.strictSchema?Ps.nil:(0,Ps._)(YQ||(YQ=Pe([""," && !",""])),s,m),(g=u.$async?(0,Ps._)(XQ||(XQ=Pe(["(",".async ? await ","(",") : ","(","))"])),f,m,i,m,i):(0,Ps._)(JQ||(JQ=Pe(["","(",")"])),m,i),v=(0,Ps._)(KQ||(KQ=Pe(["(typeof ",' == "function" ? '," : ",".test(","))"])),m,g,m,i),(0,Ps._)(QQ||(QQ=Pe([""," && "," !== true && "," === "," && !",""])),m,m,p,n,v))))):function(){var h=d.formats[o];if(h){if(!0!==h){var f=Jn(function(v){var y=v instanceof RegExp?(0,Ps.regexpCode)(v):l.code.formats?(0,Ps._)(ZQ||(ZQ=Pe(["","",""])),l.code.formats,(0,Ps.getProperty)(o)):void 0,b=e.scopeValue("formats",{key:o,ref:v,code:y});return"object"!=wn(v)||v instanceof RegExp?["string",v,b]:[v.type||"string",v.validate,(0,Ps._)(eZ||(eZ=Pe(["",".validate"])),b)]}(h),3),m=f[1],g=f[2];f[0]===n&&t.pass(function(){if("object"==wn(h)&&!(h instanceof RegExp)&&h.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ps._)(tZ||(tZ=Pe(["await ","(",")"])),g,i)}return(0,Ps._)("function"==typeof m?nZ||(nZ=Pe(["","(",")"])):iZ||(iZ=Pe(["",".test(",")"])),g,i)}())}}else!function(){if(!1!==l.strictSchema)throw new Error(v());function v(){return'unknown format "'.concat(o,'" ignored in schema at path "').concat(c,'"')}d.logger.warn(v())}()}())}};tL.default=hlt,Object.defineProperty(eL,"__esModule",{value:!0}),eL.default=[tL.default];var p1={};Object.defineProperty(p1,"__esModule",{value:!0}),p1.contentVocabulary=p1.metadataVocabulary=void 0,p1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],p1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(wj,"__esModule",{value:!0});var glt=eL,eve=p1,vlt=[Cj.default,kj.default,(0,Bj.default)(),glt.default,eve.metadataVocabulary,eve.contentVocabulary];wj.default=vlt;var nL={},tve={};(function(t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"})(tve),Object.defineProperty(nL,"__esModule",{value:!0});var m1=Tr(),iL=tve,nve=sc,ylt=zr,_lt={keyword:"discriminator",type:"object",schemaType:"object",error:{message:function(t){var n=t.params,i=n.tagName;return n.discrError===iL.DiscrError.Tag?'tag "'.concat(i,'" must be string'):'value of tag "'.concat(i,'" must be in oneOf')},params:function(t){var n=t.params,e=n.discrError,i=n.tag,r=n.tagName;return(0,m1._)(rZ||(rZ=Pe(["{error: ",", tag: ",", tagValue: ","}"])),e,r,i)}},code:function(t){var n=t.gen,e=t.data,i=t.schema,r=t.parentSchema,o=t.it,s=r.oneOf;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");var a=i.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");var l=n.let("valid",!1),c=n.const("tag",(0,m1._)(oZ||(oZ=Pe(["","",""])),e,(0,m1.getProperty)(a)));function u(d){var h=n.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:d},h);return t.mergeEvaluated(f,m1.Name),h}n.if((0,m1._)(sZ||(sZ=Pe(["typeof ",' == "string"'])),c),function(){return function(){var d=function(){for(var f,p={},m=C(r),g=!0,v=0;v",9:"Array"},u="UnquotedIdentifier",d="QuotedIdentifier",h="Rbracket",f="Rparen",p="Comma",m="Colon",g="Rbrace",v="Number",y="Current",b="Expref",C="Pipe",B="EQ",z="GT",j="LT",U="GTE",G="LTE",X="NE",oe="Flatten",P="Star",W="Filter",J="Dot",pe="Lbrace",A="Lbracket",N="Lparen",F="Literal",q={".":J,"*":P,",":p,":":m,"{":pe,"}":g,"]":h,"(":N,")":f,"@":y},V={"<":!0,">":!0,"=":!0,"!":!0},ce={" ":!0,"\t":!0,"\n":!0};function ve($){return $>="0"&&$<="9"||"-"===$}function je(){}je.prototype={tokenize:function($){var ae,le,Re,Ze,Ve=[];for(this._current=0;this._current<$.length;)if((Ze=$[this._current])>="a"&&Ze<="z"||Ze>="A"&&Ze<="Z"||"_"===Ze)ae=this._current,le=this._consumeUnquotedIdentifier($),Ve.push({type:u,value:le,start:ae});else if(void 0!==q[$[this._current]])Ve.push({type:q[$[this._current]],value:$[this._current],start:this._current}),this._current++;else if(ve($[this._current]))Re=this._consumeNumber($),Ve.push(Re);else if("["===$[this._current])Re=this._consumeLBracket($),Ve.push(Re);else if('"'===$[this._current])ae=this._current,le=this._consumeQuotedIdentifier($),Ve.push({type:d,value:le,start:ae});else if("'"===$[this._current])ae=this._current,le=this._consumeRawStringLiteral($),Ve.push({type:F,value:le,start:ae});else if("`"===$[this._current]){ae=this._current;var Ct=this._consumeLiteral($);Ve.push({type:F,value:Ct,start:ae})}else if(void 0!==V[$[this._current]])Ve.push(this._consumeOperator($));else if(void 0!==ce[$[this._current]])this._current++;else if("&"===$[this._current])ae=this._current,this._current++,"&"===$[this._current]?(this._current++,Ve.push({type:"And",value:"&&",start:ae})):Ve.push({type:b,value:"&",start:ae});else{if("|"!==$[this._current]){var Ot=new Error("Unknown character:"+$[this._current]);throw Ot.name="LexerError",Ot}ae=this._current,this._current++,"|"===$[this._current]?(this._current++,Ve.push({type:"Or",value:"||",start:ae})):Ve.push({type:C,value:"|",start:ae})}return Ve},_consumeUnquotedIdentifier:function($){var ae,le=this._current;for(this._current++;this._current<$.length&&((ae=$[this._current])>="a"&&ae<="z"||ae>="A"&&ae<="Z"||ae>="0"&&ae<="9"||"_"===ae);)this._current++;return $.slice(le,this._current)},_consumeQuotedIdentifier:function($){var ae=this._current;this._current++;for(var le=$.length;'"'!==$[this._current]&&this._current"===le?"="===$[this._current]?(this._current++,{type:U,value:">=",start:ae}):{type:z,value:">",start:ae}:"="===le&&"="===$[this._current]?(this._current++,{type:B,value:"==",start:ae}):void 0},_consumeLiteral:function($){this._current++;for(var ae,le=this._current,Re=$.length;"`"!==$[this._current]&&this._current=0||["true","false","null"].indexOf($)>=0)return!0;if(!("-0123456789".indexOf($[0])>=0))return!1;try{return JSON.parse($),!0}catch{return!1}}};var Te={};function et(){}function We($){this.runtime=$}function st($){this._interpreter=$,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}Te.EOF=0,Te.UnquotedIdentifier=0,Te.QuotedIdentifier=0,Te.Rbracket=0,Te.Rparen=0,Te.Comma=0,Te.Rbrace=0,Te.Number=0,Te.Current=0,Te.Expref=0,Te.Pipe=1,Te.Or=2,Te.And=3,Te.EQ=5,Te.GT=5,Te.LT=5,Te.GTE=5,Te.LTE=5,Te.NE=5,Te.Flatten=9,Te.Star=20,Te.Filter=21,Te.Dot=40,Te.Not=45,Te.Lbrace=50,Te.Lbracket=55,Te.Lparen=60,et.prototype={parse:function($){this._loadTokens($),this.index=0;var ae=this.expression(0);if("EOF"!==this._lookahead(0)){var le=this._lookaheadToken(0),Re=new Error("Unexpected token type: "+le.type+", value: "+le.value);throw Re.name="ParserError",Re}return ae},_loadTokens:function($){var ae=(new je).tokenize($);ae.push({type:"EOF",value:"",start:$.length}),this.tokens=ae},expression:function($){var ae=this._lookaheadToken(0);this._advance();for(var le=this.nud(ae),Re=this._lookahead(0);$=0?this.expression($):ae===A?(this._match(A),this._parseMultiselectList()):ae===pe?(this._match(pe),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function($){var ae;if(Te[this._lookahead(0)]<10)ae={type:"Identity"};else if(this._lookahead(0)===A)ae=this.expression($);else if(this._lookahead(0)===W)ae=this.expression($);else{if(this._lookahead(0)!==J){var le=this._lookaheadToken(0),Re=new Error("Sytanx error, unexpected token: "+le.value+"("+le.type+")");throw Re.name="ParserError",Re}this._match(J),ae=this._parseDotRHS($)}return ae},_parseMultiselectList:function(){for(var $=[];this._lookahead(0)!==h;){var ae=this.expression(0);if($.push(ae),this._lookahead(0)===p&&(this._match(p),this._lookahead(0)===h))throw new Error("Unexpected token Rbracket")}return this._match(h),{type:"MultiSelectList",children:$}},_parseMultiselectHash:function(){for(var $,ae,le,Re=[],Ze=[u,d];;){if($=this._lookaheadToken(0),Ze.indexOf($.type)<0)throw new Error("Expecting an identifier token, got: "+$.type);if(ae=$.value,this._advance(),this._match(m),le={type:"KeyValuePair",name:ae,value:this.expression(0)},Re.push(le),this._lookahead(0)===p)this._match(p);else if(this._lookahead(0)===g){this._match(g);break}}return{type:"MultiSelectHash",children:Re}}},We.prototype={search:function($,ae){return this.visit($,ae)},visit:function($,ae){var le,Re,Ze,Ve,Ct,Ot,yn,Xn,on;switch($.type){case"Field":return null!==ae&&e(ae)?void 0===(Ot=ae[$.name])?null:Ot:null;case"Subexpression":for(Ze=this.visit($.children[0],ae),on=1;on<$.children.length;on++)if(null===(Ze=this.visit($.children[1],Ze)))return null;return Ze;case"IndexExpression":return yn=this.visit($.children[0],ae),this.visit($.children[1],yn);case"Index":if(!n(ae))return null;var Ri=$.value;return Ri<0&&(Ri=ae.length+Ri),void 0===(Ze=ae[Ri])&&(Ze=null),Ze;case"Slice":if(!n(ae))return null;var hn=$.children.slice(0),vr=this.computeSliceParams(ae.length,hn),Er=vr[0],fr=vr[1],wr=vr[2];if(Ze=[],wr>0)for(on=Er;onfr;on+=wr)Ze.push(ae[on]);return Ze;case"Projection":var Si=this.visit($.children[0],ae);if(!n(Si))return null;for(Xn=[],on=0;onCt;break;case U:Ze=Ve>=Ct;break;case j:Ze=Ve=$&&(ae=le<0?$-1:$),ae}},st.prototype={callFunction:function($,ae){var le=this.functionTable[$];if(void 0===le)throw new Error("Unknown function: "+$+"()");return this._validateArgs($,ae,le._signature),le._func.call(this,ae)},_validateArgs:function($,ae,le){var Re,Ze,Ve,Ct;if(le[le.length-1].variadic){if(ae.length=0;Re--)le+=ae[Re];return le}var Ze=$[0].slice(0);return Ze.reverse(),Ze},_functionAbs:function($){return Math.abs($[0])},_functionCeil:function($){return Math.ceil($[0])},_functionAvg:function($){for(var ae=0,le=$[0],Re=0;Re=0},_functionFloor:function($){return Math.floor($[0])},_functionLength:function($){return e($[0])?Object.keys($[0]).length:$[0].length},_functionMap:function($){for(var ae=[],le=this._interpreter,Re=$[0],Ze=$[1],Ve=0;Ve0){if(this._getTypeName($[0][0])===s)return Math.max.apply(Math,$[0]);for(var ae=$[0],le=ae[0],Re=1;Re0){if(this._getTypeName($[0][0])===s)return Math.min.apply(Math,$[0]);for(var ae=$[0],le=ae[0],Re=1;Rehn?1:RiCt&&(Ct=le,ae=Ze[Ot]);return ae},_functionMinBy:function($){for(var ae,le,Ze=$[0],Ve=this.createKeyFunction($[1],[s,a]),Ct=1/0,Ot=0;Ot1&&void 0!==arguments[1]?arguments[1]:1;return(n>0?t.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}var Slt=function(){function t(n,e,i,r){rL(this,t);var o=this;if(void 0!==n)if(Array.isArray(n))this.rgba=n;else if(void 0===i){var s=n&&""+n;s&&function(a){if(a.startsWith("hsl")){var l=a.match(/([\-\d\.e]+)/g).map(Number),c=ST(l,4),u=c[0],d=c[1],h=c[2],f=c[3];void 0===f&&(f=1),o.hsla=[u/=360,d/=100,h/=100,f]}else if(a.startsWith("rgb")){var p=a.match(/([\-\d\.e]+)/g).map(Number),m=ST(p,4),b=m[3];void 0===b&&(b=1),o.rgba=[m[0],m[1],m[2],b]}else o.rgba=a.startsWith("#")?t.hexToRgb(a):t.nameToRgb(a)||t.hexToRgb(a)}(s.toLowerCase())}else this.rgba=[n,e,i,void 0===r?1:r]}return oL(t,[{key:"printRGB",value:function(n){var e=(n?this.rgba:this.rgba.slice(0,3)).map(function(i,r){return ove(i,3===r?3:0)});return n?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(n){var e=[360,100,100,1],i=["","%","%",""],r=(n?this.hsla:this.hsla.slice(0,3)).map(function(o,s){return ove(o*e[s],3===s?3:1)+i[s]});return n?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(n){var e=this.hex;return n?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(n){3===n.length&&(n[3]=1),this._rgba=n,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(n){3===n.length&&(n[3]=1),this._hsla=n,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var n=this.rgba.map(function(e,i){return i<3?e.toString(16):Math.round(255*e).toString(16)});return"#"+n.map(function(e){return e.padStart(2,"0")}).join("")},set:function(n){this.rgba=t.hexToRgb(n)}}],[{key:"hexToRgb",value:function(n){var e=(n.startsWith("#")?n.slice(1):n).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+n);var i=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(r){return parseInt(r,16)});return i[3]=i[3]/255,i}},{key:"nameToRgb",value:function(n){var e=n.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=Clt[e];return void 0===i?i:t.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(n){var e=ST(n,4),i=e[0],r=e[1],o=e[2],s=e[3];i/=255,r/=255,o/=255;var a=Math.max(i,r,o),l=Math.min(i,r,o),c=void 0,u=void 0,d=(a+l)/2;if(a===l)c=u=0;else{var h=a-l;switch(u=d>.5?h/(2-a-l):h/(a+l),a){case i:c=(r-o)/h+(r1&&(g-=1),g<.16666666666666666?p+6*(m-p)*g:g<.5?m:g<.6666666666666666?p+(m-p)*(.6666666666666666-g)*6:p},d=o<.5?o*(1+r):o+r-o*r,h=2*o-d;a=u(h,d,i+1/3),l=u(h,d,i),c=u(h,d,i-1/3)}var f=[255*a,255*l,255*c].map(Math.round);return f[3]=s,f}}]),t}(),klt=function(){function t(){rL(this,t),this._events=[]}return oL(t,[{key:"add",value:function(n,e,i){n.addEventListener(e,i,!1),this._events.push({target:n,type:e,handler:i})}},{key:"remove",value:function(n,e,i){this._events=this._events.filter(function(r){var o=!0;return n&&n!==r.target&&(o=!1),e&&e!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(n){return t._doRemove(n.target,n.type,n.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(n,e,i){n.removeEventListener(e,i,!1)}}]),t}();function sL(t,n,e){var i=!1;function r(l,c,u){return Math.max(c,Math.min(l,u))}function o(l,c,u){if(u&&(i=!0),i){l.preventDefault();var d=n.getBoundingClientRect(),h=d.width,f=d.height,m=c.clientY,g=r(c.clientX-d.left,0,h),v=r(m-d.top,0,f);e(g/h,v/f)}}function s(l,c){1===(void 0===l.buttons?l.which:l.buttons)?o(l,l,c):i=!1}function a(l,c){1===l.touches.length?o(l,l.touches[0],c):i=!1}t.add(n,"mousedown",function(l){s(l,!0)}),t.add(n,"touchstart",function(l){a(l,!0)}),t.add(window,"mousemove",s),t.add(n,"touchmove",a),t.add(window,"mouseup",function(l){i=!1}),t.add(n,"touchend",function(l){i=!1}),t.add(n,"touchcancel",function(l){i=!1})}function Ch(t,n){return(n||document).querySelector(t)}function sve(t){t.preventDefault(),t.stopPropagation()}function aL(t,n,e,i,r){t.add(n,"keydown",function(o){e.indexOf(o.key)>=0&&(r&&sve(o),i(o))})}var ave=function(){function t(n){rL(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new klt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return oL(t,[{key:"setOptions",value:function(n){var e=this;if(n){var i=this.settings;if(n instanceof HTMLElement)i.parent=n;else{i.parent&&n.parent&&i.parent!==n.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(a,l,c){for(var u in a)l[u]=a[u]}(n,i),n.onChange&&(this.onChange=n.onChange),n.onDone&&(this.onDone=n.onDone),n.onOpen&&(this.onOpen=n.onOpen),n.onClose&&(this.onClose=n.onClose);var r=n.color||n.colour;r&&this._setColor(r)}var o=i.parent;if(o&&i.popup&&!this._popupInited){var s=function(a){return e.openHandler(a)};this._events.add(o,"click",s),aL(this._events,o,[" ","Spacebar","Enter"],s),this._popupInited=!0}else n.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(n){if(this.show()){n&&n.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=n&&"keydown"===n.type?this._domEdit:this.domElement;setTimeout(function(){return e.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(n){var e=n&&n.type,i=!1;n?"mousedown"===e||"focusin"===e?n.timeStamp>(this.__containedEvent||0)+100&&(i=!0):(sve(n),i=!0):i=!0,i&&this.hide()&&(this.settings.parent.style.pointerEvents="","mousedown"!==e&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(n,e){this.closeHandler(),this.setOptions(n),e&&this.openHandler()}},{key:"setColor",value:function(n,e){this._setColor(n,{silent:e})}},{key:"_setColor",value:function(n,e){if("string"==typeof n&&(n=n.trim()),n){e=e||{};var i=void 0;try{i=new Slt(n)}catch(o){if(e.failSilently)return;throw o}if(!this.settings.alpha){var r=i.hsla;r[3]=1,i.hsla=r}this.colour=this.color=i,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(n,e){this.setColor(n,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var n=this._toggleDOM(!0);return this._setPosition(),n}var e,i,o=(e=this.settings.template||'
    ',(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=Ch(".picker_hue",o),this._domSL=Ch(".picker_sl",o),this._domA=Ch(".picker_alpha",o),this._domEdit=Ch(".picker_editor input",o),this._domSample=Ch(".picker_sample",o),this._domOkay=Ch(".picker_done button",o),this._domCancel=Ch(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup(function(){return o.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var n=this,e=this,i=this.domElement,r=this._events;function o(l,c,u){r.add(l,c,u)}o(i,"click",function(l){return l.preventDefault()}),sL(r,this._domH,function(l,c){return e._setHSLA(l)}),sL(r,this._domSL,function(l,c){return e._setHSLA(null,l,1-c)}),this.settings.alpha&&sL(r,this._domA,function(l,c){return e._setHSLA(null,null,null,1-c)});var s=this._domEdit;o(s,"input",function(l){e._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(s,"focus",function(l){var c=this;c.selectionStart===c.selectionEnd&&c.select()}),this._ifPopup(function(){var l=function(u){return n.closeHandler(u)};o(window,"mousedown",l),o(window,"focusin",l),aL(r,i,["Esc","Escape"],l);var c=function(u){n.__containedEvent=u.timeStamp};o(i,"mousedown",c),o(i,"focusin",c),o(n._domCancel,"click",l)});var a=function(l){n._ifPopup(function(){return n.closeHandler(l)}),n.onDone&&n.onDone(n.colour)};o(this._domOkay,"click",a),aL(r,i,["Enter"],a)}},{key:"_setPosition",value:function(){var n=this.settings.parent,e=this.domElement;n!==e.parentNode&&n.appendChild(e),this._ifPopup(function(i){"static"===getComputedStyle(n).position&&(n.style.position="relative");var r=!0===i?"popup_right":"popup_"+i;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===r?e.classList.add(o):e.classList.remove(o)}),e.classList.add(r)})}},{key:"_setHSLA",value:function(n,e,i,r,o){o=o||{};var s=this.colour,a=s.hsla;[n,e,i,r].forEach(function(l,c){(l||0===l)&&(a[c]=l)}),s.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(s)}},{key:"_updateUI",value:function(n){if(this.domElement){n=n||{};var e=this.colour,i=e.hsla,r="hsl("+360*i[0]+", 100%, 50%)",o=e.hslString,s=e.hslaString,l=this._domSL,c=this._domA,u=Ch(".picker_selector",this._domH),d=Ch(".picker_selector",l),h=Ch(".picker_selector",c);b(0,u,i[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,b(0,d,i[1]),C(0,d,1-i[2]),l.style.color=o,C(0,h,1-i[3]);var f=o,p=f.replace("hsl","hsla").replace(")",", 0)");if(this._domA.style.background="linear-gradient("+[f,p]+"), linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!n.fromEditor){var v=this.settings.alpha,y=void 0;switch(this.settings.editorFormat){case"rgb":y=e.printRGB(v);break;case"hsl":y=e.printHSL(v);break;default:y=e.printHex(v)}this._domEdit.value=y}this._domSample.style.color=s}function b(D,E,B){E.style.left=100*B+"%"}function C(D,E,B){E.style.top=100*B+"%"}}},{key:"_ifPopup",value:function(n,e){this.settings.parent&&this.settings.popup?n&&n(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(n){var e=this.domElement;if(!e)return!1;var i=n?"":"none",r=e.style.display!==i;return r&&(e.style.display=i),r}}]),t}(),lL=document.createElement("style");lL.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(lL),ave.StyleElement=lL;var Dlt=Object.freeze({__proto__:null,default:ave});const Tlt=["editor"];function Elt(t,n){if(1&t&&(_(0,"ngb-alert",38),xe(1,"img",39),_(2,"h6",40),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while modifying storage object: ",e.error,"")}}function Alt(t,n){1&t&&(_(0,"ngb-alert",41),xe(1,"img",42),_(2,"h6",40),O(3,"Storage object was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Mlt(t,n){1&t&&(_(0,"span"),O(1,"Save as a copy"),x())}function Olt(t,n){1&t&&O(0,"Save")}function Ilt(t,n){if(1&t&&(_(0,"button",43),te(1,Mlt,2,0,"span",44),te(2,Olt,1,0,"ng-template",null,45,Xo),x()),2&t){const e=sa(3),i=L();S("disabled",i.updating),w(1),S("ngIf",i.object.collection!==i.f.collection.value||i.object.key!==i.f.keyname.value||i.object.user_id!==i.f.user_id.value)("ngIfElse",e)}}const cL=function(){return["/storage"]},Nlt=function(t){return{collection:t}},Flt=function(t,n){return{collection:t,key:n}},Plt=function(t,n,e){return{collection:t,key:n,user_id:e}},uL=function(t){return{"is-invalid":t}},ux=function(t){return{active:t}};let Rlt=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;editor;jsonEditor;error="";object;objectForm;updating=!1;updated=!1;ngOnInit(){this.objectForm=this.formBuilder.group({collection:["",qr.required],keyname:["",qr.required],user_id:["",qr.required],permission_read:[{value:0,disabled:!1},qr.required],permission_write:[{value:0,disabled:!1},qr.required]}),this.route.data.subscribe(e=>{this.object=e[0],this.f.collection.setValue(this.object.collection),this.f.keyname.setValue(this.object.key),this.f.user_id.setValue(this.object.user_id),this.f.permission_read.setValue(this.object.permission_read),this.f.permission_write.setValue(this.object.permission_write),this.updateAllowed()||this.objectForm.disable()},e=>{this.error=e})}constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.object.value}}})}updateObject(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(o){return this.error=o,void(this.updating=!1)}let i=this.object.version;(this.object.collection!==this.f.collection.value||this.object.key!==this.f.keyname.value||this.object.user_id!==this.f.user_id.value)&&(i=""),this.consoleService.writeStorageObject("",this.f.collection.value,this.f.keyname.value,this.f.user_id.value,{version:i,value:e,permission_read:this.f.permission_read.value,permission_write:this.f.permission_write.value}).subscribe(o=>{this.updated=!0,this.updating=!1,this.object.version=o.version,""===i&&(this.object.collection=this.f.collection.value,this.object.key=this.f.keyname.value,this.object.user_id=this.f.user_id.value,this.object.permission_read=this.f.permission_read.value,this.object.permission_write=this.f.permission_write.value)},o=>{this.error=o,this.updating=!1})}deleteObject(){this.error="",this.updated=!1,this.updating=!1;const e=this.object;this.consoleService.deleteStorageObject("",e.collection,e.key,e.user_id,e.version).subscribe(()=>{this.router.navigate(["/storage"],{relativeTo:this.route,queryParams:{collection:this.f.collection.value,key:this.f.key.value,user_id:this.f.user_id.value}})},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.objectForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Tlt,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:88,vars:60,consts:[[1,"pb-1"],[1,"storage-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink","queryParams"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","collection",1,"d-inline"],["type","text","id","collection","placeholder","Collection","required","","formControlName","collection",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","key",1,"d-inline"],["type","text","id","key","placeholder","Key","required","","formControlName","keyname",1,"form-control","form-control-sm","my-2",3,"ngClass"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","required","","formControlName","user_id",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","permission_read",1,"d-inline"],["id","permission_read","name","permission_read",1,"btn-group","btn-group-toggle"],[1,"btn","btn-outline-secondary",3,"ngClass"],["formControlName","permission_read","type","radio",3,"value"],["for","version",1,"d-inline"],["type","text","id","version","placeholder","Version","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","permission_write",1,"d-inline"],["id","permission_write","name","permission_write",1,"btn-group","btn-group-toggle"],["formControlName","permission_write","type","radio",3,"value"],[1,"row","add-border-single-row-bottom","mb-3"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mt-3","mb-3","jsoneditor",2,"height","518px"],[2,"height","500px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf","ngIfElse"],["elseBlock",""]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Storage Object"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4),O(6,"Storage"),x(),_(7,"li",4)(8,"a",5),O(9),x()(),_(10,"li",4)(11,"a",5),O(12),x()(),_(13,"li",4)(14,"a",5),O(15),x()()()()(),te(16,Elt,4,2,"ngb-alert",6),te(17,Alt,4,1,"ngb-alert",7),_(18,"form",8),ke("ngSubmit",function(){return r.updateObject()}),_(19,"div",9)(20,"div",10)(21,"div",11)(22,"label",12),O(23,"Collection"),x()(),xe(24,"input",13),_(25,"div",14),O(26,"Collection is required"),x()(),_(27,"div",10)(28,"div",11)(29,"label",15),O(30,"Key"),x()(),xe(31,"input",16),_(32,"div",14),O(33,"Key is required"),x()()(),_(34,"div",9)(35,"div",10)(36,"div",11)(37,"label",17),O(38,"User ID"),x()(),xe(39,"input",18),_(40,"div",14),O(41,"User ID is required"),x()(),_(42,"div",19)(43,"div",11)(44,"label",20),O(45,"Read Permission"),x()(),_(46,"div",21)(47,"label",22),xe(48,"input",23),O(49," No Read "),x(),_(50,"label",22),xe(51,"input",23),O(52," Owner Read "),x(),_(53,"label",22),xe(54,"input",23),O(55," Public Read "),x()()()(),_(56,"div",9)(57,"div",10)(58,"div",11)(59,"label",24),O(60,"Version"),x()(),xe(61,"input",25),x(),_(62,"div",19)(63,"div",11)(64,"label",26),O(65,"Write Permission"),x()(),_(66,"div",27)(67,"label",22),xe(68,"input",28),O(69," No Write "),x(),_(70,"label",22),xe(71,"input",28),O(72," Owner Write "),x()()()(),_(73,"div",29)(74,"div",10)(75,"div",11)(76,"label",30),O(77,"Create Time"),x()(),xe(78,"input",31),x(),_(79,"div",10)(80,"div",11)(81,"label",32),O(82,"Update Time"),x()(),xe(83,"input",33),x()(),_(84,"div",34),xe(85,"div",35,36),x(),te(87,Ilt,4,3,"button",37),x()),2&i&&(w(8),S("routerLink",cl(32,cL))("queryParams",Zi(33,Nlt,r.object.collection)),w(1),bt(r.object.collection),w(2),S("routerLink",cl(35,cL))("queryParams",Rr(36,Flt,r.object.collection,r.object.key)),w(1),bt(r.object.key),w(2),S("routerLink",cl(39,cL))("queryParams",ty(40,Plt,r.object.collection,r.object.key,r.object.user_id)),w(1),bt(r.object.user_id),w(1),S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.objectForm),w(6),S("ngClass",Zi(44,uL,r.f.collection.dirty&&r.f.collection.errors)),w(1),S("hidden",r.f.collection.disabled||r.f.collection.valid||r.f.collection.pristine),w(6),S("ngClass",Zi(46,uL,r.f.keyname.dirty&&r.f.keyname.errors)),w(1),S("hidden",r.f.keyname.disabled||r.f.keyname.valid||r.f.keyname.pristine),w(7),S("ngClass",Zi(48,uL,r.f.user_id.dirty&&r.f.user_id.errors)),w(1),S("hidden",r.f.user_id.disabled||r.f.user_id.valid||r.f.user_id.pristine),w(7),S("ngClass",Zi(50,ux,0==r.f.permission_read.value)),w(1),S("value",0),w(2),S("ngClass",Zi(52,ux,1==r.f.permission_read.value)),w(1),S("value",1),w(2),S("ngClass",Zi(54,ux,2==r.f.permission_read.value)),w(1),S("value",2),w(7),S("value",r.object.version),w(6),S("ngClass",Zi(56,ux,0==r.f.permission_write.value)),w(1),S("value",0),w(2),S("ngClass",Zi(58,ux,1==r.f.permission_write.value)),w(1),S("value",1),w(7),S("value",r.object.create_time),w(5),S("value",r.object.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Ru,Of,xn,yo,fa,Us,B3,da,ha,qh,Ts,zs],styles:[".storage-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),jlt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("collection"),o=e.paramMap.get("key"),s=e.paramMap.get("user_id");return this.consoleService.getStorage("",r,o,s)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Llt(t,n){if(1&t&&(_(0,"ngb-alert",18),xe(1,"img",19),_(2,"h6",20),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Blt(t,n){1&t&&(_(0,"th",21),O(1,"Remove"),x())}function $lt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"Yes"),x()}}function Vlt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"No"),x()}}function Hlt(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"Yes"),x()}}function Ult(t,n){if(1&t){const e=_t();_(0,"td",25),ke("click",function(){ze(e);const r=L().$implicit;return Ge(L().viewLeaderboardEntries(r))}),O(1,"No"),x()}}function zlt(t,n){if(1&t){const e=_t();_(0,"td",26)(1,"button",27),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteLeaderboard(r,s,a))}),O(2,"Delete"),x()()}}function Glt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(2),x(),_(3,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(4),x(),_(5,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(6),x(),_(7,"td",22),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewLeaderboardEntries(o))}),O(8),x(),te(9,$lt,2,0,"td",23),te(10,Vlt,2,0,"td",23),te(11,Hlt,2,0,"td",23),te(12,Ult,2,0,"td",23),te(13,zlt,3,0,"td",24),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.id),w(2),bt(i.orderString[e.sort_order]),w(2),bt(i.operatorString[e.operator]),w(2),bt(""===e.reset_schedule?"-":e.reset_schedule),w(1),S("ngIf",e.authoritative),w(1),S("ngIf",!e.authoritative),w(1),S("ngIf",e.tournament),w(1),S("ngIf",!e.tournament),w(1),S("ngIf",i.deleteAllowed())}}function Wlt(t,n){1&t&&(_(0,"tr")(1,"td",28),O(2,"No leaderboards were found."),x()())}let qlt=(()=>{class t{route;router;authService;consoleService;deleteConfirmService;error="";leaderboards=[];nextCursor="";leaderboardsCount=0;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};constructor(e,i,r,o,s){this.route=e,this.router=i,this.authService=r,this.consoleService=o,this.deleteConfirmService=s}ngOnInit(){this.nextCursor=this.route.snapshot.queryParamMap.get("cursor"),this.search(this.nextCursor&&""!==this.nextCursor?1:0)}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}deleteLeaderboard(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboard("",r.id).subscribe(()=>{this.error="",this.leaderboards.splice(i,1),this.leaderboardsCount--},o=>{this.error=o})})}viewLeaderboardEntries(e){this.router.navigate(["/leaderboards",e.id],{relativeTo:this.route})}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboards("",i).subscribe(r=>{this.error="",this.leaderboards.length=0,this.leaderboards.push(...r.leaderboards),this.leaderboardsCount=r.total,this.nextCursor=r.cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ho),ge(Ai),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"row","no-gutters"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"pb-1"],[1,"pb-4"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger",3,"dismissible",4,"ngIf"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","130px"],[2,"width","100px"],["style","width: 90px",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[3,"click"],["class","text-center",3,"click",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"text-center",3,"click"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),O(4,"Leaderboards"),x(),_(5,"h6",4),O(6),x()(),_(7,"div",5)(8,"div",6)(9,"button",7),ke("click",function(){return r.search(0)}),xe(10,"img",8),x(),_(11,"button",7),ke("click",function(){return r.search(1)}),xe(12,"img",9),x()()()()(),te(13,Llt,4,2,"ngb-alert",10),_(14,"table",11)(15,"thead",12)(16,"tr")(17,"th"),O(18,"Leaderboard ID"),x(),_(19,"th",13),O(20,"Sort Order"),x(),_(21,"th",13),O(22,"Operator"),x(),_(23,"th",13),O(24,"Reset Schedule"),x(),_(25,"th",14),O(26,"Authoritative"),x(),_(27,"th",14),O(28,"Tournament"),x(),te(29,Blt,2,0,"th",15),x()(),_(30,"tbody"),te(31,Glt,14,9,"tr",16),te(32,Wlt,3,0,"tr",17),x()()),2&i&&(w(6),bn("",r.leaderboardsCount," leaderboards found."),w(3),S("disabled",0===r.leaderboards.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(16),S("ngIf",r.deleteAllowed()),w(2),S("ngForOf",r.leaderboards),w(1),S("ngIf",0===r.leaderboards.length))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Ylt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listLeaderboards("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xlt(t,n){if(1&t&&(_(0,"ngb-alert",31),xe(1,"img",32),_(2,"h6",33),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying accounts: ",e.error,"")}}function Jlt(t,n){if(1&t){const e=_t();_(0,"ngb-alert",31),xe(1,"img",32),_(2,"h6",33),O(3,"Query ongoing..."),x(),_(4,"button",34),ke("click",function(){return ze(e),Ge(L().cancelQuery())}),O(5,"Cancel!"),x()()}2&t&&S("dismissible",!1)}function Klt(t,n){1&t&&(_(0,"th",35),O(1,"Remove"),x())}function Qlt(t,n){1&t&&(_(0,"tr")(1,"td",36),O(2,"No users found - change the filter criteria or add new user accounts."),x()())}function Zlt(t,n){1&t&&xe(0,"td")}function ect(t,n){if(1&t){const e=_t();_(0,"td",39)(1,"button",40),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteAccount(r,s,a))}),O(2,"Delete"),x()()}}function tct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(6),x(),_(7,"td",37),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(8),x(),te(9,Zlt,1,0,"td",29),te(10,ect,3,0,"td",38),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.id),w(2),bt(e.username),w(2),bt(e.display_name),w(2),bt(e.update_time),w(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let nct=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";accountsCount=0;accounts=[];nextCursor="";prevCursor="";searchForm;querySubject;ongoingQuery=!1;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.querySubject=new fn,this.searchForm=this.formBuilder.group({filter:[""],filter_type:[0]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.f.filter_type.setValue(+e.get("filter_type")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):(this.f.filter.value||this.f.filter_type.value)&&this.search(0),this.route.data.subscribe(i=>{this.accounts.length=0,i&&(this.accounts.push(...i[0].users),this.accountsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}ngOnDestroy(){this.querySubject.next(),this.querySubject.complete()}search(e){this.ongoingQuery&&this.querySubject.next(),this.ongoingQuery=!0;let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listAccounts("",this.f.filter.value,this.f.filter_type.value&&1===this.f.filter_type.value,i).pipe(ns(this.querySubject)).subscribe(o=>{this.error="",this.accounts.length=0,this.accounts.push(...o.users),this.accountsCount=o.total_count,this.nextCursor=o.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,filter_type:this.f.filter_type.value,cursor:i},queryParamsHandling:"merge"}),this.ongoingQuery=!1},o=>{this.error=o,this.ongoingQuery=!1})}cancelQuery(){this.querySubject.next(),this.ongoingQuery=!1}deleteAccount(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteAccount("",r.id,!1).subscribe(()=>{this.error="",this.accounts.splice(i,1),this.accountsCount--},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:46,vars:10,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by user ID, social provider ID, device ID, or username (use '%' for prefix or suffix wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-primary","dropdown-toggle-split",3,"disabled"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button",1,"btn","btn-danger",3,"click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Accounts"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6),xe(9,"input",7),_(10,"div",8)(11,"span",9),ke("click",function(){return r.f.filter.setValue(r.systemUserId)}),xe(12,"img",10),x()(),_(13,"div",8)(14,"div",11)(15,"button",12),ke("click",function(){return r.f.filter_type.setValue(0),r.search(0)}),O(16,"Search"),x(),_(17,"div",13),xe(18,"button",14),_(19,"div",15)(20,"button",16),ke("click",function(){return r.f.filter_type.setValue(1),r.search(0)}),O(21,"Tombstones"),x()()()()()()()(),_(22,"div",17)(23,"div",18)(24,"button",19),ke("click",function(){return r.search(0)}),xe(25,"img",20),x(),_(26,"button",19),ke("click",function(){return r.search(1)}),xe(27,"img",21),x()()()()(),te(28,Xlt,4,2,"ngb-alert",22),te(29,Jlt,6,1,"ngb-alert",22),_(30,"div",23)(31,"table",24)(32,"thead",25)(33,"tr")(34,"th",26),O(35,"User ID"),x(),_(36,"th"),O(37,"Username"),x(),_(38,"th"),O(39,"Display Name"),x(),_(40,"th",27),O(41,"Last Update"),x(),te(42,Klt,2,0,"th",28),x()(),_(43,"tbody"),te(44,Qlt,3,0,"tr",29),te(45,tct,11,6,"tr",30),x()()()),2&i&&(w(3),bn("",r.accountsCount," accounts found."),w(4),S("formGroup",r.searchForm),w(11),S("disabled",!r.f.filter.value||""===r.f.filter.value),w(6),S("disabled",0===r.accounts.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(1),S("ngIf",r.ongoingQuery),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.accounts.length),w(1),S("ngForOf",r.accounts))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),ict=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter"),o=e.queryParamMap.get("tombstones");return this.consoleService.listAccounts("",r,"true"===o,null)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rct(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().exportAccount(r))}),xe(1,"img",16),O(2,"Export"),x()}}function oct(t,n){1&t&&(_(0,"span"),O(1,"Unban"),x())}function sct(t,n){1&t&&(_(0,"span"),O(1,"Ban"),x())}function act(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().banUnbanAccount(r))}),xe(1,"img",17),te(2,oct,2,0,"span",18),te(3,sct,2,0,"span",18),x()}if(2&t){const e=L();w(2),S("ngIf",e.account.disable_time),w(1),S("ngIf",!e.account.disable_time)}}function lct(t,n){if(1&t){const e=_t();_(0,"button",19),ke("click",function(r){return ze(e),Ge(L().deleteAccount(r,!1))}),xe(1,"img",20),O(2,"Delete"),x()}}function cct(t,n){if(1&t){const e=_t();_(0,"button",19),ke("click",function(r){return ze(e),Ge(L().deleteAccount(r,!0))}),xe(1,"img",21),O(2,"Recorded delete"),x()}}function uct(t,n){if(1&t&&(_(0,"ngb-alert",22),xe(1,"img",23),_(2,"h6",24),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const dct=function(t,n){return["/accounts",t,n]};function hct(t,n){if(1&t&&(_(0,"div"),Cl(1,25),_(2,"a",26),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,dct,i.account.user.id,e.path)),w(1),bt(e.label)}}const fct=function(){return["/accounts"]},pct=function(){return["/storage"]},mct=function(t){return{user_id:t}};let gct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;account;error="";views=[{label:"Profile",path:"profile"},{label:"Authentication",path:"authentication"},{label:"Friends",path:"friends"},{label:"Groups",path:"groups"},{label:"Wallet",path:"wallet"},{label:"Purchases",path:"purchases"},{label:"Subscriptions",path:"subscriptions"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAccount(e,i){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteAccount("",this.account.user.id,i).subscribe(()=>{this.error="",this.router.navigate(["/accounts"])},r=>{this.error=r})})}banUnbanAccount(e){e.target.disabled=!0,this.error="",this.account.disable_time?this.consoleService.unbanAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=null,e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1}):this.consoleService.banAccount("",this.account.user.id).subscribe(()=>{this.error="",this.account.disable_time=Date.now().toString(),e.target.disabled=!1},i=>{this.error=i,e.target.disabled=!1})}exportAccount(e){e.target.disabled=!0,this.error="",this.consoleService.exportAccount("",this.account.user.id).subscribe(i=>{this.error="";const r=this.account.user.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,XI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:24,vars:14,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["ngbNavItem","storage"],["ngbNavLink","",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["src","/static/svg/ban.svg","alt","","width","13","height","13",1,"mr-2"],[4,"ngIf"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["src","/static/svg/bin-recorded.svg","alt","","width","15","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Account"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Account"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,rct,3,0,"button",7),te(12,act,4,2,"button",7),te(13,lct,3,0,"button",8),te(14,cct,3,0,"button",8),x()(),te(15,uct,4,2,"ngb-alert",9),_(16,"nav",10,11),te(18,hct,4,6,"div",12),_(19,"div"),Cl(20,13),_(21,"a",14),O(22," Storage "),x(),Sl(),x()(),xe(23,"router-outlet")),2&i&&(w(6),S("routerLink",cl(10,fct)),w(3),bt(r.account.user.id),w(2),S("ngIf",r.exportAllowed()),w(1),S("ngIf",r.banAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views),w(3),S("routerLink",cl(11,pct))("queryParams",Zi(12,mct,r.account.user.id)))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),vct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getAccount("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const yct=["editor"];function _ct(t,n){if(1&t&&(_(0,"ngb-alert",29),xe(1,"img",30),_(2,"h6",31),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function bct(t,n){1&t&&(_(0,"ngb-alert",32),xe(1,"img",33),_(2,"h6",31),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function xct(t,n){1&t&&(_(0,"button",34),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}const wct=function(t){return{"is-invalid":t}};let Cct=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({username:["",qr.required],display_name:[""],avatar_url:[""],location:[""],timezone:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.username.setValue(this.account.user.username),this.f.display_name.setValue(this.account.user.display_name),this.f.avatar_url.setValue(this.account.user.avatar_url),this.f.location.setValue(this.account.user.location),this.f.timezone.setValue(this.account.user.timezone),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.account.user.metadata}}})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{username:this.f.username.value,display_name:this.f.display_name.value,avatar_url:this.f.avatar_url.value,location:this.f.location.value,timezone:this.f.timezone.value,metadata:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(yct,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:53,vars:11,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","user_id",1,"d-inline"],["type","text","id","user_id","placeholder","User ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","username",1,"d-inline"],["type","text","id","username","placeholder","Username","required","","formControlName","username",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","display_name",1,"d-inline"],["type","text","id","display_name","placeholder","Display Name","formControlName","display_name",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","location",1,"d-inline"],["type","text","id","location","placeholder","Location","formControlName","location",1,"form-control","form-control-sm","my-2"],["for","timezone",1,"d-inline"],["type","text","id","timezone","placeholder","Timezone","formControlName","timezone",1,"form-control","form-control-sm","my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,_ct,4,2,"ngb-alert",0),te(1,bct,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateAccount()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"User ID"),x()(),xe(8,"input",7),x(),_(9,"div",4)(10,"div",5)(11,"label",8),O(12,"Username"),x()(),xe(13,"input",9),_(14,"div",10),O(15,"Username is required"),x()()(),_(16,"div",3)(17,"div",4)(18,"div",5)(19,"label",11),O(20,"Display Name"),x()(),xe(21,"input",12),x(),_(22,"div",13)(23,"div",5)(24,"label",14),O(25,"Avatar URL"),x()(),xe(26,"input",15),x()(),_(27,"div",3)(28,"div",4)(29,"div",5)(30,"label",16),O(31,"Location"),x()(),xe(32,"input",17),x(),_(33,"div",13)(34,"div",5)(35,"label",18),O(36,"Timezone"),x()(),xe(37,"input",19),x()(),_(38,"div",20)(39,"div",4)(40,"div",5)(41,"label",21),O(42,"Create Time"),x()(),xe(43,"input",22),x(),_(44,"div",4)(45,"div",5)(46,"label",23),O(47,"Update Time"),x()(),xe(48,"input",24),x()(),_(49,"div",25),xe(50,"div",26,27),x(),te(52,xct,2,1,"button",28),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.accountForm),w(6),S("value",r.account.user.id),w(5),S("ngClass",Zi(9,wct,r.f.username.dirty&&r.f.username.errors)),w(1),S("hidden",r.f.username.disabled||r.f.username.valid||r.f.username.pristine),w(29),S("value",r.account.user.create_time),w(5),S("value",r.account.user.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Of,xn,yo,fa,Us,da,ha,qh,Ts,zs]})}return t})();function Sct(t,n){if(1&t&&(_(0,"ngb-alert",36),xe(1,"img",37),_(2,"h6",38),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function kct(t,n){1&t&&(_(0,"ngb-alert",39),xe(1,"img",40),_(2,"h6",38),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Dct(t,n){if(1&t&&(_(0,"option",41),O(1),x()),2&t){const e=n.$implicit,i=n.index;Ph("value",i),S("selected",0===i),w(1),bt(e.id)}}function Tct(t,n){1&t&&(_(0,"button",42),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}let Ect=(()=>{class t{route;router;consoleService;authService;formBuilder;error="";account;accountForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.accountForm=this.formBuilder.group({email:[""],password:[""],selected_device_id_index:[""]}),this.route.parent.data.subscribe(e=>{this.account=e[0].account,this.f.email.setValue(this.account.email),this.f.password.setValue(""),this.f.selected_device_id_index.setValue(0),0===this.account.devices.length&&this.f.selected_device_id_index.disable(),this.updateAllowed()||this.accountForm.disable()},e=>{this.error=e})}updateAccount(){this.error="",this.updated=!1,this.updating=!0;let e={email:this.f.email.value};this.f.password.dirty&&(e.password=this.f.password.value),this.consoleService.updateAccount("",this.account.user.id,e).subscribe(i=>{this.updated=!0,this.updating=!1,this.f.password.reset()},i=>{this.error=i,this.updating=!1})}unlinkDeviceId(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkDevice("",this.account.user.id,{device_id:this.account.devices[this.f.selected_device_id_index.value].id}).subscribe(()=>{this.error="",this.account.devices.splice(this.f.selected_device_id_index.value,1),this.f.selected_device_id_index.setValue(0)},r=>{this.error=r})}unlinkCustomID(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkCustom("",this.account.user.id).subscribe(()=>{this.error="",this.account.custom_id=null},i=>{this.error=i})}unlinkFacebook(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebook("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_id=null},i=>{this.error=i})}unlinkFacebookInstantGames(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkFacebookInstantGame("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.facebook_instant_game_id=null},i=>{this.error=i})}unlinkApple(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkApple("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.apple_id=null},i=>{this.error=i})}unlinkGameCenter(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGameCenter("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.gamecenter_id=null},i=>{this.error=i})}unlinkGoogle(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkGoogle("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.google_id=null},i=>{this.error=i})}unlinkSteam(e){e.target.disabled=!0,this.error="",this.consoleService.unlinkSteam("",this.account.user.id).subscribe(()=>{this.error="",this.account.user.steam_id=null},i=>{this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}copyDeviceIdToClipboard(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=this.account.devices[e].id,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i)}get f(){return this.accountForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:102,vars:21,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","selected_device_id_index",1,"d-inline"],[1,"input-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["src","/static/svg/copy.svg","alt","","width","16","height","",1,""],["id","selected_device_id_index","formControlName","selected_device_id_index",1,"form-control","custom-select","custom-select-sm"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","button",1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],["for","custom_id",1,"d-inline"],["type","text","id","custom_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","facebook_id",1,"d-inline"],["type","text","id","facebook_id","disabled","",1,"form-control","form-control-sm",3,"value"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","facebook_instant_game_id",1,"d-inline"],["type","text","id","facebook_instant_game_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","apple_id",1,"d-inline"],["type","text","id","apple_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","gamecenter_id",1,"d-inline"],["type","text","id","gamecenter_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","google_id",1,"d-inline"],["type","text","id","google_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","steam_id",1,"d-inline"],["type","text","id","steam_id","disabled","",1,"form-control","form-control-sm",3,"value"],["for","email",1,"d-inline"],["type","text","id","email","placeholder","Email","formControlName","email",1,"form-control","form-control-sm"],["for","password",1,"d-inline"],["type","text","id","password","placeholder","Password","formControlName","password",1,"form-control","form-control-sm"],[1,"row","remove-sides"],[1,"small"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],[3,"value","selected"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,Sct,4,2,"ngb-alert",0),te(1,kct,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateAccount()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"Device IDs"),x()(),_(8,"div",7)(9,"button",8),ke("click",function(){return r.copyDeviceIdToClipboard(r.f.selected_device_id_index.value)}),xe(10,"img",9),O(11," Copy "),x(),_(12,"select",10),te(13,Dct,2,3,"option",11),x(),_(14,"div",12)(15,"button",13),ke("click",function(s){return r.unlinkDeviceId(s)}),O(16,"Unlink"),x()()()(),_(17,"div",4)(18,"div",5)(19,"label",14),O(20,"Custom ID"),x()(),_(21,"div",7),xe(22,"input",15),_(23,"div",12)(24,"button",13),ke("click",function(s){return r.unlinkCustomID(s)}),O(25,"Unlink"),x()()()()(),_(26,"div",3)(27,"div",4)(28,"div",5)(29,"label",16),O(30,"Facebook ID"),x()(),_(31,"div",7),xe(32,"input",17),_(33,"div",12)(34,"button",13),ke("click",function(s){return r.unlinkFacebook(s)}),O(35,"Unlink"),x()()()(),_(36,"div",18)(37,"div",5)(38,"label",19),O(39,"FB Instant Game ID"),x()(),_(40,"div",7),xe(41,"input",20),_(42,"div",12)(43,"button",13),ke("click",function(s){return r.unlinkFacebookInstantGames(s)}),O(44,"Unlink"),x()()()()(),_(45,"div",3)(46,"div",4)(47,"div",5)(48,"label",21),O(49,"Apple ID"),x()(),_(50,"div",7),xe(51,"input",22),_(52,"div",12)(53,"button",13),ke("click",function(s){return r.unlinkApple(s)}),O(54,"Unlink"),x()()()(),_(55,"div",18)(56,"div",5)(57,"label",23),O(58,"GameCenter ID"),x()(),_(59,"div",7),xe(60,"input",24),_(61,"div",12)(62,"button",13),ke("click",function(s){return r.unlinkGameCenter(s)}),O(63,"Unlink"),x()()()()(),_(64,"div",3)(65,"div",4)(66,"div",5)(67,"label",25),O(68,"Google ID"),x()(),_(69,"div",7),xe(70,"input",26),_(71,"div",12)(72,"button",13),ke("click",function(s){return r.unlinkGoogle(s)}),O(73,"Unlink"),x()()()(),_(74,"div",4)(75,"div",5)(76,"label",27),O(77,"Steam ID"),x()(),_(78,"div",7),xe(79,"input",28),_(80,"div",12)(81,"button",13),ke("click",function(s){return r.unlinkSteam(s)}),O(82,"Unlink"),x()()()()(),_(83,"div",3)(84,"div",4)(85,"div",5)(86,"label",29),O(87,"Email"),x(),xe(88,"br"),x(),xe(89,"input",30),x(),_(90,"div",4)(91,"div",5)(92,"label",31),O(93,"Password"),x()(),xe(94,"input",32),x()(),_(95,"div",33)(96,"div",4),xe(97,"div",5),_(98,"span",34),O(99),x()(),xe(100,"div",4),x(),te(101,Tct,2,1,"button",35),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.accountForm),w(11),S("ngForOf",r.account.devices),w(2),S("disabled",!r.updateAllowed()||0===r.account.devices.length),w(7),S("value",r.account.custom_id),w(2),S("disabled",!r.updateAllowed()||!r.account.custom_id||""===r.account.custom_id),w(8),S("value",r.account.user.facebook_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_id||""===r.account.user.facebook_id),w(7),S("value",r.account.user.facebook_instant_game_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.facebook_instant_game_id||""===r.account.user.facebook_instant_game_id),w(8),S("value",r.account.user.apple_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.apple_id||""===r.account.user.apple_id),w(7),S("value",r.account.user.gamecenter_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.gamecenter_id||""===r.account.user.gamecenter_id),w(8),S("value",r.account.user.google_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.google_id||""===r.account.user.google_id),w(7),S("value",r.account.user.steam_id),w(2),S("disabled",!r.updateAllowed()||!r.account.user.steam_id||""===r.account.user.steam_id),w(18),bn("Verification Status: ",null===r.account.verify_time?"Not Verified":"Verified",""),w(2),S("ngIf",r.updateAllowed()))},dependencies:[Un,xn,yo,fa,HC,UC,Us,kv,da,ha,Ts,zs],styles:[".custom-select[_ngcontent-%COMP%]{height:auto}"]})}return t})();const Act=["editor"];function Mct(t,n){if(1&t&&(_(0,"ngb-alert",24),xe(1,"img",25),_(2,"h6",26),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Oct(t,n){1&t&&(_(0,"ngb-alert",27),xe(1,"img",28),_(2,"h6",26),O(3,"Account was modified successfully."),x()()),2&t&&S("dismissible",!1)}function Ict(t,n){if(1&t){const e=_t();_(0,"button",29),ke("click",function(){return ze(e),Ge(L().updateWallet())}),O(1,"Save"),x()}2&t&&S("disabled",L().updating)}function Nct(t,n){1&t&&(_(0,"th",30),O(1,"Remove"),x())}function Fct(t,n){1&t&&(_(0,"tr")(1,"td",31),O(2,"No wallet ledger items found."),x()())}function Pct(t,n){1&t&&xe(0,"div",37)}function Rct(t,n){1&t&&xe(0,"div",38)}function jct(t,n){if(1&t){const e=_t();_(0,"td")(1,"button",39),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteLedgerItem(r,s,a))}),O(2,"Delete"),x()()}}function Lct(t,n){if(1&t&&(_(0,"tr")(1,"td",40)(2,"pre",41)(3,"small"),O(4),x()()()()),2&t){const e=L().$implicit;w(4),bt(e.metadata)}}function Bct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",32),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.walletLedgerMetadataOpen[o]=!s.walletLedgerMetadataOpen[o])}),te(3,Pct,1,0,"div",33),te(4,Rct,1,0,"div",34),x(),O(5),x(),_(6,"td",35)(7,"pre",36),O(8),x()(),_(9,"td"),O(10),x(),te(11,jct,3,0,"td",22),x(),te(12,Lct,5,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.walletLedgerMetadataOpen[e]),w(1),S("ngIf",r.walletLedgerMetadataOpen[e]),w(1),bn(" ",i.id," "),w(3),bt(i.changeset),w(2),bt(i.update_time),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.walletLedgerMetadataOpen[e])}}let $ct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;editor;jsonEditor;error="";account;walletLedger=[];walletLedgerMetadataOpen=[];updating=!1;updated=!1;nextCursor="";prevCursor="";limit=100;userID;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.userID=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.walletLedger.length=0,this.walletLedger.push(...e[0].items),this.walletLedgerMetadataOpen.length=this.walletLedger.length,this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}loadData(e){this.consoleService.getWalletLedger("",this.userID,this.limit,e).subscribe(i=>{this.walletLedger=i.items,this.walletLedgerMetadataOpen=[],this.nextCursor=i.next_cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.account.wallet}}})}updateWallet(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}this.consoleService.updateAccount("",this.account.user.id,{wallet:e}).subscribe(r=>{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteLedgerItem(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteWalletLedger("",this.account.user.id,r.id).subscribe(()=>{this.error="",this.walletLedger.splice(i,1),this.walletLedgerMetadataOpen.splice(i,1)},o=>{this.error=o})})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Act,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:32,vars:9,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"my-4"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","315px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"align-middle"],[1,"m-0","p-0"],[1,"arrow-right"],[1,"arrow-down"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","5",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(te(0,Mct,4,2,"ngb-alert",0),te(1,Oct,4,1,"ngb-alert",1),_(2,"div",2),xe(3,"div",3,4),x(),te(5,Ict,2,1,"button",5),xe(6,"hr",6),_(7,"div",7)(8,"div",8),xe(9,"div",9),_(10,"div",10)(11,"div",11)(12,"button",12),ke("click",function(){return r.loadData("")}),xe(13,"img",13),x(),_(14,"button",12),ke("click",function(){return r.loadData(r.prevCursor)}),xe(15,"img",14),x(),_(16,"button",12),ke("click",function(){return r.loadData(r.nextCursor)}),xe(17,"img",15),x()()()()(),_(18,"div",16)(19,"table",17)(20,"thead",18)(21,"tr")(22,"th",19),O(23,"ID"),x(),_(24,"th"),O(25,"Changeset"),x(),_(26,"th",20),O(27,"Update Time"),x(),te(28,Nct,2,0,"th",21),x()(),_(29,"tbody"),te(30,Fct,3,0,"tr",22),te(31,Bct,13,7,"ng-template",23),x()()()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(4),S("ngIf",r.updateAllowed()),w(7),S("disabled",0===r.walletLedger.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(12),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.walletLedger.length),w(1),S("ngForOf",r.walletLedger))},dependencies:[Un,xn,yo],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}"]})}return t})(),Vct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getWalletLedger("",r,100,"")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hct(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Uct(t,n){1&t&&(_(0,"th",13),O(1,"Remove"),x())}function zct(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No friends found."),x()())}function Gct(t,n){1&t&&(_(0,"span"),O(1,"Friend (0)"),x())}function Wct(t,n){1&t&&(_(0,"span"),O(1,"Invite Sent (1)"),x())}function qct(t,n){1&t&&(_(0,"span"),O(1,"Invite Received (2)"),x())}function Yct(t,n){1&t&&(_(0,"span"),O(1,"Blocked (3)"),x())}function Xct(t,n){if(1&t){const e=_t();_(0,"td",17)(1,"button",18),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteFriend(r,s,a))}),O(2,"Delete"),x()()}}function Jct(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),O(2),x(),_(3,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),O(4),x(),_(5,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o.user))}),te(6,Gct,2,0,"span",8),te(7,Wct,2,0,"span",8),te(8,qct,2,0,"span",8),te(9,Yct,2,0,"span",8),x(),_(10,"td"),O(11),x(),te(12,Xct,3,0,"td",16),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.user.id),w(2),bt(e.user.username),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(2),bt(e.update_time),w(1),S("ngIf",i.deleteAllowed())}}let Kct=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;error="";account;friends=[];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.friends.length=0,this.friends.push(...e[0].friends)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteFriend(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteFriend("",this.account.user.id,r.user.id).subscribe(()=>{this.error="",this.friends.splice(i,1)},o=>{this.error=o})})}viewAccount(e){this.router.navigate(["/accounts",e.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,Hct,4,2,"ngb-alert",0),_(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),O(6,"User ID"),x(),_(7,"th"),O(8,"Username"),x(),_(9,"th",5),O(10,"State"),x(),_(11,"th",6),O(12,"Update Time"),x(),te(13,Uct,2,0,"th",7),x()(),_(14,"tbody"),te(15,zct,3,0,"tr",8),te(16,Jct,13,8,"tr",9),x()()()),2&i&&(S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.friends.length),w(1),S("ngForOf",r.friends))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Qct=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getFriends("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zct(t,n){if(1&t&&(_(0,"ngb-alert",10),xe(1,"img",11),_(2,"h6",12),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function eut(t,n){1&t&&(_(0,"th",13),O(1,"Remove"),x())}function tut(t,n){1&t&&(_(0,"tr")(1,"td",14),O(2,"No group membership found."),x()())}function nut(t,n){1&t&&(_(0,"span"),O(1,"Superadmin (0)"),x())}function iut(t,n){1&t&&(_(0,"span"),O(1,"Admin (1)"),x())}function rut(t,n){1&t&&(_(0,"span"),O(1,"Member (2)"),x())}function out(t,n){1&t&&(_(0,"span"),O(1,"Join Request (3)"),x())}function sut(t,n){1&t&&(_(0,"span"),O(1,"Banned (4)"),x())}function aut(t,n){if(1&t){const e=_t();_(0,"td")(1,"button",16),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroupUser(r,s,a))}),O(2,"Delete"),x()()}}function lut(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),te(6,nut,2,0,"span",8),te(7,iut,2,0,"span",8),te(8,rut,2,0,"span",8),te(9,out,2,0,"span",8),te(10,sut,2,0,"span",8),x(),_(11,"td",15),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(12),x(),te(13,aut,3,0,"td",8),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.group.id),w(2),bt(e.group.name),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(1),S("ngIf",4===e.state),w(2),bt(e.group.update_time),w(1),S("ngIf",i.deleteAllowed())}}let cut=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;error="";account;groups=[];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.groups.length=0,this.groups.push(...e[0].user_groups)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.account=e[0].account},e=>{this.error=e})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",this.account.user.id,r.group.id).subscribe(()=>{this.error="",this.groups.splice(i,1)},o=>{this.error=o})})}viewAccount(e){this.router.navigate(["/groups",e.group.id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:4,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,Zct,4,2,"ngb-alert",0),_(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),O(6,"Group ID"),x(),_(7,"th"),O(8,"Name"),x(),_(9,"th",5),O(10,"State"),x(),_(11,"th",6),O(12,"Update Time"),x(),te(13,eut,2,0,"th",7),x()(),_(14,"tbody"),te(15,tut,3,0,"tr",8),te(16,lut,14,9,"tr",9),x()()()),2&i&&(S("ngIf",r.error),w(13),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.groups.length),w(1),S("ngForOf",r.groups))},dependencies:[Un,xn,yo],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),uut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getGroups("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dut=["editor"];function hut(t,n){if(1&t&&(_(0,"ngb-alert",34),xe(1,"img",35),_(2,"h6",36),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function fut(t,n){1&t&&(_(0,"ngb-alert",37),xe(1,"img",38),_(2,"h6",36),O(3,"Group was modified successfully."),x()()),2&t&&S("dismissible",!1)}function put(t,n){1&t&&(_(0,"button",39),O(1,"Save"),x()),2&t&&S("disabled",L().updating)}const mut=function(t){return["/accounts",t]},gut=function(t){return{"is-invalid":t}};let vut=(()=>{class t{route;router;consoleService;authService;formBuilder;editor;jsonEditor;error="";group;groupForm;updating=!1;updated=!1;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s}ngOnInit(){this.groupForm=this.formBuilder.group({name:["",qr.required],description:[""],avatar_url:[""],lang_tag:[""],open:[""],max_count:[""]}),this.route.parent.data.subscribe(e=>{this.group=e[0],this.f.name.setValue(this.group.name),this.f.description.setValue(this.group.description),this.f.avatar_url.setValue(this.group.avatar_url),this.f.lang_tag.setValue(this.group.lang_tag),this.f.open.setValue(this.group.open),this.f.max_count.setValue(this.group.max_count),this.updateAllowed()||this.groupForm.disable()},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!this.updateAllowed(),content:{text:this.group.metadata}}})}updateGroup(){this.error="",this.updated=!1,this.updating=!0;let e="";try{e=Zm(this.jsonEditor.get()).text}catch(r){return this.error=r,void(this.updating=!1)}if(this.f.max_count.value{this.updated=!0,this.updating=!1},r=>{this.error=r,this.updating=!1})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f(){return this.groupForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(dut,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:71,vars:16,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["type","success","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","group_id",1,"d-inline"],["type","text","id","group_id","placeholder","Group ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","creator_id",1,"d-inline"],[2,"width","100%",3,"routerLink"],["type","text","id","creator_id","placeholder","Creator ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","name",1,"d-inline"],["type","text","id","name","placeholder","Name","required","","formControlName","name",1,"form-control","form-control-sm","my-2",3,"ngClass"],[1,"invalid-tooltip",3,"hidden"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","formControlName","description",1,"form-control","form-control-sm","my-2"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline","align-self-center"],["for","avatar_url",1,"d-inline"],["type","text","id","avatar_url","placeholder","Avatar URL","formControlName","avatar_url",1,"form-control","form-control-sm","my-2"],["for","lang_tag",1,"d-inline"],["type","text","id","lang_tag","placeholder","Language","formControlName","lang_tag",1,"form-control","form-control-sm","my-2"],["type","text","id","edge_count","placeholder","Members","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_count",1,"d-inline"],["type","text","id","max_count","placeholder","Max Count","formControlName","max_count",1,"form-control","form-control-sm","my-2"],["type","checkbox","id","open","formControlName","open",1,"my-2"],[1,"row","mb-3","add-border-single-row-bottom"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","update_time",1,"d-inline"],["type","text","id","update_time","placeholder","Update Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","success",1,"mb-3",3,"dismissible"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,r){1&i&&(te(0,hut,4,2,"ngb-alert",0),te(1,fut,4,1,"ngb-alert",1),_(2,"form",2),ke("ngSubmit",function(){return r.updateGroup()}),_(3,"div",3)(4,"div",4)(5,"div",5)(6,"label",6),O(7,"Group ID"),x()(),xe(8,"input",7),x(),_(9,"div",4)(10,"div",5)(11,"label",8),O(12,"Creator ID"),x()(),_(13,"a",9),xe(14,"input",10),x()()(),_(15,"div",3)(16,"div",4)(17,"div",5)(18,"label",11),O(19,"Name"),x()(),xe(20,"input",12),_(21,"div",13),O(22,"Name is required"),x()(),_(23,"div",4)(24,"div",5)(25,"label",14),O(26,"Description"),x()(),xe(27,"input",15),x()(),_(28,"div",3)(29,"div",16)(30,"div",5)(31,"label",17),O(32,"Avatar URL"),x()(),xe(33,"input",18),x(),_(34,"div",4)(35,"div",5)(36,"label",19),O(37,"Language"),x()(),xe(38,"input",20),x()(),_(39,"div",3)(40,"div",4)(41,"div",5)(42,"label",8),O(43,"Members"),x()(),xe(44,"input",21),x(),_(45,"div",16)(46,"div",5)(47,"label",22),O(48,"Max Count"),x()(),xe(49,"input",23),x()(),_(50,"div",3)(51,"div",16)(52,"div",5)(53,"label",22),O(54,"Open"),x()(),xe(55,"input",24),x()(),_(56,"div",25)(57,"div",4)(58,"div",5)(59,"label",26),O(60,"Create Time"),x()(),xe(61,"input",27),x(),_(62,"div",4)(63,"div",5)(64,"label",28),O(65,"Update Time"),x()(),xe(66,"input",29),x()(),_(67,"div",30),xe(68,"div",31,32),x(),te(70,put,2,1,"button",33),x()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",r.updated),w(1),S("formGroup",r.groupForm),w(6),S("value",r.group.id),w(5),S("routerLink",Zi(12,mut,r.group.creator_id)),w(1),S("value",r.group.creator_id),w(6),S("ngClass",Zi(14,gut,r.f.name.dirty&&r.f.name.errors)),w(1),S("hidden",r.f.name.disabled||r.f.name.valid||r.f.name.pristine),w(23),S("value",r.group.edge_count),w(17),S("value",r.group.create_time),w(5),S("value",r.group.update_time),w(4),S("ngIf",r.updateAllowed()))},dependencies:[Ru,Of,xn,yo,fa,Us,OC,da,ha,qh,Ts,zs]})}return t})();function yut(t,n){if(1&t&&(_(0,"ngb-alert",13),xe(1,"img",14),_(2,"h6",15),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function _ut(t,n){1&t&&(_(0,"span"),O(1,"Add by membership state"),x())}function but(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L(2);w(1),bt(e.activeState)}}function xut(t,n){if(1&t){const e=_t();_(0,"button",20),ke("click",function(){const o=ze(e).$implicit;return Ge(L(2).activeState=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function wut(t,n){if(1&t&&(_(0,"div",16)(1,"button",17),te(2,_ut,2,0,"span",11),te(3,but,2,1,"span",11),x(),_(4,"div",18),te(5,xut,2,1,"button",19),x()()),2&t){const e=L();w(2),S("ngIf",!e.activeState||""===e.activeState),w(1),S("ngIf",e.activeState&&""!==e.activeState),w(2),S("ngForOf",e.states)}}function Cut(t,n){if(1&t){const e=_t();_(0,"div",21)(1,"div",22)(2,"div",23)(3,"form",24)(4,"div",25),xe(5,"input",26),_(6,"div",27)(7,"div",28)(8,"button",29),ke("click",function(){return ze(e),Ge(L().add())}),O(9,"Add"),x()()()()()()()()}if(2&t){const e=L();w(3),S("formGroup",e.addForm)}}function Sut(t,n){1&t&&(_(0,"th",30),O(1,"Demote"),x())}function kut(t,n){1&t&&(_(0,"th",30),O(1,"Promote"),x())}function Dut(t,n){1&t&&(_(0,"th",31),O(1,"Remove"),x())}function Tut(t,n){1&t&&(_(0,"tr")(1,"td",32),O(2,"No group membership found."),x()())}function Eut(t,n){1&t&&(_(0,"span"),O(1,"Superadmin (0)"),x())}function Aut(t,n){1&t&&(_(0,"span"),O(1,"Admin (1)"),x())}function Mut(t,n){1&t&&(_(0,"span"),O(1,"Member (2)"),x())}function Out(t,n){1&t&&(_(0,"span"),O(1,"Join Request (3)"),x())}function Iut(t,n){1&t&&(_(0,"span"),O(1,"Banned (4)"),x())}function Nut(t,n){if(1&t){const e=_t();_(0,"td",36)(1,"button",37),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().demoteGroupUser(r,s,a))}),lt(),_(2,"svg",38),xe(3,"path",39),x()()()}}function Fut(t,n){if(1&t){const e=_t();_(0,"td",36)(1,"button",37),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().promoteGroupUser(r,s,a))}),lt(),_(2,"svg",40),xe(3,"path",41),x()()()}}function Put(t,n){if(1&t){const e=_t();_(0,"td",42)(1,"button",43),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroupUser(r,s,a))}),O(2,"Delete"),x()()}}function Rut(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(2),x(),_(3,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),te(6,Eut,2,0,"span",11),te(7,Aut,2,0,"span",11),te(8,Mut,2,0,"span",11),te(9,Out,2,0,"span",11),te(10,Iut,2,0,"span",11),x(),_(11,"td",33),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(12),x(),te(13,Nut,4,0,"td",34),te(14,Fut,4,0,"td",34),te(15,Put,3,0,"td",35),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.user.id),w(2),bt(e.user.username),w(2),S("ngIf",0===e.state),w(1),S("ngIf",1===e.state),w(1),S("ngIf",2===e.state),w(1),S("ngIf",3===e.state),w(1),S("ngIf",4===e.state),w(2),bt(e.user.update_time),w(1),S("ngIf",i.editionAllowed()),w(1),S("ngIf",i.editionAllowed()),w(1),S("ngIf",i.editionAllowed())}}let jut=(()=>{class t{route;router;consoleService;formBuilder;authService;error="";group;members=[];activeState="Add Member";states=["Add Member","Join"];addForm;constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o,this.authService=s,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.addForm=this.formBuilder.group({ids:[""]})}ngOnInit(){this.route.data.subscribe(e=>{this.members.length=0,this.members.push(...e[0].group_users)},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}editionAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteGroupUser(e,i,r){e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroupUser("",r.user.id,this.group.id).subscribe(()=>{this.members.splice(i,1)},o=>{this.error=o})}demoteGroupUser(e,i,r){this.error="",this.consoleService.demoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state++},o=>{this.error=o})}promoteGroupUser(e,i,r){this.error="",this.consoleService.promoteGroupMember("",this.group.id,r.user.id).subscribe(()=>{this.members[i].state--},o=>{this.error=o})}viewAccount(e){this.router.navigate(["/accounts",e.user.id],{relativeTo:this.route})}add(){this.consoleService.addGroupUsers("",this.group.id,{ids:this.f.ids.value,join_request:"Join"===this.activeState}).subscribe(()=>{this.error="",this.router.navigate([this.router.url])},i=>{this.error=i})}get f(){return this.addForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge($a),ge(Ho))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:21,vars:8,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["class","btn-group mb-1","ngbDropdown","",4,"ngIf"],["class","row no-gutters mb-4",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","300px"],[2,"width","180px"],["style","width: 70px",4,"ngIf"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","ngbDropdownItem","",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup"],[1,"input-group"],["id","ids","type","text","formControlName","ids","placeholder","Add user IDs as members, comma-separated",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],[2,"width","70px"],[2,"width","90px"],["colSpan","7",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],["class","text-center align-middle",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-arrow-up"],["fill-rule","evenodd","d","M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"],[1,"text-center","align-middle"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(te(0,yut,4,2,"ngb-alert",0),te(1,wut,6,3,"div",1),te(2,Cut,10,1,"div",2),_(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr")(7,"th",6),O(8,"User ID"),x(),_(9,"th"),O(10,"Name"),x(),_(11,"th",7),O(12,"State"),x(),_(13,"th",8),O(14,"Update Time"),x(),te(15,Sut,2,0,"th",9),te(16,kut,2,0,"th",9),te(17,Dut,2,0,"th",10),x()(),_(18,"tbody"),te(19,Tut,3,0,"tr",11),te(20,Rut,16,11,"tr",12),x()()()),2&i&&(S("ngIf",r.error),w(1),S("ngIf",!r.group.open&&r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(13),S("ngIf",r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(1),S("ngIf",r.editionAllowed()),w(2),S("ngIf",0===r.members.length),w(1),S("ngForOf",r.members))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),Lut=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.getMembers("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function But(t,n){if(1&t&&(_(0,"ngb-alert",28),xe(1,"img",29),_(2,"h6",30),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function $ut(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),bt(e.activeType)}}function Vut(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeType=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function Hut(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),bt(e.activeNode)}}function Uut(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeNode=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function zut(t,n){1&t&&(_(0,"tr")(1,"td",32),O(2,"No realtime matches were found."),x()())}function Gut(t,n){1&t&&xe(0,"div",40)}function Wut(t,n){1&t&&xe(0,"div",41)}function qut(t,n){if(1&t){const e=_t();_(0,"div",37),ke("click",function(){ze(e);const r=L(),o=r.index,s=r.$implicit,a=L();return a.getMatchState(o,s),Ge(a.matchStatesOpen[o]=!a.matchStatesOpen[o])}),te(1,Gut,1,0,"div",38),te(2,Wut,1,0,"div",39),x()}if(2&t){const e=L().index,i=L();w(1),S("ngIf",!i.matchStatesOpen[e]),w(1),S("ngIf",i.matchStatesOpen[e])}}function Yut(t,n){1&t&&xe(0,"div",42)}function Xut(t,n){1&t&&(_(0,"span"),O(1,"Yes"),x())}function Jut(t,n){1&t&&(_(0,"span"),O(1,"No"),x())}function Kut(t,n){1&t&&xe(0,"img",51)}function Qut(t,n){if(1&t&&(_(0,"div")(1,"small")(2,"b"),O(3,"Current Tick"),x()(),_(4,"pre",47)(5,"small"),O(6),x()(),_(7,"small")(8,"b"),O(9,"Match State"),x()(),_(10,"pre",47)(11,"small"),O(12),x()()()),2&t){const e=L(2).index,i=L();w(6),bt(i.matchStates[e].tick),w(6),bt(i.matchStates[e].state)}}function Zut(t,n){1&t&&xe(0,"img",51)}function edt(t,n){if(1&t&&(_(0,"pre",47)(1,"small"),O(2),x()()),2&t){const e=L(2).index,i=L();w(2),bt(i.getMatchPresencesString(i.matchStates[e].presences))}}function tdt(t,n){if(1&t&&(_(0,"tr",43)(1,"td",44)(2,"div",45)(3,"div",46)(4,"small")(5,"b"),O(6,"Match Label"),x()(),_(7,"pre",47)(8,"small"),O(9),x()()(),_(10,"div",48),te(11,Kut,1,0,"img",49),te(12,Qut,13,2,"div",7),x(),_(13,"div",48)(14,"small")(15,"b"),O(16,"Match Presences"),x()(),te(17,Zut,1,0,"img",49),te(18,edt,3,1,"pre",50),x()()()()),2&t){const e=L(),i=e.$implicit,r=e.index,o=L();w(9),bt(i.api_match.label),w(2),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),S("ngIf",null!==o.matchStates[r]),w(5),S("ngIf",!o.matchStates[r]||null===o.matchStates[r]),w(1),S("ngIf",null!==o.matchStates[r])}}function ndt(t,n){if(1&t&&(_(0,"tr")(1,"td"),te(2,qut,3,2,"div",33),te(3,Yut,1,0,"div",34),O(4),x(),_(5,"td"),O(6),x(),_(7,"td",35),te(8,Xut,2,0,"span",7),te(9,Jut,2,0,"span",7),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x()(),te(16,tdt,19,5,"tr",36)),2&t){const e=n.index,i=n.$implicit,r=L();w(2),S("ngIf",i.api_match.authoritative),w(1),S("ngIf",!i.api_match.authoritative),w(1),bn(" ",i.api_match.match_id," "),w(2),bt(i.api_match.size),w(2),S("ngIf",i.api_match.authoritative),w(1),S("ngIf",!i.api_match.authoritative),w(2),bt(i.node),w(2),bt(i.api_match.handler_name),w(2),bt(i.api_match.authoritative?i.api_match.tick_rate:"-"),w(1),S("ngIf",r.matchStatesOpen[e])}}let idt=(()=>{class t{route;router;formBuilder;consoleService;error="";matches=[];matchStates=[];matchStatesOpen=[];updated=!1;searchForm1;searchForm2;searchForm3;type;activeType="All";types=["All","Authoritative","Relayed"];activeNode="All Nodes";nodes=["All Nodes"];constructor(e,i,r,o){this.route=e,this.router=i,this.formBuilder=r,this.consoleService=o,this.searchForm1=this.formBuilder.group({match_id:""}),this.searchForm2=this.formBuilder.group({match_id:""}),this.searchForm3=this.formBuilder.group({query:""})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.match_id.setValue(e.get("match_id")),this.f2.match_id.setValue(e.get("match_id")),this.f3.query.setValue(e.get("query"));const i=e.get("type");this.type=Number(i);const r=e.get("node");if(this.route.data.subscribe(o=>{o&&(o[0]&&(this.error="",this.matches.length=0,this.matches.push(...o[0].matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length),o[1]&&this.nodes.push(...o[1]),o.error&&(this.error=o.error))},o=>{this.error=o}),null===i?(this.type=0,this.activeType=this.types[0]):0==this.type||1===this.type||2===this.type?this.activeType=this.types[this.type]:this.error="Invalid type",null!==r){let o=!1;this.nodes.forEach(s=>{r===s&&(this.activeNode=r,o=!0)}),o||(this.error="Invalid node.")}}search(){const e=this.getType();this.type=e,lve(this.consoleService,e,0===e?this.f1.match_id.value:this.f2.match_id.value,this.f3.query.value,this.activeNode===this.nodes[0]?"":this.activeNode).subscribe(i=>this.postData(i),i=>{this.error=i})}postData(e){let i;switch(this.error="",this.matches.length=0,this.matches.push(...e.matches),this.matchStates.length=this.matches.length,this.matchStatesOpen.length=this.matches.length,this.type){case 0:i={type:this.type,match_id:this.f1.match_id.value};break;case 1:i={type:this.type,query:this.f3.query.value},this.activeNode!==this.nodes[0]&&(i.node=this.activeNode);break;case 2:i={type:this.type,match_id:this.f2.match_id.value}}this.router.navigate([],{relativeTo:this.route,queryParams:i})}getType(){let e=0;return this.types.forEach((i,r)=>{this.activeType===i&&(e=r)}),e}getMatchState(e,i){this.matchStatesOpen[e]||(this.matchStates[e]=null,this.error="",this.consoleService.getMatchState("",i.api_match.match_id).subscribe(r=>{this.matchStatesOpen[e]=!0,this.matchStates[e]=r},r=>{this.matchStatesOpen[e]=!1,this.matchStates[e]=null,this.error=r}))}getMatchPresencesString(e){return JSON.stringify(e)}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge($a),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:53,vars:16,consts:[[1,"pb-1"],[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-prepend"],["ngbDropdown","",1,"btn-group"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-right"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","match_id","placeholder","Filter by match ID",1,"form-control"],["type","text","formControlName","query","placeholder","Filter by query or match ID",1,"form-control","border-right-0"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary","dropdown-radius-left"],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","140px"],[2,"width","100px"],[2,"width","130px"],[2,"width","90px"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],["type","button","ngbDropdownItem","",3,"click"],["colSpan","8",1,"text-muted"],["class","arrow",3,"click",4,"ngIf"],["class","d-inline-block mr-3",4,"ngIf"],[1,"text-center"],["class","open-row",4,"ngIf"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"d-inline-block","mr-3"],[1,"open-row"],["colspan","6",1,"align-middle"],[1,"d-flex","p-0"],[1,"p-3","w-33","border"],[1,"pre-wrap","m-0","p-0"],[1,"p-3","w-33","border","border-left-0"],["src","/static/spinner.svg","class","d-block","width","16",4,"ngIf"],["class","pre-wrap m-0 p-0",4,"ngIf"],["src","/static/spinner.svg","width","16",1,"d-block"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Active Matches"),x(),_(2,"h6",1),O(3),x(),te(4,But,4,2,"ngb-alert",2),_(5,"div",3)(6,"div",4)(7,"div",5)(8,"button",6),te(9,$ut,2,1,"span",7),x(),_(10,"div",8),te(11,Vut,2,1,"button",9),x()()(),_(12,"div",10)(13,"button",11),ke("click",function(){return r.search()}),O(14,"Search"),x()()(),_(15,"div",12)(16,"div",13)(17,"div",14)(18,"form",15),ke("ngSubmit",function(){return r.search()}),_(19,"div",16),xe(20,"input",17),x()(),_(21,"form",15),ke("ngSubmit",function(){return r.search()}),_(22,"div",16),xe(23,"input",17),x()(),_(24,"form",15),ke("ngSubmit",function(){return r.search()}),_(25,"div",16),xe(26,"input",18),_(27,"div",10)(28,"div",5)(29,"button",19),te(30,Hut,2,1,"span",7),x(),_(31,"div",8),te(32,Uut,2,1,"button",9),x()()()()()()()(),_(33,"div",20)(34,"table",21)(35,"thead",22)(36,"tr")(37,"th")(38,"span"),O(39,"Match ID"),x()(),_(40,"th",23),O(41,"Presence Count"),x(),_(42,"th",24),O(43,"Authoritative"),x(),_(44,"th",24),O(45,"Node"),x(),_(46,"th",25),O(47,"Handler Name"),x(),_(48,"th",26),O(49,"Tick Rate"),x()()(),_(50,"tbody"),te(51,zut,3,0,"tr",7),te(52,ndt,17,10,"ng-template",27),x()()()),2&i&&(w(3),bn("",r.matches.length," running matches found."),w(1),S("ngIf",r.error),w(5),S("ngIf",r.activeType&&""!==r.activeType),w(2),S("ngForOf",r.types),w(7),S("hidden","All"!==r.activeType)("formGroup",r.searchForm1),w(3),S("hidden","Relayed"!==r.activeType)("formGroup",r.searchForm2),w(3),S("hidden","Authoritative"!==r.activeType)("formGroup",r.searchForm3),w(6),S("ngIf",r.activeNode&&""!==r.activeNode),w(2),S("ngForOf",r.nodes),w(6),Vn("pl-3",r.matches.length>0),w(13),S("ngIf",0===r.matches.length),w(1),S("ngForOf",r.matches))},dependencies:[Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".pre-wrap[_ngcontent-%COMP%]{word-wrap:anywhere;word-break:break-all;white-space:pre-wrap}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}.w-33[_ngcontent-%COMP%]{width:33.3333%!important}.dropdown-radius-right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"]})}return t})(),rdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));return lve(this.consoleService,r,e.queryParamMap.get("match_id"),e.queryParamMap.get("query"),e.queryParamMap.get("node")).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))))}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lve(t,n,e,i,r){switch(n){case 0:return t.listMatches("",null,null,null,null,null,e);case 1:return t.listMatches("",null,!0,null,null,null,null,i,r);case 2:return t.listMatches("",null,!1,null,null,null,e)}return Hn(null)}let odt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.getStatus("").pipe(it(r=>Hn(r.nodes.map(o=>o.name)))).pipe(Jl(r=>(e.data={...e.data,error:r},Hn([]))))}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sdt(t,n){if(1&t&&(_(0,"ngb-alert",25),xe(1,"img",26),_(2,"h6",27),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying groups: ",e.error,"")}}function adt(t,n){1&t&&(_(0,"th",28),O(1,"Remove"),x())}function ldt(t,n){1&t&&(_(0,"tr")(1,"td",29),O(2,"No groups found - change the filter criteria or add new user groups."),x()())}function cdt(t,n){1&t&&xe(0,"td")}function udt(t,n){if(1&t){const e=_t();_(0,"td",32)(1,"button",33),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteGroup(r,s,a))}),O(2,"Delete"),x()()}}function ddt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(2),x(),_(3,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(4),x(),_(5,"td",30),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewGroup(o))}),O(6),x(),te(7,cdt,1,0,"td",23),te(8,udt,3,0,"td",31),x()}if(2&t){const e=n.$implicit,i=L();w(2),bt(e.id),w(2),bt(e.name),w(2),bt(e.update_time),w(1),S("ngIf",i.deleteAllowed()&&e.id===i.systemUserId),w(1),S("ngIf",i.deleteAllowed()&&e.id!==i.systemUserId)}}let hdt=(()=>{class t{route;router;consoleService;authService;formBuilder;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";groupsCount=0;groups=[];nextCursor="";prevCursor="";searchForm;constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.deleteConfirmService=a}ngOnInit(){this.searchForm=this.formBuilder.group({filter:[""]});const e=this.route.snapshot.queryParamMap;this.f.filter.setValue(e.get("filter")),this.nextCursor=e.get("cursor"),this.nextCursor&&""!==this.nextCursor?this.search(1):this.f.filter.value&&this.search(0),this.route.data.subscribe(i=>{this.groups.length=0,i&&(this.groups.push(...i[0].groups),this.groupsCount=i[0].total_count,this.nextCursor=i[0].next_cursor,this.prevCursor=i[0].prev_cursor)},i=>{this.error=i})}search(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listGroups("",this.f.filter.value,i).subscribe(r=>{this.error="",this.groups.length=0,this.groups.push(...r.groups),this.groupsCount=r.total_count,this.nextCursor=r.next_cursor,this.router.navigate([],{relativeTo:this.route,queryParams:{filter:this.f.filter.value,cursor:i},queryParamsHandling:"merge"})},r=>{this.error=r})}deleteGroup(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteGroup("",r.id).subscribe(()=>{this.error="",this.groups.splice(i,1),this.groupsCount--},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}viewGroup(e){this.router.navigate(["/groups",e.id],{relativeTo:this.route})}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:35,vars:8,consts:[[1,"pb-1"],[1,"pb-3"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","filter","placeholder","Filter by group ID or name (use '%' for wildcard search)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered"],[1,"thead-light"],[2,"width","320px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","5",1,"text-muted"],[3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Groups"),x(),_(2,"h6",1),O(3),x(),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"form",5),ke("ngSubmit",function(){return r.search(0)}),_(8,"div",6),xe(9,"input",7),_(10,"div",8)(11,"div",9)(12,"button",10),ke("click",function(){return r.search(0)}),O(13,"Search"),x()()()()()(),_(14,"div",11)(15,"div",12)(16,"button",13),ke("click",function(){return r.search(0)}),xe(17,"img",14),x(),_(18,"button",13),ke("click",function(){return r.search(1)}),xe(19,"img",15),x()()()()(),te(20,sdt,4,2,"ngb-alert",16),_(21,"div",17)(22,"table",18)(23,"thead",19)(24,"tr")(25,"th",20),O(26,"Group ID"),x(),_(27,"th"),O(28,"Name"),x(),_(29,"th",21),O(30,"Last Update"),x(),te(31,adt,2,0,"th",22),x()(),_(32,"tbody"),te(33,ldt,3,0,"tr",23),te(34,ddt,9,5,"tr",24),x()()()),2&i&&(w(3),bn("",r.groupsCount," groups found."),w(4),S("formGroup",r.searchForm),w(9),S("disabled",0===r.groups.length),w(2),S("disabled",""===r.nextCursor),w(2),S("ngIf",r.error),w(11),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.groups.length),w(1),S("ngForOf",r.groups))},dependencies:[Un,xn,yo,fa,Us,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),fdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.queryParamMap.get("filter");return this.consoleService.listGroups("",r,null)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pdt(t,n){if(1&t){const e=_t();_(0,"button",13),ke("click",function(r){return ze(e),Ge(L().exportGroup(r))}),xe(1,"img",14),O(2,"Export"),x()}}function mdt(t,n){if(1&t){const e=_t();_(0,"button",15),ke("click",function(r){return ze(e),Ge(L().deleteGroup(r,!1))}),xe(1,"img",16),O(2,"Delete"),x()}}function gdt(t,n){if(1&t&&(_(0,"ngb-alert",17),xe(1,"img",18),_(2,"h6",19),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const vdt=function(t,n){return["/groups",t,n]};function ydt(t,n){if(1&t&&(_(0,"div"),Cl(1,20),_(2,"a",21),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,vdt,i.group.id,e.path)),w(1),bt(e.label)}}const _dt=function(){return["/groups"]};let bdt=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;group;error="";views=[{label:"Details",path:"details"},{label:"Members",path:"members"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.group=e[0]},e=>{this.error=e})}deleteGroup(e,i){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteGroup("",this.group.id).subscribe(()=>{this.error="",this.router.navigate(["/groups"])},r=>{this.error=r})})}exportGroup(e){e.target.disabled=!0,this.error="",this.consoleService.exportGroup("",this.group.id).subscribe(i=>{this.error="";const r=this.group.id+"-export.json",o=JSON.stringify(i,null,2),s=(new TextEncoder).encode(o),a=new Blob([s],{type:"application/json;charset=utf-8"});(0,XI.saveAs)(a,r),e.target.disabled=!1},i=>{e.target.disabled=!1,this.error=i})}updateAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}exportAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}banAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:18,vars:7,consts:[[1,"pb-1"],[1,"account-top-nav","d-flex","justify-content-between","align-items-baseline","mb-4"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-outline-secondary mr-2",3,"click",4,"ngIf"],["type","button","class","btn btn-danger btn-danger-icon mr-2",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["accountNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["src","/static/svg/export.svg","alt","","width","13","height","13",1,"mr-2"],["type","button",1,"btn","btn-danger","btn-danger-icon","mr-2",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","14","height","",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"User Group"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Group"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,pdt,3,0,"button",7),te(12,mdt,3,0,"button",8),x()(),te(13,gdt,4,2,"ngb-alert",9),_(14,"nav",10,11),te(16,ydt,4,6,"div",12),x(),xe(17,"router-outlet")),2&i&&(w(6),S("routerLink",cl(6,_dt)),w(3),bt(r.group.id),w(2),S("ngIf",r.exportAllowed()),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.account-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),xdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getGroup("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wdt(t,n){if(1&t){const e=_t();_(0,"button",12),ke("click",function(r){return ze(e),Ge(L().deleteLeaderboard(r))}),xe(1,"img",13),O(2,"Delete Leaderboard"),x()}}function Cdt(t,n){if(1&t&&(_(0,"ngb-alert",14),xe(1,"img",15),_(2,"h6",16),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}const Sdt=function(t,n){return["/leaderboards",t,n]};function kdt(t,n){if(1&t&&(_(0,"div"),Cl(1,17),_(2,"a",18),O(3),x(),Sl(),x()),2&t){const e=n.$implicit,i=L();w(1),S("ngbNavItem",e.path),w(1),S("routerLink",Rr(3,Sdt,i.leaderboard.id,e.path)),w(1),bt(e.label)}}const Ddt=function(){return["/leaderboards"]};let Tdt=(()=>{class t{route;router;consoleService;authService;deleteConfirmService;leaderboard;error="";views=[{label:"Details",path:"details"},{label:"Records",path:"records"}];constructor(e,i,r,o,s){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.deleteConfirmService=s}ngOnInit(){this.route.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}deleteLeaderboard(e){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,this.error="",this.consoleService.deleteLeaderboard("",this.leaderboard.id).subscribe(()=>{this.error="",this.router.navigate(["/leaderboards"])},i=>{this.error=i})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_DEVELOPER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"pb-1"],[1,"leaderboard-top-nav","d-flex","justify-content-between","align-items-baseline","mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],[1,"breadcrumb-item","active"],["type","button","class","btn btn-danger btn-danger-icon",3,"click",4,"ngIf"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],["ngbNav","",1,"navbar-expand-sm","p-0","mb-3"],["leaderboardNav","ngbNav"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-danger","btn-danger-icon",3,"click"],["src","/static/svg/bin-red.svg","alt","","width","13","height","13",1,"mr-2"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"ngbNavItem"],["ngbNavLink","","routerLinkActive","account-link-active",3,"routerLink"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Leaderboard"),x(),_(2,"div",1)(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),O(7,"Leaderboards"),x()(),_(8,"li",6),O(9),x()()(),_(10,"div"),te(11,wdt,3,0,"button",7),x()(),te(12,Cdt,4,2,"ngb-alert",8),_(13,"nav",9,10),te(15,kdt,4,6,"div",11),x(),xe(16,"router-outlet")),2&i&&(w(6),S("routerLink",cl(5,Ddt)),w(3),bt(r.leaderboard.id),w(2),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.error),w(3),S("ngForOf",r.views))},dependencies:[Vf,Ru,Ny,Un,xn,yo,zd,Xh,r_,Kf],styles:[".nav-link[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#000;opacity:.5;padding:0 0 1.6em;margin-right:3em;margin-bottom:-2px;font-weight:600}.nav-link[_ngcontent-%COMP%]:hover{opacity:1}.nav-link.account-link-active[_ngcontent-%COMP%]{opacity:1;border-bottom:solid 2px #7668ED}.navbar-expand-sm[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9}.leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})(),Edt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.paramMap.get("id");return this.consoleService.getLeaderboard("",r)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Adt=["editor"];function Mdt(t,n){if(1&t&&(_(0,"ngb-alert",24),xe(1,"img",25),_(2,"h6",26),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Odt(t,n){if(1&t&&(_(0,"div",27)(1,"h6"),O(2,"Tournament"),x(),xe(3,"hr",28),_(4,"div",2)(5,"div",3)(6,"div",4)(7,"label",29),O(8,"Title"),x()(),xe(9,"input",30),x(),_(10,"div",3)(11,"div",4)(12,"label",31),O(13,"Description"),x()(),xe(14,"input",32),x()(),_(15,"div",2)(16,"div",3)(17,"div",4)(18,"label",33),O(19,"Category"),x()(),xe(20,"input",34),x(),_(21,"div",3)(22,"div",4)(23,"label",35),O(24,"Max Num Score"),x()(),xe(25,"input",36),x()(),_(26,"div",2)(27,"div",3)(28,"div",4)(29,"label",37),O(30,"Size"),x()(),xe(31,"input",38),x(),_(32,"div",3)(33,"div",4)(34,"label",39),O(35,"Max Size"),x()(),xe(36,"input",40),x()(),_(37,"div",2)(38,"div",3)(39,"div",4)(40,"label",41),O(41,"Duration"),x()(),xe(42,"input",42),x(),_(43,"div",3)(44,"div",4)(45,"label",43),O(46,"Join Required"),x()(),xe(47,"input",44),x()(),_(48,"div",2)(49,"div",3)(50,"div",4)(51,"label",45),O(52,"Start Time"),x()(),xe(53,"input",46),x(),_(54,"div",3)(55,"div",4)(56,"label",47),O(57,"End Time"),x()(),xe(58,"input",48),x()(),_(59,"div",2)(60,"div",3)(61,"div",4)(62,"label",49),O(63,"Start Active"),x()(),xe(64,"input",50),x(),_(65,"div",3)(66,"div",4)(67,"label",51),O(68,"End Active"),x()(),xe(69,"input",52),x()()()),2&t){const e=L();w(9),S("value",e.leaderboard.title),w(5),S("value",e.leaderboard.description),w(6),S("value",e.leaderboard.category),w(5),S("value",e.leaderboard.max_num_score),w(6),S("value",e.leaderboard.size),w(5),S("value",e.leaderboard.max_size),w(6),S("value",e.leaderboard.duration),w(5),S("value",e.leaderboard.join_required),w(6),S("value",e.leaderboard.start_time),w(5),S("value",e.leaderboard.end_time),w(6),S("value",e.leaderboard.start_active),w(5),S("value",e.leaderboard.end_active)}}let Idt=(()=>{class t{route;editor;orderString={0:"Ascending",1:"Descending"};operatorString={0:"Best",1:"Set",2:"Increment",3:"Decrement"};jsonEditor;leaderboard;error="";constructor(e){this.route=e}ngOnInit(){this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}ngAfterViewInit(){this.jsonEditor=new $p({target:this.editor.nativeElement,props:{mode:Uo.text,readOnly:!0,content:{text:this.leaderboard.metadata??""}}})}static \u0275fac=function(i){return new(i||t)(ge(Vr))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&wo(Adt,5),2&i){let o;Tn(o=En())&&(r.editor=o.first)}},decls:50,vars:10,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"add-border","mb-3"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-baseline"],[1,"col-3","pl-0"],["for","id",1,"d-inline"],["type","text","id","id","placeholder","ID","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","authoritative",1,"d-inline"],["type","text","id","authoritative","placeholder","Authoritative","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","sortorder",1,"d-inline"],["type","text","id","sortorder","placeholder","Sort Order","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","operator",1,"d-inline"],["type","text","id","operator","placeholder","Operator","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","reset",1,"d-inline"],["type","text","id","reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","create_time",1,"d-inline"],["type","text","id","create_time","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],[1,"row","add-border-single-row-bottom"],["type","text","id","prev_reset","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["type","text","id","next_reset","placeholder","Create Time","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["class","mt-4",4,"ngIf"],[1,"card","p-2","mb-3","jsoneditor",2,"height","400px"],[2,"height","400px"],["editor",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"mt-4"],[1,"mb-4"],["for","title",1,"d-inline"],["type","text","id","title","placeholder","Title","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","description",1,"d-inline"],["type","text","id","description","placeholder","Description","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","category",1,"d-inline"],["type","text","id","category","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_num_score",1,"d-inline"],["type","text","id","max_num_score","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","size",1,"d-inline"],["type","text","id","size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","max_size",1,"d-inline"],["type","text","id","max_size","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","duration",1,"d-inline"],["type","text","id","duration","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","join_required",1,"d-inline"],["type","text","id","join_required","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_time",1,"d-inline"],["type","text","id","start_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_time",1,"d-inline"],["type","text","id","end_time","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","start_active",1,"d-inline"],["type","text","id","start_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"],["for","end_active",1,"d-inline"],["type","text","id","end_active","placeholder","Not Set","disabled","","readonly","",1,"form-control-plaintext","form-control-sm","my-2",3,"value"]],template:function(i,r){1&i&&(te(0,Mdt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),O(6,"ID"),x()(),xe(7,"input",6),x(),_(8,"div",3)(9,"div",4)(10,"label",7),O(11,"Authoritative"),x()(),xe(12,"input",8),x()(),_(13,"div",2)(14,"div",3)(15,"div",4)(16,"label",9),O(17,"Sort Order"),x()(),xe(18,"input",10),x(),_(19,"div",3)(20,"div",4)(21,"label",11),O(22,"Operator"),x()(),xe(23,"input",12),x()(),_(24,"div",2)(25,"div",3)(26,"div",4)(27,"label",13),O(28,"Reset Schedule"),x()(),xe(29,"input",14),x(),_(30,"div",3)(31,"div",4)(32,"label",15),O(33,"Create Time"),x()(),xe(34,"input",16),x()(),_(35,"div",17)(36,"div",3)(37,"div",4)(38,"label",13),O(39,"Prev Reset"),x()(),xe(40,"input",18),x(),_(41,"div",3)(42,"div",4)(43,"label",15),O(44,"Next Reset"),x()(),xe(45,"input",19),x()()(),te(46,Odt,70,12,"div",20),_(47,"div",21),xe(48,"div",22,23),x()),2&i&&(S("ngIf",r.error),w(7),S("value",r.leaderboard.id),w(5),S("value",r.leaderboard.authoritative),w(6),S("value",r.orderString[r.leaderboard.sort_order]),w(5),S("value",r.operatorString[r.leaderboard.operator]),w(6),S("value",r.leaderboard.reset_schedule),w(5),S("value",r.leaderboard.create_time),w(6),S("value",r.leaderboard.prev_reset),w(5),S("value",r.leaderboard.next_reset),w(1),S("ngIf",r.leaderboard.tournament))},dependencies:[xn,yo],styles:[".leaderboard-top-nav[_ngcontent-%COMP%]{border-bottom:solid 1px #dadae9;padding-bottom:1.5em}"]})}return t})();function Ndt(t,n){if(1&t&&(_(0,"ngb-alert",19),xe(1,"img",20),_(2,"h6",21),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("An error occurred: ",e.error,"")}}function Fdt(t,n){1&t&&(_(0,"th",22),O(1,"Remove"),x())}function Pdt(t,n){1&t&&(_(0,"tr")(1,"td",23),O(2,"No records found."),x()())}function Rdt(t,n){1&t&&xe(0,"div",28)}function jdt(t,n){1&t&&xe(0,"div",29)}function Ldt(t,n){if(1&t){const e=_t();_(0,"td",30)(1,"button",31),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteRecord(r,s,a))}),O(2,"Delete"),x()()}}function Bdt(t,n){if(1&t&&(_(0,"tr")(1,"td",32)(2,"pre",33)(3,"small"),O(4),x()()()()),2&t){const e=L().$implicit;w(4),bt(e.metadata)}}function $dt(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",24),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.recordsMetadataOpen[o]=!s.recordsMetadataOpen[o])}),te(3,Rdt,1,0,"div",25),te(4,jdt,1,0,"div",26),x(),O(5),x(),_(6,"td"),O(7),x(),_(8,"td"),O(9),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x(),te(18,Ldt,3,0,"td",27),x(),te(19,Bdt,5,1,"tr",17)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.recordsMetadataOpen[e]),w(1),S("ngIf",r.recordsMetadataOpen[e]),w(1),bn(" ",i.owner_id," "),w(2),bt(i.username),w(2),bt(i.score),w(2),bt(i.subscore),w(2),bt(i.rank),w(2),bt(i.num_score),w(2),bt(i.expiry_time?i.expiry_time:"-"),w(1),S("ngIf",r.deleteAllowed()),w(1),S("ngIf",r.recordsMetadataOpen[e])}}let Vdt=(()=>{class t{route;consoleService;authService;deleteConfirmService;error="";leaderboard;records=[];recordsMetadataOpen=[];nextCursor="";prevCursor="";constructor(e,i,r,o){this.route=e,this.consoleService=i,this.authService=r,this.deleteConfirmService=o}ngOnInit(){this.route.data.subscribe(e=>{this.records.length=0,this.records.push(...e[0].records),this.nextCursor=e[0].next_cursor,this.prevCursor=e[0].prev_cursor,this.recordsMetadataOpen.length=this.records.length},e=>{this.error=e}),this.route.parent.data.subscribe(e=>{this.leaderboard=e[0]},e=>{this.error=e})}loadRecords(e){let i="";switch(e){case-1:i=this.prevCursor;break;case 0:i="";break;case 1:i=this.nextCursor}this.consoleService.listLeaderboardRecords("",this.leaderboard.id,null,100,i,null).subscribe(r=>{this.error="",this.nextCursor=r.next_cursor,this.prevCursor=r.prev_cursor,this.records.length=0,this.records.push(...r.records),this.recordsMetadataOpen.length=0,this.recordsMetadataOpen.length=this.records.length},r=>{this.error=r})}deleteRecord(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteLeaderboardRecord("",r.leaderboard_id,r.owner_id).subscribe(()=>{this.error="",this.records.splice(i,1),this.recordsMetadataOpen.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai),ge(Ho),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:34,vars:7,consts:[["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered"],[1,"thead-light"],[2,"width","380px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],["colSpan","8",1,"text-muted"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],["colspan","7",1,"align-middle"],[1,"pre-wrap","m-0","p-0"]],template:function(i,r){1&i&&(te(0,Ndt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadRecords(0)}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadRecords(-1)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadRecords(1)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th",13),O(17,"Owner ID"),x(),_(18,"th"),O(19,"Username"),x(),_(20,"th",14),O(21,"Score"),x(),_(22,"th",14),O(23,"Subscore"),x(),_(24,"th",14),O(25,"Rank"),x(),_(26,"th",14),O(27,"No. of scores"),x(),_(28,"th",15),O(29,"Expiry Time"),x(),te(30,Fdt,2,0,"th",16),x()(),_(31,"tbody"),te(32,Pdt,3,0,"tr",17),te(33,$dt,20,11,"ng-template",18),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.records.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(20),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.records.length),w(1),S("ngForOf",r.records))},dependencies:[Un,xn,yo]})}return t})(),Hdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent.paramMap.get("id");return this.consoleService.listLeaderboardRecords("",r,null,100,null,null)}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Udt=["editorReq"],zdt=["editorVars"],Gdt=["editorRes"];function Wdt(t,n){if(1&t&&(_(0,"ngb-alert",27),xe(1,"img",28),_(2,"h6",29),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error invoking RPC call: ",e.error,"")}}function qdt(t,n){if(1&t&&(_(0,"option",30),O(1),x()),2&t){const e=n.$implicit;Ph("value",e.method),w(1),bt(e.method)}}function Ydt(t,n){if(1&t&&(_(0,"option",30),O(1),x()),2&t){const e=n.$implicit;Ph("value",e.method),w(1),bt(e.method)}}function Xdt(t,n){if(1&t){const e=_t();_(0,"button",31),ke("click",function(){return ze(e),Ge(L().addSessionVars())}),O(1,"Add Session Variables"),x()}}let Jdt=(()=>{class t{route;router;consoleService;formBuilder;editorReq;editorVars;editorRes;jsonEditorReq;jsonEditorVars;jsonEditorRes;error="";rpcEndpoints=[];endpoints=[];endpointCallForm;addVars=!1;constructor(e,i,r,o){this.route=e,this.router=i,this.consoleService=r,this.formBuilder=o}ngOnInit(){this.endpointCallForm=this.formBuilder.group({method:["",qr.required],user_id:[""]}),this.f.method.valueChanges.subscribe(i=>{const r=this.endpoints.concat(this.rpcEndpoints).find(o=>o.method===i?o:null);this.updateQueryParam(r.method),this.setupRequestBody(r.body_template)}),this.route.data.subscribe(i=>{const r=i[0];this.endpoints.length=0,this.endpoints.push(...r.endpoints),this.rpcEndpoints.length=0,this.rpcEndpoints.push(...r.rpc_endpoints)},i=>{this.error=i});const e=this.endpoints.concat(this.rpcEndpoints).find(i=>i.method===this.route.snapshot.queryParamMap.get("endpoint")?i:null);null!=e&&this.f.method.setValue(e.method)}ngAfterViewInit(){this.jsonEditorReq=new $p({target:this.editorReq.nativeElement,props:{mode:Uo.text,readOnly:!0}}),this.jsonEditorVars=new $p({target:this.editorVars.nativeElement,props:{mode:Uo.text}}),this.jsonEditorRes=new $p({target:this.editorRes.nativeElement,props:{mode:Uo.text,readOnly:!0}})}sendRequest(){this.error="";let e="";try{e=Zm(this.jsonEditorReq.get()).text}catch(s){return void(this.error=s)}let i={};try{const s=Zm(this.jsonEditorVars.get()).text;if(""!==s){const a=JSON.parse(s);Object.keys(a).forEach(l=>{if("string"!=typeof l)throw new Error(`Invalid session variables: ${l} must be a string`);if("string"!=typeof a[l])throw new Error(`Invalid session variables: ${a[l]} must be a string`)}),i=a}}catch(s){return void(this.error=s)}const r={user_id:this.f.user_id.value,body:e,session_vars:i};let o=null;o=this.isRpcEndpoint(this.f.method.value)?this.consoleService.callRpcEndpoint("",this.f.method.value,r):this.consoleService.callApiEndpoint("",this.f.method.value,r),o.subscribe(s=>{if(s.error_message&&""!==s.error_message)this.jsonEditorRes.set({json:s.error_message});else{e="";try{e=""===s.body?s.body:JSON.stringify(JSON.parse(s.body),null,2)}catch(a){return void(this.error=a)}this.jsonEditorRes.set({text:e})}},s=>{this.jsonEditorRes.set({text:""}),this.error=s})}isRpcEndpoint(e){return null!=this.rpcEndpoints.find(i=>i.method===e?i:null)}setupRequestBody(e){if(null!=this.jsonEditorReq){if(!e||""===e)return this.jsonEditorReq.set({text:""}),void this.jsonEditorReq.updateProps({readOnly:!this.isRpcEndpoint(this.f.method.value)});try{const i=JSON.stringify(JSON.parse(e),null,2);this.jsonEditorReq.set({text:i}),this.jsonEditorReq.updateProps({readOnly:!1})}catch(i){return void(this.error=i)}}}updateQueryParam(e){this.router.navigate([],{relativeTo:this.route,queryParams:{endpoint:e},queryParamsHandling:"merge"})}addSessionVars(){this.addVars=!0,this.jsonEditorVars.set({json:{"":"","":""}})}get f(){return this.endpointCallForm.controls}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&(wo(Udt,5),wo(zdt,5),wo(Gdt,5)),2&i){let o;Tn(o=En())&&(r.editorReq=o.first),Tn(o=En())&&(r.editorVars=o.first),Tn(o=En())&&(r.editorRes=o.first)}},decls:43,vars:8,consts:[[1,"pb-4"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],[1,"input-group-prepend"],["id","method","formControlName","method",1,"form-control","custom-select","dropdown-radius"],["disabled","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["disabled","",1,"text-muted"],["type","text","formControlName","user_id","placeholder","set user ID as request context",1,"form-control","border-right-0"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],[1,"row","mb-3",3,"hidden"],[1,"col-md-6","py-3"],[1,"text-muted","pt-2"],[1,"card","p-2","mb-3","jsoneditor"],[2,"height","200px"],["editorVars",""],[1,"row","mb-3"],[1,"col-lg-6","py-3"],[2,"height","500px"],["editorReq",""],["editorRes",""],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[3,"value"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"API Explorer"),x(),te(2,Wdt,4,2,"ngb-alert",1),_(3,"div",2)(4,"div",3)(5,"div",4)(6,"form",5),ke("ngSubmit",function(){return r.sendRequest()}),_(7,"div",6)(8,"div",7)(9,"select",8)(10,"option",9),O(11,"Select Endpoint"),x(),te(12,qdt,2,2,"option",10),_(13,"option",11),O(14,"----"),x(),te(15,Ydt,2,2,"option",10),x()(),xe(16,"input",12),_(17,"div",13)(18,"button",14),O(19,"Send Request"),x()()()()()()(),te(20,Xdt,2,0,"button",15),_(21,"div",16)(22,"div",17)(23,"h5"),O(24,"Session Vars"),x(),_(25,"div",18),O(26,"Add variables as object of string to string key-value pairs."),x(),_(27,"div",19),xe(28,"div",20,21),x()()(),_(30,"div",22)(31,"div",23)(32,"h5"),O(33,"Request Body"),x(),_(34,"div",19),xe(35,"div",24,25),x()(),_(37,"div",23)(38,"h5"),O(39,"Response"),x(),_(40,"div",19),xe(41,"div",24,26),x()()()),2&i&&(w(2),S("ngIf",r.error),w(4),S("formGroup",r.endpointCallForm),w(4),S("value",""),w(2),S("ngForOf",r.rpcEndpoints),w(3),S("ngForOf",r.endpoints),w(3),S("disabled",r.f.method.invalid),w(2),S("ngIf",!r.addVars),w(1),S("hidden",!r.addVars))},dependencies:[Un,xn,yo,fa,HC,UC,Us,kv,da,ha,Ts,zs],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}"]})}return t})(),Kdt=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){return this.consoleService.listApiEndpoints("")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qdt(t,n){if(1&t&&(_(0,"ngb-alert",16),xe(1,"img",17),_(2,"h6",18),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Zdt(t,n){1&t&&(_(0,"th"),O(1,"User ID"),x())}function eht(t,n){1&t&&xe(0,"div",23)}function tht(t,n){1&t&&xe(0,"div",24)}function nht(t,n){if(1&t&&(_(0,"td"),O(1),x()),2&t){const e=L().$implicit;w(1),bt(e.user_id)}}function iht(t,n){if(1&t&&(_(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),O(6,"Provider Response"),x()()(),_(7,"div")(8,"pre",28)(9,"small"),O(10),x()()()()()()),2&t){const e=L().$implicit;w(10),bt(e.provider_response)}}function rht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",19),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.purchasesRowsOpen[o]=!s.purchasesRowsOpen[o])}),te(3,eht,1,0,"div",20),te(4,tht,1,0,"div",21),x(),O(5),x(),te(6,nht,2,1,"td",13),_(7,"td"),O(8),x(),_(9,"td"),O(10),x(),_(11,"td"),O(12),x(),_(13,"td"),O(14),x(),_(15,"td"),O(16),x()(),te(17,iht,11,1,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.purchasesRowsOpen[e]),w(1),S("ngIf",r.purchasesRowsOpen[e]),w(1),bn(" ",i.transaction_id," "),w(1),S("ngIf",!r.userId),w(2),bt(i.product_id),w(2),bt(r.getStoreText(i.store)),w(2),bt(i.purchase_time),w(2),bt(i.create_time),w(2),bt(r.getRefundText(i.refund_time)),w(1),S("ngIf",r.purchasesRowsOpen[e])}}function oht(t,n){1&t&&(_(0,"tr")(1,"td",29),O(2,"No purchases were found."),x()())}let cve=(()=>{class t{route;consoleService;purchases=[];purchasesRowsOpen=[];error="";nextCursor="";prevCursor="";userId;limit=100;transactionId;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){const e=this.route?.parent?.snapshot?.paramMap?.get("id")??"";e&&(this.userId=e),this.route.data.subscribe(i=>{this.purchases=i[0].validated_purchases,this.nextCursor=i[0].cursor,this.prevCursor=i[0].prev_cursor})}ngOnChanges(e){e.transactionId.firstChange||(this.transactionId?(this.transactionId=this.transactionId.trim(),this.consoleService.getPurchase("",this.transactionId).subscribe(i=>{this.purchases=[i]},i=>{this.error=i})):""===this.transactionId&&this.loadData(""))}loadData(e){this.error="",this.consoleService.listPurchases("",this.userId,this.limit,e).subscribe(i=>{this.purchases=i.validated_purchases,this.purchasesRowsOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(zy[e])}getRefundText(e){return"1970-01-01T00:00:00Z"===e?"":e}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["app-purchases"]],inputs:{transactionId:["transaction_id","transactionId"]},features:[ei],decls:32,vars:7,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[4,"ngIf"],[2,"width","180px"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","6"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],["colspan","6",1,"text-muted"]],template:function(i,r){1&i&&(te(0,Qdt,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadData("")}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadData(r.prevCursor)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadData(r.nextCursor)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),O(17,"Transaction ID"),x(),te(18,Zdt,2,0,"th",13),_(19,"th"),O(20,"Product ID"),x(),_(21,"th"),O(22,"Store"),x(),_(23,"th",14),O(24,"Purchase Time"),x(),_(25,"th",14),O(26,"Create Time"),x(),_(27,"th",14),O(28,"Refund Time"),x()()(),_(29,"tbody"),te(30,rht,18,10,"ng-template",15),te(31,oht,3,0,"tr",13),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.purchases.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(8),S("ngIf",!r.userId),w(12),S("ngForOf",r.purchases),w(1),S("ngIf",0===r.purchases.length))},dependencies:[Un,xn,yo]})}return t})(),uve=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent?.paramMap?.get("id")??"";return this.consoleService.listPurchases("",r,100,"")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sht(t,n){1&t&&(_(0,"span"),O(1,"Filter by type"),x())}function aht(t,n){if(1&t&&(_(0,"span"),O(1),x()),2&t){const e=L();w(1),bt(e.activeFilter)}}function lht(t,n){if(1&t){const e=_t();_(0,"button",39),ke("click",function(){const o=ze(e).$implicit;return Ge(L().activeFilter=o)}),O(1),x()}if(2&t){const e=n.$implicit;w(1),bt(e)}}function cht(t,n){if(1&t&&(_(0,"h6"),O(1),x()),2&t){const e=L();w(1),bn("Showing results for chat room label: ",e.f1.label.value,"")}}const uht=function(t){return["/groups",t]};function dht(t,n){if(1&t&&(_(0,"h6"),O(1,"Showing results for group ID: "),_(2,"a",40),O(3),x()()),2&t){const e=L();w(2),S("routerLink",Zi(2,uht,e.route.snapshot.queryParamMap.get("group_id"))),w(1),bt(e.f2.group_id.value)}}const dve=function(t){return["/accounts",t]};function hht(t,n){if(1&t&&(_(0,"h6"),O(1,"Showing results for user IDs: "),_(2,"a",40),O(3),x(),O(4,", "),_(5,"a",40),O(6),x()()),2&t){const e=L();w(2),S("routerLink",Zi(4,dve,e.route.snapshot.queryParamMap.get("user_id_one"))),w(1),bt(e.f3.user_id_one.value),w(2),S("routerLink",Zi(6,dve,e.route.snapshot.queryParamMap.get("user_id_two"))),w(1),bt(e.f3.user_id_two.value)}}function fht(t,n){if(1&t&&(_(0,"ngb-alert",41),xe(1,"img",42),_(2,"h6",43),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error when querying messages: ",e.error,"")}}function pht(t,n){1&t&&(_(0,"th",44),O(1,"Remove"),x())}function mht(t,n){if(1&t&&(_(0,"tr")(1,"td",45),O(2,"No messages found."),x()()),2&t){const e=L();w(1),ft("colspan",e.deleteAllowed()?6:5)}}function ght(t,n){1&t&&xe(0,"div",54)}function vht(t,n){1&t&&xe(0,"div",55)}function yht(t,n){1&t&&xe(0,"td")}function _ht(t,n){if(1&t){const e=_t();_(0,"td",56)(1,"button",57),ke("click",function(r){ze(e);const o=L(),s=o.index,a=o.$implicit;return Ge(L().deleteMessage(r,s,a))}),O(2,"Delete"),x()()}}function bht(t,n){if(1&t&&(_(0,"tr",58)(1,"td"),O(2),x()()),2&t){const e=L().$implicit,i=L();w(1),ft("colspan",i.deleteAllowed()?6:5),w(1),bn(" ",e.content," ")}}function xht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td"),O(2),x(),_(3,"td",46),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(4),x(),_(5,"td",47),ke("click",function(){const o=ze(e).$implicit;return Ge(L().viewAccount(o))}),O(6),x(),_(7,"td",48)(8,"div",49),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.messageStatesOpen[o]=!s.messageStatesOpen[o])}),te(9,ght,1,0,"div",50),te(10,vht,1,0,"div",51),x(),O(11),x(),_(12,"td"),O(13),x(),te(14,yht,1,0,"td",3),te(15,_ht,3,0,"td",52),x(),te(16,bht,3,2,"tr",53)}if(2&t){const e=n.$implicit,i=n.index,r=L();w(2),bt(e.code),w(2),bt(e.sender_id),w(2),bt(e.username),w(3),S("ngIf",!r.messageStatesOpen[i]),w(1),S("ngIf",r.messageStatesOpen[i]),w(1),bn(" ",e.content," "),w(2),bt(e.create_time),w(1),S("ngIf",r.deleteAllowed()&&e.sender_id===r.systemUserId),w(1),S("ngIf",r.deleteAllowed()&&e.sender_id!==r.systemUserId),w(1),S("ngIf",r.messageStatesOpen[i])}}function wht(t,n){if(1&t&&(_(0,"ngb-alert",59),xe(1,"img",42),_(2,"h6",43),O(3,"Failed to delete data."),x(),_(4,"p",60),O(5),x()()),2&t){const e=L();S("dismissible",!1),w(5),bt(e.deleteError)}}function Cht(t,n){if(1&t){const e=_t();_(0,"ngb-alert",61),ke("close",function(){return ze(e),Ge(L().deleteSuccess=!1)}),xe(1,"img",62),_(2,"h6",43),O(3),x()()}if(2&t){const e=L();S("dismissible",!0),w(3),Af("",e.totalDeleted," messages ",e.totalDeleted>0?"successfully":""," deleted.")}}function Sht(t,n){if(1&t){const e=_t();_(0,"button",63),ke("click",function(){return ze(e),Ge(L().deleteData())}),O(1,"Delete messages"),x()}2&t&&S("disabled",L().deleting)}let kht=(()=>{class t{route;router;consoleService;authService;formBuilder;modalService;deleteConfirmService;systemUserId="00000000-0000-0000-0000-000000000000";error="";messages=[];nextCursor="";searchForm1;searchForm2;searchForm3;type;confirmDeleteForm;deleteError="";deleteSuccess=!1;deleting=!1;totalDeleted=0;activeFilter="";filters=["Chat Room","Group Chat","Direct Chat"];messageStatesOpen=[];constructor(e,i,r,o,s,a,l){this.route=e,this.router=i,this.consoleService=r,this.authService=o,this.formBuilder=s,this.modalService=a,this.deleteConfirmService=l,this.searchForm1=this.formBuilder.group({label:""}),this.searchForm2=this.formBuilder.group({group_id:""}),this.searchForm3=this.formBuilder.group({user_id_one:"",user_id_two:""}),this.confirmDeleteForm=this.formBuilder.group({delete:["",qr.compose([qr.required,qr.pattern("DELETE")])],numberValueControl:{title:"Choose how many days to retain:",id:"days"},days:30})}ngOnInit(){const e=this.route.snapshot.queryParamMap;this.f1.label.setValue(e.get("label")),this.f2.group_id.setValue(e.get("group_id")),this.f3.user_id_one.setValue(e.get("user_id_one")),this.f3.user_id_two.setValue(e.get("user_id_two")),this.nextCursor=e.get("cursor");const i=e.get("type");this.type=Number(i),this.route.data.subscribe(r=>{r&&(r[0]&&(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...r[0].messages),this.nextCursor=r[0].next_cursor),r.error&&(this.error=r.error))},r=>{this.error=r}),null===i?(this.type=2,this.activeFilter=this.filters[0]):2===this.type||3===this.type||4===this.type?this.activeFilter=this.filters[this.type-2]:this.error="Invalid type."}search(e){let i="";switch(e){case 0:i="";break;case 1:i=this.nextCursor}this.updateMessages(this.type,this.f1.label.value,this.f2.group_id.value,this.f3.user_id_one.value,this.f3.user_id_two.value,i)}updateMessages(e,i,r,o,s,a){switch(e){case 2:this.consoleService.listChannelMessages("",e.toString(),i,null,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 3:this.consoleService.listChannelMessages("",e.toString(),null,r,null,null,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l});break;case 4:this.consoleService.listChannelMessages("",e.toString(),null,null,o,s,encodeURIComponent(a)).subscribe(l=>this.postData(l,a),l=>{this.error=l})}}postData(e,i){let r;switch(this.error="",this.messageStatesOpen=[],this.messages.length=0,this.messages.push(...e.messages),this.nextCursor=e.next_cursor,this.type){case 2:r={type:this.type,label:this.f1.label.value,cursor:i};break;case 3:r={type:this.type,group_id:this.f2.group_id.value,cursor:i};break;case 4:r={type:this.type,user_id_one:this.f3.user_id_one.value,user_id_two:this.f3.user_id_two.value,cursor:i}}this.router.navigate([],{relativeTo:this.route,queryParams:r})}deleteMessage(e,i,r){this.deleteConfirmService.openDeleteConfirmModal(()=>{e.target.disabled=!0,e.preventDefault(),this.error="",this.consoleService.deleteChannelMessages("",null,[r.message_id]).subscribe(()=>{this.error="",this.messageStatesOpen.splice(i,1),this.messages.splice(i,1)},o=>{this.error=o})})}deleteAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}deleteMessagesAllowed(){return this.authService.sessionRole<=ri.USER_ROLE_MAINTAINER}get f1(){return this.searchForm1.controls}get f2(){return this.searchForm2.controls}get f3(){return this.searchForm3.controls}get f(){return this.confirmDeleteForm.controls}deleteData(){this.deleteConfirmService.openDeleteConfirmModal(e=>{this.deleteError="",this.deleting=!0;const i=new Date,r=Number(e.days);i.setDate(i.getDate()-r),this.consoleService.deleteChannelMessages("",i.toISOString(),null).subscribe(o=>{this.totalDeleted=Number(o.total),this.deleting=!1,this.deleteError="",this.deleteSuccess=!0;const s=this.route.snapshot.queryParamMap,a=s.get("type");let l=s.get("label");l||(l="0");const c=s.get("group_id"),u=s.get("user_id_one"),d=s.get("user_id_two");let h=s.get("cursor");h||(h=""),a&&this.updateMessages(Number(a),l,c,u,d,h)},o=>{this.deleting=!1,this.deleteError=o})},this.confirmDeleteForm,"Delete messages","Are you sure you want to delete all messages before retain days?")}viewAccount(e){this.router.navigate(["/accounts",e.sender_id],{relativeTo:this.route})}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(yr),ge(Ai),ge(Ho),ge($a),ge(m2),ge(Ml))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:68,vars:21,consts:[[1,"pb-1"],["ngbDropdown","",1,"btn-group","mb-1"],["type","button","ngbDropdownToggle","",1,"btn","btn-outline-secondary"],[4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],["type","button","ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"hidden","formGroup"],[1,"input-group"],["type","text","formControlName","label","placeholder","Search by chat room label",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","submit",1,"btn","btn-primary","dropdown-radius-left",3,"click"],["type","text","formControlName","group_id","placeholder","Search by group ID",1,"form-control","border-right-0"],["type","text","formControlName","user_id_one","placeholder","Search by user ID 1",1,"form-control","border-right-0"],[1,"input-group-text",3,"click"],["src","/static/svg/purple-cog-1.svg","alt","","width","20","height","",1,"mr-1"],["type","text","formControlName","user_id_two","placeholder","Search by user ID 2",1,"form-control","border-right-0"],[1,"col-md-3","justify-content-end","text-right"],["role","group","aria-label","Search",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row","no-gutters"],[1,"table","table-sm","table-hover","table-bordered",2,"table-layout","fixed"],[1,"thead-light"],[2,"width","60px"],[2,"width","320px"],[2,"width","150px"],[2,"width","180px"],["style","width: 90px",4,"ngIf"],["ngFor","",3,"ngForOf"],["type","danger",3,"dismissible",4,"ngIf"],["type","success",3,"dismissible","close",4,"ngIf"],["role","alert",1,"d-flex","justify-content-between","align-items-center"],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button","ngbDropdownItem","",3,"click"],[2,"width","100%",3,"routerLink"],["type","danger",1,"mb-3",3,"dismissible"],["src","/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[2,"width","90px"],[1,"text-muted"],[3,"click"],[2,"text-overflow","ellipsis","overflow","hidden",3,"click"],[2,"white-space","nowrap","text-overflow","ellipsis","overflow","hidden"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","text-center",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"text-center"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"open-row"],["type","danger",3,"dismissible"],[1,"mb-0","pl-4"],["type","success",3,"dismissible","close"],["src","/static/svg/green-tick.svg","alt","","width","16","height","",1,"mr-2"],["type","button",1,"btn","btn-danger",3,"disabled","click"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Chat Messages"),x(),_(2,"div",1)(3,"button",2),te(4,sht,2,0,"span",3),te(5,aht,2,1,"span",3),x(),_(6,"div",4),te(7,lht,2,1,"button",5),x()(),_(8,"div",6)(9,"div",7)(10,"div",8)(11,"form",9)(12,"div",10),xe(13,"input",11),_(14,"div",12)(15,"div",13)(16,"button",14),ke("click",function(){return r.type=2,r.search(0)}),O(17,"Search"),x()()()()(),_(18,"form",9)(19,"div",10),xe(20,"input",15),_(21,"div",12)(22,"div",13)(23,"button",14),ke("click",function(){return r.type=3,r.search(0)}),O(24,"Search "),x()()()()(),_(25,"form",9)(26,"div",10),xe(27,"input",16),_(28,"div",12)(29,"span",17),ke("click",function(){return r.f3.user_id_one.setValue(r.systemUserId)}),xe(30,"img",18),x()(),xe(31,"input",19),_(32,"div",12)(33,"div",13)(34,"button",14),ke("click",function(){return r.type=4,r.search(0)}),O(35,"Search "),x()()()()()(),_(36,"div",20)(37,"div",21)(38,"button",22),ke("click",function(){return r.search(0)}),xe(39,"img",23),x(),_(40,"button",22),ke("click",function(){return r.search(1)}),xe(41,"img",24),x()()()()(),te(42,cht,2,1,"h6",3),te(43,dht,4,4,"h6",3),te(44,hht,7,8,"h6",3),te(45,fht,4,2,"ngb-alert",25),_(46,"div",26)(47,"table",27)(48,"thead",28)(49,"tr")(50,"th",29),O(51,"Code"),x(),_(52,"th",30),O(53,"Sender ID"),x(),_(54,"th",31),O(55,"Username"),x(),_(56,"th"),O(57,"Content"),x(),_(58,"th",32),O(59,"Create Time"),x(),te(60,pht,2,0,"th",33),x()(),_(61,"tbody"),te(62,mht,3,1,"tr",3),te(63,xht,17,10,"ng-template",34),x()()(),te(64,wht,6,2,"ngb-alert",35),te(65,Cht,4,3,"ngb-alert",36),_(66,"div",37),te(67,Sht,2,1,"button",38),x()),2&i&&(w(4),S("ngIf",!r.activeFilter||""===r.activeFilter),w(1),S("ngIf",r.activeFilter&&""!==r.activeFilter),w(2),S("ngForOf",r.filters),w(4),S("hidden","Chat Room"!==r.activeFilter)("formGroup",r.searchForm1),w(7),S("hidden","Group Chat"!==r.activeFilter)("formGroup",r.searchForm2),w(7),S("hidden","Direct Chat"!==r.activeFilter)("formGroup",r.searchForm3),w(13),S("disabled",0===r.messages.length),w(2),S("disabled",""===r.nextCursor||null===r.nextCursor),w(2),S("ngIf",0!=r.messages.length&&""===r.error&&2==r.type),w(1),S("ngIf",0!=r.messages.length&&""===r.error&&3==r.type),w(1),S("ngIf",0!=r.messages.length&&""===r.error&&4==r.type),w(1),S("ngIf",r.error),w(15),S("ngIf",r.deleteAllowed()),w(2),S("ngIf",0===r.messages.length),w(1),S("ngForOf",r.messages),w(1),S("ngIf",r.deleteError),w(1),S("ngIf",r.deleteSuccess),w(2),S("ngIf",r.deleteMessagesAllowed()))},dependencies:[Ru,Un,xn,yo,Hu,wm,Jf,Xf,fa,Us,da,ha,Ts,zs],styles:[".input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}.dropdown-radius-left[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.open-row[_ngcontent-%COMP%]{background:#FAFAFC}"]})}return t})(),Dht=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=Number(e.queryParamMap.get("type"));switch(r){case 2:return this.consoleService.listChannelMessages("",r.toString(),e.queryParamMap.get("label"),null,null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));case 3:return this.consoleService.listChannelMessages("",r.toString(),null,e.queryParamMap.get("group_id"),null,null,encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));case 4:return this.consoleService.listChannelMessages("",r.toString(),null,null,e.queryParamMap.get("user_id_one"),e.queryParamMap.get("user_id_two"),encodeURIComponent(e.queryParamMap.get("cursor"))).pipe(Jl(o=>(e.data={...e.data,error:o},Hn(null))));default:return Hn(null)}}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tht(t,n){if(1&t&&(_(0,"ngb-alert",16),xe(1,"img",17),_(2,"h6",18),O(3),x()()),2&t){const e=L();S("dismissible",!1),w(3),bn("Error while processing request: ",e.error,"")}}function Eht(t,n){1&t&&xe(0,"div",23)}function Aht(t,n){1&t&&xe(0,"div",24)}function Mht(t,n){if(1&t&&(_(0,"tr",25)(1,"td",26)(2,"div",27)(3,"div")(4,"small")(5,"b"),O(6,"Provider Response"),x()()(),_(7,"div")(8,"pre",28)(9,"small"),O(10),x()()(),_(11,"div",29)(12,"small")(13,"b"),O(14,"Provider Notification"),x()()(),_(15,"div")(16,"pre",28)(17,"small"),O(18),x()()()()()()),2&t){const e=L().$implicit;w(10),bt(e.provider_response),w(8),bt(e.provider_notification)}}function Oht(t,n){if(1&t){const e=_t();_(0,"tr")(1,"td")(2,"div",19),ke("click",function(){const o=ze(e).index,s=L();return Ge(s.subscriptionsRowOpen[o]=!s.subscriptionsRowOpen[o])}),te(3,Eht,1,0,"div",20),te(4,Aht,1,0,"div",21),x(),O(5),x(),_(6,"td"),O(7),x(),_(8,"td"),O(9),x(),_(10,"td"),O(11),x(),_(12,"td"),O(13),x(),_(14,"td"),O(15),x(),_(16,"td"),O(17),x()(),te(18,Mht,19,2,"tr",22)}if(2&t){const e=n.index,i=n.$implicit,r=L();w(3),S("ngIf",!r.subscriptionsRowOpen[e]),w(1),S("ngIf",r.subscriptionsRowOpen[e]),w(1),bn(" ",i.product_id," "),w(2),bt(i.original_transaction_id),w(2),bt(r.getStoreText(i.store)),w(2),bt(i.purchase_time),w(2),bt(i.expiry_time),w(2),bt(i.create_time),w(2),bt(r.getRefundText(i.refund_time)),w(1),S("ngIf",r.subscriptionsRowOpen[e])}}function Iht(t,n){1&t&&(_(0,"tr")(1,"td",30),O(2,"No subscriptions were found."),x()())}let hve=(()=>{class t{route;consoleService;subscriptions=[];subscriptionsRowOpen=[];error="";nextCursor="";prevCursor="";userId;limit=100;originalTransactionId;constructor(e,i){this.route=e,this.consoleService=i}ngOnInit(){const e=this.route?.parent?.snapshot?.paramMap?.get("id")??"";e&&(this.userId=e),this.userId=this.route.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(i=>{this.subscriptions=i[0].validated_subscriptions,this.nextCursor=i[0].cursor,this.prevCursor=i[0].prev_cursor})}ngOnChanges(e){e.originalTransactionId.firstChange||(this.originalTransactionId?(this.originalTransactionId=this.originalTransactionId.trim(),this.consoleService.getSubscription("",this.originalTransactionId).subscribe(i=>{this.subscriptions=[i]},i=>{this.error=i})):""===this.originalTransactionId&&this.loadData(""))}loadData(e){this.error="",this.consoleService.listSubscriptions("",this.userId,this.limit,e).subscribe(i=>{this.subscriptions=i.validated_subscriptions,this.subscriptionsRowOpen=[],this.nextCursor=i.cursor,this.prevCursor=i.prev_cursor},i=>{this.error=i})}getStoreText(e){return this.formatStoreText(zy[e])}getRefundText(e){return"1970-01-01T00:00:00Z"===e?"":e}formatStoreText(e){return e.split("_").map(i=>i[0]+i.slice(1).toLowerCase()).join(" ")}static \u0275fac=function(i){return new(i||t)(ge(Vr),ge(Ai))};static \u0275cmp=Vt({type:t,selectors:[["app-subscriptions"]],inputs:{originalTransactionId:["original_transaction_id","originalTransactionId"]},features:[ei],decls:33,vars:6,consts:[["type","danger",3,"dismissible",4,"ngIf"],[1,"row","no-gutters","mb-3"],[1,"col","d-flex","justify-content-between","no-gutters"],[1,"col-md-9"],[1,"col-md-3","justify-content-end","text-right"],["role","group",1,"btn-group","page-btns"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["src","/static/svg/page-first.svg","alt","","width","20","height",""],["src","/static/svg/page-prev.svg","alt","","width","20","height",""],["src","/static/svg/page-next.svg","alt","","width","20","height",""],[1,"row","no-gutters"],[1,"table","table-sm","table-bordered","table-hover"],[1,"thead-light"],[2,"width","180px"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["type","danger",3,"dismissible"],["src","/src/static/svg/red-triangle.svg","alt","","width","16","height","",1,"mr-2"],[1,"mr-2","d-inline","font-weight-bold"],[1,"arrow",3,"click"],["class","arrow-right",4,"ngIf"],["class","arrow-down",4,"ngIf"],["class","open-row",4,"ngIf"],[1,"arrow-right"],[1,"arrow-down"],[1,"open-row"],["colspan","7"],[1,"p-2"],[1,"pre-wrap","m-0","p-0"],[1,"pt-2"],["colspan","7",1,"text-muted"]],template:function(i,r){1&i&&(te(0,Tht,4,2,"ngb-alert",0),_(1,"div",1)(2,"div",2),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"button",6),ke("click",function(){return r.loadData("")}),xe(7,"img",7),x(),_(8,"button",6),ke("click",function(){return r.loadData(r.prevCursor)}),xe(9,"img",8),x(),_(10,"button",6),ke("click",function(){return r.loadData(r.nextCursor)}),xe(11,"img",9),x()()()()(),_(12,"div",10)(13,"table",11)(14,"thead",12)(15,"tr")(16,"th"),O(17,"Product ID"),x(),_(18,"th"),O(19,"Original Transaction ID"),x(),_(20,"th"),O(21,"Store"),x(),_(22,"th",13),O(23,"Purchase Time"),x(),_(24,"th",13),O(25,"Expiry Time"),x(),_(26,"th",13),O(27,"Create Time"),x(),_(28,"th",13),O(29,"Refund Time"),x()()(),_(30,"tbody"),te(31,Oht,19,10,"ng-template",14),te(32,Iht,3,0,"tr",15),x()()()),2&i&&(S("ngIf",r.error),w(6),S("disabled",0===r.subscriptions.length),w(2),S("disabled",""===r.prevCursor),w(2),S("disabled",""===r.nextCursor),w(21),S("ngForOf",r.subscriptions),w(1),S("ngIf",0===r.subscriptions.length))},dependencies:[Un,xn,yo]})}return t})(),fve=(()=>{class t{consoleService;constructor(e){this.consoleService=e}resolve(e,i){const r=e.parent?.paramMap?.get("id")??"";return this.consoleService.listSubscriptions("",r,100,"")}static \u0275fac=function(i){return new(i||t)(wt(Ai))};static \u0275prov=It({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nht=(()=>{class t{formBuilder;transactionId;searchForm;constructor(e){this.formBuilder=e}ngOnInit(){this.searchForm=this.formBuilder.group({transaction_id:[""]})}search(){this.transactionId=this.f.transaction_id.value}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:12,vars:2,consts:[[1,"pb-1"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","transaction_id","placeholder","Search by transaction_id (purchaseToken for Play Store purchases)",1,"form-control","border-right-0"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[3,"transaction_id"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Purchases"),x(),_(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4),ke("ngSubmit",function(){return r.search()}),_(6,"div",5),xe(7,"input",6),_(8,"div",7)(9,"button",8),ke("click",function(){return r.search()}),O(10,"Search"),x()()()()()()(),xe(11,"app-purchases",9)),2&i&&(w(5),S("formGroup",r.searchForm),w(6),S("transaction_id",r.transactionId))},dependencies:[fa,Us,da,ha,Ts,zs,cve],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})(),Fht=(()=>{class t{formBuilder;originalTransactionId;searchForm;constructor(e){this.formBuilder=e}ngOnInit(){this.searchForm=this.formBuilder.group({original_transaction_id:[""]})}search(){this.originalTransactionId=this.f.original_transaction_id.value}get f(){return this.searchForm.controls}static \u0275fac=function(i){return new(i||t)(ge($a))};static \u0275cmp=Vt({type:t,selectors:[["ng-component"]],decls:13,vars:2,consts:[[1,"pb-1"],[1,"row","no-gutters","mb-4"],[1,"col","d-flex","justify-content-between","no-gutters","align-items-center"],[1,"col-md-9"],[3,"formGroup","ngSubmit"],[1,"input-group"],["type","text","formControlName","original_transaction_id","placeholder","Search by original_transaction_id (purchaseToken for Play Store purchases)",1,"form-control","border-right-0"],[1,"input-group-append"],[1,"btn-group"],["type","button",1,"btn","btn-primary","dropdown-radius",3,"click"],[3,"original_transaction_id"]],template:function(i,r){1&i&&(_(0,"h2",0),O(1,"Subscriptions"),x(),_(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4),ke("ngSubmit",function(){return r.search()}),_(6,"div",5),xe(7,"input",6),_(8,"div",7)(9,"div",8)(10,"button",9),ke("click",function(){return r.search()}),O(11,"Search"),x()()()()()()()(),xe(12,"app-subscriptions",10)),2&i&&(w(5),S("formGroup",r.searchForm),w(7),S("original_transaction_id",r.originalTransactionId))},dependencies:[fa,Us,da,ha,Ts,zs,hve],styles:[".dropdown-radius[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer}.table-hover[_ngcontent-%COMP%]{cursor:pointer}"]})}return t})();function pve(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function mve(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){pve(o,i,r,s,a,"next",l)}function a(l){pve(o,i,r,s,a,"throw",l)}s(void 0)})}}var dL=ue(3259);const Pht=["qrcElement"];let Rht=(()=>{class t{constructor(e,i){this.renderer=e,this.sanitizer=i,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new ot,this.context=null}ngOnChanges(){var e=this;return mve(function*(){yield e.createQRCode()})()}isValidQrCodeText(e){return!1===this.allowEmptyString?!(typeof e>"u"||""===e||"null"===e||null===e):!(typeof e>"u")}toDataURL(e){return new Promise((i,r)=>{(0,dL.hz)(this.qrdata,e,(o,s)=>{o?r(o):i(s)})})}toCanvas(e,i){return new Promise((r,o)=>{(0,dL.rT)(e,this.qrdata,i,s=>{s?o(s):r("success")})})}toSVG(e){return new Promise((i,r)=>{(0,dL.toString)(this.qrdata,e,(o,s)=>{o?r(o):i(s)})})}renderElement(e){for(const i of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,i);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){var e=this;return mve(function*(){e.version&&e.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),e.version=40):e.version&&e.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),e.version=1):void 0!==e.version&&isNaN(e.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),e.version=void 0);try{if(!e.isValidQrCodeText(e.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");e.isValidQrCodeText(e.qrdata)&&""===e.qrdata&&(e.qrdata=" ");const i={color:{dark:e.colorDark,light:e.colorLight},errorCorrectionLevel:e.errorCorrectionLevel,margin:e.margin,scale:e.scale,version:e.version,width:e.width},r=e.imageSrc,o=e.imageHeight||40,s=e.imageWidth||40;switch(e.elementType){case"canvas":const a=e.renderer.createElement("canvas");e.context=a.getContext("2d"),e.toCanvas(a,i).then(()=>{if(e.ariaLabel&&e.renderer.setAttribute(a,"aria-label",`${e.ariaLabel}`),e.title&&e.renderer.setAttribute(a,"title",`${e.title}`),r&&e.context){e.centerImage=new Image(s,o),r!==e.centerImage.src&&(e.centerImage.src=r),o!==e.centerImage.height&&(e.centerImage.height=o),s!==e.centerImage.width&&(e.centerImage.width=s);const u=e.centerImage;u&&(u.onload=()=>{e.context?.drawImage(u,a.width/2-s/2,a.height/2-o/2,s,o)})}e.renderElement(a),e.emitQRCodeURL(a)}).catch(u=>{console.error("[angularx-qrcode] canvas error:",u)});break;case"svg":const l=e.renderer.createElement("div");e.toSVG(i).then(u=>{e.renderer.setProperty(l,"innerHTML",u);const d=l.firstChild;e.renderer.setAttribute(d,"height",`${e.width}`),e.renderer.setAttribute(d,"width",`${e.width}`),e.renderElement(d),e.emitQRCodeURL(d)}).catch(u=>{console.error("[angularx-qrcode] svg error:",u)});break;default:const c=e.renderer.createElement("img");e.toDataURL(i).then(u=>{e.alt&&c.setAttribute("alt",e.alt),e.ariaLabel&&c.setAttribute("aria-label",e.ariaLabel),c.setAttribute("src",u),e.title&&c.setAttribute("title",e.title),e.renderElement(c),e.emitQRCodeURL(c)}).catch(u=>{console.error("[angularx-qrcode] img/url error:",u)})}}catch(i){console.error("[angularx-qrcode] Error generating QR Code:",i.message)}})()}emitQRCodeURL(e){const i=e.constructor.name;if(i===SVGSVGElement.name){const s=new Blob([e.outerHTML],{type:"image/svg+xml"}),a=URL.createObjectURL(s),l=this.sanitizer.bypassSecurityTrustUrl(a);return void this.qrCodeURL.emit(l)}let r="";i===HTMLCanvasElement.name&&(r=e.toDataURL("image/png")),i===HTMLImageElement.name&&(r=e.src),fetch(r).then(o=>o.blob()).then(o=>URL.createObjectURL(o)).then(o=>this.sanitizer.bypassSecurityTrustUrl(o)).then(o=>{this.qrCodeURL.emit(o)}).catch(o=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+o)})}}return t.\u0275fac=function(e){return new(e||t)(ge(oa),ge(wM))},t.\u0275cmp=Vt({type:t,selectors:[["qrcode"]],viewQuery:function(e,i){if(1&e&&wo(Pht,7),2&e){let r;Tn(r=En())&&(i.qrcElement=r.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[ei],decls:2,vars:2,consts:[["qrcElement",""]],template:function(e,i){1&e&&xe(0,"div",null,0),2&e&&Au(i.cssClass)},encapsulation:2,changeDetection:0}),t})(),jht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({}),t})();function Lht(t,n){if(1&t&&(_(0,"ngb-alert",6)(1,"h6",7),O(2),x()()),2&t){const e=L();S("dismissible",!1),w(2),bt(e.error)}}const Bht=function(t){return{"was-validated":t}},$ht=function(t){return{"is-invalid":t}};function Vht(t,n){if(1&t){const e=_t();Cl(0),_(1,"div")(2,"h5",8),O(3,"Instructions"),x(),_(4,"form",9),ke("ngSubmit",function(){return ze(e),Ge(L().onSubmit())}),_(5,"ol")(6,"div",10)(7,"li"),O(8,"Install an Authenticator app and use it to scan the QR code. "),_(9,"div"),O(10," e.g. "),_(11,"a",11),O(12,"Google Authenticator"),x(),O(13," or "),_(14,"a",12),O(15,"Authy"),x(),O(16,". "),x()()(),_(17,"div",10)(18,"li"),O(19,"Scan the QR code with your authenticator app. "),xe(20,"qrcode",13),x()(),_(21,"div",10)(22,"li")(23,"label",14),O(24,"Insert 6-digit code from your authenticator app."),x(),xe(25,"input",15),x()(),_(26,"button",16),O(27,"Verify"),x()()()(),Sl()}if(2&t){const e=L();w(4),S("formGroup",e.codeForm)("ngClass",Zi(7,Bht,e.submitted)),w(16),S("qrdata",e.mfaUrl())("width",256)("errorCorrectionLevel","M"),w(5),S("ngClass",Zi(9,$ht,e.f.code.dirty&&e.f.code.errors)),w(1),S("disabled",!e.codeForm.valid||e.submitted)}}function Hht(t,n){1&t&&(_(0,"div",20),O(1," Multi-factor authentication has been successfully set up. Please download the recovery codes and keep them in a safe place. "),x())}function Uht(t,n){if(1&t){const e=_t();_(0,"div"),te(1,Hht,2,0,"div",17),_(2,"button",18),ke("click",function(){return ze(e),Ge(L().downloadRecoveryCodes())}),O(3,"Download Recovery Codes"),x(),_(4,"button",19),ke("click",function(){return ze(e),Ge(L().router.navigateByUrl("/"))}),O(5,"Continue to Dashboard"),x()()}if(2&t){const e=L();w(1),S("ngIf",!e.error&&e.recoveryCodes),w(3),S("disabled",!e.downloadClicked)}}let gve=(()=>{class t{formBuilder;consoleService;authService;router;required;codeForm;mfaCode;submitted=!1;downloadClicked=!1;recoveryCodes;error="";constructor(e,i,r,o){this.formBuilder=e,this.consoleService=i,this.authService=r,this.router=o}ngOnInit(){this.codeForm=this.formBuilder.group({code:["",qr.required]}),this.mfaCode=this.authService.mfa}onSubmit(){this.submitted=!0,this.error="",!this.codeForm.invalid&&this.authService.mfaSet(this.f.code.value).subscribe(e=>{this.codeForm.reset(),this.submitted=!1,this.recoveryCodes=e.recovery_codes},e=>{this.error=e,this.submitted=!1})}mfaUrl(){return decodeURIComponent(this.mfaCode.mfa_url)}get f(){return this.codeForm.controls}downloadRecoveryCodes(){const e=this.recoveryCodes.map((r,o)=>o%2==0?"\n"+r:r),i=document.createElement("a");i.href=window.URL.createObjectURL(new Blob([e.join(" ").trim()],{type:"text/plain"})),i.download="nakama_mfa_recovery_codes.txt",i.click(),window.URL.revokeObjectURL(i.href),this.downloadClicked=!0}static \u0275fac=function(i){return new(i||t)(ge(HH),ge(Ai),ge(Ho),ge(yr))};static \u0275cmp=Vt({type:t,selectors:[["mfa-setup"]],inputs:{required:"required"},decls:8,vars:3,consts:[[1,"login-title","mb-4"],[1,"container"],["type","danger","class","mb-3",3,"dismissible",4,"ngIf"],[1,"row"],[4,"ngIf","ngIfElse"],["recoveryCodesBlock",""],["type","danger",1,"mb-3",3,"dismissible"],[1,"mr-2","d-inline","font-weight-bold"],[2,"font-size","23px"],[3,"formGroup","ngClass","ngSubmit"],[1,"form-group"],["href","https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2","target","blank","rel","noopener noreferrer"],["href","https://authy.com/download/","target","blank","rel","noopener noreferrer"],[3,"qrdata","width","errorCorrectionLevel"],["for","code",1,"d-inline"],["type","code","id","code","formControlName","code","required","",1,"form-control",3,"ngClass"],[1,"btn","btn-primary","btn-lg","btn-block",3,"disabled"],["class","alert alert-success mb-4","role","alert",4,"ngIf"],[1,"btn","btn-primary","btn-lg","btn-block","mb-4",3,"click"],["href","/",1,"btn","btn-outline-primary","btn-lg","btn-block",3,"disabled","click"],["role","alert",1,"alert","alert-success","mb-4"]],template:function(i,r){if(1&i&&(_(0,"h3",0),O(1,"Setup Multi-Factor Authentication"),x(),_(2,"div",1),te(3,Lht,3,2,"ngb-alert",2),_(4,"div",3),te(5,Vht,28,11,"ng-container",4),te(6,Uht,6,2,"ng-template",null,5,Xo),x()()),2&i){const o=sa(7);w(3),S("ngIf",r.error),w(2),S("ngIf",!r.recoveryCodes)("ngIfElse",o)}},dependencies:[Of,xn,yo,fa,Us,da,ha,qh,Ts,zs,Rht]})}return t})();const zht=[{path:"",component:n4e,canActivate:[x3e],canActivateChild:[i4e],children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:fVe,resolve:[pVe]},{path:"config",component:WVe,resolve:[qVe]},{path:"users",component:ZVe,resolve:[eHe]},{path:"modules",component:pHe,resolve:[mHe]},{path:"storage",component:SHe,resolve:[kHe,DHe],pathMatch:"full"},{path:"storage/:collection/:key/:user_id",component:Rlt,resolve:[jlt],pathMatch:"full"},{path:"leaderboards",component:qlt,resolve:[Ylt]},{path:"leaderboards/:id",component:Tdt,resolve:[Edt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:Idt,resolve:[]},{path:"records",component:Vdt,resolve:[Hdt]}]},{path:"matches",component:idt,resolve:[rdt,odt]},{path:"groups",component:hdt,resolve:[fdt]},{path:"groups/:id",component:bdt,resolve:[xdt],children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:vut,resolve:[]},{path:"members",component:jut,resolve:[Lut],runGuardsAndResolvers:"always"}]},{path:"accounts",component:nct,resolve:[ict]},{path:"accounts/:id",component:gct,resolve:[vct],children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:Cct,resolve:[]},{path:"authentication",component:Ect,resolve:[]},{path:"wallet",component:$ct,resolve:[Vct]},{path:"friends",component:Kct,resolve:[Qct]},{path:"groups",component:cut,resolve:[uut]},{path:"purchases",component:cve,resolve:[uve]},{path:"subscriptions",component:hve,resolve:[fve]}]},{path:"apiexplorer",component:Jdt,resolve:[Kdt]},{path:"chat",component:kht,resolve:[Dht]},{path:"purchases",component:Nht,resolve:[uve]},{path:"subscriptions",component:Fht,resolve:[fve]},{path:"settings/mfa",component:gve,resolve:[]}]},{path:"login",component:_3e,canActivate:[b3e],children:[{path:"mfa",component:gve,resolve:[]}]},{path:"**",redirectTo:""}];let Ght=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ii({type:t});static \u0275inj=Di({imports:[$V.forRoot(zht,{useHash:!0}),$V]})}return t})(),Wht=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Vt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"router-outlet")},dependencies:[Vf]})}return t})();new class Yht extends Vd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let Jht=1;const Kht=Promise.resolve(),kT={};function vve(t){return t in kT&&(delete kT[t],!0)}const yve={setImmediate(t){const n=Jht++;return kT[n]=!0,Kht.then(()=>vve(n)&&t()),n},clearImmediate(t){vve(t)}};new class Zht extends Vd{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++r0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=yve.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(yve.clearImmediate(e),n.scheduled=void 0)}});RegExp(/[&<>"']/g.source);const Aft=new Yn("ng-select-selection-model");function Mft(){return new Oft}class Oft{constructor(){this._selected=[]}get value(){return this._selected}select(n,e,i){if(n.selected=!0,(!n.children||!e&&i)&&this._selected.push(n),e)if(n.parent){const r=n.parent.children.length,o=n.parent.children.filter(s=>s.selected).length;n.parent.selected=r===o}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=i&&this._activeChildren(n)?[...this._selected.filter(r=>r.parent!==n),n]:[...this._selected,...n.children.filter(r=>!r.disabled)])}unselect(n,e){if(this._selected=this._selected.filter(i=>i!==n),n.selected=!1,e)if(n.parent&&n.parent.selected){const i=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...i.filter(r=>r!==n&&!r.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(n,e){for(const i of n)i.disabled||(i.selected=e)}_removeChildren(n){this._selected=[...this._selected.filter(e=>e.parent!==n),...n.children.filter(e=>e.parent===n&&e.disabled&&e.selected)]}_removeParent(n){this._selected=this._selected.filter(e=>e!==n)}_activeChildren(n){return n.children.every(e=>!e.disabled||e.selected)}}let Ift=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ii({type:t}),t.\u0275inj=Di({providers:[{provide:Aft,useValue:Mft}],imports:[If]}),t})(),Nft=(()=>{class t{authenticationService;constructor(e){this.authenticationService=e}intercept(e,i){const r=this.authenticationService.session;return r&&r.token&&(e=e.clone({setHeaders:{Authorization:`Bearer ${r.token}`}})),i.handle(e)}static \u0275fac=function(i){return new(i||t)(wt(Ho))};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),Fft=(()=>{class t{authenticationService;router;constructor(e,i){this.authenticationService=e,this.router=i}intercept(e,i){return i.handle(e).pipe(Jl(r=>{if(401===r.status)this.authenticationService.logout().subscribe({next:()=>{this.router.navigate(["/login"],{queryParams:{next:this.router.routerState.snapshot.url}})}});else{if(403===r.status)return Rf(r);r.status>=500&&console.log(`${r.status}: + ${r.error.message||r.statusText}`)}return Rf(r.error.message||r.statusText)}))}static \u0275fac=function(i){return new(i||t)(wt(Ho),wt(yr))};static \u0275prov=It({token:t,factory:t.\u0275fac})}return t})(),Pft=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ii({type:t,bootstrap:[Wht]});static \u0275inj=Di({providers:[p3e,Lz,{provide:XC,useValue:{host:document.location.origin,timeout:15e3}},{provide:X3,useClass:Nft,multi:!0},{provide:X3,useClass:Fft,multi:!0}],imports:[EVe,Ght,bM,zDe,d3e,WPe,W9e,UMe.forRoot({apiKey:"dHl7FTjJ9icepBjEdOCcyMFQYL1BBiQO",debug:!1,loadOnInitialization:!0}),GDe,$Me,BMe,Ift,jht]})}return t})();jSe().bootstrapModule(Pft).then(t=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=t}).catch(t=>console.error(t))},5343:(Et,Xe)=>{"use strict";Xe.byteLength=function we(T){var I=Se(T),Ae=I[1];return 3*(I[0]+Ae)/4-Ae},Xe.toByteArray=function K(T){var I,Zt,Z=Se(T),Ae=Z[0],Ue=Z[1],ut=new de(function se(T,I,Z){return 3*(I+Z)/4-Z}(0,Ae,Ue)),ht=0,yt=Ue>0?Ae-4:Ae;for(Zt=0;Zt>16&255,ut[ht++]=I>>8&255,ut[ht++]=255&I;return 2===Ue&&(I=be[T.charCodeAt(Zt)]<<2|be[T.charCodeAt(Zt+1)]>>4,ut[ht++]=255&I),1===Ue&&(I=be[T.charCodeAt(Zt)]<<10|be[T.charCodeAt(Zt+1)]<<4|be[T.charCodeAt(Zt+2)]>>2,ut[ht++]=I>>8&255,ut[ht++]=255&I),ut},Xe.fromByteArray=function k(T){for(var I,Z=T.length,Ae=Z%3,Ue=[],ht=0,yt=Z-Ae;htyt?yt:ht+16383));return 1===Ae?Ue.push(ue[(I=T[Z-1])>>2]+ue[I<<4&63]+"=="):2===Ae&&Ue.push(ue[(I=(T[Z-2]<<8)+T[Z-1])>>10]+ue[I>>4&63]+ue[I<<2&63]+"="),Ue.join("")};for(var ue=[],be=[],de=typeof Uint8Array<"u"?Uint8Array:Array,ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=0,ee=ye.length;he0)throw new Error("Invalid string. Length must be a multiple of 4");var Z=T.indexOf("=");return-1===Z&&(Z=I),[Z,Z===I?0:4-Z%4]}function re(T){return ue[T>>18&63]+ue[T>>12&63]+ue[T>>6&63]+ue[63&T]}function ie(T,I,Z){for(var Ue=[],ut=I;ut{"use strict";var de=ue(5343),ye=ue(8461),he="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Xe.lW=se,Xe.h2=50;var ee=2147483647;function we(Ne){if(Ne>ee)throw new RangeError('The value "'+Ne+'" is invalid for option "size"');var Y=new Uint8Array(Ne);return Object.setPrototypeOf(Y,se.prototype),Y}function se(Ne,Y,ne){if("number"==typeof Ne){if("string"==typeof Y)throw new TypeError('The "string" argument must be of type string. Received type number');return k(Ne)}return K(Ne,Y,ne)}function K(Ne,Y,ne){if("string"==typeof Ne)return function T(Ne,Y){if(("string"!=typeof Y||""===Y)&&(Y="utf8"),!se.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var ne=0|yt(Ne,Y),Le=we(ne),it=Le.write(Ne,Y);return it!==ne&&(Le=Le.slice(0,it)),Le}(Ne,Y);if(ArrayBuffer.isView(Ne))return function Z(Ne){if(wa(Ne,Uint8Array)){var Y=new Uint8Array(Ne);return Ae(Y.buffer,Y.byteOffset,Y.byteLength)}return I(Ne)}(Ne);if(null==Ne)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne);if(wa(Ne,ArrayBuffer)||Ne&&wa(Ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(wa(Ne,SharedArrayBuffer)||Ne&&wa(Ne.buffer,SharedArrayBuffer)))return Ae(Ne,Y,ne);if("number"==typeof Ne)throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=Ne.valueOf&&Ne.valueOf();if(null!=Le&&Le!==Ne)return se.from(Le,Y,ne);var it=function Ue(Ne){if(se.isBuffer(Ne)){var Y=0|ut(Ne.length),ne=we(Y);return 0===ne.length||Ne.copy(ne,0,0,Y),ne}return void 0!==Ne.length?"number"!=typeof Ne.length||ho(Ne.length)?we(0):I(Ne):"Buffer"===Ne.type&&Array.isArray(Ne.data)?I(Ne.data):void 0}(Ne);if(it)return it;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Ne[Symbol.toPrimitive])return se.from(Ne[Symbol.toPrimitive]("string"),Y,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne)}function re(Ne){if("number"!=typeof Ne)throw new TypeError('"size" argument must be of type number');if(Ne<0)throw new RangeError('The value "'+Ne+'" is invalid for option "size"')}function k(Ne){return re(Ne),we(Ne<0?0:0|ut(Ne))}function I(Ne){for(var Y=Ne.length<0?0:0|ut(Ne.length),ne=we(Y),Le=0;Le=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return 0|Ne}function yt(Ne,Y){if(se.isBuffer(Ne))return Ne.length;if(ArrayBuffer.isView(Ne)||wa(Ne,ArrayBuffer))return Ne.byteLength;if("string"!=typeof Ne)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ne);var ne=Ne.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===ne)return 0;for(var it=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return ds(Ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ne;case"hex":return ne>>>1;case"base64":return Cu(Ne).length;default:if(it)return Le?-1:ds(Ne).length;Y=(""+Y).toLowerCase(),it=!0}}function Zt(Ne,Y,ne){var Le=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===ne||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0)<=(Y>>>=0))return"";for(Ne||(Ne="utf8");;)switch(Ne){case"hex":return cc(this,Y,ne);case"utf8":case"utf-8":return $t(this,Y,ne);case"ascii":return Zn(this,Y,ne);case"latin1":case"binary":return yl(this,Y,ne);case"base64":return fi(this,Y,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return uo(this,Y,ne);default:if(Le)throw new TypeError("Unknown encoding: "+Ne);Ne=(Ne+"").toLowerCase(),Le=!0}}function Wt(Ne,Y,ne){var Le=Ne[Y];Ne[Y]=Ne[ne],Ne[ne]=Le}function Qt(Ne,Y,ne,Le,it){if(0===Ne.length)return-1;if("string"==typeof ne?(Le=ne,ne=0):ne>2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ho(ne=+ne)&&(ne=it?0:Ne.length-1),ne<0&&(ne=Ne.length+ne),ne>=Ne.length){if(it)return-1;ne=Ne.length-1}else if(ne<0){if(!it)return-1;ne=0}if("string"==typeof Y&&(Y=se.from(Y,Le)),se.isBuffer(Y))return 0===Y.length?-1:An(Ne,Y,ne,Le,it);if("number"==typeof Y)return Y&=255,"function"==typeof Uint8Array.prototype.indexOf?it?Uint8Array.prototype.indexOf.call(Ne,Y,ne):Uint8Array.prototype.lastIndexOf.call(Ne,Y,ne):An(Ne,[Y],ne,Le,it);throw new TypeError("val must be string, number or Buffer")}function An(Ne,Y,ne,Le,it){var at,qt=1,nn=Ne.length,ar=Y.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(Ne.length<2||Y.length<2)return-1;qt=2,nn/=2,ar/=2,ne/=2}function M(vn,_e){return 1===qt?vn[_e]:vn.readUInt16BE(_e*qt)}if(it){var Mt=-1;for(at=ne;atnn&&(ne=nn-ar),at=ne;at>=0;at--){for(var Yt=!0,zt=0;ztit&&(Le=it):Le=it;var qt=Y.length;Le>qt/2&&(Le=qt/2);for(var nn=0;nn>8,qt.push(ne%256),qt.push(Le);return qt}(Y,Ne.length-ne),Ne,ne,Le)}function fi(Ne,Y,ne){return de.fromByteArray(0===Y&&ne===Ne.length?Ne:Ne.slice(Y,ne))}function $t(Ne,Y,ne){ne=Math.min(Ne.length,ne);for(var Le=[],it=Y;it239?4:qt>223?3:qt>191?2:1;if(it+ar<=ne)switch(ar){case 1:qt<128&&(nn=qt);break;case 2:128==(192&(M=Ne[it+1]))&&(Yt=(31&qt)<<6|63&M)>127&&(nn=Yt);break;case 3:at=Ne[it+2],128==(192&(M=Ne[it+1]))&&128==(192&at)&&(Yt=(15&qt)<<12|(63&M)<<6|63&at)>2047&&(Yt<55296||Yt>57343)&&(nn=Yt);break;case 4:at=Ne[it+2],Mt=Ne[it+3],128==(192&(M=Ne[it+1]))&&128==(192&at)&&128==(192&Mt)&&(Yt=(15&qt)<<18|(63&M)<<12|(63&at)<<6|63&Mt)>65535&&Yt<1114112&&(nn=Yt)}null===nn?(nn=65533,ar=1):nn>65535&&(Le.push((nn-=65536)>>>10&1023|55296),nn=56320|1023&nn),Le.push(nn),it+=ar}return function tl(Ne){var Y=Ne.length;if(Y<=ta)return String.fromCharCode.apply(String,Ne);for(var ne="",Le=0;Leit.length?se.from(nn).copy(it,qt):Uint8Array.prototype.set.call(it,nn,qt);else{if(!se.isBuffer(nn))throw new TypeError('"list" argument must be an Array of Buffers');nn.copy(it,qt)}qt+=nn.length}return it},se.byteLength=yt,se.prototype._isBuffer=!0,se.prototype.swap16=function(){var Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(Y+=" ... "),""},he&&(se.prototype[he]=se.prototype.inspect),se.prototype.compare=function(Y,ne,Le,it,qt){if(wa(Y,Uint8Array)&&(Y=se.from(Y,Y.offset,Y.byteLength)),!se.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(void 0===ne&&(ne=0),void 0===Le&&(Le=Y?Y.length:0),void 0===it&&(it=0),void 0===qt&&(qt=this.length),ne<0||Le>Y.length||it<0||qt>this.length)throw new RangeError("out of range index");if(it>=qt&&ne>=Le)return 0;if(it>=qt)return-1;if(ne>=Le)return 1;if(this===Y)return 0;for(var nn=(qt>>>=0)-(it>>>=0),ar=(Le>>>=0)-(ne>>>=0),M=Math.min(nn,ar),at=this.slice(it,qt),Mt=Y.slice(ne,Le),Yt=0;Yt>>=0,isFinite(Le)?(Le>>>=0,void 0===it&&(it="utf8")):(it=Le,Le=void 0)}var qt=this.length-ne;if((void 0===Le||Le>qt)&&(Le=qt),Y.length>0&&(Le<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");for(var nn=!1;;)switch(it){case"hex":return Cn(this,Y,ne,Le);case"utf8":case"utf-8":return Sn(this,Y,ne,Le);case"ascii":case"latin1":case"binary":return mi(this,Y,ne,Le);case"base64":return fn(this,Y,ne,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qn(this,Y,ne,Le);default:if(nn)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),nn=!0}},se.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ta=4096;function Zn(Ne,Y,ne){var Le="";ne=Math.min(Ne.length,ne);for(var it=Y;itLe)&&(ne=Le);for(var it="",qt=Y;qtne)throw new RangeError("Trying to access beyond buffer length")}function Gr(Ne,Y,ne,Le,it,qt){if(!se.isBuffer(Ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>it||YNe.length)throw new RangeError("Index out of range")}function Ss(Ne,Y,ne,Le,it,qt){if(ne+Le>Ne.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function Wr(Ne,Y,ne,Le,it){return Y=+Y,ne>>>=0,it||Ss(Ne,0,ne,4),ye.write(Ne,Y,ne,Le,23,4),ne+4}function na(Ne,Y,ne,Le,it){return Y=+Y,ne>>>=0,it||Ss(Ne,0,ne,8),ye.write(Ne,Y,ne,Le,52,8),ne+8}se.prototype.slice=function(Y,ne){var Le=this.length;(Y=~~Y)<0?(Y+=Le)<0&&(Y=0):Y>Le&&(Y=Le),(ne=void 0===ne?Le:~~ne)<0?(ne+=Le)<0&&(ne=0):ne>Le&&(ne=Le),ne>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y],qt=1,nn=0;++nn>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y+--ne],qt=1;ne>0&&(qt*=256);)it+=this[Y+--ne]*qt;return it},se.prototype.readUint8=se.prototype.readUInt8=function(Y,ne){return Y>>>=0,ne||Kr(Y,1,this.length),this[Y]},se.prototype.readUint16LE=se.prototype.readUInt16LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,2,this.length),this[Y]|this[Y+1]<<8},se.prototype.readUint16BE=se.prototype.readUInt16BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,2,this.length),this[Y]<<8|this[Y+1]},se.prototype.readUint32LE=se.prototype.readUInt32LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},se.prototype.readUint32BE=se.prototype.readUInt32BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},se.prototype.readIntLE=function(Y,ne,Le){Y>>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=this[Y],qt=1,nn=0;++nn=(qt*=128)&&(it-=Math.pow(2,8*ne)),it},se.prototype.readIntBE=function(Y,ne,Le){Y>>>=0,ne>>>=0,Le||Kr(Y,ne,this.length);for(var it=ne,qt=1,nn=this[Y+--it];it>0&&(qt*=256);)nn+=this[Y+--it]*qt;return nn>=(qt*=128)&&(nn-=Math.pow(2,8*ne)),nn},se.prototype.readInt8=function(Y,ne){return Y>>>=0,ne||Kr(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},se.prototype.readInt16LE=function(Y,ne){Y>>>=0,ne||Kr(Y,2,this.length);var Le=this[Y]|this[Y+1]<<8;return 32768&Le?4294901760|Le:Le},se.prototype.readInt16BE=function(Y,ne){Y>>>=0,ne||Kr(Y,2,this.length);var Le=this[Y+1]|this[Y]<<8;return 32768&Le?4294901760|Le:Le},se.prototype.readInt32LE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},se.prototype.readInt32BE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},se.prototype.readFloatLE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),ye.read(this,Y,!0,23,4)},se.prototype.readFloatBE=function(Y,ne){return Y>>>=0,ne||Kr(Y,4,this.length),ye.read(this,Y,!1,23,4)},se.prototype.readDoubleLE=function(Y,ne){return Y>>>=0,ne||Kr(Y,8,this.length),ye.read(this,Y,!0,52,8)},se.prototype.readDoubleBE=function(Y,ne){return Y>>>=0,ne||Kr(Y,8,this.length),ye.read(this,Y,!1,52,8)},se.prototype.writeUintLE=se.prototype.writeUIntLE=function(Y,ne,Le,it){Y=+Y,ne>>>=0,Le>>>=0,it||Gr(this,Y,ne,Le,Math.pow(2,8*Le)-1,0);var nn=1,ar=0;for(this[ne]=255&Y;++ar>>=0,Le>>>=0,it||Gr(this,Y,ne,Le,Math.pow(2,8*Le)-1,0);var nn=Le-1,ar=1;for(this[ne+nn]=255&Y;--nn>=0&&(ar*=256);)this[ne+nn]=Y/ar&255;return ne+Le},se.prototype.writeUint8=se.prototype.writeUInt8=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,1,255,0),this[ne]=255&Y,ne+1},se.prototype.writeUint16LE=se.prototype.writeUInt16LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,65535,0),this[ne]=255&Y,this[ne+1]=Y>>>8,ne+2},se.prototype.writeUint16BE=se.prototype.writeUInt16BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,65535,0),this[ne]=Y>>>8,this[ne+1]=255&Y,ne+2},se.prototype.writeUint32LE=se.prototype.writeUInt32LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,4294967295,0),this[ne+3]=Y>>>24,this[ne+2]=Y>>>16,this[ne+1]=Y>>>8,this[ne]=255&Y,ne+4},se.prototype.writeUint32BE=se.prototype.writeUInt32BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,4294967295,0),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=255&Y,ne+4},se.prototype.writeIntLE=function(Y,ne,Le,it){if(Y=+Y,ne>>>=0,!it){var qt=Math.pow(2,8*Le-1);Gr(this,Y,ne,Le,qt-1,-qt)}var nn=0,ar=1,M=0;for(this[ne]=255&Y;++nn>0)-M&255;return ne+Le},se.prototype.writeIntBE=function(Y,ne,Le,it){if(Y=+Y,ne>>>=0,!it){var qt=Math.pow(2,8*Le-1);Gr(this,Y,ne,Le,qt-1,-qt)}var nn=Le-1,ar=1,M=0;for(this[ne+nn]=255&Y;--nn>=0&&(ar*=256);)Y<0&&0===M&&0!==this[ne+nn+1]&&(M=1),this[ne+nn]=(Y/ar>>0)-M&255;return ne+Le},se.prototype.writeInt8=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,1,127,-128),Y<0&&(Y=255+Y+1),this[ne]=255&Y,ne+1},se.prototype.writeInt16LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,32767,-32768),this[ne]=255&Y,this[ne+1]=Y>>>8,ne+2},se.prototype.writeInt16BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,2,32767,-32768),this[ne]=Y>>>8,this[ne+1]=255&Y,ne+2},se.prototype.writeInt32LE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,2147483647,-2147483648),this[ne]=255&Y,this[ne+1]=Y>>>8,this[ne+2]=Y>>>16,this[ne+3]=Y>>>24,ne+4},se.prototype.writeInt32BE=function(Y,ne,Le){return Y=+Y,ne>>>=0,Le||Gr(this,Y,ne,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=255&Y,ne+4},se.prototype.writeFloatLE=function(Y,ne,Le){return Wr(this,Y,ne,!0,Le)},se.prototype.writeFloatBE=function(Y,ne,Le){return Wr(this,Y,ne,!1,Le)},se.prototype.writeDoubleLE=function(Y,ne,Le){return na(this,Y,ne,!0,Le)},se.prototype.writeDoubleBE=function(Y,ne,Le){return na(this,Y,ne,!1,Le)},se.prototype.copy=function(Y,ne,Le,it){if(!se.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!it&&0!==it&&(it=this.length),ne>=Y.length&&(ne=Y.length),ne||(ne=0),it>0&&it=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),Y.length-ne>>=0,Le=void 0===Le?this.length:Le>>>0,Y||(Y=0),"number"==typeof Y)for(nn=ne;nn55295&&ne<57344){if(!it){if(ne>56319){(Y-=3)>-1&&qt.push(239,191,189);continue}if(nn+1===Le){(Y-=3)>-1&&qt.push(239,191,189);continue}it=ne;continue}if(ne<56320){(Y-=3)>-1&&qt.push(239,191,189),it=ne;continue}ne=65536+(it-55296<<10|ne-56320)}else it&&(Y-=3)>-1&&qt.push(239,191,189);if(it=null,ne<128){if((Y-=1)<0)break;qt.push(ne)}else if(ne<2048){if((Y-=2)<0)break;qt.push(ne>>6|192,63&ne|128)}else if(ne<65536){if((Y-=3)<0)break;qt.push(ne>>12|224,ne>>6&63|128,63&ne|128)}else{if(!(ne<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;qt.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,63&ne|128)}}return qt}function Cu(Ne){return de.toByteArray(function Ls(Ne){if((Ne=(Ne=Ne.split("=")[0]).trim().replace(nl,"")).length<2)return"";for(;Ne.length%4!=0;)Ne+="=";return Ne}(Ne))}function il(Ne,Y,ne,Le){for(var it=0;it=Y.length||it>=Ne.length);++it)Y[it+ne]=Ne[it];return it}function wa(Ne,Y){return Ne instanceof Y||null!=Ne&&null!=Ne.constructor&&null!=Ne.constructor.name&&Ne.constructor.name===Y.name}function ho(Ne){return Ne!=Ne}var Hl=function(){for(var Ne="0123456789abcdef",Y=new Array(256),ne=0;ne<16;++ne)for(var Le=16*ne,it=0;it<16;++it)Y[Le+it]=Ne[ne]+Ne[it];return Y}()},4901:Et=>{"use strict";var Xe={single_source_shortest_paths:function(ue,be,de){var ye={},he={};he[be]=0;var Se,we,se,K,re,k,ee=Xe.PriorityQueue.make();for(ee.push(be,0);!ee.empty();)for(se in K=(Se=ee.pop()).cost,re=ue[we=Se.value]||{})re.hasOwnProperty(se)&&(k=K+re[se],(typeof he[se]>"u"||he[se]>k)&&(he[se]=k,ee.push(se,k),ye[se]=we));if(typeof de<"u"&&typeof he[de]>"u"){var Z=["Could not find a path from ",be," to ",de,"."].join("");throw new Error(Z)}return ye},extract_shortest_path_from_predecessor_list:function(ue,be){for(var de=[],ye=be;ye;)de.push(ye),ye=ue[ye];return de.reverse(),de},find_path:function(ue,be,de){var ye=Xe.single_source_shortest_paths(ue,be,de);return Xe.extract_shortest_path_from_predecessor_list(ye,de)},PriorityQueue:{make:function(ue){var ye,be=Xe.PriorityQueue,de={};for(ye in ue=ue||{},be)be.hasOwnProperty(ye)&&(de[ye]=be[ye]);return de.queue=[],de.sorter=ue.sorter||be.default_sorter,de},default_sorter:function(ue,be){return ue.cost-be.cost},push:function(ue,be){this.queue.push({value:ue,cost:be}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Et.exports=Xe},8419:Et=>{"use strict";Et.exports=function(ue){for(var be=[],de=ue.length,ye=0;ye=55296&&he<=56319&&de>ye+1){var ee=ue.charCodeAt(ye+1);ee>=56320&&ee<=57343&&(he=1024*(he-55296)+ee-56320+65536,ye+=1)}he<128?be.push(he):he<2048?(be.push(he>>6|192),be.push(63&he|128)):he<55296||he>=57344&&he<65536?(be.push(he>>12|224),be.push(he>>6&63|128),be.push(63&he|128)):he>=65536&&he<=1114111?(be.push(he>>18|240),be.push(he>>12&63|128),be.push(he>>6&63|128),be.push(63&he|128)):be.push(239,191,189)}return new Uint8Array(be).buffer}},7797:function(Et){Et.exports=function(Xe){var ue={};function be(de){if(ue[de])return ue[de].exports;var ye=ue[de]={exports:{},id:de,loaded:!1};return Xe[de].call(ye.exports,ye,ye.exports,be),ye.loaded=!0,ye.exports}return be.m=Xe,be.c=ue,be.p="",be(0)}([function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(1),ye=be(3),he=be(8),ee=be(15);function Se(ie,k,T){var I=null,Z=function(Qt,An){T&&T(Qt,An),I&&I.visit(Qt,An)},Ae="function"==typeof T?Z:null,Ue=!1;if(k){var ut="boolean"==typeof k.attachComment&&k.attachComment;((Ue="boolean"==typeof k.comment&&k.comment)||ut)&&((I=new de.CommentHandler).attach=ut,k.comment=!0,Ae=Z)}var yt,ht=!1;k&&"string"==typeof k.sourceType&&(ht="module"===k.sourceType),yt=k&&"boolean"==typeof k.jsx&&k.jsx?new ye.JSXParser(ie,k,Ae):new he.Parser(ie,k,Ae);var Wt=ht?yt.parseModule():yt.parseScript();return Ue&&I&&(Wt.comments=I.comments),yt.config.tokens&&(Wt.tokens=yt.tokens),yt.config.tolerant&&(Wt.errors=yt.errorHandler.errors),Wt}ue.parse=Se,ue.parseModule=function we(ie,k,T){var I=k||{};return I.sourceType="module",Se(ie,I,T)},ue.parseScript=function se(ie,k,T){var I=k||{};return I.sourceType="script",Se(ie,I,T)},ue.tokenize=function K(ie,k,T){var Z,I=new ee.Tokenizer(ie,k);Z=[];try{for(;;){var Ae=I.getNextToken();if(!Ae)break;T&&(Ae=T(Ae)),Z.push(Ae)}}catch(Ue){I.errorHandler.tolerate(Ue)}return I.errorHandler.tolerant&&(Z.errors=I.errors()),Z};var re=be(2);ue.Syntax=re.Syntax,ue.version="4.0.1"},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(2),ye=function(){function he(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return he.prototype.insertInnerComments=function(ee,Se){if(ee.type===de.Syntax.BlockStatement&&0===ee.body.length){for(var we=[],se=this.leading.length-1;se>=0;--se){var K=this.leading[se];Se.end.offset>=K.start&&(we.unshift(K.comment),this.leading.splice(se,1),this.trailing.splice(se,1))}we.length&&(ee.innerComments=we)}},he.prototype.findTrailingComments=function(ee){var Se=[];if(this.trailing.length>0){for(var we=this.trailing.length-1;we>=0;--we){var se=this.trailing[we];se.start>=ee.end.offset&&Se.unshift(se.comment)}return this.trailing.length=0,Se}var K=this.stack[this.stack.length-1];if(K&&K.node.trailingComments){var re=K.node.trailingComments[0];re&&re.range[0]>=ee.end.offset&&(Se=K.node.trailingComments,delete K.node.trailingComments)}return Se},he.prototype.findLeadingComments=function(ee){for(var we,Se=[];this.stack.length>0&&(se=this.stack[this.stack.length-1])&&se.start>=ee.start.offset;)we=se.node,this.stack.pop();if(we){for(var re=(we.leadingComments?we.leadingComments.length:0)-1;re>=0;--re){var ie=we.leadingComments[re];ie.range[1]<=ee.start.offset&&(Se.unshift(ie),we.leadingComments.splice(re,1))}return we.leadingComments&&0===we.leadingComments.length&&delete we.leadingComments,Se}for(re=this.leading.length-1;re>=0;--re){var se;(se=this.leading[re]).start<=ee.start.offset&&(Se.unshift(se.comment),this.leading.splice(re,1))}return Se},he.prototype.visitNode=function(ee,Se){if(!(ee.type===de.Syntax.Program&&ee.body.length>0)){this.insertInnerComments(ee,Se);var we=this.findTrailingComments(Se),se=this.findLeadingComments(Se);se.length>0&&(ee.leadingComments=se),we.length>0&&(ee.trailingComments=we),this.stack.push({node:ee,start:Se.start.offset})}},he.prototype.visitComment=function(ee,Se){var we="L"===ee.type[0]?"Line":"Block",se={type:we,value:ee.value};if(ee.range&&(se.range=ee.range),ee.loc&&(se.loc=ee.loc),this.comments.push(se),this.attach){var K={comment:{type:we,value:ee.value,range:[Se.start.offset,Se.end.offset]},start:Se.start.offset};ee.loc&&(K.comment.loc=ee.loc),ee.type=we,this.leading.push(K),this.trailing.push(K)}},he.prototype.visit=function(ee,Se){"LineComment"===ee.type||"BlockComment"===ee.type?this.visitComment(ee,Se):this.attach&&this.visitNode(ee,Se)},he}();ue.CommentHandler=ye},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(Xe,ue,be){"use strict";var k,de=this&&this.__extends||(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,I){T.__proto__=I}||function(T,I){for(var Z in I)I.hasOwnProperty(Z)&&(T[Z]=I[Z])},function(T,I){function Z(){this.constructor=T}k(T,I),T.prototype=null===I?Object.create(I):(Z.prototype=I.prototype,new Z)});Object.defineProperty(ue,"__esModule",{value:!0});var ye=be(4),he=be(5),ee=be(6),Se=be(7),we=be(8),se=be(13),K=be(14);function re(k){var T;switch(k.type){case ee.JSXSyntax.JSXIdentifier:T=k.name;break;case ee.JSXSyntax.JSXNamespacedName:var Z=k;T=re(Z.namespace)+":"+re(Z.name);break;case ee.JSXSyntax.JSXMemberExpression:var Ae=k;T=re(Ae.object)+"."+re(Ae.property)}return T}se.TokenName[100]="JSXIdentifier",se.TokenName[101]="JSXText";var ie=function(k){function T(I,Z,Ae){return k.call(this,I,Z,Ae)||this}return de(T,k),T.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():k.prototype.parsePrimaryExpression.call(this)},T.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},T.prototype.finishJSX=function(){this.nextToken()},T.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},T.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},T.prototype.scanXHTMLEntity=function(I){for(var Z="&",Ae=!0,Ue=!1,ut=!1,ht=!1;!this.scanner.eof()&&Ae&&!Ue;){var yt=this.scanner.source[this.scanner.index];if(yt===I)break;if(Ue=";"===yt,Z+=yt,++this.scanner.index,!Ue)switch(Z.length){case 2:ut="#"===yt;break;case 3:ut&&(Ae=(ht="x"===yt)||ye.Character.isDecimalDigit(yt.charCodeAt(0)),ut=ut&&!ht);break;default:Ae=(Ae=Ae&&!(ut&&!ye.Character.isDecimalDigit(yt.charCodeAt(0))))&&!(ht&&!ye.Character.isHexDigit(yt.charCodeAt(0)))}}if(Ae&&Ue&&Z.length>2){var Zt=Z.substr(1,Z.length-2);ut&&Zt.length>1?Z=String.fromCharCode(parseInt(Zt.substr(1),10)):ht&&Zt.length>2?Z=String.fromCharCode(parseInt("0"+Zt.substr(1),16)):!ut&&!ht&&K.XHTMLEntities[Zt]&&(Z=K.XHTMLEntities[Zt])}return Z},T.prototype.lexJSX=function(){var I=this.scanner.source.charCodeAt(this.scanner.index);if(60===I||62===I||47===I||58===I||61===I||123===I||125===I)return{type:7,value:Z=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===I||39===I){for(var Ae=this.scanner.index,Ue=this.scanner.source[this.scanner.index++],ut="";!this.scanner.eof()&&(ht=this.scanner.source[this.scanner.index++])!==Ue;)ut+="&"===ht?this.scanXHTMLEntity(Ue):ht;return{type:8,value:ut,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(46===I){var Z,yt=this.scanner.source.charCodeAt(this.scanner.index+1),Zt=this.scanner.source.charCodeAt(this.scanner.index+2);return Ae=this.scanner.index,this.scanner.index+=(Z=46===yt&&46===Zt?"...":".").length,{type:7,value:Z,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}if(96===I)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(ye.Character.isIdentifierStart(I)&&92!==I){for(Ae=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var ht=this.scanner.source.charCodeAt(this.scanner.index);if(ye.Character.isIdentifierPart(ht)&&92!==ht)++this.scanner.index;else{if(45!==ht)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(Ae,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:Ae,end:this.scanner.index}}return this.scanner.lex()},T.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var I=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(I)),I},T.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var I=this.scanner.index,Z="";!this.scanner.eof();){var Ae=this.scanner.source[this.scanner.index];if("{"===Ae||"<"===Ae)break;++this.scanner.index,Z+=Ae,ye.Character.isLineTerminator(Ae.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===Ae&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var Ue={type:101,value:Z,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:I,end:this.scanner.index};return Z.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(Ue)),Ue},T.prototype.peekJSXToken=function(){var I=this.scanner.saveState();this.scanner.scanComments();var Z=this.lexJSX();return this.scanner.restoreState(I),Z},T.prototype.expectJSX=function(I){var Z=this.nextJSXToken();(7!==Z.type||Z.value!==I)&&this.throwUnexpectedToken(Z)},T.prototype.matchJSX=function(I){var Z=this.peekJSXToken();return 7===Z.type&&Z.value===I},T.prototype.parseJSXIdentifier=function(){var I=this.createJSXNode(),Z=this.nextJSXToken();return 100!==Z.type&&this.throwUnexpectedToken(Z),this.finalize(I,new he.JSXIdentifier(Z.value))},T.prototype.parseJSXElementName=function(){var I=this.createJSXNode(),Z=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ae=Z;this.expectJSX(":");var Ue=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXNamespacedName(Ae,Ue))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var ut=Z;this.expectJSX(".");var ht=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXMemberExpression(ut,ht))}return Z},T.prototype.parseJSXAttributeName=function(){var Z,I=this.createJSXNode(),Ae=this.parseJSXIdentifier();if(this.matchJSX(":")){var Ue=Ae;this.expectJSX(":");var ut=this.parseJSXIdentifier();Z=this.finalize(I,new he.JSXNamespacedName(Ue,ut))}else Z=Ae;return Z},T.prototype.parseJSXStringLiteralAttribute=function(){var I=this.createJSXNode(),Z=this.nextJSXToken();8!==Z.type&&this.throwUnexpectedToken(Z);var Ae=this.getTokenRaw(Z);return this.finalize(I,new Se.Literal(Z.value,Ae))},T.prototype.parseJSXExpressionAttribute=function(){var I=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var Z=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(I,new he.JSXExpressionContainer(Z))},T.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},T.prototype.parseJSXNameValueAttribute=function(){var I=this.createJSXNode(),Z=this.parseJSXAttributeName(),Ae=null;return this.matchJSX("=")&&(this.expectJSX("="),Ae=this.parseJSXAttributeValue()),this.finalize(I,new he.JSXAttribute(Z,Ae))},T.prototype.parseJSXSpreadAttribute=function(){var I=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var Z=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(I,new he.JSXSpreadAttribute(Z))},T.prototype.parseJSXAttributes=function(){for(var I=[];!this.matchJSX("/")&&!this.matchJSX(">");){var Z=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();I.push(Z)}return I},T.prototype.parseJSXOpeningElement=function(){var I=this.createJSXNode();this.expectJSX("<");var Z=this.parseJSXElementName(),Ae=this.parseJSXAttributes(),Ue=this.matchJSX("/");return Ue&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(I,new he.JSXOpeningElement(Z,Ue,Ae))},T.prototype.parseJSXBoundaryElement=function(){var I=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var Z=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(I,new he.JSXClosingElement(Z))}var Ae=this.parseJSXElementName(),Ue=this.parseJSXAttributes(),ut=this.matchJSX("/");return ut&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(I,new he.JSXOpeningElement(Ae,ut,Ue))},T.prototype.parseJSXEmptyExpression=function(){var I=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(I,new he.JSXEmptyExpression)},T.prototype.parseJSXExpressionContainer=function(){var Z,I=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(Z=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),Z=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(I,new he.JSXExpressionContainer(Z))},T.prototype.parseJSXChildren=function(){for(var I=[];!this.scanner.eof();){var Z=this.createJSXChildNode(),Ae=this.nextJSXText();if(Ae.start0))break;ht=this.finalize(I.node,new he.JSXElement(I.opening,I.children,I.closing)),(I=Z[Z.length-1]).children.push(ht),Z.pop()}}return I},T.prototype.parseJSXElement=function(){var I=this.createJSXNode(),Z=this.parseJSXOpeningElement(),Ae=[],Ue=null;if(!Z.selfClosing){var ut=this.parseComplexJSXElement({node:I,opening:Z,closing:Ue,children:Ae});Ae=ut.children,Ue=ut.closing}return this.finalize(I,new he.JSXElement(Z,Ae,Ue))},T.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var I=this.parseJSXElement();return this.finishJSX(),I},T.prototype.isStartOfExpression=function(){return k.prototype.isStartOfExpression.call(this)||this.match("<")},T}(we.Parser);ue.JSXParser=ie},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var be={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\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\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\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]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};ue.Character={fromCodePoint:function(de){return de<65536?String.fromCharCode(de):String.fromCharCode(55296+(de-65536>>10))+String.fromCharCode(56320+(de-65536&1023))},isWhiteSpace:function(de){return 32===de||9===de||11===de||12===de||160===de||de>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(de)>=0},isLineTerminator:function(de){return 10===de||13===de||8232===de||8233===de},isIdentifierStart:function(de){return 36===de||95===de||de>=65&&de<=90||de>=97&&de<=122||92===de||de>=128&&be.NonAsciiIdentifierStart.test(ue.Character.fromCodePoint(de))},isIdentifierPart:function(de){return 36===de||95===de||de>=65&&de<=90||de>=97&&de<=122||de>=48&&de<=57||92===de||de>=128&&be.NonAsciiIdentifierPart.test(ue.Character.fromCodePoint(de))},isDecimalDigit:function(de){return de>=48&&de<=57},isHexDigit:function(de){return de>=48&&de<=57||de>=65&&de<=70||de>=97&&de<=102},isOctalDigit:function(de){return de>=48&&de<=55}}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(6);ue.JSXClosingElement=function I(Z){this.type=de.JSXSyntax.JSXClosingElement,this.name=Z},ue.JSXElement=function I(Z,Ae,Ue){this.type=de.JSXSyntax.JSXElement,this.openingElement=Z,this.children=Ae,this.closingElement=Ue},ue.JSXEmptyExpression=function I(){this.type=de.JSXSyntax.JSXEmptyExpression},ue.JSXExpressionContainer=function I(Z){this.type=de.JSXSyntax.JSXExpressionContainer,this.expression=Z},ue.JSXIdentifier=function I(Z){this.type=de.JSXSyntax.JSXIdentifier,this.name=Z},ue.JSXMemberExpression=function I(Z,Ae){this.type=de.JSXSyntax.JSXMemberExpression,this.object=Z,this.property=Ae},ue.JSXAttribute=function I(Z,Ae){this.type=de.JSXSyntax.JSXAttribute,this.name=Z,this.value=Ae},ue.JSXNamespacedName=function I(Z,Ae){this.type=de.JSXSyntax.JSXNamespacedName,this.namespace=Z,this.name=Ae},ue.JSXOpeningElement=function I(Z,Ae,Ue){this.type=de.JSXSyntax.JSXOpeningElement,this.name=Z,this.selfClosing=Ae,this.attributes=Ue},ue.JSXSpreadAttribute=function I(Z){this.type=de.JSXSyntax.JSXSpreadAttribute,this.argument=Z},ue.JSXText=function I(Z,Ae){this.type=de.JSXSyntax.JSXText,this.value=Z,this.raw=Ae}},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(2);ue.ArrayExpression=function Je(Qe){this.type=de.Syntax.ArrayExpression,this.elements=Qe},ue.ArrayPattern=function Je(Qe){this.type=de.Syntax.ArrayPattern,this.elements=Qe},ue.ArrowFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.ArrowFunctionExpression,this.id=null,this.params=Qe,this.body=St,this.generator=!1,this.expression=kn,this.async=!1},ue.AssignmentExpression=function Je(Qe,St,kn){this.type=de.Syntax.AssignmentExpression,this.operator=Qe,this.left=St,this.right=kn},ue.AssignmentPattern=function Je(Qe,St){this.type=de.Syntax.AssignmentPattern,this.left=Qe,this.right=St},ue.AsyncArrowFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.ArrowFunctionExpression,this.id=null,this.params=Qe,this.body=St,this.generator=!1,this.expression=kn,this.async=!0},ue.AsyncFunctionDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.FunctionDeclaration,this.id=Qe,this.params=St,this.body=kn,this.generator=!1,this.expression=!1,this.async=!0},ue.AsyncFunctionExpression=function Je(Qe,St,kn){this.type=de.Syntax.FunctionExpression,this.id=Qe,this.params=St,this.body=kn,this.generator=!1,this.expression=!1,this.async=!0},ue.AwaitExpression=function Je(Qe){this.type=de.Syntax.AwaitExpression,this.argument=Qe},ue.BinaryExpression=function Je(Qe,St,kn){this.type="||"===Qe||"&&"===Qe?de.Syntax.LogicalExpression:de.Syntax.BinaryExpression,this.operator=Qe,this.left=St,this.right=kn},ue.BlockStatement=function Je(Qe){this.type=de.Syntax.BlockStatement,this.body=Qe},ue.BreakStatement=function Je(Qe){this.type=de.Syntax.BreakStatement,this.label=Qe},ue.CallExpression=function Je(Qe,St){this.type=de.Syntax.CallExpression,this.callee=Qe,this.arguments=St},ue.CatchClause=function Je(Qe,St){this.type=de.Syntax.CatchClause,this.param=Qe,this.body=St},ue.ClassBody=function Je(Qe){this.type=de.Syntax.ClassBody,this.body=Qe},ue.ClassDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.ClassDeclaration,this.id=Qe,this.superClass=St,this.body=kn},ue.ClassExpression=function Je(Qe,St,kn){this.type=de.Syntax.ClassExpression,this.id=Qe,this.superClass=St,this.body=kn},ue.ComputedMemberExpression=function Je(Qe,St){this.type=de.Syntax.MemberExpression,this.computed=!0,this.object=Qe,this.property=St},ue.ConditionalExpression=function Je(Qe,St,kn){this.type=de.Syntax.ConditionalExpression,this.test=Qe,this.consequent=St,this.alternate=kn},ue.ContinueStatement=function Je(Qe){this.type=de.Syntax.ContinueStatement,this.label=Qe},ue.DebuggerStatement=function Je(){this.type=de.Syntax.DebuggerStatement},ue.Directive=function Je(Qe,St){this.type=de.Syntax.ExpressionStatement,this.expression=Qe,this.directive=St},ue.DoWhileStatement=function Je(Qe,St){this.type=de.Syntax.DoWhileStatement,this.body=Qe,this.test=St},ue.EmptyStatement=function Je(){this.type=de.Syntax.EmptyStatement},ue.ExportAllDeclaration=function Je(Qe){this.type=de.Syntax.ExportAllDeclaration,this.source=Qe},ue.ExportDefaultDeclaration=function Je(Qe){this.type=de.Syntax.ExportDefaultDeclaration,this.declaration=Qe},ue.ExportNamedDeclaration=function Je(Qe,St,kn){this.type=de.Syntax.ExportNamedDeclaration,this.declaration=Qe,this.specifiers=St,this.source=kn},ue.ExportSpecifier=function Je(Qe,St){this.type=de.Syntax.ExportSpecifier,this.exported=St,this.local=Qe},ue.ExpressionStatement=function Je(Qe){this.type=de.Syntax.ExpressionStatement,this.expression=Qe},ue.ForInStatement=function Je(Qe,St,kn){this.type=de.Syntax.ForInStatement,this.left=Qe,this.right=St,this.body=kn,this.each=!1},ue.ForOfStatement=function Je(Qe,St,kn){this.type=de.Syntax.ForOfStatement,this.left=Qe,this.right=St,this.body=kn},ue.ForStatement=function Je(Qe,St,kn,Br){this.type=de.Syntax.ForStatement,this.init=Qe,this.test=St,this.update=kn,this.body=Br},ue.FunctionDeclaration=function Je(Qe,St,kn,Br){this.type=de.Syntax.FunctionDeclaration,this.id=Qe,this.params=St,this.body=kn,this.generator=Br,this.expression=!1,this.async=!1},ue.FunctionExpression=function Je(Qe,St,kn,Br){this.type=de.Syntax.FunctionExpression,this.id=Qe,this.params=St,this.body=kn,this.generator=Br,this.expression=!1,this.async=!1},ue.Identifier=function Je(Qe){this.type=de.Syntax.Identifier,this.name=Qe},ue.IfStatement=function Je(Qe,St,kn){this.type=de.Syntax.IfStatement,this.test=Qe,this.consequent=St,this.alternate=kn},ue.ImportDeclaration=function Je(Qe,St){this.type=de.Syntax.ImportDeclaration,this.specifiers=Qe,this.source=St},ue.ImportDefaultSpecifier=function Je(Qe){this.type=de.Syntax.ImportDefaultSpecifier,this.local=Qe},ue.ImportNamespaceSpecifier=function Je(Qe){this.type=de.Syntax.ImportNamespaceSpecifier,this.local=Qe},ue.ImportSpecifier=function Je(Qe,St){this.type=de.Syntax.ImportSpecifier,this.local=Qe,this.imported=St},ue.LabeledStatement=function Je(Qe,St){this.type=de.Syntax.LabeledStatement,this.label=Qe,this.body=St},ue.Literal=function Je(Qe,St){this.type=de.Syntax.Literal,this.value=Qe,this.raw=St},ue.MetaProperty=function Je(Qe,St){this.type=de.Syntax.MetaProperty,this.meta=Qe,this.property=St},ue.MethodDefinition=function Je(Qe,St,kn,Br,g1){this.type=de.Syntax.MethodDefinition,this.key=Qe,this.computed=St,this.value=kn,this.kind=Br,this.static=g1},ue.Module=function Je(Qe){this.type=de.Syntax.Program,this.body=Qe,this.sourceType="module"},ue.NewExpression=function Je(Qe,St){this.type=de.Syntax.NewExpression,this.callee=Qe,this.arguments=St},ue.ObjectExpression=function Je(Qe){this.type=de.Syntax.ObjectExpression,this.properties=Qe},ue.ObjectPattern=function Je(Qe){this.type=de.Syntax.ObjectPattern,this.properties=Qe},ue.Property=function Je(Qe,St,kn,Br,g1,ji){this.type=de.Syntax.Property,this.key=St,this.computed=kn,this.value=Br,this.kind=Qe,this.method=g1,this.shorthand=ji},ue.RegexLiteral=function Je(Qe,St,kn,Br){this.type=de.Syntax.Literal,this.value=Qe,this.raw=St,this.regex={pattern:kn,flags:Br}},ue.RestElement=function Je(Qe){this.type=de.Syntax.RestElement,this.argument=Qe},ue.ReturnStatement=function Je(Qe){this.type=de.Syntax.ReturnStatement,this.argument=Qe},ue.Script=function Je(Qe){this.type=de.Syntax.Program,this.body=Qe,this.sourceType="script"},ue.SequenceExpression=function Je(Qe){this.type=de.Syntax.SequenceExpression,this.expressions=Qe},ue.SpreadElement=function Je(Qe){this.type=de.Syntax.SpreadElement,this.argument=Qe},ue.StaticMemberExpression=function Je(Qe,St){this.type=de.Syntax.MemberExpression,this.computed=!1,this.object=Qe,this.property=St},ue.Super=function Je(){this.type=de.Syntax.Super},ue.SwitchCase=function Je(Qe,St){this.type=de.Syntax.SwitchCase,this.test=Qe,this.consequent=St},ue.SwitchStatement=function Je(Qe,St){this.type=de.Syntax.SwitchStatement,this.discriminant=Qe,this.cases=St},ue.TaggedTemplateExpression=function Je(Qe,St){this.type=de.Syntax.TaggedTemplateExpression,this.tag=Qe,this.quasi=St},ue.TemplateElement=function Je(Qe,St){this.type=de.Syntax.TemplateElement,this.value=Qe,this.tail=St},ue.TemplateLiteral=function Je(Qe,St){this.type=de.Syntax.TemplateLiteral,this.quasis=Qe,this.expressions=St},ue.ThisExpression=function Je(){this.type=de.Syntax.ThisExpression},ue.ThrowStatement=function Je(Qe){this.type=de.Syntax.ThrowStatement,this.argument=Qe},ue.TryStatement=function Je(Qe,St,kn){this.type=de.Syntax.TryStatement,this.block=Qe,this.handler=St,this.finalizer=kn},ue.UnaryExpression=function Je(Qe,St){this.type=de.Syntax.UnaryExpression,this.operator=Qe,this.argument=St,this.prefix=!0},ue.UpdateExpression=function Je(Qe,St,kn){this.type=de.Syntax.UpdateExpression,this.operator=Qe,this.argument=St,this.prefix=kn},ue.VariableDeclaration=function Je(Qe,St){this.type=de.Syntax.VariableDeclaration,this.declarations=Qe,this.kind=St},ue.VariableDeclarator=function Je(Qe,St){this.type=de.Syntax.VariableDeclarator,this.id=Qe,this.init=St},ue.WhileStatement=function Je(Qe,St){this.type=de.Syntax.WhileStatement,this.test=Qe,this.body=St},ue.WithStatement=function Je(Qe,St){this.type=de.Syntax.WithStatement,this.object=Qe,this.body=St},ue.YieldExpression=function Je(Qe,St){this.type=de.Syntax.YieldExpression,this.argument=Qe,this.delegate=St}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(9),ye=be(10),he=be(11),ee=be(7),Se=be(12),we=be(2),se=be(13),K="ArrowParameterPlaceHolder",re=function(){function ie(k,T,I){void 0===T&&(T={}),this.config={range:"boolean"==typeof T.range&&T.range,loc:"boolean"==typeof T.loc&&T.loc,source:null,tokens:"boolean"==typeof T.tokens&&T.tokens,comment:"boolean"==typeof T.comment&&T.comment,tolerant:"boolean"==typeof T.tolerant&&T.tolerant},this.config.loc&&T.source&&null!==T.source&&(this.config.source=String(T.source)),this.delegate=I,this.errorHandler=new ye.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new Se.Scanner(k,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return ie.prototype.throwError=function(k){for(var T=[],I=1;I0&&this.delegate)for(var T=0;T>="===k||">>>="===k||"&="===k||"^="===k||"|="===k},ie.prototype.isolateCoverGrammar=function(k){var T=this.context.isBindingElement,I=this.context.isAssignmentTarget,Z=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=k.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=T,this.context.isAssignmentTarget=I,this.context.firstCoverInitializedNameError=Z,Ae},ie.prototype.inheritCoverGrammar=function(k){var T=this.context.isBindingElement,I=this.context.isAssignmentTarget,Z=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var Ae=k.call(this);return this.context.isBindingElement=this.context.isBindingElement&&T,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&I,this.context.firstCoverInitializedNameError=Z||this.context.firstCoverInitializedNameError,Ae},ie.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2!==this.lookahead.type&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},ie.prototype.parsePrimaryExpression=function(){var T,I,Z,k=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),T=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(k,new ee.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal(I.value,Z));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal("true"===I.value,Z));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,I=this.nextToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.Literal(null,Z));break;case 10:T=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,T=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":T=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":T=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,I=this.nextRegexToken(),Z=this.getTokenRaw(I),T=this.finalize(k,new ee.RegexLiteral(I.regex,Z,I.pattern,I.flags));break;default:T=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?T=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?T=this.finalize(k,new ee.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?T=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),T=this.finalize(k,new ee.ThisExpression)):T=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:T=this.throwUnexpectedToken(this.nextToken())}return T},ie.prototype.parseSpreadElement=function(){var k=this.createNode();this.expect("...");var T=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(k,new ee.SpreadElement(T))},ie.prototype.parseArrayInitializer=function(){var k=this.createNode(),T=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),T.push(null);else if(this.match("...")){var I=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),T.push(I)}else T.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(k,new ee.ArrayExpression(T))},ie.prototype.parsePropertyMethod=function(k){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var T=this.context.strict,I=this.context.allowStrictDirective;this.context.allowStrictDirective=k.simple;var Z=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&k.firstRestricted&&this.tolerateUnexpectedToken(k.firstRestricted,k.message),this.context.strict&&k.stricted&&this.tolerateUnexpectedToken(k.stricted,k.message),this.context.strict=T,this.context.allowStrictDirective=I,Z},ie.prototype.parsePropertyMethodFunction=function(){var T=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters(),Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(T,new ee.FunctionExpression(null,Z.params,Ae,!1))},ie.prototype.parsePropertyMethodAsyncFunction=function(){var k=this.createNode(),T=this.context.allowYield,I=this.context.await;this.context.allowYield=!1,this.context.await=!0;var Z=this.parseFormalParameters(),Ae=this.parsePropertyMethod(Z);return this.context.allowYield=T,this.context.await=I,this.finalize(k,new ee.AsyncFunctionExpression(null,Z.params,Ae))},ie.prototype.parseObjectPropertyKey=function(){var I,k=this.createNode(),T=this.nextToken();switch(T.type){case 8:case 6:this.context.strict&&T.octal&&this.tolerateUnexpectedToken(T,he.Messages.StrictOctalLiteral);var Z=this.getTokenRaw(T);I=this.finalize(k,new ee.Literal(T.value,Z));break;case 3:case 1:case 5:case 4:I=this.finalize(k,new ee.Identifier(T.value));break;case 7:"["===T.value?(I=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):I=this.throwUnexpectedToken(T);break;default:I=this.throwUnexpectedToken(T)}return I},ie.prototype.isPropertyKey=function(k,T){return k.type===we.Syntax.Identifier&&k.name===T||k.type===we.Syntax.Literal&&k.value===T},ie.prototype.parseObjectProperty=function(k){var Z,T=this.createNode(),I=this.lookahead,Ae=null,Ue=null,ut=!1,ht=!1,yt=!1,Zt=!1;if(3===I.type){var Wt=I.value;this.nextToken(),ut=this.match("["),Ae=(Zt=!(this.hasLineTerminator||"async"!==Wt||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(T,new ee.Identifier(Wt))}else this.match("*")?this.nextToken():(ut=this.match("["),Ae=this.parseObjectPropertyKey());var Qt=this.qualifiedPropertyName(this.lookahead);if(3===I.type&&!Zt&&"get"===I.value&&Qt)Z="get",ut=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Ue=this.parseGetterMethod();else if(3===I.type&&!Zt&&"set"===I.value&&Qt)Z="set",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseSetterMethod();else if(7===I.type&&"*"===I.value&&Qt)Z="init",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseGeneratorMethod(),ht=!0;else if(Ae||this.throwUnexpectedToken(this.lookahead),Z="init",this.match(":")&&!Zt)!ut&&this.isPropertyKey(Ae,"__proto__")&&(k.value&&this.tolerateError(he.Messages.DuplicateProtoProperty),k.value=!0),this.nextToken(),Ue=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))Ue=Zt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),ht=!0;else if(3===I.type)if(Wt=this.finalize(T,new ee.Identifier(I.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),yt=!0;var An=this.isolateCoverGrammar(this.parseAssignmentExpression);Ue=this.finalize(T,new ee.AssignmentPattern(Wt,An))}else yt=!0,Ue=Wt;else this.throwUnexpectedToken(this.nextToken());return this.finalize(T,new ee.Property(Z,Ae,ut,Ue,ht,yt))},ie.prototype.parseObjectInitializer=function(){var k=this.createNode();this.expect("{");for(var T=[],I={value:!1};!this.match("}");)T.push(this.parseObjectProperty(I)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(k,new ee.ObjectExpression(T))},ie.prototype.parseTemplateHead=function(){de.assert(this.lookahead.head,"Template literal must start with a template head");var k=this.createNode(),T=this.nextToken();return this.finalize(k,new ee.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ie.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var k=this.createNode(),T=this.nextToken();return this.finalize(k,new ee.TemplateElement({raw:T.value,cooked:T.cooked},T.tail))},ie.prototype.parseTemplateLiteral=function(){var k=this.createNode(),T=[],I=[],Z=this.parseTemplateHead();for(I.push(Z);!Z.tail;)T.push(this.parseExpression()),Z=this.parseTemplateElement(),I.push(Z);return this.finalize(k,new ee.TemplateLiteral(I,T))},ie.prototype.reinterpretExpressionAsPattern=function(k){switch(k.type){case we.Syntax.Identifier:case we.Syntax.MemberExpression:case we.Syntax.RestElement:case we.Syntax.AssignmentPattern:break;case we.Syntax.SpreadElement:k.type=we.Syntax.RestElement,this.reinterpretExpressionAsPattern(k.argument);break;case we.Syntax.ArrayExpression:k.type=we.Syntax.ArrayPattern;for(var T=0;T")||this.expect("=>"),k={type:K,params:[],async:!1};else{var T=this.lookahead,I=[];if(this.match("..."))k=this.parseRestElement(I),this.expect(")"),this.match("=>")||this.expect("=>"),k={type:K,params:[k],async:!1};else{var Z=!1;if(this.context.isBindingElement=!0,k=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var Ae=[];for(this.context.isAssignmentTarget=!1,Ae.push(k);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var Ue=0;Ue")||this.expect("=>"),this.context.isBindingElement=!1,Ue=0;Ue")&&(k.type===we.Syntax.Identifier&&"yield"===k.name&&(Z=!0,k={type:K,params:[k],async:!1}),!Z)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),k.type===we.Syntax.SequenceExpression)for(Ue=0;Ue")){for(var ht=0;ht0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var Ae=[k,this.lookahead],Ue=T,ut=this.isolateCoverGrammar(this.parseExponentiationExpression),ht=[Ue,I.value,ut],yt=[Z];!((Z=this.binaryPrecedence(this.lookahead))<=0);){for(;ht.length>2&&Z<=yt[yt.length-1];){ut=ht.pop();var Zt=ht.pop();yt.pop(),Ue=ht.pop(),Ae.pop();var Wt=this.startNode(Ae[Ae.length-1]);ht.push(this.finalize(Wt,new ee.BinaryExpression(Zt,Ue,ut)))}ht.push(this.nextToken().value),yt.push(Z),Ae.push(this.lookahead),ht.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var Qt=ht.length-1;T=ht[Qt];for(var An=Ae.pop();Qt>1;){var Cn=Ae.pop();Wt=this.startNode(Cn,An&&An.lineStart),T=this.finalize(Wt,new ee.BinaryExpression(Zt=ht[Qt-1],ht[Qt-2],T)),Qt-=2,An=Cn}}return T},ie.prototype.parseConditionalExpression=function(){var k=this.lookahead,T=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var I=this.context.allowIn;this.context.allowIn=!0;var Z=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=I,this.expect(":");var Ae=this.isolateCoverGrammar(this.parseAssignmentExpression);T=this.finalize(this.startNode(k),new ee.ConditionalExpression(T,Z,Ae)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return T},ie.prototype.checkPatternParam=function(k,T){switch(T.type){case we.Syntax.Identifier:this.validateParam(k,T,T.name);break;case we.Syntax.RestElement:this.checkPatternParam(k,T.argument);break;case we.Syntax.AssignmentPattern:this.checkPatternParam(k,T.left);break;case we.Syntax.ArrayPattern:for(var I=0;I")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var Ae=k.async,Ue=this.reinterpretAsCoverFormalsList(k);if(Ue){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var ut=this.context.strict,ht=this.context.allowStrictDirective;this.context.allowStrictDirective=Ue.simple;var yt=this.context.allowYield,Zt=this.context.await;this.context.allowYield=!0,this.context.await=Ae;var Wt=this.startNode(T);this.expect("=>");var Qt=void 0;if(this.match("{")){var An=this.context.allowIn;this.context.allowIn=!0,Qt=this.parseFunctionSourceElements(),this.context.allowIn=An}else Qt=this.isolateCoverGrammar(this.parseAssignmentExpression);var Cn=Qt.type!==we.Syntax.BlockStatement;this.context.strict&&Ue.firstRestricted&&this.throwUnexpectedToken(Ue.firstRestricted,Ue.message),this.context.strict&&Ue.stricted&&this.tolerateUnexpectedToken(Ue.stricted,Ue.message),k=this.finalize(Wt,Ae?new ee.AsyncArrowFunctionExpression(Ue.params,Qt,Cn):new ee.ArrowFunctionExpression(Ue.params,Qt,Cn)),this.context.strict=ut,this.context.allowStrictDirective=ht,this.context.allowYield=yt,this.context.await=Zt}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(he.Messages.InvalidLHSInAssignment),this.context.strict&&k.type===we.Syntax.Identifier){var Sn=k;this.scanner.isRestrictedWord(Sn.name)&&this.tolerateUnexpectedToken(I,he.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(Sn.name)&&this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(k):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var mi=(I=this.nextToken()).value,fn=this.isolateCoverGrammar(this.parseAssignmentExpression);k=this.finalize(this.startNode(T),new ee.AssignmentExpression(mi,k,fn)),this.context.firstCoverInitializedNameError=null}}return k},ie.prototype.parseExpression=function(){var k=this.lookahead,T=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var I=[];for(I.push(T);2!==this.lookahead.type&&this.match(",");)this.nextToken(),I.push(this.isolateCoverGrammar(this.parseAssignmentExpression));T=this.finalize(this.startNode(k),new ee.SequenceExpression(I))}return T},ie.prototype.parseStatementListItem=function(){var k;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalExportDeclaration),k=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,he.Messages.IllegalImportDeclaration),k=this.parseImportDeclaration();break;case"const":k=this.parseLexicalDeclaration({inFor:!1});break;case"function":k=this.parseFunctionDeclaration();break;case"class":k=this.parseClassDeclaration();break;case"let":k=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:k=this.parseStatement()}else k=this.parseStatement();return k},ie.prototype.parseBlock=function(){var k=this.createNode();this.expect("{");for(var T=[];!this.match("}");)T.push(this.parseStatementListItem());return this.expect("}"),this.finalize(k,new ee.BlockStatement(T))},ie.prototype.parseLexicalBinding=function(k,T){var I=this.createNode(),Ae=this.parsePattern([],k);this.context.strict&&Ae.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(Ae.name)&&this.tolerateError(he.Messages.StrictVarName);var Ue=null;return"const"===k?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),Ue=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(he.Messages.DeclarationMissingInitializer,"const")):(!T.inFor&&Ae.type!==we.Syntax.Identifier||this.match("="))&&(this.expect("="),Ue=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(I,new ee.VariableDeclarator(Ae,Ue))},ie.prototype.parseBindingList=function(k,T){for(var I=[this.parseLexicalBinding(k,T)];this.match(",");)this.nextToken(),I.push(this.parseLexicalBinding(k,T));return I},ie.prototype.isLexicalDeclaration=function(){var k=this.scanner.saveState();this.scanner.scanComments();var T=this.scanner.lex();return this.scanner.restoreState(k),3===T.type||7===T.type&&"["===T.value||7===T.type&&"{"===T.value||4===T.type&&"let"===T.value||4===T.type&&"yield"===T.value},ie.prototype.parseLexicalDeclaration=function(k){var T=this.createNode(),I=this.nextToken().value;de.assert("let"===I||"const"===I,"Lexical declaration must be either let or const");var Z=this.parseBindingList(I,k);return this.consumeSemicolon(),this.finalize(T,new ee.VariableDeclaration(Z,I))},ie.prototype.parseBindingRestElement=function(k,T){var I=this.createNode();this.expect("...");var Z=this.parsePattern(k,T);return this.finalize(I,new ee.RestElement(Z))},ie.prototype.parseArrayPattern=function(k,T){var I=this.createNode();this.expect("[");for(var Z=[];!this.match("]");)if(this.match(","))this.nextToken(),Z.push(null);else{if(this.match("...")){Z.push(this.parseBindingRestElement(k,T));break}Z.push(this.parsePatternWithDefault(k,T)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(I,new ee.ArrayPattern(Z))},ie.prototype.parsePropertyPattern=function(k,T){var ut,ht,I=this.createNode(),Z=!1,Ae=!1;if(3===this.lookahead.type){var yt=this.lookahead;ut=this.parseVariableIdentifier();var Zt=this.finalize(I,new ee.Identifier(yt.value));if(this.match("=")){k.push(yt),Ae=!0,this.nextToken();var Wt=this.parseAssignmentExpression();ht=this.finalize(this.startNode(yt),new ee.AssignmentPattern(Zt,Wt))}else this.match(":")?(this.expect(":"),ht=this.parsePatternWithDefault(k,T)):(k.push(yt),Ae=!0,ht=Zt)}else Z=this.match("["),ut=this.parseObjectPropertyKey(),this.expect(":"),ht=this.parsePatternWithDefault(k,T);return this.finalize(I,new ee.Property("init",ut,Z,ht,!1,Ae))},ie.prototype.parseObjectPattern=function(k,T){var I=this.createNode(),Z=[];for(this.expect("{");!this.match("}");)Z.push(this.parsePropertyPattern(k,T)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(I,new ee.ObjectPattern(Z))},ie.prototype.parsePattern=function(k,T){var I;return this.match("[")?I=this.parseArrayPattern(k,T):this.match("{")?I=this.parseObjectPattern(k,T):(this.matchKeyword("let")&&("const"===T||"let"===T)&&this.tolerateUnexpectedToken(this.lookahead,he.Messages.LetInLexicalBinding),k.push(this.lookahead),I=this.parseVariableIdentifier(T)),I},ie.prototype.parsePatternWithDefault=function(k,T){var I=this.lookahead,Z=this.parsePattern(k,T);if(this.match("=")){this.nextToken();var Ae=this.context.allowYield;this.context.allowYield=!0;var Ue=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=Ae,Z=this.finalize(this.startNode(I),new ee.AssignmentPattern(Z,Ue))}return Z},ie.prototype.parseVariableIdentifier=function(k){var T=this.createNode(),I=this.nextToken();return 4===I.type&&"yield"===I.value?this.context.strict?this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(I):3!==I.type?this.context.strict&&4===I.type&&this.scanner.isStrictModeReservedWord(I.value)?this.tolerateUnexpectedToken(I,he.Messages.StrictReservedWord):(this.context.strict||"let"!==I.value||"var"!==k)&&this.throwUnexpectedToken(I):(this.context.isModule||this.context.await)&&3===I.type&&"await"===I.value&&this.tolerateUnexpectedToken(I),this.finalize(T,new ee.Identifier(I.value))},ie.prototype.parseVariableDeclaration=function(k){var T=this.createNode(),Z=this.parsePattern([],"var");this.context.strict&&Z.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(Z.name)&&this.tolerateError(he.Messages.StrictVarName);var Ae=null;return this.match("=")?(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseAssignmentExpression)):Z.type!==we.Syntax.Identifier&&!k.inFor&&this.expect("="),this.finalize(T,new ee.VariableDeclarator(Z,Ae))},ie.prototype.parseVariableDeclarationList=function(k){var T={inFor:k.inFor},I=[];for(I.push(this.parseVariableDeclaration(T));this.match(",");)this.nextToken(),I.push(this.parseVariableDeclaration(T));return I},ie.prototype.parseVariableStatement=function(){var k=this.createNode();this.expectKeyword("var");var T=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(k,new ee.VariableDeclaration(T,"var"))},ie.prototype.parseEmptyStatement=function(){var k=this.createNode();return this.expect(";"),this.finalize(k,new ee.EmptyStatement)},ie.prototype.parseExpressionStatement=function(){var k=this.createNode(),T=this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ExpressionStatement(T))},ie.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(he.Messages.StrictFunction),this.parseStatement()},ie.prototype.parseIfStatement=function(){var T,k=this.createNode(),I=null;this.expectKeyword("if"),this.expect("(");var Z=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement)):(this.expect(")"),T=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),I=this.parseIfClause())),this.finalize(k,new ee.IfStatement(Z,T,I))},ie.prototype.parseDoWhileStatement=function(){var k=this.createNode();this.expectKeyword("do");var T=this.context.inIteration;this.context.inIteration=!0;var I=this.parseStatement();this.context.inIteration=T,this.expectKeyword("while"),this.expect("(");var Z=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(k,new ee.DoWhileStatement(I,Z))},ie.prototype.parseWhileStatement=function(){var T,k=this.createNode();this.expectKeyword("while"),this.expect("(");var I=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement);else{this.expect(")");var Z=this.context.inIteration;this.context.inIteration=!0,T=this.parseStatement(),this.context.inIteration=Z}return this.finalize(k,new ee.WhileStatement(I,T))},ie.prototype.parseForStatement=function(){var Ae,Ue,Cn,k=null,T=null,I=null,Z=!0,ut=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){k=this.createNode(),this.nextToken();var ht=this.context.allowIn;this.context.allowIn=!1;var yt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=ht,1===yt.length&&this.matchKeyword("in")){var Zt=yt[0];Zt.init&&(Zt.id.type===we.Syntax.ArrayPattern||Zt.id.type===we.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(he.Messages.ForInOfLoopInitializer,"for-in"),k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null}else 1===yt.length&&null===yt[0].init&&this.matchContextualKeyword("of")?(k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.nextToken(),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1):(k=this.finalize(k,new ee.VariableDeclaration(yt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){k=this.createNode();var Wt=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(ht=this.context.allowIn,this.context.allowIn=!1,yt=this.parseBindingList(Wt,{inFor:!0}),this.context.allowIn=ht,1===yt.length&&null===yt[0].init&&this.matchKeyword("in")?(k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null):1===yt.length&&null===yt[0].init&&this.matchContextualKeyword("of")?(k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)),this.nextToken(),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1):(this.consumeSemicolon(),k=this.finalize(k,new ee.VariableDeclaration(yt,Wt)))):(k=this.finalize(k,new ee.Identifier(Wt)),this.nextToken(),Ae=k,Ue=this.parseExpression(),k=null)}else{var Qt=this.lookahead;if(ht=this.context.allowIn,this.context.allowIn=!1,k=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=ht,this.matchKeyword("in"))(!this.context.isAssignmentTarget||k.type===we.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(k),Ae=k,Ue=this.parseExpression(),k=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||k.type===we.Syntax.AssignmentExpression)&&this.tolerateError(he.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(k),Ae=k,Ue=this.parseAssignmentExpression(),k=null,Z=!1;else{if(this.match(",")){for(var An=[k];this.match(",");)this.nextToken(),An.push(this.isolateCoverGrammar(this.parseAssignmentExpression));k=this.finalize(this.startNode(Qt),new ee.SequenceExpression(An))}this.expect(";")}}if(typeof Ae>"u"&&(this.match(";")||(T=this.parseExpression()),this.expect(";"),this.match(")")||(I=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),Cn=this.finalize(this.createNode(),new ee.EmptyStatement);else{this.expect(")");var Sn=this.context.inIteration;this.context.inIteration=!0,Cn=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=Sn}return this.finalize(ut,typeof Ae>"u"?new ee.ForStatement(k,T,I,Cn):Z?new ee.ForInStatement(Ae,Ue,Cn):new ee.ForOfStatement(Ae,Ue,Cn))},ie.prototype.parseContinueStatement=function(){var k=this.createNode();this.expectKeyword("continue");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var I=this.parseVariableIdentifier();T=I,Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+I.name)||this.throwError(he.Messages.UnknownLabel,I.name)}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&this.throwError(he.Messages.IllegalContinue),this.finalize(k,new ee.ContinueStatement(T))},ie.prototype.parseBreakStatement=function(){var k=this.createNode();this.expectKeyword("break");var T=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var I=this.parseVariableIdentifier();Object.prototype.hasOwnProperty.call(this.context.labelSet,"$"+I.name)||this.throwError(he.Messages.UnknownLabel,I.name),T=I}return this.consumeSemicolon(),null===T&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(he.Messages.IllegalBreak),this.finalize(k,new ee.BreakStatement(T))},ie.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(he.Messages.IllegalReturn);var k=this.createNode();this.expectKeyword("return");var I=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ReturnStatement(I))},ie.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(he.Messages.StrictModeWith);var T,k=this.createNode();this.expectKeyword("with"),this.expect("(");var I=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),T=this.finalize(this.createNode(),new ee.EmptyStatement)):(this.expect(")"),T=this.parseStatement()),this.finalize(k,new ee.WithStatement(I,T))},ie.prototype.parseSwitchCase=function(){var T,k=this.createNode();this.matchKeyword("default")?(this.nextToken(),T=null):(this.expectKeyword("case"),T=this.parseExpression()),this.expect(":");for(var I=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)I.push(this.parseStatementListItem());return this.finalize(k,new ee.SwitchCase(T,I))},ie.prototype.parseSwitchStatement=function(){var k=this.createNode();this.expectKeyword("switch"),this.expect("(");var T=this.parseExpression();this.expect(")");var I=this.context.inSwitch;this.context.inSwitch=!0;var Z=[],Ae=!1;for(this.expect("{");!this.match("}");){var Ue=this.parseSwitchCase();null===Ue.test&&(Ae&&this.throwError(he.Messages.MultipleDefaultsInSwitch),Ae=!0),Z.push(Ue)}return this.expect("}"),this.context.inSwitch=I,this.finalize(k,new ee.SwitchStatement(T,Z))},ie.prototype.parseLabelledStatement=function(){var I,k=this.createNode(),T=this.parseExpression();if(T.type===we.Syntax.Identifier&&this.match(":")){this.nextToken();var Z=T,Ae="$"+Z.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,Ae)&&this.throwError(he.Messages.Redeclaration,"Label",Z.name),this.context.labelSet[Ae]=!0;var Ue=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),Ue=this.parseClassDeclaration();else if(this.matchKeyword("function")){var ut=this.lookahead,ht=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(ut,he.Messages.StrictFunction):ht.generator&&this.tolerateUnexpectedToken(ut,he.Messages.GeneratorInLegacyContext),Ue=ht}else Ue=this.parseStatement();delete this.context.labelSet[Ae],I=new ee.LabeledStatement(Z,Ue)}else this.consumeSemicolon(),I=new ee.ExpressionStatement(T);return this.finalize(k,I)},ie.prototype.parseThrowStatement=function(){var k=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(he.Messages.NewlineAfterThrow);var T=this.parseExpression();return this.consumeSemicolon(),this.finalize(k,new ee.ThrowStatement(T))},ie.prototype.parseCatchClause=function(){var k=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var T=[],I=this.parsePattern(T),Z={},Ae=0;Ae0&&this.tolerateError(he.Messages.BadGetterArity);var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,false))},ie.prototype.parseSetterMethod=function(){var k=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters();1!==Z.params.length?this.tolerateError(he.Messages.BadSetterArity):Z.params[0]instanceof ee.RestElement&&this.tolerateError(he.Messages.BadSetterRestParameter);var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,false))},ie.prototype.parseGeneratorMethod=function(){var k=this.createNode(),I=this.context.allowYield;this.context.allowYield=!0;var Z=this.parseFormalParameters();this.context.allowYield=!1;var Ae=this.parsePropertyMethod(Z);return this.context.allowYield=I,this.finalize(k,new ee.FunctionExpression(null,Z.params,Ae,!0))},ie.prototype.isStartOfExpression=function(){var k=!0,T=this.lookahead.value;switch(this.lookahead.type){case 7:k="["===T||"("===T||"{"===T||"+"===T||"-"===T||"!"===T||"~"===T||"++"===T||"--"===T||"/"===T||"/="===T;break;case 4:k="class"===T||"delete"===T||"function"===T||"let"===T||"new"===T||"super"===T||"this"===T||"typeof"===T||"void"===T||"yield"===T}return k},ie.prototype.parseYieldExpression=function(){var k=this.createNode();this.expectKeyword("yield");var T=null,I=!1;if(!this.hasLineTerminator){var Z=this.context.allowYield;this.context.allowYield=!1,(I=this.match("*"))?(this.nextToken(),T=this.parseAssignmentExpression()):this.isStartOfExpression()&&(T=this.parseAssignmentExpression()),this.context.allowYield=Z}return this.finalize(k,new ee.YieldExpression(T,I))},ie.prototype.parseClassElement=function(k){var T=this.lookahead,I=this.createNode(),Z="",Ae=null,Ue=null,ut=!1,ht=!1,yt=!1,Zt=!1;if(this.match("*"))this.nextToken();else if(ut=this.match("["),"static"===(Ae=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(T=this.lookahead,yt=!0,ut=this.match("["),this.match("*")?this.nextToken():Ae=this.parseObjectPropertyKey()),3===T.type&&!this.hasLineTerminator&&"async"===T.value){var Qt=this.lookahead.value;":"!==Qt&&"("!==Qt&&"*"!==Qt&&(Zt=!0,T=this.lookahead,Ae=this.parseObjectPropertyKey(),3===T.type&&"constructor"===T.value&&this.tolerateUnexpectedToken(T,he.Messages.ConstructorIsAsync))}var An=this.qualifiedPropertyName(this.lookahead);return 3===T.type?"get"===T.value&&An?(Z="get",ut=this.match("["),Ae=this.parseObjectPropertyKey(),this.context.allowYield=!1,Ue=this.parseGetterMethod()):"set"===T.value&&An&&(Z="set",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseSetterMethod()):7===T.type&&"*"===T.value&&An&&(Z="init",ut=this.match("["),Ae=this.parseObjectPropertyKey(),Ue=this.parseGeneratorMethod(),ht=!0),!Z&&Ae&&this.match("(")&&(Z="init",Ue=Zt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),ht=!0),Z||this.throwUnexpectedToken(this.lookahead),"init"===Z&&(Z="method"),ut||(yt&&this.isPropertyKey(Ae,"prototype")&&this.throwUnexpectedToken(T,he.Messages.StaticPrototype),!yt&&this.isPropertyKey(Ae,"constructor")&&(("method"!==Z||!ht||Ue&&Ue.generator)&&this.throwUnexpectedToken(T,he.Messages.ConstructorSpecialMethod),k.value?this.throwUnexpectedToken(T,he.Messages.DuplicateConstructor):k.value=!0,Z="constructor")),this.finalize(I,new ee.MethodDefinition(Ae,ut,Ue,Z,yt))},ie.prototype.parseClassElementList=function(){var k=[],T={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():k.push(this.parseClassElement(T));return this.expect("}"),k},ie.prototype.parseClassBody=function(){var k=this.createNode(),T=this.parseClassElementList();return this.finalize(k,new ee.ClassBody(T))},ie.prototype.parseClassDeclaration=function(k){var T=this.createNode(),I=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var Z=k&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),Ae=null;this.matchKeyword("extends")&&(this.nextToken(),Ae=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ue=this.parseClassBody();return this.context.strict=I,this.finalize(T,new ee.ClassDeclaration(Z,Ae,Ue))},ie.prototype.parseClassExpression=function(){var k=this.createNode(),T=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var I=3===this.lookahead.type?this.parseVariableIdentifier():null,Z=null;this.matchKeyword("extends")&&(this.nextToken(),Z=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var Ae=this.parseClassBody();return this.context.strict=T,this.finalize(k,new ee.ClassExpression(I,Z,Ae))},ie.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var k=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(k,new ee.Module(T))},ie.prototype.parseScript=function(){for(var k=this.createNode(),T=this.parseDirectivePrologues();2!==this.lookahead.type;)T.push(this.parseStatementListItem());return this.finalize(k,new ee.Script(T))},ie.prototype.parseModuleSpecifier=function(){var k=this.createNode();8!==this.lookahead.type&&this.throwError(he.Messages.InvalidModuleSpecifier);var T=this.nextToken(),I=this.getTokenRaw(T);return this.finalize(k,new ee.Literal(T.value,I))},ie.prototype.parseImportSpecifier=function(){var T,I,k=this.createNode();return 3===this.lookahead.type?(I=T=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),I=this.parseVariableIdentifier())):(I=T=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),I=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(k,new ee.ImportSpecifier(I,T))},ie.prototype.parseNamedImports=function(){this.expect("{");for(var k=[];!this.match("}");)k.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),k},ie.prototype.parseImportDefaultSpecifier=function(){var k=this.createNode(),T=this.parseIdentifierName();return this.finalize(k,new ee.ImportDefaultSpecifier(T))},ie.prototype.parseImportNamespaceSpecifier=function(){var k=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(he.Messages.NoAsAfterImportNamespace),this.nextToken();var T=this.parseIdentifierName();return this.finalize(k,new ee.ImportNamespaceSpecifier(T))},ie.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalImportDeclaration);var k=this.createNode();this.expectKeyword("import");var T,I=[];return 8===this.lookahead.type||(this.match("{")?I=I.concat(this.parseNamedImports()):this.match("*")?I.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(I.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?I.push(this.parseImportNamespaceSpecifier()):this.match("{")?I=I.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken()),T=this.parseModuleSpecifier(),this.consumeSemicolon(),this.finalize(k,new ee.ImportDeclaration(I,T))},ie.prototype.parseExportSpecifier=function(){var k=this.createNode(),T=this.parseIdentifierName(),I=T;return this.matchContextualKeyword("as")&&(this.nextToken(),I=this.parseIdentifierName()),this.finalize(k,new ee.ExportSpecifier(T,I))},ie.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(he.Messages.IllegalExportDeclaration);var T,k=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var I=this.parseFunctionDeclaration(!0);T=this.finalize(k,new ee.ExportDefaultDeclaration(I))}else this.matchKeyword("class")?(I=this.parseClassDeclaration(!0),T=this.finalize(k,new ee.ExportDefaultDeclaration(I))):this.matchContextualKeyword("async")?(I=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),T=this.finalize(k,new ee.ExportDefaultDeclaration(I))):(this.matchContextualKeyword("from")&&this.throwError(he.Messages.UnexpectedToken,this.lookahead.value),I=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),T=this.finalize(k,new ee.ExportDefaultDeclaration(I)));else if(this.match("*")){this.nextToken(),this.matchContextualKeyword("from")||this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value),this.nextToken();var Ae=this.parseModuleSpecifier();this.consumeSemicolon(),T=this.finalize(k,new ee.ExportAllDeclaration(Ae))}else if(4===this.lookahead.type){switch(I=void 0,this.lookahead.value){case"let":case"const":I=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":I=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}T=this.finalize(k,new ee.ExportNamedDeclaration(I,[],null))}else if(this.matchAsyncFunction())I=this.parseFunctionDeclaration(),T=this.finalize(k,new ee.ExportNamedDeclaration(I,[],null));else{var Ue=[],ut=null,ht=!1;for(this.expect("{");!this.match("}");)ht=ht||this.matchKeyword("default"),Ue.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),ut=this.parseModuleSpecifier(),this.consumeSemicolon()):ht?this.throwError(this.lookahead.value?he.Messages.UnexpectedToken:he.Messages.MissingFromClause,this.lookahead.value):this.consumeSemicolon(),T=this.finalize(k,new ee.ExportNamedDeclaration(null,Ue,ut))}return T},ie}();ue.Parser=re},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.assert=function be(de,ye){if(!de)throw new Error("ASSERT: "+ye)}},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var be=function(){function de(){this.errors=[],this.tolerant=!1}return de.prototype.recordError=function(ye){this.errors.push(ye)},de.prototype.tolerate=function(ye){if(!this.tolerant)throw ye;this.recordError(ye)},de.prototype.constructError=function(ye,he){var ee=new Error(ye);try{throw ee}catch(Se){Object.create&&Object.defineProperty&&(ee=Object.create(Se),Object.defineProperty(ee,"column",{value:he}))}return ee},de.prototype.createError=function(ye,he,ee,Se){var se=this.constructError("Line "+he+": "+Se,ee);return se.index=ye,se.lineNumber=he,se.description=Se,se},de.prototype.throwError=function(ye,he,ee,Se){throw this.createError(ye,he,ee,Se)},de.prototype.tolerateError=function(ye,he,ee,Se){var we=this.createError(ye,he,ee,Se);if(!this.tolerant)throw we;this.recordError(we)},de}();ue.ErrorHandler=be},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(9),ye=be(4),he=be(11);function ee(se){return"0123456789abcdef".indexOf(se.toLowerCase())}function Se(se){return"01234567".indexOf(se)}var we=function(){function se(K,re){this.source=K,this.errorHandler=re,this.trackComment=!1,this.isModule=!1,this.length=K.length,this.index=0,this.lineNumber=K.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return se.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},se.prototype.restoreState=function(K){this.index=K.index,this.lineNumber=K.lineNumber,this.lineStart=K.lineStart},se.prototype.eof=function(){return this.index>=this.length},se.prototype.throwUnexpectedToken=function(K){return void 0===K&&(K=he.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,K)},se.prototype.tolerateUnexpectedToken=function(K){void 0===K&&(K=he.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,K)},se.prototype.skipSingleLineComment=function(K){var ie,k,re=[];for(this.trackComment&&(re=[],ie=this.index-K,k={start:{line:this.lineNumber,column:this.index-this.lineStart-K},end:{}});!this.eof();){var T=this.source.charCodeAt(this.index);if(++this.index,ye.Character.isLineTerminator(T))return this.trackComment&&(k.end={line:this.lineNumber,column:this.index-this.lineStart-1},re.push({multiLine:!1,slice:[ie+K,this.index-1],range:[ie,this.index-1],loc:k})),13===T&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,re}return this.trackComment&&(k.end={line:this.lineNumber,column:this.index-this.lineStart},re.push({multiLine:!1,slice:[ie+K,this.index],range:[ie,this.index],loc:k})),re},se.prototype.skipMultiLineComment=function(){var re,ie,K=[];for(this.trackComment&&(K=[],re=this.index-2,ie={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var k=this.source.charCodeAt(this.index);if(ye.Character.isLineTerminator(k))13===k&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===k){if(47===this.source.charCodeAt(this.index+1))return this.index+=2,this.trackComment&&(ie.end={line:this.lineNumber,column:this.index-this.lineStart},K.push({multiLine:!0,slice:[re+2,this.index-2],range:[re,this.index],loc:ie})),K;++this.index}else++this.index}return this.trackComment&&(ie.end={line:this.lineNumber,column:this.index-this.lineStart},K.push({multiLine:!0,slice:[re+2,this.index],range:[re,this.index],loc:ie})),this.tolerateUnexpectedToken(),K},se.prototype.scanComments=function(){var K;this.trackComment&&(K=[]);for(var re=0===this.index;!this.eof();){var ie=this.source.charCodeAt(this.index);if(ye.Character.isWhiteSpace(ie))++this.index;else if(ye.Character.isLineTerminator(ie))++this.index,13===ie&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,re=!0;else if(47===ie)if(47===(ie=this.source.charCodeAt(this.index+1))){this.index+=2;var k=this.skipSingleLineComment(2);this.trackComment&&(K=K.concat(k)),re=!0}else{if(42!==ie)break;this.index+=2,k=this.skipMultiLineComment(),this.trackComment&&(K=K.concat(k))}else if(re&&45===ie){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,k=this.skipSingleLineComment(3),this.trackComment&&(K=K.concat(k))}else{if(60!==ie||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,k=this.skipSingleLineComment(4),this.trackComment&&(K=K.concat(k))}}return K},se.prototype.isFutureReservedWord=function(K){switch(K){case"enum":case"export":case"import":case"super":return!0;default:return!1}},se.prototype.isStrictModeReservedWord=function(K){switch(K){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},se.prototype.isRestrictedWord=function(K){return"eval"===K||"arguments"===K},se.prototype.isKeyword=function(K){switch(K.length){case 2:return"if"===K||"in"===K||"do"===K;case 3:return"var"===K||"for"===K||"new"===K||"try"===K||"let"===K;case 4:return"this"===K||"else"===K||"case"===K||"void"===K||"with"===K||"enum"===K;case 5:return"while"===K||"break"===K||"catch"===K||"throw"===K||"const"===K||"yield"===K||"class"===K||"super"===K;case 6:return"return"===K||"typeof"===K||"delete"===K||"switch"===K||"export"===K||"import"===K;case 7:return"default"===K||"finally"===K||"extends"===K;case 8:return"function"===K||"continue"===K||"debugger"===K;case 10:return"instanceof"===K;default:return!1}},se.prototype.codePointAt=function(K){var re=this.source.charCodeAt(K);if(re>=55296&&re<=56319){var ie=this.source.charCodeAt(K+1);ie>=56320&&ie<=57343&&(re=1024*(re-55296)+ie-56320+65536)}return re},se.prototype.scanHexEscape=function(K){for(var re="u"===K?4:2,ie=0,k=0;k1114111||"}"!==K)&&this.throwUnexpectedToken(),ye.Character.fromCodePoint(re)},se.prototype.getIdentifier=function(){for(var K=this.index++;!this.eof();){var re=this.source.charCodeAt(this.index);if(92===re)return this.index=K,this.getComplexIdentifier();if(re>=55296&&re<57343)return this.index=K,this.getComplexIdentifier();if(!ye.Character.isIdentifierPart(re))break;++this.index}return this.source.slice(K,this.index)},se.prototype.getComplexIdentifier=function(){var ie,K=this.codePointAt(this.index),re=ye.Character.fromCodePoint(K);for(this.index+=re.length,92===K&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ie=this.scanUnicodeCodePointEscape()):(null===(ie=this.scanHexEscape("u"))||"\\"===ie||!ye.Character.isIdentifierStart(ie.charCodeAt(0)))&&this.throwUnexpectedToken(),re=ie);!this.eof()&&(K=this.codePointAt(this.index),ye.Character.isIdentifierPart(K));)re+=ie=ye.Character.fromCodePoint(K),this.index+=ie.length,92===K&&(re=re.substr(0,re.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,ie=this.scanUnicodeCodePointEscape()):(null===(ie=this.scanHexEscape("u"))||"\\"===ie||!ye.Character.isIdentifierPart(ie.charCodeAt(0)))&&this.throwUnexpectedToken(),re+=ie);return re},se.prototype.octalToDecimal=function(K){var re="0"!==K,ie=Se(K);return!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(re=!0,ie=8*ie+Se(this.source[this.index++]),"0123".indexOf(K)>=0&&!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(ie=8*ie+Se(this.source[this.index++]))),{code:ie,octal:re}},se.prototype.scanIdentifier=function(){var K,re=this.index,ie=92===this.source.charCodeAt(re)?this.getComplexIdentifier():this.getIdentifier();if(3!=(K=1===ie.length?3:this.isKeyword(ie)?4:"null"===ie?5:"true"===ie||"false"===ie?1:3)&&re+ie.length!==this.index){var k=this.index;this.index=re,this.tolerateUnexpectedToken(he.Messages.InvalidEscapedReservedWord),this.index=k}return{type:K,value:ie,lineNumber:this.lineNumber,lineStart:this.lineStart,start:re,end:this.index}},se.prototype.scanPunctuator=function(){var K=this.index,re=this.source[this.index];switch(re){case"(":case"{":"{"===re&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,re="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(re=this.source.substr(this.index,4))?this.index+=4:"==="===(re=re.substr(0,3))||"!=="===re||">>>"===re||"<<="===re||">>="===re||"**="===re?this.index+=3:"&&"===(re=re.substr(0,2))||"||"===re||"=="===re||"!="===re||"+="===re||"-="===re||"*="===re||"/="===re||"++"===re||"--"===re||"<<"===re||">>"===re||"&="===re||"|="===re||"^="===re||"%="===re||"<="===re||">="===re||"=>"===re||"**"===re?this.index+=2:"<>=!+-*%&|^/".indexOf(re=this.source[this.index])>=0&&++this.index}return this.index===K&&this.throwUnexpectedToken(),{type:7,value:re,lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanHexLiteral=function(K){for(var re="";!this.eof()&&ye.Character.isHexDigit(this.source.charCodeAt(this.index));)re+=this.source[this.index++];return 0===re.length&&this.throwUnexpectedToken(),ye.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+re,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanBinaryLiteral=function(K){for(var ie,re="";!this.eof()&&("0"===(ie=this.source[this.index])||"1"===ie);)re+=this.source[this.index++];return 0===re.length&&this.throwUnexpectedToken(),this.eof()||(ie=this.source.charCodeAt(this.index),(ye.Character.isIdentifierStart(ie)||ye.Character.isDecimalDigit(ie))&&this.throwUnexpectedToken()),{type:6,value:parseInt(re,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:K,end:this.index}},se.prototype.scanOctalLiteral=function(K,re){var ie="",k=!1;for(ye.Character.isOctalDigit(K.charCodeAt(0))?(k=!0,ie="0"+this.source[this.index++]):++this.index;!this.eof()&&ye.Character.isOctalDigit(this.source.charCodeAt(this.index));)ie+=this.source[this.index++];return!k&&0===ie.length&&this.throwUnexpectedToken(),(ye.Character.isIdentifierStart(this.source.charCodeAt(this.index))||ye.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(ie,8),octal:k,lineNumber:this.lineNumber,lineStart:this.lineStart,start:re,end:this.index}},se.prototype.isImplicitOctalLiteral=function(){for(var K=this.index+1;K=0&&(k=k.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(I,Z,Ae){var Ue=parseInt(Z||Ae,16);return Ue>1114111&&T.throwUnexpectedToken(he.Messages.InvalidRegExp),Ue<=65535?String.fromCharCode(Ue):"\uffff"}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(k)}catch{this.throwUnexpectedToken(he.Messages.InvalidRegExp)}try{return new RegExp(K,re)}catch{return null}},se.prototype.scanRegExpBody=function(){var K=this.source[this.index];de.assert("/"===K,"Regular expression literal must start with a slash");for(var re=this.source[this.index++],ie=!1,k=!1;!this.eof();)if(re+=K=this.source[this.index++],"\\"===K)K=this.source[this.index++],ye.Character.isLineTerminator(K.charCodeAt(0))&&this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),re+=K;else if(ye.Character.isLineTerminator(K.charCodeAt(0)))this.throwUnexpectedToken(he.Messages.UnterminatedRegExp);else if(ie)"]"===K&&(ie=!1);else{if("/"===K){k=!0;break}"["===K&&(ie=!0)}return k||this.throwUnexpectedToken(he.Messages.UnterminatedRegExp),re.substr(1,re.length-2)},se.prototype.scanRegExpFlags=function(){for(var re="";!this.eof();){var ie=this.source[this.index];if(!ye.Character.isIdentifierPart(ie.charCodeAt(0)))break;if(++this.index,"\\"!==ie||this.eof())re+=ie;else if("u"===(ie=this.source[this.index])){++this.index;var k=this.index,T=this.scanHexEscape("u");if(null!==T)for(re+=T;k=55296&&K<57343&&ye.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},se}();ue.Scanner=we},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.TokenName={},ue.TokenName[1]="Boolean",ue.TokenName[2]="",ue.TokenName[3]="Identifier",ue.TokenName[4]="Keyword",ue.TokenName[5]="Null",ue.TokenName[6]="Numeric",ue.TokenName[7]="Punctuator",ue.TokenName[8]="String",ue.TokenName[9]="RegularExpression",ue.TokenName[10]="Template"},function(Xe,ue){"use strict";Object.defineProperty(ue,"__esModule",{value:!0}),ue.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(Xe,ue,be){"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var de=be(10),ye=be(12),he=be(13),ee=function(){function we(){this.values=[],this.curly=this.paren=-1}return we.prototype.beforeFunctionExpression=function(se){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(se)>=0},we.prototype.isRegexStart=function(){var se=this.values[this.values.length-1],K=null!==se;switch(se){case"this":case"]":K=!1;break;case")":var re=this.values[this.paren-1];K="if"===re||"while"===re||"for"===re||"with"===re;break;case"}":if(K=!1,"function"===this.values[this.curly-3])K=!!(ie=this.values[this.curly-4])&&!this.beforeFunctionExpression(ie);else if("function"===this.values[this.curly-4]){var ie;K=!(ie=this.values[this.curly-5])||!this.beforeFunctionExpression(ie)}}return K},we.prototype.push=function(se){7===se.type||4===se.type?("{"===se.value?this.curly=this.values.length:"("===se.value&&(this.paren=this.values.length),this.values.push(se.value)):this.values.push(null)},we}(),Se=function(){function we(se,K){this.errorHandler=new de.ErrorHandler,this.errorHandler.tolerant=!!K&&"boolean"==typeof K.tolerant&&K.tolerant,this.scanner=new ye.Scanner(se,this.errorHandler),this.scanner.trackComment=!!K&&"boolean"==typeof K.comment&&K.comment,this.trackRange=!!K&&"boolean"==typeof K.range&&K.range,this.trackLoc=!!K&&"boolean"==typeof K.loc&&K.loc,this.buffer=[],this.reader=new ee}return we.prototype.errors=function(){return this.errorHandler.errors},we.prototype.getNextToken=function(){if(0===this.buffer.length){var se=this.scanner.scanComments();if(this.scanner.trackComment)for(var K=0;K=ie.status}function Se(re){try{re.dispatchEvent(new MouseEvent("click"))}catch{var ie=document.createEvent("MouseEvents");ie.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),re.dispatchEvent(ie)}}var we="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,se=we.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),K=we.saveAs||("object"!=typeof window||window!==we?function(){}:"download"in HTMLAnchorElement.prototype&&!se?function(re,ie,k){var T=we.URL||we.webkitURL,I=document.createElement("a");I.download=ie=ie||re.name||"download",I.rel="noopener","string"==typeof re?(I.href=re,I.origin===location.origin?Se(I):ee(I.href)?he(re,ie,k):Se(I,I.target="_blank")):(I.href=T.createObjectURL(re),setTimeout(function(){T.revokeObjectURL(I.href)},4e4),setTimeout(function(){Se(I)},0))}:"msSaveOrOpenBlob"in navigator?function(re,ie,k){if(ie=ie||re.name||"download","string"!=typeof re)navigator.msSaveOrOpenBlob(function ye(re,ie){return typeof ie>"u"?ie={autoBom:!1}:"object"!=typeof ie&&(console.warn("Deprecated: Expected third argument to be a object"),ie={autoBom:!ie}),ie.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(re.type)?new Blob(["\ufeff",re],{type:re.type}):re}(re,k),ie);else if(ee(re))he(re,ie,k);else{var T=document.createElement("a");T.href=re,T.target="_blank",setTimeout(function(){Se(T)})}}:function(re,ie,k,T){if((T=T||open("","_blank"))&&(T.document.title=T.document.body.innerText="downloading..."),"string"==typeof re)return he(re,ie,k);var I="application/octet-stream"===re.type,Z=/constructor/i.test(we.HTMLElement)||we.safari,Ae=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ae||I&&Z||se)&&typeof FileReader<"u"){var Ue=new FileReader;Ue.onloadend=function(){var yt=Ue.result;yt=Ae?yt:yt.replace(/^data:[^;]*;/,"data:attachment/file;"),T?T.location.href=yt:location=yt,T=null},Ue.readAsDataURL(re)}else{var ut=we.URL||we.webkitURL,ht=ut.createObjectURL(re);T?T.location=ht:location.href=ht,T=null,setTimeout(function(){ut.revokeObjectURL(ht)},4e4)}});we.saveAs=K.saveAs=K,Et.exports=K})?ue.apply(Xe,[]):ue)&&(Et.exports=de)},8461:(Et,Xe)=>{Xe.read=function(ue,be,de,ye,he){var ee,Se,we=8*he-ye-1,se=(1<>1,re=-7,ie=de?he-1:0,k=de?-1:1,T=ue[be+ie];for(ie+=k,ee=T&(1<<-re)-1,T>>=-re,re+=we;re>0;ee=256*ee+ue[be+ie],ie+=k,re-=8);for(Se=ee&(1<<-re)-1,ee>>=-re,re+=ye;re>0;Se=256*Se+ue[be+ie],ie+=k,re-=8);if(0===ee)ee=1-K;else{if(ee===se)return Se?NaN:1/0*(T?-1:1);Se+=Math.pow(2,ye),ee-=K}return(T?-1:1)*Se*Math.pow(2,ee-ye)},Xe.write=function(ue,be,de,ye,he,ee){var Se,we,se,K=8*ee-he-1,re=(1<>1,k=23===he?Math.pow(2,-24)-Math.pow(2,-77):0,T=ye?0:ee-1,I=ye?1:-1,Z=be<0||0===be&&1/be<0?1:0;for(be=Math.abs(be),isNaN(be)||be===1/0?(we=isNaN(be)?1:0,Se=re):(Se=Math.floor(Math.log(be)/Math.LN2),be*(se=Math.pow(2,-Se))<1&&(Se--,se*=2),(be+=Se+ie>=1?k/se:k*Math.pow(2,1-ie))*se>=2&&(Se++,se/=2),Se+ie>=re?(we=0,Se=re):Se+ie>=1?(we=(be*se-1)*Math.pow(2,he),Se+=ie):(we=be*Math.pow(2,ie-1)*Math.pow(2,he),Se=0));he>=8;ue[de+T]=255&we,T+=I,we/=256,he-=8);for(Se=Se<0;ue[de+T]=255&Se,T+=I,Se/=256,K-=8);ue[de+T-I]|=128*Z}},1870:(Et,Xe,ue)=>{"use strict";var be=ue(5133);Et.exports=be},5133:(Et,Xe,ue)=>{"use strict";var be=ue(7840),de=ue(34);function ye(he){return function(){throw new Error("Function "+he+" is deprecated and cannot be used.")}}Et.exports.Type=ue(7647),Et.exports.Schema=ue(372),Et.exports.FAILSAFE_SCHEMA=ue(8746),Et.exports.JSON_SCHEMA=ue(7147),Et.exports.CORE_SCHEMA=ue(3192),Et.exports.DEFAULT_SAFE_SCHEMA=ue(3031),Et.exports.DEFAULT_FULL_SCHEMA=ue(7094),Et.exports.load=be.load,Et.exports.loadAll=be.loadAll,Et.exports.safeLoad=be.safeLoad,Et.exports.safeLoadAll=be.safeLoadAll,Et.exports.dump=de.dump,Et.exports.safeDump=de.safeDump,Et.exports.YAMLException=ue(314),Et.exports.MINIMAL_SCHEMA=ue(8746),Et.exports.SAFE_SCHEMA=ue(3031),Et.exports.DEFAULT_SCHEMA=ue(7094),Et.exports.scan=ye("scan"),Et.exports.parse=ye("parse"),Et.exports.compose=ye("compose"),Et.exports.addConstructor=ye("addConstructor")},997:Et=>{"use strict";function Xe(ee){return typeof ee>"u"||null===ee}Et.exports.isNothing=Xe,Et.exports.isObject=function ue(ee){return"object"==typeof ee&&null!==ee},Et.exports.toArray=function be(ee){return Array.isArray(ee)?ee:Xe(ee)?[]:[ee]},Et.exports.repeat=function ye(ee,Se){var se,we="";for(se=0;se{"use strict";var be=ue(997),de=ue(314),ye=ue(7094),he=ue(3031),ee=Object.prototype.toString,Se=Object.prototype.hasOwnProperty,we=9,se=10,K=13,re=32,ie=33,k=34,T=35,I=37,Z=38,Ae=39,Ue=42,ut=44,ht=45,yt=58,Zt=61,Wt=62,Qt=63,An=64,Cn=91,Sn=93,mi=96,fn=123,qn=124,fi=125,$t={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},ta=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Zn(_e){var xt,Pt,tn;if(xt=_e.toString(16).toUpperCase(),_e<=255)Pt="x",tn=2;else if(_e<=65535)Pt="u",tn=4;else{if(!(_e<=4294967295))throw new de("code point within a string may not be greater than 0xFFFFFFFF");Pt="U",tn=8}return"\\"+Pt+be.repeat("0",tn-xt.length)+xt}function yl(_e){this.schema=_e.schema||ye,this.indent=Math.max(1,_e.indent||2),this.noArrayIndent=_e.noArrayIndent||!1,this.skipInvalid=_e.skipInvalid||!1,this.flowLevel=be.isNothing(_e.flowLevel)?-1:_e.flowLevel,this.styleMap=function tl(_e,xt){var Pt,tn,Kt,Lt,pn,Jt,Je;if(null===xt)return{};for(Pt={},Kt=0,Lt=(tn=Object.keys(xt)).length;Kt0?_e.charCodeAt(Lt-1):null,Br=Br&&na(pn,Jt)}else{for(Lt=0;Lt<_e.length;Lt++){if((pn=_e.charCodeAt(Lt))===se)Je=!0,St&&(Qe=Qe||Lt-kn-1>tn&&" "!==_e[kn+1],kn=Lt);else if(!Ss(pn))return il;Jt=Lt>0?_e.charCodeAt(Lt-1):null,Br=Br&&na(pn,Jt)}Qe=Qe||St&&Lt-kn-1>tn&&" "!==_e[kn+1]}return Je||Qe?Pt>9&&Ls(_e)?il:Qe?Cu:Vl:Br&&!Kt(_e)?ds:ia}(xt,tn||_e.flowLevel>-1&&Pt>=_e.flowLevel,_e.indent,Lt,function Jt(Je){return function Kr(_e,xt){var Pt,tn;for(Pt=0,tn=_e.implicitTypes.length;Pt"+Hl(xt,_e.indent)+Ne(cc(function Y(_e,xt){for(var Lt,pn,Pt=/(\n+)([^\n]*)/g,tn=(Qe=void 0,Qe=_e.indexOf("\n"),Pt.lastIndex=Qe=-1!==Qe?Qe:_e.length,ne(_e.slice(0,Qe),xt)),Kt="\n"===_e[0]||" "===_e[0];pn=Pt.exec(_e);){var Je=pn[2];Lt=" "===Je[0],tn+=pn[1]+(Kt||Lt||""===Je?"":"\n")+ne(Je,xt),Kt=Lt}var Qe;return tn}(xt,Lt),Kt));case il:return'"'+function Le(_e){for(var Pt,tn,Kt,xt="",Lt=0;Lt<_e.length;Lt++)(Pt=_e.charCodeAt(Lt))>=55296&&Pt<=56319&&(tn=_e.charCodeAt(Lt+1))>=56320&&tn<=57343?(xt+=Zn(1024*(Pt-55296)+tn-56320+65536),Lt++):xt+=!(Kt=$t[Pt])&&Ss(Pt)?_e[Lt]:Kt||Zn(Pt);return xt}(xt)+'"';default:throw new de("impossible error: invalid scalar style")}}()}function Hl(_e,xt){var Pt=Ls(_e)?String(xt):"",tn="\n"===_e[_e.length-1];return Pt+(!tn||"\n"!==_e[_e.length-2]&&"\n"!==_e?tn?"":"-":"+")+"\n"}function Ne(_e){return"\n"===_e[_e.length-1]?_e.slice(0,-1):_e}function ne(_e,xt){if(""===_e||" "===_e[0])return _e;for(var tn,Lt,Pt=/ [^ ]/g,Kt=0,pn=0,Jt=0,Je="";tn=Pt.exec(_e);)(Jt=tn.index)-Kt>xt&&(Je+="\n"+_e.slice(Kt,Lt=pn>Kt?pn:Jt),Kt=Lt+1),pn=Jt;return Je+="\n",(Je+=_e.length-Kt>xt&&pn>Kt?_e.slice(Kt,pn)+"\n"+_e.slice(pn+1):_e.slice(Kt)).slice(1)}function M(_e,xt,Pt){var tn,Kt,Lt,pn,Jt,Je;for(Lt=0,pn=(Kt=Pt?_e.explicitTypes:_e.implicitTypes).length;Lt tag resolver accepts not "'+Je+'" style');tn=Jt.represent[Je](xt,Je)}_e.dump=tn}return!0}return!1}function at(_e,xt,Pt,tn,Kt,Lt){_e.tag=null,_e.dump=Pt,M(_e,Pt,!1)||M(_e,Pt,!0);var pn=ee.call(_e.dump);tn&&(tn=_e.flowLevel<0||_e.flowLevel>xt);var Je,Qe,Jt="[object Object]"===pn||"[object Array]"===pn;if(Jt&&(Qe=-1!==(Je=_e.duplicates.indexOf(Pt))),(null!==_e.tag&&"?"!==_e.tag||Qe||2!==_e.indent&&xt>0)&&(Kt=!1),Qe&&_e.usedDuplicates[Je])_e.dump="*ref_"+Je;else{if(Jt&&Qe&&!_e.usedDuplicates[Je]&&(_e.usedDuplicates[Je]=!0),"[object Object]"===pn)tn&&0!==Object.keys(_e.dump).length?(function ar(_e,xt,Pt,tn){var Jt,Je,Qe,St,kn,Br,Kt="",Lt=_e.tag,pn=Object.keys(Pt);if(!0===_e.sortKeys)pn.sort();else if("function"==typeof _e.sortKeys)pn.sort(_e.sortKeys);else if(_e.sortKeys)throw new de("sortKeys must be a boolean or a function");for(Jt=0,Je=pn.length;Jt1024)&&(_e.dump&&se===_e.dump.charCodeAt(0)?Br+="?":Br+="? "),Br+=_e.dump,kn&&(Br+=uo(_e,xt)),at(_e,xt+1,St,!0,kn)&&(_e.dump&&se===_e.dump.charCodeAt(0)?Br+=":":Br+=": ",Kt+=Br+=_e.dump));_e.tag=Lt,_e.dump=Kt||"{}"}(_e,xt,_e.dump,Kt),Qe&&(_e.dump="&ref_"+Je+_e.dump)):(function nn(_e,xt,Pt){var pn,Jt,Je,Qe,St,tn="",Kt=_e.tag,Lt=Object.keys(Pt);for(pn=0,Jt=Lt.length;pn1024&&(St+="? "),St+=_e.dump+(_e.condenseFlow?'"':"")+":"+(_e.condenseFlow?"":" "),at(_e,xt,Qe,!1,!1)&&(tn+=St+=_e.dump));_e.tag=Kt,_e.dump="{"+tn+"}"}(_e,xt,_e.dump),Qe&&(_e.dump="&ref_"+Je+" "+_e.dump));else if("[object Array]"===pn){var St=_e.noArrayIndent&&xt>0?xt-1:xt;tn&&0!==_e.dump.length?(function qt(_e,xt,Pt,tn){var pn,Jt,Kt="",Lt=_e.tag;for(pn=0,Jt=Pt.length;pn "+_e.dump)}return!0}function Mt(_e,xt){var Kt,Lt,Pt=[],tn=[];for(Yt(_e,Pt,tn),Kt=0,Lt=tn.length;Kt{"use strict";function Xe(ue,be){Error.call(this),this.name="YAMLException",this.reason=ue,this.mark=be,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(Xe.prototype=Object.create(Error.prototype)).constructor=Xe,Xe.prototype.toString=function(be){var de=this.name+": ";return de+=this.reason||"(unknown reason)",!be&&this.mark&&(de+=" "+this.mark.toString()),de},Et.exports=Xe},7840:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(314),ye=ue(48),he=ue(3031),ee=ue(7094),Se=Object.prototype.hasOwnProperty,we=1,se=2,K=3,re=4,ie=1,k=2,T=3,I=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Z=/[\x85\u2028\u2029]/,Ae=/[,\[\]\{\}]/,Ue=/^(?:!|!!|![a-z\-]+!)$/i,ut=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ht(M){return Object.prototype.toString.call(M)}function yt(M){return 10===M||13===M}function Zt(M){return 9===M||32===M}function Wt(M){return 9===M||32===M||10===M||13===M}function Qt(M){return 44===M||91===M||93===M||123===M||125===M}function An(M){var at;return 48<=M&&M<=57?M-48:97<=(at=32|M)&&at<=102?at-97+10:-1}function Cn(M){return 120===M?2:117===M?4:85===M?8:0}function Sn(M){return 48<=M&&M<=57?M-48:-1}function mi(M){return 48===M?"\0":97===M?"\x07":98===M?"\b":116===M||9===M?"\t":110===M?"\n":118===M?"\v":102===M?"\f":114===M?"\r":101===M?"\x1b":32===M?" ":34===M?'"':47===M?"/":92===M?"\\":78===M?"\x85":95===M?"\xa0":76===M?"\u2028":80===M?"\u2029":""}function fn(M){return M<=65535?String.fromCharCode(M):String.fromCharCode(55296+(M-65536>>10),56320+(M-65536&1023))}for(var qn=new Array(256),fi=new Array(256),$t=0;$t<256;$t++)qn[$t]=mi($t)?1:0,fi[$t]=mi($t);function ta(M,at){this.input=M,this.filename=at.filename||null,this.schema=at.schema||ee,this.onWarning=at.onWarning||null,this.legacy=at.legacy||!1,this.json=at.json||!1,this.listener=at.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=M.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function tl(M,at){return new de(at,new ye(M.filename,M.input,M.position,M.line,M.position-M.lineStart))}function Zn(M,at){throw tl(M,at)}function yl(M,at){M.onWarning&&M.onWarning.call(null,tl(M,at))}var cc={YAML:function(at,Mt,Yt){var zt,vn,_e;null!==at.version&&Zn(at,"duplication of %YAML directive"),1!==Yt.length&&Zn(at,"YAML directive accepts exactly one argument"),null===(zt=/^([0-9]+)\.([0-9]+)$/.exec(Yt[0]))&&Zn(at,"ill-formed argument of the YAML directive"),vn=parseInt(zt[1],10),_e=parseInt(zt[2],10),1!==vn&&Zn(at,"unacceptable YAML version of the document"),at.version=Yt[0],at.checkLineBreaks=_e<2,1!==_e&&2!==_e&&yl(at,"unsupported YAML version of the document")},TAG:function(at,Mt,Yt){var zt,vn;2!==Yt.length&&Zn(at,"TAG directive accepts exactly two arguments"),vn=Yt[1],Ue.test(zt=Yt[0])||Zn(at,"ill-formed tag handle (first argument) of the TAG directive"),Se.call(at.tagMap,zt)&&Zn(at,'there is a previously declared suffix for "'+zt+'" tag handle'),ut.test(vn)||Zn(at,"ill-formed tag prefix (second argument) of the TAG directive"),at.tagMap[zt]=vn}};function uo(M,at,Mt,Yt){var zt,vn,_e,xt;if(at1&&(M.result+=be.repeat("\n",at-1))}function il(M,at){var Mt,Pt,Yt=M.tag,zt=M.anchor,vn=[],xt=!1;for(null!==M.anchor&&(M.anchorMap[M.anchor]=vn),Pt=M.input.charCodeAt(M.position);0!==Pt&&45===Pt&&Wt(M.input.charCodeAt(M.position+1));)if(xt=!0,M.position++,Wr(M,!0,-1)&&M.lineIndent<=at)vn.push(null),Pt=M.input.charCodeAt(M.position);else if(Mt=M.line,Y(M,at,K,!1,!0),vn.push(M.result),Wr(M,!0,-1),Pt=M.input.charCodeAt(M.position),(M.line===Mt||M.lineIndent>at)&&0!==Pt)Zn(M,"bad indentation of a sequence entry");else if(M.lineIndentat?Pt=1:M.lineIndent===at?Pt=0:M.lineIndentat?Pt=1:M.lineIndent===at?Pt=0:M.lineIndentat)&&(Y(M,at,re,!0,zt)&&(Je?pn=M.result:Jt=M.result),Je||(Gr(M,tn,Kt,Lt,pn,Jt,vn,_e),Lt=pn=Jt=null),Wr(M,!0,-1),St=M.input.charCodeAt(M.position)),M.lineIndent>at&&0!==St)Zn(M,"bad indentation of a mapping entry");else if(M.lineIndent=0))break;0===Kt?Zn(M,"bad explicit indentation width of a block scalar; it cannot be less than one"):_e?Zn(M,"repeat of an indentation width identifier"):(xt=at+Kt-1,_e=!0)}if(Zt(Lt)){do{Lt=M.input.charCodeAt(++M.position)}while(Zt(Lt));if(35===Lt)do{Lt=M.input.charCodeAt(++M.position)}while(!yt(Lt)&&0!==Lt)}for(;0!==Lt;){for(Ss(M),M.lineIndent=0,Lt=M.input.charCodeAt(M.position);(!_e||M.lineIndentxt&&(xt=M.lineIndent),yt(Lt))Pt++;else{if(M.lineIndent0){for(zt=_e,vn=0;zt>0;zt--)(_e=An(xt=M.input.charCodeAt(++M.position)))>=0?vn=(vn<<4)+_e:Zn(M,"expected hexadecimal character");M.result+=fn(vn),M.position++}else Zn(M,"unknown escape sequence");Mt=Yt=M.position}else yt(xt)?(uo(M,Mt,Yt,!0),nl(M,Wr(M,!1,at)),Mt=Yt=M.position):M.position===M.lineStart&&na(M)?Zn(M,"unexpected end of the document within a double quoted scalar"):(M.position++,Yt=M.position)}Zn(M,"unexpected end of the stream within a double quoted scalar")}(M,Je)?Kt=!0:function Ne(M){var at,Mt,Yt;if(42!==(Yt=M.input.charCodeAt(M.position)))return!1;for(Yt=M.input.charCodeAt(++M.position),at=M.position;0!==Yt&&!Wt(Yt)&&!Qt(Yt);)Yt=M.input.charCodeAt(++M.position);return M.position===at&&Zn(M,"name of an alias node must contain at least one character"),Mt=M.input.slice(at,M.position),Se.call(M.anchorMap,Mt)||Zn(M,'unidentified alias "'+Mt+'"'),M.result=M.anchorMap[Mt],Wr(M,!0,-1),!0}(M)?(Kt=!0,(null!==M.tag||null!==M.anchor)&&Zn(M,"alias node should not have any properties")):function Ls(M,at,Mt){var zt,vn,_e,xt,Pt,tn,Kt,Jt,Lt=M.kind,pn=M.result;if(Wt(Jt=M.input.charCodeAt(M.position))||Qt(Jt)||35===Jt||38===Jt||42===Jt||33===Jt||124===Jt||62===Jt||39===Jt||34===Jt||37===Jt||64===Jt||96===Jt||(63===Jt||45===Jt)&&(Wt(zt=M.input.charCodeAt(M.position+1))||Mt&&Qt(zt)))return!1;for(M.kind="scalar",M.result="",vn=_e=M.position,xt=!1;0!==Jt;){if(58===Jt){if(Wt(zt=M.input.charCodeAt(M.position+1))||Mt&&Qt(zt))break}else if(35===Jt){if(Wt(M.input.charCodeAt(M.position-1)))break}else{if(M.position===M.lineStart&&na(M)||Mt&&Qt(Jt))break;if(yt(Jt)){if(Pt=M.line,tn=M.lineStart,Kt=M.lineIndent,Wr(M,!1,-1),M.lineIndent>=at){xt=!0,Jt=M.input.charCodeAt(M.position);continue}M.position=_e,M.line=Pt,M.lineStart=tn,M.lineIndent=Kt;break}}xt&&(uo(M,vn,_e,!1),nl(M,M.line-Pt),vn=_e=M.position,xt=!1),Zt(Jt)||(_e=M.position+1),Jt=M.input.charCodeAt(++M.position)}return uo(M,vn,_e,!1),!!M.result||(M.kind=Lt,M.result=pn,!1)}(M,Je,we===Mt)&&(Kt=!0,null===M.tag&&(M.tag="?")),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):0===Pt&&(Kt=xt&&il(M,Qe))),null!==M.tag&&"!"!==M.tag)if("?"===M.tag){for(null!==M.result&&"scalar"!==M.kind&&Zn(M,'unacceptable node kind for ! tag; it should be "scalar", not "'+M.kind+'"'),Lt=0,pn=M.implicitTypes.length;Lt tag; it should be "'+Jt.kind+'", not "'+M.kind+'"'),Jt.resolve(M.result)?(M.result=Jt.construct(M.result),null!==M.anchor&&(M.anchorMap[M.anchor]=M.result)):Zn(M,"cannot resolve a node with !<"+M.tag+"> explicit tag")):Zn(M,"unknown tag !<"+M.tag+">");return null!==M.listener&&M.listener("close",M),null!==M.tag||null!==M.anchor||Kt}function ne(M){var Mt,Yt,zt,_e,at=M.position,vn=!1;for(M.version=null,M.checkLineBreaks=M.legacy,M.tagMap={},M.anchorMap={};0!==(_e=M.input.charCodeAt(M.position))&&(Wr(M,!0,-1),_e=M.input.charCodeAt(M.position),!(M.lineIndent>0||37!==_e));){for(vn=!0,_e=M.input.charCodeAt(++M.position),Mt=M.position;0!==_e&&!Wt(_e);)_e=M.input.charCodeAt(++M.position);for(zt=[],(Yt=M.input.slice(Mt,M.position)).length<1&&Zn(M,"directive name must not be less than one character in length");0!==_e;){for(;Zt(_e);)_e=M.input.charCodeAt(++M.position);if(35===_e){do{_e=M.input.charCodeAt(++M.position)}while(0!==_e&&!yt(_e));break}if(yt(_e))break;for(Mt=M.position;0!==_e&&!Wt(_e);)_e=M.input.charCodeAt(++M.position);zt.push(M.input.slice(Mt,M.position))}0!==_e&&Ss(M),Se.call(cc,Yt)?cc[Yt](M,Yt,zt):yl(M,'unknown document directive "'+Yt+'"')}Wr(M,!0,-1),0===M.lineIndent&&45===M.input.charCodeAt(M.position)&&45===M.input.charCodeAt(M.position+1)&&45===M.input.charCodeAt(M.position+2)?(M.position+=3,Wr(M,!0,-1)):vn&&Zn(M,"directives end mark is expected"),Y(M,M.lineIndent-1,re,!1,!0),Wr(M,!0,-1),M.checkLineBreaks&&Z.test(M.input.slice(at,M.position))&&yl(M,"non-ASCII line breaks are interpreted as content"),M.documents.push(M.result),M.position===M.lineStart&&na(M)?46===M.input.charCodeAt(M.position)&&(M.position+=3,Wr(M,!0,-1)):M.position"u"&&(Mt=at,at=null);var Yt=Le(M,Mt);if("function"!=typeof at)return Yt;for(var zt=0,vn=Yt.length;zt"u"&&(Mt=at,at=null),it(M,at,be.extend({schema:he},Mt))},Et.exports.safeLoad=function ar(M,at){return qt(M,be.extend({schema:he},at))}},48:(Et,Xe,ue)=>{"use strict";var be=ue(997);function de(ye,he,ee,Se,we){this.name=ye,this.buffer=he,this.position=ee,this.line=Se,this.column=we}de.prototype.getSnippet=function(he,ee){var Se,we,se,K,re;if(!this.buffer)return null;for(he=he||4,ee=ee||75,Se="",we=this.position;we>0&&-1==="\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(we-1));)if(this.position-(we-=1)>ee/2-1){Se=" ... ",we+=5;break}for(se="",K=this.position;Kee/2-1){se=" ... ",K-=5;break}return re=this.buffer.slice(we,K),be.repeat(" ",he)+Se+re+se+"\n"+be.repeat(" ",he+this.position-we+Se.length)+"^"},de.prototype.toString=function(he){var ee,Se="";return this.name&&(Se+='in "'+this.name+'" '),Se+="at line "+(this.line+1)+", column "+(this.column+1),he||(ee=this.getSnippet())&&(Se+=":\n"+ee),Se},Et.exports=de},372:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(314),ye=ue(7647);function he(we,se,K){var re=[];return we.include.forEach(function(ie){K=he(ie,se,K)}),we[se].forEach(function(ie){K.forEach(function(k,T){k.tag===ie.tag&&k.kind===ie.kind&&re.push(T)}),K.push(ie)}),K.filter(function(ie,k){return-1===re.indexOf(k)})}function Se(we){this.include=we.include||[],this.implicit=we.implicit||[],this.explicit=we.explicit||[],this.implicit.forEach(function(se){if(se.loadKind&&"scalar"!==se.loadKind)throw new de("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=he(this,"implicit",[]),this.compiledExplicit=he(this,"explicit",[]),this.compiledTypeMap=function ee(){var se,K,we={scalar:{},sequence:{},mapping:{},fallback:{}};function re(ie){we[ie.kind][ie.tag]=we.fallback[ie.tag]=ie}for(se=0,K=arguments.length;se{"use strict";var be=ue(372);Et.exports=new be({include:[ue(7147)]})},7094:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=be.DEFAULT=new be({include:[ue(3031)],explicit:[ue(8771),ue(632),ue(716)]})},3031:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({include:[ue(3192)],implicit:[ue(6934),ue(9996)],explicit:[ue(6486),ue(7166),ue(7711),ue(8738)]})},8746:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({explicit:[ue(3464),ue(2322),ue(3071)]})},7147:(Et,Xe,ue)=>{"use strict";var be=ue(372);Et.exports=new be({include:[ue(8746)],implicit:[ue(9568),ue(8911),ue(7877),ue(8615)]})},7647:(Et,Xe,ue)=>{"use strict";var be=ue(314),de=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],ye=["scalar","sequence","mapping"];Et.exports=function ee(Se,we){if(we=we||{},Object.keys(we).forEach(function(se){if(-1===de.indexOf(se))throw new be('Unknown option "'+se+'" is met in definition of "'+Se+'" YAML type.')}),this.tag=Se,this.kind=we.kind||null,this.resolve=we.resolve||function(){return!0},this.construct=we.construct||function(se){return se},this.instanceOf=we.instanceOf||null,this.predicate=we.predicate||null,this.represent=we.represent||null,this.defaultStyle=we.defaultStyle||null,this.styleAliases=function he(Se){var we={};return null!==Se&&Object.keys(Se).forEach(function(se){Se[se].forEach(function(K){we[String(K)]=se})}),we}(we.styleAliases||null),-1===ye.indexOf(this.kind))throw new be('Unknown kind "'+this.kind+'" is specified for "'+Se+'" YAML type.')}},6486:(Et,Xe,ue)=>{"use strict";var be;try{be=ue(3172).lW}catch{}var ye=ue(7647),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";Et.exports=new ye("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function ee(K){if(null===K)return!1;var re,ie,k=0,T=K.length,I=he;for(ie=0;ie64)){if(re<0)return!1;k+=6}return k%8==0},construct:function Se(K){var re,ie,k=K.replace(/[\r\n=]/g,""),T=k.length,I=he,Z=0,Ae=[];for(re=0;re>16&255),Ae.push(Z>>8&255),Ae.push(255&Z)),Z=Z<<6|I.indexOf(k.charAt(re));return 0==(ie=T%4*6)?(Ae.push(Z>>16&255),Ae.push(Z>>8&255),Ae.push(255&Z)):18===ie?(Ae.push(Z>>10&255),Ae.push(Z>>2&255)):12===ie&&Ae.push(Z>>4&255),be?be.from?be.from(Ae):new be(Ae):Ae},predicate:function se(K){return be&&be.isBuffer(K)},represent:function we(K){var k,T,re="",ie=0,I=K.length,Z=he;for(k=0;k>18&63],re+=Z[ie>>12&63],re+=Z[ie>>6&63],re+=Z[63&ie]),ie=(ie<<8)+K[k];return 0==(T=I%3)?(re+=Z[ie>>18&63],re+=Z[ie>>12&63],re+=Z[ie>>6&63],re+=Z[63&ie]):2===T?(re+=Z[ie>>10&63],re+=Z[ie>>4&63],re+=Z[ie<<2&63],re+=Z[64]):1===T&&(re+=Z[ie>>2&63],re+=Z[ie<<4&63],re+=Z[64],re+=Z[64]),re}})},8911:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function de(ee){if(null===ee)return!1;var Se=ee.length;return 4===Se&&("true"===ee||"True"===ee||"TRUE"===ee)||5===Se&&("false"===ee||"False"===ee||"FALSE"===ee)},construct:function ye(ee){return"true"===ee||"True"===ee||"TRUE"===ee},predicate:function he(ee){return"[object Boolean]"===Object.prototype.toString.call(ee)},represent:{lowercase:function(ee){return ee?"true":"false"},uppercase:function(ee){return ee?"TRUE":"FALSE"},camelcase:function(ee){return ee?"True":"False"}},defaultStyle:"lowercase"})},8615:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(7647),ye=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Se=/^[-+]?[0-9]+e/;Et.exports=new de("tag:yaml.org,2002:float",{kind:"scalar",resolve:function he(K){return!(null===K||!ye.test(K)||"_"===K[K.length-1])},construct:function ee(K){var re,ie,k,T;return ie="-"===(re=K.replace(/_/g,"").toLowerCase())[0]?-1:1,T=[],"+-".indexOf(re[0])>=0&&(re=re.slice(1)),".inf"===re?1===ie?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===re?NaN:re.indexOf(":")>=0?(re.split(":").forEach(function(I){T.unshift(parseFloat(I,10))}),re=0,k=1,T.forEach(function(I){re+=I*k,k*=60}),ie*re):ie*parseFloat(re,10)},predicate:function se(K){return"[object Number]"===Object.prototype.toString.call(K)&&(K%1!=0||be.isNegativeZero(K))},represent:function we(K,re){var ie;if(isNaN(K))switch(re){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===K)switch(re){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===K)switch(re){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(be.isNegativeZero(K))return"-0.0";return ie=K.toString(10),Se.test(ie)?ie.replace("e",".e"):ie},defaultStyle:"lowercase"})},7877:(Et,Xe,ue)=>{"use strict";var be=ue(997),de=ue(7647);function ye(K){return 48<=K&&K<=57||65<=K&&K<=70||97<=K&&K<=102}function he(K){return 48<=K&&K<=55}function ee(K){return 48<=K&&K<=57}Et.exports=new de("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Se(K){if(null===K)return!1;var T,re=K.length,ie=0,k=!1;if(!re)return!1;if(("-"===(T=K[ie])||"+"===T)&&(T=K[++ie]),"0"===T){if(ie+1===re)return!0;if("b"===(T=K[++ie])){for(ie++;ie=0?"0b"+K.toString(2):"-0b"+K.toString(2).slice(1)},octal:function(K){return K>=0?"0"+K.toString(8):"-0"+K.toString(8).slice(1)},decimal:function(K){return K.toString(10)},hexadecimal:function(K){return K>=0?"0x"+K.toString(16).toUpperCase():"-0x"+K.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},716:(Et,Xe,ue)=>{"use strict";var be;try{be=ue(7797)}catch{typeof window<"u"&&(be=window.esprima)}var ye=ue(7647);Et.exports=new ye("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function he(se){if(null===se)return!1;try{var re=be.parse("("+se+")",{range:!0});return!("Program"!==re.type||1!==re.body.length||"ExpressionStatement"!==re.body[0].type||"ArrowFunctionExpression"!==re.body[0].expression.type&&"FunctionExpression"!==re.body[0].expression.type)}catch{return!1}},construct:function ee(se){var k,K="("+se+")",re=be.parse(K,{range:!0}),ie=[];if("Program"!==re.type||1!==re.body.length||"ExpressionStatement"!==re.body[0].type||"ArrowFunctionExpression"!==re.body[0].expression.type&&"FunctionExpression"!==re.body[0].expression.type)throw new Error("Failed to resolve function");return re.body[0].expression.params.forEach(function(T){ie.push(T.name)}),k=re.body[0].expression.body.range,new Function(ie,"BlockStatement"===re.body[0].expression.body.type?K.slice(k[0]+1,k[1]-1):"return "+K.slice(k[0],k[1]))},predicate:function we(se){return"[object Function]"===Object.prototype.toString.call(se)},represent:function Se(se){return se.toString()}})},632:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function de(Se){if(null===Se||0===Se.length)return!1;var we=Se,se=/\/([gim]*)$/.exec(Se),K="";return!("/"===we[0]&&(se&&(K=se[1]),K.length>3||"/"!==we[we.length-K.length-1]))},construct:function ye(Se){var we=Se,se=/\/([gim]*)$/.exec(Se),K="";return"/"===we[0]&&(se&&(K=se[1]),we=we.slice(1,we.length-K.length-1)),new RegExp(we,K)},predicate:function ee(Se){return"[object RegExp]"===Object.prototype.toString.call(Se)},represent:function he(Se){var we="/"+Se.source+"/";return Se.global&&(we+="g"),Se.multiline&&(we+="m"),Se.ignoreCase&&(we+="i"),we}})},8771:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function de(){return!0},construct:function ye(){},predicate:function ee(Se){return typeof Se>"u"},represent:function he(){return""}})},3071:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:map",{kind:"mapping",construct:function(de){return null!==de?de:{}}})},9996:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function de(ye){return"<<"===ye||null===ye}})},9568:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:null",{kind:"scalar",resolve:function de(ee){if(null===ee)return!0;var Se=ee.length;return 1===Se&&"~"===ee||4===Se&&("null"===ee||"Null"===ee||"NULL"===ee)},construct:function ye(){return null},predicate:function he(ee){return null===ee},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},7166:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=Object.prototype.hasOwnProperty,ye=Object.prototype.toString;Et.exports=new be("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function he(Se){if(null===Se)return!0;var se,K,re,ie,k,we=[],T=Se;for(se=0,K=T.length;se{"use strict";var be=ue(7647),de=Object.prototype.toString;Et.exports=new be("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function ye(ee){if(null===ee)return!0;var Se,we,se,K,re,ie=ee;for(re=new Array(ie.length),Se=0,we=ie.length;Se{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(de){return null!==de?de:[]}})},8738:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=Object.prototype.hasOwnProperty;Et.exports=new be("tag:yaml.org,2002:set",{kind:"mapping",resolve:function ye(ee){if(null===ee)return!0;var Se,we=ee;for(Se in we)if(de.call(we,Se)&&null!==we[Se])return!1;return!0},construct:function he(ee){return null!==ee?ee:{}}})},3464:(Et,Xe,ue)=>{"use strict";var be=ue(7647);Et.exports=new be("tag:yaml.org,2002:str",{kind:"scalar",construct:function(de){return null!==de?de:""}})},6934:(Et,Xe,ue)=>{"use strict";var be=ue(7647),de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ye=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Et.exports=new be("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function he(we){return null!==we&&(null!==de.exec(we)||null!==ye.exec(we))},construct:function ee(we){var se,K,re,ie,k,T,I,ht,Z=0,Ae=null;if(null===(se=de.exec(we))&&(se=ye.exec(we)),null===se)throw new Error("Date resolve error");if(K=+se[1],re=+se[2]-1,ie=+se[3],!se[4])return new Date(Date.UTC(K,re,ie));if(k=+se[4],T=+se[5],I=+se[6],se[7]){for(Z=se[7].slice(0,3);Z.length<3;)Z+="0";Z=+Z}return se[9]&&(Ae=6e4*(60*+se[10]+ +(se[11]||0)),"-"===se[9]&&(Ae=-Ae)),ht=new Date(Date.UTC(K,re,ie,k,T,I,Z)),Ae&&ht.setTime(ht.getTime()-Ae),ht},instanceOf:Date,represent:function Se(we){return we.toISOString()}})},3259:(Et,Xe,ue)=>{const de=ue(8695),ye=ue(1465),he=ue(3210),ee=ue(2334);function Se(we,se,K,re,ie){const k=[].slice.call(arguments,1),T=k.length,I="function"==typeof k[T-1];if(!I&&!de())throw new Error("Callback required as last argument");if(!I){if(T<1)throw new Error("Too few arguments provided");return 1===T?(K=se,se=re=void 0):2===T&&!se.getContext&&(re=K,K=se,se=void 0),new Promise(function(Z,Ae){try{const Ue=ye.create(K,re);Z(we(Ue,se,re))}catch(Ue){Ae(Ue)}})}if(T<2)throw new Error("Too few arguments provided");2===T?(ie=K,K=se,se=re=void 0):3===T&&(se.getContext&&typeof ie>"u"?(ie=re,re=void 0):(ie=re,re=K,K=se,se=void 0));try{const Z=ye.create(K,re);ie(null,we(Z,se,re))}catch(Z){ie(Z)}}Xe.rT=Se.bind(null,he.render),Xe.hz=Se.bind(null,he.renderToDataURL),Xe.toString=Se.bind(null,function(we,se,K){return ee.render(we,K)})},8695:Et=>{Et.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Et,Xe,ue)=>{const be=ue(4792).getSymbolSize;Xe.getRowColCoords=function(ye){if(1===ye)return[];const he=Math.floor(ye/7)+2,ee=be(ye),Se=145===ee?26:2*Math.ceil((ee-13)/(2*he-2)),we=[ee-7];for(let se=1;se{const be=ue(4016),de=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ye(he){this.mode=be.ALPHANUMERIC,this.data=he}ye.getBitsLength=function(ee){return 11*Math.floor(ee/2)+ee%2*6},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(ee){let Se;for(Se=0;Se+2<=this.data.length;Se+=2){let we=45*de.indexOf(this.data[Se]);we+=de.indexOf(this.data[Se+1]),ee.put(we,11)}this.data.length%2&&ee.put(de.indexOf(this.data[Se]),6)},Et.exports=ye},2118:Et=>{function Xe(){this.buffer=[],this.length=0}Xe.prototype={get:function(ue){const be=Math.floor(ue/8);return 1==(this.buffer[be]>>>7-ue%8&1)},put:function(ue,be){for(let de=0;de>>be-de-1&1))},getLengthInBits:function(){return this.length},putBit:function(ue){const be=Math.floor(this.length/8);this.buffer.length<=be&&this.buffer.push(0),ue&&(this.buffer[be]|=128>>>this.length%8),this.length++}},Et.exports=Xe},4425:Et=>{function Xe(ue){if(!ue||ue<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=ue,this.data=new Uint8Array(ue*ue),this.reservedBit=new Uint8Array(ue*ue)}Xe.prototype.set=function(ue,be,de,ye){const he=ue*this.size+be;this.data[he]=de,ye&&(this.reservedBit[he]=!0)},Xe.prototype.get=function(ue,be){return this.data[ue*this.size+be]},Xe.prototype.xor=function(ue,be,de){this.data[ue*this.size+be]^=de},Xe.prototype.isReserved=function(ue,be){return this.reservedBit[ue*this.size+be]},Et.exports=Xe},5663:(Et,Xe,ue)=>{const be=ue(8419),de=ue(4016);function ye(he){this.mode=de.BYTE,"string"==typeof he&&(he=be(he)),this.data=new Uint8Array(he)}ye.getBitsLength=function(ee){return 8*ee},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(he){for(let ee=0,Se=this.data.length;ee{const be=ue(2259),de=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],ye=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Xe.getBlocksCount=function(ee,Se){switch(Se){case be.L:return de[4*(ee-1)+0];case be.M:return de[4*(ee-1)+1];case be.Q:return de[4*(ee-1)+2];case be.H:return de[4*(ee-1)+3];default:return}},Xe.getTotalCodewordsCount=function(ee,Se){switch(Se){case be.L:return ye[4*(ee-1)+0];case be.M:return ye[4*(ee-1)+1];case be.Q:return ye[4*(ee-1)+2];case be.H:return ye[4*(ee-1)+3];default:return}}},2259:(Et,Xe)=>{Xe.L={bit:1},Xe.M={bit:0},Xe.Q={bit:3},Xe.H={bit:2},Xe.isValid=function(de){return de&&typeof de.bit<"u"&&de.bit>=0&&de.bit<4},Xe.from=function(de,ye){if(Xe.isValid(de))return de;try{return function ue(be){if("string"!=typeof be)throw new Error("Param is not a string");switch(be.toLowerCase()){case"l":case"low":return Xe.L;case"m":case"medium":return Xe.M;case"q":case"quartile":return Xe.Q;case"h":case"high":return Xe.H;default:throw new Error("Unknown EC Level: "+be)}}(de)}catch{return ye}}},3114:(Et,Xe,ue)=>{const be=ue(4792).getSymbolSize;Xe.getPositions=function(he){const ee=be(he);return[[0,0],[ee-7,0],[0,ee-7]]}},7078:(Et,Xe,ue)=>{const be=ue(4792),he=be.getBCHDigit(1335);Xe.getEncodedBits=function(Se,we){const se=Se.bit<<3|we;let K=se<<10;for(;be.getBCHDigit(K)-he>=0;)K^=1335<{const ue=new Uint8Array(512),be=new Uint8Array(256);(function(){let ye=1;for(let he=0;he<255;he++)ue[he]=ye,be[ye]=he,ye<<=1,256&ye&&(ye^=285);for(let he=255;he<512;he++)ue[he]=ue[he-255]})(),Xe.log=function(ye){if(ye<1)throw new Error("log("+ye+")");return be[ye]},Xe.exp=function(ye){return ue[ye]},Xe.mul=function(ye,he){return 0===ye||0===he?0:ue[be[ye]+be[he]]}},449:(Et,Xe,ue)=>{const be=ue(4016),de=ue(4792);function ye(he){this.mode=be.KANJI,this.data=he}ye.getBitsLength=function(ee){return 13*ee},ye.prototype.getLength=function(){return this.data.length},ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)},ye.prototype.write=function(he){let ee;for(ee=0;ee=33088&&Se<=40956)Se-=33088;else{if(!(Se>=57408&&Se<=60351))throw new Error("Invalid SJIS character: "+this.data[ee]+"\nMake sure your charset is UTF-8");Se-=49472}Se=192*(Se>>>8&255)+(255&Se),he.put(Se,13)}},Et.exports=ye},3667:(Et,Xe)=>{Xe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function be(de,ye,he){switch(de){case Xe.Patterns.PATTERN000:return(ye+he)%2==0;case Xe.Patterns.PATTERN001:return ye%2==0;case Xe.Patterns.PATTERN010:return he%3==0;case Xe.Patterns.PATTERN011:return(ye+he)%3==0;case Xe.Patterns.PATTERN100:return(Math.floor(ye/2)+Math.floor(he/3))%2==0;case Xe.Patterns.PATTERN101:return ye*he%2+ye*he%3==0;case Xe.Patterns.PATTERN110:return(ye*he%2+ye*he%3)%2==0;case Xe.Patterns.PATTERN111:return(ye*he%3+(ye+he)%2)%2==0;default:throw new Error("bad maskPattern:"+de)}}Xe.isValid=function(ye){return null!=ye&&""!==ye&&!isNaN(ye)&&ye>=0&&ye<=7},Xe.from=function(ye){return Xe.isValid(ye)?parseInt(ye,10):void 0},Xe.getPenaltyN1=function(ye){const he=ye.size;let ee=0,Se=0,we=0,se=null,K=null;for(let re=0;re=5&&(ee+=Se-5+3),se=k,Se=1),k=ye.get(ie,re),k===K?we++:(we>=5&&(ee+=we-5+3),K=k,we=1)}Se>=5&&(ee+=Se-5+3),we>=5&&(ee+=we-5+3)}return ee},Xe.getPenaltyN2=function(ye){const he=ye.size;let ee=0;for(let Se=0;Se=10&&(1488===Se||93===Se)&&ee++,we=we<<1&2047|ye.get(K,se),K>=10&&(1488===we||93===we)&&ee++}return 40*ee},Xe.getPenaltyN4=function(ye){let he=0;const ee=ye.data.length;for(let we=0;we{const be=ue(4406),de=ue(2699);Xe.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Xe.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Xe.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Xe.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Xe.MIXED={bit:-1},Xe.getCharCountIndicator=function(ee,Se){if(!ee.ccBits)throw new Error("Invalid mode: "+ee);if(!be.isValid(Se))throw new Error("Invalid version: "+Se);return Se>=1&&Se<10?ee.ccBits[0]:Se<27?ee.ccBits[1]:ee.ccBits[2]},Xe.getBestModeForData=function(ee){return de.testNumeric(ee)?Xe.NUMERIC:de.testAlphanumeric(ee)?Xe.ALPHANUMERIC:de.testKanji(ee)?Xe.KANJI:Xe.BYTE},Xe.toString=function(ee){if(ee&&ee.id)return ee.id;throw new Error("Invalid mode")},Xe.isValid=function(ee){return ee&&ee.bit&&ee.ccBits},Xe.from=function(ee,Se){if(Xe.isValid(ee))return ee;try{return function ye(he){if("string"!=typeof he)throw new Error("Param is not a string");switch(he.toLowerCase()){case"numeric":return Xe.NUMERIC;case"alphanumeric":return Xe.ALPHANUMERIC;case"kanji":return Xe.KANJI;case"byte":return Xe.BYTE;default:throw new Error("Unknown mode: "+he)}}(ee)}catch{return Se}}},7783:(Et,Xe,ue)=>{const be=ue(4016);function de(ye){this.mode=be.NUMERIC,this.data=ye.toString()}de.getBitsLength=function(he){return 10*Math.floor(he/3)+(he%3?he%3*3+1:0)},de.prototype.getLength=function(){return this.data.length},de.prototype.getBitsLength=function(){return de.getBitsLength(this.data.length)},de.prototype.write=function(he){let ee,Se,we;for(ee=0;ee+3<=this.data.length;ee+=3)Se=this.data.substr(ee,3),we=parseInt(Se,10),he.put(we,10);const se=this.data.length-ee;se>0&&(Se=this.data.substr(ee),we=parseInt(Se,10),he.put(we,3*se+1))},Et.exports=de},1106:(Et,Xe,ue)=>{const be=ue(5339);Xe.mul=function(ye,he){const ee=new Uint8Array(ye.length+he.length-1);for(let Se=0;Se=0;){const Se=ee[0];for(let se=0;se{const be=ue(4792),de=ue(2259),ye=ue(2118),he=ue(4425),ee=ue(6221),Se=ue(3114),we=ue(3667),se=ue(4655),K=ue(2636),re=ue(2088),ie=ue(7078),k=ue(4016),T=ue(2033);function ut(Qt,An,Cn){const Sn=Qt.size,mi=ie.getEncodedBits(An,Cn);let fn,qn;for(fn=0;fn<15;fn++)qn=1==(mi>>fn&1),Qt.set(fn<6?fn:fn<8?fn+1:Sn-15+fn,8,qn,!0),Qt.set(8,fn<8?Sn-fn-1:fn<9?15-fn-1+1:15-fn-1,qn,!0);Qt.set(Sn-8,8,1,!0)}function Wt(Qt,An,Cn,Sn){let mi;if(Array.isArray(Qt))mi=T.fromArray(Qt);else{if("string"!=typeof Qt)throw new Error("Invalid data");{let ta=An;if(!ta){const tl=T.rawSplit(Qt);ta=re.getBestVersionForData(tl,Cn)}mi=T.fromString(Qt,ta||40)}}const fn=re.getBestVersionForData(mi,Cn);if(!fn)throw new Error("The amount of data is too big to be stored in a QR Code");if(An){if(An=0&&fi<=6&&(0===$t||6===$t)||$t>=0&&$t<=6&&(0===fi||6===fi)||fi>=2&&fi<=4&&$t>=2&&$t<=4,!0)}}($t,An),function Z(Qt){const An=Qt.size;for(let Cn=8;Cn=7&&function Ue(Qt,An){const Cn=Qt.size,Sn=re.getEncodedBits(An);let mi,fn,qn;for(let fi=0;fi<18;fi++)mi=Math.floor(fi/3),fn=fi%3+Cn-8-3,qn=1==(Sn>>fi&1),Qt.set(mi,fn,qn,!0),Qt.set(fn,mi,qn,!0)}($t,An),function ht(Qt,An){const Cn=Qt.size;let Sn=-1,mi=Cn-1,fn=7,qn=0;for(let fi=Cn-1;fi>0;fi-=2)for(6===fi&&fi--;;){for(let $t=0;$t<2;$t++)if(!Qt.isReserved(mi,fi-$t)){let ta=!1;qn>>fn&1)),Qt.set(mi,fi-$t,ta),fn--,-1===fn&&(qn++,fn=7)}if(mi+=Sn,mi<0||Cn<=mi){mi-=Sn,Sn=-Sn;break}}}($t,qn),isNaN(Sn)&&(Sn=we.getBestMask($t,ut.bind(null,$t,Cn))),we.applyMask(Sn,$t),ut($t,Cn,Sn),{modules:$t,version:An,errorCorrectionLevel:Cn,maskPattern:Sn,segments:mi}}Xe.create=function(An,Cn){if(typeof An>"u"||""===An)throw new Error("No input text");let mi,fn,Sn=de.M;return typeof Cn<"u"&&(Sn=de.from(Cn.errorCorrectionLevel,de.M),mi=re.from(Cn.version),fn=we.from(Cn.maskPattern),Cn.toSJISFunc&&be.setToSJISFunction(Cn.toSJISFunc)),Wt(An,mi,Sn,fn)}},2636:(Et,Xe,ue)=>{const be=ue(1106);function de(ye){this.genPoly=void 0,this.degree=ye,this.degree&&this.initialize(this.degree)}de.prototype.initialize=function(he){this.degree=he,this.genPoly=be.generateECPolynomial(this.degree)},de.prototype.encode=function(he){if(!this.genPoly)throw new Error("Encoder not initialized");const ee=new Uint8Array(he.length+this.degree);ee.set(he);const Se=be.mod(ee,this.genPoly),we=this.degree-Se.length;if(we>0){const se=new Uint8Array(this.degree);return se.set(Se,we),se}return Se},Et.exports=de},2699:(Et,Xe)=>{let de="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";de=de.replace(/u/g,"\\u");const ye="(?:(?![A-Z0-9 $%*+\\-./:]|"+de+")(?:.|[\r\n]))+";Xe.KANJI=new RegExp(de,"g"),Xe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Xe.BYTE=new RegExp(ye,"g"),Xe.NUMERIC=new RegExp("[0-9]+","g"),Xe.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const he=new RegExp("^"+de+"$"),ee=new RegExp("^[0-9]+$"),Se=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Xe.testKanji=function(se){return he.test(se)},Xe.testNumeric=function(se){return ee.test(se)},Xe.testAlphanumeric=function(se){return Se.test(se)}},2033:(Et,Xe,ue)=>{const be=ue(4016),de=ue(7783),ye=ue(2424),he=ue(5663),ee=ue(449),Se=ue(2699),we=ue(4792),se=ue(4901);function K(Ue){return unescape(encodeURIComponent(Ue)).length}function re(Ue,ut,ht){const yt=[];let Zt;for(;null!==(Zt=Ue.exec(ht));)yt.push({data:Zt[0],index:Zt.index,mode:ut,length:Zt[0].length});return yt}function ie(Ue){const ut=re(Se.NUMERIC,be.NUMERIC,Ue),ht=re(Se.ALPHANUMERIC,be.ALPHANUMERIC,Ue);let yt,Zt;return we.isKanjiModeEnabled()?(yt=re(Se.BYTE,be.BYTE,Ue),Zt=re(Se.KANJI,be.KANJI,Ue)):(yt=re(Se.BYTE_KANJI,be.BYTE,Ue),Zt=[]),ut.concat(ht,yt,Zt).sort(function(Qt,An){return Qt.index-An.index}).map(function(Qt){return{data:Qt.data,mode:Qt.mode,length:Qt.length}})}function k(Ue,ut){switch(ut){case be.NUMERIC:return de.getBitsLength(Ue);case be.ALPHANUMERIC:return ye.getBitsLength(Ue);case be.KANJI:return ee.getBitsLength(Ue);case be.BYTE:return he.getBitsLength(Ue)}}function Ae(Ue,ut){let ht;const yt=be.getBestModeForData(Ue);if(ht=be.from(ut,yt),ht!==be.BYTE&&ht.bit=0?ut[ut.length-1]:null;return yt&&yt.mode===ht.mode?(ut[ut.length-1].data+=ht.data,ut):(ut.push(ht),ut)},[])}(An))},Xe.rawSplit=function(ut){return Xe.fromArray(ie(ut,we.isKanjiModeEnabled()))}},4792:(Et,Xe)=>{let ue;const be=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Xe.getSymbolSize=function(ye){if(!ye)throw new Error('"version" cannot be null or undefined');if(ye<1||ye>40)throw new Error('"version" should be in range from 1 to 40');return 4*ye+17},Xe.getSymbolTotalCodewords=function(ye){return be[ye]},Xe.getBCHDigit=function(de){let ye=0;for(;0!==de;)ye++,de>>>=1;return ye},Xe.setToSJISFunction=function(ye){if("function"!=typeof ye)throw new Error('"toSJISFunc" is not a valid function.');ue=ye},Xe.isKanjiModeEnabled=function(){return typeof ue<"u"},Xe.toSJIS=function(ye){return ue(ye)}},4406:(Et,Xe)=>{Xe.isValid=function(be){return!isNaN(be)&&be>=1&&be<=40}},2088:(Et,Xe,ue)=>{const be=ue(4792),de=ue(4655),ye=ue(2259),he=ue(4016),ee=ue(4406),we=be.getBCHDigit(7973);function K(k,T){return he.getCharCountIndicator(k,T)+4}function re(k,T){let I=0;return k.forEach(function(Z){const Ae=K(Z.mode,T);I+=Ae+Z.getBitsLength()}),I}Xe.from=function(T,I){return ee.isValid(T)?parseInt(T,10):I},Xe.getCapacity=function(T,I,Z){if(!ee.isValid(T))throw new Error("Invalid QR Code version");typeof Z>"u"&&(Z=he.BYTE);const ut=8*(be.getSymbolTotalCodewords(T)-de.getTotalCodewordsCount(T,I));if(Z===he.MIXED)return ut;const ht=ut-K(Z,T);switch(Z){case he.NUMERIC:return Math.floor(ht/10*3);case he.ALPHANUMERIC:return Math.floor(ht/11*2);case he.KANJI:return Math.floor(ht/13);default:return Math.floor(ht/8)}},Xe.getBestVersionForData=function(T,I){let Z;const Ae=ye.from(I,ye.M);if(Array.isArray(T)){if(T.length>1)return function ie(k,T){for(let I=1;I<=40;I++)if(re(k,I)<=Xe.getCapacity(I,T,he.MIXED))return I}(T,Ae);if(0===T.length)return 1;Z=T[0]}else Z=T;return function se(k,T,I){for(let Z=1;Z<=40;Z++)if(T<=Xe.getCapacity(Z,I,k))return Z}(Z.mode,Z.getLength(),Ae)},Xe.getEncodedBits=function(T){if(!ee.isValid(T)||T<7)throw new Error("Invalid QR Code version");let I=T<<12;for(;be.getBCHDigit(I)-we>=0;)I^=7973<{const be=ue(6355);Xe.render=function(ee,Se,we){let se=we,K=Se;typeof se>"u"&&(!Se||!Se.getContext)&&(se=Se,Se=void 0),Se||(K=function ye(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),se=be.getOptions(se);const re=be.getImageWidth(ee.modules.size,se),ie=K.getContext("2d"),k=ie.createImageData(re,re);return be.qrToImageData(k.data,ee,se),function de(he,ee,Se){he.clearRect(0,0,ee.width,ee.height),ee.style||(ee.style={}),ee.height=Se,ee.width=Se,ee.style.height=Se+"px",ee.style.width=Se+"px"}(ie,K,re),ie.putImageData(k,0,0),K},Xe.renderToDataURL=function(ee,Se,we){let se=we;return typeof se>"u"&&(!Se||!Se.getContext)&&(se=Se,Se=void 0),se||(se={}),Xe.render(ee,Se,se).toDataURL(se.type||"image/png",(se.rendererOpts||{}).quality)}},2334:(Et,Xe,ue)=>{const be=ue(6355);function de(ee,Se){const we=ee.a/255,se=Se+'="'+ee.hex+'"';return we<1?se+" "+Se+'-opacity="'+we.toFixed(2).slice(1)+'"':se}function ye(ee,Se,we){let se=ee+Se;return typeof we<"u"&&(se+=" "+we),se}Xe.render=function(Se,we,se){const K=be.getOptions(we),re=Se.modules.size,ie=Se.modules.data,k=re+2*K.margin,T=K.color.light.a?"':"",I="0&&T>0&&ee[k-1]||(se+=re?ye("M",T+we,.5+I+we):ye("m",K,0),K=0,re=!1),T+1',Ue=''+T+I+"\n";return"function"==typeof se&&se(null,Ue),Ue}},6355:(Et,Xe)=>{function ue(be){if("number"==typeof be&&(be=be.toString()),"string"!=typeof be)throw new Error("Color should be defined as hex string");let de=be.slice().replace("#","").split("");if(de.length<3||5===de.length||de.length>8)throw new Error("Invalid hex color: "+be);(3===de.length||4===de.length)&&(de=Array.prototype.concat.apply([],de.map(function(he){return[he,he]}))),6===de.length&&de.push("F","F");const ye=parseInt(de.join(""),16);return{r:ye>>24&255,g:ye>>16&255,b:ye>>8&255,a:255&ye,hex:"#"+de.slice(0,6).join("")}}Xe.getOptions=function(de){de||(de={}),de.color||(de.color={});const he=de.width&&de.width>=21?de.width:void 0;return{width:he,scale:he?4:de.scale||4,margin:typeof de.margin>"u"||null===de.margin||de.margin<0?4:de.margin,color:{dark:ue(de.color.dark||"#000000ff"),light:ue(de.color.light||"#ffffffff")},type:de.type,rendererOpts:de.rendererOpts||{}}},Xe.getScale=function(de,ye){return ye.width&&ye.width>=de+2*ye.margin?ye.width/(de+2*ye.margin):ye.scale},Xe.getImageWidth=function(de,ye){const he=Xe.getScale(de,ye);return Math.floor((de+2*ye.margin)*he)},Xe.qrToImageData=function(de,ye,he){const ee=ye.modules.size,Se=ye.modules.data,we=Xe.getScale(ee,he),se=Math.floor((ee+2*he.margin)*we),K=he.margin*we,re=[he.color.light,he.color.dark];for(let ie=0;ie=K&&k>=K&&ie{Et(Et.s=5349)}]); \ No newline at end of file diff --git a/console/ui/src/app/authentication.service.ts b/console/ui/src/app/authentication.service.ts index b02efe518..3d65343fc 100644 --- a/console/ui/src/app/authentication.service.ts +++ b/console/ui/src/app/authentication.service.ts @@ -99,7 +99,7 @@ export class AuthenticationService { public get claims(): SessionClaims { const token = this.currentSessionSubject.getValue().token; - return JSON.parse(atob(token.split('.')[1])); + return this.decodeJWT(token); } public get mfa(): MFAClaims | null { @@ -107,7 +107,7 @@ export class AuthenticationService { if (!mfaToken) { return null; } - return JSON.parse(atob(mfaToken.split('.')[1])); + return this.decodeJWT(mfaToken); } public get mfaRequired(): boolean { @@ -144,6 +144,16 @@ export class AuthenticationService { })); } + decodeJWT(token: string): any { + const { 1: base64Raw } = token.split('.'); + const base64 = base64Raw.replace(/-/g, '+').replace(/_/g, '/'); + const jsonPayload = decodeURIComponent(window.atob(base64).split('').map((c) => { + return `%${(`00${c.charCodeAt(0).toString(16)}`).slice(-2)}`; + }).join('')); + + return JSON.parse(jsonPayload); + } + mfaSet(code: string): Observable { const payload: AuthenticateMFASetupRequest = { mfa: this.session.mfa_code, @@ -159,7 +169,7 @@ export class AuthenticationService { segmentIdentify(session): void { const token = session.token; - const claims = JSON.parse(atob(token.split('.')[1])); + const claims = this.decodeJWT(token); // null user ID to ensure we use Anonymous IDs const _ = this.segment.identify(null, { username: claims.usn, diff --git a/console/ui/src/app/console.service.ts b/console/ui/src/app/console.service.ts index 488e74379..a4e04c597 100644 --- a/console/ui/src/app/console.service.ts +++ b/console/ui/src/app/console.service.ts @@ -265,6 +265,11 @@ export interface MatchState { tick?:string } +export interface RequireUserMfaRequest { + // Required. + required?:boolean +} + export interface RuntimeInfo { // Go loaded modules go_modules?:Array @@ -427,8 +432,10 @@ export interface UserList { export interface UserListUser { // Email of the user email?:string - // Whether the user has MFA enabled or not. + // Whether the user has MFA enabled. mfa_enabled?:boolean + // Whether the user is required to setup MFA. + mfa_required?:boolean // Role of the user; role?:UserRole // Username of the user @@ -1527,10 +1534,18 @@ export class ConsoleService { return this.httpClient.post(this.config.host + urlPath, body, { params: params, headers: this.getTokenAuthHeaders(auth_token) }) } + /** Sets the user's MFA as required or not required. */ + requireUserMfa(auth_token: string, username: string, body: RequireUserMfaRequest): Observable { + username = encodeURIComponent(String(username)) + const urlPath = `/v2/console/user/${username}/mfa/require`; + let params = new HttpParams({ encoder: new CustomHttpParamEncoder() }); + return this.httpClient.post(this.config.host + urlPath, body, { params: params, headers: this.getTokenAuthHeaders(auth_token) }) + } + /** Reset a user's multi-factor authentication credentials. */ resetUserMfa(auth_token: string, username: string): Observable { username = encodeURIComponent(String(username)) - const urlPath = `/v2/console/user/${username}/reset/mfa`; + const urlPath = `/v2/console/user/${username}/mfa/reset`; let params = new HttpParams({ encoder: new CustomHttpParamEncoder() }); return this.httpClient.post(this.config.host + urlPath, { params: params, headers: this.getTokenAuthHeaders(auth_token) }) } diff --git a/console/ui/src/app/login/login.component.ts b/console/ui/src/app/login/login.component.ts index 81205afff..0cd887dc0 100644 --- a/console/ui/src/app/login/login.component.ts +++ b/console/ui/src/app/login/login.component.ts @@ -51,7 +51,7 @@ export class LoginComponent implements OnInit { this.loginForm = this.formBuilder.group({ username: ['', Validators.compose([Validators.required])], password: ['', Validators.compose([Validators.required, Validators.minLength(8)])], - code: [{ value: '', disabled: true }, Validators.compose([Validators.required, Validators.minLength(6), Validators.maxLength(6)])], + code: [{ value: '', disabled: true }, Validators.compose([Validators.required, Validators.minLength(6), Validators.maxLength(8)])], }); this.returnUrl = this.route.snapshot.queryParams.next || '/'; } diff --git a/console/ui/src/app/users/users.component.html b/console/ui/src/app/users/users.component.html index 79860f796..343d00b64 100644 --- a/console/ui/src/app/users/users.component.html +++ b/console/ui/src/app/users/users.component.html @@ -16,7 +16,8 @@
    {{successMessage}}
    Username Email Role - MFA Enabled + MFA Required + MFA Setup Action @@ -33,9 +34,11 @@
    {{successMessage}}
    Maintainer View Only + {{user.mfa_required}} {{user.mfa_enabled}} - +
    +
    diff --git a/console/ui/src/app/users/users.component.ts b/console/ui/src/app/users/users.component.ts index 3507aa18b..619274b6a 100644 --- a/console/ui/src/app/users/users.component.ts +++ b/console/ui/src/app/users/users.component.ts @@ -62,11 +62,33 @@ export class UsersComponent implements OnInit { }); } + public requireUserMfa(username: string, enforce: boolean): void { + this.error = ''; + + this.consoleService.requireUserMfa('', username, {required: enforce}).pipe(mergeMap(() => { + return this.consoleService.listUsers(''); + })).subscribe((userList) => { + this.error = ''; + this.users.length = 0; + this.users.push(...userList.users); + this.successMessage = `User ${username} Multi-factor authentication is now required`; + setTimeout(() => { + this.successMessage = ''; + }, 5000); + }, error => { + this.error = error; + }); + } + public resetUserMfa(username: string): void { this.error = ''; - this.consoleService.resetUserMfa('', username).subscribe(() => { + this.consoleService.resetUserMfa('', username).pipe(mergeMap(() => { + return this.consoleService.listUsers(''); + })).subscribe((userList) => { this.error = ''; + this.users.length = 0; + this.users.push(...userList.users); this.successMessage = `User ${username} Multi-factor authentication was reset successfully`; setTimeout(() => { this.successMessage = ''; diff --git a/console/ui/src/styles.scss b/console/ui/src/styles.scss index 472f65781..465dd2b4a 100644 --- a/console/ui/src/styles.scss +++ b/console/ui/src/styles.scss @@ -133,7 +133,6 @@ a { } &:disabled { - // background-color: $brand-purple; border-color: $brand-purple; } } diff --git a/server/console.go b/server/console.go index 62f2f6b8e..37778245c 100644 --- a/server/console.go +++ b/server/console.go @@ -127,10 +127,11 @@ var restrictedMethods = map[string]console.UserRole{ "/nakama.console.Console/UnlinkSteam": console.UserRole_USER_ROLE_MAINTAINER, // User - "/nakama.console.Console/AddUser": console.UserRole_USER_ROLE_ADMIN, - "/nakama.console.Console/DeleteUser": console.UserRole_USER_ROLE_ADMIN, - "/nakama.console.Console/ListUsers": console.UserRole_USER_ROLE_ADMIN, - "/nakama.console.Console/ResetUserMfa": console.UserRole_USER_ROLE_ADMIN, + "/nakama.console.Console/AddUser": console.UserRole_USER_ROLE_ADMIN, + "/nakama.console.Console/DeleteUser": console.UserRole_USER_ROLE_ADMIN, + "/nakama.console.Console/ListUsers": console.UserRole_USER_ROLE_ADMIN, + "/nakama.console.Console/ResetUserMfa": console.UserRole_USER_ROLE_ADMIN, + "/nakama.console.Console/RequireUserMfa": console.UserRole_USER_ROLE_ADMIN, } type ctxConsoleIdKey struct{} diff --git a/server/console_authenticate.go b/server/console_authenticate.go index a1f7fc400..64d75f6a1 100644 --- a/server/console_authenticate.go +++ b/server/console_authenticate.go @@ -201,7 +201,7 @@ func (s *ConsoleServer) Authenticate(ctx context.Context, in *console.Authentica return status.Error(codes.Internal, "Failed to decipher the MFA secret for the user.") } - if _, err = tx.ExecContext(ctx, `UPDATE console_user SET recovery_codes = $1 WHERE id = $2`, updatedRecoveryCodes, userId); err != nil { + if _, err = tx.ExecContext(ctx, `UPDATE console_user SET mfa_recovery_codes = $1 WHERE id = $2`, updatedRecoveryCodes, userId); err != nil { if errors.Is(err, context.Canceled) { return err } diff --git a/server/console_user.go b/server/console_user.go index 1090d9b9a..5cca9cfb5 100644 --- a/server/console_user.go +++ b/server/console_user.go @@ -148,13 +148,13 @@ func (s *ConsoleServer) ListUsers(ctx context.Context, in *emptypb.Empty) (*cons func (s *ConsoleServer) dbListConsoleUsers(ctx context.Context) ([]*console.UserList_User, error) { result := make([]*console.UserList_User, 0, 10) - rows, err := s.db.QueryContext(ctx, "SELECT username, email, role, mfa_secret is not null AS mfa_enabled FROM console_user WHERE id != $1", uuid.Nil) + rows, err := s.db.QueryContext(ctx, "SELECT username, email, role, mfa_required, mfa_secret is not null AS mfa_enabled FROM console_user WHERE id != $1", uuid.Nil) if err != nil { return nil, err } for rows.Next() { user := &console.UserList_User{} - if err := rows.Scan(&user.Username, &user.Email, &user.Role, &user.MfaEnabled); err != nil { + if err := rows.Scan(&user.Username, &user.Email, &user.Role, &user.MfaRequired, &user.MfaEnabled); err != nil { return nil, err } result = append(result, user) @@ -190,6 +190,15 @@ func isValidPassword(pwd string) bool { return number && upper } +func (s *ConsoleServer) RequireUserMfa(ctx context.Context, in *console.RequireUserMfaRequest) (*emptypb.Empty, error) { + if _, err := s.db.ExecContext(ctx, "UPDATE console_user SET mfa_required = $1 WHERE username = $2", in.Required, in.Username); err != nil { + s.logger.Error("failed to change required value for user MFA", zap.Error(err)) + return nil, status.Error(codes.Internal, "Internal Server Error") + } + + return nil, nil +} + func (s *ConsoleServer) ResetUserMfa(ctx context.Context, in *console.ResetUserMfaRequest) (*emptypb.Empty, error) { if _, err := s.db.ExecContext(ctx, "UPDATE console_user SET mfa_secret = NULL, mfa_recovery_codes = NULL WHERE username = $1", in.Username); err != nil { s.logger.Error("failed to reset user MFA", zap.Error(err))